@fewangsit/wangsvue-fats 1.0.0-alpha.13 → 1.0.0-alpha.131

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 (164) hide show
  1. package/components/animation/Animation.vue.d.ts +9 -1
  2. package/components/assetinfo/AssetInfo.vue.d.ts +44 -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 +3 -2
  6. package/components/buttonaddbyscan/ButtonAddByScan.vue.d.ts +40 -0
  7. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
  8. package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
  9. package/components/buttonscan/ButtonScan.vue.d.ts +202 -0
  10. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +46 -0
  11. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +2 -1
  12. package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
  13. package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
  14. package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
  15. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
  16. package/components/calendar/Calendar.vue.d.ts +32 -4
  17. package/components/card/Card.vue.d.ts +1 -0
  18. package/components/carousel/Carousel.vue.d.ts +28 -0
  19. package/components/checkbox/Checkbox.vue.d.ts +1 -0
  20. package/components/datatable/DataTable.vue.d.ts +12 -4
  21. package/components/dialog/Dialog.vue.d.ts +4 -3
  22. package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
  23. package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
  24. package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
  25. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
  26. package/components/dialogform/DialogForm.vue.d.ts +3 -2
  27. package/components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts +106 -0
  28. package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
  29. package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
  30. package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +33 -0
  31. package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -0
  32. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  33. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  34. package/components/dialogselectuser/options/columns.d.ts +3 -0
  35. package/components/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
  36. package/components/dropdown/Dropdown.vue.d.ts +28 -4
  37. package/components/editor/Editor.vue.d.ts +1 -0
  38. package/components/fieldwrapper/FieldWrapper.vue.d.ts +19 -2
  39. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  40. package/components/filtercontainer/FilterContainer.vue.d.ts +107 -69
  41. package/components/form/Form.vue.d.ts +4 -1
  42. package/components/icon/Icon.vue.d.ts +4 -0
  43. package/components/image/Image.vue.d.ts +8 -0
  44. package/components/imagecompressor/ImageCompressor.vue.d.ts +14 -0
  45. package/components/index.d.ts +34 -20
  46. package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
  47. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  48. package/components/inputnumber/InputNumber.vue.d.ts +6 -0
  49. package/components/inputotp/InputOtp.vue.d.ts +3 -0
  50. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  51. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  52. package/components/inputsearch/InputSearch.vue.d.ts +7 -1
  53. package/components/inputtext/InputText.vue.d.ts +2 -1
  54. package/components/inputurl/InputURL.vue.d.ts +4 -2
  55. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
  56. package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -19
  57. package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
  58. package/components/loading/store/loading.store.d.ts +3 -3
  59. package/components/menu/Menu.vue.d.ts +2 -1
  60. package/components/multiselect/MultiSelect.vue.d.ts +7 -4
  61. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  62. package/components/paginator/Paginator.vue.d.ts +285 -0
  63. package/components/steps/Steps.vue.d.ts +20 -0
  64. package/components/tabmenu/TabMenu.vue.d.ts +7 -191
  65. package/components/tagtype/TagType.vue.d.ts +26 -0
  66. package/components/textarea/Textarea.vue.d.ts +2 -1
  67. package/components/timeline/Timeline.vue.d.ts +21 -2
  68. package/components/toast/Toast.vue.d.ts +2 -1
  69. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  70. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  71. package/components/tree/Tree.vue.d.ts +6 -3
  72. package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
  73. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
  74. package/components/ts-helpers.d.ts +8 -0
  75. package/components/username/UserName.vue.d.ts +6 -1
  76. package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
  77. package/config/defaultProps.d.ts +1 -1
  78. package/config/index.d.ts +1 -1
  79. package/config/locale.d.ts +1 -1
  80. package/directives/focus.d.ts +1 -1
  81. package/event-bus/index.d.ts +59 -53
  82. package/event-bus/mitt.d.ts +29 -14
  83. package/main.d.ts +34 -2
  84. package/package.json +14 -6
  85. package/plugins/VueHtmlToPaper.d.ts +11 -0
  86. package/plugins/WangsVue.d.ts +272 -98
  87. package/plugins/formValidation.d.ts +16 -6
  88. package/plugins/i18n-extension.d.ts +1 -1
  89. package/plugins/i18n.d.ts +90 -67
  90. package/stats.html +4949 -0
  91. package/utils/date.util.d.ts +64 -31
  92. package/utils/formatTagCode.util.d.ts +1 -0
  93. package/utils/getStatusSeverity.util.d.ts +23 -0
  94. package/utils/index.d.ts +7 -21
  95. package/utils/isBasic.util.d.ts +1 -0
  96. package/utils/listenSidebarChanges.util.d.ts +14 -9
  97. package/utils/object.util.d.ts +14 -3
  98. package/utils/role.util.d.ts +63 -26
  99. package/utils/toast.util.d.ts +78 -78
  100. package/wangsvue-fats.css +1 -0
  101. package/wangsvue-fats.js +56921 -0
  102. package/wangsvue-fats.system.js +199 -281
  103. package/assets/json/currencies.json.d.ts +0 -1068
  104. package/assets/lottie/admin/loading-page.lottie +0 -0
  105. package/assets/lottie/admin/loading-table.lottie +0 -0
  106. package/assets/lottie/admin/no-data.lottie +0 -0
  107. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  108. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  109. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  110. package/assets/lottie/workspace/loading-page.lottie +0 -0
  111. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  112. package/assets/lottie/workspace/loading-table.lottie +0 -0
  113. package/assets/lottie/workspace/no-data.lottie +0 -0
  114. package/build-entry.d.ts +0 -14
  115. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  116. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  117. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  118. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  119. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  120. package/components/datatable/MultiRow.vue.d.ts +0 -16
  121. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  122. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  123. package/components/datatable/helpers/index.d.ts +0 -3
  124. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  125. package/components/datatable/store/dataTable.store.d.ts +0 -22
  126. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  127. package/components/editor/EditorButton.vue.d.ts +0 -15
  128. package/components/editor/MentionList.vue.d.ts +0 -35
  129. package/components/editor/MentionSection.vue.d.ts +0 -92
  130. package/components/editor/codeSnippetExtension.d.ts +0 -3
  131. package/components/editor/mentionSectionExtension.d.ts +0 -3
  132. package/components/editor/suggestion.d.ts +0 -2
  133. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  134. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  135. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  136. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  137. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  138. package/components/helpers/index.d.ts +0 -2
  139. package/components/helpers/label.d.ts +0 -15
  140. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  141. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  142. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  143. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  144. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  145. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  146. package/components/menu/helpers/index.d.ts +0 -1
  147. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  148. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  149. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  150. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  151. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  152. package/components/tree/helpers/index.d.ts +0 -3
  153. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  154. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  155. package/style.css +0 -1
  156. package/types/options.type.d.ts +0 -16
  157. package/utils/addAttachment.util.d.ts +0 -43
  158. package/utils/exportToExcel.util.d.ts +0 -20
  159. package/utils/filterOptions.util.d.ts +0 -3
  160. package/utils/genPlaceholder.util.d.ts +0 -8
  161. package/utils/getAttachmentIcon.util.d.ts +0 -8
  162. package/utils/mergePropsWithDefaults.util.d.ts +0 -20
  163. package/utils/textFormatter.util.d.ts +0 -17
  164. package/wangsvue-fats.es.js +0 -133530
