@fewangsit/wangsvue-fats 1.0.0-alpha.3 → 1.0.0-alpha.31

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/event-bus/index.d.ts +3 -1
  2. package/package.json +1 -1
  3. package/plugins/WangsVue.d.ts +120 -2
  4. package/plugins/i18n.d.ts +94 -0
  5. package/utils/filterOptions.util.d.ts +2 -2
  6. package/assets/json/currencies.json.d.ts +0 -1068
  7. package/assets/json/supported-official-langs.json.d.ts +0 -530
  8. package/assets/lottie/admin/loading-page.lottie +0 -0
  9. package/assets/lottie/admin/loading-table.lottie +0 -0
  10. package/assets/lottie/admin/no-data.lottie +0 -0
  11. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  12. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  13. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  14. package/assets/lottie/workspace/loading-page.lottie +0 -0
  15. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  16. package/assets/lottie/workspace/loading-table.lottie +0 -0
  17. package/assets/lottie/workspace/no-data.lottie +0 -0
  18. package/build-entry.d.ts +0 -14
  19. package/components/animation/Animation.vue.d.ts +0 -24
  20. package/components/approverinfo/ApproverInfo.vue.d.ts +0 -51
  21. package/components/badge/Badge.vue.d.ts +0 -73
  22. package/components/badgegroup/BadgeGroup.vue.d.ts +0 -52
  23. package/components/basecomponent/index.d.ts +0 -28
  24. package/components/basetree/BaseTree.vue.d.ts +0 -591
  25. package/components/basetree/TreeNode.vue.d.ts +0 -35
  26. package/components/breadcrumb/Breadcrumb.vue.d.ts +0 -26
  27. package/components/button/Button.vue.d.ts +0 -185
  28. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +0 -35
  29. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +0 -104
  30. package/components/buttoncopy/ButtonCopy.vue.d.ts +0 -26
  31. package/components/buttondownload/ButtonDownload.vue.d.ts +0 -49
  32. package/components/buttonfilter/ButtonFilter.vue.d.ts +0 -12
  33. package/components/buttonradio/ButtonRadio.vue.d.ts +0 -257
  34. package/components/buttonsearch/ButtonSearch.vue.d.ts +0 -38
  35. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +0 -198
  36. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  37. package/components/buttonsplit/ButtonSplit.vue.d.ts +0 -34
  38. package/components/buttontoggle/ButtonToggle.vue.d.ts +0 -18
  39. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  40. package/components/calendar/Calendar.vue.d.ts +0 -570
  41. package/components/card/Card.vue.d.ts +0 -139
  42. package/components/checkbox/Checkbox.vue.d.ts +0 -329
  43. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  44. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  45. package/components/customcolumn/CustomColumn.vue.d.ts +0 -37
  46. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  47. package/components/datatable/DataTable.vue.d.ts +0 -735
  48. package/components/datatable/MultiRow.vue.d.ts +0 -16
  49. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  50. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  51. package/components/datatable/helpers/index.d.ts +0 -3
  52. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  53. package/components/datatable/store/dataTable.store.d.ts +0 -22
  54. package/components/dialog/Dialog.vue.d.ts +0 -464
  55. package/components/dialogconfirm/DialogConfirm.vue.d.ts +0 -164
  56. package/components/dialogform/DialogForm.vue.d.ts +0 -349
  57. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +0 -136
  58. package/components/dropdown/Dropdown.vue.d.ts +0 -264
  59. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  60. package/components/editor/Editor.vue.d.ts +0 -191
  61. package/components/editor/EditorButton.vue.d.ts +0 -15
  62. package/components/editor/MentionList.vue.d.ts +0 -35
  63. package/components/editor/MentionSection.vue.d.ts +0 -92
  64. package/components/editor/codeSnippetExtension.d.ts +0 -3
  65. package/components/editor/mentionSectionExtension.d.ts +0 -3
  66. package/components/editor/suggestion.d.ts +0 -2
  67. package/components/fieldwrapper/FieldWrapper.vue.d.ts +0 -69
  68. package/components/fileupload/FileUpload.vue.d.ts +0 -169
  69. package/components/filtercontainer/FilterContainer.vue.d.ts +0 -181
  70. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  71. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  72. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  73. package/components/form/Form.vue.d.ts +0 -316
  74. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  75. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  76. package/components/helpers/index.d.ts +0 -2
  77. package/components/helpers/label.d.ts +0 -15
  78. package/components/icon/Icon.vue.d.ts +0 -256
  79. package/components/image/Image.vue.d.ts +0 -403
  80. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  81. package/components/imagecompressor/ImageCompressor.vue.d.ts +0 -223
  82. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  83. package/components/index.d.ts +0 -63
  84. package/components/inlinemessage/InlineMessage.vue.d.ts +0 -167
  85. package/components/inputbadge/InputBadge.vue.d.ts +0 -122
  86. package/components/inputcurrency/InputCurrency.vue.d.ts +0 -170
  87. package/components/inputcurrency/helpers/currency.helper.d.ts +0 -4
  88. package/components/inputemail/InputEmail.vue.d.ts +0 -25
  89. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  90. package/components/inputnumber/InputNumber.vue.d.ts +0 -282
  91. package/components/inputpassword/InputPassword.vue.d.ts +0 -32
  92. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +0 -99
  93. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  94. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +0 -120
  95. package/components/inputtext/InputText.vue.d.ts +0 -352
  96. package/components/inputurl/InputURL.vue.d.ts +0 -39
  97. package/components/invisiblefield/InvisibleField.vue.d.ts +0 -36
  98. package/components/languagedropdown/LanguageDropdown.vue.d.ts +0 -50
  99. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  100. package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
  101. package/components/litedropdown/LiteDropdown.vue.d.ts +0 -96
  102. package/components/loading/Loading.vue.d.ts +0 -47
  103. package/components/loading/store/loading.store.d.ts +0 -8
  104. package/components/menu/Menu.vue.d.ts +0 -390
  105. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  106. package/components/menu/helpers/index.d.ts +0 -1
  107. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  108. package/components/menuitem/index.d.ts +0 -106
  109. package/components/multiselect/MultiSelect.vue.d.ts +0 -192
  110. package/components/overlaypanel/OverlayPanel.vue.d.ts +0 -301
  111. package/components/passthrough/index.d.ts +0 -16
  112. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  113. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  114. package/components/tabmenu/TabMenu.vue.d.ts +0 -288
  115. package/components/textarea/Textarea.vue.d.ts +0 -170
  116. package/components/timeline/Timeline.vue.d.ts +0 -115
  117. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  118. package/components/toast/Toast.vue.d.ts +0 -367
  119. package/components/toggleswitch/ToggleSwitch.vue.d.ts +0 -281
  120. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  121. package/components/tree/Tree.vue.d.ts +0 -148
  122. package/components/tree/helpers/filterNodeKeys.helper.d.ts +0 -16
  123. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +0 -6
  124. package/components/tree/helpers/index.d.ts +0 -3
  125. package/components/treesearchinput/TreeSearchInput.vue.d.ts +0 -16
  126. package/components/ts-helpers.d.ts +0 -83
  127. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  128. package/components/username/UserName.vue.d.ts +0 -113
  129. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  130. package/config/defaultProps.d.ts +0 -3
  131. package/config/index.d.ts +0 -3
  132. package/config/locale.d.ts +0 -3
  133. package/loading-page-BrQattYE.js +0 -1
  134. package/loading-page-CgfbWppy.js +0 -1
  135. package/loading-page-CoC9UhfC.js +0 -4
  136. package/loading-page-CoXtqoc9.js +0 -4
  137. package/loading-page-DbLuqCHa.js +0 -1
  138. package/loading-page-f8D03l3G.js +0 -4
  139. package/loading-plane-CgfbWppy.js +0 -1
  140. package/loading-plane-CoXtqoc9.js +0 -4
  141. package/loading-table-Bdr9ZhtP.js +0 -1
  142. package/loading-table-ByUoWqUo.js +0 -4
  143. package/loading-table-BygEMzFM.js +0 -4
  144. package/loading-table-BzrSQlA0.js +0 -1
  145. package/loading-table-D9bw9OcI.js +0 -4
  146. package/loading-table-chOgXi94.js +0 -1
  147. package/main.d.ts +0 -2
  148. package/no-data-CTKux8RI.js +0 -4
  149. package/no-data-Cgze_Rvp.js +0 -1
  150. package/no-data-DLHO1L_u.js +0 -4
  151. package/no-data-Dep79CBh.js +0 -1
  152. package/no-data-g0dJCy2p.js +0 -4
  153. package/no-data-y1X5WtcQ.js +0 -1
  154. package/plugins/translation.d.ts +0 -84
  155. package/style.css +0 -1
  156. package/types/options.type.d.ts +0 -16
  157. package/utils/index.d.ts +0 -20
  158. package/utils/role.util.d.ts +0 -2
  159. package/wangsvue-fats.es.js +0 -132744
  160. package/wangsvue-fats.system.js +0 -489
