@fewangsit/wangsvue-fats 1.0.0-alpha.7 → 1.0.0-alpha.70

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 (160) hide show
  1. package/components/animation/Animation.vue.d.ts +9 -1
  2. package/components/assetinfo/AssetInfo.vue.d.ts +39 -0
  3. package/components/badgegroup/BadgeGroup.vue.d.ts +3 -1
  4. package/components/basetree/BaseTree.vue.d.ts +6 -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/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
  10. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +5 -2
  11. package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
  12. package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
  13. package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
  14. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
  15. package/components/calendar/Calendar.vue.d.ts +32 -4
  16. package/components/card/Card.vue.d.ts +1 -0
  17. package/components/checkbox/Checkbox.vue.d.ts +1 -0
  18. package/components/datatable/DataTable.vue.d.ts +12 -4
  19. package/components/dialog/Dialog.vue.d.ts +4 -3
  20. package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
  21. package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
  22. package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
  23. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
  24. package/components/dialogform/DialogForm.vue.d.ts +3 -2
  25. package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
  26. package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
  27. package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +26 -0
  28. package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -0
  29. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  30. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  31. package/components/dialogselectuser/options/columns.d.ts +3 -0
  32. package/components/dropdown/Dropdown.vue.d.ts +16 -4
  33. package/components/editor/Editor.vue.d.ts +1 -0
  34. package/components/fieldwrapper/FieldWrapper.vue.d.ts +12 -2
  35. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  36. package/components/filtercontainer/FilterContainer.vue.d.ts +13 -8
  37. package/components/form/Form.vue.d.ts +2 -1
  38. package/components/icon/Icon.vue.d.ts +2 -0
  39. package/components/image/Image.vue.d.ts +8 -0
  40. package/components/imagecompressor/ImageCompressor.vue.d.ts +6 -0
  41. package/components/index.d.ts +26 -20
  42. package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
  43. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  44. package/components/inputnumber/InputNumber.vue.d.ts +6 -0
  45. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  46. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  47. package/components/inputsearch/InputSearch.vue.d.ts +36 -0
  48. package/components/inputtext/InputText.vue.d.ts +2 -1
  49. package/components/inputurl/InputURL.vue.d.ts +4 -2
  50. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
  51. package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -22
  52. package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
  53. package/components/loading/store/loading.store.d.ts +3 -3
  54. package/components/menu/Menu.vue.d.ts +2 -1
  55. package/components/multiselect/MultiSelect.vue.d.ts +7 -4
  56. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  57. package/components/paginator/Paginator.vue.d.ts +285 -0
  58. package/components/tabmenu/TabMenu.vue.d.ts +2 -1
  59. package/components/tagtype/TagType.vue.d.ts +26 -0
  60. package/components/textarea/Textarea.vue.d.ts +2 -1
  61. package/components/timeline/Timeline.vue.d.ts +20 -2
  62. package/components/toast/Toast.vue.d.ts +2 -1
  63. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  64. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  65. package/components/tree/Tree.vue.d.ts +6 -3
  66. package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
  67. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
  68. package/components/username/UserName.vue.d.ts +6 -1
  69. package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
  70. package/config/defaultProps.d.ts +1 -1
  71. package/config/index.d.ts +1 -1
  72. package/config/locale.d.ts +1 -1
  73. package/directives/focus.d.ts +1 -1
  74. package/event-bus/index.d.ts +55 -50
  75. package/event-bus/mitt.d.ts +29 -14
  76. package/main.d.ts +34 -2
  77. package/package.json +10 -6
  78. package/plugins/VueHtmlToPaper.d.ts +11 -0
  79. package/plugins/WangsVue.d.ts +266 -98
  80. package/plugins/formValidation.d.ts +15 -6
  81. package/plugins/i18n-extension.d.ts +4 -0
  82. package/plugins/i18n.d.ts +103 -0
  83. package/stats.html +4949 -0
  84. package/style.css +1 -1
  85. package/utils/date.util.d.ts +64 -31
  86. package/utils/formatTagCode.util.d.ts +1 -0
  87. package/utils/getSeverityByAssetStatus.util.d.ts +3 -0
  88. package/utils/index.d.ts +6 -20
  89. package/utils/listenSidebarChanges.util.d.ts +16 -0
  90. package/utils/object.util.d.ts +14 -3
  91. package/utils/role.util.d.ts +67 -1
  92. package/utils/toast.util.d.ts +78 -78
  93. package/wangsvue-fats.js +54726 -0
  94. package/wangsvue-fats.system.js +200 -267
  95. package/assets/json/currencies.json.d.ts +0 -1068
  96. package/assets/json/supported-official-langs.json.d.ts +0 -530
  97. package/assets/lottie/admin/loading-page.lottie +0 -0
  98. package/assets/lottie/admin/loading-table.lottie +0 -0
  99. package/assets/lottie/admin/no-data.lottie +0 -0
  100. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  101. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  102. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  103. package/assets/lottie/workspace/loading-page.lottie +0 -0
  104. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  105. package/assets/lottie/workspace/loading-table.lottie +0 -0
  106. package/assets/lottie/workspace/no-data.lottie +0 -0
  107. package/build-entry.d.ts +0 -14
  108. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  109. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  110. package/components/changelog/Changelog.vue.d.ts +0 -158
  111. package/components/changelogpage/ChangelogFilter.vue.d.ts +0 -16
  112. package/components/changelogpage/ChangelogPage.vue.d.ts +0 -128
  113. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  114. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  115. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  116. package/components/datatable/MultiRow.vue.d.ts +0 -16
  117. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  118. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  119. package/components/datatable/helpers/index.d.ts +0 -3
  120. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  121. package/components/datatable/store/dataTable.store.d.ts +0 -22
  122. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  123. package/components/editor/EditorButton.vue.d.ts +0 -15
  124. package/components/editor/MentionList.vue.d.ts +0 -35
  125. package/components/editor/MentionSection.vue.d.ts +0 -92
  126. package/components/editor/codeSnippetExtension.d.ts +0 -3
  127. package/components/editor/mentionSectionExtension.d.ts +0 -3
  128. package/components/editor/suggestion.d.ts +0 -2
  129. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  130. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  131. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  132. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  133. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  134. package/components/helpers/index.d.ts +0 -2
  135. package/components/helpers/label.d.ts +0 -15
  136. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  137. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  138. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  139. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  140. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  141. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  142. package/components/menu/helpers/index.d.ts +0 -1
  143. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  144. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  145. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  146. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  147. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  148. package/components/tree/helpers/index.d.ts +0 -3
  149. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  150. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  151. package/plugins/translation.d.ts +0 -84
  152. package/types/options.type.d.ts +0 -16
  153. package/utils/addAttachment.util.d.ts +0 -43
  154. package/utils/exportToExcel.util.d.ts +0 -20
  155. package/utils/filterOptions.util.d.ts +0 -3
  156. package/utils/genPlaceholder.util.d.ts +0 -8
  157. package/utils/getAttachmentIcon.util.d.ts +0 -8
  158. package/utils/mergePropsWithDefaults.util.d.ts +0 -20
  159. package/utils/textFormatter.util.d.ts +0 -17
  160. package/wangsvue-fats.es.js +0 -133180
