@fewangsit/wangsvue-fats 1.0.0-alpha.4 → 1.0.0-alpha.41

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 (145) hide show
  1. package/components/animation/Animation.vue.d.ts +9 -1
  2. package/components/assetinfo/AssetInfo.vue.d.ts +34 -0
  3. package/components/badgegroup/BadgeGroup.vue.d.ts +3 -1
  4. package/components/basetree/BaseTree.vue.d.ts +2 -1
  5. package/components/button/Button.vue.d.ts +7 -3
  6. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
  7. package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
  8. package/components/buttonscan/ButtonScan.vue.d.ts +202 -0
  9. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +5 -2
  10. package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
  11. package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
  12. package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
  13. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
  14. package/components/calendar/Calendar.vue.d.ts +32 -4
  15. package/components/card/Card.vue.d.ts +1 -0
  16. package/components/checkbox/Checkbox.vue.d.ts +1 -0
  17. package/components/datatable/DataTable.vue.d.ts +6 -4
  18. package/components/dialog/Dialog.vue.d.ts +1 -0
  19. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
  20. package/components/dialogform/DialogForm.vue.d.ts +1 -0
  21. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  22. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  23. package/components/dialogselectuser/options/columns.d.ts +3 -0
  24. package/components/dropdown/Dropdown.vue.d.ts +16 -4
  25. package/components/editor/Editor.vue.d.ts +1 -0
  26. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  27. package/components/filtercontainer/FilterContainer.vue.d.ts +13 -8
  28. package/components/form/Form.vue.d.ts +2 -1
  29. package/components/icon/Icon.vue.d.ts +2 -0
  30. package/components/image/Image.vue.d.ts +1 -0
  31. package/components/imagecompressor/ImageCompressor.vue.d.ts +6 -0
  32. package/components/index.d.ts +16 -18
  33. package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
  34. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  35. package/components/inputnumber/InputNumber.vue.d.ts +1 -0
  36. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  37. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  38. package/components/inputsearch/InputSearch.vue.d.ts +36 -0
  39. package/components/inputtext/InputText.vue.d.ts +2 -1
  40. package/components/inputurl/InputURL.vue.d.ts +4 -2
  41. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
  42. package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -22
  43. package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
  44. package/components/loading/store/loading.store.d.ts +3 -3
  45. package/components/menu/Menu.vue.d.ts +2 -1
  46. package/components/multiselect/MultiSelect.vue.d.ts +7 -4
  47. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  48. package/components/tabmenu/TabMenu.vue.d.ts +2 -1
  49. package/components/textarea/Textarea.vue.d.ts +2 -1
  50. package/components/timeline/Timeline.vue.d.ts +7 -1
  51. package/components/toast/Toast.vue.d.ts +2 -1
  52. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  53. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  54. package/components/tree/Tree.vue.d.ts +5 -3
  55. package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
  56. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
  57. package/components/username/UserName.vue.d.ts +5 -0
  58. package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
  59. package/config/defaultProps.d.ts +1 -1
  60. package/config/index.d.ts +1 -1
  61. package/config/locale.d.ts +1 -1
  62. package/directives/focus.d.ts +1 -1
  63. package/event-bus/index.d.ts +52 -50
  64. package/event-bus/mitt.d.ts +29 -14
  65. package/main.d.ts +31 -2
  66. package/package.json +8 -4
  67. package/plugins/WangsVue.d.ts +266 -98
  68. package/plugins/formValidation.d.ts +15 -6
  69. package/plugins/i18n-extension.d.ts +4 -0
  70. package/plugins/i18n.d.ts +98 -0
  71. package/stats.html +4949 -0
  72. package/style.css +1 -1
  73. package/utils/date.util.d.ts +64 -31
  74. package/utils/getSeverityByAssetStatus.util.d.ts +3 -0
  75. package/utils/index.d.ts +5 -20
  76. package/utils/listenSidebarChanges.util.d.ts +16 -0
  77. package/utils/object.util.d.ts +14 -3
  78. package/utils/role.util.d.ts +67 -1
  79. package/utils/toast.util.d.ts +78 -78
  80. package/wangsvue-fats.es.js +48719 -129568
  81. package/wangsvue-fats.system.js +91 -267
  82. package/assets/json/currencies.json.d.ts +0 -1068
  83. package/assets/json/supported-official-langs.json.d.ts +0 -530
  84. package/assets/lottie/admin/loading-page.lottie +0 -0
  85. package/assets/lottie/admin/loading-table.lottie +0 -0
  86. package/assets/lottie/admin/no-data.lottie +0 -0
  87. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  88. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  89. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  90. package/assets/lottie/workspace/loading-page.lottie +0 -0
  91. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  92. package/assets/lottie/workspace/loading-table.lottie +0 -0
  93. package/assets/lottie/workspace/no-data.lottie +0 -0
  94. package/build-entry.d.ts +0 -14
  95. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  96. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  97. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  98. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  99. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  100. package/components/datatable/MultiRow.vue.d.ts +0 -16
  101. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  102. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  103. package/components/datatable/helpers/index.d.ts +0 -3
  104. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  105. package/components/datatable/store/dataTable.store.d.ts +0 -22
  106. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  107. package/components/editor/EditorButton.vue.d.ts +0 -15
  108. package/components/editor/MentionList.vue.d.ts +0 -35
  109. package/components/editor/MentionSection.vue.d.ts +0 -92
  110. package/components/editor/codeSnippetExtension.d.ts +0 -3
  111. package/components/editor/mentionSectionExtension.d.ts +0 -3
  112. package/components/editor/suggestion.d.ts +0 -2
  113. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  114. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  115. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  116. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  117. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  118. package/components/helpers/index.d.ts +0 -2
  119. package/components/helpers/label.d.ts +0 -15
  120. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  121. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  122. package/components/inlinemessage/InlineMessage.vue.d.ts +0 -167
  123. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  124. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  125. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  126. package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
  127. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  128. package/components/menu/helpers/index.d.ts +0 -1
  129. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  130. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  131. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  132. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  133. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  134. package/components/tree/helpers/index.d.ts +0 -3
  135. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  136. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  137. package/plugins/translation.d.ts +0 -84
  138. package/types/options.type.d.ts +0 -16
  139. package/utils/addAttachment.util.d.ts +0 -43
  140. package/utils/exportToExcel.util.d.ts +0 -20
  141. package/utils/filterOptions.util.d.ts +0 -3
  142. package/utils/genPlaceholder.util.d.ts +0 -8
  143. package/utils/getAttachmentIcon.util.d.ts +0 -8
  144. package/utils/mergePropsWithDefaults.util.d.ts +0 -20
  145. package/utils/textFormatter.util.d.ts +0 -17