@@ -1,8 +1,8 @@
1
1
  import { Ref } from 'vue';
2
2
  export interface LoadingStore {
3
- loading: Ref<boolean>;
4
- message: Ref<string | undefined>;
5
- setLoading: (state: boolean, message?: string) => void;
3
+ loading: Ref<boolean>;
4
+ message: Ref<string | undefined>;
5
+ setLoading: (state: boolean, message?: string) => void;
6
6
  }
7
7
  declare const useLoadingStore: () => LoadingStore;
8
8
  export default useLoadingStore;
@@ -10,9 +10,10 @@
10
10
  *
11
11
  */
12
12
  import { TransitionProps, VNode } from 'vue';
13
+
13
14
  import { ComponentHooks } from '../basecomponent';
14
- import { PassThroughOptions } from '../passthrough';
15
15
  import { MenuItem } from '../menuitem';
16
+ import { PassThroughOptions } from '../passthrough';
16
17
  import {
17
18
  ClassComponent,
18
19
  GlobalComponentConstructor,
@@ -1,9 +1,12 @@
1
- import { DropdownLocaleConfig } from '../dropdown/Dropdown.vue.d';
1
+ import {
2
+ DropdownLocaleConfig,
3
+ Option,
4
+ OptionValue,
5
+ } from '../../components/dropdown/Dropdown.vue.d';
6
+
2
7
  import { CustomValidation } from '../form/Form.vue.d';
3
8
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
9
 
5
- import { MultiSelectOption, OptionValue } from 'lib/types/options.type';
6
-
7
10
  export type MultiSelectLocaleConfig = DropdownLocaleConfig & {};
8
11
 
9
12
  /**
@@ -25,7 +28,7 @@ export interface MultiSelectProps {
25
28
  /**
26
29
  * List of options to display.
27
30
  */
28
- options?: MultiSelectOption[] | string[];
31
+ options?: Option[] | string[];
29
32
 
30
33
  /**
31
34
  * Specify the property name of option to be used as label.
@@ -8,6 +8,7 @@
8
8
  *
9
9
  */
10
10
  import { TransitionProps, VNode } from 'vue';
11
+
11
12
  import { ComponentHooks } from '../basecomponent';
12
13
  import { PassThroughOptions } from '../passthrough';
13
14
  import {
@@ -0,0 +1,285 @@
1
+ /**
2
+ *
3
+ * Paginator is a generic component to display content in paged format.
4
+ *
5
+ * [Live Demo](https://TSVue v2.org/paginator)
6
+ *
7
+ * @module paginator
8
+ *
9
+ */
10
+ import { VNode } from 'vue';
11
+
12
+ import { PassThroughOptions } from '../passthrough';
13
+ import {
14
+ ClassComponent,
15
+ GlobalComponentConstructor,
16
+ PassThrough,
17
+ } from '../ts-helpers';
18
+
19
+ import {
20
+ PaginatorPassThroughAttributes,
21
+ PaginatorPassThroughOptions,
22
+ } from 'primevue/paginator';
23
+
24
+ export declare type PaginatorPassThroughOptionType<T = any> =
25
+ | PaginatorPassThroughAttributes
26
+ | ((
27
+ options: PaginatorPassThroughMethodOptions<T>,
28
+ ) => PaginatorPassThroughAttributes | string)
29
+ | string
30
+ | null
31
+ | undefined;
32
+
33
+ /**
34
+ * Custom passthrough(pt) option method.
35
+ */
36
+ export interface PaginatorPassThroughMethodOptions<T> {
37
+ /**
38
+ * Defines instance.
39
+ */
40
+ instance: any;
41
+ /**
42
+ * Defines valid properties.
43
+ */
44
+ props: PaginatorProps;
45
+ /**
46
+ * Defines current inline state.
47
+ */
48
+ state: PaginatorState;
49
+ /**
50
+ * Defines parent instance.
51
+ */
52
+ parent: T;
53
+ /**
54
+ * Defines current options.
55
+ */
56
+ context: PaginatorContext;
57
+ /**
58
+ * Defines passthrough(pt) options in global config.
59
+ */
60
+ global: object | undefined;
61
+ }
62
+
63
+ /**
64
+ * Custom shared passthrough(pt) option method.
65
+ */
66
+ export interface PaginatorSharedPassThroughMethodOptions {
67
+ /**
68
+ * Defines valid properties.
69
+ */
70
+ props: PaginatorProps;
71
+ /**
72
+ * Defines current inline state.
73
+ */
74
+ state: PaginatorState;
75
+ }
76
+
77
+ /**
78
+ * Defines current inline state in Paginator component.
79
+ */
80
+ export interface PaginatorState {
81
+ /**
82
+ * Current index of first record as a number.
83
+ */
84
+ d_first: number;
85
+ /**
86
+ * Current number of rows to display in new page as a number.
87
+ */
88
+ d_rows: number;
89
+ }
90
+
91
+ /**
92
+ * Defines current options in Paginator component.
93
+ */
94
+ export interface PaginatorContext {
95
+ /**
96
+ * Current active state as a boolean.
97
+ * @defaultValue false
98
+ */
99
+ active: boolean;
100
+ /**
101
+ * Current disabled state of the button as a boolean.
102
+ * @defaultValue false
103
+ */
104
+ disabled: boolean;
105
+ }
106
+
107
+ /**
108
+ * Paginator page state metadata.
109
+ */
110
+ export interface PageState {
111
+ /**
112
+ * Index of first record
113
+ */
114
+ first: number;
115
+ /**
116
+ * Number of rows to display in new page
117
+ */
118
+ rows: number;
119
+ /**
120
+ * New page number
121
+ */
122
+ page: number;
123
+ /**
124
+ * Total number of pages
125
+ */
126
+ pageCount?: number;
127
+ }
128
+
129
+ /**
130
+ * Defines valid properties in Paginator component.
131
+ */
132
+ export interface PaginatorProps {
133
+ /**
134
+ * Number of total records.
135
+ * @defaultValue 0
136
+ */
137
+ totalRecords?: number | undefined;
138
+ /**
139
+ * Data count to display per page.
140
+ * @defaultValue 0
141
+ */
142
+ rows?: number | undefined;
143
+ /**
144
+ * Zero-relative number of the first row to be displayed.
145
+ * @defaultValue 0
146
+ */
147
+ first?: number | undefined;
148
+ /**
149
+ * Number of page links to display.
150
+ * @defaultValue 5
151
+ */
152
+ pageLinkSize?: number | undefined;
153
+ /**
154
+ * Array of integer values to display inside rows per page dropdown.
155
+ */
156
+ rowsPerPageOptions?: number[] | undefined;
157
+ /**
158
+ * Template of the paginator, can either be a string or an object with key-value pairs to define templates per breakpoint. Available templates are the following;
159
+ *
160
+ * - FirstPageLink
161
+ * - PrevPageLink
162
+ * - PageLinks
163
+ * - NextPageLink
164
+ * - LastPageLink
165
+ * - RowsPerPageDropdown
166
+ * - JumpToPageDropdown
167
+ * - JumpToPageInput
168
+ * - CurrentPageReport
169
+ */
170
+ template?: any | string;
171
+ /**
172
+ * Template of the current page report element. It displays information about the pagination state. Available placeholders are the following;
173
+ *
174
+ * - {currentPage}
175
+ * - {totalPages}
176
+ * - {rows}
177
+ * - {first}
178
+ * - {last}
179
+ * - {totalRecords}
180
+ *
181
+ * @defaultValue '({currentPage} of {totalPages})'
182
+ */
183
+ currentPageReportTemplate?: string | undefined;
184
+ /**
185
+ * Whether to show the paginator even there is only one page.
186
+ * @defaultValue true
187
+ */
188
+ alwaysShow?: boolean | undefined;
189
+ /**
190
+ * Used to pass attributes to DOM elements inside the component.
191
+ * @type {PaginatorPassThroughOptions}
192
+ */
193
+ pt?: PassThrough<PaginatorPassThroughOptions>;
194
+ /**
195
+ * Used to configure passthrough(pt) options of the component.
196
+ * @type {PassThroughOptions}
197
+ */
198
+ ptOptions?: PassThroughOptions;
199
+ }
200
+
201
+ /**
202
+ * Defines valid slots in Paginator component.
203
+ */
204
+ export interface PaginatorSlots {
205
+ /**
206
+ * Custom start template.
207
+ * @param {Object} scope - start slot's params.
208
+ */
209
+ start(scope: {
210
+ /**
211
+ * Current state
212
+ * @see PageState
213
+ */
214
+ state: PageState;
215
+ }): VNode[];
216
+ /**
217
+ * Custom end template.
218
+ * @param {Object} scope - end slot's params.
219
+ */
220
+ end(scope: {
221
+ /**
222
+ * Current state
223
+ * @see PageState
224
+ */
225
+ state: PageState;
226
+ }): VNode[];
227
+ /**
228
+ * Custom first page link icon template.
229
+ */
230
+ firstpagelinkicon(): VNode[];
231
+ /**
232
+ * Custom previous page link icon template.
233
+ */
234
+ prevpagelinkicon(): VNode[];
235
+ /**
236
+ * Custom finextrst page link icon template.
237
+ */
238
+ nextpagelinkicon(): VNode[];
239
+ /**
240
+ * Custom last page link icon template.
241
+ */
242
+ lastpagelinkicon(): VNode[];
243
+ /**
244
+ * Custom rowsperpagedropdownicon template.
245
+ * @param {Object} scope - rowsperpagedropdownicon's params.
246
+ */
247
+ rowsperpagedropdownicon(scope: {
248
+ /**
249
+ * Style class of the rowsperpagedropdown icon.
250
+ */
251
+ class: string;
252
+ }): VNode[];
253
+ /**
254
+ * Custom jumptopagedropdownicon template.
255
+ * @param {Object} scope - jumptopagedropdownicon's params.
256
+ */
257
+ jumptopagedropdownicon(scope: {
258
+ /**
259
+ * Style class of the jumptopagedropdown icon.
260
+ */
261
+ class: string;
262
+ }): VNode[];
263
+ }
264
+
265
+ /**
266
+ * Defines valid emits in Paginator component.
267
+ */
268
+ export type PaginatorEmits = {
269
+ 'page': [event: PageState];
270
+ 'update:rows': [];
271
+ };
272
+
273
+ declare class Paginator extends ClassComponent<
274
+ PaginatorProps,
275
+ PaginatorSlots,
276
+ PaginatorEmits
277
+ > {}
278
+
279
+ declare module '@vue/runtime-core' {
280
+ interface GlobalComponents {
281
+ Paginator: GlobalComponentConstructor<Paginator>;
282
+ }
283
+ }
284
+
285
+ export default Paginator;
@@ -0,0 +1,20 @@
1
+ import { ClassComponent } from '../../components/ts-helpers.d';
2
+
3
+ export type Step = {
4
+ label: string;
5
+ };
6
+
7
+ export interface StepsProps {
8
+ /**
9
+ * List of step object or label.
10
+ */
11
+ steps: Step[] | string[] | (string | Step)[];
12
+ /**
13
+ * The current active step start from 1.
14
+ */
15
+ currentStep: number;
16
+ }
17
+
18
+ declare class Steps extends ClassComponent<StepsProps, unknown, unknown> {}
19
+
20
+ export default Steps;
@@ -7,126 +7,11 @@
7
7
  * @module tabmenu
8
8
  *
9
9
  */
10
- import { VNode } from 'vue';
11
- import { ComponentHooks } from '../basecomponent';
12
- import { MenuItem } from '../menuitem';
13
- import { PassThroughOptions } from '../passthrough';
14
- import { ClassComponent, PassThrough } from '../ts-helpers';
15
10
 
16
- export declare type TabMenuPassThroughOptionType =
17
- | TabMenuPassThroughAttributes
18
- | ((
19
- options: TabMenuPassThroughMethodOptions,
20
- ) => TabMenuPassThroughAttributes | string)
21
- | string
22
- | null
23
- | undefined;
11
+ import { TabMenuProps as WangsUITabMenuProps } from '@wangs-ui/core';
12
+ import { MenuItem } from '@wangs-ui/core/dist/types/components/menuitem/menuitem.type';
24
13
 
25
- /**
26
- * Custom passthrough(pt) option method.
27
- */
28
- export interface TabMenuPassThroughMethodOptions {
29
- /**
30
- * Defines instance.
31
- */
32
- instance: any;
33
- /**
34
- * Defines valid properties.
35
- */
36
- props: TabMenuProps;
37
- /**
38
- * Defines current inline state.
39
- */
40
- state: TabMenuState;
41
- /**
42
- * Defines current options.
43
- */
44
- context: TabMenuContext;
45
- /**
46
- * Defines valid attributes.
47
- */
48
- attrs: any;
49
- /**
50
- * Defines parent options.
51
- */
52
- parent: any;
53
- /**
54
- * Defines passthrough(pt) options in global config.
55
- */
56
- global: object | undefined;
57
- }
58
-
59
- /**
60
- * Custom passthrough(pt) options.
61
- * @see {@link TabMenuProps.pt}
62
- */
63
- export interface TabMenuPassThroughOptions {
64
- /**
65
- * Used to pass attributes to the root's DOM element.
66
- */
67
- root?: TabMenuPassThroughOptionType;
68
- /**
69
- * Used to pass attributes to the list's DOM element.
70
- */
71
- menu?: TabMenuPassThroughOptionType;
72
- /**
73
- * Used to pass attributes to the list item's DOM element.
74
- */
75
- menuitem?: TabMenuPassThroughOptionType;
76
- /**
77
- * Used to pass attributes to the action's DOM element.
78
- */
79
- action?: TabMenuPassThroughOptionType;
80
- /**
81
- * Used to pass attributes to the icon's DOM element.
82
- */
83
- icon?: TabMenuPassThroughOptionType;
84
- /**
85
- * Used to pass attributes to the label's DOM element.
86
- */
87
- label?: TabMenuPassThroughOptionType;
88
- /**
89
- * Used to pass attributes to the inkbar's DOM element.
90
- */
91
- inkbar?: TabMenuPassThroughOptionType;
92
- /**
93
- * Used to manage all lifecycle hooks.
94
- * @see {@link BaseComponent.ComponentHooks}
95
- */
96
- hooks?: ComponentHooks;
97
- }
98
-
99
- /**
100
- * Custom passthrough attributes for each DOM elements
101
- */
102
- export interface TabMenuPassThroughAttributes {
103
- [key: string]: any;
104
- }
105
-
106
- /**
107
- * Defines current inline state in TabMenu component.
108
- */
109
- export interface TabMenuState {
110
- /**
111
- * Current active index state as a number.
112
- * @defaulValue 0
113
- */
114
- d_activeIndex: number;
115
- }
116
-
117
- /**
118
- * Defines current options in TabMenu component.
119
- */
120
- export interface TabMenuContext {
121
- /**
122
- * Current menuitem
123
- */
124
- item: any;
125
- /**
126
- * Index of the menuitem
127
- */
128
- index: number;
129
- }
14
+ import { ClassComponent } from '../ts-helpers';
130
15
 
131
16
  /**
132
17
  * Custom change event.
@@ -164,7 +49,7 @@ export interface TabMenuRouterBindProps {
164
49
  /**
165
50
  * Defines valid properties in TabMenu component.
166
51
  */
167
- export interface TabMenuProps {
52
+ export interface TabMenuProps extends WangsUITabMenuProps {
168
53
  /**
169
54
  * An array of menuitems.
170
55
  */
@@ -173,7 +58,7 @@ export interface TabMenuProps {
173
58
  * Defines type of TabMenu.
174
59
  * @defaultValue 'tab'
175
60
  */
176
- type?: 'tab' | 'pill';
61
+ type?: 'tab' | 'pill' | 'segmented';
177
62
  /**
178
63
  * Active index of menuitem.
179
64
  * @defaultValue 0
@@ -184,75 +69,6 @@ export interface TabMenuProps {
184
69
  * @defaultValue true - when type is tab, otherwise true
185
70
  */
186
71
  useTrailingLine?: boolean | undefined;
187
- /**
188
- * Defines a string value that labels an interactive element.
189
- */
190
- ariaLabel?: string | undefined;
191
- /**
192
- * Identifier of the underlying input element.
193
- */
194
- ariaLabelledby?: string | undefined;
195
- /**
196
- * Used to pass attributes to DOM elements inside the component.
197
- * @type {TabMenuPassThroughOptions}
198
- */
199
- pt?: PassThrough<TabMenuPassThroughOptions>;
200
- /**
201
- * Used to configure passthrough(pt) options of the component.
202
- * @type {PassThroughOptions}
203
- */
204
- ptOptions?: PassThroughOptions;
205
- /**
206
- * When enabled, it removes component related styles in the core.
207
- * @defaultValue false
208
- */
209
- unstyled?: boolean;
210
- }
211
-
212
- /**
213
- * Defines valid slots in TabMenu component.
214
- */
215
- export interface TabMenuSlots {
216
- /**
217
- * Custom content for each item.
218
- * @param {Object} scope - item slot's params.
219
- */
220
- item(scope: {
221
- /**
222
- * Menuitem instance
223
- */
224
- item: MenuItem;
225
- /**
226
- * Index of the menuitem
227
- */
228
- index: number;
229
- /**
230
- * Current active state of the menuitem
231
- */
232
- active: boolean;
233
- /**
234
- * Label property of the menuitem
235
- */
236
- label: string | ((...args: any) => string) | undefined;
237
- /**
238
- * Binding properties of the menuitem
239
- */
240
- props: TabMenuRouterBindProps;
241
- }): VNode[];
242
- /**
243
- * Custom item icon template.
244
- * @param {Object} scope - item icon slot's params.
245
- */
246
- itemicon(scope: {
247
- /**
248
- * Menuitem instance
249
- */
250
- item: MenuItem;
251
- /**
252
- * Style class of the item icon element.
253
- */
254
- class: any;
255
- }): VNode[];
256
72
  }
257
73
 
258
74
  /**
@@ -263,7 +79,7 @@ export type TabMenuEmits = {
263
79
  * Callback to invoke when an active tab is changed.
264
80
  * @param {TabMenuChangeEvent} event - Custom tab change event.
265
81
  */
266
- 'tab-change': [event: TabMenuChangeEvent];
82
+ 'tabChange': [event: TabMenuChangeEvent];
267
83
  'update:activeIndex': [index: number];
268
84
  };
269
85
 
@@ -281,7 +97,7 @@ export type TabMenuEmits = {
281
97
  */
282
98
  declare class TabMenu extends ClassComponent<
283
99
  TabMenuProps,
284
- TabMenuSlots,
100
+ unknown,
285
101
  TabMenuEmits
286
102
  > {}
287
103
 
@@ -0,0 +1,26 @@
1
+ import { ClassComponent } from 'primevue/ts-helpers';
2
+
3
+ export type AssetTagType =
4
+ | 'QR'
5
+ | 'RFID'
6
+ | 'NFC'
7
+ | 'RFID & NFC'
8
+ | 'RFID & QR'
9
+ | 'NFC & QR'
10
+ | 'RFID & NFC & QR'
11
+ | 'Non TAG';
12
+
13
+ export interface TagTypeProps {
14
+ type: AssetTagType;
15
+
16
+ /**
17
+ * @default true
18
+ */
19
+ useNfc?: boolean;
20
+ }
21
+
22
+ export default class TagType extends ClassComponent<
23
+ TagTypeProps,
24
+ unknown,
25
+ unknown
26
+ > {}
@@ -1,11 +1,12 @@
1
1
  import { TextareaHTMLAttributes } from 'vue';
2
+
3
+ import { CustomValidation } from '../form/Form.vue.d';
2
4
  import {
3
5
  ClassComponent,
4
6
  GlobalComponentConstructor,
5
7
  Nullable,
6
8
  Numberish,
7
9
  } from '../ts-helpers.d';
8
- import { CustomValidation } from '../form/Form.vue.d';
9
10
 
10
11
  export interface TextareaLocaleConfig {
11
12
  /**
@@ -1,5 +1,7 @@
1
- import { JSONContent } from '../editor/Editor.vue.d';
1
+ import { VNode } from 'vue';
2
+
2
3
  import { BadgeProps } from '../badge/Badge.vue.d';
4
+ import { JSONContent } from '../editor/Editor.vue.d';
3
5
  import { ClassComponent } from '../ts-helpers';
4
6
 
5
7
  export interface AttachmentFile {
@@ -70,12 +72,17 @@ export type DetailType =
70
72
  | DetailJSONContent
71
73
  | DetailBadge;
72
74
 
75
+ export type DetailAnyRecord = Record<string, any>;
76
+
77
+ export type SlotDetailType = string | DetailAnyRecord;
78
+
73
79
  export type KeyValue = Record<string, string | DetailType>;
74
80
 
75
81
  export type TimelineItem = {
76
82
  _id: string;
77
83
  action: string;
78
84
  createdAt: string;
85
+ username?: string;
79
86
  user?: {
80
87
  _id: string;
81
88
  nickName: string;
@@ -102,6 +109,18 @@ export type TimelineProps = {
102
109
  noFormatDate?: boolean;
103
110
  };
104
111
 
112
+ export type TimelineSlots = {
113
+ /**
114
+ * Custom detail template.
115
+ *
116
+ * Use this slot if you want to configure your own detail value in each timeline
117
+ */
118
+ detail(slotProps: {
119
+ key: string;
120
+ value: SlotDetailType; // Type DetailAnyRecord only used when using slot since you can use your own object structure
121
+ }): VNode[];
122
+ };
123
+
105
124
  /**
106
125
  * **WangsVue - Timeline**
107
126
  *
@@ -114,7 +133,7 @@ export type TimelineProps = {
114
133
  */
115
134
  declare class Timeline extends ClassComponent<
116
135
  TimelineProps,
117
- unknown,
136
+ TimelineSlots,
118
137
  unknown
119
138
  > {}
120
139