@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,201 @@
1
+ import { Slot } from 'vue';
2
+
3
+ import { TreeNode } from '../basetree/BaseTree.vue.d';
4
+ import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
5
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+
7
+ export type KeysModelValue = number[] | undefined;
8
+ export type NodeModelValue =
9
+ | number
10
+ | TreeNode
11
+ | string
12
+ | (number | TreeNode | string)[];
13
+
14
+ export interface ButtonSelectTreeProps {
15
+ /**
16
+ * Below are props that commonly used
17
+ * @example - [type, value as modelvalue, fieldDataKey, selectionMode, useValidator, mandatory, fieldName, validatorMessage, label, dialogHeader]
18
+ */
19
+
20
+ /**
21
+ * The tree type.
22
+ */
23
+ type: 'group' | 'category';
24
+ /**
25
+ * The model value.
26
+ * If you deal with form validation of edit action,
27
+ * you need to bind the initital value :value="yourValue"
28
+ * Please take a note that you should pass value that match your `props.fieldDataKey`
29
+ */
30
+ value?: NodeModelValue;
31
+ /**
32
+ * If selection mode is single mode and you're on edit form, this props should be used
33
+ */
34
+ selectedNode?: TreeNode;
35
+ /**
36
+ * To determine which field key that will be used as value
37
+ */
38
+ fieldDataKey?: string;
39
+ /**
40
+ * The selection Mode.
41
+ *
42
+ * @default 'checkbox';
43
+ */
44
+ selectionMode?: 'single' | 'checkbox';
45
+ /**
46
+ * Wether the input should be validated with vee-validator or not.
47
+ * If you use this component within form input, you need to set this props as true.
48
+ */
49
+ useValidator?: boolean;
50
+ /**
51
+ * This prop is required if you use this component in a form input.
52
+ * Specify the unique field name, match with your needs for API request.
53
+ *
54
+ * @default 'selectTree'
55
+ */
56
+ fieldName?: string;
57
+ /**
58
+ * Make this field as mandatory on form input.
59
+ */
60
+ mandatory?: boolean;
61
+ /**
62
+ * Set custom validator message.
63
+ * Will be show if invalid="true"
64
+ */
65
+ validatorMessage?: string;
66
+ /**
67
+ * Set custom header Dialog Select Tree
68
+ */
69
+ dialogHeader?: string;
70
+ /**
71
+ * The button label.
72
+ *
73
+ * @default 'Select ${props.type}'
74
+ */
75
+ label?: string;
76
+
77
+ fetchTree?: (
78
+ type: 'group' | 'category',
79
+ params?: QueryParams,
80
+ ) => Promise<ShortFetchResponse<TreeNode> | undefined>;
81
+ params?: QueryParams;
82
+ /**
83
+ * Specify wether the all tree node should be auto checked once it rendered.
84
+ * @default false
85
+ */
86
+ autoSelectAll?: boolean;
87
+ /**
88
+ * A list of node keys that should be disabled along with their children.
89
+ */
90
+ disableKeys?: number[];
91
+ /**
92
+ * A list of node keys that should be disabled, affecting only the specified nodes and not their children.
93
+ */
94
+ exactDisableKeys?: number[];
95
+ /**
96
+ * Disable the Select button
97
+ */
98
+ disabled?: boolean;
99
+ exactDisableKey?: number;
100
+ /**
101
+ * Disable node 'All' selection
102
+ */
103
+ disableNodeAll?: boolean;
104
+ /**
105
+ * Old behavior is preventing select if there is no node selected.
106
+ *
107
+ * This props comes to make options, wether the selection can be empty or not.
108
+ * @default true
109
+ */
110
+ allowEmptySelection?: boolean;
111
+ /**
112
+ * The field label
113
+ */
114
+ fieldLabel?: string;
115
+ /**
116
+ * The information to be shown to user by hovering info icon.
117
+ */
118
+ fieldInfo?: string;
119
+ /**
120
+ * Invalid state.
121
+ */
122
+ invalid?: boolean;
123
+ /**
124
+ * Defines width of button for 'Select Group' / 'Select Category' in px.
125
+ * Deprecated, use props `width` instead
126
+ *
127
+ * @deprecated
128
+ */
129
+ btnWidth?: number;
130
+ /**
131
+ * Defines width of button for 'Select Group' / 'Select Category' in px.
132
+ */
133
+ width?: number;
134
+ /**
135
+ * Defines the tree is readonly and disabled.
136
+ */
137
+ readonly?: boolean;
138
+ /**
139
+ * Defines the group tree to showing disposable groups.
140
+ */
141
+ showDisposableGroups?: boolean;
142
+ /**
143
+ * Defines the tree to be flattened and shows disposable only
144
+ */
145
+ flattenDisposableNode?: boolean;
146
+ /**
147
+ * Defines the group tree to disable excluded keys
148
+ */
149
+ excludedKeys?: number[];
150
+ /**
151
+ * Define wether single selection can be edited or readonly
152
+ * @default true
153
+ */
154
+ singleEditable?: boolean;
155
+ /**
156
+ * Define wether single selection can be reset with close button
157
+ * @default false
158
+ */
159
+ singleResetable?: boolean;
160
+ /**
161
+ * Show all selected node on button render
162
+ *
163
+ * @default false
164
+ */
165
+ fetchTreeOnButtonRender?: boolean;
166
+ }
167
+
168
+ export type ButtonSelectTreeEmits = {
169
+ 'update:value': [keys: NodeModelValue, isAllSelected?: boolean];
170
+ 'dialogShown': [];
171
+ 'dialogHidden': [];
172
+ 'reset': [];
173
+ };
174
+
175
+ export interface ButtonSelectTreeSlots {
176
+ treenode: Slot<{ node: TreeNode }>;
177
+ }
178
+
179
+ /**
180
+ * **TSVue v2 - ButtonSelectTree**
181
+ *
182
+ * _ButtonSelectTree handles select tree dialog and field validaion._
183
+ *
184
+ * --- ---
185
+ * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
186
+ *
187
+ * @group Component
188
+ */
189
+ declare class ButtonSelectTree extends ClassComponent<
190
+ ButtonSelectTreeProps,
191
+ ButtonSelectTreeSlots,
192
+ ButtonSelectTreeEmits
193
+ > {}
194
+
195
+ declare module '@vue/runtime-core' {
196
+ interface GlobalComponents {
197
+ ButtonSelectTree: GlobalComponentConstructor<ButtonSelectTree>;
198
+ }
199
+ }
200
+
201
+ export default ButtonSelectTree;
@@ -0,0 +1,352 @@
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;
@@ -0,0 +1,19 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ import {
4
+ ToggleSwitchEmits,
5
+ ToggleSwitchProps,
6
+ } from '../toggleswitch/ToggleSwitch.vue.d';
7
+
8
+ export type ButtonToggleProps = ToggleSwitchProps & {};
9
+ export type ButtonToggleEmits = ToggleSwitchEmits & {};
10
+
11
+ /**
12
+ * @deprecated Use ToggleSwitch component instead.
13
+ */
14
+ declare const ButtonToggle: DefineComponent<
15
+ ButtonToggleProps,
16
+ ButtonToggleEmits
17
+ >;
18
+
19
+ export default ButtonToggle;
@@ -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;