@@ -1,34 +1,352 @@
1
- import { ButtonSplitProps } from './ButtonSplit.d';
2
- declare function __VLS_template(): {
3
- menuitemicon?(_: {
4
- item: any;
5
- class: any;
6
- }): any;
7
- item?(_: {
8
- hasSubmenu: any;
9
- item: any;
10
- label: any;
11
- props: any;
12
- }): any;
13
- };
14
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<ButtonSplitProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- click: (event: Event) => void;
16
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<ButtonSplitProps>>> & {
17
- onClick?: (event: Event) => any;
18
- }, {}, {}>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
- export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
22
- new (): {
23
- $slots: S;
24
- };
25
- };
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToOption<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
1
+ /**
2
+ *
3
+ * ButtonSplit groups a set of commands in an overlay with a default command.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/splitbutton/)
6
+ *
7
+ * @module splitbutton
8
+ *
9
+ */
10
+ import { ButtonPassThroughOptions } from 'primevue/button';
11
+ import {
12
+ TieredMenuPassThroughOptions,
13
+ TieredMenuRouterBindProps,
14
+ } from 'primevue/tieredmenu';
15
+ import { ButtonHTMLAttributes, VNode } from 'vue';
16
+
17
+ import { ComponentHooks } from '../basecomponent';
18
+ import { MenuItem } from '../menuitem';
19
+ import { PassThroughOptions } from '../passthrough';
20
+ import {
21
+ ClassComponent,
22
+ GlobalComponentConstructor,
23
+ HintedString,
24
+ PassThrough,
25
+ } from '../ts-helpers';
26
+
27
+ import { WangsIcons } from '../icon/Icon.vue';
28
+
29
+ export declare type ButtonSplitPassThroughOptionType =
30
+ | ButtonSplitPassThroughAttributes
31
+ | ((
32
+ options: ButtonSplitPassThroughMethodOptions,
33
+ ) => ButtonSplitPassThroughAttributes | string)
34
+ | string
35
+ | null
36
+ | undefined;
37
+
38
+ /**
39
+ * Custom passthrough(pt) option method.
40
+ */
41
+ export interface ButtonSplitPassThroughMethodOptions {
42
+ /**
43
+ * Defines instance.
44
+ */
45
+ instance: any;
46
+ /**
47
+ * Defines valid properties.
48
+ */
49
+ props: ButtonSplitProps;
50
+ /**
51
+ * Defines current inline state.
52
+ */
53
+ state: ButtonSplitState;
54
+ /**
55
+ * Defines valid attributes.
56
+ */
57
+ attrs: any;
58
+ /**
59
+ * Defines parent options.
60
+ */
61
+ parent: any;
62
+ /**
63
+ * Defines passthrough(pt) options in global config.
64
+ */
65
+ global: object | undefined;
66
+ }
67
+
68
+ /**
69
+ * Custom shared passthrough(pt) option method.
70
+ */
71
+ export interface ButtonSplitSharedPassThroughMethodOptions {
72
+ /**
73
+ * Defines valid properties.
74
+ */
75
+ props: ButtonSplitProps;
76
+ /**
77
+ * Defines current inline state.
78
+ */
79
+ state: ButtonSplitState;
80
+ }
81
+
82
+ /**
83
+ * Custom passthrough(pt) options.
84
+ * @see {@link ButtonSplitProps.pt}
85
+ */
86
+ export interface ButtonSplitPassThroughOptions {
87
+ /**
88
+ * Used to pass attributes to the root's DOM element.
89
+ */
90
+ root?: ButtonSplitPassThroughOptionType;
91
+ /**
92
+ * Used to pass attributes to the button's DOM element.
93
+ */
94
+ button?: ButtonSplitPassThroughOptionType;
95
+ /**
96
+ * Used to pass attributes to the Button component.
97
+ * @see {@link ButtonPassThroughOptions}
98
+ */
99
+ menuButton?: ButtonPassThroughOptions<ButtonSplitSharedPassThroughMethodOptions>;
100
+ /**
101
+ * Used to pass attributes to the TieredMenu component.
102
+ * @see {@link TieredMenuPassThroughOptions}
103
+ */
104
+ menu?: TieredMenuPassThroughOptions<ButtonSplitSharedPassThroughMethodOptions>;
105
+ /**
106
+ * Used to manage all lifecycle hooks.
107
+ * @see {@link BaseComponent.ComponentHooks}
108
+ */
109
+ hooks?: ComponentHooks;
110
+ }
111
+
112
+ /**
113
+ * Custom passthrough attributes for each DOM elements
114
+ */
115
+ export interface ButtonSplitPassThroughAttributes {
116
+ [key: string]: any;
117
+ }
118
+
119
+ /**
120
+ * Defines current inline state in ButtonSplit component.
121
+ */
122
+ export interface ButtonSplitState {
123
+ /**
124
+ * Current blocked state as a boolean.
125
+ * @defaultValue false
126
+ */
127
+ isBlocked: boolean;
128
+ }
129
+
130
+ /**
131
+ * Defines valid properties in ButtonSplit component.
132
+ */
133
+ export interface ButtonSplitProps {
134
+ /**
135
+ * Text of the button.
136
+ */
137
+ label?: string | undefined;
138
+ /**
139
+ * Name of the icon of main button.
140
+ */
141
+ icon?: WangsIcons | undefined;
142
+ /**
143
+ * MenuModel instance to define the overlay items.
144
+ */
145
+ model?: MenuItem[] | undefined;
146
+ /**
147
+ * Whether to automatically manage layering.
148
+ * @defaultValue true
149
+ */
150
+ autoZIndex?: boolean | undefined;
151
+ /**
152
+ * Base zIndex value to use in layering.
153
+ * @defaultValue 0
154
+ */
155
+ baseZIndex?: number | undefined;
156
+ /**
157
+ * A valid query selector or an HTMLElement to specify where the overlay gets attached.
158
+ * Special keywords are 'body' for document body and 'self' for the element itself.
159
+ * @defaultValue body
160
+ */
161
+ appendTo?: HintedString<'body' | 'self'> | undefined | HTMLElement;
162
+ /**
163
+ * When present, it specifies that the element should be disabled.
164
+ * @defaultValue false
165
+ */
166
+ disabled?: boolean | undefined;
167
+ /**
168
+ * Style class of the component.
169
+ */
170
+ class?: any | undefined;
171
+ /**
172
+ * Inline style of the component.
173
+ */
174
+ style?: any | undefined;
175
+ /**
176
+ * Used to pass all properties of the HTMLButtonElement to the default button.
177
+ */
178
+ buttonProps?: ButtonHTMLAttributes | undefined;
179
+ /**
180
+ * Used to pass all properties of the HTMLButtonElement to the menu button.
181
+ */
182
+ menuButtonProps?: ButtonHTMLAttributes | undefined;
183
+ /**
184
+ * Name of the menu button icon.
185
+ */
186
+ menuButtonIcon?: WangsIcons | undefined;
187
+ /**
188
+ * Defines the style of the button.
189
+ */
190
+ severity?:
191
+ | HintedString<
192
+ | 'secondary'
193
+ | 'success'
194
+ | 'info'
195
+ | 'warning'
196
+ | 'help'
197
+ | 'danger'
198
+ | 'contrast'
199
+ >
200
+ | undefined;
201
+ /**
202
+ * Add a shadow to indicate elevation.
203
+ * @defaultValue false
204
+ */
205
+ raised?: boolean | undefined;
206
+ /**
207
+ * Add a circular border radius to the button.
208
+ * @defaultValue false
209
+ */
210
+ rounded?: boolean | undefined;
211
+ /**
212
+ * Add a textual class to the button without a background initially.
213
+ * @defaultValue false
214
+ */
215
+ text?: boolean | undefined;
216
+ /**
217
+ * Add a border class without a background initially.
218
+ * @defaultValue false
219
+ */
220
+ outlined?: boolean | undefined;
221
+ /**
222
+ * Defines the size of the button.
223
+ */
224
+ size?: 'small' | 'large' | undefined;
225
+ /**
226
+ * Add a plain textual class to the button without a background initially.
227
+ * @defaultValue false
228
+ */
229
+ plain?: boolean | undefined;
230
+ /**
231
+ * Used to pass attributes to DOM elements inside the component.
232
+ * @type {ButtonSplitPassThroughOptions}
233
+ */
234
+ pt?: PassThrough<ButtonSplitPassThroughOptions>;
235
+ /**
236
+ * Used to configure passthrough(pt) options of the component.
237
+ * @type {PassThroughOptions}
238
+ */
239
+ ptOptions?: PassThroughOptions;
240
+ /**
241
+ * When enabled, it removes component related styles in the core.
242
+ * @defaultValue false
243
+ */
244
+ unstyled?: boolean;
245
+ }
246
+
247
+ /**
248
+ * Defines valid slots in ButtonSplit component.
249
+ */
250
+ export interface ButtonSplitSlots {
251
+ /**
252
+ * Button part of the content can easily be customized with the default slot instead of using the built-in modes.
253
+ */
254
+ default(): VNode[];
255
+ /**
256
+ * Command button part of the content can easily be customized with the button content slot.
257
+ */
258
+ buttoncontent(): VNode[];
259
+ /**
260
+ * Custom button icon template.
261
+ * @param {Object} scope - icon slot's params.
262
+ */
263
+ icon(scope: {
264
+ /**
265
+ * Style class of the icon.
266
+ */
267
+ class: string;
268
+ }): VNode[];
269
+ /**
270
+ * Custom menu button icon template.
271
+ * @param {Object} scope - menubuttonicon slot's params.
272
+ */
273
+ menubuttonicon(scope: {
274
+ /**
275
+ * Style class of the icon.
276
+ */
277
+ class: string;
278
+ }): VNode[];
279
+ /**
280
+ * Custom menu item icon template.
281
+ * @param {Object} scope - menuitemicon slot's params.
282
+ */
283
+ menuitemicon(scope: {
284
+ /**
285
+ * Menuitem instance
286
+ */
287
+ item: MenuItem;
288
+ /**
289
+ * Style class of the item icon element.
290
+ */
291
+ class: any;
292
+ }): VNode[];
293
+ /**
294
+ * Custom content for each menu item.
295
+ * @param {Object} scope - item slot's params.
296
+ */
297
+ item(scope: {
298
+ /**
299
+ * Menuitem instance
300
+ */
301
+ item: MenuItem;
302
+ /**
303
+ * Label property of the menuitem
304
+ */
305
+ label: string | ((...args: any) => string) | undefined;
306
+ /**
307
+ * Binding properties of the menuitem
308
+ */
309
+ props: TieredMenuRouterBindProps;
310
+ /**
311
+ * Whether or not there is a submenu
312
+ */
313
+ hasSubmenu: boolean;
314
+ }): VNode[];
315
+ }
316
+
317
+ /**
318
+ * Defines valid emits in ButtonSplit component.
319
+ */
320
+ export interface ButtonSplitEmits {
321
+ /**
322
+ * Callback to invoke when main button is clicked.
323
+ * @param {Event} event - Browser event.
324
+ */
325
+ click(event: Event): void;
326
+ }
327
+
328
+ /**
329
+ * **PrimeVue - ButtonSplit**
330
+ *
331
+ * _ButtonSplit groups a set of commands in an overlay with a default command._
332
+ *
333
+ * [Live Demo](https://www.primevue.org/splitbutton/)
334
+ * --- ---
335
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
336
+ *
337
+ * @group Component
338
+ *
339
+ */
340
+ declare class ButtonSplit extends ClassComponent<
341
+ ButtonSplitProps,
342
+ ButtonSplitSlots,
343
+ ButtonSplitEmits
344
+ > {}
345
+
346
+ declare module 'vue' {
347
+ export interface GlobalComponents {
348
+ ButtonSplit: GlobalComponentConstructor<ButtonSplit>;
349
+ }
350
+ }
351
+
352
+ export default ButtonSplit;
@@ -0,0 +1,22 @@
1
+ import { ClassComponent } from '../ts-helpers';
2
+
3
+ export interface ButtonSyncProps {
4
+ /**
5
+ * Defines no scan buttons in hardware sync dialog footer.
6
+ */
7
+ withoutScanBtn?: boolean;
8
+ }
9
+
10
+ declare class ButtonSync extends ClassComponent<
11
+ ButtonSyncProps,
12
+ unknown,
13
+ unknown
14
+ > {}
15
+
16
+ declare module 'vue' {
17
+ export interface GlobalComponents {
18
+ ButtonSync: typeof ButtonSync;
19
+ }
20
+ }
21
+
22
+ export default ButtonSync;
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import {
3
4
  ToggleSwitchEmits,
4
5
  ToggleSwitchProps,
@@ -0,0 +1,17 @@
1
+ import { ClassComponent } from '../../components/ts-helpers.d';
2
+
3
+ export interface ButtonViewLogProps {
4
+ showLog?: boolean;
5
+ }
6
+
7
+ export type ButtonViewLogEmits = {
8
+ 'update:showLog': [state: boolean];
9
+ };
10
+
11
+ declare class ButtonViewLog extends ClassComponent<
12
+ ButtonViewLogProps,
13
+ unknown,
14
+ ButtonViewLogEmits
15
+ > {}
16
+
17
+ export default ButtonViewLog;
@@ -1,4 +1,5 @@
1
- import { TransitionProps } from 'vue';
1
+ import { Slot, TransitionProps } from 'vue';
2
+
2
3
  import { CustomValidation } from '../form/Form.vue.d';
3
4
  import { ClassComponent } from '../ts-helpers';
4
5
 
@@ -321,6 +322,11 @@ export interface CalendarProps {
321
322
  */
322
323
  readonly?: boolean;
323
324
 
325
+ /**
326
+ * The class name of the overlay element.
327
+ */
328
+ overlayClass?: string;
329
+
324
330
  /**
325
331
  * Identifier of the underlying input element.
326
332
  */
@@ -337,14 +343,14 @@ export interface CalendarProps {
337
343
  * @default 'single'
338
344
  * @deprecated use selectionMode
339
345
  */
340
- mode?: 'range' | 'single';
346
+ mode?: 'range' | 'single' | 'multiple';
341
347
 
342
348
  /**
343
349
  * Whether single date or date range model value.
344
350
  *
345
351
  * @default 'single'
346
352
  */
347
- selectionMode?: 'range' | 'single';
353
+ selectionMode?: 'range' | 'single' | 'multiple';
348
354
 
349
355
  /**
350
356
  * Whether to hide the overlay on date selection when showTime is enabled.
@@ -469,6 +475,16 @@ export interface CalendarProps {
469
475
  */
470
476
  useTimeFormat?: boolean;
471
477
 
478
+ /**
479
+ * Only allow weekdays to be selected.
480
+ */
481
+ onlyWeekdays?: boolean;
482
+
483
+ /**
484
+ * Exclude certain dates from selection.
485
+ */
486
+ excludeDates?: Date[];
487
+
472
488
  /**
473
489
  * The minimum selectable date.
474
490
  */
@@ -551,6 +567,18 @@ export type CalendarEmits = {
551
567
  'dateSelect': [date: Date | Date[]];
552
568
  };
553
569
 
570
+ export interface CalendarSlots {
571
+ /**
572
+ * Slot for custom root input element
573
+ */
574
+ 'default': Slot<{ onClick: (event: Event) => void }>;
575
+
576
+ /**
577
+ * Slot for additional content in overlay
578
+ */
579
+ 'addon-overlay': Slot;
580
+ }
581
+
554
582
  /**
555
583
  * **WangsVue - Calendar**
556
584
  *
@@ -563,7 +591,7 @@ export type CalendarEmits = {
563
591
  */
564
592
  declare class Calendar extends ClassComponent<
565
593
  CalendarProps,
566
- unknown,
594
+ CalendarSlots,
567
595
  CalendarEmits
568
596
  > {}
569
597
 
@@ -7,6 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { VNode } from 'vue';
10
+
10
11
  import { ComponentHooks } from '../basecomponent';
11
12
  import { PassThroughOptions } from '../passthrough';
12
13
  import {
@@ -6,6 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { VNode } from 'vue';
9
+
9
10
  import { ComponentHooks } from '../basecomponent';
10
11
  import { PassThroughOptions } from '../passthrough';
11
12
  import {
@@ -1,8 +1,10 @@
1
- import { DialogConfirmProps } from 'lib/components/dialogconfirm/DialogConfirm.vue.d';
2
- import { MenuItem } from 'lib/components/menuitem';
3
- import { ClassComponent, HintedString } from '../ts-helpers.d';
4
1
  import { Component } from 'vue';
5
- import { DateOptions } from 'lib/utils/date.util';
2
+
3
+ import { DialogConfirmProps } from '../../components/dialogconfirm/DialogConfirm.vue.d';
4
+ import { MenuItem } from '../../components/menuitem';
5
+ import { DateOptions } from '../../utils/date.util';
6
+
7
+ import { ClassComponent, HintedString } from '../ts-helpers.d';
6
8
 
7
9
  export interface DataTableLocaleConfig {
8
10
  /**
@@ -153,6 +155,12 @@ export type TableCellComponent = {
153
155
  events?: any;
154
156
  onChange?: (itemData: any) => void;
155
157
  disabled?: boolean;
158
+ /**
159
+ * To tell DataTable component whether this component should stop propagation or not
160
+ *
161
+ * @default true - since old logic was automatically stop event click from bodyComponent
162
+ */
163
+ stop?: boolean;
156
164
  };
157
165
 
158
166
  export type TogglePresetConfirmDialogProps = Omit<
@@ -9,6 +9,7 @@
9
9
  *
10
10
  */
11
11
  import { HTMLAttributes, TransitionProps, VNode } from 'vue';
12
+
12
13
  import { ComponentHooks } from '../basecomponent';
13
14
  import { PassThroughOptions } from '../passthrough';
14
15
  import {
@@ -318,7 +319,7 @@ export interface DialogProps {
318
319
  /**
319
320
  * A string or string array class to append to the root section.
320
321
  */
321
- class?: string | string[];
322
+ class?: string | string[] | object[];
322
323
  /**
323
324
  * A string or string array class to append to the dialog header section.
324
325
  */
@@ -326,11 +327,11 @@ export interface DialogProps {
326
327
  /**
327
328
  * A string or string array class to append to the dialog content section.
328
329
  */
329
- contentClass?: string | string[];
330
+ contentClass?: string | string[] | object[];
330
331
  /**
331
332
  * A string or string array class to append to the dialog footer section.
332
333
  */
333
- footerClass?: string | string[];
334
+ footerClass?: string | string[] | object[];
334
335
  }
335
336
 
336
337
  /**
@@ -0,0 +1,46 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ /**
4
+ * Props for DialogAssetNameDetail component
5
+ */
6
+ export interface DialogAssetNameDetailProps {
7
+ /**
8
+ * The header of the dialog.
9
+ *
10
+ * @defaultValue "Asset Name Detail"
11
+ */
12
+ header?: string;
13
+
14
+ /**
15
+ * The ID of the asset.
16
+ */
17
+ id: string;
18
+
19
+ /**
20
+ * The query params for fetching assets.
21
+ */
22
+ params?: { [key: string]: string };
23
+
24
+ /**
25
+ * Specifies the visibility of the dialog.
26
+ * @defaultValue false
27
+ */
28
+ visible?: boolean | undefined;
29
+ }
30
+
31
+ /**
32
+ * Emits for DialogAssetNameDetail component
33
+ */
34
+ export type DialogAssetNameDetailEmits = {
35
+ /**
36
+ * Emits when the dialog is closed. Wether from cancel button, close button, or ESC button pressed.
37
+ */
38
+ 'update:visible': [state: boolean];
39
+ };
40
+
41
+ declare const DialogAssetNameDetail: DefineComponent<
42
+ DialogAssetNameDetailProps,
43
+ DialogAssetNameDetailEmits
44
+ >;
45
+
46
+ export default DialogAssetNameDetail;
@@ -0,0 +1,2 @@
1
+ import { TableColumn } from '../../../components/datatable/DataTable.vue.d';
2
+ export declare const assetNameDetailColumns: () => TableColumn[];
@@ -0,0 +1,2 @@
1
+ import { FilterField } from 'components/filtercontainer/FilterContainer.vue.d';
2
+ export declare const filterFields: FilterField[];
@@ -1,4 +1,5 @@
1
1
  import { Slot } from 'vue';
2
+
2
3
  import { WangsIcons } from '../icon/Icon.vue.d';
3
4
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
5
 
@@ -1,5 +1,6 @@
1
1
  import { GenericObject } from 'vee-validate';
2
2
  import { Slot } from 'vue';
3
+
3
4
  import FormInstance, { FormPayload, FormProps } from '../form/Form.vue.d';
4
5
  import { WangsIcons } from '../icon/Icon.vue.d';
5
6
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
@@ -85,7 +86,7 @@ export interface DialogFormProps extends FormProps {
85
86
  * @default 260
86
87
  */
87
88
  asideRightWidth?: number;
88
- class?: string | string[];
89
+ class?: string | string[] | object[];
89
90
 
90
91
  /**
91
92
  * Custom button cancel label.
@@ -117,7 +118,7 @@ export interface DialogFormProps extends FormProps {
117
118
  /**
118
119
  * @deprecated
119
120
  */
120
- contentClass?: string | string[];
121
+ contentClass?: string | string[] | object[];
121
122
 
122
123
  /**
123
124
  * Show Date time on header.
@@ -0,0 +1,18 @@
1
+ import { ClassComponent } from '../../components/ts-helpers.d';
2
+
3
+ export interface DialogPrintQRProps {
4
+ visible?: boolean;
5
+ }
6
+
7
+ export type DialogPrintQREmits = {
8
+ 'printed': [];
9
+ 'update:visible': [state: boolean];
10
+ };
11
+
12
+ declare class DialogPrintQR extends ClassComponent<
13
+ DialogPrintQRProps,
14
+ unknown,
15
+ DialogPrintQREmits
16
+ > {}
17
+
18
+ export default DialogPrintQR;