@fewangsit/wangsvue-fats 1.0.1-rc.3 → 1.0.1-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/components/badge/Badge.vue.d.ts +1 -1
  2. package/components/basetree/BaseTree.vue.d.ts +1 -1
  3. package/components/button/Button.vue.d.ts +1 -1
  4. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +1 -1
  5. package/components/buttonradio/ButtonRadio.vue.d.ts +1 -1
  6. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +1 -1
  7. package/components/buttonsplit/ButtonSplit.vue.d.ts +7 -6
  8. package/components/buttonsync/ButtonSync.vue.d.ts +1 -1
  9. package/components/calendar/Calendar.vue.d.ts +1 -1
  10. package/components/card/Card.vue.d.ts +1 -1
  11. package/components/checkbox/Checkbox.vue.d.ts +1 -1
  12. package/components/customcolumn/CustomColumn.vue.d.ts +1 -1
  13. package/components/dialog/Dialog.vue.d.ts +1 -1
  14. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -1
  15. package/components/dialogform/DialogForm.vue.d.ts +1 -1
  16. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +1 -1
  17. package/components/dropdown/Dropdown.vue.d.ts +6 -1
  18. package/components/editor/Editor.vue.d.ts +1 -1
  19. package/components/fileupload/FileUpload.vue.d.ts +1 -1
  20. package/components/form/Form.vue.d.ts +1 -1
  21. package/components/icon/Icon.vue.d.ts +1 -1
  22. package/components/image/Image.vue.d.ts +1 -1
  23. package/components/imagecompressor/ImageCompressor.vue.d.ts +1 -1
  24. package/components/inlinemessage/InlineMessage.vue.d.ts +1 -1
  25. package/components/inputbadge/InputBadge.vue.d.ts +1 -1
  26. package/components/inputcurrency/InputCurrency.vue.d.ts +1 -1
  27. package/components/inputsearch/InputSearch.vue.d.ts +1 -1
  28. package/components/inputtext/InputText.vue.d.ts +1 -1
  29. package/components/inputurl/InputURL.vue.d.ts +1 -1
  30. package/components/invisiblefield/InvisibleField.vue.d.ts +1 -1
  31. package/components/languagedropdown/LanguageDropdown.vue.d.ts +1 -1
  32. package/components/languageswitcher/LanguageSwitcher.vue.d.ts +1 -1
  33. package/components/litedropdown/LiteDropdown.vue.d.ts +3 -3
  34. package/components/menu/Menu.vue.d.ts +1 -1
  35. package/components/multiselect/MultiSelect.vue.d.ts +1 -1
  36. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -1
  37. package/components/tabmenu/TabMenu.vue.d.ts +1 -1
  38. package/components/tagtype/TagType.vue.d.ts +1 -1
  39. package/components/timeline/Timeline.vue.d.ts +1 -1
  40. package/components/toast/Toast.vue.d.ts +1 -1
  41. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -1
  42. package/components/tree/Tree.vue.d.ts +1 -2
  43. package/components/username/UserName.vue.d.ts +1 -1
  44. package/components/userwithicon/UserWithIcon.vue.d.ts +1 -1
  45. package/package.json +1 -1
  46. package/stats.html +1 -1
  47. package/utils/index.d.ts +1 -0
  48. package/utils/textFormatter.util.d.ts +29 -0
  49. package/wangsvue-fats.js +2269 -2255
  50. package/wangsvue-fats.system.js +61 -61
@@ -1,4 +1,4 @@
1
- import { ClassComponent } from '../ts-helpers';
1
+ import { ClassComponent } from '../ts-helpers.d';
2
2
 
