@fewangsit/wangsvue-fats 1.0.0-alpha.0

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 (148) hide show
  1. package/components/animation/Animation.vue.d.ts +32 -0
  2. package/components/approverinfo/ApproverInfo.vue.d.ts +51 -0
  3. package/components/assetinfo/AssetInfo.vue.d.ts +44 -0
  4. package/components/badge/Badge.vue.d.ts +73 -0
  5. package/components/badgegroup/BadgeGroup.vue.d.ts +54 -0
  6. package/components/basecomponent/index.d.ts +28 -0
  7. package/components/basetree/BaseTree.vue.d.ts +596 -0
  8. package/components/basetree/TreeNode.vue.d.ts +35 -0
  9. package/components/breadcrumb/Breadcrumb.vue.d.ts +26 -0
  10. package/components/button/Button.vue.d.ts +189 -0
  11. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +35 -0
  12. package/components/buttonaddbyscan/ButtonAddByScan.vue.d.ts +40 -0
  13. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +105 -0
  14. package/components/buttoncopy/ButtonCopy.vue.d.ts +26 -0
  15. package/components/buttondownload/ButtonDownload.vue.d.ts +80 -0
  16. package/components/buttonfilter/ButtonFilter.vue.d.ts +12 -0
  17. package/components/buttonradio/ButtonRadio.vue.d.ts +258 -0
  18. package/components/buttonscan/ButtonScan.vue.d.ts +202 -0
  19. package/components/buttonsearch/ButtonSearch.vue.d.ts +38 -0
  20. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +46 -0
  21. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +201 -0
  22. package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -0
  23. package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
  24. package/components/buttontoggle/ButtonToggle.vue.d.ts +19 -0
  25. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
  26. package/components/calendar/Calendar.vue.d.ts +598 -0
  27. package/components/card/Card.vue.d.ts +140 -0
  28. package/components/carousel/Carousel.vue.d.ts +28 -0
  29. package/components/checkbox/Checkbox.vue.d.ts +330 -0
  30. package/components/customcolumn/CustomColumn.vue.d.ts +37 -0
  31. package/components/datatable/DataTable.vue.d.ts +745 -0
  32. package/components/datepicker/DatePicker.vue.d.ts +52 -0
  33. package/components/daypicker/DayPicker.vue.d.ts +52 -0
  34. package/components/dialog/Dialog.vue.d.ts +465 -0
  35. package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
  36. package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
  37. package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
  38. package/components/dialogconfirm/DialogConfirm.vue.d.ts +165 -0
  39. package/components/dialogform/DialogForm.vue.d.ts +350 -0
  40. package/components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts +106 -0
  41. package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
  42. package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
  43. package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +33 -0
  44. package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -0
  45. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +137 -0
  46. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  47. package/components/dialogselectuser/options/columns.d.ts +3 -0
  48. package/components/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
  49. package/components/dropdown/Dropdown.vue.d.ts +288 -0
  50. package/components/editor/Editor.vue.d.ts +192 -0
  51. package/components/fieldwrapper/FieldWrapper.vue.d.ts +86 -0
  52. package/components/fileupload/FileUpload.vue.d.ts +170 -0
  53. package/components/filtercontainer/FilterContainer.vue.d.ts +217 -0
  54. package/components/form/Form.vue.d.ts +319 -0
  55. package/components/icon/Icon.vue.d.ts +260 -0
  56. package/components/image/Image.vue.d.ts +411 -0
  57. package/components/imagecompressor/ImageCompressor.vue.d.ts +237 -0
  58. package/components/index.d.ts +83 -0
  59. package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
  60. package/components/inputbadge/InputBadge.vue.d.ts +122 -0
  61. package/components/inputcurrency/InputCurrency.vue.d.ts +170 -0
  62. package/components/inputcurrency/helpers/currency.helper.d.ts +8 -0
  63. package/components/inputemail/InputEmail.vue.d.ts +26 -0
  64. package/components/inputnumber/InputNumber.vue.d.ts +288 -0
  65. package/components/inputotp/InputOtp.vue.d.ts +3 -0
  66. package/components/inputpassword/InputPassword.vue.d.ts +33 -0
  67. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +99 -0
  68. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +121 -0
  69. package/components/inputsearch/InputSearch.vue.d.ts +36 -0
  70. package/components/inputtext/InputText.vue.d.ts +353 -0
  71. package/components/inputurl/InputURL.vue.d.ts +41 -0
  72. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -0
  73. package/components/languagedropdown/LanguageDropdown.vue.d.ts +33 -0
  74. package/components/languageswitcher/LanguageSwitcher.vue.d.ts +15 -0
  75. package/components/litedropdown/LiteDropdown.vue.d.ts +98 -0
  76. package/components/loading/Loading.vue.d.ts +47 -0
  77. package/components/loading/store/loading.store.d.ts +8 -0
  78. package/components/menu/Menu.vue.d.ts +391 -0
  79. package/components/menuitem/index.d.ts +106 -0
  80. package/components/multiselect/MultiSelect.vue.d.ts +195 -0
  81. package/components/overlaypanel/OverlayPanel.vue.d.ts +302 -0
  82. package/components/paginator/Paginator.vue.d.ts +285 -0
  83. package/components/passthrough/index.d.ts +16 -0
  84. package/components/steps/Steps.vue.d.ts +20 -0
  85. package/components/tabmenu/TabMenu.vue.d.ts +104 -0
  86. package/components/tagtype/TagType.vue.d.ts +26 -0
  87. package/components/textarea/Textarea.vue.d.ts +171 -0
  88. package/components/timeline/Timeline.vue.d.ts +140 -0
  89. package/components/toast/Toast.vue.d.ts +368 -0
  90. package/components/toggleswitch/ToggleSwitch.vue.d.ts +282 -0
  91. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  92. package/components/tree/Tree.vue.d.ts +151 -0
  93. package/components/tree/helpers/filterNodeKeys.helper.d.ts +22 -0
  94. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +8 -0
  95. package/components/treesearchinput/TreeSearchInput.vue.d.ts +16 -0
  96. package/components/ts-helpers.d.ts +91 -0
  97. package/components/username/UserName.vue.d.ts +123 -0
  98. package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
  99. package/components/validatormessage/ValidatorMessage.vue.d.ts +12 -0
  100. package/config/defaultProps.d.ts +3 -0
  101. package/config/index.d.ts +3 -0
  102. package/config/locale.d.ts +3 -0
  103. package/directives/focus.d.ts +7 -0
  104. package/directives/index.d.ts +1 -0
  105. package/event-bus/index.d.ts +66 -0
  106. package/event-bus/mitt.d.ts +41 -0
  107. package/loading-page-BrQattYE.js +1 -0
  108. package/loading-page-CgfbWppy.js +1 -0
  109. package/loading-page-CoC9UhfC.js +4 -0
  110. package/loading-page-CoXtqoc9.js +4 -0
  111. package/loading-page-DbLuqCHa.js +1 -0
  112. package/loading-page-f8D03l3G.js +4 -0
  113. package/loading-plane-CgfbWppy.js +1 -0
  114. package/loading-plane-CoXtqoc9.js +4 -0
  115. package/loading-table-Bdr9ZhtP.js +1 -0
  116. package/loading-table-ByUoWqUo.js +4 -0
  117. package/loading-table-BygEMzFM.js +4 -0
  118. package/loading-table-BzrSQlA0.js +1 -0
  119. package/loading-table-D9bw9OcI.js +4 -0
  120. package/loading-table-chOgXi94.js +1 -0
  121. package/main.d.ts +34 -0
  122. package/no-data-CTKux8RI.js +4 -0
  123. package/no-data-Cgze_Rvp.js +1 -0
  124. package/no-data-DLHO1L_u.js +4 -0
  125. package/no-data-Dep79CBh.js +1 -0
  126. package/no-data-g0dJCy2p.js +4 -0
  127. package/no-data-y1X5WtcQ.js +1 -0
  128. package/package.json +27 -0
  129. package/plugins/VueHtmlToPaper.d.ts +11 -0
  130. package/plugins/WangsVue.d.ts +311 -0
  131. package/plugins/formValidation.d.ts +20 -0
  132. package/plugins/i18n-extension.d.ts +4 -0
  133. package/plugins/i18n.d.ts +103 -0
  134. package/stats.html +4949 -0
  135. package/style.css +1 -0
  136. package/utils/date.util.d.ts +79 -0
  137. package/utils/exportToExcel.util.d.ts +27 -0
  138. package/utils/formatTagCode.util.d.ts +1 -0
  139. package/utils/getStatusSeverity.util.d.ts +33 -0
  140. package/utils/index.d.ts +9 -0
  141. package/utils/isBasic.util.d.ts +1 -0
  142. package/utils/listenSidebarChanges.util.d.ts +16 -0
  143. package/utils/object.util.d.ts +27 -0
  144. package/utils/role.util.d.ts +70 -0
  145. package/utils/toast.util.d.ts +120 -0
  146. package/utils/xlsx.util.d.ts +19 -0
  147. package/wangsvue-fats.js +57238 -0
  148. package/wangsvue-fats.system.js +427 -0
