fit2cloud-ui-plus 0.0.1-beta.16 → 0.0.1-beta.17

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 (35) hide show
  1. package/lib/fit2cloud-ui-plus.es.js +144 -118
  2. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  3. package/package.json +1 -1
  4. package/src/components/search-bar/FuComplexSearch.vue +170 -170
  5. package/src/components/search-bar/FuQuickSearch.vue +1 -41
  6. package/src/components/search-bar/FuSearchBar.vue +149 -149
  7. package/src/components/search-bar/complex-components/index.js +16 -16
  8. package/src/components/search-bar/index.js +16 -16
  9. package/types/examples/pages/search/attributes.d.ts +57 -0
  10. package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
  11. package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
  12. package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
  13. package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
  14. package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
  15. package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
  16. package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
  17. package/types/examples/pages/search/index.vue.d.ts +150 -0
  18. package/types/examples/pages/table/demo/TablePagination.vue.d.ts +1 -1
  19. package/types/src/components/filter-bar/FuFilter.vue.d.ts +3 -0
  20. package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +12 -1
  21. package/types/src/components/filter-bar/FuFilterInput.vue.d.ts +17 -0
  22. package/types/src/components/filter-bar/index.d.ts +2 -2
  23. package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +2 -0
  24. package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +33 -0
  25. package/types/src/components/search-bar/FuSearchBar.vue.d.ts +2 -0
  26. package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +12 -0
  27. package/types/src/components/search-bar/FuSearchContions.vue.d.ts +12 -0
  28. package/types/src/components/search-bar/complex-components/FuComplexDate.vue.d.ts +36 -0
  29. package/types/src/components/search-bar/complex-components/FuComplexDateTime.vue.d.ts +36 -0
  30. package/types/src/components/search-bar/complex-components/FuComplexInput.vue.d.ts +26 -0
  31. package/types/src/components/search-bar/complex-components/FuComplexSelect.vue.d.ts +50 -0
  32. package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
  33. package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
  34. package/types/src/components/search-bar/index.d.ts +0 -0
  35. package/types/src/components/search-bar/types.d.ts +17 -0
@@ -0,0 +1,50 @@
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
+ }
@@ -0,0 +1,52 @@
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;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,54 @@
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;
@@ -0,0 +1,150 @@
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,2 +1,2 @@
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<{}>>, {}>;
1
+ declare var _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
2
  export default _default;
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  type: (StringConstructor | NumberConstructor)[];
13
13
  default: string;
14
14
  };
15
+ showEmpty: BooleanConstructor;
15
16
  }, {
16
17
  open: () => void;
17
18
  setConditions: (conditionObj: any) => void;
@@ -29,11 +30,13 @@ declare const _default: import("vue").DefineComponent<{
29
30
  type: (StringConstructor | NumberConstructor)[];
30
31
  default: string;
31
32
  };
33
+ showEmpty: BooleanConstructor;
32
34
  }>> & {
33
35
  onFilter?: ((...args: any[]) => any) | undefined;
34
36
  }, {
35
37
  components: any;
36
38
  count: number;
37
39
  drawerWidth: string | number;
40
+ showEmpty: boolean;
38
41
  }>;
39
42
  export default _default;
@@ -6,8 +6,13 @@ declare const _default: import("vue").DefineComponent<{
6
6
  resultCount: NumberConstructor;
7
7
  quickPlaceholder: StringConstructor;
8
8
  components: ArrayConstructor;
9
+ showEmpty: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
9
13
  }, {
10
14
  setConditions: (conditionObj: any) => void;
15
+ open: () => void;
11
16
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "exec"[], "exec", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
17
  size: {
13
18
  type: StringConstructor;
@@ -16,7 +21,13 @@ declare const _default: import("vue").DefineComponent<{
16
21
  resultCount: NumberConstructor;
17
22
  quickPlaceholder: StringConstructor;
18
23
  components: ArrayConstructor;
24
+ showEmpty: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
19
28
  }>> & {
20
29
  onExec?: ((...args: any[]) => any) | undefined;
21
- }, {}>;
30
+ }, {
31
+ showEmpty: boolean;
32
+ }>;
22
33
  export default _default;
@@ -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 FuSearchInput from "./FuSearchInput.vue";
2
- export default FuSearchInput;
1
+ import FuFilterBar from "./FuFilterBar.vue";
2
+ export default FuFilterBar;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,33 @@
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, {
13
+ "update:modelValue": (value: string) => void;
14
+ } & {
15
+ change: (value: string, event: Event) => void;
16
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ size: {
18
+ type: StringConstructor;
19
+ validator: (val: string) => val is string;
20
+ };
21
+ modelValue: StringConstructor;
22
+ placeholder: StringConstructor;
23
+ useIcon: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }>> & {
28
+ onChange?: ((value: string, event: Event) => any) | undefined;
29
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
30
+ }, {
31
+ useIcon: boolean;
32
+ }>;
33
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ namespace props {
4
+ namespace size {
5
+ export const type: StringConstructor;
6
+ export { validateSize as validator };
7
+ }
8
+ const tooltip: StringConstructor;
9
+ }
10
+ }
11
+ export default _default;
12
+ import { validateSize } from "@/tools/size";
@@ -0,0 +1,12 @@
1
+ declare namespace _default {
2
+ const name: string;
3
+ const mixins: any[];
4
+ namespace props {
5
+ const conditions: ArrayConstructor;
6
+ }
7
+ namespace methods {
8
+ function remove(index: any): void;
9
+ function remove(index: any): void;
10
+ }
11
+ }
12
+ 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;
@@ -0,0 +1,6 @@
1
+ declare namespace _default {
2
+ const props: any;
3
+ const methods: any;
4
+ const computed: any;
5
+ }
6
+ 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
+ }