@farris/ui-vue 1.3.0 → 1.3.3
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/accordion/index.esm.js +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +454 -398
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +479 -476
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +255 -252
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +652 -567
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +518 -521
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +659 -553
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +162 -155
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +866 -747
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +371 -998
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1174 -1280
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +340 -991
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +6066 -5847
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3400 -3486
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2328 -2446
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9551 -1200
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +234 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1996 -2630
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +138 -123
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +548 -586
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2871 -3736
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3380 -3645
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10543 -3207
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9775 -1312
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +442 -438
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +587 -807
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +415 -381
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +361 -1024
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2265 -2371
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6425 -6257
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +6164 -5946
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +524 -1474
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +547 -502
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +646 -574
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1181 -2028
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1185 -2027
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +442 -1368
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +238 -235
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1635 -1713
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +791 -716
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12203 -5274
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1873 -520
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +299 -300
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +176 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +715 -659
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1032 -1883
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4767 -5693
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +169 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +490 -1167
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +154 -151
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +575 -1204
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +279 -276
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +478 -428
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2591 -3326
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +442 -439
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +309 -307
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +500 -430
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1391 -1341
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +574 -575
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3422 -3536
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2661 -2764
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +675 -674
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +300 -297
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +454 -1089
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +709 -706
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +54780 -52757
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +9 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +5 -4
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +9 -11
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +3 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -41
- package/types/designer-canvas/src/types.d.ts +10 -21
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/designer/response-form-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +6 -1
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +3 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +43 -35
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +12 -0
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
|
+
import { EditorConfig, EditorMap } from "../event-parameter.props";
|
|
3
|
+
export interface UseBaseEditor {
|
|
4
|
+
/**
|
|
5
|
+
* 参数组件值变化后的响应函数
|
|
6
|
+
* @param $event 鼠标事件对象
|
|
7
|
+
* @returns 空
|
|
8
|
+
*/
|
|
9
|
+
onValueChange: (selectItems: any[], value: any) => void;
|
|
10
|
+
/**
|
|
11
|
+
* 构造属性
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
createEditorProps: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface UseEditorProxy {
|
|
17
|
+
/**
|
|
18
|
+
* 获取编辑器类型
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
getEditorType: () => string;
|
|
22
|
+
/**
|
|
23
|
+
* 获取编辑器配置
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
getEditorConfig: () => EditorConfig;
|
|
27
|
+
/**
|
|
28
|
+
* 获取编辑器映射
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
getEditorMap: () => EditorMap;
|
|
32
|
+
}
|
|
33
|
+
export interface UseEditorInput extends UseBaseEditor {
|
|
34
|
+
shouldRenderAppendButton: ComputedRef<boolean>;
|
|
35
|
+
}
|
|
36
|
+
export interface UseParameterEditor {
|
|
37
|
+
/**
|
|
38
|
+
* 组件结构数据
|
|
39
|
+
*/
|
|
40
|
+
tabs: Ref<any[]>;
|
|
41
|
+
/**
|
|
42
|
+
* 重组表单组件数据
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
assembleOutline: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* 重组字段数据
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
assembleSchemaFieldsByComponent: () => void;
|
|
51
|
+
/**
|
|
52
|
+
* 重组变量数据
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
assembleStateVariables: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* 处理表单组件的返回值
|
|
58
|
+
* @param data
|
|
59
|
+
* @param textareaRef
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
processFromOutlineData: (data: any, textareaRef: HTMLTextAreaElement, result?: string) => string;
|
|
63
|
+
/**
|
|
64
|
+
* 处理字段的返回值
|
|
65
|
+
* @param data
|
|
66
|
+
* @param textareaRef
|
|
67
|
+
* @returns
|
|
68
|
+
*/
|
|
69
|
+
processFromFieldData: (data: any, textareaRef: HTMLTextAreaElement) => string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* 处理变量的返回值
|
|
72
|
+
* @param data
|
|
73
|
+
* @param textareaRef
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
processFromVariableData: (data: any, textareaRef: HTMLTextAreaElement) => string;
|
|
77
|
+
}
|
|
@@ -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,34 @@
|
|
|
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";
|
|
5
|
+
import { ExtractPropTypes } from "vue";
|
|
6
|
+
export interface EditorConfig {
|
|
7
|
+
type?: DynamicFormEditorType;
|
|
8
|
+
componentProps?: Partial<ComboListProps | InputGroupProps | ComboTreeProps>;
|
|
9
|
+
context?: any;
|
|
10
|
+
}
|
|
11
|
+
export interface EditorMap {
|
|
12
|
+
[key: string]: EditorConfig;
|
|
13
|
+
}
|
|
14
|
+
export declare enum EditorType {
|
|
15
|
+
Default = "Default",
|
|
16
|
+
Textbox = "Textbox",
|
|
17
|
+
Numberbox = "Numberbox",
|
|
18
|
+
Combolist = "Combolist",
|
|
19
|
+
Select = "Select",
|
|
20
|
+
Checkbox = "Checkbox",
|
|
21
|
+
Switch = "Switch",
|
|
22
|
+
Tags = "Tags",
|
|
23
|
+
SortEditor = "SortEditor",
|
|
24
|
+
FilterEditor = "FilterEditor",
|
|
25
|
+
DataEditor = "DataEditor",
|
|
26
|
+
MenuIdSelector = "MenuIdSelector",
|
|
27
|
+
AppIdSelector = "AppIdSelector",
|
|
28
|
+
ComboLookup = "ComboLookup",
|
|
29
|
+
ConfigurationParameterEditor = "ConfigurationParameterEditor",
|
|
30
|
+
FieldMappingEditor = "FieldMappingEditor"
|
|
31
|
+
}
|
|
32
|
+
export declare const editorMap: EditorMap;
|
|
33
|
+
export declare const eventParameterProps: Record<string, any>;
|
|
34
|
+
export type EventParameterProps = ExtractPropTypes<typeof eventParameterProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "submit")[], "close" | "submit", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
2
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
3
2
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
4
4
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UseDesignerRules } from "../../../designer-canvas/src/composition/types";
|
|
2
|
-
import {
|
|
3
|
-
export declare function useDesignerRules(
|
|
1
|
+
import { DesignerHostService, UseDesignerRules } from "../../../designer-canvas/src/composition/types";
|
|
2
|
+
import { DesignerItemContext } from "../../../designer-canvas/src/types";
|
|
3
|
+
export declare function useDesignerRules(designItemContext: DesignerItemContext, designerHostService?: DesignerHostService): UseDesignerRules;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
[x: string]: any;
|
|
3
|
-
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
+
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "selected"[], "selected", import("vue").PublicProps, Readonly<{
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
}> & Readonly<{
|
|
6
6
|
onSelected?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
onBindingTypeChanged?: ((...args: any[]) => any) | undefined;
|
|
8
7
|
}>, {
|
|
9
8
|
[x: string]: any;
|
|
10
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,15 +3,6 @@ export interface FieldSelectorService {
|
|
|
3
3
|
getData(params: any): Promise<any>;
|
|
4
4
|
}
|
|
5
5
|
export declare const FieldSelectorRepositoryToken: unique symbol;
|
|
6
|
-
export interface BindingTypeOption {
|
|
7
|
-
enable: boolean;
|
|
8
|
-
data: Array<{
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
}>;
|
|
11
|
-
value: string;
|
|
12
|
-
textField: string;
|
|
13
|
-
valueField: string;
|
|
14
|
-
}
|
|
15
6
|
export declare const fieldSelectorProps: Record<string, any>;
|
|
16
7
|
export type FieldSelectorProps = ExtractPropTypes<typeof fieldSelectorProps>;
|
|
17
8
|
export declare const propsResolver: (schemaValue?: Record<string, any>) => Record<string, any>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { UseDesignerRules } from
|
|
2
|
-
import { DesignerItemContext } from "../../../designer-canvas/src/types";
|
|
1
|
+
import { UseDesignerRules, DesignerItemContext } from '../../../designer-canvas';
|
|
3
2
|
export declare function useInputGroupDesignerRules(designItemContext: DesignerItemContext, designerHostService: any): UseDesignerRules;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UseDesignerRules } from "../../../designer-canvas/src/composition/types";
|
|
2
|
-
import {
|
|
3
|
-
export declare function useDesignerRules(
|
|
1
|
+
import { DesignerHostService, UseDesignerRules } from "../../../designer-canvas/src/composition/types";
|
|
2
|
+
import { DesignerItemContext } from "../../../designer-canvas/src/types";
|
|
3
|
+
export declare function useDesignerRules(designItemContext: DesignerItemContext, designerHostService?: DesignerHostService): UseDesignerRules;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DesignerHostService, UseDesignerRules } from "../../../designer-canvas/src/composition/types";
|
|
2
|
+
import { DesignerItemContext } from "../../../designer-canvas/src/types";
|
|
3
|
+
export declare function useDesignerRules(designItemContext: DesignerItemContext, designerHostService?: DesignerHostService): UseDesignerRules;
|
|
@@ -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
|
declare const _default: import("vue").DefineComponent<{
|
|
2
17
|
[x: string]: any;
|
|
3
18
|
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
@@ -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
|
declare const _default: import("vue").DefineComponent<{
|
|
2
17
|
[x: string]: any;
|
|
3
18
|
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
@@ -6,8 +6,8 @@ export interface LookupUserData {
|
|
|
6
6
|
size?: Record<string, any>;
|
|
7
7
|
}
|
|
8
8
|
export interface UserDataState {
|
|
9
|
-
key
|
|
10
|
-
data
|
|
9
|
+
key: string;
|
|
10
|
+
data: LookupUserData;
|
|
11
11
|
favoriteItems?: any[];
|
|
12
12
|
}
|
|
13
13
|
export declare const LOOKUP_USER_DATA_SERVICE = "F_LOOKUP_USER_DATA_SERVICE";
|
|
@@ -130,10 +130,8 @@ export declare class LookupPropertyConfig extends InputBaseProperty {
|
|
|
130
130
|
type: string;
|
|
131
131
|
editor: {
|
|
132
132
|
type: string;
|
|
133
|
-
bindingType: {
|
|
134
|
-
enable: boolean;
|
|
135
|
-
};
|
|
136
133
|
textField: string;
|
|
134
|
+
idField: string;
|
|
137
135
|
editorParams: {
|
|
138
136
|
propertyData: any;
|
|
139
137
|
formBasicInfo: any;
|
|
@@ -159,10 +157,8 @@ export declare class LookupPropertyConfig extends InputBaseProperty {
|
|
|
159
157
|
};
|
|
160
158
|
editor: {
|
|
161
159
|
type: string;
|
|
162
|
-
bindingType: {
|
|
163
|
-
enable: boolean;
|
|
164
|
-
};
|
|
165
160
|
textField: string;
|
|
161
|
+
idField: string;
|
|
166
162
|
editorParams: {
|
|
167
163
|
propertyData: any;
|
|
168
164
|
formBasicInfo: any;
|
|
@@ -7,7 +7,8 @@ export default class ModalService {
|
|
|
7
7
|
private modalRefs;
|
|
8
8
|
private isUseEscCloseModal;
|
|
9
9
|
private activeModalInstance;
|
|
10
|
-
|
|
10
|
+
private app;
|
|
11
|
+
constructor(currentApp: App);
|
|
11
12
|
getCurrentModal(): any;
|
|
12
13
|
static show(options: ModalOptions): App<any>;
|
|
13
14
|
open(options: ModalOptions): ModalFunctions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
[x: string]: any;
|
|
3
|
-
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
|
3
|
+
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<{
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
}> & Readonly<{
|
|
6
6
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
[x: string]: any;
|
|
3
|
-
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
3
|
+
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "prePaginationClick" | "nextPaginationClick")[], "click" | "prePaginationClick" | "nextPaginationClick", import("vue").PublicProps, Readonly<{
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
}> & Readonly<{
|
|
6
6
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ComputedRef, Ref } from 'vue';
|
|
17
|
-
export default function (currentPage: Ref<number>, lastPage: ComputedRef<number
|
|
16
|
+
import { ComputedRef, Ref, SetupContext } from 'vue';
|
|
17
|
+
export default function (currentPage: Ref<number>, lastPage: ComputedRef<number>, currentPageSize: Ref<number>, context: SetupContext): {
|
|
18
18
|
renderGotoButton: () => any;
|
|
19
19
|
};
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ComputedRef, Ref } from 'vue';
|
|
17
|
-
export default function (currentPage: Ref<number>, isLastPage: Ref<boolean>, lastPage: ComputedRef<number
|
|
16
|
+
import { ComputedRef, Ref, SetupContext } from 'vue';
|
|
17
|
+
export default function (currentPage: Ref<number>, isLastPage: Ref<boolean>, lastPage: ComputedRef<number>, currentPageSize: Ref<number>, context: SetupContext): {
|
|
18
18
|
renderLastPage: () => any;
|
|
19
19
|
renderNextPage: () => any;
|
|
20
20
|
};
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Ref } from 'vue';
|
|
17
|
-
export default function (currentPage: Ref<number>, isFirstPage: Ref<boolean>, shouldShowFirstPageLink: Ref<boolean
|
|
16
|
+
import { Ref, SetupContext } from 'vue';
|
|
17
|
+
export default function (currentPage: Ref<number>, isFirstPage: Ref<boolean>, shouldShowFirstPageLink: Ref<boolean>, currentPageSize: Ref<number>, context: SetupContext): {
|
|
18
18
|
renderFirstPage: () => any;
|
|
19
19
|
renderPreviousPage: () => any;
|
|
20
20
|
};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Ref } from 'vue';
|
|
17
|
-
export default function (currentPage: Ref<number>, currentPageSize: Ref<number>, pageList: Ref<number[]>, totalItems: Ref<number
|
|
16
|
+
import { Ref, SetupContext } from 'vue';
|
|
17
|
+
export default function (currentPage: Ref<number>, currentPageSize: Ref<number>, pageList: Ref<number[]>, totalItems: Ref<number>, context: SetupContext): {
|
|
18
18
|
renderPageList: () => any;
|
|
19
19
|
};
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Ref } from 'vue';
|
|
16
|
+
import { Ref, SetupContext } from 'vue';
|
|
17
17
|
import { PageInfo } from '../../composition/types';
|
|
18
|
-
export default function (currentPage: Ref<number>, pages: Ref<PageInfo[]
|
|
18
|
+
export default function (currentPage: Ref<number>, pages: Ref<PageInfo[]>, currentPageSize: Ref<number>, context: SetupContext): {
|
|
19
19
|
renderPageNumbers: () => any[];
|
|
20
20
|
};
|
|
@@ -15,10 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { App } from 'vue';
|
|
17
17
|
import FPropertyPanel from './src/property-panel.component';
|
|
18
|
+
import { BaseControlProperty } from './src/composition/entity/base-property';
|
|
19
|
+
import { SchemaDOMMapping } from './src/composition/entity/schema-dom-mapping';
|
|
18
20
|
export * from './src/composition/props/property-panel-item.props';
|
|
19
21
|
export * from './src/composition/props/property-panel.props';
|
|
20
22
|
export * from './src/composition/type';
|
|
21
|
-
export { FPropertyPanel };
|
|
23
|
+
export { FPropertyPanel, BaseControlProperty, SchemaDOMMapping };
|
|
22
24
|
declare const _default: {
|
|
23
25
|
install(app: App): void;
|
|
24
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseControlProperty } from "./base-property";
|
|
2
2
|
import { DesignerComponentInstance } from "../../../../designer-canvas/src/types";
|
|
3
|
-
import { UseResponseLayoutEditorSetting } from '../../../../response-layout-editor
|
|
3
|
+
import { UseResponseLayoutEditorSetting } from '../../../../response-layout-editor';
|
|
4
4
|
export declare class InputBaseProperty extends BaseControlProperty {
|
|
5
5
|
responseLayoutEditorFunction: UseResponseLayoutEditorSetting;
|
|
6
6
|
constructor(componentId: string, designerHostService: any);
|
|
@@ -56,19 +56,6 @@ export interface FormUnifiedColumnLayout {
|
|
|
56
56
|
uniqueColClassInLG: number;
|
|
57
57
|
uniqueColClassInEL: number;
|
|
58
58
|
}
|
|
59
|
-
/**
|
|
60
|
-
* dom Json ViewModel 节点中states实体
|
|
61
|
-
*/
|
|
62
|
-
export declare class FormVariable {
|
|
63
|
-
id: string;
|
|
64
|
-
code: string;
|
|
65
|
-
name: string;
|
|
66
|
-
value?: any;
|
|
67
|
-
type: string;
|
|
68
|
-
category: string;
|
|
69
|
-
fields?: any[];
|
|
70
|
-
defaultValue?: any;
|
|
71
|
-
}
|
|
72
59
|
export interface IPropertyConfig {
|
|
73
60
|
getPropertyConfig(propertyData: any, eventsEditorUtils: any): any;
|
|
74
61
|
}
|
|
@@ -1,8 +1,39 @@
|
|
|
1
|
-
|
|
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
|
+
*/
|
|
2
16
|
import { QuerySolution } from '../query-solution';
|
|
3
|
-
|
|
17
|
+
import { JSX } from "vue/jsx-runtime";
|
|
18
|
+
import { AxiosResponse } from 'axios';
|
|
19
|
+
export type TransferItme = {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
export interface UseSolution {
|
|
4
24
|
/**
|
|
5
|
-
*
|
|
25
|
+
* 生成默认筛选方案
|
|
6
26
|
*/
|
|
7
|
-
|
|
27
|
+
getDefaultSolution: () => QuerySolution;
|
|
28
|
+
loadAllSolution: () => void;
|
|
29
|
+
getGuid: () => string;
|
|
30
|
+
}
|
|
31
|
+
export interface UseHeader {
|
|
32
|
+
renderHeader: () => JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
export interface UseHttp {
|
|
35
|
+
createSolution: (solution: any) => Promise<AxiosResponse<any, any>>;
|
|
36
|
+
loadSolution: () => Promise<AxiosResponse<any, any>>;
|
|
37
|
+
updateSolution: (solution: any) => Promise<AxiosResponse<any, any>>;
|
|
38
|
+
getAuth: (type: string) => Promise<AxiosResponse<any, any>>;
|
|
8
39
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { UseHeader, UseHttp, UseSolution } from './types';
|
|
17
|
+
import { Ref, SetupContext } from 'vue';
|
|
18
|
+
import { QuerySolutionProps } from '../query-solution.props';
|
|
19
|
+
import { QuerySolution } from '../query-solution';
|
|
20
|
+
import { FieldConfig } from '../../../condition';
|
|
21
|
+
export declare function useHeader(props: QuerySolutionProps, context: SetupContext, useHttpComposition: UseHttp, useSolutionComposition: UseSolution, solutions: Ref<QuerySolution[]>, currentSolution: Ref<QuerySolution | null>, fields: Ref<FieldConfig[]>): UseHeader;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { UseHttp } from './types';
|
|
17
17
|
import { SetupContext } from 'vue';
|
|
18
18
|
import { QuerySolutionProps } from '../query-solution.props';
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function useHttp(props: QuerySolutionProps, context: SetupContext): UseHttp;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { UseHttp, UseSolution } from './types';
|
|
17
|
+
import { Ref, SetupContext } from 'vue';
|
|
18
|
+
import { QuerySolutionProps } from '../query-solution.props';
|
|
19
|
+
import { QuerySolution } from '../query-solution';
|
|
20
|
+
export declare function useSolution(props: QuerySolutionProps, context: SetupContext, useHttpComposition: UseHttp, solutions: Ref<QuerySolution[]>, currentSolution: Ref<QuerySolution | null>): UseSolution;
|
|
@@ -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 = '
|
|
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';
|
|
20
20
|
export interface UseTransfer {
|
|
21
21
|
selectPanels: Ref<TransFerItem[]>;
|
|
22
22
|
/**
|
|
@@ -27,45 +27,53 @@ export interface UseTransfer {
|
|
|
27
27
|
confirm: () => void;
|
|
28
28
|
cancel: () => void;
|
|
29
29
|
}
|
|
30
|
-
export interface PropertyConfig {
|
|
31
|
-
description: string;
|
|
32
|
-
title: string;
|
|
33
|
-
type: string;
|
|
34
|
-
readonly?: boolean;
|
|
35
|
-
categories: any;
|
|
36
|
-
}
|
|
37
30
|
export interface PropertyItem {
|
|
38
31
|
id: string;
|
|
39
32
|
code: string;
|
|
40
33
|
labelCode: string;
|
|
41
34
|
name: string;
|
|
42
|
-
isExtend
|
|
35
|
+
isExtend?: string;
|
|
43
36
|
controlType: ControlType;
|
|
44
|
-
|
|
45
|
-
require
|
|
46
|
-
precision
|
|
47
|
-
maxValue
|
|
48
|
-
minValue
|
|
49
|
-
uri
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
37
|
+
class?: string;
|
|
38
|
+
require?: boolean;
|
|
39
|
+
precision?: number;
|
|
40
|
+
maxValue?: number;
|
|
41
|
+
minValue?: number;
|
|
42
|
+
uri?: string;
|
|
43
|
+
displayName?: string;
|
|
44
|
+
multiSelect?: boolean;
|
|
45
|
+
valueType?: Array<any>;
|
|
46
|
+
enumValue?: string;
|
|
47
|
+
helpId?: string;
|
|
48
|
+
textField?: string;
|
|
49
|
+
valueField?: string;
|
|
50
|
+
idField?: string;
|
|
51
|
+
mapFields?: string;
|
|
52
|
+
panelWidth?: number;
|
|
53
|
+
panelHeight?: number;
|
|
54
|
+
editable?: boolean;
|
|
55
|
+
nosearch?: boolean;
|
|
56
|
+
displayFields?: string;
|
|
57
|
+
clearFields?: string;
|
|
58
|
+
dialogTitle?: string;
|
|
59
|
+
enableMultiFieldSearch?: boolean;
|
|
60
|
+
returnForma?: string;
|
|
61
|
+
format?: string;
|
|
62
|
+
horizontal?: boolean;
|
|
63
|
+
showLabel?: boolean;
|
|
70
64
|
[prop: string]: any;
|
|
71
65
|
}
|
|
66
|
+
export interface PropertyConfig {
|
|
67
|
+
description: string;
|
|
68
|
+
title: string;
|
|
69
|
+
type: string;
|
|
70
|
+
readonly?: boolean;
|
|
71
|
+
categories: any;
|
|
72
|
+
}
|
|
73
|
+
export interface UsePanel {
|
|
74
|
+
renderPanel: () => JSX.Element | null;
|
|
75
|
+
getExtendSchemaProerty: (controlType: ControlType) => Partial<PropertyItem>;
|
|
76
|
+
}
|
|
77
|
+
export interface UseProperty {
|
|
78
|
+
getPropertyConfig: (propertyData: PropertyItem) => PropertyConfig;
|
|
79
|
+
}
|