@farris/ui-vue 1.7.1 → 1.7.2-beta.2
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 +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1492 -59
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +344 -341
- package/components/calendar/index.umd.cjs +3 -3
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +302 -299
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +329 -292
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +294 -291
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +4390 -2708
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +3140 -487
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-grid/index.esm.js +4 -2
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1859 -1832
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3731 -2717
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +417 -405
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1245 -1895
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +275 -271
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +529 -450
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2613 -1544
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7376 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +423 -415
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +9049 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +364 -355
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +411 -409
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +427 -646
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +5 -3
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1641 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1196 -851
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1817 -854
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6858 -3984
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2448 -2222
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -209
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9493 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +129 -128
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1112 -607
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5301 -4507
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +626 -615
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +2043 -1290
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +14263 -12505
- package/designer/farris-designer.all.umd.cjs +16 -16
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +238 -232
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1 -1
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3431 -2493
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +195 -188
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +77525 -74884
- package/farris.all.umd.cjs +93 -93
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +8 -1
- package/types/condition/index.d.ts +55 -0
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -4
- package/types/dynamic-form/index.d.ts +6 -11
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +110 -98
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
- package/types/layout/src/designer/layout.design.component.d.ts +8 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/layout/src/schema/schema-mapper.d.ts +2 -0
- package/types/layout/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
- package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
- package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +2 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-view/src/tree-view.props.d.ts +1 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
- /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var ge = Object.defineProperty;
|
|
2
2
|
var ve = (o, e, t) => e in o ? ge(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { getCustomStyle as
|
|
5
|
-
import ye, { listViewProps as Ce,
|
|
6
|
-
import { resolveAppearance as
|
|
7
|
-
import { ref as b, computed as
|
|
8
|
-
import { DgControl as A, canvasChanged as
|
|
9
|
-
import { useFilter as
|
|
10
|
-
import { LocaleService as
|
|
3
|
+
var U = (o, e, t) => ve(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { getCustomStyle as Z, getCustomClass as ee, excludeProperties as he, withInstall as we } from "../../components/common/index.esm.js";
|
|
5
|
+
import ye, { listViewProps as Ce, FListViewTable as be } from "../../components/list-view/index.esm.js";
|
|
6
|
+
import { resolveAppearance as Ie, createPropsResolver as se, getPropsResolverGenerator as ie, createCollectionBindingResolver as Ve } from "../../components/dynamic-resolver/index.esm.js";
|
|
7
|
+
import { ref as b, computed as $, createVNode as l, Fragment as j, watch as Se, withModifiers as Me, withDirectives as ke, vModelText as xe, createTextVNode as O, defineComponent as oe, inject as K, onMounted as ae } from "vue";
|
|
8
|
+
import { DgControl as A, canvasChanged as Ee, refreshCanvas as Te, useDesignerComponent as le } from "../../components/designer-canvas/index.esm.js";
|
|
9
|
+
import { useFilter as Pe, useIdentify as Fe, useHierarchy as Re, useGroupData as Ne, useDataView as Be, useSelection as Ue, useRow as $e, useEdit as De, useVisualDataBound as Oe, useVisualDataCell as Ae, useVisualDataRow as Le, useVisualGroupRow as _e, useVisualSummaryRow as je, useVisualData as Ge } from "../../components/data-view/index.esm.js";
|
|
10
|
+
import { LocaleService as qe } from "../../components/locale/index.esm.js";
|
|
11
11
|
import { FCheckbox as X } from "../../components/checkbox/index.esm.js";
|
|
12
|
-
import { cloneDeep as
|
|
13
|
-
function
|
|
12
|
+
import { cloneDeep as He } from "lodash-es";
|
|
13
|
+
function We(o, e) {
|
|
14
14
|
function t(i) {
|
|
15
15
|
const s = [];
|
|
16
16
|
let c = i.nextNode();
|
|
@@ -20,7 +20,7 @@ function ze(o, e) {
|
|
|
20
20
|
}
|
|
21
21
|
function n(i, s) {
|
|
22
22
|
const c = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
|
|
23
|
-
return t(c).map((
|
|
23
|
+
return t(c).map((m) => ({ textNode: m, text: (m.textContent || "").toLocaleLowerCase() })).map(({ textNode: m, text: f }) => {
|
|
24
24
|
const g = [];
|
|
25
25
|
let w = 0;
|
|
26
26
|
for (; w < f.length; ) {
|
|
@@ -31,7 +31,7 @@ function ze(o, e) {
|
|
|
31
31
|
}
|
|
32
32
|
return g.map((y) => {
|
|
33
33
|
const h = new Range();
|
|
34
|
-
return h.setStart(
|
|
34
|
+
return h.setStart(m, y), h.setEnd(m, y + s.length), h;
|
|
35
35
|
});
|
|
36
36
|
}).flat();
|
|
37
37
|
}
|
|
@@ -43,10 +43,10 @@ function ze(o, e) {
|
|
|
43
43
|
}
|
|
44
44
|
return { search: a };
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const d = b(o.size),
|
|
48
|
-
var
|
|
49
|
-
return ((
|
|
46
|
+
function te(o, e, t, n, a, i, s, c, r, u) {
|
|
47
|
+
const d = b(o.size), m = b(o.textField), f = b(o.titleField), g = b(o.disableField), w = $(() => {
|
|
48
|
+
var p, T;
|
|
49
|
+
return ((p = o.selection) == null ? void 0 : p.multiSelect) && ((T = o.selection) == null ? void 0 : T.showCheckbox);
|
|
50
50
|
}), {
|
|
51
51
|
onMouseenterItem: y,
|
|
52
52
|
onMouseoverItem: h,
|
|
@@ -57,53 +57,53 @@ function ee(o, e, t, n, a, i, s, c, r, u) {
|
|
|
57
57
|
listViewItemStyle: F,
|
|
58
58
|
onCheckItem: B,
|
|
59
59
|
onClickItem: v
|
|
60
|
-
} = s, M =
|
|
61
|
-
const
|
|
60
|
+
} = s, M = $(() => {
|
|
61
|
+
const p = {
|
|
62
62
|
"text-overflow": "ellipsis",
|
|
63
63
|
overflow: "hidden",
|
|
64
64
|
"white-space": "nowrap"
|
|
65
65
|
};
|
|
66
|
-
return o.itemClass ?
|
|
66
|
+
return o.itemClass ? p : {
|
|
67
67
|
margin: d.value === "small" ? "0.25rem 0" : "8px 0",
|
|
68
|
-
...
|
|
68
|
+
...p
|
|
69
69
|
};
|
|
70
70
|
});
|
|
71
|
-
function C(
|
|
72
|
-
return
|
|
73
|
-
class: x(
|
|
74
|
-
id: k(
|
|
75
|
-
key: k(
|
|
76
|
-
style: F(
|
|
77
|
-
onClick: (N) => v(
|
|
78
|
-
onMouseenter: (N) => y(N,
|
|
79
|
-
onMouseover: (N) => h(N,
|
|
80
|
-
onMouseout: (N) => S(N,
|
|
71
|
+
function C(p, T, R) {
|
|
72
|
+
return p.checked = c.findIndexInSelectedItems(p) > -1, l("li", {
|
|
73
|
+
class: x(p, T),
|
|
74
|
+
id: k(p, T),
|
|
75
|
+
key: k(p, T),
|
|
76
|
+
style: F(p, T),
|
|
77
|
+
onClick: (N) => v(p, T, N),
|
|
78
|
+
onMouseenter: (N) => y(N, p, T),
|
|
79
|
+
onMouseover: (N) => h(N, p, T),
|
|
80
|
+
onMouseout: (N) => S(N, p, T)
|
|
81
81
|
}, [w.value && l("div", {
|
|
82
82
|
class: "f-list-select",
|
|
83
83
|
onClick: (N) => N.stopPropagation()
|
|
84
84
|
}, [l(X, {
|
|
85
|
-
id: "list-" + k(
|
|
85
|
+
id: "list-" + k(p, T),
|
|
86
86
|
customClass: "listview-checkbox float-left",
|
|
87
|
-
disabled:
|
|
88
|
-
checked:
|
|
89
|
-
"onUpdate:checked": (N) =>
|
|
87
|
+
disabled: p[g.value],
|
|
88
|
+
checked: p.checked,
|
|
89
|
+
"onUpdate:checked": (N) => p.checked = N,
|
|
90
90
|
onChange: (N) => {
|
|
91
|
-
B(
|
|
91
|
+
B(p, T, !N.checked);
|
|
92
92
|
}
|
|
93
93
|
}, null)]), l("div", {
|
|
94
94
|
class: "f-list-content"
|
|
95
95
|
}, [l("div", {
|
|
96
96
|
class: o.itemContentClass,
|
|
97
97
|
style: M.value,
|
|
98
|
-
title:
|
|
99
|
-
}, [
|
|
98
|
+
title: p.raw[f.value] || p.raw[m.value]
|
|
99
|
+
}, [p.raw[m.value]])])]);
|
|
100
100
|
}
|
|
101
101
|
return {
|
|
102
102
|
renderItem: C
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
const d = b(o.multiSelect),
|
|
105
|
+
function ze(o, e, t, n, a, i, s, c, r, u) {
|
|
106
|
+
const d = b(o.multiSelect), m = b(o.disableField), f = b(o.textField), {
|
|
107
107
|
onMouseenterItem: g,
|
|
108
108
|
onMouseoverItem: w,
|
|
109
109
|
onMouseoutItem: y
|
|
@@ -115,51 +115,51 @@ function Ke(o, e, t, n, a, i, s, c, r, u) {
|
|
|
115
115
|
onClickItem: F,
|
|
116
116
|
updateSelectedItems: B
|
|
117
117
|
} = s;
|
|
118
|
-
function v(C,
|
|
118
|
+
function v(C, p, T) {
|
|
119
119
|
return o.contentTemplate ? l(j, null, [o.contentTemplate({
|
|
120
120
|
item: C.raw,
|
|
121
|
-
index:
|
|
121
|
+
index: p,
|
|
122
122
|
selectedItem: T
|
|
123
123
|
})]) : e.slots.content ? l(j, null, [e.slots.content && e.slots.content({
|
|
124
124
|
item: C.raw,
|
|
125
|
-
index:
|
|
125
|
+
index: p,
|
|
126
126
|
selectedItem: T
|
|
127
127
|
})]) : l("div", {
|
|
128
128
|
style: "margin: 10px 0;"
|
|
129
129
|
}, [C.raw[f.value || "name"]]);
|
|
130
130
|
}
|
|
131
|
-
function M(C,
|
|
131
|
+
function M(C, p, T) {
|
|
132
132
|
return l("li", {
|
|
133
|
-
class: S(C,
|
|
134
|
-
id: h(C,
|
|
135
|
-
key: h(C,
|
|
136
|
-
style: k(C,
|
|
137
|
-
onClick: (R) => F(C,
|
|
138
|
-
onMouseenter: (R) => g(R, C,
|
|
139
|
-
onMouseover: (R) => w(R, C,
|
|
140
|
-
onMouseout: (R) => y(R, C,
|
|
133
|
+
class: S(C, p),
|
|
134
|
+
id: h(C, p),
|
|
135
|
+
key: h(C, p),
|
|
136
|
+
style: k(C, p),
|
|
137
|
+
onClick: (R) => F(C, p, R),
|
|
138
|
+
onMouseenter: (R) => g(R, C, p),
|
|
139
|
+
onMouseover: (R) => w(R, C, p),
|
|
140
|
+
onMouseout: (R) => y(R, C, p)
|
|
141
141
|
}, [d.value && l("div", {
|
|
142
142
|
class: "f-list-select",
|
|
143
143
|
onClick: (R) => R.stopPropagation()
|
|
144
144
|
}, [l(X, {
|
|
145
|
-
id: "list-" + h(C,
|
|
145
|
+
id: "list-" + h(C, p),
|
|
146
146
|
customClass: "listview-checkbox",
|
|
147
|
-
disabled: C[
|
|
147
|
+
disabled: C[m.value],
|
|
148
148
|
checked: C.checked,
|
|
149
149
|
"onUpdate:checked": (R) => C.checked = R,
|
|
150
150
|
onChange: (R) => {
|
|
151
|
-
x(C,
|
|
151
|
+
x(C, p, !R.checked), B();
|
|
152
152
|
}
|
|
153
153
|
}, null)]), l("div", {
|
|
154
154
|
class: "f-list-content"
|
|
155
|
-
}, [v(C,
|
|
155
|
+
}, [v(C, p, T)])]);
|
|
156
156
|
}
|
|
157
157
|
return {
|
|
158
158
|
renderItem: M
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
const d = b(o.multiSelect),
|
|
161
|
+
function Ke(o, e, t, n, a, i, s, c, r, u) {
|
|
162
|
+
const d = b(o.multiSelect), m = b(o.disableField), f = b(o.textField), {
|
|
163
163
|
onMouseenterItem: g,
|
|
164
164
|
onMouseoverItem: w,
|
|
165
165
|
onMouseoutItem: y
|
|
@@ -175,7 +175,7 @@ function Xe(o, e, t, n, a, i, s, c, r, u) {
|
|
|
175
175
|
dragend: M
|
|
176
176
|
} = n, {
|
|
177
177
|
removeItem: C
|
|
178
|
-
} = r,
|
|
178
|
+
} = r, p = $(() => ({
|
|
179
179
|
margin: d.value ? "10px 0" : "10px 0px 10px 14px"
|
|
180
180
|
}));
|
|
181
181
|
function T(V, I = "") {
|
|
@@ -184,7 +184,7 @@ function Xe(o, e, t, n, a, i, s, c, r, u) {
|
|
|
184
184
|
}
|
|
185
185
|
function R(V) {
|
|
186
186
|
return l("div", {
|
|
187
|
-
style:
|
|
187
|
+
style: p.value,
|
|
188
188
|
onMouseenter: (I) => T(I, V.raw[f.value || "name"])
|
|
189
189
|
}, [V.raw[f.value || "name"]]);
|
|
190
190
|
}
|
|
@@ -212,7 +212,7 @@ function Xe(o, e, t, n, a, i, s, c, r, u) {
|
|
|
212
212
|
}, [l(X, {
|
|
213
213
|
id: "list-" + h(V, I),
|
|
214
214
|
customClass: "listview-checkbox",
|
|
215
|
-
disabled: V[
|
|
215
|
+
disabled: V[m.value] || !V.checked,
|
|
216
216
|
checked: V.checked,
|
|
217
217
|
"onUpdate:checked": (P) => V.checked = P,
|
|
218
218
|
onChange: (P) => k(V, I, !P.checked)
|
|
@@ -237,10 +237,10 @@ function Xe(o, e, t, n, a, i, s, c, r, u) {
|
|
|
237
237
|
renderItem: E
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Xe(o, e, t, n, a, i, s, c, r, u) {
|
|
241
241
|
var h;
|
|
242
242
|
const d = b(((h = o.group) == null ? void 0 : h.groupFields) || []), {
|
|
243
|
-
collpaseGroupIconClass:
|
|
243
|
+
collpaseGroupIconClass: m
|
|
244
244
|
} = a, {
|
|
245
245
|
toggleGroupRow: f
|
|
246
246
|
} = u;
|
|
@@ -258,7 +258,7 @@ function Ye(o, e, t, n, a, i, s, c, r, u) {
|
|
|
258
258
|
}, [l("div", {
|
|
259
259
|
class: "fv-grid-group-row-icon"
|
|
260
260
|
}, [l("span", {
|
|
261
|
-
class:
|
|
261
|
+
class: m(S)
|
|
262
262
|
}, null)]), l("div", {
|
|
263
263
|
class: "f-navlookup-recommandLabel"
|
|
264
264
|
}, [S.raw[d.value[S.layer]]])]);
|
|
@@ -270,7 +270,7 @@ function Ye(o, e, t, n, a, i, s, c, r, u) {
|
|
|
270
270
|
renderItem: y
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Ye(o, e, t, n) {
|
|
274
274
|
const { dataView: a } = t, { updateSelectedItems: i } = n;
|
|
275
275
|
function s(c) {
|
|
276
276
|
if (c > -1 && c < a.value.length) {
|
|
@@ -282,24 +282,24 @@ function Je(o, e, t, n) {
|
|
|
282
282
|
}
|
|
283
283
|
return { removeItem: s };
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
const d = b(o.view),
|
|
285
|
+
function Je(o, e, t, n, a, i, s, c, r, u) {
|
|
286
|
+
const d = b(o.view), m = b(o.view === "CardView"), f = b({}), g = Ye(o, e, n, r), w = $(() => ({
|
|
287
287
|
"f-list-view-group": !0,
|
|
288
288
|
"f-list-view-group-multiselect": o.multiSelect,
|
|
289
|
-
"d-flex":
|
|
290
|
-
"flex-wrap":
|
|
291
|
-
})), y =
|
|
292
|
-
|
|
289
|
+
"d-flex": m.value,
|
|
290
|
+
"flex-wrap": m.value
|
|
291
|
+
})), y = $(() => !!t.value && t.value.length > 0), h = $(() => t.value.length === 0);
|
|
292
|
+
$(() => h.value && !e.slots.empty);
|
|
293
293
|
function S() {
|
|
294
|
-
return d.value === "SingleView" ?
|
|
294
|
+
return d.value === "SingleView" ? te : d.value === "DraggableView" ? Ke : (d.value === "ContentView" || d.value === "CardView") && (o.contentTemplate || e.slots.content) ? ze : te;
|
|
295
295
|
}
|
|
296
296
|
const k = S(), {
|
|
297
297
|
renderItem: x
|
|
298
298
|
} = k(o, e, t, u, a, i, r, s, g, c), {
|
|
299
299
|
renderItem: F
|
|
300
|
-
} =
|
|
300
|
+
} = Xe(o, e, t, u, a, i, r, s, g, c), B = [x, F];
|
|
301
301
|
function v() {
|
|
302
|
-
return t.value.filter((
|
|
302
|
+
return t.value.filter((p) => p.visible !== !1).map((p, T) => B[p.type](p, T, f));
|
|
303
303
|
}
|
|
304
304
|
function M() {
|
|
305
305
|
return l("div", {
|
|
@@ -307,7 +307,7 @@ function Qe(o, e, t, n, a, i, s, c, r, u) {
|
|
|
307
307
|
style: "margin: 0 auto;"
|
|
308
308
|
}, [l("p", {
|
|
309
309
|
class: "f-empty-title"
|
|
310
|
-
}, [o.emptyTemplate ? o.emptyTemplate() : e.slots.empty ? e.slots.empty() :
|
|
310
|
+
}, [o.emptyTemplate ? o.emptyTemplate() : e.slots.empty ? e.slots.empty() : qe.getLocaleValue("listView.emptyMessage")])]);
|
|
311
311
|
}
|
|
312
312
|
function C() {
|
|
313
313
|
return l("ul", {
|
|
@@ -319,7 +319,7 @@ function Qe(o, e, t, n, a, i, s, c, r, u) {
|
|
|
319
319
|
renderListArea: C
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Qe(o, e, t) {
|
|
323
323
|
function n() {
|
|
324
324
|
return e.slots.header && l("div", {
|
|
325
325
|
class: "f-list-view-header"
|
|
@@ -329,15 +329,15 @@ function Ze(o, e, t) {
|
|
|
329
329
|
renderHeader: n
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
const n = b(o.headerClass), a = b(o.placeholder), i = b(""), s =
|
|
332
|
+
function ne(o, e, t) {
|
|
333
|
+
const n = b(o.headerClass), a = b(o.placeholder), i = b(""), s = $(() => !i.value), c = $(() => !!i.value);
|
|
334
334
|
function r(f) {
|
|
335
335
|
i.value = "";
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
Se(i, (f) => {
|
|
338
338
|
o.enableHighlightSearch && t.search(f), e.emit("afterSearch", f);
|
|
339
339
|
});
|
|
340
|
-
const u =
|
|
340
|
+
const u = $(() => {
|
|
341
341
|
const f = {
|
|
342
342
|
"form-group": !0,
|
|
343
343
|
"farris-form-group": !0
|
|
@@ -346,10 +346,10 @@ function te(o, e, t) {
|
|
|
346
346
|
});
|
|
347
347
|
function d(f) {
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function m() {
|
|
350
350
|
return l("div", {
|
|
351
351
|
class: "f-list-view-header",
|
|
352
|
-
onClick:
|
|
352
|
+
onClick: Me(() => d, ["prevent", "stop"])
|
|
353
353
|
}, [l("div", {
|
|
354
354
|
class: u.value
|
|
355
355
|
}, [l("div", {
|
|
@@ -358,14 +358,14 @@ function te(o, e, t) {
|
|
|
358
358
|
class: "f-cmp-inputgroup"
|
|
359
359
|
}, [l("div", {
|
|
360
360
|
class: "input-group f-state-editable"
|
|
361
|
-
}, [
|
|
361
|
+
}, [ke(l("input", {
|
|
362
362
|
class: "form-control f-utils-fill text-left",
|
|
363
363
|
"onUpdate:modelValue": (f) => i.value = f,
|
|
364
364
|
name: "input-group-value",
|
|
365
365
|
type: "text",
|
|
366
366
|
placeholder: a.value,
|
|
367
367
|
autocomplete: "off"
|
|
368
|
-
}, null), [[
|
|
368
|
+
}, null), [[xe, i.value]]), l("div", {
|
|
369
369
|
class: "input-group-append"
|
|
370
370
|
}, [c.value && l("span", {
|
|
371
371
|
class: "input-group-text input-group-clear",
|
|
@@ -379,18 +379,18 @@ function te(o, e, t) {
|
|
|
379
379
|
}, null)])])])])])])]);
|
|
380
380
|
}
|
|
381
381
|
return {
|
|
382
|
-
renderHeader:
|
|
382
|
+
renderHeader: m
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function Ze() {
|
|
386
386
|
const o = b(""), e = b(-1), t = b(""), n = b(-1), a = b(!1);
|
|
387
|
-
function i(
|
|
387
|
+
function i(m, f, g) {
|
|
388
388
|
n.value = g;
|
|
389
389
|
}
|
|
390
|
-
function s(
|
|
390
|
+
function s(m, f, g) {
|
|
391
391
|
a.value || (n.value = g);
|
|
392
392
|
}
|
|
393
|
-
function c(
|
|
393
|
+
function c(m, f, g) {
|
|
394
394
|
n.value = -1;
|
|
395
395
|
}
|
|
396
396
|
function r() {
|
|
@@ -414,16 +414,16 @@ function et() {
|
|
|
414
414
|
suspendHover: r
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
const a = b(o.idField), { dataView: i } = t, s = b(-1), c = b(!1), { activeIndex: r, focusedItemId: u, hoverIndex: d, resumeHover:
|
|
417
|
+
function et(o, e, t, n) {
|
|
418
|
+
const a = b(o.idField), { dataView: i } = t, s = b(-1), c = b(!1), { activeIndex: r, focusedItemId: u, hoverIndex: d, resumeHover: m, suspendHover: f } = n;
|
|
419
419
|
let g, w = 0, y = 0;
|
|
420
420
|
function h(v, M) {
|
|
421
|
-
const C = v - w,
|
|
422
|
-
g.style.left = parseInt(g.style.left) + C + "px", g.style.top = parseInt(g.style.top) +
|
|
421
|
+
const C = v - w, p = M - y;
|
|
422
|
+
g.style.left = parseInt(g.style.left) + C + "px", g.style.top = parseInt(g.style.top) + p + "px", w = v, y = M;
|
|
423
423
|
}
|
|
424
424
|
function S(v) {
|
|
425
|
-
const { left: M, top: C } = v.getBoundingClientRect(),
|
|
426
|
-
return
|
|
425
|
+
const { left: M, top: C } = v.getBoundingClientRect(), p = v.cloneNode(!0);
|
|
426
|
+
return p.className = p.className + " f-listview-drag-moving", p.style.cssText = `
|
|
427
427
|
position:absolute;
|
|
428
428
|
left:${M}px;
|
|
429
429
|
top:${document.documentElement.scrollTop ? C + document.documentElement.scrollTop : C}px;
|
|
@@ -437,16 +437,16 @@ function tt(o, e, t, n) {
|
|
|
437
437
|
text-align: initial;
|
|
438
438
|
width:${getComputedStyle(v).width};
|
|
439
439
|
height:${getComputedStyle(v).height};
|
|
440
|
-
`,
|
|
440
|
+
`, p.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", p.children[0].children[0].style.cssText = `
|
|
441
441
|
margin: 10px 0px 10px 14px;
|
|
442
442
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
443
|
-
`,
|
|
443
|
+
`, p.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", p.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(p), p;
|
|
444
444
|
}
|
|
445
445
|
function k(v, M, C) {
|
|
446
446
|
if (v.stopPropagation(), f(), M) {
|
|
447
447
|
if (g = S(v.target), v.dataTransfer) {
|
|
448
|
-
const
|
|
449
|
-
|
|
448
|
+
const p = new Image();
|
|
449
|
+
p.src = "", v.dataTransfer.setDragImage(p, 0, 0);
|
|
450
450
|
}
|
|
451
451
|
w = v.pageX, y = v.pageY, setTimeout(() => {
|
|
452
452
|
s.value = C, c.value = !0, M.moving = !0;
|
|
@@ -455,17 +455,17 @@ function tt(o, e, t, n) {
|
|
|
455
455
|
}
|
|
456
456
|
function x(v, M) {
|
|
457
457
|
if (v.preventDefault(), s.value !== M) {
|
|
458
|
-
const C = i.value[s.value],
|
|
459
|
-
|
|
458
|
+
const C = i.value[s.value], p = i.value;
|
|
459
|
+
p.splice(s.value, 1), p.splice(M, 0, C), s.value = M, h(v.pageX, v.pageY);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
function F(v) {
|
|
463
463
|
v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move"), h(v.pageX, v.pageY);
|
|
464
464
|
}
|
|
465
465
|
function B(v, M) {
|
|
466
|
-
M && (M.moving = !1, g && (document.body.removeChild(g), g = null)), i.value.forEach((C,
|
|
467
|
-
C.__fv_index__ =
|
|
468
|
-
}), c.value = !1,
|
|
466
|
+
M && (M.moving = !1, g && (document.body.removeChild(g), g = null)), i.value.forEach((C, p) => {
|
|
467
|
+
C.__fv_index__ = p;
|
|
468
|
+
}), c.value = !1, m(), d.value = M.raw.__fv_index__, r.value = M.raw.__fv_index__, u.value = M.raw[a.value], e.emit("change", i.value), e.emit("activeChange", [M.raw]);
|
|
469
469
|
}
|
|
470
470
|
return {
|
|
471
471
|
dragstart: k,
|
|
@@ -475,10 +475,10 @@ function tt(o, e, t, n) {
|
|
|
475
475
|
isDragging: c
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function tt(o, e, t, n, a, i) {
|
|
479
479
|
const s = b(o.idField), c = b(o.disableField), r = b(o.draggable);
|
|
480
480
|
b(o.itemClass);
|
|
481
|
-
const u = b(o.selection.multiSelect ?? !1), d = b(o.selection.multiSelectMode), { isDragging:
|
|
481
|
+
const u = b(o.selection.multiSelect ?? !1), d = b(o.selection.multiSelectMode), { isDragging: m } = n, { activeIndex: f, focusedItemId: g, hoverIndex: w } = a, { clearSelection: y, getSelectedItems: h, toggleSelectItem: S, currentSelectedDataId: k } = i, x = b(h()), F = (E) => x.value.length === 0 ? !1 : x.value.some((V) => {
|
|
482
482
|
let I = "";
|
|
483
483
|
return V.data ? I = V.data[s.value] : I = V[s.value], I === E;
|
|
484
484
|
});
|
|
@@ -499,32 +499,32 @@ function nt(o, e, t, n, a, i) {
|
|
|
499
499
|
u.value && F(v(E)) || // 单选
|
|
500
500
|
!u.value && E.raw[s.value] === k.value
|
|
501
501
|
),
|
|
502
|
-
"f-listview-hover": !
|
|
502
|
+
"f-listview-hover": !m.value && V === w.value,
|
|
503
503
|
moving: !!E.moving
|
|
504
504
|
};
|
|
505
505
|
if (typeof o.itemClass == "string")
|
|
506
|
-
return
|
|
506
|
+
return ee(I, o.itemClass);
|
|
507
507
|
if (typeof o.itemClass == "function") {
|
|
508
508
|
const D = o.itemClass(E);
|
|
509
|
-
return
|
|
509
|
+
return ee(I, D);
|
|
510
510
|
}
|
|
511
511
|
return I;
|
|
512
512
|
}
|
|
513
513
|
function C(E, V) {
|
|
514
514
|
const I = {};
|
|
515
515
|
if (typeof o.itemStyle == "string")
|
|
516
|
-
return
|
|
516
|
+
return Z(I, o.itemStyle);
|
|
517
517
|
if (typeof o.itemStyle == "function") {
|
|
518
518
|
const D = o.itemStyle(E);
|
|
519
|
-
return
|
|
519
|
+
return Z(I, D);
|
|
520
520
|
}
|
|
521
521
|
return I;
|
|
522
522
|
}
|
|
523
|
-
const
|
|
523
|
+
const p = $(() => !u.value);
|
|
524
524
|
function T(E, V, I) {
|
|
525
|
-
E.checked = I, !E.raw[c.value] && (
|
|
525
|
+
E.checked = I, !E.raw[c.value] && (p.value && (g.value = E.raw[s.value]), S(E));
|
|
526
526
|
}
|
|
527
|
-
const R =
|
|
527
|
+
const R = $(() => u.value && d.value === "OnCheckClearByClick"), N = $(() => !u.value || u.value && (d.value === "OnCheckAndClick" || d.value === "OnClick"));
|
|
528
528
|
function L(E, V, I) {
|
|
529
529
|
if (E.raw[c.value]) {
|
|
530
530
|
I == null || I.preventDefault(), I == null || I.stopPropagation();
|
|
@@ -543,9 +543,9 @@ function nt(o, e, t, n, a, i) {
|
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
545
|
const q = /* @__PURE__ */ new Map([
|
|
546
|
-
["appearance",
|
|
547
|
-
]),
|
|
548
|
-
function
|
|
546
|
+
["appearance", Ie]
|
|
547
|
+
]), nt = "root-viewmodel";
|
|
548
|
+
function st(o, e) {
|
|
549
549
|
const {
|
|
550
550
|
formSchemaUtils: t,
|
|
551
551
|
designViewModelUtils: n
|
|
@@ -556,7 +556,7 @@ function it(o, e) {
|
|
|
556
556
|
code: `${d.componentId}-component-viewmodel`,
|
|
557
557
|
name: d.componentName,
|
|
558
558
|
bindTo: d.bindTo,
|
|
559
|
-
parent:
|
|
559
|
+
parent: nt,
|
|
560
560
|
fields: [],
|
|
561
561
|
commands: [],
|
|
562
562
|
states: [],
|
|
@@ -564,15 +564,15 @@ function it(o, e) {
|
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
566
|
function i(d) {
|
|
567
|
-
const
|
|
568
|
-
return Object.assign(
|
|
567
|
+
const m = o.getSchemaByType("component-ref");
|
|
568
|
+
return Object.assign(m, {
|
|
569
569
|
id: `${d.componentId}-component-ref`,
|
|
570
570
|
component: `${d.componentId}-component`
|
|
571
|
-
}),
|
|
571
|
+
}), m;
|
|
572
572
|
}
|
|
573
|
-
function s(d,
|
|
573
|
+
function s(d, m, f) {
|
|
574
574
|
var h, S, k, x;
|
|
575
|
-
const g = (S = (h =
|
|
575
|
+
const g = (S = (h = m == null ? void 0 : m.parentComponentInstance) == null ? void 0 : h.schema) == null ? void 0 : S.type, w = (x = (k = t.getFormSchema()) == null ? void 0 : k.module) == null ? void 0 : x.templateId;
|
|
576
576
|
if (["double-list-template", "tree-list-template", "list-template"].includes(w))
|
|
577
577
|
return d;
|
|
578
578
|
const y = [A["content-container"].type, A["response-layout-item"].type, A["splitter-pane"].type, A.drawer.type];
|
|
@@ -580,8 +580,8 @@ function it(o, e) {
|
|
|
580
580
|
const F = o.getSchemaByType(
|
|
581
581
|
"section",
|
|
582
582
|
{
|
|
583
|
-
parentComponentInstance:
|
|
584
|
-
mainTitle:
|
|
583
|
+
parentComponentInstance: m.parentComponentInstance,
|
|
584
|
+
mainTitle: m.componentName
|
|
585
585
|
},
|
|
586
586
|
e
|
|
587
587
|
);
|
|
@@ -594,10 +594,10 @@ function it(o, e) {
|
|
|
594
594
|
}
|
|
595
595
|
function c(d) {
|
|
596
596
|
var w, y, h;
|
|
597
|
-
const
|
|
597
|
+
const m = o.getSchemaByType("list-view");
|
|
598
598
|
let f = !1;
|
|
599
599
|
const g = (h = (y = (w = d.parentComponentInstance) == null ? void 0 : w.schema) == null ? void 0 : y.appearance) == null ? void 0 : h.class;
|
|
600
|
-
return g && g.includes("f-page-main") && (f = !0), Object.assign(
|
|
600
|
+
return g && g.includes("f-page-main") && (f = !0), Object.assign(m, {
|
|
601
601
|
id: d.componentId + "-listView",
|
|
602
602
|
appearance: {
|
|
603
603
|
class: f ? "" : "f-grid-is-sub"
|
|
@@ -607,14 +607,14 @@ function it(o, e) {
|
|
|
607
607
|
pagination: {
|
|
608
608
|
enable: !1
|
|
609
609
|
}
|
|
610
|
-
}), [
|
|
610
|
+
}), [m];
|
|
611
611
|
}
|
|
612
612
|
function r(d) {
|
|
613
613
|
var y, h, S;
|
|
614
|
-
const
|
|
614
|
+
const m = o.getSchemaByType("component"), f = c(d);
|
|
615
615
|
let g = !1;
|
|
616
616
|
const w = (S = (h = (y = d.parentComponentInstance) == null ? void 0 : y.schema) == null ? void 0 : h.appearance) == null ? void 0 : S.class;
|
|
617
|
-
return w && w.includes("f-page-main") && (g = !0), Object.assign(
|
|
617
|
+
return w && w.includes("f-page-main") && (g = !0), Object.assign(m, {
|
|
618
618
|
id: `${d.componentId}-component`,
|
|
619
619
|
viewModel: `${d.componentId}-component-viewmodel`,
|
|
620
620
|
componentType: d.componentType,
|
|
@@ -622,11 +622,11 @@ function it(o, e) {
|
|
|
622
622
|
appearance: {
|
|
623
623
|
class: g ? "f-struct-wrapper f-utils-fill-flex-column" : ""
|
|
624
624
|
}
|
|
625
|
-
}),
|
|
625
|
+
}), m;
|
|
626
626
|
}
|
|
627
627
|
function u(d) {
|
|
628
|
-
const
|
|
629
|
-
return w.module.viewmodels.push(g), w.module.components.push(f), n.assembleDesignViewModel(), s(
|
|
628
|
+
const m = i(d), f = r(d), g = a(d), w = t.getFormSchema();
|
|
629
|
+
return w.module.viewmodels.push(g), w.module.components.push(f), n.assembleDesignViewModel(), s(m, d);
|
|
630
630
|
}
|
|
631
631
|
return { createComponent: u };
|
|
632
632
|
}
|
|
@@ -634,9 +634,9 @@ function H(o, e, t, n) {
|
|
|
634
634
|
var i, s, c, r, u, d;
|
|
635
635
|
const a = t.parentComponentInstance;
|
|
636
636
|
if (a && n) {
|
|
637
|
-
const
|
|
638
|
-
componentId: `list-view-${
|
|
639
|
-
componentName: ((i = t.bindingSourceContext) == null ? void 0 : i.entityTitle) || ((c = (s = t.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : c.name) || `列表-${
|
|
637
|
+
const m = Math.random().toString(36).slice(2, 6), f = {
|
|
638
|
+
componentId: `list-view-${m}`,
|
|
639
|
+
componentName: ((i = t.bindingSourceContext) == null ? void 0 : i.entityTitle) || ((c = (s = t.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : c.name) || `列表-${m}`,
|
|
640
640
|
componentType: "list-view",
|
|
641
641
|
parentContainerId: a.schema.id,
|
|
642
642
|
parentComponentInstance: a,
|
|
@@ -644,12 +644,12 @@ function H(o, e, t, n) {
|
|
|
644
644
|
bindTo: ((r = t.bindingSourceContext) == null ? void 0 : r.bindTo) || "",
|
|
645
645
|
dataSource: (d = (u = t.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : d.label
|
|
646
646
|
// selectedFields: context.bindingSourceContext?.bindingEntityFields
|
|
647
|
-
}, { createComponent: g } =
|
|
647
|
+
}, { createComponent: g } = st(o, n);
|
|
648
648
|
return g(f);
|
|
649
649
|
} else
|
|
650
650
|
return e;
|
|
651
651
|
}
|
|
652
|
-
const
|
|
652
|
+
const it = "https://json-schema.org/draft/2020-12/schema", ot = "https://farris-design.gitee.io/list-view.schema.json", at = "list-view", lt = "A Farris Component", rt = "object", ct = {
|
|
653
653
|
id: {
|
|
654
654
|
description: "The unique identifier for list-view",
|
|
655
655
|
type: "string"
|
|
@@ -741,23 +741,23 @@ const ot = "https://json-schema.org/draft/2020-12/schema", at = "https://farris-
|
|
|
741
741
|
type: "string",
|
|
742
742
|
default: ""
|
|
743
743
|
}
|
|
744
|
-
},
|
|
744
|
+
}, dt = [
|
|
745
745
|
"id",
|
|
746
746
|
"type"
|
|
747
|
-
],
|
|
747
|
+
], ut = {
|
|
748
748
|
onClickItem: "行点击事件"
|
|
749
|
-
},
|
|
750
|
-
$schema:
|
|
751
|
-
$id:
|
|
752
|
-
title:
|
|
753
|
-
description:
|
|
754
|
-
type:
|
|
755
|
-
properties:
|
|
756
|
-
required:
|
|
757
|
-
events:
|
|
758
|
-
}, Y = he(Ce, "headerTemplate"),
|
|
749
|
+
}, re = {
|
|
750
|
+
$schema: it,
|
|
751
|
+
$id: ot,
|
|
752
|
+
title: at,
|
|
753
|
+
description: lt,
|
|
754
|
+
type: rt,
|
|
755
|
+
properties: ct,
|
|
756
|
+
required: dt,
|
|
757
|
+
events: ut
|
|
758
|
+
}, Y = he(Ce, "headerTemplate"), Lt = se(Y, re, q, H), ce = ie(
|
|
759
759
|
Y,
|
|
760
|
-
|
|
760
|
+
re,
|
|
761
761
|
q,
|
|
762
762
|
H
|
|
763
763
|
), z = {
|
|
@@ -776,14 +776,14 @@ function mt(o) {
|
|
|
776
776
|
}
|
|
777
777
|
function a(r, u = "") {
|
|
778
778
|
const d = e.getViewModelById(r);
|
|
779
|
-
return d ? d.states.map((
|
|
779
|
+
return d ? d.states.map((m) => n(m, u)) : [];
|
|
780
780
|
}
|
|
781
781
|
function i(r) {
|
|
782
782
|
const u = e.getRootViewModelId(), d = a(r);
|
|
783
783
|
if (r === u)
|
|
784
784
|
return d;
|
|
785
|
-
const
|
|
786
|
-
return [...d, ...
|
|
785
|
+
const m = a(u, "root-component.");
|
|
786
|
+
return [...d, ...m];
|
|
787
787
|
}
|
|
788
788
|
function s(r) {
|
|
789
789
|
return r.binding && r.binding.path || r.id || "";
|
|
@@ -793,9 +793,9 @@ function mt(o) {
|
|
|
793
793
|
}
|
|
794
794
|
return { getVariables: i, getControlName: s, getStateMachines: c };
|
|
795
795
|
}
|
|
796
|
-
class
|
|
796
|
+
class pt {
|
|
797
797
|
constructor(e) {
|
|
798
|
-
|
|
798
|
+
U(this, "sessionVariables", [
|
|
799
799
|
{
|
|
800
800
|
key: "CurrentSysOrgName",
|
|
801
801
|
name: "当前组织Name",
|
|
@@ -832,7 +832,7 @@ class ft {
|
|
|
832
832
|
description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
|
|
833
833
|
}
|
|
834
834
|
]);
|
|
835
|
-
|
|
835
|
+
U(this, "expressionNames", {
|
|
836
836
|
compute: "计算表达式",
|
|
837
837
|
dependency: "依赖表达式",
|
|
838
838
|
validate: "验证表达式",
|
|
@@ -841,7 +841,7 @@ class ft {
|
|
|
841
841
|
readonly: "只读表达式",
|
|
842
842
|
required: "必填表达式"
|
|
843
843
|
});
|
|
844
|
-
|
|
844
|
+
U(this, "getExpressionConverter", (e, t) => ({
|
|
845
845
|
convertFrom: (n, a, i, s) => {
|
|
846
846
|
const c = i.getExpressionRuleValue(e, t || a);
|
|
847
847
|
return c && c.value || "";
|
|
@@ -851,7 +851,7 @@ class ft {
|
|
|
851
851
|
if (a === "dataPicking" && (i != null && i.target)) {
|
|
852
852
|
const u = `${i.target}_dataPicking`;
|
|
853
853
|
((r = i.rules) == null ? void 0 : r.some(
|
|
854
|
-
(
|
|
854
|
+
(m) => m.id === u && m.value
|
|
855
855
|
)) ? n.dictPickingExpressionId = u : delete n.dictPickingExpressionId;
|
|
856
856
|
}
|
|
857
857
|
s.updateExpression(i);
|
|
@@ -981,9 +981,9 @@ class ft {
|
|
|
981
981
|
let r = this.getExpressionData().find((d) => d.targetType === t && d.target === i);
|
|
982
982
|
const u = (d) => d.value.trim() === "";
|
|
983
983
|
if (r) {
|
|
984
|
-
const d = r.rules.find((
|
|
984
|
+
const d = r.rules.find((m) => m.id === s.id);
|
|
985
985
|
if (d)
|
|
986
|
-
u(s) ? r.rules = r.rules.filter((
|
|
986
|
+
u(s) ? r.rules = r.rules.filter((m) => m.id !== s.id) : (Object.assign(d, s), a === "validate" && e.type === "form-group" && (d.elementId = e.id));
|
|
987
987
|
else {
|
|
988
988
|
if (u(s))
|
|
989
989
|
return null;
|
|
@@ -1019,12 +1019,12 @@ class ft {
|
|
|
1019
1019
|
showMessageType: s === "dataPicking",
|
|
1020
1020
|
beforeOpen: () => this.onBeforeOpenExpression(e, s, t),
|
|
1021
1021
|
onSubmitModal: (d) => {
|
|
1022
|
-
const
|
|
1022
|
+
const m = this.updateExpression(e, t, d, s);
|
|
1023
1023
|
if (a) {
|
|
1024
1024
|
const f = this.buildRule(c, d, s);
|
|
1025
1025
|
a(f);
|
|
1026
1026
|
}
|
|
1027
|
-
return
|
|
1027
|
+
return m;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
}, i;
|
|
@@ -1060,21 +1060,21 @@ class ft {
|
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
class
|
|
1063
|
+
class ft {
|
|
1064
1064
|
constructor(e, t) {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1065
|
+
U(this, "componentId");
|
|
1066
|
+
U(this, "viewModelId");
|
|
1067
|
+
U(this, "eventsEditorUtils");
|
|
1068
|
+
U(this, "formSchemaUtils");
|
|
1069
|
+
U(this, "formMetadataConverter");
|
|
1070
|
+
U(this, "designViewModelUtils");
|
|
1071
|
+
U(this, "designViewModelField");
|
|
1072
|
+
U(this, "controlCreatorUtils");
|
|
1073
|
+
U(this, "designerHostService");
|
|
1074
|
+
U(this, "designerContext");
|
|
1075
|
+
U(this, "schemaService", null);
|
|
1076
|
+
U(this, "metadataService", null);
|
|
1077
|
+
U(this, "propertyConfig", {
|
|
1078
1078
|
type: "object",
|
|
1079
1079
|
categories: {}
|
|
1080
1080
|
});
|
|
@@ -1157,7 +1157,7 @@ class gt {
|
|
|
1157
1157
|
switch (s && s.propertyID) {
|
|
1158
1158
|
case "class":
|
|
1159
1159
|
case "style": {
|
|
1160
|
-
|
|
1160
|
+
Ee.value++;
|
|
1161
1161
|
break;
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
@@ -1177,11 +1177,11 @@ class gt {
|
|
|
1177
1177
|
* @returns
|
|
1178
1178
|
*/
|
|
1179
1179
|
getPropertyEditorParams(e, t = [], n = "visible", a = {}, i = {}, s = "") {
|
|
1180
|
-
const { getVariables: c, getControlName: r, getStateMachines: u } = mt(this.designerHostService), d = this.getRealTargetType(e),
|
|
1180
|
+
const { getVariables: c, getControlName: r, getStateMachines: u } = mt(this.designerHostService), d = this.getRealTargetType(e), m = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], f = {
|
|
1181
1181
|
type: "property-editor",
|
|
1182
|
-
propertyTypes:
|
|
1182
|
+
propertyTypes: m
|
|
1183
1183
|
};
|
|
1184
|
-
return
|
|
1184
|
+
return m.map((g) => {
|
|
1185
1185
|
switch (g) {
|
|
1186
1186
|
case "Const":
|
|
1187
1187
|
Object.assign(f, {
|
|
@@ -1271,8 +1271,8 @@ class gt {
|
|
|
1271
1271
|
const n = t && t.parent && t.parent.schema;
|
|
1272
1272
|
if (!n)
|
|
1273
1273
|
return;
|
|
1274
|
-
const a = n.contents.findIndex((s) => s.id === e), i =
|
|
1275
|
-
n.contents.splice(a, 1), n.contents.splice(a, 0, i),
|
|
1274
|
+
const a = n.contents.findIndex((s) => s.id === e), i = He(n.contents[a]);
|
|
1275
|
+
n.contents.splice(a, 1), n.contents.splice(a, 0, i), Te();
|
|
1276
1276
|
}
|
|
1277
1277
|
/**
|
|
1278
1278
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -1302,16 +1302,16 @@ class gt {
|
|
|
1302
1302
|
const t = e.propertyValue;
|
|
1303
1303
|
if (!((t && t.type) === "Expression" && t.expressionInfo))
|
|
1304
1304
|
return;
|
|
1305
|
-
const { expressionId: i, expressionInfo: s } = t, { targetId: c, targetType: r, expressionType: u, value: d, message:
|
|
1305
|
+
const { expressionId: i, expressionInfo: s } = t, { targetId: c, targetType: r, expressionType: u, value: d, message: m } = s, f = this.formSchemaUtils.getModule();
|
|
1306
1306
|
f.expressions = f.expressions || [];
|
|
1307
1307
|
const { expressions: g } = f;
|
|
1308
1308
|
let w = g.find((h) => h.target === c);
|
|
1309
1309
|
w || (w = { target: c, rules: [], targetType: r }, g.push(w));
|
|
1310
1310
|
const y = w.rules.find((h) => h.type === u);
|
|
1311
1311
|
if (y)
|
|
1312
|
-
y.value = d, y.message =
|
|
1312
|
+
y.value = d, y.message = m;
|
|
1313
1313
|
else {
|
|
1314
|
-
const h = { id: i, type: u, value: d, message:
|
|
1314
|
+
const h = { id: i, type: u, value: d, message: m };
|
|
1315
1315
|
w.rules.push(h);
|
|
1316
1316
|
}
|
|
1317
1317
|
delete t.expressionInfo;
|
|
@@ -1330,7 +1330,7 @@ class gt {
|
|
|
1330
1330
|
!r || !r.rules || (r.rules = r.rules.filter((u) => u.type !== i));
|
|
1331
1331
|
}
|
|
1332
1332
|
getExpressionOptions(e, t, n) {
|
|
1333
|
-
return new
|
|
1333
|
+
return new pt(this.formSchemaUtils).getExpressionOptions(e, t, n);
|
|
1334
1334
|
}
|
|
1335
1335
|
getRealTargetType(e) {
|
|
1336
1336
|
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(e.type) > -1 ? "Button" : e.binding && e.binding.field ? "Field" : "Container";
|
|
@@ -1349,7 +1349,7 @@ class gt {
|
|
|
1349
1349
|
}, t;
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
class
|
|
1352
|
+
class gt extends ft {
|
|
1353
1353
|
constructor(e, t) {
|
|
1354
1354
|
super(e, t);
|
|
1355
1355
|
}
|
|
@@ -1380,10 +1380,10 @@ class vt extends gt {
|
|
|
1380
1380
|
setPropertyRelates(u, d) {
|
|
1381
1381
|
switch (u && u.propertyID) {
|
|
1382
1382
|
case "dataSource": {
|
|
1383
|
-
const
|
|
1384
|
-
if (
|
|
1383
|
+
const m = a.formSchemaUtils.getViewModelById(a.viewModelId);
|
|
1384
|
+
if (m) {
|
|
1385
1385
|
const f = n.find((g) => g.label === u.propertyValue);
|
|
1386
|
-
|
|
1386
|
+
m.bindTo = f.bindTo;
|
|
1387
1387
|
}
|
|
1388
1388
|
a.designViewModelUtils.assembleDesignViewModel();
|
|
1389
1389
|
break;
|
|
@@ -1525,9 +1525,9 @@ class vt extends gt {
|
|
|
1525
1525
|
return e && e.bindTo ? e.bindTo.trim() !== "/" : !1;
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function vt(o, e) {
|
|
1529
1529
|
const t = o.schema, n = b(!0), a = b(!0);
|
|
1530
|
-
function i(
|
|
1530
|
+
function i(m) {
|
|
1531
1531
|
return !1;
|
|
1532
1532
|
}
|
|
1533
1533
|
function s() {
|
|
@@ -1539,13 +1539,13 @@ function ht(o, e) {
|
|
|
1539
1539
|
function r() {
|
|
1540
1540
|
return !0;
|
|
1541
1541
|
}
|
|
1542
|
-
function u(
|
|
1543
|
-
return new
|
|
1542
|
+
function u(m) {
|
|
1543
|
+
return new gt(m, e).getPropertyConfig(t);
|
|
1544
1544
|
}
|
|
1545
1545
|
function d() {
|
|
1546
|
-
var
|
|
1546
|
+
var m, f, g, w;
|
|
1547
1547
|
if (o && e) {
|
|
1548
|
-
const y = (
|
|
1548
|
+
const y = (m = o == null ? void 0 : o.componentInstance) == null ? void 0 : m.value.belongedComponentId;
|
|
1549
1549
|
let h = "", S = "";
|
|
1550
1550
|
const { formSchemaUtils: k } = e;
|
|
1551
1551
|
if (y) {
|
|
@@ -1571,9 +1571,118 @@ function ht(o, e) {
|
|
|
1571
1571
|
setComponentBasicInfoMap: d
|
|
1572
1572
|
};
|
|
1573
1573
|
}
|
|
1574
|
-
const
|
|
1574
|
+
const ht = "https://json-schema.org/draft/2020-12/schema", wt = "https://farris-design.gitee.io/list-view-table.schema.json", yt = "list-view-table", Ct = "A Farris Component", bt = "object", It = {
|
|
1575
|
+
id: {
|
|
1576
|
+
description: "The unique identifier for list-view-table",
|
|
1577
|
+
type: "string"
|
|
1578
|
+
},
|
|
1579
|
+
type: {
|
|
1580
|
+
description: "The type string of list-view-table",
|
|
1581
|
+
type: "string",
|
|
1582
|
+
default: "list-view-table"
|
|
1583
|
+
},
|
|
1584
|
+
appearance: {
|
|
1585
|
+
description: "",
|
|
1586
|
+
type: "object",
|
|
1587
|
+
properties: {
|
|
1588
|
+
class: {
|
|
1589
|
+
type: "string"
|
|
1590
|
+
},
|
|
1591
|
+
style: {
|
|
1592
|
+
type: "string"
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
default: {}
|
|
1596
|
+
},
|
|
1597
|
+
binding: {
|
|
1598
|
+
description: "",
|
|
1599
|
+
type: "object",
|
|
1600
|
+
default: {}
|
|
1601
|
+
},
|
|
1602
|
+
disable: {
|
|
1603
|
+
type: "string",
|
|
1604
|
+
default: !1
|
|
1605
|
+
},
|
|
1606
|
+
editable: {
|
|
1607
|
+
description: "",
|
|
1608
|
+
type: "boolean",
|
|
1609
|
+
default: !0
|
|
1610
|
+
},
|
|
1611
|
+
placeholder: {
|
|
1612
|
+
description: "",
|
|
1613
|
+
type: "string",
|
|
1614
|
+
default: ""
|
|
1615
|
+
},
|
|
1616
|
+
readonly: {
|
|
1617
|
+
description: "",
|
|
1618
|
+
type: "boolean",
|
|
1619
|
+
default: !1
|
|
1620
|
+
},
|
|
1621
|
+
require: {
|
|
1622
|
+
description: "",
|
|
1623
|
+
type: "boolean",
|
|
1624
|
+
default: !1
|
|
1625
|
+
},
|
|
1626
|
+
tabindex: {
|
|
1627
|
+
description: "",
|
|
1628
|
+
type: "number",
|
|
1629
|
+
default: -1
|
|
1630
|
+
},
|
|
1631
|
+
visible: {
|
|
1632
|
+
description: "",
|
|
1633
|
+
type: "boolean",
|
|
1634
|
+
default: !0
|
|
1635
|
+
}
|
|
1636
|
+
}, Vt = [
|
|
1637
|
+
"id",
|
|
1638
|
+
"type"
|
|
1639
|
+
], de = {
|
|
1640
|
+
$schema: ht,
|
|
1641
|
+
$id: wt,
|
|
1642
|
+
title: yt,
|
|
1643
|
+
description: Ct,
|
|
1644
|
+
type: bt,
|
|
1645
|
+
properties: It,
|
|
1646
|
+
required: Vt
|
|
1647
|
+
}, St = "list-view-table", Mt = "A Farris Component", kt = "object", xt = {
|
|
1648
|
+
basic: {
|
|
1649
|
+
description: "Basic Infomation",
|
|
1650
|
+
title: "基本信息",
|
|
1651
|
+
properties: {
|
|
1652
|
+
id: {
|
|
1653
|
+
description: "组件标识",
|
|
1654
|
+
title: "标识",
|
|
1655
|
+
type: "string",
|
|
1656
|
+
readonly: !0
|
|
1657
|
+
},
|
|
1658
|
+
type: {
|
|
1659
|
+
description: "组件类型",
|
|
1660
|
+
title: "控件类型",
|
|
1661
|
+
type: "select",
|
|
1662
|
+
editor: {
|
|
1663
|
+
type: "waiting for modification",
|
|
1664
|
+
enum: []
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
}, Et = {
|
|
1670
|
+
title: St,
|
|
1671
|
+
description: Mt,
|
|
1672
|
+
type: kt,
|
|
1673
|
+
categories: xt
|
|
1674
|
+
}, J = {
|
|
1675
|
+
data: { type: Array, default: [] }
|
|
1676
|
+
};
|
|
1677
|
+
se(J, de, q, H, Et);
|
|
1678
|
+
const ue = ie(
|
|
1679
|
+
J,
|
|
1680
|
+
de,
|
|
1681
|
+
q,
|
|
1682
|
+
H
|
|
1683
|
+
), me = /* @__PURE__ */ oe({
|
|
1575
1684
|
name: "FListViewTableDesign",
|
|
1576
|
-
props:
|
|
1685
|
+
props: J,
|
|
1577
1686
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
1578
1687
|
setup(o, e) {
|
|
1579
1688
|
const t = [{
|
|
@@ -1626,9 +1735,9 @@ const ce = /* @__PURE__ */ ie({
|
|
|
1626
1735
|
amount: 84.13,
|
|
1627
1736
|
avatar: "./assets/avatar7.png"
|
|
1628
1737
|
}];
|
|
1629
|
-
|
|
1630
|
-
const n = b(), a = K("design-item-context"), i =
|
|
1631
|
-
return
|
|
1738
|
+
$(() => o.data.length > 0 ? o.data : t);
|
|
1739
|
+
const n = b(), a = K("design-item-context"), i = le(n, a);
|
|
1740
|
+
return ae(() => {
|
|
1632
1741
|
n.value.componentInstance = i;
|
|
1633
1742
|
}), e.expose(i.value), () => l("div", {
|
|
1634
1743
|
ref: n
|
|
@@ -1720,18 +1829,18 @@ const ce = /* @__PURE__ */ ie({
|
|
|
1720
1829
|
class: "btn btn-link"
|
|
1721
1830
|
}, ["删除"])])])])])])])])])])]);
|
|
1722
1831
|
}
|
|
1723
|
-
}), G = /* @__PURE__ */
|
|
1832
|
+
}), G = /* @__PURE__ */ oe({
|
|
1724
1833
|
name: "FListViewDesign",
|
|
1725
1834
|
props: Y,
|
|
1726
1835
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
|
|
1727
1836
|
setup(o, e) {
|
|
1728
|
-
const t = b(), n = b(!0), a = b(!1), i = b([]), s = 0, c = b(o.columns), r =
|
|
1837
|
+
const t = b(), n = b(!0), a = b(!1), i = b([]), s = 0, c = b(o.columns), r = Pe(o, e), u = Fe(o), d = Re(o), m = Ne(o, u), f = Be(o, /* @__PURE__ */ new Map(), r, d, u), g = Ue(o, f, u, i, e), w = We(o, t), y = b(), h = K("designer-host-service"), S = K("design-item-context"), k = vt(S, h), x = le(y, S, k), F = $(() => f.dataView.value.length), B = $e(o, e, g, u), v = De(o, e, u, B, i), M = Oe(o), C = Ae(o, {}, M), p = Le(o, f, v, d, u, M, C), T = _e(o, u, C, p), R = je(o, u, C, p), N = Ge(o, c, f, F, s, p, T, R), {
|
|
1729
1838
|
getVisualData: L
|
|
1730
1839
|
} = N;
|
|
1731
|
-
i.value = L(0, F.value + s - 1),
|
|
1840
|
+
i.value = L(0, F.value + s - 1), ae(() => {
|
|
1732
1841
|
y.value.componentInstance = x;
|
|
1733
1842
|
}), e.expose(x.value);
|
|
1734
|
-
const E =
|
|
1843
|
+
const E = $(() => {
|
|
1735
1844
|
const _ = {
|
|
1736
1845
|
"f-list-view": !0,
|
|
1737
1846
|
"f-list-view-multiple": o.multiSelect,
|
|
@@ -1739,14 +1848,14 @@ const ce = /* @__PURE__ */ ie({
|
|
|
1739
1848
|
"h-100": !0
|
|
1740
1849
|
};
|
|
1741
1850
|
return o.size !== "default" && (_[`${o.size}-item`] = !0), _;
|
|
1742
|
-
}), V =
|
|
1851
|
+
}), V = $(() => !!e.slots.footer || n.value);
|
|
1743
1852
|
function I() {
|
|
1744
|
-
return o.header === "SearchBar" ?
|
|
1853
|
+
return o.header === "SearchBar" ? ne : o.header === "ContentHeader" ? Qe : ne;
|
|
1745
1854
|
}
|
|
1746
1855
|
const D = I(), {
|
|
1747
1856
|
renderHeader: P
|
|
1748
|
-
} = D(o, e, w), W =
|
|
1749
|
-
|
|
1857
|
+
} = D(o, e, w), W = Ze(), Q = et(o, e, f, W), pe = tt(o, e, i, Q, W, g);
|
|
1858
|
+
Je(o, e, i, f, m, W, g, N, pe, Q);
|
|
1750
1859
|
function fe(_) {
|
|
1751
1860
|
o.multiSelect && (_.preventDefault(), _.stopPropagation());
|
|
1752
1861
|
}
|
|
@@ -1763,132 +1872,23 @@ const ce = /* @__PURE__ */ ie({
|
|
|
1763
1872
|
onMouseleave: () => {
|
|
1764
1873
|
a.value = !1;
|
|
1765
1874
|
}
|
|
1766
|
-
}, [l(
|
|
1875
|
+
}, [l(me, null, null)]), V.value && l("div", {
|
|
1767
1876
|
class: "f-list-view-footer"
|
|
1768
1877
|
}, [e.slots.footer && e.slots.footer()])]);
|
|
1769
1878
|
}
|
|
1770
|
-
}),
|
|
1771
|
-
id: {
|
|
1772
|
-
description: "The unique identifier for list-view-table",
|
|
1773
|
-
type: "string"
|
|
1774
|
-
},
|
|
1775
|
-
type: {
|
|
1776
|
-
description: "The type string of list-view-table",
|
|
1777
|
-
type: "string",
|
|
1778
|
-
default: "list-view-table"
|
|
1779
|
-
},
|
|
1780
|
-
appearance: {
|
|
1781
|
-
description: "",
|
|
1782
|
-
type: "object",
|
|
1783
|
-
properties: {
|
|
1784
|
-
class: {
|
|
1785
|
-
type: "string"
|
|
1786
|
-
},
|
|
1787
|
-
style: {
|
|
1788
|
-
type: "string"
|
|
1789
|
-
}
|
|
1790
|
-
},
|
|
1791
|
-
default: {}
|
|
1792
|
-
},
|
|
1793
|
-
binding: {
|
|
1794
|
-
description: "",
|
|
1795
|
-
type: "object",
|
|
1796
|
-
default: {}
|
|
1797
|
-
},
|
|
1798
|
-
disable: {
|
|
1799
|
-
type: "string",
|
|
1800
|
-
default: !1
|
|
1801
|
-
},
|
|
1802
|
-
editable: {
|
|
1803
|
-
description: "",
|
|
1804
|
-
type: "boolean",
|
|
1805
|
-
default: !0
|
|
1806
|
-
},
|
|
1807
|
-
placeholder: {
|
|
1808
|
-
description: "",
|
|
1809
|
-
type: "string",
|
|
1810
|
-
default: ""
|
|
1811
|
-
},
|
|
1812
|
-
readonly: {
|
|
1813
|
-
description: "",
|
|
1814
|
-
type: "boolean",
|
|
1815
|
-
default: !1
|
|
1816
|
-
},
|
|
1817
|
-
require: {
|
|
1818
|
-
description: "",
|
|
1819
|
-
type: "boolean",
|
|
1820
|
-
default: !1
|
|
1821
|
-
},
|
|
1822
|
-
tabindex: {
|
|
1823
|
-
description: "",
|
|
1824
|
-
type: "number",
|
|
1825
|
-
default: -1
|
|
1826
|
-
},
|
|
1827
|
-
visible: {
|
|
1828
|
-
description: "",
|
|
1829
|
-
type: "boolean",
|
|
1830
|
-
default: !0
|
|
1831
|
-
}
|
|
1832
|
-
}, St = [
|
|
1833
|
-
"id",
|
|
1834
|
-
"type"
|
|
1835
|
-
], de = {
|
|
1836
|
-
$schema: wt,
|
|
1837
|
-
$id: yt,
|
|
1838
|
-
title: Ct,
|
|
1839
|
-
description: bt,
|
|
1840
|
-
type: It,
|
|
1841
|
-
properties: Vt,
|
|
1842
|
-
required: St
|
|
1843
|
-
}, Mt = "list-view-table", kt = "A Farris Component", xt = "object", Et = {
|
|
1844
|
-
basic: {
|
|
1845
|
-
description: "Basic Infomation",
|
|
1846
|
-
title: "基本信息",
|
|
1847
|
-
properties: {
|
|
1848
|
-
id: {
|
|
1849
|
-
description: "组件标识",
|
|
1850
|
-
title: "标识",
|
|
1851
|
-
type: "string",
|
|
1852
|
-
readonly: !0
|
|
1853
|
-
},
|
|
1854
|
-
type: {
|
|
1855
|
-
description: "组件类型",
|
|
1856
|
-
title: "控件类型",
|
|
1857
|
-
type: "select",
|
|
1858
|
-
editor: {
|
|
1859
|
-
type: "waiting for modification",
|
|
1860
|
-
enum: []
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
|
-
}, Tt = {
|
|
1866
|
-
title: Mt,
|
|
1867
|
-
description: kt,
|
|
1868
|
-
type: xt,
|
|
1869
|
-
categories: Et
|
|
1870
|
-
}, ue = {
|
|
1871
|
-
data: { type: Array, default: [] }
|
|
1872
|
-
};
|
|
1873
|
-
ne(ue, de, q, H, Tt);
|
|
1874
|
-
const pe = se(
|
|
1875
|
-
ue,
|
|
1876
|
-
de,
|
|
1877
|
-
q,
|
|
1878
|
-
H
|
|
1879
|
-
), Pt = Se();
|
|
1879
|
+
}), Tt = Ve();
|
|
1880
1880
|
G.register = (o, e, t, n, a) => {
|
|
1881
|
-
o["list-view"] = ye, e["list-view"] =
|
|
1881
|
+
o["list-view"] = ye, e["list-view"] = ce(a), o["list-view-table"] = be, e["list-view-table"] = ue(a), n["list-view"] = { bindingResolver: Tt };
|
|
1882
1882
|
};
|
|
1883
1883
|
G.registerDesigner = (o, e, t, n) => {
|
|
1884
|
-
o["list-view"] = G, e["list-view"] =
|
|
1884
|
+
o["list-view"] = G, e["list-view"] = ce(n), o["list-view-table"] = me, e["list-view-table"] = ue(n);
|
|
1885
1885
|
};
|
|
1886
|
-
const
|
|
1886
|
+
const _t = we(G);
|
|
1887
1887
|
export {
|
|
1888
1888
|
G as FListViewDesign,
|
|
1889
|
-
|
|
1890
|
-
|
|
1889
|
+
Tt as bindingResolver,
|
|
1890
|
+
_t as default,
|
|
1891
1891
|
Y as listViewDesignProps,
|
|
1892
|
-
|
|
1893
|
-
|
|
1892
|
+
Lt as propsResolver,
|
|
1893
|
+
ce as propsResolverGenerator
|
|
1894
1894
|
};
|