@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.
- package/event-bus/index.d.ts +3 -1
- package/package.json +1 -1
- package/plugins/WangsVue.d.ts +120 -2
- package/plugins/i18n.d.ts +94 -0
- package/utils/filterOptions.util.d.ts +2 -2
- package/assets/json/currencies.json.d.ts +0 -1068
- package/assets/json/supported-official-langs.json.d.ts +0 -530
- 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 +0 -14
- package/components/animation/Animation.vue.d.ts +0 -24
- package/components/approverinfo/ApproverInfo.vue.d.ts +0 -51
- package/components/badge/Badge.vue.d.ts +0 -73
- package/components/badgegroup/BadgeGroup.vue.d.ts +0 -52
- package/components/basecomponent/index.d.ts +0 -28
- package/components/basetree/BaseTree.vue.d.ts +0 -591
- package/components/basetree/TreeNode.vue.d.ts +0 -35
- package/components/breadcrumb/Breadcrumb.vue.d.ts +0 -26
- package/components/button/Button.vue.d.ts +0 -185
- package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +0 -35
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +0 -104
- package/components/buttoncopy/ButtonCopy.vue.d.ts +0 -26
- package/components/buttondownload/ButtonDownload.vue.d.ts +0 -49
- package/components/buttonfilter/ButtonFilter.vue.d.ts +0 -12
- package/components/buttonradio/ButtonRadio.vue.d.ts +0 -257
- package/components/buttonsearch/ButtonSearch.vue.d.ts +0 -38
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +0 -198
- package/components/buttonsplit/ButtonSplit.d.ts +0 -350
- package/components/buttonsplit/ButtonSplit.vue.d.ts +0 -34
- package/components/buttontoggle/ButtonToggle.vue.d.ts +0 -18
- package/components/calendar/BaseCalendar.vue.d.ts +0 -86
- package/components/calendar/Calendar.vue.d.ts +0 -570
- package/components/card/Card.vue.d.ts +0 -139
- package/components/checkbox/Checkbox.vue.d.ts +0 -329
- package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
- package/components/customcolumn/ColumnList.vue.d.ts +0 -27
- package/components/customcolumn/CustomColumn.vue.d.ts +0 -37
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
- package/components/datatable/DataTable.vue.d.ts +0 -735
- package/components/datatable/MultiRow.vue.d.ts +0 -16
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
- package/components/datatable/helpers/filter.helper.d.ts +0 -28
- package/components/datatable/helpers/index.d.ts +0 -3
- package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
- package/components/datatable/store/dataTable.store.d.ts +0 -22
- package/components/dialog/Dialog.vue.d.ts +0 -464
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +0 -164
- package/components/dialogform/DialogForm.vue.d.ts +0 -349
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +0 -136
- package/components/dropdown/Dropdown.vue.d.ts +0 -264
- package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
- package/components/editor/Editor.vue.d.ts +0 -191
- package/components/editor/EditorButton.vue.d.ts +0 -15
- package/components/editor/MentionList.vue.d.ts +0 -35
- package/components/editor/MentionSection.vue.d.ts +0 -92
- package/components/editor/codeSnippetExtension.d.ts +0 -3
- package/components/editor/mentionSectionExtension.d.ts +0 -3
- package/components/editor/suggestion.d.ts +0 -2
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +0 -69
- package/components/fileupload/FileUpload.vue.d.ts +0 -169
- package/components/filtercontainer/FilterContainer.vue.d.ts +0 -181
- package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
- package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
- package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
- package/components/form/Form.vue.d.ts +0 -316
- package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
- package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
- package/components/helpers/index.d.ts +0 -2
- package/components/helpers/label.d.ts +0 -15
- package/components/icon/Icon.vue.d.ts +0 -256
- package/components/image/Image.vue.d.ts +0 -403
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
- package/components/imagecompressor/ImageCompressor.vue.d.ts +0 -223
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
- package/components/index.d.ts +0 -63
- package/components/inlinemessage/InlineMessage.vue.d.ts +0 -167
- package/components/inputbadge/InputBadge.vue.d.ts +0 -122
- package/components/inputcurrency/InputCurrency.vue.d.ts +0 -170
- package/components/inputcurrency/helpers/currency.helper.d.ts +0 -4
- package/components/inputemail/InputEmail.vue.d.ts +0 -25
- package/components/inputgroup/InputGroup.vue.d.ts +0 -141
- package/components/inputnumber/InputNumber.vue.d.ts +0 -282
- package/components/inputpassword/InputPassword.vue.d.ts +0 -32
- package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +0 -99
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +0 -120
- package/components/inputtext/InputText.vue.d.ts +0 -352
- package/components/inputurl/InputURL.vue.d.ts +0 -39
- package/components/invisiblefield/InvisibleField.vue.d.ts +0 -36
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +0 -50
- package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
- package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
- package/components/litedropdown/LiteDropdown.vue.d.ts +0 -96
- package/components/loading/Loading.vue.d.ts +0 -47
- package/components/loading/store/loading.store.d.ts +0 -8
- package/components/menu/Menu.vue.d.ts +0 -390
- package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
- package/components/menu/helpers/index.d.ts +0 -1
- package/components/menuitem/MenuItem.vue.d.ts +0 -19
- package/components/menuitem/index.d.ts +0 -106
- package/components/multiselect/MultiSelect.vue.d.ts +0 -192
- package/components/overlaypanel/OverlayPanel.vue.d.ts +0 -301
- package/components/passthrough/index.d.ts +0 -16
- package/components/progressbar/ProgressBar.vue.d.ts +0 -72
- package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
- package/components/tabmenu/TabMenu.vue.d.ts +0 -288
- package/components/textarea/Textarea.vue.d.ts +0 -170
- package/components/timeline/Timeline.vue.d.ts +0 -115
- package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
- package/components/toast/Toast.vue.d.ts +0 -367
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +0 -281
- package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
- package/components/tree/Tree.vue.d.ts +0 -148
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +0 -16
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +0 -6
- package/components/tree/helpers/index.d.ts +0 -3
- package/components/treesearchinput/TreeSearchInput.vue.d.ts +0 -16
- package/components/ts-helpers.d.ts +0 -83
- package/components/usergroup/UserGroup.vue.d.ts +0 -57
- package/components/username/UserName.vue.d.ts +0 -113
- package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
- package/config/defaultProps.d.ts +0 -3
- package/config/index.d.ts +0 -3
- package/config/locale.d.ts +0 -3
- package/loading-page-BrQattYE.js +0 -1
- package/loading-page-CgfbWppy.js +0 -1
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-CoXtqoc9.js +0 -4
- package/loading-page-DbLuqCHa.js +0 -1
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-D9bw9OcI.js +0 -4
- package/loading-table-chOgXi94.js +0 -1
- package/main.d.ts +0 -2
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-DLHO1L_u.js +0 -4
- package/no-data-Dep79CBh.js +0 -1
- package/no-data-g0dJCy2p.js +0 -4
- package/no-data-y1X5WtcQ.js +0 -1
- package/plugins/translation.d.ts +0 -84
- package/style.css +0 -1
- package/types/options.type.d.ts +0 -16
- package/utils/index.d.ts +0 -20
- package/utils/role.util.d.ts +0 -2
- package/wangsvue-fats.es.js +0 -132744
- package/wangsvue-fats.system.js +0 -489
package/components/index.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export * from '.././components';
|
|
2
|
-
export { default as Animation } from './animation/Animation.vue';
|
|
3
|
-
export { default as ApproverInfo } from './approverinfo/ApproverInfo.vue';
|
|
4
|
-
export { default as Badge } from './badge/Badge.vue';
|
|
5
|
-
export { default as BadgeGroup } from './badgegroup/BadgeGroup.vue';
|
|
6
|
-
export { default as BaseTree } from '.././components/basetree/BaseTree.vue';
|
|
7
|
-
export { default as Breadcrumb } from './breadcrumb/Breadcrumb.vue';
|
|
8
|
-
export { default as Button } from './button/Button.vue';
|
|
9
|
-
export { default as ButtonBulkAction } from './buttonbulkaction/ButtonBulkAction.vue';
|
|
10
|
-
export { default as ButtonCopy } from './buttoncopy/ButtonCopy.vue';
|
|
11
|
-
export { default as ButtonDownload } from './buttondownload/ButtonDownload.vue';
|
|
12
|
-
export { default as ButtonFilter } from './buttonfilter/ButtonFilter.vue';
|
|
13
|
-
export { default as ButtonImportExcel } from './buttonImportExcel/ButtonImportExcel.vue';
|
|
14
|
-
export { default as ButtonRadio } from './buttonradio/ButtonRadio.vue';
|
|
15
|
-
export { default as ButtonSearch } from './buttonsearch/ButtonSearch.vue';
|
|
16
|
-
export { default as ButtonSelectTree } from '.././components/buttonselecttree/ButtonSelectTree.vue';
|
|
17
|
-
export { default as ButtonSplit } from './buttonsplit/ButtonSplit.vue';
|
|
18
|
-
export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
|
|
19
|
-
export { default as Calendar } from '.././components/calendar/Calendar.vue';
|
|
20
|
-
export { default as Card } from './card/Card.vue';
|
|
21
|
-
export { default as Checkbox } from './checkbox/Checkbox.vue';
|
|
22
|
-
export { default as CodeSnippet } from './codesnippet/CodeSnippet.vue';
|
|
23
|
-
export { default as DataTable } from './datatable/DataTable.vue';
|
|
24
|
-
export { default as Dialog } from './dialog/Dialog.vue';
|
|
25
|
-
export { default as DialogConfirm } from './dialogconfirm/DialogConfirm.vue';
|
|
26
|
-
export { default as DialogForm } from './dialogform/DialogForm.vue';
|
|
27
|
-
export { default as DialogSelectTree } from '.././components/dialogselecttree/DialogSelectTree.vue';
|
|
28
|
-
export { default as Dropdown } from './dropdown/Dropdown.vue';
|
|
29
|
-
export { default as Editor } from './editor/Editor.vue';
|
|
30
|
-
export { default as FileUpload } from './fileupload/FileUpload.vue';
|
|
31
|
-
export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
|
|
32
|
-
export { default as Form } from './form/Form.vue';
|
|
33
|
-
export { default as Icon } from './icon/Icon.vue';
|
|
34
|
-
export { default as Image } from './image/Image.vue';
|
|
35
|
-
export { default as ImageCompressor } from './imagecompressor/ImageCompressor.vue';
|
|
36
|
-
export { default as InlineMessage } from '.././components/inlinemessage/InlineMessage.vue';
|
|
37
|
-
export { default as InputBadge } from './inputbadge/InputBadge.vue';
|
|
38
|
-
export { default as InputCurrency } from './inputcurrency/InputCurrency.vue';
|
|
39
|
-
export { default as InputEmail } from './inputemail/InputEmail.vue';
|
|
40
|
-
export { default as InputNumber } from './inputnumber/InputNumber.vue';
|
|
41
|
-
export { default as InputPassword } from './inputpassword/InputPassword.vue';
|
|
42
|
-
export { default as InputPhoneNumber } from './inputphonenumber/InputPhoneNumber.vue';
|
|
43
|
-
export { default as InputRangeNumber } from './inputrangenumber/InputRangeNumber.vue';
|
|
44
|
-
export { default as InputText } from './inputtext/InputText.vue';
|
|
45
|
-
export { default as InputURL } from './inputurl/InputURL.vue';
|
|
46
|
-
export { default as InvisibleField } from './invisiblefield/InvisibleField.vue';
|
|
47
|
-
export { default as LanguageDropdown } from './languagedropdown/LanguageDropdown.vue';
|
|
48
|
-
export { default as LiteDropdown } from './litedropdown/LiteDropdown.vue';
|
|
49
|
-
export { default as Loading } from './loading/Loading.vue';
|
|
50
|
-
export { default as Menu } from './menu/Menu.vue';
|
|
51
|
-
export { default as MultiSelect } from './multiselect/MultiSelect.vue';
|
|
52
|
-
export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
|
|
53
|
-
export { default as ProgressBar } from './progressbar/ProgressBar.vue';
|
|
54
|
-
export { default as QuickFilter } from './quickfilter/QuickFilter.vue';
|
|
55
|
-
export { default as TabMenu } from './tabmenu/TabMenu.vue';
|
|
56
|
-
export { default as Textarea } from './textarea/Textarea.vue';
|
|
57
|
-
export { default as Timeline } from './timeline/Timeline.vue';
|
|
58
|
-
export { default as Toast } from './toast/Toast.vue';
|
|
59
|
-
export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
|
|
60
|
-
export { default as TooltipSpan } from './tooltipspan/TooltipSpan.vue';
|
|
61
|
-
export { default as Tree } from '.././components/tree/Tree.vue';
|
|
62
|
-
export { default as UserGroup } from './usergroup/UserGroup.vue';
|
|
63
|
-
export { default as UserName } from './username/UserName.vue';
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms. It has one property, severity of the message.
|
|
4
|
-
*
|
|
5
|
-
* @module inlinemessage
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
import { ComponentHooks } from '../basecomponent';
|
|
9
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
10
|
-
|
|
11
|
-
export declare type InlineMessagePassThroughOptionType =
|
|
12
|
-
| InlineMessagePassThroughAttributes
|
|
13
|
-
| ((
|
|
14
|
-
options: InlineMessagePassThroughMethodOptions,
|
|
15
|
-
) => InlineMessagePassThroughAttributes | string)
|
|
16
|
-
| string
|
|
17
|
-
| null
|
|
18
|
-
| undefined;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Custom passthrough(pt) option method.
|
|
22
|
-
*/
|
|
23
|
-
export interface InlineMessagePassThroughMethodOptions {
|
|
24
|
-
/**
|
|
25
|
-
* Defines instance.
|
|
26
|
-
*/
|
|
27
|
-
instance: any;
|
|
28
|
-
/**
|
|
29
|
-
* Defines valid properties.
|
|
30
|
-
*/
|
|
31
|
-
props: InlineMessageProps;
|
|
32
|
-
/**
|
|
33
|
-
* Defines current inline state.
|
|
34
|
-
*/
|
|
35
|
-
state: InlineMessageState;
|
|
36
|
-
/**
|
|
37
|
-
* Defines valid attributes.
|
|
38
|
-
*/
|
|
39
|
-
attrs: any;
|
|
40
|
-
/**
|
|
41
|
-
* Defines parent options.
|
|
42
|
-
*/
|
|
43
|
-
parent: any;
|
|
44
|
-
/**
|
|
45
|
-
* Defines passthrough(pt) options in global config.
|
|
46
|
-
*/
|
|
47
|
-
global: object | undefined;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Custom passthrough(pt) options.
|
|
52
|
-
* @see {@link InlineMessageProps.pt}
|
|
53
|
-
*/
|
|
54
|
-
export interface InlineMessagePassThroughOptions {
|
|
55
|
-
/**
|
|
56
|
-
* Used to pass attributes to the root's DOM element.
|
|
57
|
-
*/
|
|
58
|
-
root?: InlineMessagePassThroughOptionType;
|
|
59
|
-
/**
|
|
60
|
-
* Used to pass attributes to the icon's DOM element.
|
|
61
|
-
*/
|
|
62
|
-
icon?: InlineMessagePassThroughOptionType;
|
|
63
|
-
/**
|
|
64
|
-
* Used to pass attributes to the text's DOM element.
|
|
65
|
-
*/
|
|
66
|
-
text?: InlineMessagePassThroughOptionType;
|
|
67
|
-
/**
|
|
68
|
-
* Used to manage all lifecycle hooks.
|
|
69
|
-
* @see {@link BaseComponent.ComponentHooks}
|
|
70
|
-
*/
|
|
71
|
-
hooks?: ComponentHooks;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Custom passthrough attributes for each DOM elements
|
|
76
|
-
*/
|
|
77
|
-
export interface InlineMessagePassThroughAttributes {
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Defines current inline state in InlineMessage component.
|
|
83
|
-
*/
|
|
84
|
-
export interface InlineMessageState {
|
|
85
|
-
/**
|
|
86
|
-
* Current visible state as a boolean.
|
|
87
|
-
* @defaultValue false
|
|
88
|
-
*/
|
|
89
|
-
visible: boolean;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Defines valid emits in InlineMessage component.
|
|
94
|
-
*/
|
|
95
|
-
export type InlineMessageEmits = {
|
|
96
|
-
/**
|
|
97
|
-
* Emits when close button is clicked.
|
|
98
|
-
*/
|
|
99
|
-
close: [];
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Defines valid properties in InlineMessage component.
|
|
104
|
-
*/
|
|
105
|
-
export interface InlineMessageProps {
|
|
106
|
-
/**
|
|
107
|
-
* Severity level of the message.
|
|
108
|
-
* @default 'secondary'
|
|
109
|
-
*/
|
|
110
|
-
severity?: 'success' | 'danger' | 'secondary' | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* The title.
|
|
113
|
-
*/
|
|
114
|
-
title?: string | undefined;
|
|
115
|
-
/**
|
|
116
|
-
* The message.
|
|
117
|
-
*/
|
|
118
|
-
message?: string | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* The list of item to be displayed after message.
|
|
121
|
-
*/
|
|
122
|
-
lists?: string[] | undefined;
|
|
123
|
-
/**
|
|
124
|
-
* Wether show the Message Icon.
|
|
125
|
-
*
|
|
126
|
-
* @default true
|
|
127
|
-
*/
|
|
128
|
-
showIcon?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Wether the message is removable by close button.
|
|
131
|
-
*
|
|
132
|
-
* @default true
|
|
133
|
-
*/
|
|
134
|
-
removable?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* The message section additional class.
|
|
137
|
-
*/
|
|
138
|
-
messageWrapperClass?: string | string[];
|
|
139
|
-
/**
|
|
140
|
-
* Whether to show the loading state of the component.
|
|
141
|
-
*
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
loading?: boolean;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* **Wangsvue - InlineMessage**
|
|
149
|
-
*
|
|
150
|
-
* _InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms. It has one property, severity of the message._
|
|
151
|
-
*
|
|
152
|
-
* @group Component
|
|
153
|
-
*
|
|
154
|
-
*/
|
|
155
|
-
declare class InlineMessage extends ClassComponent<
|
|
156
|
-
InlineMessageProps,
|
|
157
|
-
unknown,
|
|
158
|
-
InlineMessageEmits
|
|
159
|
-
> {}
|
|
160
|
-
|
|
161
|
-
declare module '@vue/runtime-core' {
|
|
162
|
-
interface GlobalComponents {
|
|
163
|
-
InlineMessage: GlobalComponentConstructor<InlineMessage>;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export default InlineMessage;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { CustomValidation } from '../form/Form.vue.d';
|
|
2
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* InputBadge component props
|
|
6
|
-
*/
|
|
7
|
-
export interface InputBadgeProps {
|
|
8
|
-
/**
|
|
9
|
-
* The type of input, whether input text or input email
|
|
10
|
-
*
|
|
11
|
-
* @default text
|
|
12
|
-
*/
|
|
13
|
-
type?: 'text' | 'email';
|
|
14
|
-
/**
|
|
15
|
-
* The model value. Used for input without validation.
|
|
16
|
-
*/
|
|
17
|
-
modelValue?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* Sets the initial value of the field.
|
|
20
|
-
* This will only available with option 'useValidator'.
|
|
21
|
-
*
|
|
22
|
-
* In use case like edit form, you need to display the previous inputted value.
|
|
23
|
-
*/
|
|
24
|
-
initialValue?: string[];
|
|
25
|
-
/**
|
|
26
|
-
* Determines if the field uses a validator
|
|
27
|
-
*/
|
|
28
|
-
useValidator?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Exisitng values to be checkeed with validation 'exist' - check the validatorMessage props
|
|
31
|
-
*
|
|
32
|
-
* - Need to specify the custom validation : { empty: 'Error message when empty' } within props validatorMessage
|
|
33
|
-
*/
|
|
34
|
-
existingValues?: string[];
|
|
35
|
-
/**
|
|
36
|
-
* Determines if the field is mandatory
|
|
37
|
-
*/
|
|
38
|
-
mandatory?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Set custom validator message.
|
|
41
|
-
*/
|
|
42
|
-
validatorMessage?: string | CustomValidation;
|
|
43
|
-
/**
|
|
44
|
-
* Whether shows the invalid message or not.
|
|
45
|
-
* The validator message will be shown if useValidator true and the field label is specified.
|
|
46
|
-
*
|
|
47
|
-
* Sets this props to 'false' to force the validator message always hidden.
|
|
48
|
-
*
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
showValidatorMessage?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Set the invalid state.
|
|
54
|
-
*
|
|
55
|
-
* @default - If field is mandatory, the field will be considered invalid if the input is empty.
|
|
56
|
-
*/
|
|
57
|
-
invalid?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* This prop is required if you use this component in a form input.
|
|
60
|
-
* Specify the unique field name, match with your needs for API request.
|
|
61
|
-
*
|
|
62
|
-
* @default 'inputBadge'
|
|
63
|
-
*/
|
|
64
|
-
fieldName?: string;
|
|
65
|
-
/**
|
|
66
|
-
* The text input placholder.
|
|
67
|
-
*
|
|
68
|
-
* @default 'Enter value'
|
|
69
|
-
*/
|
|
70
|
-
placeholder?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Disabled state.
|
|
73
|
-
*/
|
|
74
|
-
disabled?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* The field input label. Tell the user what input is this.
|
|
77
|
-
*/
|
|
78
|
-
label?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Show information to user about the field.
|
|
81
|
-
*/
|
|
82
|
-
fieldInfo?: string;
|
|
83
|
-
/**
|
|
84
|
-
* If true, deleted badges will be replaced with `null` to preserve their index position.
|
|
85
|
-
* Otherwise, the badge will be fully removed, shifting subsequent items.
|
|
86
|
-
*/
|
|
87
|
-
preserveDeletedIndex?: boolean;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* InputBadge component emits
|
|
92
|
-
*/
|
|
93
|
-
export type InputBadgeEmits = {
|
|
94
|
-
/**
|
|
95
|
-
* Emits when a new label added.
|
|
96
|
-
*/
|
|
97
|
-
'update:modelValue': [value: string[] | undefined];
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* **WangsVue - InputBadge**
|
|
102
|
-
*
|
|
103
|
-
* _InputBadge is input text that changes it value into Badge component on Enter key pressed._
|
|
104
|
-
*
|
|
105
|
-
* --- ---
|
|
106
|
-
* 
|
|
107
|
-
*
|
|
108
|
-
* @group Component
|
|
109
|
-
*/
|
|
110
|
-
declare class InputBadge extends ClassComponent<
|
|
111
|
-
InputBadgeProps,
|
|
112
|
-
Record<string, unknown>,
|
|
113
|
-
InputBadgeEmits
|
|
114
|
-
> {}
|
|
115
|
-
|
|
116
|
-
declare module '@vue/runtime-core' {
|
|
117
|
-
interface GlobalComponents {
|
|
118
|
-
InputBadge: GlobalComponentConstructor<InputBadge>;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export default InputBadge;
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { CustomValidation } from '../form/Form.vue.d';
|
|
2
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
-
|
|
4
|
-
export type CurrencyFormat = {
|
|
5
|
-
name?: string;
|
|
6
|
-
label: string;
|
|
7
|
-
currency: string;
|
|
8
|
-
symbol: string;
|
|
9
|
-
locale: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export interface CurrencyValue {
|
|
13
|
-
currency: string; // Currency ISO Code
|
|
14
|
-
value?: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Configuration interface for locale-specific settings of the InputCurrency component.
|
|
19
|
-
*/
|
|
20
|
-
export interface InputCurrencyLocaleConfig {
|
|
21
|
-
/**
|
|
22
|
-
* Error message to display when the input is empty.
|
|
23
|
-
*
|
|
24
|
-
* @example '{label} must not be empty' - 'Amount must not be empty'
|
|
25
|
-
*/
|
|
26
|
-
emptyInputErrorMessage?: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* InputCurrency component props
|
|
31
|
-
*/
|
|
32
|
-
export interface InputCurrencyProps {
|
|
33
|
-
/**
|
|
34
|
-
* Number modelValue of the input.
|
|
35
|
-
*/
|
|
36
|
-
modelValue?: CurrencyValue;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Sets the initial value of the field.
|
|
40
|
-
* This will only available with option 'useValidator'.
|
|
41
|
-
*
|
|
42
|
-
* In usecase like edit form, you need to display the previous inputted value.
|
|
43
|
-
*/
|
|
44
|
-
value?: number;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The input label. Tell the user what input is this.
|
|
48
|
-
*/
|
|
49
|
-
label?: string;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Max input number value.
|
|
53
|
-
*/
|
|
54
|
-
max?: number;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Wether the input should be validated with vee-validator or not.
|
|
58
|
-
* If you use this component within form input, you need to set this props as true.
|
|
59
|
-
*/
|
|
60
|
-
useValidator?: boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* This prop is required if you use this component in a form input.
|
|
64
|
-
* Specify the unique field name, match with your needs for API request.
|
|
65
|
-
*
|
|
66
|
-
* @default 'numberInput'
|
|
67
|
-
*/
|
|
68
|
-
fieldName?: string;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Wether this input field is required or not.
|
|
72
|
-
*/
|
|
73
|
-
mandatory?: boolean;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Set custom validator message.
|
|
77
|
-
* It is rarely use, this component has handled the validator message.
|
|
78
|
-
*
|
|
79
|
-
* @example: '{label} is required'
|
|
80
|
-
* @example: { empty: '{label} field is required' }
|
|
81
|
-
*/
|
|
82
|
-
validatorMessage?: string | CustomValidation<'empty'>;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Custom invalid state.
|
|
86
|
-
*/
|
|
87
|
-
invalid?: boolean;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Specify the input placeholder.
|
|
91
|
-
*
|
|
92
|
-
* @default 'Enter {label}' or 'Enter number'
|
|
93
|
-
*/
|
|
94
|
-
placeholder?: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Disabled the input.
|
|
98
|
-
*/
|
|
99
|
-
disabled?: boolean;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Displays increment/decrement buttons.
|
|
103
|
-
*/
|
|
104
|
-
showButtons?: boolean;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The width of input.
|
|
108
|
-
*/
|
|
109
|
-
size?: 'small' | 'normal' | 'full';
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Defines the behavior of the component.
|
|
113
|
-
* @defaultValue currency
|
|
114
|
-
*/
|
|
115
|
-
mode?: 'decimal' | 'currency';
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
|
|
119
|
-
* @defaultValue true
|
|
120
|
-
*/
|
|
121
|
-
useGrouping?: boolean;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Show information about the field.
|
|
125
|
-
*/
|
|
126
|
-
fieldInfo?: string;
|
|
127
|
-
inputnNumberId?: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* InputCurrency component emits
|
|
132
|
-
*/
|
|
133
|
-
export type InputCurrencyEmits = {
|
|
134
|
-
/**
|
|
135
|
-
* Emits when the input has loosen focus.
|
|
136
|
-
* The model value is the valid value from given min and max number.
|
|
137
|
-
*
|
|
138
|
-
* If the inputted number is above max, return the max. And vice versa.
|
|
139
|
-
*/
|
|
140
|
-
'update:modelValue': [payload?: CurrencyValue];
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* If you need to check validation, you can use this events.
|
|
144
|
-
*/
|
|
145
|
-
'input': [payload?: number];
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* **WangsVue - InputCurrency**
|
|
150
|
-
*
|
|
151
|
-
* _Handle input Currency with form validation._
|
|
152
|
-
*
|
|
153
|
-
* --- ---
|
|
154
|
-
* 
|
|
155
|
-
*
|
|
156
|
-
* @group form
|
|
157
|
-
*/
|
|
158
|
-
declare class InputCurrency extends ClassComponent<
|
|
159
|
-
InputCurrencyProps,
|
|
160
|
-
unknown,
|
|
161
|
-
InputCurrencyEmits
|
|
162
|
-
> {}
|
|
163
|
-
|
|
164
|
-
declare module '@vue/runtime-core' {
|
|
165
|
-
interface GlobalComponents {
|
|
166
|
-
InputCurrency: GlobalComponentConstructor<InputCurrency>;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export default InputCurrency;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CurrencyFormat } from '../InputCurrency.vue.d';
|
|
2
|
-
declare const getCurrency: (code?: string) => CurrencyFormat;
|
|
3
|
-
declare const formatCurrency: (value?: number | string | null, currency?: string, prefix?: boolean) => string;
|
|
4
|
-
export { getCurrency, formatCurrency };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DefineComponent } from 'vue';
|
|
2
|
-
import { InputTextEmits, InputTextProps } from '../inputtext/InputText.vue.d';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* InputEmail component props
|
|
6
|
-
*/
|
|
7
|
-
export type InputEmailProps = Omit<InputTextProps, 'type'>;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* InputEmail component emits
|
|
11
|
-
*/
|
|
12
|
-
export type InputEmailEmits = InputTextEmits;
|
|
13
|
-
/**
|
|
14
|
-
* **WangsVue - InputEmail**
|
|
15
|
-
*
|
|
16
|
-
* _Handle input email with form validation._
|
|
17
|
-
*
|
|
18
|
-
* --- ---
|
|
19
|
-
* 
|
|
20
|
-
*
|
|
21
|
-
* @group form
|
|
22
|
-
*/
|
|
23
|
-
declare const InputEmail: DefineComponent<InputEmailProps, InputEmailEmits>;
|
|
24
|
-
|
|
25
|
-
export default InputEmail;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* InputGroup displays text, icon, buttons and other content can be grouped next to an input.
|
|
4
|
-
*
|
|
5
|
-
* @module inputgroup
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
import { VNode } from 'vue';
|
|
9
|
-
import { ComponentHooks } from '../basecomponent';
|
|
10
|
-
import { PassThroughOptions } from '../passthrough';
|
|
11
|
-
import {
|
|
12
|
-
ClassComponent,
|
|
13
|
-
GlobalComponentConstructor,
|
|
14
|
-
PassThrough,
|
|
15
|
-
} from '../ts-helpers';
|
|
16
|
-
|
|
17
|
-
export declare type InputGroupPassThroughOptionType =
|
|
18
|
-
| InputGroupPassThroughAttributes
|
|
19
|
-
| ((
|
|
20
|
-
options: InputGroupPassThroughMethodOptions,
|
|
21
|
-
) => InputGroupPassThroughAttributes | string)
|
|
22
|
-
| string
|
|
23
|
-
| null
|
|
24
|
-
| undefined;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Custom passthrough(pt) option method.
|
|
28
|
-
*/
|
|
29
|
-
export interface InputGroupPassThroughMethodOptions {
|
|
30
|
-
/**
|
|
31
|
-
* Defines instance.
|
|
32
|
-
*/
|
|
33
|
-
instance: any;
|
|
34
|
-
/**
|
|
35
|
-
* Defines valid attributes.
|
|
36
|
-
*/
|
|
37
|
-
attrs: any;
|
|
38
|
-
/**
|
|
39
|
-
* Defines parent options.
|
|
40
|
-
*/
|
|
41
|
-
parent: any;
|
|
42
|
-
/**
|
|
43
|
-
* Defines passthrough(pt) options in global config.
|
|
44
|
-
*/
|
|
45
|
-
global: object | undefined;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Custom passthrough(pt) options.
|
|
50
|
-
* @see {@link InputGroupProps.pt}
|
|
51
|
-
*/
|
|
52
|
-
export interface InputGroupPassThroughOptions {
|
|
53
|
-
/**
|
|
54
|
-
* Used to pass attributes to the root's DOM element.
|
|
55
|
-
*/
|
|
56
|
-
root?: InputGroupPassThroughOptionType;
|
|
57
|
-
/**
|
|
58
|
-
* Used to manage all lifecycle hooks.
|
|
59
|
-
* @see {@link BaseComponent.ComponentHooks}
|
|
60
|
-
*/
|
|
61
|
-
hooks?: ComponentHooks;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Custom passthrough attributes for each DOM elements
|
|
66
|
-
*/
|
|
67
|
-
export interface InputGroupPassThroughAttributes {
|
|
68
|
-
[key: string]: any;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Defines valid properties in InputGroup component.
|
|
73
|
-
*/
|
|
74
|
-
export interface InputGroupProps {
|
|
75
|
-
/**
|
|
76
|
-
* Used to pass attributes to DOM elements inside the component.
|
|
77
|
-
* @type {InputGroupPassThroughOptions}
|
|
78
|
-
*/
|
|
79
|
-
pt?: PassThrough<InputGroupPassThroughOptions>;
|
|
80
|
-
/**
|
|
81
|
-
* Used to configure passthrough(pt) options of the component.
|
|
82
|
-
* @type {PassThroughOptions}
|
|
83
|
-
*/
|
|
84
|
-
ptOptions?: PassThroughOptions;
|
|
85
|
-
/**
|
|
86
|
-
* @default default
|
|
87
|
-
*/
|
|
88
|
-
ring?: 'none' | 'default';
|
|
89
|
-
/**
|
|
90
|
-
* When enabled, it removes component related styles in the core.
|
|
91
|
-
* @defaultValue false
|
|
92
|
-
*/
|
|
93
|
-
unstyled?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* @defaultValue false
|
|
96
|
-
*/
|
|
97
|
-
invalid?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* @defaultValue false
|
|
100
|
-
*/
|
|
101
|
-
disabled?: boolean;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Defines valid slots in InputGroup component.
|
|
106
|
-
*/
|
|
107
|
-
export interface InputGroupSlots {
|
|
108
|
-
/**
|
|
109
|
-
* Custom default template.
|
|
110
|
-
*/
|
|
111
|
-
default(): VNode[];
|
|
112
|
-
/**
|
|
113
|
-
* Dynamic content template.
|
|
114
|
-
* @todo
|
|
115
|
-
*/
|
|
116
|
-
[key: string]: (node: any) => VNode[];
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* **WangsVue - InputGroup**
|
|
121
|
-
*
|
|
122
|
-
* _InputGroup displays text, icon, buttons and other content can be grouped next to an input._
|
|
123
|
-
*
|
|
124
|
-
* --- ---
|
|
125
|
-
* 
|
|
126
|
-
*
|
|
127
|
-
* @group Component
|
|
128
|
-
*/
|
|
129
|
-
declare class InputGroup extends ClassComponent<
|
|
130
|
-
InputGroupProps,
|
|
131
|
-
InputGroupSlots,
|
|
132
|
-
unknown
|
|
133
|
-
> {}
|
|
134
|
-
|
|
135
|
-
declare module '@vue/runtime-core' {
|
|
136
|
-
interface GlobalComponents {
|
|
137
|
-
InputGroup: GlobalComponentConstructor<InputGroup>;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export default InputGroup;
|