@farris/ui-vue 1.3.3 → 1.3.4
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/components/binding-selector/index.esm.js +15 -15
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +107 -106
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +1078 -1077
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1272 -1272
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +4355 -3954
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +601 -593
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +161 -117
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +594 -575
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +771 -771
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1268 -1268
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +3768 -3700
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +4274 -3873
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +935 -935
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +1672 -1671
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1107 -1106
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.css +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +5721 -5490
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/schema-selector/index.esm.js +974 -972
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +2107 -417
- package/components/section/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +577 -575
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +84 -79
- package/components/textarea/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +1554 -1554
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1269 -1269
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +17526 -17071
- package/farris.all.umd.cjs +13 -13
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +1 -2
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +14 -3
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
- package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +4 -4
- package/types/events-editor/src/composition/types.d.ts +1 -1
- package/types/query-solution/src/composition/types.d.ts +55 -0
- package/types/query-solution/src/composition/use-condition.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +3 -2
- package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
- package/types/section/index.d.ts +15 -0
- package/types/section/src/designer/section-header.design.component.d.ts +4 -0
- package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
- package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { DesignerItemContext } from
|
|
2
|
-
import { DesignerHostService, UseDesignerRules } from "@/components/designer-canvas/src/composition/types";
|
|
1
|
+
import { DesignerItemContext, DesignerHostService, UseDesignerRules } from '../../../designer-canvas';
|
|
3
2
|
export declare function useDesignerRulesForFormGroup(designItemContext: DesignerItemContext, designerHostService?: DesignerHostService): UseDesignerRules;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import { ComponentBindingSourceContext } from "../../designer-canvas/src/composition/types";
|
|
2
1
|
import { EntityBindingSelectorProps } from "../entity-binding-selector.props";
|
|
3
2
|
export declare function useEntityTree(props: EntityBindingSelectorProps): {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
entityTreeGridRef: import("vue").Ref<any, any>;
|
|
4
|
+
entityDataSource: import("vue").Ref<any, any>;
|
|
5
|
+
resolveEntityDataSource: () => void;
|
|
6
6
|
entityBindToMap: Map<string, string>;
|
|
7
|
+
checkAndGetSelectedEntity: () => any;
|
|
8
|
+
entityColumns: import("vue").Ref<{
|
|
9
|
+
field: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}[], {
|
|
12
|
+
field: string;
|
|
13
|
+
title: string;
|
|
14
|
+
}[] | {
|
|
15
|
+
field: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}[]>;
|
|
7
18
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FormSchemaEntity } from "../../common/entity/entity-schema";
|
|
2
|
+
import { EntityBindingSelectorProps } from "../entity-binding-selector.props";
|
|
3
|
+
import { RowOptions } from "../../data-view";
|
|
4
|
+
export declare function useFieldTree(props: EntityBindingSelectorProps): {
|
|
5
|
+
fieldTreeGridRef: import("vue").Ref<any, any>;
|
|
6
|
+
resolveFieldDataSource: (bindingEntity: FormSchemaEntity) => void;
|
|
7
|
+
occupiedFieldMap: Map<string, boolean>;
|
|
8
|
+
fieldDataSource: import("vue").Ref<any, any>;
|
|
9
|
+
fieldTreeRowOption: Partial<RowOptions>;
|
|
10
|
+
fieldColumns: import("vue").Ref<{
|
|
11
|
+
field: string;
|
|
12
|
+
title: string;
|
|
13
|
+
}[], {
|
|
14
|
+
field: string;
|
|
15
|
+
title: string;
|
|
16
|
+
}[] | {
|
|
17
|
+
field: string;
|
|
18
|
+
title: string;
|
|
19
|
+
}[]>;
|
|
20
|
+
fieldSelectionOption: {
|
|
21
|
+
enableSelectRow: boolean;
|
|
22
|
+
multiSelect: boolean;
|
|
23
|
+
multiSelectMode: string;
|
|
24
|
+
showCheckbox: boolean;
|
|
25
|
+
showSelectAll: boolean;
|
|
26
|
+
};
|
|
27
|
+
checkAndGetSelectedFields: () => any;
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventParameterProps } from "../event-parameter.props";
|
|
2
|
+
export declare function useGeneralEditor(props: EventParameterProps): {
|
|
3
|
+
tabs: import("vue").Reactive<({
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
treeConfigs: {
|
|
7
|
+
id: string;
|
|
8
|
+
columns: {
|
|
9
|
+
field: string;
|
|
10
|
+
}[];
|
|
11
|
+
data: any[];
|
|
12
|
+
onSelectNode: () => void;
|
|
13
|
+
componentRef: import("vue").Ref<any, any>;
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
treeConfigs: {
|
|
19
|
+
id: string;
|
|
20
|
+
data: any[];
|
|
21
|
+
columns?: undefined;
|
|
22
|
+
onSelectNode?: undefined;
|
|
23
|
+
componentRef?: undefined;
|
|
24
|
+
};
|
|
25
|
+
})[]>;
|
|
26
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComboListProps } from
|
|
2
|
-
import { ComboTreeProps } from
|
|
3
|
-
import { EditorType as DynamicFormEditorType } from
|
|
4
|
-
import { InputGroupProps } from
|
|
1
|
+
import { ComboListProps } from '../../combo-list';
|
|
2
|
+
import { ComboTreeProps } from '../../combo-tree';
|
|
3
|
+
import { EditorType as DynamicFormEditorType } from '../../dynamic-form';
|
|
4
|
+
import { InputGroupProps } from '../../input-group';
|
|
5
5
|
import { ExtractPropTypes } from "vue";
|
|
6
6
|
export interface EditorConfig {
|
|
7
7
|
type?: DynamicFormEditorType;
|
|
@@ -34,5 +34,5 @@ export interface UseMethods {
|
|
|
34
34
|
onClosed: (actionIndex: number) => void;
|
|
35
35
|
onCurrentCommandChanged: (currentCommand: any[], actionIndex: number, commandItemIndex: number) => void;
|
|
36
36
|
toggleSelectingMethod: (switchOption: SwitchOption) => void;
|
|
37
|
-
emitFinalState: () => void;
|
|
37
|
+
emitFinalState: (addNewFunctionState: any, event: any) => void;
|
|
38
38
|
}
|
|
@@ -16,10 +16,61 @@
|
|
|
16
16
|
import { QuerySolution } from '../query-solution';
|
|
17
17
|
import { JSX } from "vue/jsx-runtime";
|
|
18
18
|
import { AxiosResponse } from 'axios';
|
|
19
|
+
export declare enum ValueType {
|
|
20
|
+
/**
|
|
21
|
+
*值类型
|
|
22
|
+
*/
|
|
23
|
+
Value = 0,
|
|
24
|
+
/**
|
|
25
|
+
* 表达式
|
|
26
|
+
*/
|
|
27
|
+
Express = 1
|
|
28
|
+
}
|
|
29
|
+
export declare enum RelationType {
|
|
30
|
+
Empty = 0,
|
|
31
|
+
/**
|
|
32
|
+
* 与
|
|
33
|
+
*/
|
|
34
|
+
And = 1,
|
|
35
|
+
/**
|
|
36
|
+
* 或
|
|
37
|
+
*/
|
|
38
|
+
Or = 2
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 比较符
|
|
42
|
+
*/
|
|
43
|
+
export declare enum CompareType {
|
|
44
|
+
Equal = 0,
|
|
45
|
+
NotEqual = 1,
|
|
46
|
+
Greater = 2,
|
|
47
|
+
GreaterOrEqual = 3,
|
|
48
|
+
Less = 4,
|
|
49
|
+
LessOrEqual = 5,
|
|
50
|
+
Like = 6,
|
|
51
|
+
LikeStartWith = 7,
|
|
52
|
+
LikeEndWith = 8,
|
|
53
|
+
NotLike = 9,
|
|
54
|
+
NotLikeStartWith = 10,
|
|
55
|
+
NotLikeEndWith = 11,
|
|
56
|
+
Is = 12,
|
|
57
|
+
IsNot = 13,
|
|
58
|
+
In = 14,
|
|
59
|
+
NotIn = 15
|
|
60
|
+
}
|
|
19
61
|
export type TransferItme = {
|
|
20
62
|
id: string;
|
|
21
63
|
name: string;
|
|
22
64
|
};
|
|
65
|
+
export type QueryItem = {
|
|
66
|
+
FilterField: string;
|
|
67
|
+
Compare: CompareType;
|
|
68
|
+
Value: any;
|
|
69
|
+
Relation: RelationType;
|
|
70
|
+
Expresstype: ValueType;
|
|
71
|
+
Lbracket?: string;
|
|
72
|
+
Rbracket?: string;
|
|
73
|
+
};
|
|
23
74
|
export interface UseSolution {
|
|
24
75
|
/**
|
|
25
76
|
* 生成默认筛选方案
|
|
@@ -27,10 +78,14 @@ export interface UseSolution {
|
|
|
27
78
|
getDefaultSolution: () => QuerySolution;
|
|
28
79
|
loadAllSolution: () => void;
|
|
29
80
|
getGuid: () => string;
|
|
81
|
+
handleQuery: () => void;
|
|
30
82
|
}
|
|
31
83
|
export interface UseHeader {
|
|
32
84
|
renderHeader: () => JSX.Element;
|
|
33
85
|
}
|
|
86
|
+
export interface UseCondition {
|
|
87
|
+
getFilterConditions: (condition: any) => QueryItem[];
|
|
88
|
+
}
|
|
34
89
|
export interface UseHttp {
|
|
35
90
|
createSolution: (solution: any) => Promise<AxiosResponse<any, any>>;
|
|
36
91
|
loadSolution: () => Promise<AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { UseCondition } from './types';
|
|
17
|
+
import { SetupContext } from 'vue';
|
|
18
|
+
import { QuerySolutionProps } from '../query-solution.props';
|
|
19
|
+
export declare function useCondition(props: QuerySolutionProps, context: SetupContext): UseCondition;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Ref } from "vue";
|
|
17
17
|
import { TransFerItem } from '../query-solution-config.props';
|
|
18
18
|
import { JSX } from "vue/jsx-runtime";
|
|
19
|
-
export type ControlType = 'number-spinner' | 'number-range' | 'combo-list' | 'lookup' | 'combo-lookup' | 'date-range' | 'date-picker' | '
|
|
19
|
+
export type ControlType = 'number-spinner' | 'number-range' | 'combo-list' | 'lookup' | 'combo-lookup' | 'date-range' | 'date-picker' | 'radio-group' | 'input-group';
|
|
20
20
|
export interface UseTransfer {
|
|
21
21
|
selectPanels: Ref<TransFerItem[]>;
|
|
22
22
|
/**
|
|
@@ -61,6 +61,7 @@ export interface PropertyItem {
|
|
|
61
61
|
format?: string;
|
|
62
62
|
horizontal?: boolean;
|
|
63
63
|
showLabel?: boolean;
|
|
64
|
+
data?: Array<any>;
|
|
64
65
|
[prop: string]: any;
|
|
65
66
|
}
|
|
66
67
|
export interface PropertyConfig {
|
|
@@ -72,7 +73,7 @@ export interface PropertyConfig {
|
|
|
72
73
|
}
|
|
73
74
|
export interface UsePanel {
|
|
74
75
|
renderPanel: () => JSX.Element | null;
|
|
75
|
-
getExtendSchemaProerty: (controlType: ControlType) => Partial<PropertyItem>;
|
|
76
|
+
getExtendSchemaProerty: (controlType: ControlType, schemaField: any) => Partial<PropertyItem>;
|
|
76
77
|
}
|
|
77
78
|
export interface UseProperty {
|
|
78
79
|
getPropertyConfig: (propertyData: PropertyItem) => PropertyConfig;
|
package/types/section/index.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import Section from './src/section.component';
|
|
2
17
|
export * from './src/section.props';
|
|
3
18
|
export { Section };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DesignerItemContext } from '../../../designer-canvas/src/types';
|
|
2
|
+
import { SetupContext, Ref } from 'vue';
|
|
3
|
+
import { SectionProps } from '../section.props';
|
|
4
|
+
export default function (props: SectionProps, context: SetupContext, expandStatus: Ref<boolean>, sectionRef: Ref<any>, sectionParentElementRef: Ref<any>, maxStatus: Ref<boolean>, designItemContext: DesignerItemContext): () => any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ExtractPropTypes } from 'vue';
|
|
17
|
+
export declare const sectionToolbarItemProps: Record<string, any>;
|
|
18
|
+
export type SectionToolbarItemProps = ExtractPropTypes<typeof sectionToolbarItemProps>;
|
|
19
|
+
export declare const sectionToolbarItemResolver: (schemaValue?: Record<string, any>) => Record<string, any>;
|