@fewangsit/wangsvue-fats 1.0.0-alpha.20 → 1.0.0-alpha.22

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 (179) hide show
  1. package/event-bus/mitt.d.ts +25 -7
  2. package/package.json +1 -1
  3. package/plugins/WangsVue.d.ts +184 -16
  4. package/plugins/formValidation.d.ts +11 -2
  5. package/plugins/i18n.d.ts +23 -5
  6. package/utils/addAttachment.util.d.ts +18 -2
  7. package/utils/date.util.d.ts +33 -4
  8. package/utils/filterOptions.util.d.ts +4 -2
  9. package/utils/genPlaceholder.util.d.ts +11 -6
  10. package/utils/mergePropsWithDefaults.util.d.ts +4 -1
  11. package/utils/object.util.d.ts +14 -3
  12. package/utils/role.util.d.ts +5 -32
  13. package/utils/textFormatter.util.d.ts +15 -3
  14. package/assets/json/currencies.json.d.ts +0 -1068
  15. package/assets/lottie/admin/loading-page.lottie +0 -0
  16. package/assets/lottie/admin/loading-table.lottie +0 -0
  17. package/assets/lottie/admin/no-data.lottie +0 -0
  18. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  19. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  20. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  21. package/assets/lottie/workspace/loading-page.lottie +0 -0
  22. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  23. package/assets/lottie/workspace/loading-table.lottie +0 -0
  24. package/assets/lottie/workspace/no-data.lottie +0 -0
  25. package/build-entry.d.ts +0 -14
  26. package/components/animation/Animation.vue.d.ts +0 -24
  27. package/components/approverinfo/ApproverInfo.vue.d.ts +0 -51
  28. package/components/assetinfo/AssetInfo.vue.d.ts +0 -32
  29. package/components/badge/Badge.vue.d.ts +0 -73
  30. package/components/badgegroup/BadgeGroup.vue.d.ts +0 -52
  31. package/components/basecomponent/index.d.ts +0 -28
  32. package/components/basetree/BaseTree.vue.d.ts +0 -591
  33. package/components/basetree/TreeNode.vue.d.ts +0 -35
  34. package/components/breadcrumb/Breadcrumb.vue.d.ts +0 -26
  35. package/components/button/Button.vue.d.ts +0 -188
  36. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +0 -35
  37. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +0 -104
  38. package/components/buttoncopy/ButtonCopy.vue.d.ts +0 -26
  39. package/components/buttondownload/ButtonDownload.vue.d.ts +0 -49
  40. package/components/buttonfilter/ButtonFilter.vue.d.ts +0 -12
  41. package/components/buttonradio/ButtonRadio.vue.d.ts +0 -257
  42. package/components/buttonscan/ButtonScan.vue.d.ts +0 -201
  43. package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
  44. package/components/buttonscan/helpers/index.d.ts +0 -1
  45. package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
  46. package/components/buttonsearch/ButtonSearch.vue.d.ts +0 -38
  47. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +0 -200
  48. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  49. package/components/buttonsplit/ButtonSplit.vue.d.ts +0 -34
  50. package/components/buttonsync/ButtonSync.vue.d.ts +0 -10
  51. package/components/buttontoggle/ButtonToggle.vue.d.ts +0 -18
  52. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +0 -17
  53. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  54. package/components/calendar/Calendar.vue.d.ts +0 -570
  55. package/components/card/Card.vue.d.ts +0 -139
  56. package/components/checkbox/Checkbox.vue.d.ts +0 -329
  57. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  58. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  59. package/components/customcolumn/CustomColumn.vue.d.ts +0 -37
  60. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  61. package/components/datatable/DataTable.vue.d.ts +0 -735
  62. package/components/datatable/MultiRow.vue.d.ts +0 -16
  63. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  64. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  65. package/components/datatable/helpers/index.d.ts +0 -3
  66. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  67. package/components/datatable/store/dataTable.store.d.ts +0 -22
  68. package/components/dialog/Dialog.vue.d.ts +0 -464
  69. package/components/dialogconfirm/DialogConfirm.vue.d.ts +0 -164
  70. package/components/dialogform/DialogForm.vue.d.ts +0 -349
  71. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +0 -136
  72. package/components/dropdown/Dropdown.vue.d.ts +0 -264
  73. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  74. package/components/editor/Editor.vue.d.ts +0 -191
  75. package/components/editor/EditorButton.vue.d.ts +0 -15
  76. package/components/editor/MentionList.vue.d.ts +0 -35
  77. package/components/editor/MentionSection.vue.d.ts +0 -92
  78. package/components/editor/codeSnippetExtension.d.ts +0 -3
  79. package/components/editor/mentionSectionExtension.d.ts +0 -3
  80. package/components/editor/suggestion.d.ts +0 -2
  81. package/components/fieldwrapper/FieldWrapper.vue.d.ts +0 -69
  82. package/components/fileupload/FileUpload.vue.d.ts +0 -169
  83. package/components/filtercontainer/FilterContainer.vue.d.ts +0 -182
  84. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  85. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  86. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  87. package/components/form/Form.vue.d.ts +0 -316
  88. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  89. package/components/hardwaresync/store/device.store.d.ts +0 -36
  90. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  91. package/components/helpers/index.d.ts +0 -2
  92. package/components/helpers/label.d.ts +0 -15
  93. package/components/icon/Icon.vue.d.ts +0 -256
  94. package/components/image/Image.vue.d.ts +0 -403
  95. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  96. package/components/imagecompressor/ImageCompressor.vue.d.ts +0 -229
  97. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -32
  98. package/components/index.d.ts +0 -69
  99. package/components/inlinemessage/InlineMessage.vue.d.ts +0 -167
  100. package/components/inputbadge/InputBadge.vue.d.ts +0 -122
  101. package/components/inputcurrency/InputCurrency.vue.d.ts +0 -170
  102. package/components/inputcurrency/helpers/currency.helper.d.ts +0 -4
  103. package/components/inputemail/InputEmail.vue.d.ts +0 -25
  104. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  105. package/components/inputnumber/InputNumber.vue.d.ts +0 -282
  106. package/components/inputpassword/InputPassword.vue.d.ts +0 -32
  107. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +0 -99
  108. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  109. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +0 -120
  110. package/components/inputsearch/InputSearch.vue.d.ts +0 -32
  111. package/components/inputtext/InputText.vue.d.ts +0 -352
  112. package/components/inputurl/InputURL.vue.d.ts +0 -39
  113. package/components/invisiblefield/InvisibleField.vue.d.ts +0 -36
  114. package/components/languagedropdown/LanguageDropdown.vue.d.ts +0 -47
  115. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  116. package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
  117. package/components/litedropdown/LiteDropdown.vue.d.ts +0 -96
  118. package/components/loading/Loading.vue.d.ts +0 -47
  119. package/components/loading/store/loading.store.d.ts +0 -8
  120. package/components/menu/Menu.vue.d.ts +0 -390
  121. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  122. package/components/menu/helpers/index.d.ts +0 -1
  123. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  124. package/components/menuitem/index.d.ts +0 -106
  125. package/components/multiselect/MultiSelect.vue.d.ts +0 -192
  126. package/components/overlaypanel/OverlayPanel.vue.d.ts +0 -301
  127. package/components/passthrough/index.d.ts +0 -16
  128. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  129. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  130. package/components/tabmenu/TabMenu.vue.d.ts +0 -288
  131. package/components/tagtype/TagType.vue.d.ts +0 -21
  132. package/components/textarea/Textarea.vue.d.ts +0 -170
  133. package/components/timeline/Timeline.vue.d.ts +0 -121
  134. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  135. package/components/toast/Toast.vue.d.ts +0 -367
  136. package/components/toggleswitch/ToggleSwitch.vue.d.ts +0 -281
  137. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  138. package/components/tree/Tree.vue.d.ts +0 -148
  139. package/components/tree/helpers/filterNodeKeys.helper.d.ts +0 -16
  140. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +0 -6
  141. package/components/tree/helpers/index.d.ts +0 -3
  142. package/components/treesearchinput/TreeSearchInput.vue.d.ts +0 -16
  143. package/components/ts-helpers.d.ts +0 -83
  144. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  145. package/components/username/UserName.vue.d.ts +0 -113
  146. package/components/userwithicon/UserWithIcon.vue.d.ts +0 -21
  147. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  148. package/config/defaultProps.d.ts +0 -3
  149. package/config/index.d.ts +0 -3
  150. package/config/locale.d.ts +0 -3
  151. package/loading-page-BrQattYE.js +0 -1
  152. package/loading-page-CgfbWppy.js +0 -1
  153. package/loading-page-CoC9UhfC.js +0 -4
  154. package/loading-page-CoXtqoc9.js +0 -4
  155. package/loading-page-DbLuqCHa.js +0 -1
  156. package/loading-page-f8D03l3G.js +0 -4
  157. package/loading-plane-CgfbWppy.js +0 -1
  158. package/loading-plane-CoXtqoc9.js +0 -4
  159. package/loading-table-Bdr9ZhtP.js +0 -1
  160. package/loading-table-ByUoWqUo.js +0 -4
  161. package/loading-table-BygEMzFM.js +0 -4
  162. package/loading-table-BzrSQlA0.js +0 -1
  163. package/loading-table-D9bw9OcI.js +0 -4
  164. package/loading-table-chOgXi94.js +0 -1
  165. package/main.d.ts +0 -2
  166. package/no-data-CTKux8RI.js +0 -4
  167. package/no-data-Cgze_Rvp.js +0 -1
  168. package/no-data-DLHO1L_u.js +0 -4
  169. package/no-data-Dep79CBh.js +0 -1
  170. package/no-data-g0dJCy2p.js +0 -4
  171. package/no-data-y1X5WtcQ.js +0 -1
  172. package/plugins/i18n-extension.d.ts +0 -4
  173. package/style.css +0 -1
  174. package/types/options.type.d.ts +0 -16
  175. package/utils/getSeverityByAssetStatus.util.d.ts +0 -3
  176. package/utils/index.d.ts +0 -22
  177. package/utils/listenSidebarChanges.util.d.ts +0 -11
  178. package/wangsvue-fats.es.js +0 -133302
  179. package/wangsvue-fats.system.js +0 -489
