fit2cloud-ui-plus 0.0.1-beta.16 → 0.0.1-beta.19
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/lib/fit2cloud-ui-plus.es.js +1057 -242
- package/lib/fit2cloud-ui-plus.umd.js +1 -1
- package/package.json +2 -2
- package/src/components/filter-bar/FuFilter.vue +3 -2
- package/src/components/filter-bar/FuFilterBar.vue +5 -5
- package/src/components/filter-bar/FuFilterInput.vue +4 -1
- package/src/components/filter-bar/filter-components/FuFilterDate.vue +17 -13
- package/src/components/filter-bar/filter-components/FuFilterDateTime.vue +4 -4
- package/src/components/filter-bar/filter-components/FuFilterSelect.vue +5 -4
- package/src/components/read-write-switch/FuSelectRwSwitch.vue +23 -10
- package/src/components/search-bar/FuComplexSearch.vue +66 -132
- package/src/components/search-bar/FuQuickSearch.vue +21 -51
- package/src/components/search-bar/FuSearchBar.vue +120 -125
- package/src/components/search-bar/FuSearchBarButton.vue +15 -14
- package/src/components/search-bar/FuSearchContions.vue +26 -15
- package/src/components/search-bar/complex-components/FuComplexDate.vue +8 -7
- package/src/components/search-bar/complex-components/FuComplexDateTime.vue +23 -17
- package/src/components/search-bar/complex-components/FuComplexInput.vue +10 -3
- package/src/components/search-bar/complex-components/FuComplexSelect.vue +17 -10
- package/src/components/search-bar/index.ts +20 -0
- package/src/components/search-bar/types.ts +1 -1
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-global-config/index.ts +26 -8
- package/src/hooks/use-locale/index.ts +1 -1
- package/src/hooks/use-size/index.ts +11 -5
- package/src/index.ts +5 -2
- package/src/styles/common/function.scss +14 -4
- package/src/styles/common/mixins.scss +9 -4
- package/src/styles/common/variables.scss +33 -11
- package/src/styles/components/filter-bar.scss +9 -10
- package/src/styles/components/search-bar.scss +27 -71
- package/src/styles/components/table.scss +5 -5
- package/src/styles/index.scss +2 -0
- package/src/styles/var.scss +8 -0
- package/types/examples/pages/search/attributes.d.ts +57 -0
- package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
- package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
- package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
- package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
- package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
- package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
- package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
- package/types/examples/pages/search/index.vue.d.ts +150 -0
- package/types/examples/pages/search-bar/attributes.d.ts +63 -0
- package/types/examples/pages/search-bar/demo/BaseSearchbar.vue.d.ts +31 -0
- package/types/examples/pages/search-bar/demo/ComplexSearchDemo.vue.d.ts +40 -0
- package/types/examples/pages/search-bar/demo/EchoConditionsDemo.vue.d.ts +32 -0
- package/types/examples/pages/search-bar/demo/QuickSearchDemo.vue.d.ts +7 -0
- package/types/examples/pages/search-bar/demo/SearchBarButtonDemo.vue.d.ts +32 -0
- package/types/examples/pages/search-bar/index.vue.d.ts +2 -0
- package/types/examples/pages/table/demo/TablePagination.vue.d.ts +1 -1
- package/types/src/components/filter-bar/FuFilter.vue.d.ts +3 -0
- package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +12 -1
- package/types/src/components/filter-bar/FuFilterInput.vue.d.ts +17 -0
- package/types/src/components/filter-bar/index.d.ts +2 -2
- package/types/src/components/read-write-switch/FuSelectRwSwitch.vue.d.ts +11 -1
- package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +22 -0
- package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +29 -0
- package/types/src/components/search-bar/FuSearchBar.vue.d.ts +58 -0
- package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +14 -0
- package/types/src/components/search-bar/FuSearchContions.vue.d.ts +26 -0
- package/types/src/components/search-bar/complex-components/FuComplexDate.vue.d.ts +36 -0
- package/types/src/components/search-bar/complex-components/FuComplexDateTime.vue.d.ts +36 -0
- package/types/src/components/search-bar/complex-components/FuComplexInput.vue.d.ts +26 -0
- package/types/src/components/search-bar/complex-components/FuComplexSelect.vue.d.ts +50 -0
- package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
- package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
- package/types/src/components/search-bar/index.d.ts +2 -0
- package/types/src/components/search-bar/types.d.ts +17 -0
- package/types/src/hooks/use-global-config/index.d.ts +9 -1
- package/types/src/hooks/use-size/index.d.ts +5 -1
- package/types/src/index.d.ts +2 -1
- package/src/components/read-write-switch/index.d.ts +0 -2
- package/src/components/read-write-switch/types.d.ts +0 -4
- package/src/components/search-bar/complex-components/index.js +0 -16
- package/src/components/search-bar/complex-components/mixins.js +0 -26
- package/src/components/search-bar/index.js +0 -16
- package/src/components/table/index.d.ts +0 -2
- package/src/components/table/table-column-select/utils.d.ts +0 -8
- package/src/components/table/types.d.ts +0 -2
- package/src/hooks/use-global-config/index.d.ts +0 -1
- package/src/hooks/use-locale/index.d.ts +0 -14
- package/src/hooks/use-size/index.d.ts +0 -5
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
validator: (val: string) => val is string;
|
|
5
|
+
};
|
|
6
|
+
modelValue: StringConstructor;
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
size: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
validator: (val: string) => val is string;
|
|
11
|
+
};
|
|
12
|
+
modelValue: StringConstructor;
|
|
13
|
+
}>> & {
|
|
14
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default
|
|
1
|
+
import FuFilterBar from "./FuFilterBar.vue";
|
|
2
|
+
export default FuFilterBar;
|
|
@@ -6,17 +6,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
type: PropType<OptionProps[]>;
|
|
7
7
|
default: never[];
|
|
8
8
|
};
|
|
9
|
+
blurTime: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
9
13
|
writeTrigger: {
|
|
10
14
|
type: StringConstructor;
|
|
11
15
|
default: string;
|
|
12
16
|
validator: (value: string) => boolean;
|
|
13
17
|
};
|
|
14
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "input")[], "input" | "blur" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "input" | "update:modelValue")[], "input" | "blur" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
19
|
modelValue: (StringConstructor | NumberConstructor)[];
|
|
16
20
|
options: {
|
|
17
21
|
type: PropType<OptionProps[]>;
|
|
18
22
|
default: never[];
|
|
19
23
|
};
|
|
24
|
+
blurTime: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
20
28
|
writeTrigger: {
|
|
21
29
|
type: StringConstructor;
|
|
22
30
|
default: string;
|
|
@@ -26,8 +34,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
34
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
27
35
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
28
36
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
38
|
}, {
|
|
30
39
|
options: OptionProps[];
|
|
40
|
+
blurTime: number;
|
|
31
41
|
writeTrigger: string;
|
|
32
42
|
}>;
|
|
33
43
|
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { ComplexCondition } from "./types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
validator: (val: string) => val is string;
|
|
7
|
+
};
|
|
8
|
+
components: PropType<any[]>;
|
|
9
|
+
}, {
|
|
10
|
+
setConditions: (conditionObj: any) => ComplexCondition[];
|
|
11
|
+
close: () => void;
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
size: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
validator: (val: string) => val is string;
|
|
16
|
+
};
|
|
17
|
+
components: PropType<any[]>;
|
|
18
|
+
}>> & {
|
|
19
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
validator: (val: string) => val is string;
|
|
5
|
+
};
|
|
6
|
+
modelValue: StringConstructor;
|
|
7
|
+
placeholder: StringConstructor;
|
|
8
|
+
useIcon: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
size: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
validator: (val: string) => val is string;
|
|
16
|
+
};
|
|
17
|
+
modelValue: StringConstructor;
|
|
18
|
+
placeholder: StringConstructor;
|
|
19
|
+
useIcon: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
useIcon: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
validator: (val: string) => val is string;
|
|
5
|
+
};
|
|
6
|
+
quickKey: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
quickPlaceholder: StringConstructor;
|
|
11
|
+
useCleanButton: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
useRefreshButton: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
useQuickSearch: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
components: ArrayConstructor;
|
|
24
|
+
}, {
|
|
25
|
+
setConditions: (conditionObj: any) => void;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "exec")[], "close" | "exec", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
size: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
validator: (val: string) => val is string;
|
|
30
|
+
};
|
|
31
|
+
quickKey: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
quickPlaceholder: StringConstructor;
|
|
36
|
+
useCleanButton: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
useRefreshButton: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
useQuickSearch: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
components: ArrayConstructor;
|
|
49
|
+
}>> & {
|
|
50
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onExec?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
useQuickSearch: boolean;
|
|
54
|
+
quickKey: string;
|
|
55
|
+
useCleanButton: boolean;
|
|
56
|
+
useRefreshButton: boolean;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
validator: (val: string) => val is string;
|
|
5
|
+
};
|
|
6
|
+
tooltip: StringConstructor;
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
size: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
validator: (val: string) => val is string;
|
|
11
|
+
};
|
|
12
|
+
tooltip: StringConstructor;
|
|
13
|
+
}>>, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { ComplexCondition } from "./types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
validator: (val: string) => val is string;
|
|
7
|
+
};
|
|
8
|
+
conditions: {
|
|
9
|
+
type: PropType<ComplexCondition[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
change: (conditions: ComplexCondition[]) => void;
|
|
14
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
size: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
validator: (val: string) => val is string;
|
|
18
|
+
};
|
|
19
|
+
conditions: {
|
|
20
|
+
type: PropType<ComplexCondition[]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
onChange?: ((conditions: ComplexCondition[]) => any) | undefined;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComplexCondition } from "../types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
size: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
validator: (val: string) => val is string;
|
|
6
|
+
};
|
|
7
|
+
label: StringConstructor;
|
|
8
|
+
field: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
valueFormat: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
getCondition: () => ComplexCondition | undefined;
|
|
18
|
+
init: (v: any) => void;
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
size: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
validator: (val: string) => val is string;
|
|
23
|
+
};
|
|
24
|
+
label: StringConstructor;
|
|
25
|
+
field: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
valueFormat: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
valueFormat: string;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComplexCondition } from "../types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
size: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
validator: (val: string) => val is string;
|
|
6
|
+
};
|
|
7
|
+
label: StringConstructor;
|
|
8
|
+
field: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
valueFormat: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
getCondition: () => ComplexCondition | undefined;
|
|
18
|
+
init: (v: any) => void;
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
size: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
validator: (val: string) => val is string;
|
|
23
|
+
};
|
|
24
|
+
label: StringConstructor;
|
|
25
|
+
field: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
valueFormat: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
valueFormat: string;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComplexCondition } from "../types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
size: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
validator: (val: string) => val is string;
|
|
6
|
+
};
|
|
7
|
+
label: StringConstructor;
|
|
8
|
+
field: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
getCondition: () => ComplexCondition | undefined;
|
|
14
|
+
init: (v: any) => void;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
size: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
validator: (val: string) => val is string;
|
|
19
|
+
};
|
|
20
|
+
label: StringConstructor;
|
|
21
|
+
field: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>>, {}>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { ComplexCondition, OptionProps } from "../types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
validator: (val: string) => val is string;
|
|
7
|
+
};
|
|
8
|
+
multiple: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
field: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
options: {
|
|
18
|
+
type: PropType<OptionProps[]>;
|
|
19
|
+
default: never[];
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
getCondition: () => ComplexCondition | undefined;
|
|
23
|
+
init: (v: any) => void;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
init: () => void;
|
|
26
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
size: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
validator: (val: string) => val is string;
|
|
30
|
+
};
|
|
31
|
+
multiple: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
label: StringConstructor;
|
|
36
|
+
field: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
options: {
|
|
41
|
+
type: PropType<OptionProps[]>;
|
|
42
|
+
default: never[];
|
|
43
|
+
};
|
|
44
|
+
}>> & {
|
|
45
|
+
onInit?: (() => any) | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
multiple: boolean;
|
|
48
|
+
options: OptionProps[];
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from "vue";
|
|
2
|
+
export declare const referenceKey: InjectionKey<Ref<ReferenceContext[]>>;
|
|
3
|
+
export interface ReferenceContext {
|
|
4
|
+
field: string;
|
|
5
|
+
init(v?: any): void;
|
|
6
|
+
getCondition(): ComplexCondition | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface OptionProps {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string | number;
|
|
11
|
+
}
|
|
12
|
+
export interface ComplexCondition {
|
|
13
|
+
field: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
value: any;
|
|
16
|
+
valueLabel?: string;
|
|
17
|
+
}
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { InjectionKey, Ref, App } from 'vue';
|
|
2
|
+
import { MaybeRef } from "@vueuse/core";
|
|
3
|
+
export declare const globalConfigKey: InjectionKey<Ref<GlobalConfig>>;
|
|
4
|
+
export interface GlobalConfig {
|
|
5
|
+
size?: string;
|
|
6
|
+
locale?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function useGlobalConfig(key?: keyof any, defaultValue?: undefined): Ref<any>;
|
|
9
|
+
export declare const provideGlobalConfig: (config: MaybeRef<GlobalConfig>, app?: App<any> | undefined) => import("vue").ComputedRef<GlobalConfig>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { ComputedRef } from 'vue';
|
|
2
2
|
import type { ComponentSize } from '@/tools/size';
|
|
3
|
-
import
|
|
3
|
+
import { MaybeRef } from "@vueuse/core";
|
|
4
4
|
export declare const useProp: <T>(name: string) => ComputedRef<T | undefined>;
|
|
5
5
|
export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'global', boolean>>) => ComputedRef<string>;
|
|
6
|
+
export declare const useSizeProp: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
validator: (val: string) => val is string;
|
|
9
|
+
};
|
package/types/src/index.d.ts
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import locale from "@/locale";
|
|
2
|
-
|
|
3
|
-
const components = require.context('./', true, /\.vue$/)
|
|
4
|
-
|
|
5
|
-
const FuComplexComponents = {
|
|
6
|
-
install: function (Vue, opts = {}) {
|
|
7
|
-
locale.use(opts.locale);
|
|
8
|
-
locale.i18n(opts.i18n);
|
|
9
|
-
components.keys().map(key => {
|
|
10
|
-
const component = components(key).default
|
|
11
|
-
Vue.component(component.name, component);
|
|
12
|
-
})
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default FuComplexComponents;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import Locale from "@/mixins/locale";
|
|
2
|
-
import ConfigSize from "@/mixins/config-size";
|
|
3
|
-
import {ComplexCondition} from "@/components/search-bar/model";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
props: ConfigSize.props,
|
|
7
|
-
methods: {
|
|
8
|
-
...Locale.methods,
|
|
9
|
-
createCondition(value, operator) {
|
|
10
|
-
this.value = value
|
|
11
|
-
this.operator = operator
|
|
12
|
-
return this.getCondition()
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
computed: {
|
|
16
|
-
...ConfigSize.computed,
|
|
17
|
-
operatorLabel() {
|
|
18
|
-
for (let operator of this.operators) {
|
|
19
|
-
if (operator.value === this.operator) {
|
|
20
|
-
return this.t(operator.label)
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return this.operator
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import FuSearchBar from "./FuSearchBar"
|
|
2
|
-
import FuQuickSearch from "./FuQuickSearch"
|
|
3
|
-
import FuSearchBarButton from "./FuSearchBarButton"
|
|
4
|
-
import FuComplexComponents from "./complex-components"
|
|
5
|
-
import locale from "@/locale"
|
|
6
|
-
|
|
7
|
-
FuSearchBar.install = function (Vue, opts = {}) {
|
|
8
|
-
locale.use(opts.locale)
|
|
9
|
-
locale.i18n(opts.i18n)
|
|
10
|
-
Vue.component(FuSearchBar.name, FuSearchBar)
|
|
11
|
-
Vue.component(FuSearchBarButton.name, FuSearchBarButton)
|
|
12
|
-
Vue.component(FuQuickSearch.name, FuQuickSearch)
|
|
13
|
-
Vue.use(FuComplexComponents)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default FuSearchBar
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const tableColumnSelect: (localKey: any) => {
|
|
2
|
-
columnsKey: import("vue").ComputedRef<string>;
|
|
3
|
-
dragstart: (event: DragEvent, index: any) => void;
|
|
4
|
-
dragenter: (event: DragEvent) => void;
|
|
5
|
-
dragleave: (event: DragEvent) => void;
|
|
6
|
-
dragend: (event: DragEvent) => void;
|
|
7
|
-
drop: (event: DragEvent, list: any, index: number) => void;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useGlobalConfig(key?: keyof any, defaultValue?: undefined): import("vue").Ref<any>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MaybeRef } from '@vueuse/core';
|
|
2
|
-
import type { Ref } from 'vue';
|
|
3
|
-
import type { Language } from '@/locale';
|
|
4
|
-
export declare type TranslatorOption = Record<string, string | number>;
|
|
5
|
-
export declare type Translator = (path: string, option?: TranslatorOption) => string;
|
|
6
|
-
export declare type LocaleContext = {
|
|
7
|
-
locale: Ref<Language>;
|
|
8
|
-
lang: Ref<string>;
|
|
9
|
-
t: Translator;
|
|
10
|
-
};
|
|
11
|
-
export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
|
|
12
|
-
export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
|
|
13
|
-
export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
|
|
14
|
-
export declare const useLocale: () => LocaleContext;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
|
-
import type { ComponentSize } from '@/tools/size';
|
|
3
|
-
import type { MaybeRef } from '@vueuse/core';
|
|
4
|
-
export declare const useProp: <T>(name: string) => ComputedRef<T | undefined>;
|
|
5
|
-
export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'global', boolean>>) => ComputedRef<string>;
|