@@ -1,8 +1,20 @@
1
1
  import { Slot } from 'vue';
2
- import { DropdownOption, OptionValue } from 'lib/types/options.type';
2
+
3
+ import { BadgeProps } from '../../components/badge/Badge.vue.d';
4
+ import { WangsIcons } from '../../components/icon/Icon.vue.d';
5
+
3
6
  import { CustomValidation } from '../form/Form.vue.d';
4
7
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
5
- import { BadgeProps } from 'lib/components/badge/Badge.vue.d';
8
+
9
+ export type OptionValue = string | number | boolean | Record<string, any>;
10
+
11
+ export type Option = {
12
+ label?: string;
13
+ value?: OptionValue;
14
+ visible?: boolean;
15
+ icon?: WangsIcons;
16
+ [key: string]: any;
17
+ };
6
18
 
7
19
  /**
8
20
  * Configuration interface for localizing dropdown component placeholders and error messages.
@@ -77,7 +89,7 @@ export interface DropdownProps {
77
89
  /**
78
90
  * List of options to display.
79
91
  */
80
- options?: DropdownOption[] | string[] | Record<string, any>;
92
+ options?: Option[] | string[] | Record<string, any>;
81
93
 
82
94
  /**
83
95
  * Allows `null` to be treated as a valid selectable option in the dropdown.
@@ -212,7 +224,7 @@ export interface DropdownProps {
212
224
 
213
225
  export interface DropdownSlots {
214
226
  'value': Slot<{ value: string; originalValue: any }>;
215
- 'option': Slot<{ option: DropdownOption }>;
227
+ 'option': Slot<{ option: Option }>;
216
228
  'addon-left': Slot;
217
229
  'addon-right': Slot;
218
230
  }
@@ -1,4 +1,5 @@
1
1
  import { EditorEvents } from '@tiptap/vue-3';
2
+
2
3
  import { ClassComponent } from '../ts-helpers';
3
4
 
4
5
  export interface EditorProps {
@@ -2,6 +2,7 @@ import {
2
2
  FileUploadErrorEvent,
3
3
  FileUploadUploadEvent,
4
4
  } from 'primevue/fileupload';
5
+
5
6
  import { CustomValidation } from '../form/Form.vue.d';
6
7
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
7
8
 
@@ -1,11 +1,15 @@
1
- import { MultiSelectOption } from 'lib/types/options.type';
2
1
  import { DefineComponent, Slot } from 'vue';
2
+
3
+ import {
4
+ DropdownProps,
5
+ Option,
6
+ } from '../../components/dropdown/Dropdown.vue.d';
7
+
8
+ import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.d';
3
9
  import { CalendarProps } from '../calendar/Calendar.vue.d';
4
10
  import { QueryParams } from '../datatable/DataTable.vue.d';
5
- import { DropdownProps } from '../dropdown/Dropdown.vue.d';
6
11
  import { InputRangeNumberProps } from '../inputrangenumber/InputRangeNumber.vue.d';
7
12
  import { MultiSelectProps } from '../multiselect/MultiSelect.vue.d';
8
- import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.d';
9
13
 
10
14
  export type FilterMatchMode =
11
15
  | 'CONTAINS'
@@ -33,8 +37,8 @@ export interface MultiSelectFilterField extends MultiSelectProps {
33
37
  optionField?: string; // @example - actionOptions
34
38
  params?: QueryParams; // Additional QueryParams for the fetchOptionFn
35
39
  fetchOptionFn?:
36
- | ((args?: any) => MultiSelectOption[] | undefined) // Sync function to fetch options
37
- | ((args?: any) => Promise<MultiSelectOption[] | undefined>); // Async function
40
+ | ((args?: any) => Option[] | undefined) // Sync function to fetch options
41
+ | ((args?: any) => Promise<Option[] | undefined>); // Async function
38
42
  }
39
43
 
40
44
  export interface DropdownFilterField extends DropdownProps {
@@ -50,8 +54,8 @@ export interface DropdownFilterField extends DropdownProps {
50
54
  optionField?: string; // @example - actionOptions
51
55
  params?: QueryParams; // Additional QueryParams for the fetchOptionFn
52
56
  fetchOptionFn?:
53
- | ((args?: any) => MultiSelectOption[] | undefined) // Sync function to fetch options
54
- | ((args?: any) => Promise<MultiSelectOption[]> | undefined); // Async function
57
+ | ((args?: any) => Option[] | undefined) // Sync function to fetch options
58
+ | ((args?: any) => Promise<Option[]> | undefined); // Async function
55
59
  }
56
60
 
57
61
  export interface RangeNumberFilterField extends InputRangeNumberProps {
@@ -88,6 +92,7 @@ export interface ButtonSelectTreeFilterField
88
92
  * @default to Select Group|Category
89
93
  */