3
3
  export interface BadgeComponentConfigs {
4
4
  /**
@@ -17,7 +17,7 @@ import {
17
17
  GlobalComponentConstructor,
18
18
  HintedString,
19
19
  PassThrough,
20
- } from '../ts-helpers';
20
+ } from '../ts-helpers.d';
21
21
 
22
22
  export declare type TreePassThroughOptionType<T = any> =
23
23
  | TreePassThroughAttributes
@@ -6,7 +6,7 @@ import {
6
6
  ClassComponent,
7
7
  GlobalComponentConstructor,
8
8
  HintedString,
9
- } from '../ts-helpers';
9
+ } from '../ts-helpers.d';
10
10
 
11
11
  /**
12
12
  * Defines valid properties in Button component.
@@ -1,6 +1,6 @@
1
1
  import { TableColumn } from '../datatable/DataTable.vue.d';
2
2
  import { DialogFormProps } from '../dialogform/DialogForm.vue.d';
3
- import { ClassComponent } from '../ts-helpers';
3
+ import { ClassComponent } from '../ts-helpers.d';
4
4
 
5
5
  export interface ButtonImportExcelProps {
6
6
  tableName: string;
@@ -1,7 +1,7 @@
1
1
  import { StyleValue } from 'vue';
2
2
 
3
3
  import { ComponentHooks } from '../basecomponent';
4
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
5
5
 
6
6
  export declare type ButtonRadioPassThroughOptionType =
7
7
  | ButtonRadioPassThroughAttributes
@@ -2,7 +2,7 @@ import { Slot } from 'vue';
2
2
 
3
3
  import { TreeNode } from '../basetree/BaseTree.vue.d';
4
4
  import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
5
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
5
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
6
6
 
7
7
  export type KeysModelValue = number[] | undefined;
8
8
  export type NodeModelValue =
@@ -7,11 +7,6 @@
7
7
  * @module splitbutton
8
8
  *
9
9
  */
10
- import { ButtonPassThroughOptions } from 'primevue/button';
11
- import {
12
- TieredMenuPassThroughOptions,
13
- TieredMenuRouterBindProps,
14
- } from 'primevue/tieredmenu';
15
10
  import { ButtonHTMLAttributes, VNode } from 'vue';
16
11
 
17
12
  import { ComponentHooks } from '../basecomponent';
@@ -22,7 +17,13 @@ import {
22
17
  GlobalComponentConstructor,
23
18
  HintedString,
24
19
  PassThrough,
25
- } from '../ts-helpers';
20
+ } from '../ts-helpers.d';
21
+
22
+ import { ButtonPassThroughOptions } from 'primevue/button';
23
+ import {
24
+ TieredMenuPassThroughOptions,
25
+ TieredMenuRouterBindProps,
26
+ } from 'primevue/tieredmenu';
26
27
 
27
28
  import { WangsIcons } from '../icon/Icon.vue';
28
29
 
@@ -1,4 +1,4 @@
1
- import { ClassComponent } from '../ts-helpers';
1
+ import { ClassComponent } from '../ts-helpers.d';
2
2
 
3
3
  export interface ButtonSyncProps {
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { Slot, TransitionProps } from 'vue';
2
2
 
3
3
  import { CustomValidation } from '../form/Form.vue.d';
4
- import { ClassComponent } from '../ts-helpers';
4
+ import { ClassComponent } from '../ts-helpers.d';
5
5
 
6
6
  export interface CalendarLocaleConfig {
7
7
  defaultPlaceholder: string;
@@ -14,7 +14,7 @@ import {
14
14
  ClassComponent,
15
15
  GlobalComponentConstructor,
16
16
  PassThrough,
17
- } from '../ts-helpers';
17
+ } from '../ts-helpers.d';
18
18
 
19
19
  export declare type CardPassThroughOptionType =
20
20
  | CardPassThroughAttributes
@@ -13,7 +13,7 @@ import {
13
13
  ClassComponent,
14
14
  GlobalComponentConstructor,
15
15
  PassThrough,
16
- } from '../ts-helpers';
16
+ } from '../ts-helpers.d';
17
17
 
