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

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,350 +0,0 @@
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 { ButtonHTMLAttributes, VNode } from 'vue';
11
- import { ComponentHooks } from '../basecomponent';
12
- import { ButtonPassThroughOptions } from 'primevue/button';
13
- import { MenuItem } from '../menuitem';
14
- import { PassThroughOptions } from '../passthrough';
15
- import {
16
- TieredMenuPassThroughOptions,
17
- TieredMenuRouterBindProps,
18
- } from 'primevue/tieredmenu';
19
- import {
20
- ClassComponent,
21
- GlobalComponentConstructor,
22
- PassThrough,
23
- HintedString,
24
- } from '../ts-helpers';
25
- import { WangsIcons } from '../icon/Icon.vue.d';
26
-
27
- export declare type ButtonSplitPassThroughOptionType =
28
- | ButtonSplitPassThroughAttributes
29
- | ((
30
- options: ButtonSplitPassThroughMethodOptions,
31
- ) => ButtonSplitPassThroughAttributes | string)
32
- | string
33
- | null
34
- | undefined;
35
-
36
- /**
37
- * Custom passthrough(pt) option method.
38
- */
39
- export interface ButtonSplitPassThroughMethodOptions {
40
- /**
41
- * Defines instance.
42
- */
43
- instance: any;
44
- /**
45
- * Defines valid properties.
46
- */
47
- props: ButtonSplitProps;
48
- /**
49
- * Defines current inline state.
50
- */
51
- state: ButtonSplitState;
52
- /**
53
- * Defines valid attributes.
54
- */
55
- attrs: any;
56
- /**
57
- * Defines parent options.
58
- */
59
- parent: any;
60
- /**
61
- * Defines passthrough(pt) options in global config.
62
- */
63
- global: object | undefined;
64
- }
65
-
66
- /**
67
- * Custom shared passthrough(pt) option method.
68
- */
69
- export interface ButtonSplitSharedPassThroughMethodOptions {
70
- /**
71
- * Defines valid properties.
72
- */
73
- props: ButtonSplitProps;
74
- /**
75
- * Defines current inline state.
76
- */
77
- state: ButtonSplitState;
78
- }
79
-
80
- /**
81
- * Custom passthrough(pt) options.
82
- * @see {@link ButtonSplitProps.pt}
83
- */
84
- export interface ButtonSplitPassThroughOptions {
85
- /**
86
- * Used to pass attributes to the root's DOM element.
87
- */
88
- root?: ButtonSplitPassThroughOptionType;
89
- /**
90
- * Used to pass attributes to the button's DOM element.
91
- */
92
- button?: ButtonSplitPassThroughOptionType;
93
- /**
94
- * Used to pass attributes to the Button component.
95
- * @see {@link ButtonPassThroughOptions}
96
- */
97
- menuButton?: ButtonPassThroughOptions<ButtonSplitSharedPassThroughMethodOptions>;
98
- /**
99
- * Used to pass attributes to the TieredMenu component.
100
- * @see {@link TieredMenuPassThroughOptions}
101
- */
102
- menu?: TieredMenuPassThroughOptions<ButtonSplitSharedPassThroughMethodOptions>;
103
- /**
104
- * Used to manage all lifecycle hooks.
105
- * @see {@link BaseComponent.ComponentHooks}
106
- */
107
- hooks?: ComponentHooks;
108
- }
109
-
110
- /**
111
- * Custom passthrough attributes for each DOM elements
112
- */
113
- export interface ButtonSplitPassThroughAttributes {
114
- [key: string]: any;
115
- }
116
-
117
- /**
118
- * Defines current inline state in ButtonSplit component.
119
- */
120
- export interface ButtonSplitState {
121
- /**
122
- * Current blocked state as a boolean.
123
- * @defaultValue false
124
- */
125
- isBlocked: boolean;
126
- }
127
-
128
- /**
129
- * Defines valid properties in ButtonSplit component.
130
- */
131
- export interface ButtonSplitProps {
132
- /**
133
- * Text of the button.
134
- */
135
- label?: string | undefined;
136
- /**
137
- * Name of the icon of main button.
138
- */
139
- icon?: WangsIcons | undefined;
140
- /**
141
- * MenuModel instance to define the overlay items.
142
- */
143
- model?: MenuItem[] | undefined;
144
- /**
145
- * Whether to automatically manage layering.
146
- * @defaultValue true
147
- */
148
- autoZIndex?: boolean | undefined;
149
- /**
150
- * Base zIndex value to use in layering.
151
- * @defaultValue 0
152
- */
153
- baseZIndex?: number | undefined;
154
- /**
155
- * A valid query selector or an HTMLElement to specify where the overlay gets attached.
156
- * Special keywords are 'body' for document body and 'self' for the element itself.
157
- * @defaultValue body
158
- */
159
- appendTo?: HintedString<'body' | 'self'> | undefined | HTMLElement;
160
- /**
161
- * When present, it specifies that the element should be disabled.
162
- * @defaultValue false
163
- */
164
- disabled?: boolean | undefined;
165
- /**
166
- * Style class of the component.
167
- */
168
- class?: any | undefined;
169
- /**
170
- * Inline style of the component.
171
- */
172
- style?: any | undefined;
173
- /**
174
- * Used to pass all properties of the HTMLButtonElement to the default button.
175
- */
176
- buttonProps?: ButtonHTMLAttributes | undefined;
177
- /**
178
- * Used to pass all properties of the HTMLButtonElement to the menu button.
179
- */
180
- menuButtonProps?: ButtonHTMLAttributes | undefined;
181
- /**
182
- * Name of the menu button icon.
183
- */
184
- menuButtonIcon?: WangsIcons | undefined;
185
- /**
186
- * Defines the style of the button.
187
- */
188
- severity?:
189
- | HintedString<
190
- | 'secondary'
191
- | 'success'
192
- | 'info'
193
- | 'warning'
194
- | 'help'
195
- | 'danger'
196
- | 'contrast'
197
- >
198
- | undefined;
199
- /**
200
- * Add a shadow to indicate elevation.
201
- * @defaultValue false
202
- */
203
- raised?: boolean | undefined;
204
- /**
205
- * Add a circular border radius to the button.
206
- * @defaultValue false
207
- */
208
- rounded?: boolean | undefined;
209
- /**
210
- * Add a textual class to the button without a background initially.
211
- * @defaultValue false
212
- */
213
- text?: boolean | undefined;
214
- /**
215
- * Add a border class without a background initially.
216
- * @defaultValue false
217
- */
218
- outlined?: boolean | undefined;
219
- /**
220
- * Defines the size of the button.
221
- */
222
- size?: 'small' | 'large' | undefined;
223
- /**
224
- * Add a plain textual class to the button without a background initially.
225
- * @defaultValue false
226
- */
227
- plain?: boolean | undefined;
228
- /**
229
- * Used to pass attributes to DOM elements inside the component.
230
- * @type {ButtonSplitPassThroughOptions}
231
- */
232
- pt?: PassThrough<ButtonSplitPassThroughOptions>;
233
- /**
234
- * Used to configure passthrough(pt) options of the component.
235
- * @type {PassThroughOptions}
236
- */
237
- ptOptions?: PassThroughOptions;
238
- /**
239
- * When enabled, it removes component related styles in the core.
240
- * @defaultValue false
241
- */
242
- unstyled?: boolean;
243
- }
244
-
245
- /**
246
- * Defines valid slots in ButtonSplit component.
247
- */
248
- export interface ButtonSplitSlots {
249
- /**
250
- * Button part of the content can easily be customized with the default slot instead of using the built-in modes.
251
- */
252
- default(): VNode[];
253
- /**
254
- * Command button part of the content can easily be customized with the button content slot.
255
- */
256
- buttoncontent(): VNode[];
257
- /**
258
- * Custom button icon template.
259
- * @param {Object} scope - icon slot's params.
260
- */
261
- icon(scope: {
262
- /**
263
- * Style class of the icon.
264
- */
265
- class: string;
266
- }): VNode[];
267
- /**
268
- * Custom menu button icon template.
269
- * @param {Object} scope - menubuttonicon slot's params.
270
- */
271
- menubuttonicon(scope: {
272
- /**
273
- * Style class of the icon.
274
- */
275
- class: string;
276
- }): VNode[];
277
- /**
278
- * Custom menu item icon template.
279
- * @param {Object} scope - menuitemicon slot's params.
280
- */
281
- menuitemicon(scope: {
282
- /**
283
- * Menuitem instance
284
- */
285
- item: MenuItem;
286
- /**
287
- * Style class of the item icon element.
288
- */
289
- class: any;
290
- }): VNode[];
291
- /**
292
- * Custom content for each menu item.
293
- * @param {Object} scope - item slot's params.
294
- */
295
- item(scope: {
296
- /**
297
- * Menuitem instance
298
- */
299
- item: MenuItem;
300
- /**
301
- * Label property of the menuitem
302
- */
303
- label: string | ((...args: any) => string) | undefined;
304
- /**
305
- * Binding properties of the menuitem
306
- */
307
- props: TieredMenuRouterBindProps;
308
- /**
309
- * Whether or not there is a submenu
310
- */
311
- hasSubmenu: boolean;
312
- }): VNode[];
313
- }
314
-
315
- /**
316
- * Defines valid emits in ButtonSplit component.
317
- */
318
- export interface ButtonSplitEmits {
319
- /**
320
- * Callback to invoke when main button is clicked.
321
- * @param {Event} event - Browser event.
322
- */
323
- click(event: Event): void;
324
- }
325
-
326
- /**
327
- * **PrimeVue - ButtonSplit**
328
- *
329
- * _ButtonSplit groups a set of commands in an overlay with a default command._
330
- *
331
- * [Live Demo](https://www.primevue.org/splitbutton/)
332
- * --- ---
333
- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
334
- *
335
- * @group Component
336
- *
337
- */
338
- declare class ButtonSplit extends ClassComponent<
339
- ButtonSplitProps,
340
- ButtonSplitSlots,
341
- ButtonSplitEmits
342
- > {}
343
-
344
- declare module 'vue' {
345
- export interface GlobalComponents {
346
- ButtonSplit: GlobalComponentConstructor<ButtonSplit>;
347
- }
348
- }
349
-
350
- export default ButtonSplit;
@@ -1,86 +0,0 @@
1
- import { CalendarProps } from './Calendar.vue.d';
2
- declare function __VLS_template(): {
3
- incrementicon?(_: {}): any;
4
- incrementicon?(_: {}): any;
5
- decrementicon?(_: {}): any;
6
- decrementicon?(_: {}): any;
7
- };
8
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarProps>, {
9
- selectionMode: string;
10
- view: string;
11
- mode: string;
12
- showYear: boolean;
13
- showOptionalText: any;
14
- valueFormat: string;
15
- hideOnRangeSelection: boolean;
16
- hourFormat: string;
17
- dateFormat: string;
18
- stepHour: number;
19
- stepMinute: number;
20
- timeSeparator: string;
21
- exactSelection: boolean;
22
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
- "update:modelValue": (date: Date | Date[]) => void;
24
- "update:epochTimeMillis": (millis?: number | number[]) => void;
25
- monthChange: (event: import('./Calendar.vue.d').CalendarMonthChangeEvent) => void;
26
- yearChange: (event: import('./Calendar.vue.d').CalendarYearChangeEvent) => void;
27
- dateSelect: (date: Date | Date[]) => void;
28
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarProps>, {
29
- selectionMode: string;
30
- view: string;
31
- mode: string;
32
- showYear: boolean;
33
- showOptionalText: any;
34
- valueFormat: string;
35
- hideOnRangeSelection: boolean;
36
- hourFormat: string;
37
- dateFormat: string;
38
- stepHour: number;
39
- stepMinute: number;
40
- timeSeparator: string;
41
- exactSelection: boolean;
42
- }>>> & {
43
- "onUpdate:modelValue"?: (date: Date | Date[]) => any;
44
- "onUpdate:epochTimeMillis"?: (millis?: number | number[]) => any;
45
- onMonthChange?: (event: import('./Calendar.vue.d').CalendarMonthChangeEvent) => any;
46
- onYearChange?: (event: import('./Calendar.vue.d').CalendarYearChangeEvent) => any;
47
- onDateSelect?: (date: Date | Date[]) => any;
48
- }, {
49
- dateFormat: string | undefined;
50
- showOptionalText: boolean;
51
- mode: "range" | "single";
52
- view: "date" | "month" | "year" | undefined;
53
- selectionMode: "range" | "single";
54
- valueFormat: "date" | "millis";
55
- hideOnRangeSelection: boolean | undefined;
56
- showYear: boolean;
57
- hourFormat: "12" | "24" | undefined;
58
- timeSeparator: string | undefined;
59
- stepHour: number | undefined;
60
- stepMinute: number | undefined;
61
- exactSelection: boolean;
62
- }, {}>;
63
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
64
- export default _default;
65
- type __VLS_WithDefaults<P, D> = {
66
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
67
- default: D[K];
68
- }> : P[K];
69
- };
70
- type __VLS_Prettify<T> = {
71
- [K in keyof T]: T[K];
72
- } & {};
73
- type __VLS_WithTemplateSlots<T, S> = T & {
74
- new (): {
75
- $slots: S;
76
- };
77
- };
78
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
79
- type __VLS_TypePropsToOption<T> = {
80
- [K in keyof T]-?: {} extends Pick<T, K> ? {
81
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
82
- } : {
83
- type: import('vue').PropType<T[K]>;
84
- required: true;
85
- };
86
- };
@@ -1,158 +0,0 @@
1
- import { ClassComponent, GlobalComponentConstructor, HintedString } from '../.././components/ts-helpers';
2
- import { TableColumn } from '../.././components/datatable/DataTable.vue.d';
3
- import { FilterField } from '../.././components/filtercontainer/FilterContainer.vue.d';
4
- import { ChangelogFilterQuery } from '@tagsamurai/acts-api-services/src/dto/changelog.dto';
5
-
6
-
7
- export type ChangelogTemplateColumn = { index: number; column: TableColumn };
8
- export type ChangelogTemplateFilter = { index: number; filter: FilterField };
9
-
10
- export type ChangelogDefaultField =
11
- | 'createdAt'
12
- | 'action'
13
- | 'object'
14
- | 'objectName'
15
- | 'field'
16
- | 'oldValue'
17
- | 'newValue'
18
- | 'modifiedBy';
19
-
20
- export type ChangelogFilter = {
21
- object?: string[];
22
- objectName?: string[];
23
- field?: string[];
24
- action?: string[];
25
- modifiedBy?: number[];
26
- createdAt?: number[];
27
- };
28
-
29
- /**
30
- * Props for Changelog component
31
- */
32
- export interface ChangelogProps {
33
- /**
34
- * Props to determine whether this component should using button or not
35
- * For ChangelogPage
36
- * @ignore
37
- */
38
- useButton?: boolean;
39
- /**
40
- * To set custom name for specific column in changelog table
41
- */
42
- objectNameColumn?: string;
43
- /**
44
- * Title content of the dialog.
45
- * @example 'Changelog: Roles > Transfer'
46
- */
47
- header?: string | undefined;
48
- /**
49
- * To give additional columns in changelog table
50
- */
51
- additionalTemplateColumns?: ChangelogTemplateColumn[];
52
- /**
53
- * To give additional filters in changelog filter
54
- */
55
- additionalTemplateFilters?: ChangelogTemplateFilter[];
56
- /**
57
- * Array to determine that these columns will be hidden
58
- */
59
- removedColumns?: ChangelogDefaultField[];
60
- /**
61
- * Array to determine that these filter fields will be hidden
62
- */
63
- removedFilters?: Omit<ChangelogDefaultField, 'oldValue' | 'newValue'>[];
64
- /**
65
- * Changelog object.
66
- * Note: Even if this props is mandatory, if you fill props `objects` then props `object` will not be processed in component.
67
- */
68
- object: string;
69
- /**
70
- * Changelog object ID.
71
- */
72
- objectId?: string;
73
- /**
74
- * Changelog custom params, contains stringified filter query needed.
75
- */
76
- customParams?: ChangelogFilterQuery;
77
- /**
78
- * Use this props if changelog need button download
79
- * @default false
80
- */
81
- useButtonDownload?: boolean;
82
- /**
83
- * Text of the button.
84
- */
85
- label?: string;
86
- /**
87
- * Position of the icon.
88
- * @defaultValue left
89
- */
90
- iconPos?: 'left' | 'right';
91
- /**
92
- * Defines the style of the button.
93
- */
94
- severity?:
95
- | HintedString<
96
- | 'secondary'
97
- | 'success'
98
- | 'info'
99
- | 'warning'
100
- | 'help'
101
- | 'danger'
102
- | 'contrast'
103
- >
104
- | undefined;
105
- /**
106
- * To determine whether changelog button use outlined appearance or not
107
- *
108
- * @default true
109
- */
110
- outlined?: boolean;
111
- /**
112
- * To determine whether changelog button use text only appearance or not
113
- *
114
- * @default false
115
- */
116
- text?: boolean;
117
- /**
118
- * File name is a must if there's button download
119
- * @default 'Changelog' only
120
- */
121
- fileName?: string;
122
- /**
123
- * Now changelog support custom table name from outside
124
- */
125
- tableName?: string;
126
- }
127
-
128
- /**
129
- * Emits for Changelog component
130
- */
131
- export type ChangelogEmits = {
132
- hide: [];
133
- };
134
-
135
- /**
136
- * **WangsVue - Changelog**
137
- *
138
- * _Changelog is a component for to show changelog dialog.
139
- * You need to install vee-validate while using this component._
140
- *
141
- * --- ---
142
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
143
- *
144
- * @group components
145
- */
146
- declare class Changelog extends ClassComponent<
147
- ChangelogProps,
148
- unknown,
149
- ChangelogEmits
150
- > {}
151
-
152
- declare module '@vue/runtime-core' {
153
- interface GlobalComponents {
154
- Changelog: GlobalComponentConstructor<Changelog>;
155
- }
156
- }
157
-
158
- export default Changelog;
@@ -1,16 +0,0 @@
1
- import { BaseChangelogPageProps } from './ChangelogPage.vue.d';
2
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<BaseChangelogPageProps & {
3
- tableName: string;
4
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<BaseChangelogPageProps & {
5
- tableName: string;
6
- }>>>, {}, {}>;
7
- export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };