@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,28 @@
1
+ import { ImageGallery } from '../image/Image.vue.d';
2
+ import { ClassComponent } from '../ts-helpers';
3
+
4
+ export interface CarouselProps {
5
+ /**
6
+ * An array of image object to be displayed.
7
+ */
8
+ value: ImageGallery[] | undefined;
9
+ }
10
+
11
+ /**
12
+ * **TSVue v2 - Carousel**
13
+ *
14
+ * _Carousel is a component for displaying a collection of images or content in a sliding or rotating fashion.
15
+ * You can navigate through the items using the provided next and previous functions._
16
+ *
17
+ * --- ---
18
+ * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
19
+ *
20
+ * @group components
21
+ */
22
+ declare class Carousel extends ClassComponent<
23
+ CarouselProps,
24
+ unknown,
25
+ unknown
26
+ > {}
27
+
28
+ export default Carousel;
@@ -0,0 +1,330 @@
1
+ /**
2
+ *
3
+ * Checkbox is an extension to standard checkbox element with theming.
4
+ *
5
+ * @module checkbox
6
+ *
7
+ */
8
+ import { VNode } from 'vue';
9
+
10
+ import { ComponentHooks } from '../basecomponent';
11
+ import { PassThroughOptions } from '../passthrough';
12
+ import {
13
+ ClassComponent,
14
+ GlobalComponentConstructor,
15
+ PassThrough,
16
+ } from '../ts-helpers';
17
+
18
+ export declare type CheckboxPassThroughOptionType =
19
+ | CheckboxPassThroughAttributes
20
+ | ((
21
+ options: CheckboxPassThroughMethodOptions,
22
+ ) => CheckboxPassThroughAttributes | string)
23
+ | string
24
+ | null
25
+ | undefined;
26
+
27
+ /**
28
+ * Custom passthrough(pt) option method.
29
+ */
30
+ export interface CheckboxPassThroughMethodOptions {
31
+ /**
32
+ * Defines instance.
33
+ */
34
+ instance: any;
35
+ /**
36
+ * Defines valid properties.
37
+ */
38
+ props: CheckboxProps;
39
+ /**
40
+ * Defines current inline state.
41
+ */
42
+ state: CheckboxState;
43
+ /**
44
+ * Defines current options.
45
+ */
46
+ context: CheckboxContext;
47
+ /**
48
+ * Defines valid attributes.
49
+ */
50
+ attrs: any;
51
+ /**
52
+ * Defines parent options.
53
+ */
54
+ parent: any;
55
+ /**
56
+ * Defines passthrough(pt) options in global config.
57
+ */
58
+ global: object | undefined;
59
+ }
60
+
61
+ /**
62
+ * Custom passthrough(pt) options.
63
+ * @see {@link CheckboxProps.pt}
64
+ */
65
+ export interface CheckboxPassThroughOptions {
66
+ /**
67
+ * Used to pass attributes to the root's DOM element.
68
+ */
69
+ root?: CheckboxPassThroughOptionType;
70
+ /**
71
+ * Used to pass attributes to the input's DOM element.
72
+ */
73
+ input?: CheckboxPassThroughOptionType;
74
+ /**
75
+ * Used to pass attributes to the box's DOM element.
76
+ */
77
+ box?: CheckboxPassThroughOptionType;
78
+ /**
79
+ * Used to pass attributes to the icon's DOM element.
80
+ */
81
+ icon?: CheckboxPassThroughOptionType;
82
+ /**
83
+ * Used to manage all lifecycle hooks.
84
+ * @see {@link BaseComponent.ComponentHooks}
85
+ */
86
+ hooks?: ComponentHooks;
87
+ }
88
+
89
+ /**
90
+ * Custom passthrough attributes for each DOM elements
91
+ */
92
+ export interface CheckboxPassThroughAttributes {
93
+ [key: string]: any;
94
+ }
95
+
96
+ /**
97
+ * Defines current inline state in Checkbox component.
98
+ */
99
+ export interface CheckboxState {
100
+ [key: string]: any;
101
+ }
102
+
103
+ /**
104
+ * Defines valid properties in Checkbox component.
105
+ */
106
+ export interface CheckboxProps {
107
+ /**
108
+ * Value of the checkbox. Can be used to set the checkbox field value when using use-validator
109
+ */
110
+ value?: any;
111
+ /**
112
+ * Value binding of the checkbox.
113
+ *
114
+ * The value is vary depends on the {@link trueValue}, {@link falseValue}, {@link binary}
115
+ */
116
+ modelValue?: any;
117
+ /**
118
+ * The checkbox label.
119
+ */
120
+ label?: string;
121
+ /**
122
+ * Tooltip info about the checkbox.
123
+ */
124
+ tooltip?: string;
125
+ /**
126
+ * Tooltip position.
127
+ *
128
+ * @default 'top'
129
+ */
130
+ tooltipPos?: 'top' | 'right' | 'left' | 'bottom';
131
+ /**
132
+ * Name of the input element.
133
+ */
134
+ name?: string | undefined;
135
+ /**
136
+ * To specify different style when used inside table header
137
+ *
138
+ * @default false
139
+ */
140
+ withinTable?: boolean;
141
+ /**
142
+ * Allows to select a boolean value instead of multiple values.
143
+ * @default true
144
+ */
145
+ binary?: boolean;
146
+ /**
147
+ * Enable triple state 'null' 'true' 'false'
148
+ *
149
+ * null: not checked;
150
+ * true: checked;
151
+ * false: partial checked;
152
+ *
153
+ * @default false
154
+ */
155
+ triState?: boolean | null;
156
+ /**
157
+ * When present, it specifies that the component should have invalid state style.
158
+ * @defaultValue false
159
+ */
160
+ invalid?: boolean | undefined;
161
+ /**
162
+ * When present, it specifies that the element should be disabled.
163
+ * @default false
164
+ */
165
+ disabled?: boolean | undefined;
166
+ /**
167
+ * When present, it specifies that the element should be selectable.
168
+ *
169
+ * Simillar to disabled state, but different style.
170
+ * @default true
171
+ */
172
+ selectable?: boolean | undefined;
173
+ /**
174
+ * Specifies the input variant of the component.
175
+ * @defaultValue outlined
176
+ */
177
+ variant?: 'outlined' | 'filled' | undefined;
178
+ /**
179
+ * When present, it specifies that an input field is read-only.
180
+ * @default false
181
+ */
182
+ readonly?: boolean | undefined;
183
+ useValidator?: boolean;
184
+ fieldName?: string;
185
+ /**
186
+ * When present, it specifies that the element is required.
187
+ * @default false
188
+ */
189
+ required?: boolean | undefined;
190
+ /**
191
+ * Index of the element in tabbing order.
192
+ */
193
+ tabindex?: number | undefined;
194
+ /**
195
+ * Value in checked state.
196
+ * @default true
197
+ */
198
+ trueValue?: any;
199
+ /**
200
+ * Value in unchecked state.
201
+ * @default false
202
+ */
203
+ falseValue?: any;
204
+ /**
205
+ * Identifier of the underlying input element.
206
+ */
207
+ inputId?: string | undefined;
208
+ /**
209
+ * Style class of the input field.
210
+ */
211
+ inputClass?: object | undefined;
212
+ /**
213
+ * Inline style of the input field.
214
+ */
215
+ inputStyle?: string | object | undefined;
216
+ /**
217
+ * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
218
+ */
219
+ ariaLabelledby?: string | undefined;
220
+ /**
221
+ * Establishes a string value that labels the component.
222
+ */
223
+ ariaLabel?: string | undefined;
224
+ /**
225
+ * Used to pass attributes to DOM elements inside the component.
226
+ * @type {CheckboxPassThroughOptions}
227
+ */
228
+ pt?: PassThrough<CheckboxPassThroughOptions>;
229
+ /**
230
+ * Used to configure passthrough(pt) options of the component.
231
+ * @type {PassThroughOptions}
232
+ */
233
+ ptOptions?: PassThroughOptions;
234
+ /**
235
+ * When enabled, it removes component related styles in the core.
236
+ * @defaultValue false
237
+ */
238
+ unstyled?: boolean;
239
+ /**
240
+ * Style class of the checkbox's label.
241
+ */
242
+ labelClass?: any;
243
+ }
244
+
245
+ /**
246
+ * Defines current options in Checkbox component.
247
+ */
248
+ export interface CheckboxContext {
249
+ /**
250
+ * Current checked state of the item as a boolean.
251
+ * @defaultValue false
252
+ */
253
+ checked: boolean;
254
+ /**
255
+ * Current disabled state of the item as a boolean.
256
+ * @defaultValue false
257
+ */
258
+ disabled: boolean;
259
+ }
260
+
261
+ /**
262
+ * Defines valid slots in Checkbox component.
263
+ */
264
+ export interface CheckboxSlots {
265
+ /**
266
+ * Custom icon template.
267
+ * @param {Object} scope - icon slot's params.
268
+ */
269
+ icon(scope: {
270
+ /**
271
+ * State of the checkbox.
272
+ */
273
+ checked: boolean;
274
+ /**
275
+ * Style class of the icon.
276
+ */
277
+ class: string;
278
+ }): VNode[];
279
+ }
280
+
281
+ /**
282
+ * Defines valid emits in Checkbox component.
283
+ */
284
+ export type CheckboxEmits = {
285
+ /**
286
+ * Emitted when the value changes.
287
+ * @param {*} value - New value.
288
+ */
289
+ 'update:modelValue': [value: any];
290
+ /**
291
+ * Callback to invoke on value change.
292
+ * @param {Event} event - Browser event.
293
+ */
294
+ 'change': [event: Event];
295
+ /**
296
+ * Callback to invoke when the component receives focus.
297
+ * @param {Event} event - Browser event.
298
+ */
299
+ 'focus': [event: Event];
300
+ /**
301
+ * Callback to invoke when the component loses focus.
302
+ * @param {Event} event - Browser event.
303
+ */
304
+ 'blur': [event: Event];
305
+ };
306
+
307
+ /**
308
+ * **WangsVue - Checkbox**
309
+ *
310
+ * Checkbox is an extension to checkbox element with label and info tooltip.
311
+ *
312
+ * --- ---
313
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
314
+ *
315
+ * @group Component
316
+ *
317
+ */
318
+ declare class Checkbox extends ClassComponent<
319
+ CheckboxProps,
320
+ CheckboxSlots,
321
+ CheckboxEmits
322
+ > {}
323
+
324
+ declare module '@vue/runtime-core' {
325
+ interface GlobalComponents {
326
+ Checkbox: GlobalComponentConstructor<Checkbox>;
327
+ }
328
+ }
329
+
330
+ export default Checkbox;
@@ -0,0 +1,37 @@
1
+ import { TableColumn } from '../datatable/DataTable.vue.d';
2
+ import { ClassComponent } from '../ts-helpers';
3
+
4
+ export interface CustomColumnLocaleConfig {
5
+ resetDefaultText: string;
6
+ }
7
+
8
+ export type DragableColumn = TableColumn & { order?: number };
9
+
10
+ export interface CustomColumnProps {
11
+ tableId: string;
12
+ defaultColumns: TableColumn[];
13
+ visibleColumns: TableColumn[];
14
+ /**
15
+ * The maximum column count allowed
16
+ * @default infinity
17
+ */
18
+ maxColumn?: number;
19
+ type?: 'menu' | 'flat';
20
+ }
21
+
22
+ declare class CustomColumn extends ClassComponent<
23
+ CustomColumnProps,
24
+ unknown,
25
+ unknown
26
+ > {
27
+ /**
28
+ * Method to show custom column menu.
29
+ */
30
+ toggleMenu: () => void;
31
+ /**
32
+ * Resets the column visibility to default
33
+ */
34
+ resetToDefault: () => void;
35
+ }
36
+
37
+ export default CustomColumn;