@fewangsit/wangsvue-fats 1.0.0-alpha.4 → 1.0.0-alpha.40
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/components/animation/Animation.vue.d.ts +9 -1
- package/components/assetinfo/AssetInfo.vue.d.ts +34 -0
- package/components/badgegroup/BadgeGroup.vue.d.ts +3 -1
- package/components/basetree/BaseTree.vue.d.ts +2 -1
- package/components/button/Button.vue.d.ts +7 -3
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
- package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
- package/components/buttonscan/ButtonScan.vue.d.ts +202 -0
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +5 -2
- package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
- package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
- package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
- package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
- package/components/calendar/Calendar.vue.d.ts +32 -4
- package/components/card/Card.vue.d.ts +1 -0
- package/components/checkbox/Checkbox.vue.d.ts +1 -0
- package/components/datatable/DataTable.vue.d.ts +6 -4
- package/components/dialog/Dialog.vue.d.ts +1 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
- package/components/dialogform/DialogForm.vue.d.ts +1 -0
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
- package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
- package/components/dialogselectuser/options/columns.d.ts +3 -0
- package/components/dropdown/Dropdown.vue.d.ts +16 -4
- package/components/editor/Editor.vue.d.ts +1 -0
- package/components/fileupload/FileUpload.vue.d.ts +1 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +13 -8
- package/components/form/Form.vue.d.ts +2 -1
- package/components/icon/Icon.vue.d.ts +2 -0
- package/components/image/Image.vue.d.ts +1 -0
- package/components/imagecompressor/ImageCompressor.vue.d.ts +6 -0
- package/components/index.d.ts +16 -18
- package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
- package/components/inputemail/InputEmail.vue.d.ts +1 -0
- package/components/inputnumber/InputNumber.vue.d.ts +1 -0
- package/components/inputpassword/InputPassword.vue.d.ts +1 -0
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
- package/components/inputsearch/InputSearch.vue.d.ts +36 -0
- package/components/inputtext/InputText.vue.d.ts +2 -1
- package/components/inputurl/InputURL.vue.d.ts +4 -2
- package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -22
- package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
- package/components/loading/store/loading.store.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +2 -1
- package/components/multiselect/MultiSelect.vue.d.ts +7 -4
- package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
- package/components/tabmenu/TabMenu.vue.d.ts +2 -1
- package/components/textarea/Textarea.vue.d.ts +2 -1
- package/components/timeline/Timeline.vue.d.ts +7 -1
- package/components/toast/Toast.vue.d.ts +2 -1
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
- package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
- package/components/tree/Tree.vue.d.ts +5 -3
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
- package/components/username/UserName.vue.d.ts +5 -0
- package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
- package/config/defaultProps.d.ts +1 -1
- package/config/index.d.ts +1 -1
- package/config/locale.d.ts +1 -1
- package/directives/focus.d.ts +1 -1
- package/event-bus/index.d.ts +52 -50
- package/event-bus/mitt.d.ts +29 -14
- package/main.d.ts +31 -2
- package/package.json +8 -4
- package/plugins/WangsVue.d.ts +266 -98
- package/plugins/formValidation.d.ts +15 -6
- package/plugins/i18n-extension.d.ts +4 -0
- package/plugins/i18n.d.ts +98 -0
- package/stats.html +4949 -0
- package/style.css +1 -1
- package/utils/date.util.d.ts +59 -30
- package/utils/getSeverityByAssetStatus.util.d.ts +3 -0
- package/utils/index.d.ts +5 -20
- package/utils/listenSidebarChanges.util.d.ts +16 -0
- package/utils/object.util.d.ts +14 -3
- package/utils/role.util.d.ts +67 -1
- package/utils/toast.util.d.ts +78 -78
- package/wangsvue-fats.es.js +48860 -129710
- package/wangsvue-fats.system.js +91 -267
- 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/buttonsplit/ButtonSplit.d.ts +0 -350
- package/components/calendar/BaseCalendar.vue.d.ts +0 -86
- package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
- package/components/customcolumn/ColumnList.vue.d.ts +0 -27
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
- 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/editor/CodeSnippetAdapter.vue.d.ts +0 -92
- 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/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/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/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
- package/components/inlinemessage/InlineMessage.vue.d.ts +0 -167
- package/components/inputgroup/InputGroup.vue.d.ts +0 -141
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
- package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
- package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
- 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/progressbar/ProgressBar.vue.d.ts +0 -72
- package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
- package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
- package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
- package/components/tree/helpers/index.d.ts +0 -3
- package/components/usergroup/UserGroup.vue.d.ts +0 -57
- package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
- package/plugins/translation.d.ts +0 -84
- package/types/options.type.d.ts +0 -16
- package/utils/addAttachment.util.d.ts +0 -43
- package/utils/exportToExcel.util.d.ts +0 -20
- package/utils/filterOptions.util.d.ts +0 -3
- package/utils/genPlaceholder.util.d.ts +0 -8
- package/utils/getAttachmentIcon.util.d.ts +0 -8
- package/utils/mergePropsWithDefaults.util.d.ts +0 -20
- package/utils/textFormatter.util.d.ts +0 -17
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
-
items: {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
nickName: string;
|
|
6
|
-
profilePicture: string;
|
|
7
|
-
}[];
|
|
8
|
-
command: (arg: {
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>, {
|
|
13
|
-
onKeyDown: (event: KeyboardEvent) => boolean;
|
|
14
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
15
|
-
items: {
|
|
16
|
-
id: string;
|
|
17
|
-
label: string;
|
|
18
|
-
nickName: string;
|
|
19
|
-
profilePicture: string;
|
|
20
|
-
}[];
|
|
21
|
-
command: (arg: {
|
|
22
|
-
id: string;
|
|
23
|
-
label: string;
|
|
24
|
-
}) => void;
|
|
25
|
-
}>>>, {}, {}>;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
-
type __VLS_TypePropsToOption<T> = {
|
|
29
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
-
} : {
|
|
32
|
-
type: import('vue').PropType<T[K]>;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
editor: {
|
|
3
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
node: {
|
|
7
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
decorations: {
|
|
11
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
selected: {
|
|
15
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
extension: {
|
|
19
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
getPos: {
|
|
23
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
updateAttributes: {
|
|
27
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
deleteNode: {
|
|
31
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
view: {
|
|
35
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
innerDecorations: {
|
|
39
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
40
|
-
required: true;
|
|
41
|
-
};
|
|
42
|
-
HTMLAttributes: {
|
|
43
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
-
editor: {
|
|
48
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
node: {
|
|
52
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
decorations: {
|
|
56
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
57
|
-
required: true;
|
|
58
|
-
};
|
|
59
|
-
selected: {
|
|
60
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
|
|
61
|
-
required: true;
|
|
62
|
-
};
|
|
63
|
-
extension: {
|
|
64
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
65
|
-
required: true;
|
|
66
|
-
};
|
|
67
|
-
getPos: {
|
|
68
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
69
|
-
required: true;
|
|
70
|
-
};
|
|
71
|
-
updateAttributes: {
|
|
72
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
73
|
-
required: true;
|
|
74
|
-
};
|
|
75
|
-
deleteNode: {
|
|
76
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
77
|
-
required: true;
|
|
78
|
-
};
|
|
79
|
-
view: {
|
|
80
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
81
|
-
required: true;
|
|
82
|
-
};
|
|
83
|
-
innerDecorations: {
|
|
84
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
85
|
-
required: true;
|
|
86
|
-
};
|
|
87
|
-
HTMLAttributes: {
|
|
88
|
-
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
89
|
-
required: true;
|
|
90
|
-
};
|
|
91
|
-
}>>, {}, {}>;
|
|
92
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { GenericObject } from 'vee-validate';
|
|
2
|
-
import { FilterField } from '../FilterContainer.vue.d';
|
|
3
|
-
declare const applyFilter: (values: GenericObject, tableName: string, emit?: (...args: any[]) => any) => void;
|
|
4
|
-
export declare const applyStaticFilter: (values: GenericObject, tableName: string, fields: FilterField[], emit?: (...args: any[]) => any) => void;
|
|
5
|
-
export default applyFilter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Format the time in range selection when not show time.
|
|
3
|
-
* It will adjust the end range time to 23.59.59 and the start to 00.00.00
|
|
4
|
-
*
|
|
5
|
-
* @returns {number[]} - The formatted date time range in millis. [start, end]
|
|
6
|
-
*/
|
|
7
|
-
export declare const formatDateTimeRange: (e: number[]) => number[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { FilterOptions, LoadingFilters, MultiSelectFilterField } from '../FilterContainer.vue.d';
|
|
2
|
-
declare const getOptions: (fn: MultiSelectFilterField["fetchOptionFn"], field: string, filterOption: FilterOptions, loading: LoadingFilters) => Promise<void>;
|
|
3
|
-
export default getOptions;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ClassComponent } from '../ts-helpers.d';
|
|
2
|
-
|
|
3
|
-
export type File = {
|
|
4
|
-
_id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
type: string;
|
|
7
|
-
src: string;
|
|
8
|
-
createdAt: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export interface GalleryPreviewProps {
|
|
12
|
-
files: File[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* **WangsVue - GalleryPreview**
|
|
17
|
-
*
|
|
18
|
-
* --- ---
|
|
19
|
-
* 
|
|
20
|
-
*
|
|
21
|
-
* @group Component
|
|
22
|
-
*
|
|
23
|
-
* @experimental
|
|
24
|
-
*/
|
|
25
|
-
declare class GalleryPreview extends ClassComponent<
|
|
26
|
-
GalleryPreviewProps,
|
|
27
|
-
unknown,
|
|
28
|
-
unknown
|
|
29
|
-
> {}
|
|
30
|
-
|
|
31
|
-
export default GalleryPreview;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SetupContext, VNode } from 'vue';
|
|
2
|
-
interface LabelProps {
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* For input like checkbox, radiobutton, toggleswitch, etc.
|
|
7
|
-
*
|
|
8
|
-
* Conditionally wrap the input with label element when props.label is defined.
|
|
9
|
-
*
|
|
10
|
-
* @param propsData
|
|
11
|
-
* @param setupContext
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
declare const Label: (propsData: LabelProps, setupContext?: SetupContext) => VNode;
|
|
15
|
-
export default Label;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
5
|
-
touchMove?: unknown;
|
|
6
|
-
mouseMove?: unknown;
|
|
7
|
-
touchResize?: unknown;
|
|
8
|
-
wheelResize?: unknown;
|
|
9
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
move: (e: any) => void;
|
|
11
|
-
resize: (e: any) => void;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
-
touchMove?: unknown;
|
|
14
|
-
mouseMove?: unknown;
|
|
15
|
-
touchResize?: unknown;
|
|
16
|
-
wheelResize?: unknown;
|
|
17
|
-
}>>> & {
|
|
18
|
-
onResize?: (e: any) => any;
|
|
19
|
-
onMove?: (e: any) => any;
|
|
20
|
-
}, {}, {}>;
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
-
type __VLS_TypePropsToOption<T> = {
|
|
30
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
-
} : {
|
|
33
|
-
type: import('vue').PropType<T[K]>;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
5
|
-
showInfo: boolean;
|
|
6
|
-
showAddButton?: boolean;
|
|
7
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
addPhoto: () => void;
|
|
9
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
10
|
-
showInfo: boolean;
|
|
11
|
-
showAddButton?: boolean;
|
|
12
|
-
}>>> & {
|
|
13
|
-
onAddPhoto?: () => any;
|
|
14
|
-
}, {}, {}>;
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
-
type __VLS_TypePropsToOption<T> = {
|
|
24
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
-
} : {
|
|
27
|
-
type: import('vue').PropType<T[K]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -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,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;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LanguageOption } from './LanguageDropdown.vue.d';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
option: LanguageOption;
|
|
4
|
-
iconOnly?: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
|
-
option: LanguageOption;
|
|
7
|
-
iconOnly?: boolean;
|
|
8
|
-
}>>>, {}, {}>;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type __VLS_TypePropsToOption<T> = {
|
|
12
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
-
} : {
|
|
15
|
-
type: import('vue').PropType<T[K]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
|
-
|
|
3
|
-
declare class LanguageSwitcher extends ClassComponent<
|
|
4
|
-
unknown,
|
|
5
|
-
unknown,
|
|
6
|
-
unknown
|
|
7
|
-
> {}
|
|
8
|
-
|
|
9
|
-
declare module '@vue/runtime-core' {
|
|
10
|
-
interface GlobalComponents {
|
|
11
|
-
LanguageSwitcher: GlobalComponentConstructor<LanguageSwitcher>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default LanguageSwitcher;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from '../../menuitem';
|
|
2
|
-
/**
|
|
3
|
-
* Filters the menu items to return only the visible ones.
|
|
4
|
-
* If no visible menu items are found, it returns a menu with a label 'No Option Available'.
|
|
5
|
-
*
|
|
6
|
-
* @param menuItems - The array of menu items to filter.
|
|
7
|
-
* @param noOptionLabel - The label of menu to be shown when no available option. The value is from locale configuration each project.
|
|
8
|
-
*
|
|
9
|
-
* @returns - The array of visible menu items or an array with a single menu item with label 'No Option Available'.
|
|
10
|
-
*/
|
|
11
|
-
declare const filterVisibleMenu: (menuItems: MenuItem[], noOptionLabel?: string) => MenuItem[];
|
|
12
|
-
export default filterVisibleMenu;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as filterVisibleMenu } from './filterMenu.helper';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MenuRouterBindProps } from '../menu/Menu.vue.d';
|
|
2
|
-
import { MenuItem } from '.';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
4
|
-
item: MenuItem;
|
|
5
|
-
routerProps: MenuRouterBindProps;
|
|
6
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
|
-
item: MenuItem;
|
|
8
|
-
routerProps: MenuRouterBindProps;
|
|
9
|
-
}>>>, {}, {}>;
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
-
type __VLS_TypePropsToOption<T> = {
|
|
13
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
-
} : {
|
|
16
|
-
type: import('vue').PropType<T[K]>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
};
|