@@ -0,0 +1,288 @@
1
+ import { DefineComponent, Slot } from 'vue';
2
+
3
+ import { CustomValidation } from '../form/Form.vue.d';
4
+
5
+ export type InputNumberEvent = number | string | undefined;
6
+
7
+ export interface InputNumberLocaleConfig {
8
+ /**
9
+ * @example 'Tulis {label}' - label can be ommited, and if exist will be replaced with props.label
10
+ */
11
+ defaultPlaceholder?: string;
12
+
13
+ /**
14
+ * @example '{label} sudah ada' - label will be replaced with props.label
15
+ */
16
+ alreadyExistInvalidText?: string;
17
+
18
+ /**
19
+ * @example '{label} must not be empty' - label will be replaced with props.label
20
+ */
21
+ emptyInvalidText?: string;
22
+ }
23
+
24
+ /**
25
+ * InputNumber component props
26
+ */
27
+ export interface InputNumberProps {
28
+ /**
29
+ * Number modelValue of the input.
30
+ */
31
+ modelValue?: number;
32
+
33
+ /**
34
+ * Sets the initial value of the field.
35
+ * This will only available with option 'useValidator'.
36
+ *
37
+ * In use case like edit form, you need to display the previous inputted value.
38
+ */
39
+ value?: number;
40
+
41
+ /**
42
+ * Existing values to be checked with validation 'exist' - check the validatorMessage props
43
+ *
44
+ * - Need to specify the custom validation : { empty: 'Error message when empty' } within props validatorMessage
45
+ */
46
+ existingValues?: number[];
47
+
48
+ /**
49
+ * The input label. Tell the user what input is this.
50
+ */
51
+ label?: string;
52
+
53
+ /**
54
+ * Min input number value.
55
+ */
56
+ min?: number;
57
+
58
+ /**
59
+ * Max input number value.
60
+ */
61
+ max?: number;
62
+
63
+ /**
64
+ * The maximum input length.
65
+ *
66
+ * @default 16 digit number
67
+ */
68
+ maxDigit?: number;
69
+
70
+ /**
71
+ * Set the pad start of value.
72
+ *
73
+ * Insert '0' in the front of value
74
+ * @default 1
75
+ */
76
+ padStart?: number;
77
+
78
+ /**
79
+ * Weather the input should be validated with vee-validator or not.
80
+ * If you use this component within form input, you need to set this props as true.
81
+ */
82
+ useValidator?: boolean;
83
+
84
+ /**
85
+ * This prop is required if you use this component in a form input.
86
+ * Specify the unique field name, match with your needs for API request.
87
+ *
88
+ * @default 'numberInput'
89
+ */
90
+ fieldName?: string;
91
+
92
+ /**
93
+ * Whether this input field is required or not.
94
+ */
95
+ mandatory?: boolean;
96
+
97
+ /**
98
+ * Set custom validator message.
99
+ * Will be show if invalid="true"
100
+ */
101
+ validatorMessage?: string | CustomValidation;
102
+
103
+ /**
104
+ * Show the validator message on error.
105
+ *
106
+ * @default true;
107
+ */
108
+ showValidatorMessage?: boolean;
109
+
110
+ /**
111
+ * Specify the input placeholder.
112
+ *
113
+ * @default 'Enter {label}' or 'Enter number'
114
+ */
115
+ placeholder?: string;
116
+
117
+ /**
118
+ * Disabled the input.
119
+ */
120
+ disabled?: boolean;
121
+
122
+ /**
123
+ * State of invalid input.
124
+ */
125
+ invalid?: boolean;
126
+
127
+ /**
128
+ * Displays increment/decrement buttons.
129
+ */
130
+ showButtons?: boolean;
131
+
132
+ /**
133
+ * The width of input.
134
+ */
135
+ size?: 'small' | 'normal' | 'full';
136
+
137
+ /**
138
+ * Defines the behavior of the component.
139
+ * @defaultValue decimal
140
+ */
141
+ mode?: 'decimal' | 'currency';
142
+
143
+ /**
144
+ * The currency to use in currency formatting. Possible values are the [ISO 4217 currency codes](https://www.six-group.com/en/products-services/financial-information/data-standards.html#scrollTo=maintenance-agency), such as 'USD' for the US dollar, 'EUR' for the euro, or 'CNY' for the Chinese RMB.
145
+ * There is no default value; if the style is 'currency', the currency property must be provided.
146
+ */
147
+ currency?: string | undefined;
148
+
149
+ /**
150
+ * The `locale` variable specifies the regional setting or language preference to be used.
151
+ * It is an optional string that can influence date, time, number formatting, and other locale-specific operations.
152
+ *
153
+ * If not provided, the system may default to a pre-configured or fallback locale.
154
+ */
155
+ locale?: string;
156
+
157
+ /**
158
+ * Text to display before the value.
159
+ */
160
+ prefix?: string | undefined;
161
+
162
+ /**
163
+ * Text to display after the value.
164
+ */
165
+ suffix?: string | undefined;
166
+
167
+ /**
168
+ * The minimal digits of decimal value.
169
+ */
170
+ minFractionDigits?: number;
171
+
172
+ /**
173
+ * The maximal digits of decimal value.
174
+ */
175
+ maxFractionDigits?: number;
176
+
177
+ /**
178
+ * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
179
+ * @defaultValue false
180
+ */
181
+ useGrouping?: boolean;
182
+
183
+ /**
184
+ * Show information about the field.
185
+ */
186
+ fieldInfo?: string;
187
+
188
+ /**
189
+ * The filed info tooltip position
190
+ */
191
+ tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
192
+
193
+ /**
194
+ * Specify the appearance of addon right and left
195
+ * - filled - has background and border
196
+ * - plain - no background, no border
197
+ *
198
+ * @defaultValue filled
199
+ */
200
+ addonVariant?: 'filled' | 'plain';
201
+
202
+ /**
203
+ * Class to be bind on addon left component
204
+ */
205
+ addonLeftClass?: any;
206
+
207
+ /**
208
+ * Class to be bind on addon left component
209
+ */
210
+ addonRightClass?: any;
211
+
212
+ /**
213
+ * Class to be bind on input group component
214
+ */
215
+ inputGroupClass?: any;
216
+
217
+ /**
218
+ * Class to be bind on input number component
219
+ */
220
+ inputNumberClass?: any;
221
+
222
+ /**
223
+ * Unique id for input number element
224
+ */
225
+ inputId?: string;
226
+
227
+ /**
228
+ * Set auto Resize Input
229
+ * The input width is counted by the value length
230
+ *
231
+ * @default false
232
+ */
233
+ autoResize?: boolean;
234
+
235
+ /**
236
+ * Allow input to have value null or undefined.
237
+ * If it sets to 'false', when the value is empty, it will fall back to min value if exists, zero otherwise
238
+ *
239
+ * @default true
240
+ */
241
+ allowEmptyValue?: boolean;
242
+ }
243
+
244
+ /**
245
+ * InputNumber component emits
246
+ */
247
+ export type InputNumberEmits = {
248
+ /**
249
+ * Emits when the input has losen focus.
250
+ * The model value is the valid value from given min and max number.
251
+ *
252
+ * If the inputed number is above max, return the max. And vice versa.
253
+ */
254
+ 'update:modelValue': [payload?: number];
255
+
256
+ /**
257
+ * If you need to check validation, you can use this events.
258
+ */
259
+ 'input': [payload?: number];
260
+ };
261
+
262
+ export interface InputNumberSlots {
263
+ 'addon-left': Slot;
264
+ 'addon-right': Slot;
265
+ /**
266
+ * Slot for content in the right side of field label
267
+ */
268
+ 'field-label-addon': Slot;
269
+ 'validatormessage': Slot;
270
+ }
271
+
272
+ /**
273
+ * **WangsVue - InputNumber**
274
+ *
275
+ * _Handle input number with form validation._
276
+ *
277
+ * --- ---
278
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
279
+ *
280
+ * @group form
281
+ */
282
+ declare const InputNumber: DefineComponent<
283
+ InputNumberProps,
284
+ InputNumberEmits,
285
+ InputNumberSlots
286
+ >;
287
+
288
+ export default InputNumber;
@@ -0,0 +1,3 @@
1
+ import { WangsInputOtp } from '@wangs-ui/vue';
2
+
3
+ export default WangsInputOtp;
@@ -0,0 +1,33 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ import { CustomValidation } from '../form/Form.vue.d';
4
+
5
+ export type InputPasswordProps = {
6
+ modelValue?: string;
7
+ label?: string;
8
+ labelClass?: string;
9
+ inputContainerClass?: string;
10
+ mandatory?: boolean;
11
+ placeholder?: string;
12
+ feedback?: boolean;
13
+ fieldName?: string;
14
+ useValidator?: boolean;
15
+ invalid?: boolean;
16
+ /**
17
+ * Set custom validator message.
18
+ * Will be show if invalid="true"
19
+ */
20
+ validatorMessage?: string | CustomValidation;
21
+ validatorMessageClass?: string;
22
+ };
23
+
24
+ export type InputPasswordEmits = {
25
+ 'update:modelValue': [payload?: string];
26
+ };
27
+
28
+ declare const InputPassword: DefineComponent<
29
+ InputPasswordProps,
30
+ InputPasswordEmits
31
+ >;
32
+
33
+ export default InputPassword;
@@ -0,0 +1,99 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ export interface InputPhoneNumberLocaleConfig {
4
+ defaultPlaceholder?: string;
5
+ }
6
+
7
+ /**
8
+ * InputPhoneNumber component props
9
+ */
10
+ export interface InputPhoneNumberProps {
11
+ /**
12
+ * ModelValue of the input.
13
+ */
14
+ modelValue?: string;
15
+ /**
16
+ * Sets the initial value of the field.
17
+ * This will only available with option 'useValidator'.
18
+ *
19
+ * In usecase like edit form, you need to display the previous inputted value.
20
+ */
21
+ value?: string;
22
+ /**
23
+ * The input label. Tell the user what input is this.
24
+ */
25
+ label?: string;
26
+ /**
27
+ * Specify the input placeholder.
28
+ *
29
+ * @default 'Enter phone number'
30
+ */
31
+ placeholder?: string;
32
+ /**
33
+ * Disabled the input.
34
+ */
35
+ disabled?: boolean;
36
+ /**
37
+ * The maximum input length.
38
+ *
39
+ * @default 14 digit number
40
+ */
41
+ maxDigit?: number;
42
+ /**
43
+ * State of invalid input.
44
+ */
45
+ invalid?: boolean;
46
+ /**
47
+ * Wether the input should be validated with vee-validator or not.
48
+ * If you use this component within form input, you need to set this props as true.
49
+ */
50
+ useValidator?: boolean;
51
+ /**
52
+ * This prop is required if you use this component in a form input.
53
+ * Specify the unique field name, match with your needs for API request.
54
+ *
55
+ * @default 'numberInput'
56
+ */
57
+ fieldName?: string;
58
+ /**
59
+ * Wether this input field is required or not.
60
+ */
61
+ mandatory?: boolean;
62
+ /**
63
+ * Set the custom validator message.
64
+ * By default each field has preserved with its validator message, you don't need to worrying about the message.
65
+ */
66
+ validatorMessage?: string;
67
+ /**
68
+ * Show information about the field.
69
+ */
70
+ fieldInfo?: string;
71
+ }
72
+
73
+ /**
74
+ * InputPhoneNumber component emits
75
+ */
76
+ export type InputPhoneNumberEmits = {
77
+ /**
78
+ * Emits when the input already filled.
79
+ */
80
+ 'update:modelValue': [value?: string];
81
+ };
82
+
83
+ /**
84
+ * **WangsVue - InputPhoneNumber**
85
+ *
86
+ * _Handle input number with form validation._
87
+ *
88
+ * --- ---
89
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
90
+ *
91
+ * @group form
92
+ */
93
+ declare const InputPhoneNumber: DefineComponent<
94
+ InputPhoneNumberProps,
95
+ InputPhoneNumberEmits,
96
+ Record<string, unknown>
97
+ >;
98
+
99
+ export default InputPhoneNumber;
@@ -0,0 +1,121 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ import { CustomValidation } from '../form/Form.vue.d';
4
+
5
+ export interface InputrangeNumberLocaleConfig {
6
+ /**
7
+ * Locale configuration for min input placeholder.
8
+ */
9
+ minPlaceholder?: string;
10
+
11
+ /**
12
+ * Locale configuration for max input placeholder.
13
+ */
14
+ maxPlaceholder?: string;
15
+ }
16
+
17
+ /**
18
+ * InputRangeNumber component props
19
+ */
20
+ export interface InputRangeNumberProps {
21
+ /**
22
+ * Number modelValue of the input.
23
+ */
24
+ modelValue?: number[];
25
+
26
+ /**
27
+ * Initial Form value.
28
+ */
29
+ value?: number[];
30
+
31
+ /**
32
+ * The input label. Tell the user what input is this.
33
+ */
34
+ label?: string;
35
+
36
+ /**
37
+ * Placeholder for both input
38
+ *
39
+ * @default undefined
40
+ */
41
+ placeholder?: string;
42
+
43
+ /**
44
+ * Specify the min number input placeholder.
45
+ *
46
+ * @default - Default value of Locale Config {@link InputrangeNumberLocaleConfig.minPlaceholder}
47
+ */
48
+ minPlaceholder?: string;
49
+
50
+ /**
51
+ * Specify the max number input placeholder.
52
+ *
53
+ * @default - Default value of Locale Config {@link InputrangeNumberLocaleConfig.maxPlaceholder}
54
+ */
55
+ maxPlaceholder?: string;
56
+
57
+ /**
58
+ * Disabled the input.
59
+ */
60
+ disabled?: boolean;
61
+
62
+ /**
63
+ * State of invalid input.
64
+ */
65
+ invalid?: boolean;
66
+
67
+ /**
68
+ * Show the text (opsional)
69
+ *
70
+ * @default true if mandatory true
71
+ */
72
+ showOptionalText?: boolean;
73
+
74
+ /**
75
+ * Weather the input should be validated with vee-validator or not.
76
+ * If you use this component within form input, you need to set this props as true.
77
+ */
78
+ useValidator?: boolean;
79
+
80
+ /**
81
+ * Whether this input field is required or not.
82
+ */
83
+ mandatory?: boolean;
84
+
85
+ /**
86
+ * Set custom validator message.
87
+ * Will be show if invalid="true"
88
+ */
89
+ validatorMessage?: string | CustomValidation;
90
+ minFieldName?: string;
91
+ maxFieldName?: string;
92
+ }
93
+
94
+ /**
95
+ * InputRangeNumber component emits
96
+ */
97
+ export type InputRangeNumberEmits = {
98
+ /**
99
+ * Emits when the both input already filled.
100
+ */
101
+ 'update:modelValue': [payload?: (number | undefined)[]];
102
+ 'submit': [];
103
+ };
104
+
105
+ /**
106
+ * **WangsVUe - InputRangeNumber**
107
+ *
108
+ * _Handle input range number._
109
+ *
110
+ * --- ---
111
+ * ![WangsVUe](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
112
+ *
113
+ * @group form
114
+ */
115
+ declare const InputRangeNumber: DefineComponent<
116
+ InputRangeNumberProps,
117
+ InputRangeNumberEmits,
118
+ unknown
119
+ >;
120
+
121
+ export default InputRangeNumber;
@@ -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;