90
94
  buttonLabel?: string;
95
+ params?: QueryParams; // Override QueryParams for the fetchTree
91
96
  }
92
97
 
93
98
  export interface CalendarFilterField extends CalendarProps {
@@ -106,7 +111,7 @@ export type FilterField =
106
111
 
107
112
  export type FilterOptions<Opt = Record<string, boolean>> = Record<
108
113
  keyof Opt,
109
- MultiSelectOption[]
114
+ Option[]
110
115
  >;
111
116
 
112
117
  export type LoadingFilters = Record<string, boolean>;
@@ -5,11 +5,12 @@ import {
5
5
  MaybeArray,
6
6
  } from 'vee-validate';
7
7
  import { Ref, Slot } from 'vue';
8
+
8
9
  import {
9
10
  ClassComponent,
10
11
  GlobalComponentConstructor,
11
- Nullable,
12
12
  HintedString,
13
+ Nullable,
13
14
  } from '../ts-helpers';
14
15
 
15
16
  export type Condition =
@@ -103,6 +103,7 @@ export type WangsIcons =
103
103
  | 'filter'
104
104
  | 'folder'
105
105
  | 'folder-add-line'
106
+ | 'gate'
106
107
  | 'group'
107
108
  | 'hand-coin'
108
109
  | 'handheld'
@@ -151,6 +152,7 @@ export type WangsIcons =
151
152
  | 'qr'
152
153
  | 'qr-scan'
153
154
  | 'reception'
155
+ | 'recycle-bin'
154
156
  | 'refresh'
155
157
  | 'replace-tag'
156
158
  | 'report-tag'
@@ -9,6 +9,7 @@
9
9
  *
10
10
  */
11
11
  import { TransitionProps, VNode } from 'vue';
12
+
12
13
  import { ComponentHooks } from '../basecomponent';
13
14
  import { PassThroughOptions } from '../passthrough';
14
15
  import {
@@ -141,6 +141,12 @@ export interface ImageCompressorProps {
141
141
  * @default true
142
142
  */
143
143
  showInfo?: boolean;
144
+ /**
145
+ * Change the requirements of the photo
146
+ *
147
+ * @default undefined - will use maxSizeRequirement, imageTypeRequirement from LocaleConfig
148
+ */
149
+ customRequirements?: string[];
144
150
  /**
145
151
  * Show dialog confirmation before delete the image.
146
152
  */
@@ -1,39 +1,33 @@
1
- export * from '.././components';
2
- export { default as Animation } from './animation/Animation.vue';
3
1
  export { default as ApproverInfo } from './approverinfo/ApproverInfo.vue';
4
2
  export { default as Badge } from './badge/Badge.vue';
5
3
  export { default as BadgeGroup } from './badgegroup/BadgeGroup.vue';
6
- export { default as BaseTree } from '.././components/basetree/BaseTree.vue';
4
+ export { default as BaseTree } from './basetree/BaseTree.vue';
7
5
  export { default as Breadcrumb } from './breadcrumb/Breadcrumb.vue';
8
6
  export { default as Button } from './button/Button.vue';
9
7
  export { default as ButtonBulkAction } from './buttonbulkaction/ButtonBulkAction.vue';
10
8
  export { default as ButtonCopy } from './buttoncopy/ButtonCopy.vue';
11
9
  export { default as ButtonDownload } from './buttondownload/ButtonDownload.vue';
12
10
  export { default as ButtonFilter } from './buttonfilter/ButtonFilter.vue';
13
- export { default as ButtonImportExcel } from './buttonImportExcel/ButtonImportExcel.vue';
14
11
  export { default as ButtonRadio } from './buttonradio/ButtonRadio.vue';
12
+ export { default as ButtonScan } from './buttonscan/ButtonScan.vue';
15
13
  export { default as ButtonSearch } from './buttonsearch/ButtonSearch.vue';
16
- export { default as ButtonSelectTree } from '.././components/buttonselecttree/ButtonSelectTree.vue';
17
- export { default as ButtonSplit } from './buttonsplit/ButtonSplit.vue';
14
+ export { default as ButtonSelectTree } from './buttonselecttree/ButtonSelectTree.vue';
15
+ export { default as ButtonSync } from './buttonsync/ButtonSync.vue';
18
16
  export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
19
- export { default as Calendar } from '.././components/calendar/Calendar.vue';
17
+ export { default as Calendar } from './calendar/Calendar.vue';
20
18
  export { default as Card } from './card/Card.vue';
21
19
  export { default as Checkbox } from './checkbox/Checkbox.vue';
22
- export { default as CodeSnippet } from './codesnippet/CodeSnippet.vue';
23
20
  export { default as DataTable } from './datatable/DataTable.vue';
24
21
  export { default as Dialog } from './dialog/Dialog.vue';
25
22
  export { default as DialogConfirm } from './dialogconfirm/DialogConfirm.vue';
26
23
  export { default as DialogForm } from './dialogform/DialogForm.vue';
27
- export { default as DialogSelectTree } from '.././components/dialogselecttree/DialogSelectTree.vue';
24
+ export { default as DialogSelectTree } from './dialogselecttree/DialogSelectTree.vue';
28
25
  export { default as Dropdown } from './dropdown/Dropdown.vue';
29
- export { default as Editor } from './editor/Editor.vue';
30
26
  export { default as FileUpload } from './fileupload/FileUpload.vue';
31
- export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
32
27
  export { default as Form } from './form/Form.vue';
33
28
  export { default as Icon } from './icon/Icon.vue';
34
29
  export { default as Image } from './image/Image.vue';
35
30
  export { default as ImageCompressor } from './imagecompressor/ImageCompressor.vue';
36
- export { default as InlineMessage } from '.././components/inlinemessage/InlineMessage.vue';
37
31
  export { default as InputBadge } from './inputbadge/InputBadge.vue';
38
32
  export { default as InputCurrency } from './inputcurrency/InputCurrency.vue';
39
33
  export { default as InputEmail } from './inputemail/InputEmail.vue';
@@ -44,20 +38,24 @@ export { default as InputRangeNumber } from './inputrangenumber/InputRangeNumber
44
38
  export { default as InputText } from './inputtext/InputText.vue';
45
39
  export { default as InputURL } from './inputurl/InputURL.vue';
46
40
  export { default as InvisibleField } from './invisiblefield/InvisibleField.vue';
47
- export { default as LanguageDropdown } from './languagedropdown/LanguageDropdown.vue';
48
41
  export { default as LiteDropdown } from './litedropdown/LiteDropdown.vue';
49
42
  export { default as Loading } from './loading/Loading.vue';
50
43
  export { default as Menu } from './menu/Menu.vue';
51
44
  export { default as MultiSelect } from './multiselect/MultiSelect.vue';
52
45
  export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
53
- export { default as ProgressBar } from './progressbar/ProgressBar.vue';
54
- export { default as QuickFilter } from './quickfilter/QuickFilter.vue';
55
46
  export { default as TabMenu } from './tabmenu/TabMenu.vue';
56
47
  export { default as Textarea } from './textarea/Textarea.vue';
57
48
  export { default as Timeline } from './timeline/Timeline.vue';
58
49
  export { default as Toast } from './toast/Toast.vue';
59
50
  export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
60
- export { default as TooltipSpan } from './tooltipspan/TooltipSpan.vue';
61
- export { default as Tree } from '.././components/tree/Tree.vue';
62
- export { default as UserGroup } from './usergroup/UserGroup.vue';
51
+ export { default as Tree } from './tree/Tree.vue';
63
52
  export { default as UserName } from './username/UserName.vue';
53
+
54
+ export { default as AssetInfo } from './assetinfo/AssetInfo.vue';
55
+ export { default as ButtonSelectUser } from './buttonselectuser/ButtonSelectUser.vue';
56
+ export { default as ButtonViewLog } from './buttonviewlog/ButtonViewLog.vue';
57
+ export { default as DialogSelectUser } from './dialogselectuser/DialogSelectUser.vue';
58
+ export { default as UserWithIcon } from './userwithicon/UserWithIcon.vue';
59
+ export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
60
+ export { default as InputSearch } from './inputsearch/InputSearch.vue';
61
+ export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue';
@@ -1,4 +1,8 @@
1
1
  import { CurrencyFormat } from '../InputCurrency.vue.d';
2
2
  declare const getCurrency: (code?: string) => CurrencyFormat;
3
- declare const formatCurrency: (value?: number | string | null, currency?: string, prefix?: boolean) => string;
3
+ declare const formatCurrency: (
4
+ value?: number | string | null,
5
+ currency?: string,
6
+ prefix?: boolean,
7
+ ) => string;
4
8
  export { getCurrency, formatCurrency };
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import { InputTextEmits, InputTextProps } from '../inputtext/InputText.vue.d';
3
4
 
4
5
  /**
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent, Slot } from 'vue';
2
+
2
3
  import { CustomValidation } from '../form/Form.vue.d';
3
4
 
4
5
  export type InputNumberEvent = number | string | undefined;
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import { CustomValidation } from '../form/Form.vue.d';
3
4
 
4
5
  export type InputPasswordProps = {
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import { CustomValidation } from '../form/Form.vue.d';
3
4
 
4
5
  export interface InputrangeNumberLocaleConfig {
@@ -0,0 +1,36 @@
1
+ import {
2
+ ClassComponent,
3
+ GlobalComponentConstructor,
4
+ } from '../../components/ts-helpers';
5
+
6
+ export type InputSearchEmits = {
7
+ /**
8
+ * Emits when the Enter key is pressed.
9
+ */
10
+ search: [payload?: string];
11
+ };
12
+
13
+ /**
14
+ * **WangsVue - InputSearch**
15
+ *
16
+ * _InputSearch is an search input for fixed asset navbar_
17
+ *
18
+ * [Live Demo](https://fewangsit.github.io/wangsvue/inputsearch)
19
+ * --- ---
20
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
21
+ *
22
+ * @group Component
23
+ */
24
+ declare class InputSearch extends ClassComponent<
25
+ unknown,
26
+ unknown,
27
+ InputSearchEmits
28
+ > {}
29
+
30
+ declare module '@vue/runtime-core' {
31
+ interface GlobalComponents {
32
+ InputSearch: GlobalComponentConstructor<InputSearch>;
33
+ }
34
+ }
35
+
36
+ export default InputSearch;
@@ -8,9 +8,10 @@
8
8
  *
9
9
  */
10
10
  import { InputHTMLAttributes, Slot } from 'vue';
11
+
11
12
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, Nullable } from '../ts-helpers';
13
13
  import { CustomValidation } from '../form/Form.vue.d';
14
+ import { ClassComponent, Nullable } from '../ts-helpers';
14
15
  export declare type InputTextPassThroughOptionType<T = any> =
15
16
  | InputTextPassThroughAttributes
16
17
  | ((
@@ -1,9 +1,11 @@
1
1
  import { Slot } from 'vue';
2
- import { ClassComponent } from '../ts-helpers';
2
+
3
3
  import {
4
4
  InputTextEmits,
5
5
  InputTextProps,
6
- } from 'lib/components/inputtext/InputText.vue.d';
6
+ } from '../../components/inputtext/InputText.vue.d';
7
+
8
+ import { ClassComponent } from '../ts-helpers';
7
9
 
8
10
  /**
9
11
  * InputURL component props
@@ -1,36 +1,32 @@
1
- import { Nullable } from '../ts-helpers';
2
- type FieldValue = Nullable<string> | Nullable<number> | string | string[] | number | number[] | boolean | undefined | null | object;
3
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
- value?: FieldValue;
5
- fieldName?: string;
6
- }>, {
7
- value: any;
8
- fieldName: string;
9
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
10
- value?: FieldValue;
11
- fieldName?: string;
12
- }>, {
13
- value: any;
14
- fieldName: string;
15
- }>>>, {
16
- value: FieldValue;
17
- fieldName: string;
18
- }, {}>;
19
- export default _default;
20
- type __VLS_WithDefaults<P, D> = {
21
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
22
- default: D[K];
23
- }> : P[K];
24
- };
25
- type __VLS_Prettify<T> = {
26
- [K in keyof T]: T[K];
27
- } & {};
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToOption<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
1
+ import { ClassComponent, Nullable } from '../ts-helpers';
2
+
3
+ export type FieldValue =
4
+ | Nullable<string>
5
+ | Nullable<number>
6
+ | string
7
+ | string[]
8
+ | number
9
+ | number[]
10
+ | boolean
11
+ | undefined
12
+ | null
13
+ | object;
14
+
15
+ export interface InvisibleFieldProps {
16
+ value?: FieldValue;
17
+ fieldName?: string;
18
+ }
19
+
20
+ declare class InvisibleField extends ClassComponent<
21
+ InvisibleFieldProps,
22
+ unknown,
23
+ unknown
24
+ > {}
25
+
26
+ declare module 'vue' {
27
+ export interface GlobalComponents {
28
+ InvisibleField: typeof InvisibleField;
29
+ }
30
+ }
31
+
32
+ export default InvisibleField;
@@ -1,26 +1,9 @@
1
- import { DropdownEmits, DropdownProps } from '../dropdown/Dropdown.vue.d';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
-
4
- export interface LanguageOption {
5
- /**
6
- * The name of the language, written in English for universal readability.
7
- */
8
- /**
9
- * ISO 639-1 language code (e.g., "en" for English, "fr" for French).
10
- */
11
- language?: string;
12
-
13
- /**
14
- * The name of the language in English (e.g., "English", "Français").
15
- */
16
- name: string;
1
+ import {
2
+ DropdownEmits,
3
+ DropdownProps,
4
+ } from '../../components/dropdown/Dropdown.vue.d';
17
5
 
18
- /**
19
- * The URL of the country's flag image.
20
- * Flags are sourced from https://flagcdn.com and are typically in SVG format for high-quality resolution.
21
- */
22
- flag?: string;
23
- }
6
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
24
7
 
25
8
  export type LanguageDropdownProps = DropdownProps & {};
26
9
  export type LanguageDropdownEmits = DropdownEmits & {};
@@ -1,13 +1,15 @@
1
- import { DropdownOption, OptionValue } from 'lib/types/options.type';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
1
  import { DropdownChangeEvent } from 'primevue/dropdown';
4
2
 
3
+ import { Option, OptionValue } from '../../components/dropdown/Dropdown.vue.d';
4
+
5
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+
5
7
  /**
6
8
  * Lite dropdown component props
7
9
  */
8
10
  export interface LiteDropdownProps {
9
11
  modelValue: OptionValue | undefined;
10
- options: DropdownOption[] | undefined;
12
+ options: Option[] | undefined;
11
13
  /**
12
14
  * Specify the property name of option to be used as label.
13
15
  *
@@ -1,8 +1,8 @@
1
1
  import { Ref } from 'vue';
2
2
  export interface LoadingStore {
3
- loading: Ref<boolean>;
4
- message: Ref<string | undefined>;
5
- setLoading: (state: boolean, message?: string) => void;
3
+ loading: Ref<boolean>;
4
+ message: Ref<string | undefined>;
5
+ setLoading: (state: boolean, message?: string) => void;
6
6
  }
7
7
  declare const useLoadingStore: () => LoadingStore;
8
8
  export default useLoadingStore;
@@ -10,9 +10,10 @@
10
10
  *
11
11
  */
12
12
  import { TransitionProps, VNode } from 'vue';
13
+
13
14
  import { ComponentHooks } from '../basecomponent';
14
- import { PassThroughOptions } from '../passthrough';
15
15
  import { MenuItem } from '../menuitem';
16
+ import { PassThroughOptions } from '../passthrough';
16
17
  import {
17
18
  ClassComponent,
18
19
  GlobalComponentConstructor,
@@ -1,9 +1,12 @@
1
- import { DropdownLocaleConfig } from '../dropdown/Dropdown.vue.d';
1
+ import {
2
+ DropdownLocaleConfig,
3
+ Option,
4
+ OptionValue,
5
+ } from '../../components/dropdown/Dropdown.vue.d';
6
+
2
7
  import { CustomValidation } from '../form/Form.vue.d';
3
8
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
9
 
5
- import { MultiSelectOption, OptionValue } from 'lib/types/options.type';
6
-
7
10
  export type MultiSelectLocaleConfig = DropdownLocaleConfig & {};
8
11
 
9
12
  /**
@@ -25,7 +28,7 @@ export interface MultiSelectProps {
25
28
  /**
26
29
  * List of options to display.
27
30
  */
28
- options?: MultiSelectOption[] | string[];
31
+ options?: Option[] | string[];
29
32
 
30
33
  /**
31
34
  * Specify the property name of option to be used as label.
@@ -8,6 +8,7 @@
8
8
  *
9
9
  */
10
10
  import { TransitionProps, VNode } from 'vue';
11
+
11
12
  import { ComponentHooks } from '../basecomponent';
12
13
  import { PassThroughOptions } from '../passthrough';
13
14
  import {
@@ -8,6 +8,7 @@
8
8
  *
9
9
  */
10
10
  import { VNode } from 'vue';
11
+
11
12
  import { ComponentHooks } from '../basecomponent';
12
13
  import { MenuItem } from '../menuitem';
13
14
  import { PassThroughOptions } from '../passthrough';
@@ -263,7 +264,7 @@ export type TabMenuEmits = {
263
264
  * Callback to invoke when an active tab is changed.
264
265
  * @param {TabMenuChangeEvent} event - Custom tab change event.
265
266
  */
266
- 'tab-change': [event: TabMenuChangeEvent];
267
+ 'tabChange': [event: TabMenuChangeEvent];
267
268
  'update:activeIndex': [index: number];
268
269
  };
269
270
 
@@ -1,11 +1,12 @@
1
1
  import { TextareaHTMLAttributes } from 'vue';
2
+
3
+ import { CustomValidation } from '../form/Form.vue.d';
2
4
  import {
3
5
  ClassComponent,
4
6
  GlobalComponentConstructor,
5
7
  Nullable,
6
8
  Numberish,
7
9
  } from '../ts-helpers.d';
8
- import { CustomValidation } from '../form/Form.vue.d';
9
10
 
10
11
  export interface TextareaLocaleConfig {
11
12
  /**
@@ -1,3 +1,4 @@
1
+ import { BadgeProps } from '../badge/Badge.vue.d';
1
2
  import { JSONContent } from '../editor/Editor.vue.d';
2
3
  import { ClassComponent } from '../ts-helpers';
3
4
 
@@ -26,6 +27,10 @@ export interface DetailText {
26
27
  value: string;
27
28
  }
28
29
 
30
+ export interface DetailBadge extends BadgeProps {
31
+ type: 'badge';
32
+ }
33
+
29
34
  export interface DetailUserText {
30
35
  type: 'userText';
31
36
  user: {
@@ -62,7 +67,8 @@ export type DetailType =
62
67
  | DetailText
63
68
  | DetailUserText
64
69
  | DetailBullet
65
- | DetailJSONContent;
70
+ | DetailJSONContent
71
+ | DetailBadge;
66
72
 
67
73
  export type KeyValue = Record<string, string | DetailType>;
68
74
 
@@ -9,14 +9,15 @@
9
9
  *
10
10
  */
11
11
  import { TransitionProps, VNode } from 'vue';
12
+
12
13
  import { ComponentHooks } from '../basecomponent';
14
+ import { WangsIcons } from '../icon/Icon.vue.d';
13
15
  import { PassThroughOptions } from '../passthrough';
14
16
  import {
15
17
  ClassComponent,
16
18
  GlobalComponentConstructor,
17
19
  PassThrough,
18
20
  } from '../ts-helpers';
19
- import { WangsIcons } from '../icon/Icon.vue.d';
20
21
 
21
22
  export declare type ToastPassThroughOptionType =
22
23
  | ToastPassThroughAttributes
@@ -6,6 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { StyleValue } from 'vue';
9
+
9
10
  import { ComponentHooks } from '../basecomponent';
10
11
  import { PassThroughOptions } from '../passthrough';
11
12
  import {