18
18
  export declare type CheckboxPassThroughOptionType =
19
19
  | CheckboxPassThroughAttributes
@@ -1,5 +1,5 @@
1
1
  import { TableColumn } from '../datatable/DataTable.vue.d';
2
- import { ClassComponent } from '../ts-helpers';
2
+ import { ClassComponent } from '../ts-helpers.d';
3
3
 
4
4
  export interface CustomColumnLocaleConfig {
5
5
  resetDefaultText: string;
@@ -16,7 +16,7 @@ import {
16
16
  ClassComponent,
17
17
  GlobalComponentConstructor,
18
18
  PassThrough,
19
- } from '../ts-helpers';
19
+ } from '../ts-helpers.d';
20
20
 
21
21
  export declare type DialogPassThroughOptionType<T = any> =
22
22
  | DialogPassThroughAttributes
@@ -1,7 +1,7 @@
1
1
  import { Slot } from 'vue';
2
2
 
3
3
  import { WangsIcons } from '../icon/Icon.vue.d';
4
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
5
5
 
6
6
  type ConfirmDialogSeverity = 'success' | 'danger' | 'primary';
7
7
 
@@ -3,7 +3,7 @@ import { Slot } from 'vue';
3
3
 
4
4
  import FormInstance, { FormPayload, FormProps } from '../form/Form.vue.d';
5
5
  import { WangsIcons } from '../icon/Icon.vue.d';
6
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
7
7
 
8
8
  export type DialogFormValue =
9
9
  | string
@@ -3,7 +3,7 @@ import { Slot } from 'vue';
3
3
  import { TreeNode } from '../basetree/BaseTree.vue.d';
4
4
  import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
5
5
  import TreeInstance, { TreeProps } from '../tree/Tree.vue.d';
6
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
7
7
 
8
8
  import { TreeSelectionKeys } from 'primevue/tree';
9
9
 
@@ -4,7 +4,7 @@ import { BadgeProps } from '../../components/badge/Badge.vue.d';
4
4
  import { WangsIcons } from '../../components/icon/Icon.vue.d';
5
5
 
6
6
  import { CustomValidation } from '../form/Form.vue.d';
7
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
7
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
8
8
 
9
9
  export type OptionValue = string | number | boolean | Record<string, any>;
10
10
 
