@farris/ui-vue 1.3.3 → 1.3.5

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 (73) hide show
  1. package/components/binding-selector/index.esm.js +15 -15
  2. package/components/binding-selector/index.umd.cjs +1 -1
  3. package/components/condition/index.esm.js +108 -107
  4. package/components/condition/index.umd.cjs +1 -1
  5. package/components/data-grid/index.esm.js +4532 -4268
  6. package/components/data-grid/index.umd.cjs +1 -1
  7. package/components/data-view/index.esm.js +2709 -2690
  8. package/components/data-view/index.umd.cjs +1 -1
  9. package/components/designer-canvas/index.esm.js +4795 -4375
  10. package/components/designer-canvas/index.umd.cjs +1 -1
  11. package/components/dynamic-form/index.esm.js +601 -593
  12. package/components/dynamic-form/index.umd.cjs +1 -1
  13. package/components/event-parameter/index.css +1 -0
  14. package/components/event-parameter/index.esm.js +2685 -165
  15. package/components/event-parameter/index.umd.cjs +1 -1
  16. package/components/events-editor/index.css +1 -1
  17. package/components/events-editor/index.esm.js +594 -575
  18. package/components/events-editor/index.umd.cjs +1 -1
  19. package/components/external-container/index.esm.js +772 -772
  20. package/components/external-container/index.umd.cjs +1 -1
  21. package/components/field-selector/index.esm.js +2921 -2902
  22. package/components/field-selector/index.umd.cjs +1 -1
  23. package/components/filter-bar/index.css +1 -1
  24. package/components/filter-bar/index.esm.js +4137 -4050
  25. package/components/filter-bar/index.umd.cjs +1 -1
  26. package/components/flow-canvas/index.esm.js +4569 -4149
  27. package/components/flow-canvas/index.umd.cjs +1 -1
  28. package/components/list-view/index.esm.js +936 -936
  29. package/components/list-view/index.umd.cjs +1 -1
  30. package/components/lookup/index.esm.js +5226 -4962
  31. package/components/lookup/index.umd.cjs +1 -1
  32. package/components/mapping-editor/index.esm.js +4648 -4384
  33. package/components/mapping-editor/index.umd.cjs +1 -1
  34. package/components/property-panel/index.css +1 -1
  35. package/components/query-solution/index.css +1 -1
  36. package/components/query-solution/index.esm.js +6128 -5879
  37. package/components/query-solution/index.umd.cjs +6 -6
  38. package/components/radio-group/index.esm.js +6 -6
  39. package/components/radio-group/index.umd.cjs +1 -1
  40. package/components/schema-selector/index.esm.js +975 -973
  41. package/components/schema-selector/index.umd.cjs +2 -2
  42. package/components/section/index.esm.js +2107 -417
  43. package/components/section/index.umd.cjs +1 -1
  44. package/components/tabs/index.esm.js +577 -575
  45. package/components/tabs/index.umd.cjs +1 -1
  46. package/components/textarea/index.esm.js +84 -79
  47. package/components/textarea/index.umd.cjs +1 -1
  48. package/components/tree-grid/index.esm.js +3307 -3288
  49. package/components/tree-grid/index.umd.cjs +1 -1
  50. package/components/tree-view/index.esm.js +1537 -1533
  51. package/components/tree-view/index.umd.cjs +1 -1
  52. package/farris.all.esm.js +24890 -24173
  53. package/farris.all.umd.cjs +13 -13
  54. package/index.css +1 -1
  55. package/package.json +1 -1
  56. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  57. package/types/data-grid/src/components/data/data-grid-area.component.d.ts +8 -0
  58. package/types/data-grid/src/components/data/data-grid-area.props.d.ts +3 -0
  59. package/types/data-view/composition/types.d.ts +1 -0
  60. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +1 -2
  61. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +14 -3
  62. package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
  63. package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
  64. package/types/event-parameter/src/event-parameter.props.d.ts +4 -4
  65. package/types/events-editor/src/composition/types.d.ts +1 -1
  66. package/types/query-solution/src/composition/types.d.ts +55 -0
  67. package/types/query-solution/src/composition/use-condition.d.ts +19 -0
  68. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +3 -2
  69. package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
  70. package/types/section/index.d.ts +15 -0
  71. package/types/section/src/designer/section-header.design.component.d.ts +4 -0
  72. package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
  73. package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/ui-vue",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Farris Vue, a Farris Design based Vue3 component library.",
6
6
  "keywords": [
@@ -2,7 +2,7 @@ import { ConditionValue } from './types';
2
2
  import { EditorType } from '../../../../dynamic-form';
3
3
  export declare class InputGroupValue implements ConditionValue {
4
4
  editorType: EditorType;
5
- value: any[];
5
+ value: any;
6
6
  valueType: string;
7
7
  displayText: string;
8
8
  valueField: string;
@@ -0,0 +1,8 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ [x: string]: any;
3
+ }, () => any[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
4
+ [x: string]: any;
5
+ }> & Readonly<{}>, {
6
+ [x: string]: any;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ExtractPropTypes } from "vue";
2
+ export declare const dataGridAreaProps: Record<string, any>;
3
+ export type DataGridAreaProps = ExtractPropTypes<typeof dataGridAreaProps>;
@@ -615,6 +615,7 @@ export interface UseFitColumn {
615
615
  calculateColumnHeaders: (context: Ref<ColumnContext>) => void;
616
616
  calculateColumnsSize: () => void;
617
617
  calculateColumnsWidth: (context: Ref<ColumnContext>) => void;
618
+ cellPositionMap: Ref<any>;
618
619
  }
619
620
  export interface UseGroupColumn {
620
621
  getGridHeaderCells: (columns: DataColumn[]) => Map<string, HeaderCell>;
@@ -1,3 +1,2 @@
1
- import { DesignerItemContext } from "@/components/designer-canvas";
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
- resolveEntityDataSource: () => any[];
5
- resolveBindingSourceContext: () => ComponentBindingSourceContext;
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 "@/components/combo-list";
2
- import { ComboTreeProps } from "@/components/combo-tree";
3
- import { EditorType as DynamicFormEditorType } from "@/components/dynamic-form";
4
- import { InputGroupProps } from "@/components/input-group";
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' | 'date-time' | 'single-date-time' | 'month' | 'single-year' | 'radio-group' | 'input-group';
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;
@@ -0,0 +1,4 @@
1
+ export declare const queryEnumDefaultConverter: {
2
+ convertFrom: (schema: Record<string, any>, propertyKey: string) => any;
3
+ convertTo: (schema: Record<string, any>, propertyKey: string, propertyValue: any) => void;
4
+ };
@@ -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>;
@@ -0,0 +1,3 @@
1
+ import { DesignerItemContext } from '../../../designer-canvas/src/types';
2
+ import { SectionProps } from '../section.props';
3
+ export default function (props: SectionProps, designerItemContext: DesignerItemContext): any;