fit2cloud-ui-plus 1.2.0-beta.0 → 1.2.0

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.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/lib/fit2cloud-ui-plus.es.js +63 -56
  3. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  4. package/package.json +2 -1
  5. package/src/components/table/table-column-select/FuTableColumnSelectPopover.vue +0 -7
  6. package/src/hooks/use-global-config/index.ts +1 -0
  7. package/src/hooks/use-locale/index.ts +23 -13
  8. package/src/index.ts +2 -1
  9. package/src/locale/lang/ja.ts +2 -2
  10. package/src/locale/lang/pt-br.ts +1 -1
  11. package/src/locale/lang/ru.ts +1 -1
  12. package/src/locale/lang/zh-cn.ts +1 -1
  13. package/src/locale/lang/zh-tw.ts +1 -1
  14. package/src/styles/components/filter-bar.scss +4 -2
  15. package/types/examples/locale/index.d.ts +416 -0
  16. package/types/src/hooks/use-global-config/index.d.ts +1 -0
  17. package/types/src/hooks/use-locale/index.d.ts +1 -0
  18. package/types/examples/pages/search/attributes.d.ts +0 -57
  19. package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +0 -66
  20. package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +0 -60
  21. package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +0 -84
  22. package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +0 -50
  23. package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +0 -52
  24. package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +0 -18
  25. package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +0 -54
  26. package/types/examples/pages/search/index.vue.d.ts +0 -150
  27. package/types/src/components/ steps/FuHorizontalNavigation.vue.d.ts +0 -13
  28. package/types/src/components/ steps/FuHorizontalSteps.vue.d.ts +0 -6
  29. package/types/src/components/ steps/FuStep.vue.d.ts +0 -2
  30. package/types/src/components/ steps/FuStepButton.vue.d.ts +0 -2
  31. package/types/src/components/ steps/FuSteps.vue.d.ts +0 -12
  32. package/types/src/components/ steps/FuStepsFooter.d.ts +0 -6
  33. package/types/src/components/ steps/FuVerticalNavigation.vue.d.ts +0 -14
  34. package/types/src/components/ steps/FuVerticalSteps.vue.d.ts +0 -6
  35. package/types/src/components/ steps/Stepper.d.ts +0 -39
  36. package/types/src/components/ steps/index.d.ts +0 -2
  37. package/types/src/components/ steps/types.d.ts +0 -27
  38. package/types/src/components/filter-bar/FuSearchInput.vue.d.ts +0 -17
  39. package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
  40. package/types/src/components/search-bar/complex-components/mixins.d.ts +0 -6
  41. package/types/src/components/table/FuTableBody-backup.d.ts +0 -3
  42. package/types/src/components/table/types.d.ts +0 -2
  43. package/types/src/tools/utils.d.ts +0 -2
