@fewangsit/wangsvue-fats 1.0.0-alpha.26 → 1.0.0-alpha.28
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/package.json +1 -1
- package/plugins/WangsVue.d.ts +29 -29
- package/style.css +1 -1
- package/utils/filterOptions.util.d.ts +1 -1
- package/utils/getAttachmentIcon.util.d.ts +1 -1
- package/utils/toast.util.d.ts +1 -1
- package/wangsvue-fats.es.js +88378 -88403
- package/wangsvue-fats.system.js +111 -111
- package/components/basecomponent/index.d.ts +0 -28
- package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
- package/components/buttonscan/helpers/index.d.ts +0 -1
- package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
- package/components/calendar/BaseCalendar.vue.d.ts +0 -127
- package/components/customcolumn/ColumnList.vue.d.ts +0 -47
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -16
- package/components/datatable/MultiRow.vue.d.ts +0 -36
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
- package/components/datatable/helpers/filter.helper.d.ts +0 -38
- package/components/datatable/helpers/index.d.ts +0 -6
- package/components/datatable/helpers/readConfig.helper.d.ts +0 -5
- package/components/datatable/store/dataTable.store.d.ts +0 -25
- package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -152
- package/components/editor/EditorButton.vue.d.ts +0 -35
- package/components/editor/MentionList.vue.d.ts +0 -49
- package/components/editor/MentionSection.vue.d.ts +0 -152
- 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 -14
- package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
- package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -12
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -59
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -55
- package/components/inputcurrency/helpers/currency.helper.d.ts +0 -8
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
- package/components/loading/store/loading.store.d.ts +0 -8
- package/components/menu/helpers/filterMenu.helper.d.ts +0 -15
- package/components/menu/helpers/index.d.ts +0 -1
- package/components/menuitem/MenuItem.vue +0 -70
- package/components/menuitem/MenuItem.vue.d.ts +0 -39
- package/components/menuitem/index.d.ts +0 -106
- package/components/passthrough/index.d.ts +0 -16
- package/components/timeline/TimelineContentByType.vue.d.ts +0 -64
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +0 -22
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +0 -8
- package/components/tree/helpers/index.d.ts +0 -3
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
2
|
-
{
|
|
3
|
-
editor: {
|
|
4
|
-
type: import('vue').PropType<
|
|
5
|
-
import('@tiptap/vue-3').NodeViewProps['editor']
|
|
6
|
-
>;
|
|
7
|
-
required: true;
|
|
8
|
-
};
|
|
9
|
-
node: {
|
|
10
|
-
type: import('vue').PropType<
|
|
11
|
-
import('@tiptap/vue-3').NodeViewProps['node']
|
|
12
|
-
>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
decorations: {
|
|
16
|
-
type: import('vue').PropType<
|
|
17
|
-
import('@tiptap/vue-3').NodeViewProps['decorations']
|
|
18
|
-
>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
selected: {
|
|
22
|
-
type: import('vue').PropType<
|
|
23
|
-
import('@tiptap/vue-3').NodeViewProps['selected']
|
|
24
|
-
>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
extension: {
|
|
28
|
-
type: import('vue').PropType<
|
|
29
|
-
import('@tiptap/vue-3').NodeViewProps['extension']
|
|
30
|
-
>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
getPos: {
|
|
34
|
-
type: import('vue').PropType<
|
|
35
|
-
import('@tiptap/vue-3').NodeViewProps['getPos']
|
|
36
|
-
>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
updateAttributes: {
|
|
40
|
-
type: import('vue').PropType<
|
|
41
|
-
import('@tiptap/vue-3').NodeViewProps['updateAttributes']
|
|
42
|
-
>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
deleteNode: {
|
|
46
|
-
type: import('vue').PropType<
|
|
47
|
-
import('@tiptap/vue-3').NodeViewProps['deleteNode']
|
|
48
|
-
>;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
view: {
|
|
52
|
-
type: import('vue').PropType<
|
|
53
|
-
import('@tiptap/vue-3').NodeViewProps['view']
|
|
54
|
-
>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
innerDecorations: {
|
|
58
|
-
type: import('vue').PropType<
|
|
59
|
-
import('@tiptap/vue-3').NodeViewProps['innerDecorations']
|
|
60
|
-
>;
|
|
61
|
-
required: true;
|
|
62
|
-
};
|
|
63
|
-
HTMLAttributes: {
|
|
64
|
-
type: import('vue').PropType<
|
|
65
|
-
import('@tiptap/vue-3').NodeViewProps['HTMLAttributes']
|
|
66
|
-
>;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
69
|
-
},
|
|
70
|
-
{},
|
|
71
|
-
unknown,
|
|
72
|
-
{},
|
|
73
|
-
{},
|
|
74
|
-
import('vue').ComponentOptionsMixin,
|
|
75
|
-
import('vue').ComponentOptionsMixin,
|
|
76
|
-
{},
|
|
77
|
-
string,
|
|
78
|
-
import('vue').PublicProps,
|
|
79
|
-
Readonly<
|
|
80
|
-
import('vue').ExtractPropTypes<{
|
|
81
|
-
editor: {
|
|
82
|
-
type: import('vue').PropType<
|
|
83
|
-
import('@tiptap/vue-3').NodeViewProps['editor']
|
|
84
|
-
>;
|
|
85
|
-
required: true;
|
|
86
|
-
};
|
|
87
|
-
node: {
|
|
88
|
-
type: import('vue').PropType<
|
|
89
|
-
import('@tiptap/vue-3').NodeViewProps['node']
|
|
90
|
-
>;
|
|
91
|
-
required: true;
|
|
92
|
-
};
|
|
93
|
-
decorations: {
|
|
94
|
-
type: import('vue').PropType<
|
|
95
|
-
import('@tiptap/vue-3').NodeViewProps['decorations']
|
|
96
|
-
>;
|
|
97
|
-
required: true;
|
|
98
|
-
};
|
|
99
|
-
selected: {
|
|
100
|
-
type: import('vue').PropType<
|
|
101
|
-
import('@tiptap/vue-3').NodeViewProps['selected']
|
|
102
|
-
>;
|
|
103
|
-
required: true;
|
|
104
|
-
};
|
|
105
|
-
extension: {
|
|
106
|
-
type: import('vue').PropType<
|
|
107
|
-
import('@tiptap/vue-3').NodeViewProps['extension']
|
|
108
|
-
>;
|
|
109
|
-
required: true;
|
|
110
|
-
};
|
|
111
|
-
getPos: {
|
|
112
|
-
type: import('vue').PropType<
|
|
113
|
-
import('@tiptap/vue-3').NodeViewProps['getPos']
|
|
114
|
-
>;
|
|
115
|
-
required: true;
|
|
116
|
-
};
|
|
117
|
-
updateAttributes: {
|
|
118
|
-
type: import('vue').PropType<
|
|
119
|
-
import('@tiptap/vue-3').NodeViewProps['updateAttributes']
|
|
120
|
-
>;
|
|
121
|
-
required: true;
|
|
122
|
-
};
|
|
123
|
-
deleteNode: {
|
|
124
|
-
type: import('vue').PropType<
|
|
125
|
-
import('@tiptap/vue-3').NodeViewProps['deleteNode']
|
|
126
|
-
>;
|
|
127
|
-
required: true;
|
|
128
|
-
};
|
|
129
|
-
view: {
|
|
130
|
-
type: import('vue').PropType<
|
|
131
|
-
import('@tiptap/vue-3').NodeViewProps['view']
|
|
132
|
-
>;
|
|
133
|
-
required: true;
|
|
134
|
-
};
|
|
135
|
-
innerDecorations: {
|
|
136
|
-
type: import('vue').PropType<
|
|
137
|
-
import('@tiptap/vue-3').NodeViewProps['innerDecorations']
|
|
138
|
-
>;
|
|
139
|
-
required: true;
|
|
140
|
-
};
|
|
141
|
-
HTMLAttributes: {
|
|
142
|
-
type: import('vue').PropType<
|
|
143
|
-
import('@tiptap/vue-3').NodeViewProps['HTMLAttributes']
|
|
144
|
-
>;
|
|
145
|
-
required: true;
|
|
146
|
-
};
|
|
147
|
-
}>
|
|
148
|
-
>,
|
|
149
|
-
{},
|
|
150
|
-
{}
|
|
151
|
-
>;
|
|
152
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { GenericObject } from 'vee-validate';
|
|
2
|
-
import { FilterField } from '../FilterContainer.vue.d';
|
|
3
|
-
declare const applyFilter: (
|
|
4
|
-
values: GenericObject,
|
|
5
|
-
tableName: string,
|
|
6
|
-
emit?: (...args: any[]) => any,
|
|
7
|
-
) => void;
|
|
8
|
-
export declare const applyStaticFilter: (
|
|
9
|
-
values: GenericObject,
|
|
10
|
-
tableName: string,
|
|
11
|
-
fields: FilterField[],
|
|
12
|
-
emit?: (...args: any[]) => any,
|
|
13
|
-
) => void;
|
|
14
|
-
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,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FilterOptions,
|
|
3
|
-
LoadingFilters,
|
|
4
|
-
MultiSelectFilterField,
|
|
5
|
-
} from '../FilterContainer.vue.d';
|
|
6
|
-
declare const getOptions: (
|
|
7
|
-
fn: MultiSelectFilterField['fetchOptionFn'],
|
|
8
|
-
field: string,
|
|
9
|
-
filterOption: FilterOptions,
|
|
10
|
-
loading: LoadingFilters,
|
|
11
|
-
) => Promise<void>;
|
|
12
|
-
export default getOptions;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
5
|
-
__VLS_TypePropsToOption<{
|
|
6
|
-
touchMove?: unknown;
|
|
7
|
-
mouseMove?: unknown;
|
|
8
|
-
touchResize?: unknown;
|
|
9
|
-
wheelResize?: unknown;
|
|
10
|
-
}>,
|
|
11
|
-
{},
|
|
12
|
-
unknown,
|
|
13
|
-
{},
|
|
14
|
-
{},
|
|
15
|
-
import('vue').ComponentOptionsMixin,
|
|
16
|
-
import('vue').ComponentOptionsMixin,
|
|
17
|
-
{
|
|
18
|
-
move: (e: any) => void;
|
|
19
|
-
resize: (e: any) => void;
|
|
20
|
-
},
|
|
21
|
-
string,
|
|
22
|
-
import('vue').PublicProps,
|
|
23
|
-
Readonly<
|
|
24
|
-
import('vue').ExtractPropTypes<
|
|
25
|
-
__VLS_TypePropsToOption<{
|
|
26
|
-
touchMove?: unknown;
|
|
27
|
-
mouseMove?: unknown;
|
|
28
|
-
touchResize?: unknown;
|
|
29
|
-
wheelResize?: unknown;
|
|
30
|
-
}>
|
|
31
|
-
>
|
|
32
|
-
> & {
|
|
33
|
-
onResize?: (e: any) => any;
|
|
34
|
-
onMove?: (e: any) => any;
|
|
35
|
-
},
|
|
36
|
-
{},
|
|
37
|
-
{}
|
|
38
|
-
>;
|
|
39
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
40
|
-
typeof __VLS_component,
|
|
41
|
-
ReturnType<typeof __VLS_template>
|
|
42
|
-
>;
|
|
43
|
-
export default _default;
|
|
44
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
-
new (): {
|
|
46
|
-
$slots: S;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
-
type __VLS_TypePropsToOption<T> = {
|
|
51
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
52
|
-
? {
|
|
53
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
-
}
|
|
55
|
-
: {
|
|
56
|
-
type: import('vue').PropType<T[K]>;
|
|
57
|
-
required: true;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
5
|
-
__VLS_TypePropsToOption<{
|
|
6
|
-
customRequirements?: string[];
|
|
7
|
-
showInfo: boolean;
|
|
8
|
-
showAddButton?: boolean;
|
|
9
|
-
}>,
|
|
10
|
-
{},
|
|
11
|
-
unknown,
|
|
12
|
-
{},
|
|
13
|
-
{},
|
|
14
|
-
import('vue').ComponentOptionsMixin,
|
|
15
|
-
import('vue').ComponentOptionsMixin,
|
|
16
|
-
{
|
|
17
|
-
addPhoto: () => void;
|
|
18
|
-
},
|
|
19
|
-
string,
|
|
20
|
-
import('vue').PublicProps,
|
|
21
|
-
Readonly<
|
|
22
|
-
import('vue').ExtractPropTypes<
|
|
23
|
-
__VLS_TypePropsToOption<{
|
|
24
|
-
customRequirements?: string[];
|
|
25
|
-
showInfo: boolean;
|
|
26
|
-
showAddButton?: boolean;
|
|
27
|
-
}>
|
|
28
|
-
>
|
|
29
|
-
> & {
|
|
30
|
-
onAddPhoto?: () => any;
|
|
31
|
-
},
|
|
32
|
-
{},
|
|
33
|
-
{}
|
|
34
|
-
>;
|
|
35
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
36
|
-
typeof __VLS_component,
|
|
37
|
-
ReturnType<typeof __VLS_template>
|
|
38
|
-
>;
|
|
39
|
-
export default _default;
|
|
40
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
-
new (): {
|
|
42
|
-
$slots: S;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
-
type __VLS_TypePropsToOption<T> = {
|
|
47
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
48
|
-
? {
|
|
49
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
-
}
|
|
51
|
-
: {
|
|
52
|
-
type: import('vue').PropType<T[K]>;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CurrencyFormat } from '../InputCurrency.vue.d';
|
|
2
|
-
declare const getCurrency: (code?: string) => CurrencyFormat;
|
|
3
|
-
declare const formatCurrency: (
|
|
4
|
-
value?: number | string | null,
|
|
5
|
-
currency?: string,
|
|
6
|
-
prefix?: boolean,
|
|
7
|
-
) => string;
|
|
8
|
-
export { getCurrency, formatCurrency };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export interface LoadingStore {
|
|
3
|
-
loading: Ref<boolean>;
|
|
4
|
-
message: Ref<string | undefined>;
|
|
5
|
-
setLoading: (state: boolean, message?: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const useLoadingStore: () => LoadingStore;
|
|
8
|
-
export default useLoadingStore;
|
|
@@ -1,15 +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: (
|
|
12
|
-
menuItems: MenuItem[],
|
|
13
|
-
noOptionLabel?: string,
|
|
14
|
-
) => MenuItem[];
|
|
15
|
-
export default filterVisibleMenu;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as filterVisibleMenu } from './filterMenu.helper';
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { WangsIcons } from 'lib/components/icon/Icon.vue.d';
|
|
3
|
-
import { MenuRouterBindProps } from '../menu/Menu.vue.d';
|
|
4
|
-
import { MenuItem } from '.';
|
|
5
|
-
import Icon from '../icon/Icon.vue';
|
|
6
|
-
|
|
7
|
-
const props = defineProps<{
|
|
8
|
-
item: MenuItem;
|
|
9
|
-
routerProps: MenuRouterBindProps;
|
|
10
|
-
}>();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<template>
|
|
14
|
-
<router-link
|
|
15
|
-
v-slot="{ href, navigate }"
|
|
16
|
-
v-if="props.item.route"
|
|
17
|
-
:to="props.item.route"
|
|
18
|
-
custom
|
|
19
|
-
>
|
|
20
|
-
<a :href="href" v-bind="routerProps?.action" @click="navigate">
|
|
21
|
-
<Icon
|
|
22
|
-
v-if="props.item.icon"
|
|
23
|
-
v-bind="routerProps?.icon"
|
|
24
|
-
:icon="props.item.icon"
|
|
25
|
-
/>
|
|
26
|
-
<span v-bind="routerProps?.label">{{ props.item.label }}</span>
|
|
27
|
-
</a>
|
|
28
|
-
</router-link>
|
|
29
|
-
|
|
30
|
-
<a
|
|
31
|
-
v-else-if="props.item.url"
|
|
32
|
-
:href="props.item.url"
|
|
33
|
-
:target="props.item.target"
|
|
34
|
-
v-bind="routerProps?.action"
|
|
35
|
-
@click.stop
|
|
36
|
-
>
|
|
37
|
-
<Icon
|
|
38
|
-
v-if="props.item.icon"
|
|
39
|
-
v-bind="routerProps?.icon"
|
|
40
|
-
:icon="props.item.icon as WangsIcons"
|
|
41
|
-
/>
|
|
42
|
-
<span v-bind="routerProps?.label">{{ props.item.label }}</span>
|
|
43
|
-
</a>
|
|
44
|
-
|
|
45
|
-
<a
|
|
46
|
-
v-else
|
|
47
|
-
v-bind="routerProps?.action"
|
|
48
|
-
aria-hidden="true"
|
|
49
|
-
data-pc-section="action"
|
|
50
|
-
tabindex="-1"
|
|
51
|
-
>
|
|
52
|
-
<Icon
|
|
53
|
-
v-if="props.item.icon"
|
|
54
|
-
:icon="props.item.icon as WangsIcons"
|
|
55
|
-
:severity="props.item.danger ? 'danger' : undefined"
|
|
56
|
-
v-bind="routerProps?.icon"
|
|
57
|
-
/>
|
|
58
|
-
|
|
59
|
-
<span
|
|
60
|
-
v-bind="
|
|
61
|
-
$preset.menu?.label({
|
|
62
|
-
props: { danger: props.item.danger },
|
|
63
|
-
})
|
|
64
|
-
"
|
|
65
|
-
data-pc-section="label"
|
|
66
|
-
>
|
|
67
|
-
{{ props.item.label }}
|
|
68
|
-
</span>
|
|
69
|
-
</a>
|
|
70
|
-
</template>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { MenuRouterBindProps } from '../menu/Menu.vue.d';
|
|
2
|
-
import { MenuItem } from '.';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<
|
|
4
|
-
__VLS_TypePropsToOption<{
|
|
5
|
-
item: MenuItem;
|
|
6
|
-
routerProps: MenuRouterBindProps;
|
|
7
|
-
}>,
|
|
8
|
-
{},
|
|
9
|
-
unknown,
|
|
10
|
-
{},
|
|
11
|
-
{},
|
|
12
|
-
import('vue').ComponentOptionsMixin,
|
|
13
|
-
import('vue').ComponentOptionsMixin,
|
|
14
|
-
{},
|
|
15
|
-
string,
|
|
16
|
-
import('vue').PublicProps,
|
|
17
|
-
Readonly<
|
|
18
|
-
import('vue').ExtractPropTypes<
|
|
19
|
-
__VLS_TypePropsToOption<{
|
|
20
|
-
item: MenuItem;
|
|
21
|
-
routerProps: MenuRouterBindProps;
|
|
22
|
-
}>
|
|
23
|
-
>
|
|
24
|
-
>,
|
|
25
|
-
{},
|
|
26
|
-
{}
|
|
27
|
-
>;
|
|
28
|
-
export default _default;
|
|
29
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
-
type __VLS_TypePropsToOption<T> = {
|
|
31
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
32
|
-
? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
}
|
|
35
|
-
: {
|
|
36
|
-
type: import('vue').PropType<T[K]>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* WangsVue menu components share a common api to specify the menuitems and submenus.
|
|
6
|
-
*
|
|
7
|
-
* @module menuitem
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Custom command event.
|
|
13
|
-
* @todo next release should be able to change see menuItem.command
|
|
14
|
-
*/
|
|
15
|
-
export interface MenuItemCommandEvent {
|
|
16
|
-
/**
|
|
17
|
-
* Browser event.
|
|
18
|
-
*/
|
|
19
|
-
originalEvent: Event;
|
|
20
|
-
/**
|
|
21
|
-
* Menuitem instance.
|
|
22
|
-
*/
|
|
23
|
-
item: MenuItem;
|
|
24
|
-
/**
|
|
25
|
-
* Optional
|
|
26
|
-
*/
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Defines model of MenuItem API.
|
|
32
|
-
*/
|
|
33
|
-
export interface MenuItem {
|
|
34
|
-
/**
|
|
35
|
-
* Property name or getter function to use as the label of an item.
|
|
36
|
-
*/
|
|
37
|
-
label?: string | ((...args: any) => string) | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Icon of the item.
|
|
40
|
-
*/
|
|
41
|
-
icon?: WangsIcons | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Callback to execute when item is clicked.
|
|
44
|
-
* @param {MenuItemCommandEvent} event - Custom command event.
|
|
45
|
-
* @todo next release should be able to change
|
|
46
|
-
*/
|
|
47
|
-
command?: (event: MenuItemCommandEvent) => void;
|
|
48
|
-
/**
|
|
49
|
-
* External link to navigate when item is clicked.
|
|
50
|
-
*/
|
|
51
|
-
url?: string | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies where to open the linked document.
|
|
54
|
-
*/
|
|
55
|
-
target?: string | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Internal/ vue router link to navigate when item is clicked.
|
|
58
|
-
*/
|
|
59
|
-
route?: string | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* An array of children menuitems.
|
|
62
|
-
*/
|
|
63
|
-
items?: MenuItem[] | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* A boolean or a function to return a boolean to specify if the item is disabled.
|
|
66
|
-
* @defaultValue false
|
|
67
|
-
*/
|
|
68
|
-
disabled?: boolean | ((...args: any) => boolean) | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* A boolean or a function to return a boolean to specify if the item is visible.
|
|
71
|
-
* @defaultValue true
|
|
72
|
-
*/
|
|
73
|
-
visible?: boolean | ((...args: any) => boolean) | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* A boolean or to specify if the item has danger severity.
|
|
76
|
-
* @defaultValue false
|
|
77
|
-
*/
|
|
78
|
-
danger?: boolean | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Defines the item as a separator.
|
|
81
|
-
* @defaultValue false
|
|
82
|
-
*/
|
|
83
|
-
separator?: boolean | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* Inline style of the menuitem.
|
|
86
|
-
*/
|
|
87
|
-
style?: any;
|
|
88
|
-
/**
|
|
89
|
-
* Style class of the menuitem.
|
|
90
|
-
*/
|
|
91
|
-
class?: any;
|
|
92
|
-
/**
|
|
93
|
-
* Unique identifier of an item.
|
|
94
|
-
*/
|
|
95
|
-
key?: string | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Specify if the there is additional slot for the selected menuitem.
|
|
98
|
-
* Only work on BulkAction when BulkActionProps.selectMenuType is "dropdown".
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
useAdditionSlot?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Optional
|
|
104
|
-
*/
|
|
105
|
-
[key: string]: any;
|
|
106
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
export declare type PassThroughMergePropsType =
|
|
3
|
-
| ((...args: any) => object | undefined)
|
|
4
|
-
| boolean
|
|
5
|
-
| undefined;
|
|
6
|
-
|
|
7
|
-
export interface PassThroughOptions {
|
|
8
|
-
mergeSections?: boolean | undefined;
|
|
9
|
-
mergeProps?: PassThroughMergePropsType;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export declare function usePassThrough(
|
|
13
|
-
pt1: object,
|
|
14
|
-
pt2: object,
|
|
15
|
-
options?: PassThroughOptions,
|
|
16
|
-
): object;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AttachmentFile,
|
|
3
|
-
AttachmentLink,
|
|
4
|
-
DetailBullet,
|
|
5
|
-
DetailJSONContent,
|
|
6
|
-
DetailText,
|
|
7
|
-
DetailUserText,
|
|
8
|
-
LinkTaskIframeEmbed,
|
|
9
|
-
LinkTaskURL,
|
|
10
|
-
DetailBadge,
|
|
11
|
-
} from './Timeline.vue.d';
|
|
12
|
-
declare const _default: import('vue').DefineComponent<
|
|
13
|
-
__VLS_TypePropsToOption<{
|
|
14
|
-
detail:
|
|
15
|
-
| AttachmentFile
|
|
16
|
-
| LinkTaskIframeEmbed
|
|
17
|
-
| LinkTaskURL
|
|
18
|
-
| AttachmentLink
|
|
19
|
-
| DetailText
|
|
20
|
-
| DetailUserText
|
|
21
|
-
| DetailBullet
|
|
22
|
-
| DetailJSONContent
|
|
23
|
-
| DetailBadge;
|
|
24
|
-
}>,
|
|
25
|
-
{},
|
|
26
|
-
unknown,
|
|
27
|
-
{},
|
|
28
|
-
{},
|
|
29
|
-
import('vue').ComponentOptionsMixin,
|
|
30
|
-
import('vue').ComponentOptionsMixin,
|
|
31
|
-
{},
|
|
32
|
-
string,
|
|
33
|
-
import('vue').PublicProps,
|
|
34
|
-
Readonly<
|
|
35
|
-
import('vue').ExtractPropTypes<
|
|
36
|
-
__VLS_TypePropsToOption<{
|
|
37
|
-
detail:
|
|
38
|
-
| AttachmentFile
|
|
39
|
-
| LinkTaskIframeEmbed
|
|
40
|
-
| LinkTaskURL
|
|
41
|
-
| AttachmentLink
|
|
42
|
-
| DetailText
|
|
43
|
-
| DetailUserText
|
|
44
|
-
| DetailBullet
|
|
45
|
-
| DetailJSONContent
|
|
46
|
-
| DetailBadge;
|
|
47
|
-
}>
|
|
48
|
-
>
|
|
49
|
-
>,
|
|
50
|
-
{},
|
|
51
|
-
{}
|
|
52
|
-
>;
|
|
53
|
-
export default _default;
|
|
54
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
|
-
type __VLS_TypePropsToOption<T> = {
|
|
56
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
57
|
-
? {
|
|
58
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
59
|
-
}
|
|
60
|
-
: {
|
|
61
|
-
type: import('vue').PropType<T[K]>;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TreeSelectionKeys } from 'primevue/tree';
|
|
2
|
-
/**
|
|
3
|
-
* Parse selection keys into array of keys.
|
|
4
|
-
*
|
|
5
|
-
* @param nodeKeys - A collection of selected node keys.
|
|
6
|
-
* @param includeNodeAllKey - Whether to include the "-1" key (representing "All").
|
|
7
|
-
*/
|
|
8
|
-
export declare const parseNodeKeys: (
|
|
9
|
-
nodeKeys: TreeSelectionKeys,
|
|
10
|
-
includeNodeAllKey?: boolean,
|
|
11
|
-
) => number[];
|
|
12
|
-
/**
|
|
13
|
-
* Filters a collection of selected node keys based on specific criteria.
|
|
14
|
-
*
|
|
15
|
-
* @param nodeKeys - A collection of selected node keys.
|
|
16
|
-
* @param includeNodeAllKey - Whether to include the "-1" key (representing "All").
|
|
17
|
-
* @returns A new collection of filtered node keys.
|
|
18
|
-
*/
|
|
19
|
-
export declare const filterNodeKeys: (
|
|
20
|
-
nodeKeys: TreeSelectionKeys,
|
|
21
|
-
includeNodeAllKey?: boolean,
|
|
22
|
-
) => TreeSelectionKeys;
|