@@ -98,6 +98,11 @@ export interface DropdownProps {
98
98
  */
99
99
  allowNullOption?: boolean;
100
100
 
101
+ /**
102
+ * If the same option is selected again, the option is unselected.
103
+ */
104
+ unselectOnReselect?: boolean;
105
+
101
106
  /**
102
107
  * Specify the property name of option to be used as label.
103
108
  *
@@ -1,6 +1,6 @@
1
1
  import { EditorEvents } from '@tiptap/vue-3';
2
2
 
3
- import { ClassComponent } from '../ts-helpers';
3
+ import { ClassComponent } from '../ts-helpers.d';
4
4
 
5
5
  export interface EditorProps {
6
6
  /**
@@ -4,7 +4,7 @@ import {
4
4
  } from 'primevue/fileupload';
5
5
 
6
6
  import { CustomValidation } from '../form/Form.vue.d';
7
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
7
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
8
8
 
9
9
  export type InputErrorCodes = 'FILE_SIZE_TOO_LARGE';
10
10
 
@@ -11,7 +11,7 @@ import {
11
11
  GlobalComponentConstructor,
12
12
  HintedString,
13
13
  Nullable,
14
- } from '../ts-helpers';
14
+ } from '../ts-helpers.d';
15
15
 
16
16
  export type Condition =
17
17
  | 'empty'
@@ -1,4 +1,4 @@
1
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
2
 
3
3
  export type WangsIconseverities =
4
4
  | 'danger'
@@ -16,7 +16,7 @@ import {
16
16
  ClassComponent,
17
17
  GlobalComponentConstructor,
18
18
  PassThrough,
19
- } from '../ts-helpers';
19
+ } from '../ts-helpers.d';
20
20
 
21
21
  export declare type ImagePassThroughOptionType =
22
22
  | ImagePassThroughAttributes
@@ -1,5 +1,5 @@
1
1
  import { CustomValidation } from '../form/Form.vue.d';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
3
3
 
4
4
  export interface ImageCompressorLocaleConfig {
5
5
  cropDialogHeader: string;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { ComponentHooks } from '../basecomponent';
9
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
9
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
10
10
 
11
11
  export declare type InlineMessagePassThroughOptionType =
12
12
  | InlineMessagePassThroughAttributes
@@ -1,5 +1,5 @@
1
1
  import { CustomValidation } from '../form/Form.vue.d';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
3
3
 
4
4
  /**
5
5
  * InputBadge component props
@@ -1,5 +1,5 @@
1
1
  import { CustomValidation } from '../form/Form.vue.d';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
3
3
 
4
4
  export type CurrencyFormat = {
5
5
  name?: string;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ClassComponent,
3
3
  GlobalComponentConstructor,
4
- } from '../../components/ts-helpers';
4
+ } from '../../components/ts-helpers.d';
5
5
 
6
6
  export type InputSearchEmits = {
7
7
  /**
@@ -11,7 +11,7 @@ import { InputHTMLAttributes, Slot } from 'vue';
11
11
 
12
12
  import { ComponentHooks } from '../basecomponent';
13
13
  import { CustomValidation } from '../form/Form.vue.d';
14
- import { ClassComponent, Nullable } from '../ts-helpers';
14
+ import { ClassComponent, Nullable } from '../ts-helpers.d';
15
15
  export declare type InputTextPassThroughOptionType<T = any> =
16
16
  | InputTextPassThroughAttributes
17
17
  | ((
@@ -5,7 +5,7 @@ import {
5
5
  InputTextProps,
6
6
  } from '../../components/inputtext/InputText.vue.d';
7
7
 
8
- import { ClassComponent } from '../ts-helpers';
8
+ import { ClassComponent } from '../ts-helpers.d';
9
9
 
10
10
  /**
11
11
  * InputURL component props
@@ -1,4 +1,4 @@
1
- import { ClassComponent, Nullable } from '../ts-helpers';
1
+ import { ClassComponent, Nullable } from '../ts-helpers.d';
2
2
 
3
3
  export type FieldValue =
4
4
  | Nullable<string>
@@ -3,7 +3,7 @@ import {
3
3
  DropdownProps,
4
4
  } from '../../components/dropdown/Dropdown.vue.d';
5
5
 
6
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
7
7
 
8
8
  export type LanguageDropdownProps = DropdownProps & {};
9
9
  export type LanguageDropdownEmits = DropdownEmits & {};
@@ -1,4 +1,4 @@
1
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
2
 
3
3
  declare class LanguageSwitcher extends ClassComponent<
4
4
  unknown,
@@ -1,8 +1,8 @@
1
- import { DropdownChangeEvent } from 'primevue/dropdown';
2
-
3
1
  import { Option, OptionValue } from '../../components/dropdown/Dropdown.vue.d';
4
2
 
5
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
4
+
5
+ import { DropdownChangeEvent } from 'primevue/dropdown';
6
6
 
7
7
  /**
8
8
  * Lite dropdown component props
@@ -18,7 +18,7 @@ import {
18
18
  ClassComponent,
19
19
  GlobalComponentConstructor,
20
20
  PassThrough,
21
- } from '../ts-helpers';
21
+ } from '../ts-helpers.d';
22
22
 
23
23
  export declare type MenuPassThroughOptionType =
24
24
  | MenuPassThroughAttributes
@@ -5,7 +5,7 @@ import {
5
5
  } from '../../components/dropdown/Dropdown.vue.d';
6
6
 
7
7
  import { CustomValidation } from '../form/Form.vue.d';
8
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
8
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
9
9
 
10
10
  export type MultiSelectLocaleConfig = DropdownLocaleConfig & {};
11
11
 
@@ -15,7 +15,7 @@ import {
15
15
  ClassComponent,
16
16
  GlobalComponentConstructor,
17
17
  PassThrough,
18
- } from '../ts-helpers';
18
+ } from '../ts-helpers.d';
19
19
 
20
20
  export declare type OverlayPanelPassThrougMethodType = (
21
21
  options: OverlayPanelPassThroughMethodOptions,
@@ -11,7 +11,7 @@
11
11
  import { TabMenuProps as WangsUITabMenuProps } from '@wangs-ui/core';
12
12
  import { MenuItem } from '@wangs-ui/core/dist/types/components/menuitem/menuitem.type';
13
13
 
14
- import { ClassComponent } from '../ts-helpers';
14
+ import { ClassComponent } from '../ts-helpers.d';
15
15
 
16
16
  /**
17
17
  * Custom change event.
@@ -1,4 +1,4 @@
1
- import { ClassComponent } from 'primevue/ts-helpers';
1
+ import { ClassComponent } from 'primevue/ts-helpers.d';
2
2
 
3
3
  export type AssetTagType =
4
4
  | 'QR'
@@ -2,7 +2,7 @@ import { VNode } from 'vue';
2
2
 
3
3
  import { BadgeProps } from '../badge/Badge.vue.d';
4
4
  import { JSONContent } from '../editor/Editor.vue.d';
5
- import { ClassComponent } from '../ts-helpers';
5
+ import { ClassComponent } from '../ts-helpers.d';
6
6
 
7
7
  export interface AttachmentFile {
8
8
  type: 'image' | 'xls' | 'doc' | 'pdf' | 'csv' | 'video' | 'data';
@@ -17,7 +17,7 @@ import {
17
17
  ClassComponent,
18
18
  GlobalComponentConstructor,
19
19
  PassThrough,
20
- } from '../ts-helpers';
20
+ } from '../ts-helpers.d';
21
21
 
22
22
  export declare type ToastPassThroughOptionType =
23
23
  | ToastPassThroughAttributes
@@ -13,7 +13,7 @@ import {
13
13
  ClassComponent,
14
14
  GlobalComponentConstructor,
15
15
  PassThrough,
16
- } from '../ts-helpers';
16
+ } from '../ts-helpers.d';
17
17
 
18
18
  export declare type ToggleSwitchPassThroughOptionType =
19
19
  | ToggleSwitchPassThroughAttributes
@@ -1,10 +1,9 @@
1
1
  import { Slot } from 'vue';
2
-
3
2
  import { MenuItem } from '../../components/menuitem';
4
3
 
5
4
  import { BaseTreeProps, TreeNode } from '../basetree/BaseTree.vue.d';
6
5
  import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
7
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
8
7
 
9
8
  import { TreeSelectionKeys } from 'primevue/tree';
10
9
 
@@ -3,7 +3,7 @@ import {
3
3
  GlobalComponentConstructor,
4
4
  PresetAttributes,
5
5
  PresetOptionMethodType,
6
- } from '../ts-helpers';
6
+ } from '../ts-helpers.d';
7
7
 
8
8
  export interface UserNamePresetOptions {
9
9
  root: PresetAttributes;
@@ -1,6 +1,6 @@
1
1
  import { UserDetail } from '@tagsamurai/fats-api-services/src/types/user.type';
2
2
 
3
- import { ClassComponent } from '../../components/ts-helpers';
3
+ import { ClassComponent } from '../../components/ts-helpers.d';
4
4
 
5
5
  export interface UserWithIconProps {
6
6
  user: Partial<UserDetail> & { fullName: string };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.1-rc.3",
3
+ "version": "1.0.1-rc.5",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",