@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,302 @@
1
+ /**
2
+ *
3
+ * OverlayPanel is a container component positioned as connected to its target.
4
+ *
5
+ * [Live Demo](https://primevue.org/overlaypanel)
6
+ *
7
+ * @module overlaypanel
8
+ *
9
+ */
10
+ import { TransitionProps, VNode } from 'vue';
11
+
12
+ import { ComponentHooks } from '../basecomponent';
13
+ import { PassThroughOptions } from '../passthrough';
14
+ import {
15
+ ClassComponent,
16
+ GlobalComponentConstructor,
17
+ PassThrough,
18
+ } from '../ts-helpers';
19
+
20
+ export declare type OverlayPanelPassThrougMethodType = (
21
+ options: OverlayPanelPassThroughMethodOptions,
22
+ ) => OverlayPanelPassThroughAttributes;
23
+
24
+ export declare type OverlayPanelPassThroughTransitionType =
25
+ | TransitionProps
26
+ | ((options: OverlayPanelPassThroughMethodOptions) => TransitionProps)
27
+ | undefined;
28
+
29
+ /**
30
+ * Custom passthrough(pt) option method.
31
+ */
32
+ export interface OverlayPanelPassThroughMethodOptions {
33
+ /**
34
+ * Defines instance.
35
+ */
36
+ instance: any;
37
+ /**
38
+ * Defines valid properties.
39
+ */
40
+ props: OverlayPanelProps;
41
+ /**
42
+ * Defines current inline state.
43
+ */
44
+ state: OverlayPanelState;
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 OverlayPanelProps.pt}
62
+ */
63
+ export interface OverlayPanelPassThroughOptions {
64
+ /**
65
+ * Used to pass attributes to the root's DOM element.
66
+ */
67
+ root?: OverlayPanelPassThroughAttributes;
68
+ /**
69
+ * Used to pass attributes to the content's DOM element.
70
+ */
71
+ content?: OverlayPanelPassThroughAttributes;
72
+ /**
73
+ * Used to pass attributes to the close button's DOM element.
74
+ */
75
+ closeButton?: OverlayPanelPassThroughAttributes;
76
+ /**
77
+ * Used to pass attributes to the close icon's DOM element.
78
+ */
79
+ closeIcon?: OverlayPanelPassThroughAttributes;
80
+ /**
81
+ * Used to manage all lifecycle hooks.
82
+ * @see {@link BaseComponent.ComponentHooks}
83
+ */
84
+ hooks?: ComponentHooks;
85
+ /**
86
+ * Used to control Vue Transition API.
87
+ */
88
+ transition?: OverlayPanelPassThroughTransitionType;
89
+ }
90
+
91
+ /**
92
+ * Custom passthrough attributes for each DOM elements
93
+ */
94
+ export interface OverlayPanelPassThroughAttributes {
95
+ class: any;
96
+ style?: any;
97
+ [key: string]: any;
98
+ }
99
+
100
+ /**
101
+ * Defines current inline state in OverlayPanel component.
102
+ */
103
+ export interface OverlayPanelState {
104
+ /**
105
+ * Current visible state as a boolean.
106
+ * @defaultValue false
107
+ */
108
+ visible: boolean;
109
+ }
110
+
111
+ /**
112
+ * OverlayPanel breakpoint metadata.
113
+ */
114
+ export interface OverlayPanelBreakpoints {
115
+ /**
116
+ * Breakpoint for responsive mode.
117
+ *
118
+ * Example:
119
+ *
120
+ * <OverlayPanel :breakpoints="{'960px': '75vw', '640px': '100vw'}" ... />
121
+ *
122
+ * Result:
123
+ *
124
+ * @media screen and (max-width: ${breakpoint[key]}) {
125
+ * .p-overlaypanel[attributeSelector] {
126
+ * width: ${breakpoint[value]} !important;
127
+ * }
128
+ * }
129
+ */
130
+ [key: string]: string;
131
+ }
132
+
133
+ /**
134
+ * Defines valid properties in OverlayPanel component.
135
+ */
136
+ export interface OverlayPanelProps {
137
+ /**
138
+ * Enables to hide the overlay when outside is clicked.
139
+ * @defaultValue true
140
+ */
141
+ dismissable?: boolean;
142
+ /**
143
+ * Enables to hide the overlay when another overlay is clicked.
144
+ * @defaultValue true
145
+ */
146
+ dismissableOverlay?: boolean;
147
+ /**
148
+ * When enabled, displays a close icon at top right corner.
149
+ * @defaultValue false
150
+ */
151
+ showCloseIcon?: boolean;
152
+ /**
153
+ * A valid query selector or an HTMLElement to specify where the overlay gets attached.
154
+ * @defaultValue body
155
+ */
156
+ // AppendTo?: HintedString<'body' | 'self'> | undefined | HTMLElement;
157
+ /**
158
+ * Base zIndex value to use in layering.
159
+ * @defaultValue 0
160
+ */
161
+ baseZIndex?: number;
162
+ /**
163
+ * Whether to automatically manage layering.
164
+ * @defaultValue true
165
+ */
166
+ autoZIndex?: boolean;
167
+ /**
168
+ * Object literal to define widths per screen size.
169
+ */
170
+ breakpoints?: OverlayPanelBreakpoints;
171
+ /**
172
+ * Icon to display in the overlaypanel close button.
173
+ * @deprecated since v3.27.0. Use 'closeicon' slot.
174
+ */
175
+ closeIcon?: string | undefined;
176
+ /**
177
+ * Used to pass attributes to DOM elements inside the component.
178
+ * @type {OverlayPanelPassThroughOptions}
179
+ */
180
+ pt?: PassThrough<OverlayPanelPassThroughOptions>;
181
+ /**
182
+ * Used to configure passthrough(pt) options of the component.
183
+ * @type {PassThroughOptions}
184
+ */
185
+ ptOptions?: PassThroughOptions;
186
+ /**
187
+ * When enabled, it removes component related styles in the core.
188
+ * @defaultValue false
189
+ */
190
+ unstyled?: boolean;
191
+ /**
192
+ * Specifies if pressing escape key should hide the dialog.
193
+ * @defaultValue true
194
+ */
195
+ closeOnEscape?: boolean | undefined;
196
+ }
197
+
198
+ /**
199
+ * Defines valid slots in OverlayPanel component.
200
+ */
201
+ export interface OverlayPanelSlots {
202
+ /**
203
+ * Custom content template.
204
+ */
205
+ default(): VNode[];
206
+ /**
207
+ * Custom close icon template.
208
+ */
209
+ closeicon(): VNode[];
210
+ /**
211
+ * Custom container slot.
212
+ * @param {Object} scope - container slot's params.
213
+ */
214
+ container(scope: {
215
+ /**
216
+ * Close overlay panel function.
217
+ * @deprecated since v3.39.0. Use 'closeCallback' property instead.
218
+ */
219
+ onClose: () => void;
220
+ /**
221
+ * Close button keydown function.
222
+ * @param {Event} event - Browser event
223
+ * @deprecated since v3.39.0. Use 'keydownCallback' property instead.
224
+ */
225
+ onKeydown: (event: Event) => void;
226
+ /**
227
+ * Close overlay panel function.
228
+ */
229
+ closeCallback: () => void;
230
+ /**
231
+ * Close button keydown function.
232
+ * @param {Event} event - Browser event
233
+ */
234
+ keydownCallback: (event: Event) => void;
235
+ }): VNode[];
236
+ }
237
+
238
+ /**
239
+ * Defines valid emits in OverlayPanel component.
240
+ */
241
+ export interface OverlayPanelEmits {
242
+ /**
243
+ * Callback to invoke when the overlay is shown.
244
+ */
245
+ show(): void;
246
+ /**
247
+ * Callback to invoke when the overlay is hidden.
248
+ */
249
+ hide(): void;
250
+ }
251
+
252
+ /**
253
+ * **PrimeVue - OverlayPanel**
254
+ *
255
+ * _OverlayPanel, also known as Popover, is a container component that can overlay other components on page._
256
+ *
257
+ * [Live Demo](https://www.primevue.org/overlaypanel/)
258
+ * --- ---
259
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
260
+ *
261
+ * @group Component
262
+ */
263
+ declare class OverlayPanel extends ClassComponent<
264
+ OverlayPanelProps,
265
+ OverlayPanelSlots,
266
+ OverlayPanelEmits
267
+ > {
268
+ /**
269
+ * Aligns overlay panel based on the current position of the container.
270
+ */
271
+ alignOverlay(): void;
272
+ /**
273
+ * Toggles the visibility of the overlay.
274
+ * @param {Event} event - Browser event.
275
+ * @param {*} [target] - Optional target if event.currentTarget should not be used.
276
+ *
277
+ * @memberof OverlayPanel
278
+ */
279
+ toggle(event: Event, target?: unknown): void;
280
+ /**
281
+ * Shows the overlay.
282
+ * @param {Event} event - Browser event.
283
+ * @param {*} [target] - Optional target if event.currentTarget should not be used.
284
+ *
285
+ * @memberof OverlayPanel
286
+ */
287
+ show(event: Event, target?: unknown): void;
288
+ /**
289
+ * Hides the overlay.
290
+ *
291
+ * @memberof OverlayPanel
292
+ */
293
+ hide(): void;
294
+ }
295
+
296
+ declare module '@vue/runtime-core' {
297
+ interface GlobalComponents {
298
+ OverlayPanel: GlobalComponentConstructor<OverlayPanel>;
299
+ }
300
+ }
301
+
302
+ export default OverlayPanel;
@@ -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,16 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ export declare type PassThroughMergePropsType =
3
+ | ((...args: any) => object | undefined)
4
+ | boolean
5
+ | undefined;
6
+
7
+ export interface PassThroughOptions {
8
+ mergeSections?: boolean | undefined;
9
+ mergeProps?: PassThroughMergePropsType;
10
+ }
11
+
12
+ export declare function usePassThrough(
13
+ pt1: object,
14
+ pt2: object,
15
+ options?: PassThroughOptions,
16
+ ): object;
@@ -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;
@@ -0,0 +1,104 @@
1
+ /**
2
+ *
3
+ * TabMenu is a navigation component that displays items as tab headers. Example below uses nested routes with TabMenu.
4
+ *
5
+ * [Live Demo](https://www.WangsVue.org/tabmenu/)
6
+ *
7
+ * @module tabmenu
8
+ *
9
+ */
10
+
11
+ import { TabMenuProps as WangsUITabMenuProps } from '@wangs-ui/core';
12
+ import { MenuItem } from '@wangs-ui/core/dist/types/components/menuitem/menuitem.type';
13
+
14
+ import { ClassComponent } from '../ts-helpers';
15
+
16
+ /**
17
+ * Custom change event.
18
+ * @see {@link TabMenuEmits['tab-change']}
19
+ */
20
+ export interface TabMenuChangeEvent {
21
+ /**
22
+ * Browser event
23
+ */
24
+ originalEvent: Event;
25
+ /**
26
+ * Index of the selected tab
27
+ */
28
+ index: number;
29
+ }
30
+
31
+ /**
32
+ * Defines valid router binding props in TabMenu component.
33
+ */
34
+ export interface TabMenuRouterBindProps {
35
+ /**
36
+ * Action element binding
37
+ */
38
+ action: object;
39
+ /**
40
+ * Icon element binding
41
+ */
42
+ icon: object;
43
+ /**
44
+ * Label element binding
45
+ */
46
+ label: object;
47
+ }
48
+
49
+ /**
50
+ * Defines valid properties in TabMenu component.
51
+ */
52
+ export interface TabMenuProps extends WangsUITabMenuProps {
53
+ /**
54
+ * An array of menuitems.
55
+ */
56
+ menu?: MenuItem[] | undefined;
57
+ /**
58
+ * Defines type of TabMenu.
59
+ * @defaultValue 'tab'
60
+ */
61
+ type?: 'tab' | 'pill' | 'segmented';
62
+ /**
63
+ * Active index of menuitem.
64
+ * @defaultValue 0
65
+ */
66
+ activeIndex?: number | undefined;
67
+ /**
68
+ * Whether to use trailing line at the end of tab menu.
69
+ * @defaultValue true - when type is tab, otherwise true
70
+ */
71
+ useTrailingLine?: boolean | undefined;
72
+ }
73
+
74
+ /**
75
+ * Defines valid emits in TabMenu component.
76
+ */
77
+ export type TabMenuEmits = {
78
+ /**
79
+ * Callback to invoke when an active tab is changed.
80
+ * @param {TabMenuChangeEvent} event - Custom tab change event.
81
+ */
82
+ 'tabChange': [event: TabMenuChangeEvent];
83
+ 'update:activeIndex': [index: number];
84
+ };
85
+
86
+ /**
87
+ * **WangsVue - TabMenu**
88
+ *
89
+ * _TabMenu is a navigation component that displays items as tab headers. Example below uses nested routes with TabMenu._
90
+ *
91
+ * [Live Demo](https://www.WangsVue.org/tabmenu/)
92
+ * --- ---
93
+ * ![WangsVue](https://primefaces.org/cdn/WangsVue/images/logo-100.png)
94
+ *
95
+ * @group Component
96
+ *
97
+ */
98
+ declare class TabMenu extends ClassComponent<
99
+ TabMenuProps,
100
+ unknown,
101
+ TabMenuEmits
102
+ > {}
103
+
104
+ export default TabMenu;