@@ -1,60 +0,0 @@
1
- declare namespace _default {
2
- const name: string;
3
- function data(): {
4
- options: {
5
- label: string;
6
- value: string;
7
- }[];
8
- components: ({
9
- field: string;
10
- label: string;
11
- component: string;
12
- options?: undefined;
13
- multiple?: undefined;
14
- filterable?: undefined;
15
- } | {
16
- field: string;
17
- label: string;
18
- component: string;
19
- options: {
20
- label: string;
21
- value: string;
22
- }[];
23
- multiple: boolean;
24
- filterable: boolean;
25
- })[];
26
- condition: {};
27
- };
28
- function data(): {
29
- options: {
30
- label: string;
31
- value: string;
32
- }[];
33
- components: ({
34
- field: string;
35
- label: string;
36
- component: string;
37
- options?: undefined;
38
- multiple?: undefined;
39
- filterable?: undefined;
40
- } | {
41
- field: string;
42
- label: string;
43
- component: string;
44
- options: {
45
- label: string;
46
- value: string;
47
- }[];
48
- multiple: boolean;
49
- filterable: boolean;
50
- })[];
51
- condition: {};
52
- };
53
- namespace methods {
54
- function initOptions(options: any, loading: any): void;
55
- function initOptions(options: any, loading: any): void;
56
- function search(condition: any): void;
57
- function search(condition: any): void;
58
- }
59
- }
60
- export default _default;
@@ -1,84 +0,0 @@
1
- declare namespace _default {
2
- const name: string;
3
- function data(): {
4
- options: {
5
- label: string;
6
- value: string;
7
- }[];
8
- components: ({
9
- field: string;
10
- label: string;
11
- component: string;
12
- options?: undefined;
13
- min?: undefined;
14
- max?: undefined;
15
- step?: undefined;
16
- } | {
17
- field: string;
18
- label: string;
19
- component: string;
20
- options: {
21
- label: string;
22
- value: string;
23
- }[];
24
- min?: undefined;
25
- max?: undefined;
26
- step?: undefined;
27
- } | {
28
- field: string;
29
- label: string;
30
- component: string;
31
- min: number;
32
- max: number;
33
- step: number;
34
- options?: undefined;
35
- })[];
36
- condition: {};
37
- condition2: {};
38
- };
39
- function data(): {
40
- options: {
41
- label: string;
42
- value: string;
43
- }[];
44
- components: ({
45
- field: string;
46
- label: string;
47
- component: string;
48
- options?: undefined;
49
- min?: undefined;
50
- max?: undefined;
51
- step?: undefined;
52
- } | {
53
- field: string;
54
- label: string;
55
- component: string;
56
- options: {
57
- label: string;
58
- value: string;
59
- }[];
60
- min?: undefined;
61
- max?: undefined;
62
- step?: undefined;
63
- } | {
64
- field: string;
65
- label: string;
66
- component: string;
67
- min: number;
68
- max: number;
69
- step: number;
70
- options?: undefined;
71
- })[];
72
- condition: {};
73
- condition2: {};
74
- };
75
- namespace methods {
76
- function change(value: any): void;
77
- function change(value: any): void;
78
- function search(condition: any): void;
79
- function search(condition: any): void;
80
- function search2(condition: any): void;
81
- function search2(condition: any): void;
82
- }
83
- }
84
- export default _default;
@@ -1,50 +0,0 @@
1
- declare namespace _default {
2
- const name: string;
3
- namespace components {
4
- export { CustomSearchComponent };
5
- }
6
- function data(): {
7
- condition: {};
8
- };
9
- function data(): {
10
- condition: {};
11
- };
12
- namespace methods {
13
- function initOptions(options: any, loading: any): void;
14
- function initOptions(options: any, loading: any): void;
15
- function search(condition: any): void;
16
- function search(condition: any): void;
17
- }
18
- }
19
- export default _default;
20
- declare namespace CustomSearchComponent {
21
- const name_1: string;
22
- export { name_1 as name };
23
- export namespace props {
24
- const field: StringConstructor;
25
- const label: StringConstructor;
26
- }
27
- export function data(): {
28
- condition: string;
29
- operator: string;
30
- operatorLabel: string;
31
- };
32
- export function data(): {
33
- condition: string;
34
- operator: string;
35
- operatorLabel: string;
36
- };
37
- export namespace computed {
38
- function valueLabel(): any;
39
- function valueLabel(): any;
40
- }
41
- export namespace methods_1 {
42
- function getCondition(): any;
43
- function getCondition(): any;
44
- function init(): void;
45
- function init(): void;
46
- }
47
- export { methods_1 as methods };
48
- export function render(): JSX.Element;
49
- export function render(): JSX.Element;
50
- }
@@ -1,52 +0,0 @@
1
- declare namespace _default {
2
- const name: string;
3
- function data(): {
4
- options: {
5
- label: string;
6
- value: string;
7
- }[];
8
- components: ({
9
- field: string;
10
- label: string;
11
- component: string;
12
- options?: undefined;
13
- } | {
14
- field: string;
15
- label: string;
16
- component: string;
17
- options: {
18
- label: string;
19
- value: string;
20
- }[];
21
- })[];
22
- condition: {};
23
- };
24
- function data(): {
25
- options: {
26
- label: string;
27
- value: string;
28
- }[];
29
- components: ({
30
- field: string;
31
- label: string;
32
- component: string;
33
- options?: undefined;
34
- } | {
35
- field: string;
36
- label: string;
37
- component: string;
38
- options: {
39
- label: string;
40
- value: string;
41
- }[];
42
- })[];
43
- condition: {};
44
- };
45
- namespace methods {
46
- function init(): void;
47
- function init(): void;
48
- function search(condition: any): void;
49
- function search(condition: any): void;
50
- }
51
- }
52
- export default _default;
@@ -1,18 +0,0 @@
1
- declare namespace _default {
2
- const name: string;
3
- function data(): {
4
- quick: string;
5
- condition: string;
6
- };
7
- function data(): {
8
- quick: string;
9
- condition: string;
10
- };
11
- namespace methods {
12
- function change(value: any): void;
13
- function change(value: any): void;
14
- function search(condition: any): void;
15
- function search(condition: any): void;
16
- }
17
- }
18
- export default _default;
@@ -1,54 +0,0 @@
1
- declare namespace _default {
2
- const name: string;
3
- function data(): {
4
- options: {
5
- label: string;
6
- value: string;
7
- }[];
8
- components: ({
9
- field: string;
10
- label: string;
11
- component: string;
12
- options?: undefined;
13
- } | {
14
- field: string;
15
- label: string;
16
- component: string;
17
- options: {
18
- label: string;
19
- value: string;
20
- }[];
21
- })[];
22
- condition: {};
23
- };
24
- function data(): {
25
- options: {
26
- label: string;
27
- value: string;
28
- }[];
29
- components: ({
30
- field: string;
31
- label: string;
32
- component: string;
33
- options?: undefined;
34
- } | {
35
- field: string;
36
- label: string;
37
- component: string;
38
- options: {
39
- label: string;
40
- value: string;
41
- }[];
42
- })[];
43
- condition: {};
44
- };
45
- namespace methods {
46
- function download(e: any): void;
47
- function download(e: any): void;
48
- function upload(e: any): void;
49
- function upload(e: any): void;
50
- function search(condition: any): void;
51
- function search(condition: any): void;
52
- }
53
- }
54
- export default _default;
@@ -1,150 +0,0 @@
1
- declare namespace _default {
2
- const name: string;
3
- const mixins: any[];
4
- function data(): {
5
- url: string;
6
- attributes: {
7
- name: string;
8
- children: ({
9
- name: string;
10
- header: {
11
- prop: string;
12
- desc: string;
13
- type: string;
14
- enum: string;
15
- default: string;
16
- event?: undefined;
17
- value?: undefined;
18
- name?: undefined;
19
- };
20
- table: {
21
- prop: string;
22
- desc: string;
23
- type: string;
24
- enum: string;
25
- default: string;
26
- }[];
27
- } | {
28
- name: string;
29
- header: {
30
- event: string;
31
- desc: string;
32
- value: string;
33
- prop?: undefined;
34
- type?: undefined;
35
- enum?: undefined;
36
- default?: undefined;
37
- name?: undefined;
38
- };
39
- table: {
40
- event: string;
41
- desc: string;
42
- value: string;
43
- }[];
44
- } | {
45
- name: string;
46
- header: {
47
- name: string;
48
- desc: string;
49
- prop?: undefined;
50
- type?: undefined;
51
- enum?: undefined;
52
- default?: undefined;
53
- event?: undefined;
54
- value?: undefined;
55
- };
56
- table: {
57
- name: string;
58
- desc: string;
59
- }[];
60
- })[];
61
- }[];
62
- comList: ({
63
- title: string;
64
- titleDesc: string;
65
- component: string;
66
- description?: undefined;
67
- } | {
68
- title: string;
69
- titleDesc: string;
70
- component: string;
71
- description: string;
72
- })[];
73
- };
74
- function data(): {
75
- url: string;
76
- attributes: {
77
- name: string;
78
- children: ({
79
- name: string;
80
- header: {
81
- prop: string;
82
- desc: string;
83
- type: string;
84
- enum: string;
85
- default: string;
86
- event?: undefined;
87
- value?: undefined;
88
- name?: undefined;
89
- };
90
- table: {
91
- prop: string;
92
- desc: string;
93
- type: string;
94
- enum: string;
95
- default: string;
96
- }[];
97
- } | {
98
- name: string;
99
- header: {
100
- event: string;
101
- desc: string;
102
- value: string;
103
- prop?: undefined;
104
- type?: undefined;
105
- enum?: undefined;
106
- default?: undefined;
107
- name?: undefined;
108
- };
109
- table: {
110
- event: string;
111
- desc: string;
112
- value: string;
113
- }[];
114
- } | {
115
- name: string;
116
- header: {
117
- name: string;
118
- desc: string;
119
- prop?: undefined;
120
- type?: undefined;
121
- enum?: undefined;
122
- default?: undefined;
123
- event?: undefined;
124
- value?: undefined;
125
- };
126
- table: {
127
- name: string;
128
- desc: string;
129
- }[];
130
- })[];
131
- }[];
132
- comList: ({
133
- title: string;
134
- titleDesc: string;
135
- component: string;
136
- description?: undefined;
137
- } | {
138
- title: string;
139
- titleDesc: string;
140
- component: string;
141
- description: string;
142
- })[];
143
- };
144
- const methods: {};
145
- function created(): void;
146
- function created(): void;
147
- function mounted(): void;
148
- function mounted(): void;
149
- }
150
- export default _default;
@@ -1,13 +0,0 @@
1
- import type { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- stepper: ObjectConstructor;
4
- steps: ArrayConstructor;
5
- disable: PropType<(index: number) => boolean>;
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "active"[], "active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
- stepper: ObjectConstructor;
8
- steps: ArrayConstructor;
9
- disable: PropType<(index: number) => boolean>;
10
- }>> & {
11
- onActive?: ((...args: any[]) => any) | undefined;
12
- }, {}>;
13
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
- [key: string]: any;
3
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
- onChange?: ((...args: any[]) => any) | undefined;
5
- }, {}>;
6
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,12 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<Readonly<{
2
- direction?: any;
3
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
- [key: string]: any;
5
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
6
- direction?: any;
7
- }>>> & {
8
- onChange?: ((...args: any[]) => any) | undefined;
9
- }, {
10
- readonly direction?: any;
11
- }>;
12
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
- [key: string]: any;
3
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "stepperFn"[], "stepperFn", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
- onStepperFn?: ((...args: any[]) => any) | undefined;
5
- }, {}>;
6
- export default _default;
@@ -1,14 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import { Step } from "@/components/ steps/Stepper";
3
- declare const _default: import("vue").DefineComponent<{
4
- stepper: ObjectConstructor;
5
- steps: PropType<Step[]>;
6
- disable: PropType<(index: number) => boolean>;
7
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "active"[], "active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
- stepper: ObjectConstructor;
9
- steps: PropType<Step[]>;
10
- disable: PropType<(index: number) => boolean>;
11
- }>> & {
12
- onActive?: ((...args: any[]) => any) | undefined;
13
- }, {}>;
14
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
- [key: string]: any;
3
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
- onChange?: ((...args: any[]) => any) | undefined;
5
- }, {}>;
6
- export default _default;
@@ -1,39 +0,0 @@
1
- import { StepperOptions, StepOptions } from './types';
2
- export declare class Stepper implements StepperOptions {
3
- steps: [Step];
4
- index: number;
5
- activeSet: any;
6
- isLoading: boolean;
7
- onCancelButtonText: string;
8
- onFinishButtonText: string;
9
- prevButtonText: string;
10
- nextButtonText: string;
11
- buttonSize: string;
12
- footerAlign: string;
13
- showCancel: any;
14
- beforeActive: Function;
15
- beforeLeave: Function;
16
- height: string;
17
- constructor(options?: StepperOptions);
18
- isFirst(index: number): boolean;
19
- isLast(index: number): boolean;
20
- isActive(index: number): boolean;
21
- isCurrent(index: number): boolean;
22
- active(index: number): Promise<void>;
23
- next(): void;
24
- prev(): void;
25
- getStep(index: number): Step | undefined;
26
- executeBeforeLeave(index: number, forward: boolean): any;
27
- executeBeforeActive(index: number, forward: boolean): any;
28
- }
29
- export declare class Step implements StepOptions {
30
- id?: string;
31
- index: number;
32
- beforeActive?: Function;
33
- beforeLeave?: Function;
34
- title?: string;
35
- description?: string;
36
- icon?: string;
37
- status?: string;
38
- constructor(options?: StepOptions);
39
- }
@@ -1,2 +0,0 @@
1
- import FuSteps from "./FuSteps.vue";
2
- export default FuSteps;
@@ -1,27 +0,0 @@
1
- import { Step } from "@/components/ steps/Stepper";
2
- export interface StepperOptions {
3
- steps: [Step];
4
- index: number;
5
- activeSet: any;
6
- isLoading?: boolean;
7
- onCancelButtonText: string;
8
- onFinishButtonText: string;
9
- prevButtonText: string;
10
- nextButtonText: string;
11
- buttonSize: string;
12
- footerAlign: string;
13
- showCancel: any;
14
- beforeActive: Function;
15
- beforeLeave: Function;
16
- height: string;
17
- }
18
- export interface StepOptions {
19
- id?: string;
20
- index: number;
21
- beforeActive?: Function;
22
- beforeLeave?: Function;
23
- title?: string;
24
- description?: string;
25
- icon?: string;
26
- status?: string;
27
- }
@@ -1,17 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- size: {
3
- type: StringConstructor;
4
- validator: (val: string) => val is string;
5
- };
6
- value: StringConstructor;
7
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "input" | "change", 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
- value: StringConstructor;
13
- }>> & {
14
- onChange?: ((...args: any[]) => any) | undefined;
15
- onInput?: ((...args: any[]) => any) | undefined;
16
- }, {}>;
17
- export default _default;
@@ -1,6 +0,0 @@
1
- declare namespace _default {
2
- const props: any;
3
- const methods: any;
4
- const computed: any;
5
- }
6
- export default _default;
@@ -1,3 +0,0 @@
1
- export declare const isFix: (node: any) => boolean;
2
- export declare const getLabel: (node: any) => any;
3
- export declare const FuTableBody: (props: any, context: any) => any;
@@ -1,2 +0,0 @@
1
- import { InjectionKey } from "vue";
2
- export declare const LocalKey: InjectionKey<string | undefined>;
@@ -1,2 +0,0 @@
1
- export declare const uuid: () => string;
2
- export declare const randomId: () => number;