@@ -1,69 +0,0 @@
1
- export * from '.././components';
2
- export { default as Animation } from './animation/Animation.vue';
3
- export { default as ApproverInfo } from './approverinfo/ApproverInfo.vue';
4
- export { default as AssetInfo } from './assetinfo/AssetInfo.vue';
5
- export { default as Badge } from './badge/Badge.vue';
6
- export { default as BadgeGroup } from './badgegroup/BadgeGroup.vue';
7
- export { default as BaseTree } from '.././components/basetree/BaseTree.vue';
8
- export { default as Breadcrumb } from './breadcrumb/Breadcrumb.vue';
9
- export { default as Button } from './button/Button.vue';
10
- export { default as ButtonBulkAction } from './buttonbulkaction/ButtonBulkAction.vue';
11
- export { default as ButtonCopy } from './buttoncopy/ButtonCopy.vue';
12
- export { default as ButtonDownload } from './buttondownload/ButtonDownload.vue';
13
- export { default as ButtonFilter } from './buttonfilter/ButtonFilter.vue';
14
- export { default as ButtonImportExcel } from './buttonImportExcel/ButtonImportExcel.vue';
15
- export { default as ButtonRadio } from './buttonradio/ButtonRadio.vue';
16
- export { default as ButtonScan } from '.././components/buttonscan/ButtonScan.vue';
17
- export { default as ButtonSearch } from './buttonsearch/ButtonSearch.vue';
18
- export { default as ButtonSelectTree } from '.././components/buttonselecttree/ButtonSelectTree.vue';
19
- export { default as ButtonSplit } from './buttonsplit/ButtonSplit.vue';
20
- export { default as ButtonSync } from '.././components/buttonsync/ButtonSync.vue';
21
- export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
22
- export { default as ButtonViewLog } from './buttonviewlog/ButtonViewLog.vue';
23
- export { default as Calendar } from '.././components/calendar/Calendar.vue';
24
- export { default as Card } from './card/Card.vue';
25
- export { default as Checkbox } from './checkbox/Checkbox.vue';
26
- export { default as CodeSnippet } from './codesnippet/CodeSnippet.vue';
27
- export { default as DataTable } from './datatable/DataTable.vue';
28
- export { default as Dialog } from './dialog/Dialog.vue';
29
- export { default as DialogConfirm } from './dialogconfirm/DialogConfirm.vue';
30
- export { default as DialogForm } from './dialogform/DialogForm.vue';
31
- export { default as DialogSelectTree } from '.././components/dialogselecttree/DialogSelectTree.vue';
32
- export { default as Dropdown } from './dropdown/Dropdown.vue';
33
- export { default as Editor } from './editor/Editor.vue';
34
- export { default as FileUpload } from './fileupload/FileUpload.vue';
35
- export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
36
- export { default as Form } from './form/Form.vue';
37
- export { default as Icon } from './icon/Icon.vue';
38
- export { default as Image } from './image/Image.vue';
39
- export { default as ImageCompressor } from './imagecompressor/ImageCompressor.vue';
40
- export { default as InlineMessage } from '.././components/inlinemessage/InlineMessage.vue';
41
- export { default as InputBadge } from './inputbadge/InputBadge.vue';
42
- export { default as InputCurrency } from './inputcurrency/InputCurrency.vue';
43
- export { default as InputEmail } from './inputemail/InputEmail.vue';
44
- export { default as InputNumber } from './inputnumber/InputNumber.vue';
45
- export { default as InputPassword } from './inputpassword/InputPassword.vue';
46
- export { default as InputPhoneNumber } from './inputphonenumber/InputPhoneNumber.vue';
47
- export { default as InputRangeNumber } from './inputrangenumber/InputRangeNumber.vue';
48
- export { default as InputSearch } from './inputsearch/InputSearch.vue';
49
- export { default as InputText } from './inputtext/InputText.vue';
50
- export { default as InputURL } from './inputurl/InputURL.vue';
51
- export { default as InvisibleField } from './invisiblefield/InvisibleField.vue';
52
- export { default as LanguageDropdown } from './languagedropdown/LanguageDropdown.vue';
53
- export { default as LiteDropdown } from './litedropdown/LiteDropdown.vue';
54
- export { default as Loading } from './loading/Loading.vue';
55
- export { default as Menu } from './menu/Menu.vue';
56
- export { default as MultiSelect } from './multiselect/MultiSelect.vue';
57
- export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
58
- export { default as ProgressBar } from './progressbar/ProgressBar.vue';
59
- export { default as QuickFilter } from './quickfilter/QuickFilter.vue';
60
- export { default as TabMenu } from './tabmenu/TabMenu.vue';
61
- export { default as Textarea } from './textarea/Textarea.vue';
62
- export { default as Timeline } from './timeline/Timeline.vue';
63
- export { default as Toast } from './toast/Toast.vue';
64
- export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
65
- export { default as TooltipSpan } from './tooltipspan/TooltipSpan.vue';
66
- export { default as Tree } from '.././components/tree/Tree.vue';
67
- export { default as UserGroup } from './usergroup/UserGroup.vue';
68
- export { default as UserName } from './username/UserName.vue';
69
- export { default as UserWithIcon } from './userwithicon/UserWithIcon.vue';
@@ -1,167 +0,0 @@
1
- /**
2
- *
3
- * InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms. It has one property, severity of the message.
4
- *
5
- * @module inlinemessage
6
- *
7
- */
8
- import { ComponentHooks } from '../basecomponent';
9
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
10
-
11
- export declare type InlineMessagePassThroughOptionType =
12
- | InlineMessagePassThroughAttributes
13
- | ((
14
- options: InlineMessagePassThroughMethodOptions,
15
- ) => InlineMessagePassThroughAttributes | string)
16
- | string
17
- | null
18
- | undefined;
19
-
20
- /**
21
- * Custom passthrough(pt) option method.
22
- */
23
- export interface InlineMessagePassThroughMethodOptions {
24
- /**
25
- * Defines instance.
26
- */
27
- instance: any;
28
- /**
29
- * Defines valid properties.
30
- */
31
- props: InlineMessageProps;
32
- /**
33
- * Defines current inline state.
34
- */
35
- state: InlineMessageState;
36
- /**
37
- * Defines valid attributes.
38
- */
39
- attrs: any;
40
- /**
41
- * Defines parent options.
42
- */
43
- parent: any;
44
- /**
45
- * Defines passthrough(pt) options in global config.
46
- */
47
- global: object | undefined;
48
- }
49
-
50
- /**
51
- * Custom passthrough(pt) options.
52
- * @see {@link InlineMessageProps.pt}
53
- */
54
- export interface InlineMessagePassThroughOptions {
55
- /**
56
- * Used to pass attributes to the root's DOM element.
57
- */
58
- root?: InlineMessagePassThroughOptionType;
59
- /**
60
- * Used to pass attributes to the icon's DOM element.
61
- */
62
- icon?: InlineMessagePassThroughOptionType;
63
- /**
64
- * Used to pass attributes to the text's DOM element.
65
- */
66
- text?: InlineMessagePassThroughOptionType;
67
- /**
68
- * Used to manage all lifecycle hooks.
69
- * @see {@link BaseComponent.ComponentHooks}
70
- */
71
- hooks?: ComponentHooks;
72
- }
73
-
74
- /**
75
- * Custom passthrough attributes for each DOM elements
76
- */
77
- export interface InlineMessagePassThroughAttributes {
78
- [key: string]: any;
79
- }
80
-
81
- /**
82
- * Defines current inline state in InlineMessage component.
83
- */
84
- export interface InlineMessageState {
85
- /**
86
- * Current visible state as a boolean.
87
- * @defaultValue false
88
- */
89
- visible: boolean;
90
- }
91
-
92
- /**
93
- * Defines valid emits in InlineMessage component.
94
- */
95
- export type InlineMessageEmits = {
96
- /**
97
- * Emits when close button is clicked.
98
- */
99
- close: [];
100
- };
101
-
102
- /**
103
- * Defines valid properties in InlineMessage component.
104
- */
105
- export interface InlineMessageProps {
106
- /**
107
- * Severity level of the message.
108
- * @default 'secondary'
109
- */
110
- severity?: 'success' | 'danger' | 'secondary' | undefined;
111
- /**
112
- * The title.
113
- */
114
- title?: string | undefined;
115
- /**
116
- * The message.
117
- */
118
- message?: string | undefined;
119
- /**
120
- * The list of item to be displayed after message.
121
- */
122
- lists?: string[] | undefined;
123
- /**
124
- * Wether show the Message Icon.
125
- *
126
- * @default true
127
- */
128
- showIcon?: boolean;
129
- /**
130
- * Wether the message is removable by close button.
131
- *
132
- * @default true
133
- */
134
- removable?: boolean;
135
- /**
136
- * The message section additional class.
137
- */
138
- messageWrapperClass?: string | string[];
139
- /**
140
- * Whether to show the loading state of the component.
141
- *
142
- * @default false
143
- */
144
- loading?: boolean;
145
- }
146
-
147
- /**
148
- * **Wangsvue - InlineMessage**
149
- *
150
- * _InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms. It has one property, severity of the message._
151
- *
152
- * @group Component
153
- *
154
- */
155
- declare class InlineMessage extends ClassComponent<
156
- InlineMessageProps,
157
- unknown,
158
- InlineMessageEmits
159
- > {}
160
-
161
- declare module '@vue/runtime-core' {
162
- interface GlobalComponents {
163
- InlineMessage: GlobalComponentConstructor<InlineMessage>;
164
- }
165
- }
166
-
167
- export default InlineMessage;
@@ -1,122 +0,0 @@
1
- import { CustomValidation } from '../form/Form.vue.d';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
-
4
- /**
5
- * InputBadge component props
6
- */
7
- export interface InputBadgeProps {
8
- /**
9
- * The type of input, whether input text or input email
10
- *
11
- * @default text
12
- */
13
- type?: 'text' | 'email';
14
- /**
15
- * The model value. Used for input without validation.
16
- */
17
- modelValue?: string[];
18
- /**
19
- * Sets the initial value of the field.
20
- * This will only available with option 'useValidator'.
21
- *
22
- * In use case like edit form, you need to display the previous inputted value.
23
- */
24
- initialValue?: string[];
25
- /**
26
- * Determines if the field uses a validator
27
- */
28
- useValidator?: boolean;
29
- /**
30
- * Exisitng values to be checkeed with validation 'exist' - check the validatorMessage props
31
- *
32
- * - Need to specify the custom validation : { empty: 'Error message when empty' } within props validatorMessage
33
- */
34
- existingValues?: string[];
35
- /**
36
- * Determines if the field is mandatory
37
- */
38
- mandatory?: boolean;
39
- /**
40
- * Set custom validator message.
41
- */
42
- validatorMessage?: string | CustomValidation;
43
- /**
44
- * Whether shows the invalid message or not.
45
- * The validator message will be shown if useValidator true and the field label is specified.
46
- *
47
- * Sets this props to 'false' to force the validator message always hidden.
48
- *
49
- * @default true
50
- */
51
- showValidatorMessage?: boolean;
52
- /**
53
- * Set the invalid state.
54
- *
55
- * @default - If field is mandatory, the field will be considered invalid if the input is empty.
56
- */
57
- invalid?: boolean;
58
- /**
59
- * This prop is required if you use this component in a form input.
60
- * Specify the unique field name, match with your needs for API request.
61
- *
62
- * @default 'inputBadge'
63
- */
64
- fieldName?: string;
65
- /**
66
- * The text input placholder.
67
- *
68
- * @default 'Enter value'
69
- */
70
- placeholder?: string;
71
- /**
72
- * Disabled state.
73
- */
74
- disabled?: boolean;
75
- /**
76
- * The field input label. Tell the user what input is this.
77
- */
78
- label?: string;
79
- /**
80
- * Show information to user about the field.
81
- */
82
- fieldInfo?: string;
83
- /**
84
- * If true, deleted badges will be replaced with `null` to preserve their index position.
85
- * Otherwise, the badge will be fully removed, shifting subsequent items.
86
- */
87
- preserveDeletedIndex?: boolean;
88
- }
89
-
90
- /**
91
- * InputBadge component emits
92
- */
93
- export type InputBadgeEmits = {
94
- /**
95
- * Emits when a new label added.
96
- */
97
- 'update:modelValue': [value: string[] | undefined];
98
- };
99
-
100
- /**
101
- * **WangsVue - InputBadge**
102
- *
103
- * _InputBadge is input text that changes it value into Badge component on Enter key pressed._
104
- *
105
- * --- ---
106
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
107
- *
108
- * @group Component
109
- */
110
- declare class InputBadge extends ClassComponent<
111
- InputBadgeProps,
112
- Record<string, unknown>,
113
- InputBadgeEmits
114
- > {}
115
-
116
- declare module '@vue/runtime-core' {
117
- interface GlobalComponents {
118
- InputBadge: GlobalComponentConstructor<InputBadge>;
119
- }
120
- }
121
-
122
- export default InputBadge;
@@ -1,170 +0,0 @@
1
- import { CustomValidation } from '../form/Form.vue.d';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
-
4
- export type CurrencyFormat = {
5
- name?: string;
6
- label: string;
7
- currency: string;
8
- symbol: string;
9
- locale: string;
10
- };
11
-
12
- export interface CurrencyValue {
13
- currency: string; // Currency ISO Code
14
- value?: number;
15
- }
16
-
17
- /**
18
- * Configuration interface for locale-specific settings of the InputCurrency component.
19
- */
20
- export interface InputCurrencyLocaleConfig {
21
- /**
22
- * Error message to display when the input is empty.
23
- *
24
- * @example '{label} must not be empty' - 'Amount must not be empty'
25
- */
26
- emptyInputErrorMessage?: string;
27
- }
28
-
29
- /**
30
- * InputCurrency component props
31
- */
32
- export interface InputCurrencyProps {
33
- /**
34
- * Number modelValue of the input.
35
- */
36
- modelValue?: CurrencyValue;
37
-
38
- /**
39
- * Sets the initial value of the field.
40
- * This will only available with option 'useValidator'.
41
- *
42
- * In usecase like edit form, you need to display the previous inputted value.
43
- */
44
- value?: number;
45
-
46
- /**
47
- * The input label. Tell the user what input is this.
48
- */
49
- label?: string;
50
-
51
- /**
52
- * Max input number value.
53
- */
54
- max?: number;
55
-
56
- /**
57
- * Wether the input should be validated with vee-validator or not.
58
- * If you use this component within form input, you need to set this props as true.
59
- */
60
- useValidator?: boolean;
61
-
62
- /**
63
- * This prop is required if you use this component in a form input.
64
- * Specify the unique field name, match with your needs for API request.
65
- *
66
- * @default 'numberInput'
67
- */
68
- fieldName?: string;
69
-
70
- /**
71
- * Wether this input field is required or not.
72
- */
73
- mandatory?: boolean;
74
-
75
- /**
76
- * Set custom validator message.
77
- * It is rarely use, this component has handled the validator message.
78
- *
79
- * @example: '{label} is required'
80
- * @example: { empty: '{label} field is required' }
81
- */
82
- validatorMessage?: string | CustomValidation<'empty'>;
83
-
84
- /**
85
- * Custom invalid state.
86
- */
87
- invalid?: boolean;
88
-
89
- /**
90
- * Specify the input placeholder.
91
- *
92
- * @default 'Enter {label}' or 'Enter number'
93
- */
94
- placeholder?: string;
95
-
96
- /**
97
- * Disabled the input.
98
- */
99
- disabled?: boolean;
100
-
101
- /**
102
- * Displays increment/decrement buttons.
103
- */
104
- showButtons?: boolean;
105
-
106
- /**
107
- * The width of input.
108
- */
109
- size?: 'small' | 'normal' | 'full';
110
-
111
- /**
112
- * Defines the behavior of the component.
113
- * @defaultValue currency
114
- */
115
- mode?: 'decimal' | 'currency';
116
-
117
- /**
118
- * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
119
- * @defaultValue true
120
- */
121
- useGrouping?: boolean;
122
-
123
- /**
124
- * Show information about the field.
125
- */
126
- fieldInfo?: string;
127
- inputnNumberId?: string;
128
- }
129
-
130
- /**
131
- * InputCurrency component emits
132
- */
133
- export type InputCurrencyEmits = {
134
- /**
135
- * Emits when the input has loosen focus.
136
- * The model value is the valid value from given min and max number.
137
- *
138
- * If the inputted number is above max, return the max. And vice versa.
139
- */
140
- 'update:modelValue': [payload?: CurrencyValue];
141
-
142
- /**
143
- * If you need to check validation, you can use this events.
144
- */
145
- 'input': [payload?: number];
146
- };
147
-
148
- /**
149
- * **WangsVue - InputCurrency**
150
- *
151
- * _Handle input Currency with form validation._
152
- *
153
- * --- ---
154
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
155
- *
156
- * @group form
157
- */
158
- declare class InputCurrency extends ClassComponent<
159
- InputCurrencyProps,
160
- unknown,
161
- InputCurrencyEmits
162
- > {}
163
-
164
- declare module '@vue/runtime-core' {
165
- interface GlobalComponents {
166
- InputCurrency: GlobalComponentConstructor<InputCurrency>;
167
- }
168
- }
169
-
170
- export default InputCurrency;
@@ -1,4 +0,0 @@
1
- import { CurrencyFormat } from '../InputCurrency.vue.d';
2
- declare const getCurrency: (code?: string) => CurrencyFormat;
3
- declare const formatCurrency: (value?: number | string | null, currency?: string, prefix?: boolean) => string;
4
- export { getCurrency, formatCurrency };
@@ -1,25 +0,0 @@
1
- import { DefineComponent } from 'vue';
2
- import { InputTextEmits, InputTextProps } from '../inputtext/InputText.vue.d';
3
-
4
- /**
5
- * InputEmail component props
6
- */
7
- export type InputEmailProps = Omit<InputTextProps, 'type'>;
8
-
9
- /**
10
- * InputEmail component emits
11
- */
12
- export type InputEmailEmits = InputTextEmits;
13
- /**
14
- * **WangsVue - InputEmail**
15
- *
16
- * _Handle input email with form validation._
17
- *
18
- * --- ---
19
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
20
- *
21
- * @group form
22
- */
23
- declare const InputEmail: DefineComponent<InputEmailProps, InputEmailEmits>;
24
-
25
- export default InputEmail;
@@ -1,141 +0,0 @@
1
- /**
2
- *
3
- * InputGroup displays text, icon, buttons and other content can be grouped next to an input.
4
- *
5
- * @module inputgroup
6
- *
7
- */
8
- import { VNode } from 'vue';
9
- import { ComponentHooks } from '../basecomponent';
10
- import { PassThroughOptions } from '../passthrough';
11
- import {
12
- ClassComponent,
13
- GlobalComponentConstructor,
14
- PassThrough,
15
- } from '../ts-helpers';
16
-
17
- export declare type InputGroupPassThroughOptionType =
18
- | InputGroupPassThroughAttributes
19
- | ((
20
- options: InputGroupPassThroughMethodOptions,
21
- ) => InputGroupPassThroughAttributes | string)
22
- | string
23
- | null
24
- | undefined;
25
-
26
- /**
27
- * Custom passthrough(pt) option method.
28
- */
29
- export interface InputGroupPassThroughMethodOptions {
30
- /**
31
- * Defines instance.
32
- */
33
- instance: any;
34
- /**
35
- * Defines valid attributes.
36
- */
37
- attrs: any;
38
- /**
39
- * Defines parent options.
40
- */
41
- parent: any;
42
- /**
43
- * Defines passthrough(pt) options in global config.
44
- */
45
- global: object | undefined;
46
- }
47
-
48
- /**
49
- * Custom passthrough(pt) options.
50
- * @see {@link InputGroupProps.pt}
51
- */
52
- export interface InputGroupPassThroughOptions {
53
- /**
54
- * Used to pass attributes to the root's DOM element.
55
- */
56
- root?: InputGroupPassThroughOptionType;
57
- /**
58
- * Used to manage all lifecycle hooks.
59
- * @see {@link BaseComponent.ComponentHooks}
60
- */
61
- hooks?: ComponentHooks;
62
- }
63
-
64
- /**
65
- * Custom passthrough attributes for each DOM elements
66
- */
67
- export interface InputGroupPassThroughAttributes {
68
- [key: string]: any;
69
- }
70
-
71
- /**
72
- * Defines valid properties in InputGroup component.
73
- */
74
- export interface InputGroupProps {
75
- /**
76
- * Used to pass attributes to DOM elements inside the component.
77
- * @type {InputGroupPassThroughOptions}
78
- */
79
- pt?: PassThrough<InputGroupPassThroughOptions>;
80
- /**
81
- * Used to configure passthrough(pt) options of the component.
82
- * @type {PassThroughOptions}
83
- */
84
- ptOptions?: PassThroughOptions;
85
- /**
86
- * @default default
87
- */
88
- ring?: 'none' | 'default';
89
- /**
90
- * When enabled, it removes component related styles in the core.
91
- * @defaultValue false
92
- */
93
- unstyled?: boolean;
94
- /**
95
- * @defaultValue false
96
- */
97
- invalid?: boolean;
98
- /**
99
- * @defaultValue false
100
- */
101
- disabled?: boolean;
102
- }
103
-
104
- /**
105
- * Defines valid slots in InputGroup component.
106
- */
107
- export interface InputGroupSlots {
108
- /**
109
- * Custom default template.
110
- */
111
- default(): VNode[];
112
- /**
113
- * Dynamic content template.
114
- * @todo
115
- */
116
- [key: string]: (node: any) => VNode[];
117
- }
118
-
119
- /**
120
- * **WangsVue - InputGroup**
121
- *
122
- * _InputGroup displays text, icon, buttons and other content can be grouped next to an input._
123
- *
124
- * --- ---
125
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
126
- *
127
- * @group Component
128
- */
129
- declare class InputGroup extends ClassComponent<
130
- InputGroupProps,
131
- InputGroupSlots,
132
- unknown
133
- > {}
134
-
135
- declare module '@vue/runtime-core' {
136
- interface GlobalComponents {
137
- InputGroup: GlobalComponentConstructor<InputGroup>;
138
- }
139
- }
140
-
141
- export default InputGroup;