@fewangsit/wangsvue-fats 1.0.0-alpha.2
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.
- package/assets/json/currencies.json.d.ts +1068 -0
- package/assets/json/supported-official-langs.json.d.ts +530 -0
- package/assets/lottie/admin/loading-page.lottie +0 -0
- package/assets/lottie/admin/loading-table.lottie +0 -0
- package/assets/lottie/admin/no-data.lottie +0 -0
- package/assets/lottie/supplyasset/loading-page.lottie +0 -0
- package/assets/lottie/supplyasset/loading-table.lottie +0 -0
- package/assets/lottie/supplyasset/no-data.lottie +0 -0
- package/assets/lottie/workspace/loading-page.lottie +0 -0
- package/assets/lottie/workspace/loading-plane.lottie +0 -0
- package/assets/lottie/workspace/loading-table.lottie +0 -0
- package/assets/lottie/workspace/no-data.lottie +0 -0
- package/build-entry.d.ts +14 -0
- package/components/animation/Animation.vue.d.ts +24 -0
- package/components/approverinfo/ApproverInfo.vue.d.ts +51 -0
- package/components/badge/Badge.vue.d.ts +73 -0
- package/components/badgegroup/BadgeGroup.vue.d.ts +52 -0
- package/components/basecomponent/index.d.ts +28 -0
- package/components/basetree/BaseTree.vue.d.ts +591 -0
- package/components/basetree/TreeNode.vue.d.ts +35 -0
- package/components/breadcrumb/Breadcrumb.vue.d.ts +26 -0
- package/components/button/Button.vue.d.ts +185 -0
- package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +35 -0
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +104 -0
- package/components/buttoncopy/ButtonCopy.vue.d.ts +26 -0
- package/components/buttondownload/ButtonDownload.vue.d.ts +49 -0
- package/components/buttonfilter/ButtonFilter.vue.d.ts +12 -0
- package/components/buttonradio/ButtonRadio.vue.d.ts +257 -0
- package/components/buttonsearch/ButtonSearch.vue.d.ts +38 -0
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +198 -0
- package/components/buttonsplit/ButtonSplit.d.ts +350 -0
- package/components/buttonsplit/ButtonSplit.vue.d.ts +34 -0
- package/components/buttontoggle/ButtonToggle.vue.d.ts +18 -0
- package/components/calendar/BaseCalendar.vue.d.ts +86 -0
- package/components/calendar/Calendar.vue.d.ts +570 -0
- package/components/card/Card.vue.d.ts +139 -0
- package/components/checkbox/Checkbox.vue.d.ts +329 -0
- package/components/codesnippet/CodeSnippet.vue.d.ts +14 -0
- package/components/customcolumn/ColumnList.vue.d.ts +27 -0
- package/components/customcolumn/CustomColumn.vue.d.ts +37 -0
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +12 -0
- package/components/datatable/DataTable.vue.d.ts +735 -0
- package/components/datatable/MultiRow.vue.d.ts +16 -0
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +1 -0
- package/components/datatable/helpers/filter.helper.d.ts +28 -0
- package/components/datatable/helpers/index.d.ts +3 -0
- package/components/datatable/helpers/readConfig.helper.d.ts +2 -0
- package/components/datatable/store/dataTable.store.d.ts +22 -0
- package/components/dialog/Dialog.vue.d.ts +464 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +164 -0
- package/components/dialogform/DialogForm.vue.d.ts +349 -0
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +136 -0
- package/components/dropdown/Dropdown.vue.d.ts +264 -0
- package/components/editor/CodeSnippetAdapter.vue.d.ts +92 -0
- package/components/editor/Editor.vue.d.ts +191 -0
- package/components/editor/EditorButton.vue.d.ts +15 -0
- package/components/editor/MentionList.vue.d.ts +35 -0
- package/components/editor/MentionSection.vue.d.ts +92 -0
- package/components/editor/codeSnippetExtension.d.ts +3 -0
- package/components/editor/mentionSectionExtension.d.ts +3 -0
- package/components/editor/suggestion.d.ts +2 -0
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +69 -0
- package/components/fileupload/FileUpload.vue.d.ts +169 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +181 -0
- package/components/filtercontainer/helpers/applyFilter.helper.d.ts +5 -0
- package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +7 -0
- package/components/filtercontainer/helpers/getOption.helper.d.ts +3 -0
- package/components/form/Form.vue.d.ts +316 -0
- package/components/gallerypreview/GalleryPreview.vue.d.ts +31 -0
- package/components/helpers/convertToArrayClass.helper.d.ts +2 -0
- package/components/helpers/index.d.ts +2 -0
- package/components/helpers/label.d.ts +15 -0
- package/components/icon/Icon.vue.d.ts +256 -0
- package/components/image/Image.vue.d.ts +403 -0
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +36 -0
- package/components/imagecompressor/ImageCompressor.vue.d.ts +223 -0
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +30 -0
- package/components/index.d.ts +63 -0
- package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
- package/components/inputbadge/InputBadge.vue.d.ts +122 -0
- package/components/inputcurrency/InputCurrency.vue.d.ts +170 -0
- package/components/inputcurrency/helpers/currency.helper.d.ts +4 -0
- package/components/inputemail/InputEmail.vue.d.ts +25 -0
- package/components/inputgroup/InputGroup.vue.d.ts +141 -0
- package/components/inputnumber/InputNumber.vue.d.ts +282 -0
- package/components/inputpassword/InputPassword.vue.d.ts +32 -0
- package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +99 -0
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +8 -0
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +120 -0
- package/components/inputtext/InputText.vue.d.ts +352 -0
- package/components/inputurl/InputURL.vue.d.ts +39 -0
- package/components/invisiblefield/InvisibleField.vue.d.ts +36 -0
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +50 -0
- package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +18 -0
- package/components/languageswitcher/LanguageSwitcher.vue.d.ts +15 -0
- package/components/litedropdown/LiteDropdown.vue.d.ts +96 -0
- package/components/loading/Loading.vue.d.ts +47 -0
- package/components/loading/store/loading.store.d.ts +8 -0
- package/components/menu/Menu.vue.d.ts +390 -0
- package/components/menu/helpers/filterMenu.helper.d.ts +12 -0
- package/components/menu/helpers/index.d.ts +1 -0
- package/components/menuitem/MenuItem.vue.d.ts +19 -0
- package/components/menuitem/index.d.ts +106 -0
- package/components/multiselect/MultiSelect.vue.d.ts +192 -0
- package/components/overlaypanel/OverlayPanel.vue.d.ts +301 -0
- package/components/passthrough/index.d.ts +16 -0
- package/components/progressbar/ProgressBar.vue.d.ts +72 -0
- package/components/quickfilter/QuickFilter.vue.d.ts +25 -0
- package/components/tabmenu/TabMenu.vue.d.ts +288 -0
- package/components/textarea/Textarea.vue.d.ts +170 -0
- package/components/timeline/Timeline.vue.d.ts +115 -0
- package/components/timeline/TimelineContentByType.vue.d.ts +16 -0
- package/components/toast/Toast.vue.d.ts +367 -0
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +281 -0
- package/components/tooltipspan/TooltipSpan.vue.d.ts +20 -0
- package/components/tree/Tree.vue.d.ts +148 -0
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +16 -0
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +6 -0
- package/components/tree/helpers/index.d.ts +3 -0
- package/components/treesearchinput/TreeSearchInput.vue.d.ts +16 -0
- package/components/ts-helpers.d.ts +83 -0
- package/components/usergroup/UserGroup.vue.d.ts +57 -0
- package/components/username/UserName.vue.d.ts +113 -0
- package/components/validatormessage/ValidatorMessage.vue.d.ts +12 -0
- package/config/defaultProps.d.ts +3 -0
- package/config/index.d.ts +3 -0
- package/config/locale.d.ts +3 -0
- package/directives/focus.d.ts +7 -0
- package/directives/index.d.ts +1 -0
- package/event-bus/index.d.ts +58 -0
- package/event-bus/mitt.d.ts +26 -0
- package/loading-page-BrQattYE.js +1 -0
- package/loading-page-CgfbWppy.js +1 -0
- package/loading-page-CoC9UhfC.js +4 -0
- package/loading-page-CoXtqoc9.js +4 -0
- package/loading-page-DbLuqCHa.js +1 -0
- package/loading-page-f8D03l3G.js +4 -0
- package/loading-plane-CgfbWppy.js +1 -0
- package/loading-plane-CoXtqoc9.js +4 -0
- package/loading-table-Bdr9ZhtP.js +1 -0
- package/loading-table-ByUoWqUo.js +4 -0
- package/loading-table-BygEMzFM.js +4 -0
- package/loading-table-BzrSQlA0.js +1 -0
- package/loading-table-D9bw9OcI.js +4 -0
- package/loading-table-chOgXi94.js +1 -0
- package/main.d.ts +2 -0
- package/no-data-CTKux8RI.js +4 -0
- package/no-data-Cgze_Rvp.js +1 -0
- package/no-data-DLHO1L_u.js +4 -0
- package/no-data-Dep79CBh.js +1 -0
- package/no-data-g0dJCy2p.js +4 -0
- package/no-data-y1X5WtcQ.js +1 -0
- package/package.json +16 -0
- package/plugins/WangsVue.d.ts +131 -0
- package/plugins/formValidation.d.ts +10 -0
- package/plugins/translation.d.ts +84 -0
- package/style.css +1 -0
- package/types/options.type.d.ts +16 -0
- package/utils/addAttachment.util.d.ts +43 -0
- package/utils/date.util.d.ts +46 -0
- package/utils/exportToExcel.util.d.ts +20 -0
- package/utils/filterOptions.util.d.ts +3 -0
- package/utils/genPlaceholder.util.d.ts +8 -0
- package/utils/getAttachmentIcon.util.d.ts +8 -0
- package/utils/index.d.ts +21 -0
- package/utils/mergePropsWithDefaults.util.d.ts +20 -0
- package/utils/object.util.d.ts +16 -0
- package/utils/role.util.d.ts +2 -0
- package/utils/textFormatter.util.d.ts +17 -0
- package/utils/toast.util.d.ts +120 -0
- package/wangsvue-fats.es.js +132743 -0
- package/wangsvue-fats.system.js +489 -0
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
* 
|
|
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;
|
|
@@ -0,0 +1,350 @@
|
|
|
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
|
+
* 
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
};
|