@@ -1,198 +0,0 @@
1
- import { Slot } from 'vue';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
- import { TreeNode } from '../basetree/BaseTree.vue.d';
4
- import { ShortFetchResponse } from '../datatable/DataTable.vue.d';
5
-
6
- export type KeysModelValue = number[] | undefined;
7
- export type NodeModelValue =
8
- | number
9
- | TreeNode
10
- | string
11
- | (number | TreeNode | string)[];
12
-
13
- export interface ButtonSelectTreeProps {
14
- /**
15
- * Below are props that commonly used
16
- * @example - [type, value as modelvalue, fieldDataKey, selectionMode, useValidator, mandatory, fieldName, validatorMessage, label, dialogHeader]
17
- */
18
-
19
- /**
20
- * The tree type.
21
- */
22
- type: 'group' | 'category';
23
- /**
24
- * The model value.
25
- * If you deal with form validation of edit action,
26
- * you need to bind the initital value :value="yourValue"
27
- * Please take a note that you should pass value that match your `props.fieldDataKey`
28
- */
29
- value?: NodeModelValue;
30
- /**
31
- * If selection mode is single mode and you're on edit form, this props should be used
32
- */
33
- selectedNode?: TreeNode;
34
- /**
35
- * To determine which field key that will be used as value
36
- */
37
- fieldDataKey?: string;
38
- /**
39
- * The selection Mode.
40
- *
41
- * @default 'checkbox';
42
- */
43
- selectionMode?: 'single' | 'checkbox';
44
- /**
45
- * Wether the input should be validated with vee-validator or not.
46
- * If you use this component within form input, you need to set this props as true.
47
- */
48
- useValidator?: boolean;
49
- /**
50
- * This prop is required if you use this component in a form input.
51
- * Specify the unique field name, match with your needs for API request.
52
- *
53
- * @default 'selectTree'
54
- */
55
- fieldName?: string;
56
- /**
57
- * Make this field as mandatory on form input.
58
- */
59
- mandatory?: boolean;
60
- /**
61
- * Set custom validator message.
62
- * Will be show if invalid="true"
63
- */
64
- validatorMessage?: string;
65
- /**
66
- * Set custom header Dialog Select Tree
67
- */
68
- dialogHeader?: string;
69
- /**
70
- * The button label.
71
- *
72
- * @default 'Select ${props.type}'
73
- */
74
- label?: string;
75
-
76
- fetchTree?: (
77
- type: 'group' | 'category',
78
- ) => Promise<ShortFetchResponse<TreeNode> | undefined>;
79
- /**
80
- * Specify wether the all tree node should be auto checked once it rendered.
81
- * @default false
82
- */
83
- autoSelectAll?: boolean;
84
- /**
85
- * A list of node keys that should be disabled along with their children.
86
- */
87
- disableKeys?: number[];
88
- /**
89
- * A list of node keys that should be disabled, affecting only the specified nodes and not their children.
90
- */
91
- exactDisableKeys?: number[];
92
- /**
93
- * Disable the Select button
94
- */
95
- disabled?: boolean;
96
- exactDisableKey?: number;
97
- /**
98
- * Disable node 'All' selection
99
- */
100
- disableNodeAll?: boolean;
101
- /**
102
- * Old behavior is preventing select if there is no node selected.
103
- *
104
- * This props comes to make options, wether the selection can be empty or not.
105
- * @default true
106
- */
107
- allowEmptySelection?: boolean;
108
- /**
109
- * The field label
110
- */
111
- fieldLabel?: string;
112
- /**
113
- * The information to be shown to user by hovering info icon.
114
- */
115
- fieldInfo?: string;
116
- /**
117
- * Invalid state.
118
- */
119
- invalid?: boolean;
120
- /**
121
- * Defines width of button for 'Select Group' / 'Select Category' in px.
122
- * Deprecated, use props `width` instead
123
- *
124
- * @deprecated
125
- */
126
- btnWidth?: number;
127
- /**
128
- * Defines width of button for 'Select Group' / 'Select Category' in px.
129
- */
130
- width?: number;
131
- /**
132
- * Defines the tree is readonly and disabled.
133
- */
134
- readonly?: boolean;
135
- /**
136
- * Defines the group tree to showing disposable groups.
137
- */
138
- showDisposableGroups?: boolean;
139
- /**
140
- * Defines the tree to be flattened and shows disposable only
141
- */
142
- flattenDisposableNode?: boolean;
143
- /**
144
- * Defines the group tree to disable excluded keys
145
- */
146
- excludedKeys?: number[];
147
- /**
148
- * Define wether single selection can be edited or readonly
149
- * @default true
150
- */
151
- singleEditable?: boolean;
152
- /**
153
- * Define wether single selection can be reset with close button
154
- * @default false
155
- */
156
- singleResetable?: boolean;
157
- /**
158
- * Show all selected node on button render
159
- *
160
- * @default false
161
- */
162
- fetchTreeOnButtonRender?: boolean;
163
- }
164
-
165
- export type ButtonSelectTreeEmits = {
166
- 'update:value': [keys: NodeModelValue, isAllSelected?: boolean];
167
- 'dialogShown': [];
168
- 'dialogHidden': [];
169
- 'reset': [];
170
- };
171
-
172
- export interface ButtonSelectTreeSlots {
173
- treenode: Slot<{ node: TreeNode }>;
174
- }
175
-
176
- /**
177
- * **TSVue v2 - ButtonSelectTree**
178
- *
179
- * _ButtonSelectTree handles select tree dialog and field validaion._
180
- *
181
- * --- ---
182
- * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
183
- *
184
- * @group Component
185
- */
186
- declare class ButtonSelectTree extends ClassComponent<
187
- ButtonSelectTreeProps,
188
- ButtonSelectTreeSlots,
189
- ButtonSelectTreeEmits
190
- > {}
191
-
192
- declare module '@vue/runtime-core' {
193
- interface GlobalComponents {
194
- ButtonSelectTree: GlobalComponentConstructor<ButtonSelectTree>;
195
- }
196
- }
197
-
198
- export default ButtonSelectTree;
@@ -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,34 +0,0 @@
1
- import { ButtonSplitProps } from './ButtonSplit.d';
2
- declare function __VLS_template(): {
3
- menuitemicon?(_: {
4
- item: any;
5
- class: any;
6
- }): any;
7
- item?(_: {
8
- hasSubmenu: any;
9
- item: any;
10
- label: any;
11
- props: any;
12
- }): any;
13
- };
14
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<ButtonSplitProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- click: (event: Event) => void;
16
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<ButtonSplitProps>>> & {
17
- onClick?: (event: Event) => any;
18
- }, {}, {}>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
- export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
22
- new (): {
23
- $slots: S;
24
- };
25
- };
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToOption<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
@@ -1,18 +0,0 @@
1
- import { DefineComponent } from 'vue';
2
- import {
3
- ToggleSwitchEmits,
4
- ToggleSwitchProps,
5
- } from '../toggleswitch/ToggleSwitch.vue.d';
6
-
7
- export type ButtonToggleProps = ToggleSwitchProps & {};
8
- export type ButtonToggleEmits = ToggleSwitchEmits & {};
9
-
10
- /**
11
- * @deprecated Use ToggleSwitch component instead.
12
- */
13
- declare const ButtonToggle: DefineComponent<
14
- ButtonToggleProps,
15
- ButtonToggleEmits
16
- >;
17
-
18
- export default ButtonToggle;
@@ -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
- };