@dao-style/core 0.1.3 → 0.1.6
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/dist/components/expansion/expansion-item.vue.d.ts +2 -0
- package/dist/components/expansion/expansion.vue.d.ts +2 -0
- package/dist/components/expansion/props.d.ts +5 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/toolbar/index.d.ts +1 -0
- package/dist/components/toolbar/test/toolbar.spec.d.ts +1 -0
- package/dist/components/toolbar/toolbar-filter.vue.d.ts +58 -0
- package/dist/components/toolbar/toolbar.vue.d.ts +77 -0
- package/dist/components/toolbar/types.d.ts +16 -0
- package/dist/components/transfer/transfer-panel.vue.d.ts +2 -2
- package/dist/dao-style.es.js +807 -356
- package/dist/dao-style.umd.js +1 -1
- package/dist/locales/en-US.d.ts +4 -0
- package/dist/locales/zh-CN.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
|
@@ -10,6 +10,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
onItemClick: () => void;
|
|
12
12
|
isExpanded: import("vue").ComputedRef<boolean>;
|
|
13
|
+
expansionType: import("vue").ComputedRef<"line" | "box" | undefined>;
|
|
14
|
+
expansionMode: import("vue").ComputedRef<"manual" | "auto" | undefined>;
|
|
13
15
|
onBeforeEnter: (el: Element) => void;
|
|
14
16
|
onEnter: (el: Element) => void;
|
|
15
17
|
onAfterEnter: (el: Element) => void;
|
|
@@ -21,6 +21,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
state: {
|
|
22
22
|
expansionRecord: ExpansionName | ExpansionName[] | undefined;
|
|
23
23
|
accordion: boolean;
|
|
24
|
+
type?: "line" | "box" | undefined;
|
|
25
|
+
mode?: "manual" | "auto" | undefined;
|
|
24
26
|
};
|
|
25
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
26
28
|
modelValue?: unknown;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare type ExpansionName = symbol | string | number;
|
|
3
|
+
declare const expansionType: readonly ["line", "box"];
|
|
4
|
+
declare type TypeExpansionType = typeof expansionType[number];
|
|
3
5
|
export declare const expansionProps: {
|
|
4
6
|
modelValue: {
|
|
5
7
|
type: PropType<ExpansionName | ExpansionName[]>;
|
|
@@ -31,4 +33,7 @@ export declare type ExpansionPropsType = ExtractPropTypes<typeof expansionProps>
|
|
|
31
33
|
export interface ExpansionState {
|
|
32
34
|
expansionRecord: ExpansionPropsType['modelValue'];
|
|
33
35
|
accordion: boolean;
|
|
36
|
+
type?: TypeExpansionType;
|
|
37
|
+
mode?: 'auto' | 'manual';
|
|
34
38
|
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toolbar } from './toolbar.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { SearchValue, SearchOption, SearchOptionValue, FuzzyOption } from './types';
|
|
3
|
+
interface FilterItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
search: {
|
|
9
|
+
type: PropType<Record<string, SearchValue[]>>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
searchPlaceholder: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
searchOptions: {
|
|
17
|
+
type: PropType<SearchOption[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
fuzzy: {
|
|
21
|
+
type: PropType<FuzzyOption>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
computedSearchPlaceholder: import("vue").ComputedRef<string>;
|
|
26
|
+
daoInputSearchRef: import("vue").Ref<any>;
|
|
27
|
+
filteredKeys: import("vue").ComputedRef<FilterItem[]>;
|
|
28
|
+
filteredValues: import("vue").ComputedRef<SearchOptionValue[]>;
|
|
29
|
+
visible: import("vue").Ref<boolean>;
|
|
30
|
+
searchText: import("vue").Ref<string>;
|
|
31
|
+
type: import("vue").ComputedRef<"value" | "key">;
|
|
32
|
+
selectedKey: import("vue").ComputedRef<SearchOption | undefined>;
|
|
33
|
+
dropdownRef: import("vue").Ref<any>;
|
|
34
|
+
selectKey: (item: FilterItem) => void;
|
|
35
|
+
selectValue: (item: SearchOptionValue) => void;
|
|
36
|
+
showPopover: () => void;
|
|
37
|
+
handleEnter: () => void;
|
|
38
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:search")[], "search" | "update:search", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
39
|
+
search?: unknown;
|
|
40
|
+
searchPlaceholder?: unknown;
|
|
41
|
+
searchOptions?: unknown;
|
|
42
|
+
fuzzy?: unknown;
|
|
43
|
+
} & {
|
|
44
|
+
search: Record<string, SearchValue[]>;
|
|
45
|
+
searchPlaceholder: string;
|
|
46
|
+
searchOptions: SearchOption[];
|
|
47
|
+
} & {
|
|
48
|
+
fuzzy?: FuzzyOption | undefined;
|
|
49
|
+
}> & {
|
|
50
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
"onUpdate:search"?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
search: Record<string, SearchValue[]>;
|
|
54
|
+
searchPlaceholder: string;
|
|
55
|
+
searchOptions: SearchOption[];
|
|
56
|
+
fuzzy: FuzzyOption;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { SearchValue, SearchOption, FuzzyOption } from './types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
search: {
|
|
5
|
+
type: PropType<Record<string, SearchValue[]>>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
searchPlaceholder: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
searchOptions: {
|
|
13
|
+
type: PropType<SearchOption[]>;
|
|
14
|
+
default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
fuzzy: {
|
|
17
|
+
type: PropType<FuzzyOption>;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
hideRefresh: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
hideSearch: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
t: {
|
|
30
|
+
(key: string | number): string;
|
|
31
|
+
(key: string | number, plural: number, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
32
|
+
(key: string | number, defaultMsg: string, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
33
|
+
(key: string | number, list: unknown[], options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
34
|
+
(key: string | number, list: unknown[], plural: number): string;
|
|
35
|
+
(key: string | number, list: unknown[], defaultMsg: string): string;
|
|
36
|
+
(key: string | number, named: Record<string, unknown>, options?: import("vue-i18n").TranslateOptions | undefined): string;
|
|
37
|
+
(key: string | number, named: Record<string, unknown>, plural: number): string;
|
|
38
|
+
(key: string | number, named: Record<string, unknown>, defaultMsg: string): string;
|
|
39
|
+
};
|
|
40
|
+
searchModel: import("vue").Ref<{
|
|
41
|
+
[x: string]: (string | number | boolean | unknown[] | {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
})[];
|
|
44
|
+
}> | import("vue").WritableComputedRef<Record<string, SearchValue[]>>;
|
|
45
|
+
isFuzzyOption: (key: string) => boolean;
|
|
46
|
+
removeValue: (key: string, valueIndex: number) => void;
|
|
47
|
+
clearFilter: () => void;
|
|
48
|
+
getKeyLabel: (key: string) => string;
|
|
49
|
+
getValueLabel: (key: string, value: SearchValue) => SearchValue;
|
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:search" | "refresh")[], "search" | "update:search" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
51
|
+
search?: unknown;
|
|
52
|
+
searchPlaceholder?: unknown;
|
|
53
|
+
searchOptions?: unknown;
|
|
54
|
+
fuzzy?: unknown;
|
|
55
|
+
hideRefresh?: unknown;
|
|
56
|
+
hideSearch?: unknown;
|
|
57
|
+
} & {
|
|
58
|
+
search: Record<string, SearchValue[]>;
|
|
59
|
+
searchPlaceholder: string;
|
|
60
|
+
searchOptions: SearchOption[];
|
|
61
|
+
hideRefresh: boolean;
|
|
62
|
+
hideSearch: boolean;
|
|
63
|
+
} & {
|
|
64
|
+
fuzzy?: FuzzyOption | undefined;
|
|
65
|
+
}> & {
|
|
66
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
"onUpdate:search"?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
search: Record<string, SearchValue[]>;
|
|
71
|
+
searchPlaceholder: string;
|
|
72
|
+
searchOptions: SearchOption[];
|
|
73
|
+
fuzzy: FuzzyOption;
|
|
74
|
+
hideRefresh: boolean;
|
|
75
|
+
hideSearch: boolean;
|
|
76
|
+
}>;
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type SearchValue = string | number | boolean | unknown[] | Record<string, unknown>;
|
|
2
|
+
export interface SearchOptionValue {
|
|
3
|
+
value: SearchValue;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SearchOption {
|
|
7
|
+
key: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
values?: SearchOptionValue[];
|
|
10
|
+
single?: boolean;
|
|
11
|
+
enum?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface FuzzyOption {
|
|
14
|
+
key: string;
|
|
15
|
+
single?: boolean;
|
|
16
|
+
}
|
|
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
48
|
isEmpty: import("vue").ComputedRef<boolean>;
|
|
49
49
|
hasFooter: import("vue").ComputedRef<boolean>;
|
|
50
50
|
handleEvent: (action: 'remove' | 'check', row: import("./props").DataItem) => void;
|
|
51
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("refresh" | "selectedChange")[], "refresh" | "selectedChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
52
52
|
type?: unknown;
|
|
53
53
|
data?: unknown;
|
|
54
54
|
checkedKeys?: unknown;
|
|
@@ -74,8 +74,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
filterMethod?: ((query: string, item: import("./props").DataItem) => boolean) | undefined;
|
|
75
75
|
filterPlaceholder?: string | undefined;
|
|
76
76
|
}> & {
|
|
77
|
-
onSelectedChange?: ((...args: any[]) => any) | undefined;
|
|
78
77
|
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
onSelectedChange?: ((...args: any[]) => any) | undefined;
|
|
79
79
|
}, {
|
|
80
80
|
props: {
|
|
81
81
|
key: string;
|