@farris/ui-vue 1.7.0-beta.4 → 1.7.0
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 +61 -312
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +56 -1481
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +8 -752
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +358 -351
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +110 -266
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +1371 -1284
- package/components/calendar/index.umd.cjs +30 -30
- package/components/code-editor/index.esm.js +169 -237
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +382 -351
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +502 -812
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +197 -183
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +199 -364
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +1501 -1465
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +136 -100
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2662 -3647
- package/components/component/index.umd.cjs +1 -8
- package/components/condition/index.esm.js +492 -2449
- package/components/condition/index.umd.cjs +1 -8
- package/components/content-container/index.esm.js +252 -241
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +505 -409
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3326 -3258
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1709 -1634
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +2693 -3021
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +102 -98
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +409 -358
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +124 -373
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +760 -573
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +354 -327
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +413 -359
- 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.css +1 -1
- package/components/events-editor/index.esm.js +1535 -1941
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +2 -7317
- package/components/expression-editor/index.umd.cjs +1 -427
- package/components/field-selector/index.esm.js +13 -13
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +140 -123
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1021 -1012
- 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 +448 -9000
- package/components/filter-condition-editor/index.umd.cjs +1 -427
- package/components/html-template/index.esm.js +167 -147
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +372 -352
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +361 -615
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +247 -325
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +835 -421
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +163 -549
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +39 -836
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +690 -474
- package/components/list-view/index.umd.cjs +6 -8
- package/components/loading/index.esm.js +128 -97
- package/components/loading/index.umd.cjs +2 -2
- package/components/locale/index.esm.js +361 -340
- package/components/locale/index.umd.cjs +5 -5
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +3396 -3368
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +1684 -1584
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +586 -609
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +357 -353
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +325 -318
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +31 -311
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +189 -1633
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +195 -175
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +761 -1057
- package/components/order/index.umd.cjs +7 -9
- package/components/page-footer/index.esm.js +48 -331
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +92 -73
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +195 -472
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +77 -76
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +148 -353
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +74 -68
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +872 -1800
- package/components/property-panel/index.umd.cjs +5 -12
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4223 -6205
- package/components/query-solution/index.umd.cjs +6 -13
- package/components/response-layout/index.esm.js +206 -170
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +378 -359
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2491 -2653
- package/components/schema-selector/index.umd.cjs +8 -10
- package/components/search-box/index.esm.js +79 -240
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +304 -289
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +8 -179
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +4 -9421
- package/components/sort-condition-editor/index.umd.cjs +1 -427
- package/components/splitter/index.esm.js +142 -1171
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +48 -47
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +460 -513
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +73 -217
- package/components/text/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +380 -375
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +40 -40
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +551 -771
- package/components/transfer/index.umd.cjs +6 -8
- package/components/tree-grid/index.esm.js +250 -235
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +157 -314
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +634 -1125
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +106 -359
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +89 -222
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +199 -290
- package/components/weather/index.umd.cjs +1 -1
- package/designer/accordion/index.esm.js +257 -0
- package/designer/accordion/index.umd.cjs +1 -0
- package/designer/avatar/index.esm.js +227 -0
- package/designer/avatar/index.umd.cjs +1 -0
- package/designer/binding-selector/index.esm.js +792 -0
- package/designer/binding-selector/index.umd.cjs +1 -0
- package/designer/button-edit/index.esm.js +210 -203
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/button-group/index.esm.js +282 -0
- package/designer/button-group/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +51 -45
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +89 -83
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/code-editor/index.esm.js +75 -0
- package/designer/code-editor/index.umd.cjs +1 -0
- package/designer/color-picker/index.esm.js +1096 -0
- package/designer/color-picker/index.umd.cjs +1 -0
- package/designer/combo-list/index.esm.js +1095 -0
- package/designer/combo-list/index.umd.cjs +1 -0
- package/designer/combo-tree/index.esm.js +186 -0
- package/designer/combo-tree/index.umd.cjs +1 -0
- package/designer/component/index.css +1 -0
- package/designer/component/index.esm.js +5002 -0
- package/designer/component/index.umd.cjs +1 -0
- package/designer/condition/index.esm.js +1899 -0
- package/designer/condition/index.umd.cjs +1 -0
- package/designer/data-grid/index.esm.js +5580 -6213
- package/designer/data-grid/index.umd.cjs +10 -17
- package/designer/data-view/index.esm.js +212 -191
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +621 -607
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.css +1 -1
- package/designer/drawer/index.esm.js +869 -620
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dropdown/index.esm.js +261 -0
- package/designer/dropdown/index.umd.cjs +1 -0
- package/designer/dynamic-form/index.esm.js +1166 -1384
- package/designer/dynamic-form/index.umd.cjs +1 -8
- package/designer/expression-editor/index.css +1 -0
- package/designer/expression-editor/index.esm.js +7006 -0
- package/designer/expression-editor/index.umd.cjs +427 -0
- package/designer/farris-designer.all.esm.js +10309 -10617
- package/designer/farris-designer.all.umd.cjs +17 -19
- package/designer/filter-condition-editor/index.css +1 -0
- package/designer/filter-condition-editor/index.esm.js +4795 -0
- package/designer/filter-condition-editor/index.umd.cjs +1 -0
- package/designer/html-template/index.esm.js +718 -0
- package/designer/html-template/index.umd.cjs +1 -0
- package/designer/image-cropper/index.esm.js +765 -0
- package/designer/image-cropper/index.umd.cjs +1 -0
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +72 -66
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/json-editor/index.esm.js +83 -0
- package/designer/json-editor/index.umd.cjs +1 -0
- package/designer/language-textbox/index.esm.js +783 -0
- package/designer/language-textbox/index.umd.cjs +8 -0
- package/designer/layout/index.esm.js +430 -0
- package/designer/layout/index.umd.cjs +1 -0
- package/designer/list-nav/index.esm.js +802 -0
- package/designer/list-nav/index.umd.cjs +1 -0
- package/designer/list-view/index.esm.js +864 -844
- package/designer/list-view/index.umd.cjs +7 -9
- package/designer/lookup/index.esm.js +2083 -0
- package/designer/lookup/index.umd.cjs +1 -0
- package/designer/menu-lookup/index.esm.js +46 -0
- package/designer/menu-lookup/index.umd.cjs +1 -0
- package/designer/modal/index.esm.js +137 -29
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +284 -0
- package/designer/nav/index.umd.cjs +1 -0
- package/designer/number-range/index.esm.js +1616 -0
- package/designer/number-range/index.umd.cjs +1 -0
- package/designer/number-spinner/index.esm.js +19 -17
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/order/index.css +1 -0
- package/designer/order/index.esm.js +2196 -0
- package/designer/order/index.umd.cjs +18 -0
- package/designer/page-footer/index.esm.js +290 -0
- package/designer/page-footer/index.umd.cjs +1 -0
- package/designer/page-header/index.esm.js +1003 -0
- package/designer/page-header/index.umd.cjs +1 -0
- package/designer/pagination/index.esm.js +591 -0
- package/designer/pagination/index.umd.cjs +1 -0
- package/designer/progress/index.esm.js +213 -0
- package/designer/progress/index.umd.cjs +1 -0
- package/designer/radio-group/index.esm.js +978 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +1 -1
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1471 -1416
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/search-box/index.esm.js +245 -0
- package/designer/search-box/index.umd.cjs +1 -0
- package/designer/section/index.esm.js +83 -78
- package/designer/section/index.umd.cjs +1 -1
- package/designer/smoke-detector/index.css +1 -0
- package/designer/smoke-detector/index.esm.js +178 -0
- package/designer/smoke-detector/index.umd.cjs +1 -0
- package/designer/sort-condition-editor/index.esm.js +138 -0
- package/designer/sort-condition-editor/index.umd.cjs +1 -0
- package/designer/splitter/index.esm.js +1120 -0
- package/designer/splitter/index.umd.cjs +1 -0
- package/designer/step/index.esm.js +226 -0
- package/designer/step/index.umd.cjs +1 -0
- package/designer/switch/index.esm.js +10 -10
- package/designer/switch/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +2447 -2698
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/text/index.esm.js +147 -0
- package/designer/text/index.umd.cjs +1 -0
- package/designer/time-picker/index.esm.js +101 -100
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/transfer/index.esm.js +254 -0
- package/designer/transfer/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +473 -810
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/tree-view/index.esm.js +313 -0
- package/designer/tree-view/index.umd.cjs +1 -0
- package/designer/uploader/index.esm.js +1190 -0
- package/designer/uploader/index.umd.cjs +2 -0
- package/designer/verify-detail/index.esm.js +258 -0
- package/designer/verify-detail/index.umd.cjs +1 -0
- package/designer/video/index.esm.js +136 -0
- package/designer/video/index.umd.cjs +1 -0
- package/designer/weather/index.css +1 -0
- package/designer/weather/index.esm.js +6244 -0
- package/designer/weather/index.umd.cjs +14 -0
- package/farris.all.esm.js +69941 -70514
- package/farris.all.umd.cjs +117 -117
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +2 -1
- package/locales/filter-bar/ui/zh-CHS.json +2 -1
- package/locales/filter-bar/ui/zh-CHT.json +2 -1
- package/locales/query-solution/ui/en.json +1 -1
- package/locales/query-solution/ui/zh-CHS.json +1 -1
- package/locales/query-solution/ui/zh-CHT.json +1 -1
- package/locales/ui/en.json +3 -2
- package/locales/ui/zh-CHS.json +3 -2
- package/locales/ui/zh-CHT.json +3 -2
- package/package.json +1 -1
- package/types/accordion/designer.d.ts +44 -0
- package/types/accordion/src/accordion.props.d.ts +0 -1
- package/types/accordion/src/components/accordion-item.props.d.ts +0 -1
- package/types/avatar/designer.d.ts +29 -0
- package/types/avatar/src/avatar.props.d.ts +0 -1
- package/types/avatar/src/property-config/avatar.property-config.d.ts +1 -1
- package/types/{expression-editor/index.d.ts → binding-selector/designer.d.ts} +6 -6
- package/types/binding-selector/index.d.ts +0 -54
- package/types/binding-selector/src/binding-selector.props.d.ts +0 -1
- package/types/button-group/designer.d.ts +29 -0
- package/types/button-group/index.d.ts +15 -0
- package/types/button-group/src/button-group.props.d.ts +0 -1
- package/types/calendar/src/calendar.props.d.ts +1 -0
- package/types/calendar/src/components/month/month-view.component.d.ts +6 -6
- package/types/calendar/src/composition/use-calendar-events.d.ts +1 -1
- package/types/calendar/src/composition/use-locales.d.ts +1 -0
- package/types/calendar/src/property-config/calendar.property-config.d.ts +2 -0
- package/types/capsule/src/capsule-item.component.d.ts +6 -6
- package/types/checkbox/designer.d.ts +2 -0
- package/types/checkbox-group/designer.d.ts +2 -0
- package/types/code-editor/designer.d.ts +5 -0
- package/types/code-editor/index.d.ts +0 -1
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +0 -2
- package/types/color-picker/designer.d.ts +29 -0
- package/types/color-picker/index.d.ts +0 -15
- package/types/color-picker/src/color-picker.props.d.ts +0 -1
- package/types/combo-list/designer.d.ts +29 -0
- package/types/combo-list/src/combo-list.props.d.ts +1 -0
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +6 -0
- package/types/combo-tree/designer.d.ts +5 -0
- package/types/combo-tree/src/combo-tree.props.d.ts +0 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +7 -7
- package/types/comment/src/comment.props.d.ts +4 -0
- package/types/comment/src/designer/comment.design.props.d.ts +4 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/use-mobile.d.ts +1 -0
- package/types/component/designer.d.ts +35 -0
- package/types/component/index.d.ts +0 -2
- package/types/component/src/component.props.d.ts +0 -8
- package/types/component/src/composition/field-tree-builder.d.ts +1 -0
- package/types/components.d.ts +2 -6
- package/types/condition/designer.d.ts +56 -0
- package/types/condition/index.d.ts +0 -55
- package/types/content-container/index.d.ts +3 -2
- package/types/content-container/src/content-container.props.d.ts +1 -0
- package/types/data-grid/designer.d.ts +2 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/designer/grid-field-editor.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +7 -1
- package/types/data-view/composition/use-mobile.d.ts +3 -0
- package/types/data-view/designer/property-config/use-command-option.d.ts +11 -0
- package/types/data-view/index.d.ts +1 -0
- package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +3 -3
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -0
- package/types/designer-outline/src/designer-outline.component.d.ts +3 -3
- package/types/designer-outline/src/types.d.ts +5 -1
- package/types/drawer/designer.d.ts +12 -0
- package/types/drawer/src/designer/drawer-toolbar.design.props.d.ts +12 -0
- package/types/drawer/src/designer/drawer.design.component.d.ts +8 -0
- package/types/drawer/src/designer/drawer.design.props.d.ts +4 -0
- package/types/drawer/src/schema/schema-mapper.d.ts +1 -0
- package/types/drawer/src/schema/schema-resolver.d.ts +1 -0
- package/types/dropdown/designer.d.ts +6 -0
- package/types/dropdown/index.d.ts +27 -6
- package/types/dropdown/src/dropdown.item.component.d.ts +2 -2
- package/types/dropdown/src/dropdown.props.d.ts +0 -1
- package/types/dynamic-form/designer.d.ts +3 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +11 -0
- package/types/dynamic-resolver/index.d.ts +3 -0
- package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
- 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-view/src/components/maps.d.ts +883 -1
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/dynamic-view/src/types.d.ts +4 -0
- package/types/expression-editor/designer.d.ts +9 -0
- package/types/field-selector/index.d.ts +2 -1
- package/types/fieldset/index.d.ts +3 -2
- package/types/fieldset/src/fieldset.props.d.ts +1 -0
- package/types/filter-bar/src/composition/types.d.ts +1 -1
- package/types/filter-bar/src/composition/use-size.d.ts +2 -2
- package/types/filter-bar/src/locale/locale.d.ts +1 -0
- package/types/filter-condition-editor/designer.d.ts +10 -0
- package/types/filter-condition-editor/index.d.ts +0 -9
- 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 +0 -1
- package/types/html-template/designer.d.ts +31 -0
- package/types/html-template/src/designer/html-template.design.props.d.ts +9 -0
- package/types/html-template/src/html-template.props.d.ts +2 -0
- package/types/image-cropper/designer.d.ts +4 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/input-group/designer.d.ts +2 -0
- package/types/json-editor/designer.d.ts +5 -0
- package/types/json-editor/src/components/editable-combo/editable-combo.component.d.ts +3 -3
- package/types/json-editor/src/components/editable-combo/popup-container.component.d.ts +3 -3
- package/types/json-editor/src/json-editor.props.d.ts +0 -1
- package/types/language-textbox/index.d.ts +6 -6
- package/types/language-textbox/src/language-textbox.component.d.ts +2 -2
- package/types/language-textbox/src/language-textbox.props.d.ts +1 -0
- package/types/layout/index.d.ts +1 -0
- package/types/layout/src/components/layout-pane.props.d.ts +0 -1
- package/types/layout/src/layout.props.d.ts +0 -1
- package/types/list-nav/index.d.ts +24 -5
- package/types/list-nav/src/list-nav.props.d.ts +0 -1
- package/types/list-view/index.d.ts +1 -0
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/list-view/src/designer/list-view.design.props.d.ts +1 -0
- package/types/list-view/src/list-view-table.props.d.ts +1 -0
- package/types/loading/index.d.ts +6 -6
- package/types/loading/src/loading.component.d.ts +3 -3
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +6 -6
- package/types/lookup/src/lookup.props.d.ts +1 -0
- package/types/lookup/src/property-config/external-lookup.property-config.d.ts +1 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +1 -0
- package/types/menu-lookup/designer.d.ts +5 -0
- package/types/menu-lookup/src/menu-lookup.props.d.ts +0 -1
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
- package/types/modal/designer.d.ts +2 -0
- package/types/modal/index.d.ts +30 -24
- package/types/modal/src/modal.component.d.ts +15 -12
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/nav/designer.d.ts +6 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/nav.props.d.ts +0 -1
- package/types/notify/index.d.ts +3 -3
- package/types/notify/src/notify.component.d.ts +2 -2
- package/types/number-range/designer.d.ts +29 -0
- package/types/number-range/src/number-range.props.d.ts +0 -1
- package/types/number-spinner/src/composition/types.d.ts +1 -0
- package/types/order/designer.d.ts +6 -0
- package/types/order/index.d.ts +36 -5
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +0 -1
- package/types/page-footer/designer.d.ts +6 -0
- package/types/page-footer/index.d.ts +0 -2
- package/types/page-footer/src/page-footer.props.d.ts +0 -1
- package/types/page-header/index.d.ts +3 -2
- package/types/page-header/src/designer/page-header.design.props.d.ts +20 -0
- package/types/page-header/src/page-header.props.d.ts +2 -0
- package/types/pagination/designer.d.ts +29 -0
- package/types/pagination/index.d.ts +15 -0
- package/types/pagination/src/pagination.props.d.ts +0 -1
- package/types/popover/index.d.ts +3 -3
- package/types/popover/src/composition/use-resize.d.ts +1 -1
- package/types/popover/src/popover.component.d.ts +2 -2
- package/types/progress/designer.d.ts +29 -0
- package/types/progress/src/progress.props.d.ts +0 -1
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +4 -4
- package/types/query-solution/src/composition/types.d.ts +8 -2
- package/types/query-solution/src/composition/use-header.d.ts +2 -2
- package/types/query-solution/src/composition/use-solution-utils.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -0
- package/types/query-solution/src/designer/solution-preset-config/solution-preset.props.d.ts +1 -0
- package/types/query-solution/src/query-solution.props.d.ts +1 -0
- package/types/radio-group/designer.d.ts +4 -1
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +1 -0
- package/types/response-layout/index.d.ts +3 -2
- package/types/response-layout/src/component/response-layout-item.props.d.ts +1 -0
- package/types/response-layout/src/property-config/response-layout-splitter/response-layout-splitter.props.d.ts +1 -0
- package/types/response-layout/src/response-layout.props.d.ts +1 -0
- package/types/response-toolbar/designer.d.ts +2 -1
- package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +1 -0
- package/types/search-box/designer.d.ts +52 -0
- package/types/search-box/index.d.ts +1 -17
- package/types/search-box/src/components/search-box-container.component.d.ts +3 -3
- package/types/search-box/src/search-box.props.d.ts +0 -1
- package/types/section/designer.d.ts +1 -0
- package/types/smoke-detector/designer.d.ts +6 -0
- package/types/smoke-detector/index.d.ts +0 -2
- package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -1
- package/types/sort-condition-editor/designer.d.ts +9 -0
- package/types/sort-condition-editor/index.d.ts +2 -7
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +0 -1
- package/types/splitter/designer.d.ts +32 -0
- package/types/splitter/index.d.ts +1 -0
- package/types/splitter/src/components/splitter-pane.props.d.ts +0 -1
- package/types/splitter/src/splitter.props.d.ts +0 -1
- package/types/step/designer.d.ts +6 -0
- package/types/tabs/designer.d.ts +1 -0
- package/types/tabs/index.d.ts +0 -1
- package/types/tabs/src/composition/types.d.ts +1 -0
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +1 -0
- package/types/tags/index.d.ts +3 -3
- package/types/tags/src/tags.component.d.ts +1 -1
- package/types/text/designer.d.ts +6 -0
- package/types/text/index.d.ts +24 -20
- package/types/text/src/text.props.d.ts +0 -1
- package/types/time-picker/src/components/time.component.d.ts +3 -3
- package/types/transfer/designer.d.ts +35 -0
- package/types/transfer/src/transfer.props.d.ts +0 -1
- package/types/tree-view/designer.d.ts +29 -0
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
- package/types/uploader/designer.d.ts +141 -0
- package/types/uploader/index.d.ts +6 -6
- package/types/uploader/src/components/upload-progress.component.d.ts +3 -3
- package/types/uploader/src/uploader.component.d.ts +3 -3
- package/types/uploader/src/uploader.props.d.ts +0 -1
- package/types/verify-detail/designer.d.ts +6 -0
- package/types/verify-detail/index.d.ts +58 -5
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +0 -1
- package/types/video/designer.d.ts +6 -0
- package/types/video/index.d.ts +24 -20
- package/types/video/src/video.props.d.ts +0 -1
- package/components/sort-condition-editor/index.css +0 -1
- package/package.zip +0 -0
- package/types/designer-toolbox/index.d.ts +0 -3
- package/types/designer-toolbox/src/toolbox.component.d.ts +0 -14
- package/types/designer-toolbox/src/toolbox.props.d.ts +0 -29
- package/types/designer-toolbox/src/types.d.ts +0 -21
- package/types/designer.d.ts +0 -13
- package/types/flow-canvas/index.d.ts +0 -3
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +0 -8
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +0 -3
- package/types/flow-canvas/src/composition/types.d.ts +0 -42
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-connections.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-curve.d.ts +0 -4
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-drawing.d.ts +0 -4
- package/types/flow-canvas/src/flow-canvas.component.d.ts +0 -8
- package/types/flow-canvas/src/flow-canvas.props.d.ts +0 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout-pane.design.component.d.ts +0 -8
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout.design.component.d.ts +0 -8
- package/types/layout/src/schema/schema-mapper.d.ts +0 -2
- package/types/layout/src/schema/schema-resolver.d.ts +0 -2
- package/types/list-nav/src/designer/use-designer-rules.d.ts +0 -2
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +0 -8
- package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
- package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
- /package/{components → designer}/condition/index.css +0 -0
- /package/{components → designer}/uploader/index.css +0 -0
- /package/types/{list-nav/src/designer/list-nav.design.component.d.ts → dynamic-form/src/component/form-control/form-control.component.d.ts} +0 -0
|
@@ -1,92 +1,96 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { dynamicFormGroupProps as
|
|
5
|
-
import {
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import "../../components/
|
|
12
|
-
import "
|
|
13
|
-
import "../
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
19
|
-
import "../../components/
|
|
20
|
-
import
|
|
21
|
-
import "
|
|
22
|
-
import "../
|
|
23
|
-
import "../
|
|
24
|
-
import "../../components/
|
|
25
|
-
import "
|
|
26
|
-
import "../../components/
|
|
27
|
-
import "
|
|
28
|
-
import "
|
|
29
|
-
import "../input-group/index.esm.js";
|
|
30
|
-
import "../../components/layout/index.esm.js";
|
|
31
|
-
import "../../components/list-nav/index.esm.js";
|
|
32
|
-
import "../list-view/index.esm.js";
|
|
33
|
-
import "../../components/lookup/index.esm.js";
|
|
34
|
-
import "../../components/
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var Ne = (t, e, o) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
+
var se = (t, e, o) => Ne(t, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
+
import { dynamicFormGroupProps as Ve, FDynamicFormLabel as Ue, responseFormProps as $e, dynamicFormInputProps as Ae, FResponseForm as Re, FDynamicFormInput as qe } from "../../components/dynamic-form/index.esm.js";
|
|
5
|
+
import { schemaResolverMap as Se, propertyEffectMap as Ge, propertyConfigSchemaMap as je, schemaMap as Te, createPropsResolver as le, propertyConfigSchemaMapForDesigner as Oe, resolveAppearance as Ze, createFormGroupEditorResolver as We } from "../../components/dynamic-resolver/index.esm.js";
|
|
6
|
+
import { defineComponent as _, ref as B, watch as ae, computed as j, createVNode as b, createTextVNode as X, mergeProps as me, inject as Q, onMounted as ce, withDirectives as Je, resolveDirective as ze } from "vue";
|
|
7
|
+
import Xe from "../accordion/index.esm.js";
|
|
8
|
+
import Ke from "../avatar/index.esm.js";
|
|
9
|
+
import Qe from "../button-edit/index.esm.js";
|
|
10
|
+
import _e from "../button-group/index.esm.js";
|
|
11
|
+
import Ye from "../../components/calendar/index.esm.js";
|
|
12
|
+
import He from "../capsule/index.esm.js";
|
|
13
|
+
import he from "../checkbox/index.esm.js";
|
|
14
|
+
import Ce from "../checkbox-group/index.esm.js";
|
|
15
|
+
import et from "../combo-list/index.esm.js";
|
|
16
|
+
import tt from "../combo-tree/index.esm.js";
|
|
17
|
+
import ot from "../component/index.esm.js";
|
|
18
|
+
import nt from "../color-picker/index.esm.js";
|
|
19
|
+
import rt from "../../components/content-container/index.esm.js";
|
|
20
|
+
import it from "../date-picker/index.esm.js";
|
|
21
|
+
import at from "../data-grid/index.esm.js";
|
|
22
|
+
import st from "../dropdown/index.esm.js";
|
|
23
|
+
import lt from "../dynamic-form/index.esm.js";
|
|
24
|
+
import ut from "../../components/events-editor/index.esm.js";
|
|
25
|
+
import ct from "../../components/filter-bar/index.esm.js";
|
|
26
|
+
import pt from "../../components/field-selector/index.esm.js";
|
|
27
|
+
import dt from "../binding-selector/index.esm.js";
|
|
28
|
+
import mt from "../image-cropper/index.esm.js";
|
|
29
|
+
import ft from "../input-group/index.esm.js";
|
|
30
|
+
import yt from "../../components/layout/index.esm.js";
|
|
31
|
+
import gt from "../../components/list-nav/index.esm.js";
|
|
32
|
+
import ht from "../list-view/index.esm.js";
|
|
33
|
+
import Ct from "../../components/lookup/index.esm.js";
|
|
34
|
+
import vt from "../../components/mapping-editor/index.esm.js";
|
|
35
|
+
import Ft from "../nav/index.esm.js";
|
|
36
|
+
import bt from "../number-range/index.esm.js";
|
|
37
|
+
import wt from "../number-spinner/index.esm.js";
|
|
38
|
+
import It from "../order/index.esm.js";
|
|
39
|
+
import Vt from "../../components/page-header/index.esm.js";
|
|
40
|
+
import Tt from "../page-footer/index.esm.js";
|
|
41
|
+
import kt from "../pagination/index.esm.js";
|
|
42
|
+
import Mt from "../progress/index.esm.js";
|
|
43
|
+
import Bt from "../../components/query-solution/index.esm.js";
|
|
44
|
+
import xt from "../radio-group/index.esm.js";
|
|
45
|
+
import Et from "../rate/index.esm.js";
|
|
46
|
+
import Pt from "../response-toolbar/index.esm.js";
|
|
47
|
+
import Lt from "../../components/response-layout/index.esm.js";
|
|
48
|
+
import Dt, { useResponseLayoutEditorSetting as Nt } from "../response-layout-editor/index.esm.js";
|
|
49
|
+
import Ut from "../search-box/index.esm.js";
|
|
50
|
+
import $t from "../section/index.esm.js";
|
|
51
|
+
import At from "../smoke-detector/index.esm.js";
|
|
52
|
+
import Rt from "../splitter/index.esm.js";
|
|
53
|
+
import qt from "../step/index.esm.js";
|
|
54
|
+
import St from "../switch/index.esm.js";
|
|
55
|
+
import Gt from "../tabs/index.esm.js";
|
|
56
|
+
import jt from "../tags/index.esm.js";
|
|
57
|
+
import Ot from "../text/index.esm.js";
|
|
58
|
+
import Zt from "../time-picker/index.esm.js";
|
|
59
|
+
import Wt from "../transfer/index.esm.js";
|
|
60
|
+
import Jt from "../tree-view/index.esm.js";
|
|
61
|
+
import zt from "../uploader/index.esm.js";
|
|
62
|
+
import Xt from "../verify-detail/index.esm.js";
|
|
63
|
+
import Kt from "../video/index.esm.js";
|
|
64
|
+
import Qt from "../textarea/index.esm.js";
|
|
65
|
+
import _t from "../../components/schema-selector/index.esm.js";
|
|
66
|
+
import Yt from "../tree-grid/index.esm.js";
|
|
67
|
+
import Ht from "../../components/event-parameter/index.esm.js";
|
|
68
|
+
import eo from "../filter-condition-editor/index.esm.js";
|
|
69
|
+
import to from "../../components/fieldset/index.esm.js";
|
|
70
|
+
import oo from "../sort-condition-editor/index.esm.js";
|
|
71
|
+
import no from "../menu-lookup/index.esm.js";
|
|
72
|
+
import ro from "../drawer/index.esm.js";
|
|
73
|
+
import io from "../json-editor/index.esm.js";
|
|
74
|
+
import ao from "../../components/property-editor/index.esm.js";
|
|
75
|
+
import so from "../expression-editor/index.esm.js";
|
|
76
|
+
import lo from "../code-editor/index.esm.js";
|
|
77
|
+
import uo from "../html-template/index.esm.js";
|
|
78
|
+
import co from "../../components/collection-property-editor/index.esm.js";
|
|
79
|
+
import po from "../modal/index.esm.js";
|
|
80
|
+
import mo from "../../components/external-container/index.esm.js";
|
|
81
|
+
import fo from "../../components/language-textbox/index.esm.js";
|
|
82
|
+
import yo from "../../components/image/index.esm.js";
|
|
83
|
+
import go from "../../components/comment/index.esm.js";
|
|
84
|
+
import { useThirdComponent as ke, isMobilePhone as ho, useGuid as ve, areaResponseDirective as Co, useTextBoxDesign as vo, FormSchemaEntityField$Type as Fe, FormSchemaEntityFieldTypeName as be } from "../../components/common/index.esm.js";
|
|
85
|
+
import { DgControl as a, refreshCanvas as Fo, UseTemplateDragAndDropRules as bo, useDragulaCommonRule as wo, useDesignerComponent as fe } from "../../components/designer-canvas/index.esm.js";
|
|
86
|
+
import { BaseControlProperty as Io, FormBindingType as oe, InputBaseProperty as Vo } from "../../components/property-panel/index.esm.js";
|
|
35
87
|
import "../../components/nav/index.esm.js";
|
|
36
|
-
import "../number-spinner/index.esm.js";
|
|
37
|
-
import "../../components/number-range/index.esm.js";
|
|
38
|
-
import "../../components/order/index.esm.js";
|
|
39
|
-
import "../../components/page-header/index.esm.js";
|
|
40
|
-
import "../../components/page-footer/index.esm.js";
|
|
41
|
-
import "../../components/pagination/index.esm.js";
|
|
42
|
-
import "../../components/progress/index.esm.js";
|
|
43
|
-
import "../../components/query-solution/index.esm.js";
|
|
44
|
-
import "../radio-group/index.esm.js";
|
|
45
|
-
import "../rate/index.esm.js";
|
|
46
|
-
import "../response-toolbar/index.esm.js";
|
|
47
|
-
import "../../components/response-layout/index.esm.js";
|
|
48
|
-
import "../../components/search-box/index.esm.js";
|
|
49
|
-
import "../section/index.esm.js";
|
|
50
|
-
import "../../components/smoke-detector/index.esm.js";
|
|
51
|
-
import "../../components/splitter/index.esm.js";
|
|
52
88
|
import "../../components/step/index.esm.js";
|
|
53
|
-
import "../switch/index.esm.js";
|
|
54
|
-
import "../tabs/index.esm.js";
|
|
55
|
-
import "../tags/index.esm.js";
|
|
56
|
-
import "../../components/text/index.esm.js";
|
|
57
|
-
import "../time-picker/index.esm.js";
|
|
58
|
-
import "../../components/transfer/index.esm.js";
|
|
59
|
-
import "../../components/tree-view/index.esm.js";
|
|
60
|
-
import "../../components/uploader/index.esm.js";
|
|
61
|
-
import "../../components/verify-detail/index.esm.js";
|
|
62
|
-
import "../../components/component/index.esm.js";
|
|
63
|
-
import "../../components/video/index.esm.js";
|
|
64
|
-
import "../textarea/index.esm.js";
|
|
65
|
-
import "../tree-grid/index.esm.js";
|
|
66
|
-
import "../../components/fieldset/index.esm.js";
|
|
67
|
-
import "../drawer/index.esm.js";
|
|
68
89
|
import "../../components/html-template/index.esm.js";
|
|
69
|
-
import "
|
|
70
|
-
import "../../components/
|
|
71
|
-
import {
|
|
72
|
-
|
|
73
|
-
import "../../components/events-editor/index.esm.js";
|
|
74
|
-
import "../../components/field-selector/index.esm.js";
|
|
75
|
-
import "../../components/binding-selector/index.esm.js";
|
|
76
|
-
import "../../components/mapping-editor/index.esm.js";
|
|
77
|
-
import "../../components/schema-selector/index.esm.js";
|
|
78
|
-
import "../../components/event-parameter/index.esm.js";
|
|
79
|
-
import "../../components/filter-condition-editor/index.esm.js";
|
|
80
|
-
import "../../components/sort-condition-editor/index.esm.js";
|
|
81
|
-
import "../../components/menu-lookup/index.esm.js";
|
|
82
|
-
import "../../components/json-editor/index.esm.js";
|
|
83
|
-
import "../../components/property-editor/index.esm.js";
|
|
84
|
-
import "../../components/expression-editor/index.esm.js";
|
|
85
|
-
import "../../components/code-editor/index.esm.js";
|
|
86
|
-
import "../../components/collection-property-editor/index.esm.js";
|
|
87
|
-
import "../modal/index.esm.js";
|
|
88
|
-
import { FMessageBoxService as Xe } from "../../components/message-box/index.esm.js";
|
|
89
|
-
const he = {
|
|
90
|
+
import { cloneDeep as To } from "lodash-es";
|
|
91
|
+
import ue from "../../components/combo-list/index.esm.js";
|
|
92
|
+
import { FMessageBoxService as ko } from "../../components/message-box/index.esm.js";
|
|
93
|
+
const ye = {
|
|
90
94
|
id: { type: String, default: "" },
|
|
91
95
|
customClass: { type: String, default: "" },
|
|
92
96
|
customStyle: { type: String, default: "" },
|
|
@@ -107,400 +111,711 @@ const he = {
|
|
|
107
111
|
componentId: { type: String, default: "" },
|
|
108
112
|
errors: { type: Object, default: null },
|
|
109
113
|
fill: { type: Boolean, default: !1 }
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
114
|
+
}, Mo = {
|
|
115
|
+
id: { type: String },
|
|
116
|
+
required: { type: Boolean, default: !1 },
|
|
117
|
+
text: { type: String, default: "" },
|
|
118
|
+
title: { type: String },
|
|
119
|
+
valid: { type: Boolean, default: !0 },
|
|
120
|
+
inValidTip: { type: String, default: "" },
|
|
121
|
+
/**
|
|
122
|
+
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
123
|
+
*/
|
|
124
|
+
showType: { type: String, default: "visible" }
|
|
125
|
+
}, Bo = /* @__PURE__ */ _({
|
|
126
|
+
name: "FDynamicFormLabel",
|
|
127
|
+
props: Mo,
|
|
128
|
+
emits: [],
|
|
129
|
+
setup(t, e) {
|
|
130
|
+
B(t.title || t.text);
|
|
131
|
+
const o = B(t.required), i = B(t.text), n = B(t.valid), l = B(t.inValidTip);
|
|
132
|
+
ae(() => t.text, () => {
|
|
133
|
+
i.value = t.text;
|
|
134
|
+
}), ae(() => t.required, (F, m) => {
|
|
135
|
+
F !== m && (o.value = F);
|
|
136
|
+
}), ae([() => t.valid, () => t.inValidTip], ([F, m]) => {
|
|
137
|
+
n.value = F, l.value = m;
|
|
138
|
+
});
|
|
139
|
+
const p = j(() => n.value ? i.value : l.value), C = j(() => n.value ? "" : "color:red"), g = j(() => ({
|
|
140
|
+
"col-form-label": !0,
|
|
141
|
+
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
142
|
+
"f-width-auto": o.value && (t.showType === "none" || !i.value)
|
|
143
|
+
})), y = j(() => t.showType === "force-none" ? !1 : t.showType === "reserve-space" || o.value || !!i.value && t.showType !== "none");
|
|
144
|
+
return () => y.value && b("label", {
|
|
145
|
+
class: g.value,
|
|
146
|
+
title: p.value,
|
|
147
|
+
style: C.value
|
|
148
|
+
}, [!n.value && b("span", {
|
|
149
|
+
class: "f-icon f-icon-warning mr-1",
|
|
150
|
+
style: "color: red; min-width: 16px;",
|
|
151
|
+
title: l.value
|
|
152
|
+
}, null), b("span", {
|
|
153
|
+
class: "farris-label-text"
|
|
154
|
+
}, [o.value && b("span", {
|
|
155
|
+
class: "farris-label-info text-danger"
|
|
156
|
+
}, [X("*")]), t.showType === "visible" && i.value])]);
|
|
157
|
+
}
|
|
158
|
+
}), { globalStorageKey: xo } = ke(), u = {}, c = {}, d = {}, f = {};
|
|
159
|
+
async function Eo() {
|
|
160
|
+
{
|
|
161
|
+
const t = {
|
|
162
|
+
schemaMap: Te,
|
|
163
|
+
propertyConfigSchemaMap: je,
|
|
164
|
+
propertyEffectMap: Ge,
|
|
165
|
+
schemaResolverMap: Se
|
|
166
|
+
};
|
|
167
|
+
Ke.register(u, c, d, f), Xe.register(u, c, d, f), Qe.register(u, c, d, f), _e.register(u, c, d, f), Ye.register(u, c, d, f, t), He.register(u, c, d, f), he.register(u, c, d, f, t), Ce.register(u, c, d, f, t), he.register(u, c, d, f, t), Ce.register(u, c, d, f, t), et.register(u, c, d, f, t), tt.register(u, c, d, f), ot.register(u, c, d, f), rt.register(u, c, d, f, t), nt.register(u, c, d, f), it.register(u, c, d, f, t), at.register(u, c, d, f, t), st.register(u, c, d, f), lt.register(u, c, d, f, t), ut.register(u, c, d, f), so.register(u, c, d, f), ct.register(u, c, d, f), pt.register(u, c, d, f), eo.register(u, c, d, f), mt.register(u, c, d, f), ft.register(u, c, d, f, t), yt.register(u, c, d, f, t), ht.register(u, c, d, f, t), gt.register(u, c, d, f), Ct.register(u, c, d, f, t), vt.register(u, c, d, f), Ft.register(u, c, d, f), bt.register(u, c, d, f), wt.register(u, c, d, f, t), It.register(u, c, d, f), Vt.register(u, c, d, f, t), Tt.register(u, c, d, f), kt.register(u, c, d, f), Mt.register(u, c, d, f), Bt.register(u, c, d, f, t), xt.register(u, c, d, f, t), Et.register(u, c, d, f), Lt.register(u, c, d, f, t), Dt.register(u, c, d, f), Pt.register(u, c, d, f), _t.register(u, c, d), Ut.register(u, c, d, f), $t.register(u, c, d, f, t), At.register(u, c, d, f), Rt.register(u, c, d, f), qt.register(u, c, d, f), St.register(u, c, d, f, t), oo.register(u, c, d, f), Gt.register(u, c, d, f, t), jt.register(u, c, d, f), Ot.register(u, c, d, f), Zt.register(u, c, d, f, t), Wt.register(u, c, d, f), Jt.register(u, c, d, f), Xt.register(u, c, d, f), zt.register(u, c, d, f), Kt.register(u, c, d, f), Qt.register(u, c, d, f, t), Yt.register(u, c, d, f), dt.register(u, c, d, f), Ht.register(u, c, d, f), to.register(u, c, d, f, t), no.register(u, c, d, f), ro.register(u, c, d, f), io.register(u, c, d, f), ao.register(u, c, d, f), lo.register(u, c, d, f), uo.register(u, c, d, f, t), co.register(u, c, d, f), po.register(u, c, d, f), mo.register(u, c, d, f), fo.register(u, c, d, f, t), yo.register(u, c, d, f, t), go.register(u, c, d, f);
|
|
168
|
+
const e = window[xo];
|
|
169
|
+
if (e)
|
|
170
|
+
for (const o in e)
|
|
171
|
+
e[o].createPropsResolver = le, e[o].register(u, c, d);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function Po() {
|
|
175
|
+
Eo();
|
|
176
|
+
function t(p) {
|
|
177
|
+
const C = u[p];
|
|
178
|
+
if (!C)
|
|
179
|
+
throw new Error(`Could not find the editor of type '${p}'`);
|
|
180
|
+
return C;
|
|
181
|
+
}
|
|
182
|
+
function e(p, C) {
|
|
183
|
+
const g = c[p];
|
|
184
|
+
return g ? g(C) : {};
|
|
185
|
+
}
|
|
186
|
+
function o(p) {
|
|
187
|
+
switch (p) {
|
|
188
|
+
case "check-box":
|
|
189
|
+
return "onChangeValue";
|
|
190
|
+
case "switch":
|
|
191
|
+
return "onModelValueChanged";
|
|
192
|
+
case "check-group":
|
|
193
|
+
return "onChangeValue";
|
|
194
|
+
case "combo-list":
|
|
195
|
+
case "combo-tree":
|
|
196
|
+
return "onChange";
|
|
197
|
+
case "combo-lookup":
|
|
198
|
+
return "";
|
|
199
|
+
case "year-range":
|
|
200
|
+
case "year-picker":
|
|
201
|
+
case "month-range":
|
|
202
|
+
case "month-picker":
|
|
203
|
+
case "date-range":
|
|
204
|
+
case "datetime-range":
|
|
205
|
+
case "datetime-picker":
|
|
206
|
+
return "onDatePicked";
|
|
207
|
+
case "date-picker":
|
|
208
|
+
return "onUpdate:modelValue";
|
|
209
|
+
case "time-picker":
|
|
210
|
+
return "onValueChange";
|
|
211
|
+
case "input-group":
|
|
212
|
+
return "onChange";
|
|
213
|
+
case "lookup":
|
|
214
|
+
case "sort-condition-editor":
|
|
215
|
+
case "filter-condition-editor":
|
|
216
|
+
case "code-editor":
|
|
217
|
+
case "language-textbox":
|
|
218
|
+
case "rich-text-editor":
|
|
219
|
+
return "onUpdate:modelValue";
|
|
220
|
+
case "number-range":
|
|
221
|
+
return "onValueChange";
|
|
222
|
+
case "number-spinner":
|
|
223
|
+
return "onValueChange";
|
|
224
|
+
case "radio-group":
|
|
225
|
+
return "onChangeValue";
|
|
226
|
+
case "text":
|
|
227
|
+
return "";
|
|
228
|
+
case "events-editor":
|
|
229
|
+
return "onSavedCommandListChanged";
|
|
230
|
+
case "grid-field-editor":
|
|
231
|
+
case "item-collection-editor":
|
|
232
|
+
case "response-form-layout-setting":
|
|
233
|
+
case "response-layout-editor-setting":
|
|
234
|
+
case "response-layout-splitter":
|
|
235
|
+
case "menu-lookup":
|
|
236
|
+
case "json-editor":
|
|
237
|
+
return "onChange";
|
|
238
|
+
case "field-selector":
|
|
239
|
+
case "binding-selector":
|
|
240
|
+
return "onFieldSelected";
|
|
241
|
+
case "schema-selector":
|
|
242
|
+
return "onSchemaSelected";
|
|
243
|
+
case "mapping-editor":
|
|
244
|
+
return "onMappingFieldsChanged";
|
|
245
|
+
case "textarea":
|
|
246
|
+
return "onChange";
|
|
247
|
+
case "query-solution-config":
|
|
248
|
+
case "solution-preset":
|
|
249
|
+
case "filter-bar-config":
|
|
250
|
+
return "onFieldsChanged";
|
|
251
|
+
case "property-editor":
|
|
252
|
+
return "onValueChange";
|
|
253
|
+
case "expression-editor":
|
|
254
|
+
return "onExpressionChanged";
|
|
255
|
+
case "collection-property-editor":
|
|
256
|
+
return "onValueChange";
|
|
257
|
+
default:
|
|
258
|
+
return "onUpdate:modelValue";
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
function i(p) {
|
|
262
|
+
switch (p) {
|
|
263
|
+
case "combo-list":
|
|
264
|
+
case "input-group":
|
|
265
|
+
case "textarea":
|
|
266
|
+
return "onClear";
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
function n(p) {
|
|
270
|
+
switch (p) {
|
|
271
|
+
case "input-group":
|
|
272
|
+
case "textarea":
|
|
273
|
+
return "onMousedownEvent";
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
function l(p) {
|
|
277
|
+
switch (p) {
|
|
278
|
+
case "input-group":
|
|
279
|
+
case "textarea":
|
|
280
|
+
return "onMouseupEvent";
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: o, getClearFunctionName: i, getMousedownFunctionName: n, getMouseupFunctionName: l };
|
|
284
|
+
}
|
|
285
|
+
const Lo = {
|
|
286
|
+
/**
|
|
287
|
+
* 显示的错误信息
|
|
288
|
+
*/
|
|
289
|
+
errors: {
|
|
290
|
+
type: Object,
|
|
291
|
+
default: null
|
|
292
|
+
}
|
|
293
|
+
}, Do = /* @__PURE__ */ _({
|
|
294
|
+
name: "FValidationMessage",
|
|
295
|
+
props: Lo,
|
|
296
|
+
emits: [],
|
|
297
|
+
setup(t, e) {
|
|
298
|
+
const o = B(t.errors);
|
|
299
|
+
ae(() => t.errors, (l) => {
|
|
300
|
+
o.value = l;
|
|
301
|
+
});
|
|
302
|
+
const i = B(!0), n = j(() => {
|
|
303
|
+
if (o.value) {
|
|
304
|
+
const l = Object.keys(o.value).map((p) => {
|
|
305
|
+
var C;
|
|
306
|
+
return (C = o.value[p]) == null ? void 0 : C.name;
|
|
307
|
+
});
|
|
308
|
+
return l.length ? l.join(" ") : "";
|
|
309
|
+
}
|
|
310
|
+
return "";
|
|
311
|
+
});
|
|
312
|
+
return () => n.value && b("div", {
|
|
313
|
+
class: "farris-feedback f-state-invalid",
|
|
314
|
+
onClick: () => i.value = !i.value
|
|
315
|
+
}, [!i.value && b("span", {
|
|
316
|
+
class: "f-icon f-icon-message_warning f-feedback-icon"
|
|
317
|
+
}, null), i.value && b("span", {
|
|
318
|
+
class: "f-feedback-message"
|
|
319
|
+
}, [n.value])]);
|
|
320
|
+
}
|
|
321
|
+
}), No = /* @__PURE__ */ _({
|
|
322
|
+
name: "FDynamicFormGroup",
|
|
323
|
+
props: ye,
|
|
324
|
+
emits: ["change", "update:modelValue"],
|
|
325
|
+
setup(t, e) {
|
|
326
|
+
var re;
|
|
327
|
+
const o = B(t.id), i = B(t.customClass), n = B(t.editor), l = B(t.label), p = B(t.modelValue), C = B(t.readonly), g = B(((re = t.editor) == null ? void 0 : re.required) || t.required), y = B(t.showLabel), F = B(t.visible);
|
|
328
|
+
B(t.type);
|
|
329
|
+
const m = B(), w = B(t.errors), E = ho(), L = B(t.editor.type || "input-group"), $ = j(() => y.value ? t.showLabelType : "none"), {
|
|
330
|
+
resolveEditorProps: R,
|
|
331
|
+
resolveEditorType: P,
|
|
332
|
+
getChangeFunctionName: M,
|
|
333
|
+
getClearFunctionName: q
|
|
334
|
+
} = Po(), A = j(() => {
|
|
335
|
+
const D = {
|
|
336
|
+
"form-group": !0,
|
|
337
|
+
"farris-form-group": !0,
|
|
338
|
+
"common-group": !0,
|
|
339
|
+
"q-state-readonly": C.value,
|
|
340
|
+
"form-group--in-mobile": E
|
|
341
|
+
};
|
|
342
|
+
return D["form-group--has-" + L.value] = !0, D;
|
|
343
|
+
}), O = j(() => {
|
|
344
|
+
if (t.fill)
|
|
345
|
+
return {
|
|
346
|
+
maxWidth: "none"
|
|
347
|
+
};
|
|
348
|
+
});
|
|
349
|
+
function S(D, G, r) {
|
|
350
|
+
p.value = G !== void 0 ? G : D, e.emit("update:modelValue", p.value), e.emit("change", p.value, {
|
|
351
|
+
newValue: D,
|
|
352
|
+
newModelValue: G,
|
|
353
|
+
parameters: r
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
function ne() {
|
|
357
|
+
e.emit("update:modelValue", "");
|
|
358
|
+
}
|
|
359
|
+
function W(D) {
|
|
360
|
+
return (...G) => {
|
|
361
|
+
ne(), typeof D == "function" && D(...G);
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
function K(D) {
|
|
365
|
+
return (G, r, s) => {
|
|
366
|
+
S(G, r, s), typeof D == "function" && D(G, r, s);
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
const Y = j(() => {
|
|
370
|
+
const D = n.value.type || "input-group", G = P(D), r = R(D, n.value), s = M(D), h = q(n.value.type);
|
|
371
|
+
return h && (r[h] = W(r[h])), s && (r[s] = K(r[s])), (r.id == null || r.id === "") && (r.id = o.value), D === "number-range" && n.value.onBeginValueChange && typeof n.value.onBeginValueChange == "function" ? (n.value.onBeginValueChange && typeof n.value.onBeginValueChange == "function" && (r.onBeginValueChange = n.value.onBeginValueChange), n.value.onEndValueChange && typeof n.value.onEndValueChange == "function" && (r.onEndValueChange = n.value.onEndValueChange)) : D === "lookup" && n.value["onUpdate:idValue"] && typeof n.value["onUpdate:idValue"] == "function" ? (r["onUpdate:idValue"] = n.value["onUpdate:idValue"], r.id = o.value) : D === "collection-property-editor" && n.value.onSelectionChange && typeof n.value.onSelectionChange == "function" ? r.onSelectionChange = n.value.onSelectionChange : D === "property-editor" && (r.onBeforeOpenVariables = n.value.onBeforeOpenVariables), () => b(G, me({
|
|
372
|
+
ref: m
|
|
373
|
+
}, r, {
|
|
374
|
+
modelValue: p.value,
|
|
375
|
+
"onUpdate:modelValue": (I) => p.value = I
|
|
376
|
+
}), e.slots);
|
|
377
|
+
});
|
|
378
|
+
function H() {
|
|
379
|
+
return b(Do, {
|
|
380
|
+
id: `${o.value}-validation-message`,
|
|
381
|
+
errors: w.value
|
|
382
|
+
}, null);
|
|
383
|
+
}
|
|
384
|
+
return ae([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([D, G, r, s, h, I, T, k, x, V]) => {
|
|
385
|
+
var v;
|
|
386
|
+
o.value = D, i.value = G, n.value = r, l.value = s, p.value = h, C.value = I, g.value = ((v = n.value) == null ? void 0 : v.required) || T, y.value = k, F.value = x, w.value = V;
|
|
387
|
+
}), e.expose({
|
|
388
|
+
editorRef: m
|
|
389
|
+
}), () => F.value && b("div", {
|
|
390
|
+
id: `${o.value}-form-group`,
|
|
391
|
+
class: i.value,
|
|
392
|
+
style: t.customStyle
|
|
393
|
+
}, [b("div", {
|
|
394
|
+
class: "farris-group-wrap",
|
|
395
|
+
style: O.value
|
|
396
|
+
}, [b("div", {
|
|
397
|
+
class: A.value
|
|
398
|
+
}, [b(Bo, {
|
|
399
|
+
id: `${o.value}-lable`,
|
|
400
|
+
showType: $.value,
|
|
401
|
+
required: g.value,
|
|
402
|
+
text: l.value,
|
|
403
|
+
title: l.value
|
|
404
|
+
}, null), b("div", {
|
|
405
|
+
class: "farris-input-wrap"
|
|
406
|
+
}, [Y.value(), H()])])])]);
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
function Uo(t, e) {
|
|
410
|
+
function o(g, y = null) {
|
|
411
|
+
if (y)
|
|
412
|
+
return y;
|
|
413
|
+
const F = t.getComponentById(e);
|
|
414
|
+
return t.selectNode(F, (m) => m.id === g);
|
|
415
|
+
}
|
|
416
|
+
function i(g) {
|
|
417
|
+
const y = t.getComponentById(g);
|
|
418
|
+
return !(!y || !y.componentType || !y.componentType.startsWith("form"));
|
|
419
|
+
}
|
|
420
|
+
function n(g) {
|
|
421
|
+
const y = new Set(g);
|
|
422
|
+
return Array.from(y).length === 1;
|
|
423
|
+
}
|
|
424
|
+
function l(g) {
|
|
425
|
+
const y = o(g.id), F = Nt(t), m = [];
|
|
426
|
+
F.getResonseFormLayoutConfig(y, m, 1);
|
|
427
|
+
const w = m.map((A) => A.columnInSM), E = m.map((A) => A.columnInMD), L = m.map((A) => A.columnInLG), $ = m.map((A) => A.columnInEL), R = n(w) ? w[0] : 0, P = n(E) ? E[0] : 0, M = n(L) ? L[0] : 0, q = n($) ? $[0] : 0;
|
|
130
428
|
return {
|
|
131
|
-
uniqueColClassInSM:
|
|
132
|
-
uniqueColClassInMD:
|
|
133
|
-
uniqueColClassInLG:
|
|
134
|
-
uniqueColClassInEL:
|
|
429
|
+
uniqueColClassInSM: R,
|
|
430
|
+
uniqueColClassInMD: P,
|
|
431
|
+
uniqueColClassInLG: M,
|
|
432
|
+
uniqueColClassInEL: q
|
|
135
433
|
};
|
|
136
434
|
}
|
|
137
|
-
function
|
|
138
|
-
let
|
|
139
|
-
if (
|
|
140
|
-
const
|
|
141
|
-
|
|
435
|
+
function p(g, y) {
|
|
436
|
+
let F, m, w, E, L = [];
|
|
437
|
+
if (g) {
|
|
438
|
+
const A = g.split(" "), O = A.filter((S) => S.startsWith("col-"));
|
|
439
|
+
F = O.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), m = O.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), w = O.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), E = O.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S)), L = A.filter((S) => !S.startsWith("col-"));
|
|
142
440
|
}
|
|
143
|
-
const
|
|
144
|
-
return [
|
|
441
|
+
const $ = y.uniqueColClassInSM ? "col-" + y.uniqueColClassInSM : F, R = y.uniqueColClassInMD ? "col-md-" + y.uniqueColClassInMD : m, P = y.uniqueColClassInLG ? "col-xl-" + y.uniqueColClassInLG : w, M = y.uniqueColClassInEL ? "col-el-" + y.uniqueColClassInEL : E;
|
|
442
|
+
return [$, R, P, M].concat(L).join(" ");
|
|
145
443
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
148
|
-
if (
|
|
149
|
-
|
|
444
|
+
function C(g, y, F) {
|
|
445
|
+
g = o(F, g), g.contents.forEach((m) => {
|
|
446
|
+
if (m.type === a.fieldset.type) {
|
|
447
|
+
C(m, y, m.id);
|
|
150
448
|
return;
|
|
151
449
|
}
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
|
|
450
|
+
m.appearance || (m.appearance = {});
|
|
451
|
+
const w = m.appearance.class;
|
|
452
|
+
m.appearance.class = p(w, y);
|
|
155
453
|
});
|
|
156
454
|
}
|
|
157
|
-
return { checkIsInFormComponent:
|
|
455
|
+
return { checkIsInFormComponent: i, assembleUnifiedLayoutContext: l, changeFormControlsByUnifiedLayoutConfig: C };
|
|
158
456
|
}
|
|
159
|
-
class
|
|
160
|
-
constructor(
|
|
161
|
-
super(
|
|
162
|
-
}
|
|
163
|
-
getPropertyConfig(
|
|
164
|
-
const
|
|
165
|
-
this.propertyConfig.categories.basic = this.getBasicPropConfig(
|
|
166
|
-
const { checkIsInFormComponent:
|
|
167
|
-
return
|
|
457
|
+
class $o extends Io {
|
|
458
|
+
constructor(e, o) {
|
|
459
|
+
super(e, o);
|
|
460
|
+
}
|
|
461
|
+
getPropertyConfig(e, o) {
|
|
462
|
+
const i = this;
|
|
463
|
+
this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
|
|
464
|
+
const { checkIsInFormComponent: n, assembleUnifiedLayoutContext: l, changeFormControlsByUnifiedLayoutConfig: p } = Uo(this.formSchemaUtils, this.componentId), C = this.getAppearanceConfig(e), g = n(this.componentId);
|
|
465
|
+
return C.properties.adaptForLanguage = {
|
|
168
466
|
title: "控件布局响应国际化",
|
|
169
467
|
description: "启用国际化后:简体中文、繁体中文环境下控件标签与输入框在一行展示,其他语言环境下控件标签与输入框上下排列。",
|
|
170
|
-
visible:
|
|
468
|
+
visible: g,
|
|
171
469
|
type: "boolean"
|
|
172
|
-
},
|
|
470
|
+
}, C.properties.labelAutoOverflow = {
|
|
173
471
|
title: "控件标签换行",
|
|
174
472
|
description: "控件标签字数超长时,换行显示。控件标签与输入框在一行展示时,此属性有效。",
|
|
175
|
-
visible:
|
|
473
|
+
visible: g,
|
|
176
474
|
type: "boolean"
|
|
177
|
-
},
|
|
475
|
+
}, C.properties.unifiedLayout = {
|
|
178
476
|
title: "统一布局配置",
|
|
179
477
|
description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
|
|
180
|
-
visible:
|
|
478
|
+
visible: g,
|
|
181
479
|
refreshPanelAfterChanged: !0,
|
|
182
480
|
editor: {
|
|
183
481
|
type: "response-form-layout-setting",
|
|
184
|
-
initialState:
|
|
482
|
+
initialState: l(e)
|
|
185
483
|
}
|
|
186
|
-
},
|
|
187
|
-
if (
|
|
188
|
-
switch (
|
|
484
|
+
}, C.setPropertyRelates = function(y, F) {
|
|
485
|
+
if (y)
|
|
486
|
+
switch (y && y.propertyID) {
|
|
189
487
|
case "unifiedLayout": {
|
|
190
|
-
|
|
488
|
+
p(null, y.propertyValue, e.id), i.updateElementByParentContainer(e.id, o);
|
|
191
489
|
break;
|
|
192
490
|
}
|
|
193
491
|
case "labelAutoOverflow": {
|
|
194
|
-
|
|
492
|
+
i.setLabelAutoOverflow(e, y.propertyValue), Fo();
|
|
195
493
|
break;
|
|
196
494
|
}
|
|
197
495
|
}
|
|
198
|
-
}, this.propertyConfig.categories.appearance =
|
|
496
|
+
}, this.propertyConfig.categories.appearance = C, this.propertyConfig.categories.behavior = this.getBehaviorConfig(e), this.propertyConfig;
|
|
199
497
|
}
|
|
200
|
-
setLabelAutoOverflow(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
498
|
+
setLabelAutoOverflow(e, o, i) {
|
|
499
|
+
if (!i) {
|
|
500
|
+
const n = this.formSchemaUtils.getComponentById(this.componentId);
|
|
501
|
+
i = this.formSchemaUtils.selectNode(n, (l) => l.id === e.id);
|
|
502
|
+
}
|
|
503
|
+
i && i.contents && i.contents.length && i.contents.forEach((n) => {
|
|
504
|
+
if (n.type === a.fieldset.type) {
|
|
505
|
+
this.setLabelAutoOverflow(null, o, n);
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
n.appearance || (n.appearance = {
|
|
204
509
|
class: ""
|
|
205
|
-
}),
|
|
206
|
-
})
|
|
510
|
+
}), n.appearance.class || (n.appearance.class = ""), o ? n.appearance.class.includes("farris-group-multi-label") || (n.appearance.class = n.appearance.class + " farris-group-multi-label") : n.appearance.class = n.appearance.class.replace("farris-group-multi-label", "").trim();
|
|
511
|
+
});
|
|
207
512
|
}
|
|
208
513
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
function
|
|
212
|
-
const { sourceElement:
|
|
213
|
-
if (!
|
|
514
|
+
function Ao(t, e) {
|
|
515
|
+
const o = t.schema, i = new bo(), { canMove: n, canAccept: l, canDelete: p } = i.getTemplateRule(t, e);
|
|
516
|
+
function C(r, s) {
|
|
517
|
+
const { sourceElement: h } = r, { componentInstance: I } = h, T = e == null ? void 0 : e.formSchemaUtils;
|
|
518
|
+
if (!T)
|
|
214
519
|
return !0;
|
|
215
|
-
const k =
|
|
216
|
-
return
|
|
520
|
+
const k = T.getComponentById(I.value.belongedComponentId), x = T.getViewModelById(k.viewModel), V = T.getComponentById(t.componentInstance.value.belongedComponentId), v = T.getViewModelById(V.viewModel);
|
|
521
|
+
return s ? x != null && x.id && (v != null && v.id) && x.id !== v.id ? x.bindTo === v.bindTo : !0 : (x == null ? void 0 : x.id) === (v == null ? void 0 : v.id);
|
|
217
522
|
}
|
|
218
|
-
function
|
|
219
|
-
const { bindingTargetId:
|
|
220
|
-
if (!
|
|
523
|
+
function g(r) {
|
|
524
|
+
const { bindingTargetId: s } = r;
|
|
525
|
+
if (!e)
|
|
221
526
|
return;
|
|
222
|
-
const { formSchemaUtils:
|
|
527
|
+
const { formSchemaUtils: h, schemaService: I } = e, T = h.getComponentById(t.componentInstance.value.belongedComponentId), k = I.getFieldByIDAndVMID(s, T.viewModel);
|
|
223
528
|
return !!(k != null && k.schemaField);
|
|
224
529
|
}
|
|
225
|
-
function
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
228
|
-
if (
|
|
530
|
+
function y(r) {
|
|
531
|
+
const s = i.getComponentContext(t);
|
|
532
|
+
if (s && s.componentClassList && s.componentClassList.includes("f-form-layout") && s.componentClassList.includes("farris-form")) {
|
|
533
|
+
if (r.sourceType === "control" && (r.componentCategory === "input" || r.componentType === "fieldset"))
|
|
229
534
|
return !0;
|
|
230
|
-
if (
|
|
231
|
-
if (
|
|
232
|
-
return
|
|
233
|
-
if (
|
|
234
|
-
return
|
|
535
|
+
if (r.sourceType === "move") {
|
|
536
|
+
if (r.componentType === "form-group")
|
|
537
|
+
return C(r, !0);
|
|
538
|
+
if (r.componentType === "fieldset")
|
|
539
|
+
return C(r, !1);
|
|
235
540
|
}
|
|
236
|
-
return
|
|
541
|
+
return r.sourceType === "field" && r.componentCategory === "input" ? g(r) : !1;
|
|
237
542
|
}
|
|
238
543
|
return !0;
|
|
239
544
|
}
|
|
240
|
-
function
|
|
241
|
-
return !(!
|
|
242
|
-
}
|
|
243
|
-
function r
|
|
244
|
-
var
|
|
245
|
-
const
|
|
246
|
-
if (V &&
|
|
247
|
-
const
|
|
248
|
-
switch (
|
|
249
|
-
case
|
|
250
|
-
|
|
545
|
+
function F(r) {
|
|
546
|
+
return !(!wo().basalDragulaRuleForContainer(r, e) || !l || !y(r));
|
|
547
|
+
}
|
|
548
|
+
function m(r) {
|
|
549
|
+
var v;
|
|
550
|
+
const s = r.componentInstance, h = s.value.schema, I = e == null ? void 0 : e.formSchemaUtils, T = e == null ? void 0 : e.designViewModelUtils, k = I.getViewModelIdByComponentId(s.value.belongedComponentId), x = T.getDgViewModel(k), V = s.value.parent;
|
|
551
|
+
if (V && a.fieldset && ((v = V.schema) == null ? void 0 : v.type) === a.fieldset.type && x) {
|
|
552
|
+
const N = { groupId: null, groupName: null };
|
|
553
|
+
switch (h.binding.type) {
|
|
554
|
+
case oe.Form: {
|
|
555
|
+
x.changeField(h.binding.field, N);
|
|
251
556
|
break;
|
|
252
557
|
}
|
|
253
|
-
case
|
|
254
|
-
|
|
558
|
+
case oe.Variable: {
|
|
559
|
+
I.modifyViewModelFieldById(k, h.binding.field, N, !0);
|
|
255
560
|
break;
|
|
256
561
|
}
|
|
257
562
|
}
|
|
258
563
|
}
|
|
259
564
|
}
|
|
260
|
-
function
|
|
261
|
-
const
|
|
262
|
-
k.removeField([
|
|
263
|
-
const V =
|
|
264
|
-
V.addField(
|
|
565
|
+
function w(r, s, h) {
|
|
566
|
+
const I = s.fields.find((v) => v.id === r), T = e == null ? void 0 : e.designViewModelUtils, k = T.getDgViewModel(s.id), x = k.fields.find((v) => v.id === r);
|
|
567
|
+
k.removeField([r]);
|
|
568
|
+
const V = T.getDgViewModel(h);
|
|
569
|
+
V.addField(x), I.fieldSchema && V.changeField(x.id, I.fieldSchema);
|
|
265
570
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
|
|
571
|
+
function E(r, s, h, I = []) {
|
|
572
|
+
const T = s.id, k = r.binding.field, x = s.fields.findIndex((v) => v.id === k);
|
|
573
|
+
if (x > -1 && (h.fields.push(s.fields[x]), s.fields.splice(x, 1)), T === "root-viewmodel" && h.id !== "root-viewmodel") {
|
|
574
|
+
r.binding.path && !r.binding.path.includes("root-component.") && (r.binding.path = "root-component." + r.binding.path);
|
|
270
575
|
return;
|
|
271
576
|
}
|
|
272
|
-
if (
|
|
273
|
-
|
|
577
|
+
if (h.id === "root-viewmodel" && T !== "root-viewmodel" && r.binding.path && r.binding.path.includes("root-component.")) {
|
|
578
|
+
r.binding.path = r.binding.path.replace("root-component.", "");
|
|
274
579
|
return;
|
|
275
580
|
}
|
|
276
|
-
const V =
|
|
277
|
-
V && (
|
|
581
|
+
const V = s.states.find((v) => v.id === k);
|
|
582
|
+
V && (h.states = h.states ? h.states : [], h.states.findIndex((v) => v.id === V.id) < 0 && (h.states.push(V), I.push(V.id)));
|
|
278
583
|
}
|
|
279
|
-
function
|
|
280
|
-
var
|
|
281
|
-
if (!
|
|
584
|
+
function L(r, s, h, I = []) {
|
|
585
|
+
var x;
|
|
586
|
+
if (!r)
|
|
282
587
|
return;
|
|
283
|
-
const
|
|
284
|
-
Object.keys(
|
|
588
|
+
const T = s.id === "root-viewmodel" && h.id !== "root-viewmodel", k = h.id === "root-viewmodel" && s.id !== "root-viewmodel";
|
|
589
|
+
Object.keys(r).forEach((V) => {
|
|
285
590
|
if (V === "binding")
|
|
286
591
|
return;
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
289
|
-
if (
|
|
290
|
-
|
|
592
|
+
const v = r[V];
|
|
593
|
+
if (v && typeof v == "object" && v.type === oe.Variable && v.field) {
|
|
594
|
+
if (T) {
|
|
595
|
+
v.path && !v.path.includes("root-component.") && (v.path = "root-component." + v.path);
|
|
291
596
|
return;
|
|
292
597
|
}
|
|
293
|
-
if (k &&
|
|
294
|
-
|
|
598
|
+
if (k && v.path && v.path.includes("root-component.")) {
|
|
599
|
+
v.path = v.path.replace("root-component.", "");
|
|
295
600
|
return;
|
|
296
601
|
}
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
if (
|
|
302
|
-
|
|
602
|
+
const N = s.states.find((U) => U.id === v.field);
|
|
603
|
+
if (N) {
|
|
604
|
+
I.push(N.id), h.states = h.states ? h.states : [];
|
|
605
|
+
const U = h.states.find((ee) => ee.code === N.code);
|
|
606
|
+
if (U)
|
|
607
|
+
v.field = U.id;
|
|
303
608
|
else {
|
|
304
|
-
const
|
|
305
|
-
|
|
609
|
+
const ee = Object.assign({}, { newId: ve().guid() }, N);
|
|
610
|
+
h.states.push(ee), v.field = ee.newId;
|
|
306
611
|
}
|
|
307
612
|
}
|
|
308
613
|
}
|
|
309
|
-
}), (
|
|
614
|
+
}), (x = h.states) != null && x.length && h.states.map((V) => {
|
|
310
615
|
V.newId && (V.id = V.newId, delete V.newId);
|
|
311
616
|
});
|
|
312
617
|
}
|
|
313
|
-
function
|
|
314
|
-
if (
|
|
315
|
-
for (const
|
|
316
|
-
|
|
618
|
+
function $(r, s, h) {
|
|
619
|
+
if (r && (s(r, h), r.contents))
|
|
620
|
+
for (const I of r.contents)
|
|
621
|
+
$(I, s, h);
|
|
317
622
|
}
|
|
318
|
-
function
|
|
319
|
-
if (!
|
|
623
|
+
function R(r = [], s) {
|
|
624
|
+
if (!r.length)
|
|
320
625
|
return;
|
|
321
|
-
const
|
|
322
|
-
V && (Object.keys(V).forEach((
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
}), V.editor && k(V.editor,
|
|
626
|
+
const h = e == null ? void 0 : e.formSchemaUtils, I = h.getComponentByViewModelId(s), T = [], k = (V, v) => {
|
|
627
|
+
V && (Object.keys(V).forEach((N) => {
|
|
628
|
+
const U = V[N];
|
|
629
|
+
U && typeof U == "object" && U.type === oe.Variable && r.includes(U.field) && !v.includes(U.field) && v.push(U.field);
|
|
630
|
+
}), V.editor && k(V.editor, v));
|
|
326
631
|
};
|
|
327
|
-
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
|
|
632
|
+
$(I, k, T);
|
|
633
|
+
const x = h.getViewModelById(s);
|
|
634
|
+
r.forEach((V) => {
|
|
635
|
+
T.includes(V) || (x.states = x.states.filter((v) => v.id !== V));
|
|
331
636
|
});
|
|
332
637
|
}
|
|
333
|
-
function
|
|
334
|
-
const
|
|
335
|
-
id:
|
|
336
|
-
code:
|
|
337
|
-
name:
|
|
338
|
-
}), k = (
|
|
638
|
+
function P(r) {
|
|
639
|
+
const s = ve().guid(), h = Object.assign({}, r, {
|
|
640
|
+
id: s,
|
|
641
|
+
code: r.code + s.slice(0, 4),
|
|
642
|
+
name: r.name + s.slice(0, 4)
|
|
643
|
+
}), k = (e == null ? void 0 : e.formSchemaUtils).getCommands().find((x) => x.id === r.cmpId);
|
|
339
644
|
return k && k.refedHandlers.push({
|
|
340
|
-
host:
|
|
341
|
-
handler:
|
|
342
|
-
}),
|
|
645
|
+
host: s,
|
|
646
|
+
handler: r.handlerName
|
|
647
|
+
}), h;
|
|
343
648
|
}
|
|
344
|
-
function
|
|
345
|
-
var
|
|
346
|
-
const
|
|
649
|
+
function M(r, s, h) {
|
|
650
|
+
var N, U, ee;
|
|
651
|
+
const I = {}, T = r.type === "form-group" && r.editor ? r.editor.type : r.type, k = (N = Te[T]) == null ? void 0 : N.events;
|
|
347
652
|
if (!k)
|
|
348
653
|
return;
|
|
349
|
-
Object.keys(
|
|
350
|
-
const
|
|
351
|
-
if (
|
|
352
|
-
const
|
|
353
|
-
if (
|
|
354
|
-
let
|
|
355
|
-
|
|
654
|
+
Object.keys(r).forEach((te) => {
|
|
655
|
+
const z = Object.keys(k).find((J) => J === te);
|
|
656
|
+
if (z && r[z]) {
|
|
657
|
+
const J = s.commands.find((Z) => Z.code === r[z]);
|
|
658
|
+
if (J) {
|
|
659
|
+
let Z = I[J.code];
|
|
660
|
+
Z || (Z = P(J), I[J.code] = Z, h.commands.push(Z)), r[z] = Z.code;
|
|
356
661
|
}
|
|
357
662
|
}
|
|
358
663
|
});
|
|
359
|
-
const V = (
|
|
360
|
-
if (((
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
if (
|
|
364
|
-
const
|
|
365
|
-
if (!
|
|
664
|
+
const V = (e == null ? void 0 : e.designViewModelUtils).getDgViewModel(h.id), v = ["valueChanging", "valueChanged"];
|
|
665
|
+
if (((U = r.binding) == null ? void 0 : U.type) === oe.Form) {
|
|
666
|
+
const te = (ee = h.fields) == null ? void 0 : ee.find((z) => z.id === r.binding.field);
|
|
667
|
+
te && v.forEach((z) => {
|
|
668
|
+
if (te[z]) {
|
|
669
|
+
const J = s.commands.find((Z) => Z.code === te[z]);
|
|
670
|
+
if (!J)
|
|
366
671
|
return;
|
|
367
|
-
if (
|
|
368
|
-
V.changeField(
|
|
672
|
+
if (I[J.code])
|
|
673
|
+
V.changeField(te.id, { [z]: I[J.code].code });
|
|
369
674
|
else {
|
|
370
|
-
const
|
|
371
|
-
|
|
675
|
+
const Z = P(J);
|
|
676
|
+
I[J.code] = Z, h.commands.push(Z), V.changeField(te.id, { [z]: Z.code });
|
|
372
677
|
}
|
|
373
678
|
}
|
|
374
679
|
});
|
|
375
680
|
}
|
|
376
681
|
}
|
|
377
|
-
function
|
|
378
|
-
const
|
|
379
|
-
if (
|
|
380
|
-
const
|
|
381
|
-
switch (
|
|
382
|
-
case
|
|
383
|
-
|
|
682
|
+
function q(r) {
|
|
683
|
+
const s = e == null ? void 0 : e.formSchemaUtils, h = r.componentInstance, I = h.value.schema, T = s.getViewModelIdByComponentId(h.value.belongedComponentId), k = s.getViewModelById(T), x = s.getComponentById(t.componentInstance.value.belongedComponentId), V = s.getViewModelById(x.viewModel);
|
|
684
|
+
if (T !== V.id) {
|
|
685
|
+
const v = I.binding.type, N = I.binding.field, U = [];
|
|
686
|
+
switch (v) {
|
|
687
|
+
case oe.Form: {
|
|
688
|
+
w(N, k, V.id);
|
|
384
689
|
break;
|
|
385
690
|
}
|
|
386
|
-
case
|
|
387
|
-
|
|
691
|
+
case oe.Variable: {
|
|
692
|
+
E(I, k, V, U);
|
|
388
693
|
break;
|
|
389
694
|
}
|
|
390
695
|
}
|
|
391
|
-
|
|
696
|
+
L(I, k, V, U), L(I.editor, k, V, U), M(I, k, V), T !== "root-viewmodel" && R(U, T);
|
|
392
697
|
}
|
|
393
698
|
}
|
|
394
|
-
function
|
|
395
|
-
if (!
|
|
699
|
+
function A(r) {
|
|
700
|
+
if (!r || !r.componentInstance)
|
|
396
701
|
return;
|
|
397
|
-
const
|
|
398
|
-
!
|
|
702
|
+
const h = r.componentInstance.value.schema;
|
|
703
|
+
!h.binding || !h.binding.field || (m(r), q(r));
|
|
399
704
|
}
|
|
400
|
-
function
|
|
401
|
-
return
|
|
705
|
+
function O() {
|
|
706
|
+
return o.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
402
707
|
}
|
|
403
|
-
function
|
|
404
|
-
let
|
|
405
|
-
switch (
|
|
708
|
+
function S(r) {
|
|
709
|
+
let s = "";
|
|
710
|
+
switch (r) {
|
|
406
711
|
case 1: {
|
|
407
|
-
|
|
712
|
+
s = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
408
713
|
break;
|
|
409
714
|
}
|
|
410
715
|
case 2: {
|
|
411
|
-
|
|
716
|
+
s = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
412
717
|
break;
|
|
413
718
|
}
|
|
414
719
|
case 3: {
|
|
415
|
-
|
|
720
|
+
s = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
416
721
|
break;
|
|
417
722
|
}
|
|
418
723
|
case 4: {
|
|
419
|
-
|
|
724
|
+
s = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
420
725
|
break;
|
|
421
726
|
}
|
|
422
727
|
}
|
|
423
|
-
return
|
|
424
|
-
}
|
|
425
|
-
function
|
|
426
|
-
|
|
427
|
-
if (
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
728
|
+
return s;
|
|
729
|
+
}
|
|
730
|
+
function ne(r, s) {
|
|
731
|
+
let h = !1;
|
|
732
|
+
if (t.schema && Object.prototype.hasOwnProperty.call(t.schema, "labelAutoOverflow"))
|
|
733
|
+
h = t.schema.labelAutoOverflow;
|
|
734
|
+
else {
|
|
735
|
+
const I = e == null ? void 0 : e.formSchemaUtils, T = I == null ? void 0 : I.selectNode(s, (k) => k.type === a["response-form"].type);
|
|
736
|
+
T && (h = T.labelAutoOverflow);
|
|
737
|
+
}
|
|
738
|
+
return h && (r += " farris-group-multi-label"), r;
|
|
739
|
+
}
|
|
740
|
+
function W(r) {
|
|
741
|
+
const s = t.componentInstance.value.getBelongedComponentInstance(t.componentInstance);
|
|
742
|
+
if (s && s.schema && s.schema.componentType) {
|
|
743
|
+
const { formColumns: h } = s.schema;
|
|
744
|
+
let I = S(h);
|
|
745
|
+
I = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(I, s.schema.id, t.schema), I = ne(I, s.schema), r.appearance || (r.appearance = {}), r.appearance.class = I;
|
|
431
746
|
}
|
|
432
747
|
}
|
|
433
|
-
function
|
|
434
|
-
const { bindingSourceContext:
|
|
435
|
-
if (
|
|
436
|
-
const
|
|
437
|
-
|
|
748
|
+
function K(r, s, h, I) {
|
|
749
|
+
const { bindingSourceContext: T, parentComponentInstance: k } = r;
|
|
750
|
+
if (T != null && T.entityFieldNode && k) {
|
|
751
|
+
const x = e == null ? void 0 : e.designViewModelUtils, v = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(k.belongedComponentId), N = x.getDgViewModel(v);
|
|
752
|
+
N.removeField([T.entityFieldNode.id]), N.addField(T.designViewModelField), s && N.changeField(T.entityFieldNode.id, { editor: { $type: s }, groupId: h, groupName: I });
|
|
438
753
|
}
|
|
439
754
|
}
|
|
440
|
-
function
|
|
441
|
-
var k,
|
|
442
|
-
const
|
|
443
|
-
if ((
|
|
444
|
-
const { label:
|
|
445
|
-
let
|
|
446
|
-
const
|
|
447
|
-
return (k =
|
|
755
|
+
function Y(r, s) {
|
|
756
|
+
var k, x, V;
|
|
757
|
+
const h = o;
|
|
758
|
+
if ((h.appearance && h.appearance.class || "").split(" ").includes("f-form-layout") && r.componentCategory === "input") {
|
|
759
|
+
const { label: v } = r;
|
|
760
|
+
let N;
|
|
761
|
+
const U = e == null ? void 0 : e.controlCreatorUtils;
|
|
762
|
+
return (k = r.bindingSourceContext) != null && k.entityFieldNode ? N = U.setFormFieldProperty((x = r.bindingSourceContext) == null ? void 0 : x.entityFieldNode, s == null ? void 0 : s.type) : (N = U.createFormGroupWithoutField(s == null ? void 0 : s.type), N.label = v), W(N), K(r, (V = N.editor) == null ? void 0 : V.type), N;
|
|
448
763
|
}
|
|
449
|
-
return
|
|
764
|
+
return s;
|
|
450
765
|
}
|
|
451
|
-
function
|
|
452
|
-
return
|
|
766
|
+
function H() {
|
|
767
|
+
return n;
|
|
453
768
|
}
|
|
454
|
-
function
|
|
455
|
-
return
|
|
769
|
+
function re() {
|
|
770
|
+
return p;
|
|
456
771
|
}
|
|
457
|
-
function
|
|
772
|
+
function D() {
|
|
458
773
|
return !1;
|
|
459
774
|
}
|
|
460
|
-
function
|
|
461
|
-
return new
|
|
775
|
+
function G(r) {
|
|
776
|
+
return new $o(r, e).getPropertyConfig(o, t.componentInstance.value);
|
|
462
777
|
}
|
|
463
778
|
return {
|
|
464
|
-
canAccepts:
|
|
465
|
-
checkCanDeleteComponent:
|
|
466
|
-
checkCanMoveComponent:
|
|
467
|
-
getStyles:
|
|
468
|
-
getPropsConfig:
|
|
469
|
-
hideNestedPaddingInDesginerView:
|
|
470
|
-
onAcceptMovedChildElement:
|
|
471
|
-
onResolveNewComponentSchema:
|
|
472
|
-
moveInputBetweenComponent:
|
|
473
|
-
resolveFormGroupAppearance:
|
|
474
|
-
syncFieldToViewModel:
|
|
779
|
+
canAccepts: F,
|
|
780
|
+
checkCanDeleteComponent: re,
|
|
781
|
+
checkCanMoveComponent: H,
|
|
782
|
+
getStyles: O,
|
|
783
|
+
getPropsConfig: G,
|
|
784
|
+
hideNestedPaddingInDesginerView: D,
|
|
785
|
+
onAcceptMovedChildElement: A,
|
|
786
|
+
onResolveNewComponentSchema: Y,
|
|
787
|
+
moveInputBetweenComponent: q,
|
|
788
|
+
resolveFormGroupAppearance: W,
|
|
789
|
+
syncFieldToViewModel: K
|
|
475
790
|
};
|
|
476
791
|
}
|
|
477
|
-
const
|
|
792
|
+
const pe = /* @__PURE__ */ _({
|
|
478
793
|
name: "FResponseFormDesign",
|
|
479
794
|
directives: {
|
|
480
|
-
"area-response":
|
|
795
|
+
"area-response": Co
|
|
481
796
|
},
|
|
482
|
-
props:
|
|
797
|
+
props: ye,
|
|
483
798
|
emits: [],
|
|
484
|
-
setup(
|
|
485
|
-
const
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
}),
|
|
489
|
-
const
|
|
490
|
-
const
|
|
799
|
+
setup(t, e) {
|
|
800
|
+
const o = B(), i = Q("design-item-context"), n = Q("designer-host-service"), l = Ao(i, n), p = fe(o, i, l);
|
|
801
|
+
ce(() => {
|
|
802
|
+
o.value.componentInstance = p;
|
|
803
|
+
}), e.expose(p.value);
|
|
804
|
+
const C = j(() => {
|
|
805
|
+
const g = t.customClass.split(" "), y = {
|
|
491
806
|
"drag-container": !0
|
|
492
807
|
};
|
|
493
|
-
return
|
|
808
|
+
return g.reduce((F, m) => (F[m] = !0, F), y), y;
|
|
494
809
|
});
|
|
495
|
-
return () =>
|
|
496
|
-
ref:
|
|
497
|
-
class:
|
|
498
|
-
style:
|
|
499
|
-
"data-dragref": `${
|
|
500
|
-
"data-associate": `${
|
|
501
|
-
}, [
|
|
502
|
-
}
|
|
503
|
-
}),
|
|
810
|
+
return () => Je(b("div", {
|
|
811
|
+
ref: o,
|
|
812
|
+
class: C.value,
|
|
813
|
+
style: t.customClass,
|
|
814
|
+
"data-dragref": `${i.schema.id}-container`,
|
|
815
|
+
"data-associate": `${i.schema.id}-component`
|
|
816
|
+
}, [e.slots.default && e.slots.default()]), [[ze("area-response")]]);
|
|
817
|
+
}
|
|
818
|
+
}), Ro = {}, qo = {}, { globalStorageKey: mi } = ke(), So = {
|
|
504
819
|
id: { Type: String, default: "" },
|
|
505
820
|
/** 是否自动完成 */
|
|
506
821
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -583,7 +898,7 @@ const ae = /* @__PURE__ */ te({
|
|
|
583
898
|
* 是否启用快捷键
|
|
584
899
|
*/
|
|
585
900
|
keyboard: { type: Boolean, default: !0 }
|
|
586
|
-
},
|
|
901
|
+
}, Me = [
|
|
587
902
|
{ key: "none", value: "无" },
|
|
588
903
|
{ key: "cellNumber", value: "手机号" },
|
|
589
904
|
{ key: "tel", value: "座机号/传真号" },
|
|
@@ -595,8 +910,8 @@ const ae = /* @__PURE__ */ te({
|
|
|
595
910
|
{ key: "subjectCode", value: "10位数字会计科目代码" },
|
|
596
911
|
{ key: "custom", value: "自定义" }
|
|
597
912
|
];
|
|
598
|
-
function
|
|
599
|
-
switch (
|
|
913
|
+
function Go(t) {
|
|
914
|
+
switch (t) {
|
|
600
915
|
case "none":
|
|
601
916
|
return "";
|
|
602
917
|
case "cellNumber":
|
|
@@ -622,36 +937,36 @@ function nt(e) {
|
|
|
622
937
|
}
|
|
623
938
|
return "";
|
|
624
939
|
}
|
|
625
|
-
function
|
|
626
|
-
var
|
|
627
|
-
return "请输入正确的" + ((
|
|
940
|
+
function jo(t) {
|
|
941
|
+
var e;
|
|
942
|
+
return "请输入正确的" + ((e = Me.find((o) => o.key === t)) == null ? void 0 : e.value);
|
|
628
943
|
}
|
|
629
|
-
const
|
|
630
|
-
convertTo: (
|
|
631
|
-
|
|
944
|
+
const Oo = {
|
|
945
|
+
convertTo: (t, e, o, i) => {
|
|
946
|
+
t.editor.formatValidation || (t.editor.formatValidation = { type: "none" }), t.editor.formatValidation.type = o, t.editor.formatValidation.expression = Go(o), t.editor.formatValidation.message = jo(o);
|
|
632
947
|
},
|
|
633
|
-
convertFrom: (
|
|
634
|
-
},
|
|
635
|
-
convertTo: (
|
|
636
|
-
|
|
948
|
+
convertFrom: (t, e, o) => t.editor.formatValidation ? e === "type" ? t.editor.formatValidation[e] || "none" : t.editor.formatValidation[e] : "none"
|
|
949
|
+
}, we = {
|
|
950
|
+
convertTo: (t, e, o, i) => {
|
|
951
|
+
t.editor.formatValidation || (t.editor.formatValidation = { type: "none" }), t.editor.formatValidation[e] = o;
|
|
637
952
|
},
|
|
638
|
-
convertFrom: (
|
|
953
|
+
convertFrom: (t, e, o) => t.editor.formatValidation ? t.editor.formatValidation[e] : t.editor[e]
|
|
639
954
|
};
|
|
640
|
-
class
|
|
641
|
-
constructor(
|
|
642
|
-
super(
|
|
643
|
-
}
|
|
644
|
-
getPropertyConfig(
|
|
645
|
-
return super.getPropertyConfig(
|
|
646
|
-
}
|
|
647
|
-
getEditorProperties(
|
|
648
|
-
var
|
|
649
|
-
let
|
|
650
|
-
if (((
|
|
651
|
-
const
|
|
652
|
-
(
|
|
955
|
+
class Zo extends Vo {
|
|
956
|
+
constructor(e, o) {
|
|
957
|
+
super(e, o);
|
|
958
|
+
}
|
|
959
|
+
getPropertyConfig(e, o) {
|
|
960
|
+
return super.getPropertyConfig(e, o), this.propertyConfig.categories.formatValidation = this.getFormatValidation(e), this.propertyConfig;
|
|
961
|
+
}
|
|
962
|
+
getEditorProperties(e) {
|
|
963
|
+
var i, n;
|
|
964
|
+
let o;
|
|
965
|
+
if (((i = e == null ? void 0 : e.binding) == null ? void 0 : i.type) === "Form") {
|
|
966
|
+
const l = this.schemaService.getFieldByIDAndVMID(e.binding.field, this.viewModelId);
|
|
967
|
+
(n = l == null ? void 0 : l.schemaField) != null && n.type && (o = l.schemaField.type.length);
|
|
653
968
|
}
|
|
654
|
-
return this.getComponentConfig(
|
|
969
|
+
return this.getComponentConfig(e, {}, {
|
|
655
970
|
maxLength: {
|
|
656
971
|
description: "文本字数最大长度",
|
|
657
972
|
title: "最大长度",
|
|
@@ -660,7 +975,7 @@ class it extends Je {
|
|
|
660
975
|
nullable: !0,
|
|
661
976
|
min: 0,
|
|
662
977
|
useThousands: !1,
|
|
663
|
-
max:
|
|
978
|
+
max: o,
|
|
664
979
|
needValid: !0
|
|
665
980
|
}
|
|
666
981
|
},
|
|
@@ -681,19 +996,19 @@ class it extends Je {
|
|
|
681
996
|
enableViewPassword: {
|
|
682
997
|
description: "",
|
|
683
998
|
title: "能否查看密码",
|
|
684
|
-
visible:
|
|
999
|
+
visible: e.editor.showType === "password",
|
|
685
1000
|
type: "boolean"
|
|
686
1001
|
}
|
|
687
1002
|
});
|
|
688
1003
|
}
|
|
689
|
-
getGridFieldEdtiorProperties(
|
|
690
|
-
var
|
|
691
|
-
let
|
|
692
|
-
if (((
|
|
693
|
-
const
|
|
694
|
-
(
|
|
1004
|
+
getGridFieldEdtiorProperties(e) {
|
|
1005
|
+
var i, n;
|
|
1006
|
+
let o;
|
|
1007
|
+
if (((i = e == null ? void 0 : e.binding) == null ? void 0 : i.type) === "Form") {
|
|
1008
|
+
const l = this.schemaService.getFieldByIDAndVMID(e.binding.field, this.viewModelId);
|
|
1009
|
+
(n = l == null ? void 0 : l.schemaField) != null && n.type && (o = l.schemaField.type.length);
|
|
695
1010
|
}
|
|
696
|
-
return this.getComponentConfig(
|
|
1011
|
+
return this.getComponentConfig(e, {}, {
|
|
697
1012
|
maxLength: {
|
|
698
1013
|
description: "文本字数最大长度",
|
|
699
1014
|
title: "最大长度",
|
|
@@ -702,7 +1017,7 @@ class it extends Je {
|
|
|
702
1017
|
nullable: !0,
|
|
703
1018
|
min: 0,
|
|
704
1019
|
useThousands: !1,
|
|
705
|
-
max:
|
|
1020
|
+
max: o
|
|
706
1021
|
}
|
|
707
1022
|
},
|
|
708
1023
|
showType: {
|
|
@@ -722,17 +1037,17 @@ class it extends Je {
|
|
|
722
1037
|
enableViewPassword: {
|
|
723
1038
|
description: "",
|
|
724
1039
|
title: "能否查看密码",
|
|
725
|
-
visible:
|
|
1040
|
+
visible: e.editor.showType === "password",
|
|
726
1041
|
type: "boolean"
|
|
727
1042
|
}
|
|
728
1043
|
});
|
|
729
1044
|
}
|
|
730
|
-
getFormatValidation(
|
|
731
|
-
var
|
|
732
|
-
const
|
|
1045
|
+
getFormatValidation(e) {
|
|
1046
|
+
var i, n, l, p;
|
|
1047
|
+
const o = {
|
|
733
1048
|
title: "输入格式校验",
|
|
734
1049
|
description: "输入校验",
|
|
735
|
-
hide: !((
|
|
1050
|
+
hide: !((i = e.binding) != null && i.field),
|
|
736
1051
|
properties: {
|
|
737
1052
|
type: {
|
|
738
1053
|
title: "格式类型",
|
|
@@ -745,1022 +1060,486 @@ class it extends Je {
|
|
|
745
1060
|
valueField: "key",
|
|
746
1061
|
idField: "key",
|
|
747
1062
|
editable: !1,
|
|
748
|
-
data:
|
|
1063
|
+
data: Me
|
|
749
1064
|
},
|
|
750
1065
|
refreshPanelAfterChanged: !0,
|
|
751
|
-
$converter:
|
|
1066
|
+
$converter: Oo,
|
|
752
1067
|
parentPropertyID: "formatValidation"
|
|
753
1068
|
}
|
|
754
1069
|
}
|
|
755
1070
|
};
|
|
756
|
-
return (
|
|
1071
|
+
return (n = e.editor.formatValidation) != null && n.type && ((l = e.editor.formatValidation) == null ? void 0 : l.type) !== "none" && (o.properties.message = {
|
|
757
1072
|
title: "输入错误提示",
|
|
758
1073
|
type: "string",
|
|
759
1074
|
description: "输入错误提示",
|
|
760
|
-
$converter:
|
|
1075
|
+
$converter: we,
|
|
761
1076
|
parentPropertyID: "formatValidation"
|
|
762
|
-
}), ((
|
|
1077
|
+
}), ((p = e.editor.formatValidation) == null ? void 0 : p.type) === "custom" && (o.properties.expression = {
|
|
763
1078
|
title: "匹配正则",
|
|
764
1079
|
type: "string",
|
|
765
1080
|
description: "匹配正则",
|
|
766
|
-
$converter:
|
|
1081
|
+
$converter: we,
|
|
767
1082
|
parentPropertyID: "formatValidation"
|
|
768
|
-
}),
|
|
1083
|
+
}), o;
|
|
769
1084
|
}
|
|
770
1085
|
}
|
|
771
|
-
function
|
|
772
|
-
const
|
|
773
|
-
function
|
|
774
|
-
return new
|
|
1086
|
+
function Wo(t, e) {
|
|
1087
|
+
const o = t.schema;
|
|
1088
|
+
function i(n, l) {
|
|
1089
|
+
return new Zo(n, e).getPropertyConfig(o, l);
|
|
775
1090
|
}
|
|
776
|
-
return { getPropsConfig:
|
|
1091
|
+
return { getPropsConfig: i };
|
|
777
1092
|
}
|
|
778
|
-
const
|
|
1093
|
+
const Jo = /* @__PURE__ */ _({
|
|
779
1094
|
name: "FInputGroupDesign",
|
|
780
|
-
props:
|
|
1095
|
+
props: So,
|
|
781
1096
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
782
|
-
setup(
|
|
783
|
-
const
|
|
784
|
-
inputGroupClass:
|
|
785
|
-
inputType:
|
|
786
|
-
inputGroupStyle:
|
|
787
|
-
} =
|
|
788
|
-
return
|
|
789
|
-
|
|
790
|
-
}),
|
|
1097
|
+
setup(t, e) {
|
|
1098
|
+
const o = B(t.modelValue), i = B(t.modelValue), n = vo(t, e, o, i), {
|
|
1099
|
+
inputGroupClass: l,
|
|
1100
|
+
inputType: p,
|
|
1101
|
+
inputGroupStyle: C
|
|
1102
|
+
} = n, g = B(), y = Q("designer-host-service"), F = Q("design-item-context"), m = Wo(F, y), w = fe(g, F, m), E = j(() => t.showType === "password" ? "password" : "");
|
|
1103
|
+
return ce(() => {
|
|
1104
|
+
g.value.componentInstance = w;
|
|
1105
|
+
}), e.expose(w.value), () => b("div", {
|
|
791
1106
|
id: "inputGroup",
|
|
792
|
-
ref:
|
|
793
|
-
class:
|
|
794
|
-
style:
|
|
795
|
-
}, [
|
|
1107
|
+
ref: g,
|
|
1108
|
+
class: l.value,
|
|
1109
|
+
style: C.value
|
|
1110
|
+
}, [b("input", {
|
|
796
1111
|
class: "form-control",
|
|
797
|
-
type:
|
|
798
|
-
placeholder:
|
|
799
|
-
value:
|
|
800
|
-
}, null),
|
|
1112
|
+
type: t.showType,
|
|
1113
|
+
placeholder: t.placeholder,
|
|
1114
|
+
value: E.value
|
|
1115
|
+
}, null), t.showType === "password" && t.enableViewPassword && b("span", {
|
|
801
1116
|
class: "input-group-append"
|
|
802
|
-
}, [
|
|
1117
|
+
}, [b("span", {
|
|
803
1118
|
class: "input-group-text"
|
|
804
|
-
}, [
|
|
1119
|
+
}, [b("span", {
|
|
805
1120
|
class: "f-icon f-icon-eye"
|
|
806
1121
|
}, null)])])]);
|
|
807
1122
|
}
|
|
808
1123
|
});
|
|
809
|
-
function
|
|
810
|
-
function
|
|
811
|
-
const
|
|
812
|
-
return
|
|
813
|
-
}
|
|
814
|
-
function t(y) {
|
|
815
|
-
return He[y] || lt;
|
|
816
|
-
}
|
|
817
|
-
function n(y) {
|
|
818
|
-
}
|
|
819
|
-
function o(y) {
|
|
820
|
-
}
|
|
821
|
-
function i(y) {
|
|
822
|
-
}
|
|
823
|
-
function d(y) {
|
|
824
|
-
}
|
|
825
|
-
return { getChangeFunctionName: n, getClearFunctionName: o, resolveEditorProps: e, resolveEditorType: t, getMousedownFunctionName: i, getMouseupFunctionName: d };
|
|
826
|
-
}
|
|
827
|
-
function ct(e = {}) {
|
|
828
|
-
function t(l, f, r, c) {
|
|
829
|
-
if (typeof r == "number")
|
|
830
|
-
return c[l].length === r;
|
|
831
|
-
if (typeof r == "object") {
|
|
832
|
-
const g = Object.keys(r)[0], s = r[g];
|
|
833
|
-
if (g === "not")
|
|
834
|
-
return Number(c[l].length) !== Number(s);
|
|
835
|
-
if (g === "moreThan")
|
|
836
|
-
return Number(c[l].length) >= Number(s);
|
|
837
|
-
if (g === "lessThan")
|
|
838
|
-
return Number(c[l].length) <= Number(s);
|
|
839
|
-
}
|
|
840
|
-
return !1;
|
|
841
|
-
}
|
|
842
|
-
function n(l, f, r, c) {
|
|
843
|
-
return c[l] && c[l].propertyValue && String(c[l].propertyValue.value) === String(r);
|
|
844
|
-
}
|
|
845
|
-
const o = /* @__PURE__ */ new Map([
|
|
846
|
-
["length", t],
|
|
847
|
-
["getProperty", n]
|
|
848
|
-
]);
|
|
849
|
-
Object.keys(e).reduce((l, f) => (l.set(f, e[f]), l), o);
|
|
850
|
-
function i(l, f) {
|
|
851
|
-
const r = l;
|
|
852
|
-
return typeof f == "number" ? [{ target: r, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: r, operator: "getProperty", param: l, value: !!f }] : typeof f == "object" ? Object.keys(f).map((c) => {
|
|
853
|
-
if (c === "length")
|
|
854
|
-
return { target: r, operator: "length", param: null, value: f[c] };
|
|
855
|
-
const g = c, s = f[c];
|
|
856
|
-
return { target: r, operator: "getProperty", param: g, value: s };
|
|
857
|
-
}) : [];
|
|
858
|
-
}
|
|
859
|
-
function d(l) {
|
|
860
|
-
return Object.keys(l).reduce((r, c) => {
|
|
861
|
-
const g = i(c, l[c]);
|
|
862
|
-
return r.push(...g), r;
|
|
863
|
-
}, []);
|
|
864
|
-
}
|
|
865
|
-
function y(l, f) {
|
|
866
|
-
if (o.has(l.operator)) {
|
|
867
|
-
const r = o.get(l.operator);
|
|
868
|
-
return r && r(l.target, l.param, l.value, f) || !1;
|
|
869
|
-
}
|
|
870
|
-
return !1;
|
|
871
|
-
}
|
|
872
|
-
function w(l, f) {
|
|
873
|
-
return d(l).reduce((g, s) => g && y(s, f), !0);
|
|
874
|
-
}
|
|
875
|
-
function C(l, f) {
|
|
876
|
-
const r = Object.keys(l), c = r.includes("allOf"), g = r.includes("anyOf"), s = c || g, b = (s ? l[s ? c ? "allOf" : "anyOf" : "allOf"] : [l]).map((D) => w(D, f));
|
|
877
|
-
return c ? !b.includes(!1) : b.includes(!0);
|
|
878
|
-
}
|
|
879
|
-
return { parseValueSchema: C };
|
|
880
|
-
}
|
|
881
|
-
const ut = {
|
|
882
|
-
convertTo: (e, t, n, o) => {
|
|
883
|
-
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
884
|
-
},
|
|
885
|
-
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
886
|
-
}, pt = {
|
|
887
|
-
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
888
|
-
}, dt = {
|
|
889
|
-
convertTo: (e, t, n, o) => {
|
|
890
|
-
e.editor && (e.editor[t] = n);
|
|
891
|
-
},
|
|
892
|
-
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
893
|
-
}, mt = {
|
|
894
|
-
button: { type: "button", name: "按钮" },
|
|
895
|
-
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
896
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
897
|
-
"content-container": { type: "content-container", name: "容器" },
|
|
898
|
-
"input-group": { type: "input-group", name: "文本" },
|
|
899
|
-
textarea: { type: "textarea", name: "多行文本" },
|
|
900
|
-
lookup: { type: "lookup", name: "帮助" },
|
|
901
|
-
"number-spinner": { type: "number-spinner", name: "数值" },
|
|
902
|
-
"date-picker": { type: "date-picker", name: "日期" },
|
|
903
|
-
switch: { type: "switch", name: "开关" },
|
|
904
|
-
"radio-group": { type: "radio-group", name: "单选组" },
|
|
905
|
-
"check-box": { type: "check-box", name: "复选框" },
|
|
906
|
-
"check-group": { type: "check-group", name: "复选框组" },
|
|
907
|
-
"combo-list": { type: "combo-list", name: "下拉列表" },
|
|
908
|
-
"response-form": { type: "response-form", name: "卡片面板" },
|
|
909
|
-
"response-layout": { type: "response-layout", name: "布局容器", icon: "response-layout-3" },
|
|
910
|
-
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "response-layout-1" },
|
|
911
|
-
"tree-grid": { type: "tree-grid", name: "树表格" },
|
|
912
|
-
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
913
|
-
"data-grid": { type: "data-grid", name: "表格" },
|
|
914
|
-
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
915
|
-
module: { type: "Module", name: "模块" },
|
|
916
|
-
component: { type: "component", name: "组件" },
|
|
917
|
-
tabs: { type: "tabs", name: "标签页" },
|
|
918
|
-
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
919
|
-
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮" },
|
|
920
|
-
"html-template": { type: "html-template", name: "模板容器" },
|
|
921
|
-
"time-picker": { type: "time-picker", name: "时间选择" },
|
|
922
|
-
section: { type: "section", name: "分组面板" },
|
|
923
|
-
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
924
|
-
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
925
|
-
splitter: { type: "splitter", name: "分栏面板" },
|
|
926
|
-
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
927
|
-
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
928
|
-
uploader: { type: "uploader", name: "附件上传" },
|
|
929
|
-
"page-header": { type: "page-header", name: "页头" },
|
|
930
|
-
"page-footer": { type: "page-footer", name: "页脚" },
|
|
931
|
-
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏" },
|
|
932
|
-
fieldset: { type: "fieldset", name: "分组" },
|
|
933
|
-
"query-solution": { type: "query-solution", name: "筛选方案" },
|
|
934
|
-
drawer: { type: "drawer", name: "抽屉" },
|
|
935
|
-
"external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
|
|
936
|
-
"list-nav": { type: "list-nav", name: "列表导航" },
|
|
937
|
-
"list-view": { type: "list-view", name: "列表" },
|
|
938
|
-
"filter-bar": { type: "filter-bar", name: "筛选条" },
|
|
939
|
-
"language-textbox": { type: "language-textbox", name: "多语输入框" },
|
|
940
|
-
image: { type: "image", name: "图像" },
|
|
941
|
-
"discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
|
|
942
|
-
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
943
|
-
comment: { type: "comment", name: "评论区" },
|
|
944
|
-
"rich-text-editor": { type: "rich-text-editor", name: "富文本编辑器", icon: "rich-text-box" },
|
|
945
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
946
|
-
}, ft = {
|
|
947
|
-
convertFrom: (e, t, n) => {
|
|
948
|
-
var i;
|
|
949
|
-
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
950
|
-
return ((i = mt[o]) == null ? void 0 : i.name) || o;
|
|
951
|
-
}
|
|
952
|
-
}, yt = {
|
|
953
|
-
convertTo: (e, t, n, o) => {
|
|
954
|
-
e[t] = e[t];
|
|
955
|
-
},
|
|
956
|
-
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
957
|
-
}, gt = {
|
|
958
|
-
convertTo: (e, t, n, o) => {
|
|
959
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
|
|
960
|
-
[t]: n
|
|
961
|
-
});
|
|
962
|
-
},
|
|
963
|
-
convertFrom: (e, t, n) => {
|
|
964
|
-
if (e.formatter) {
|
|
965
|
-
if (t === "trueText")
|
|
966
|
-
return e.formatter.trueText;
|
|
967
|
-
if (t === "falseText")
|
|
968
|
-
return e.formatter.falseText;
|
|
969
|
-
if (t === "prefix")
|
|
970
|
-
return e.formatter.prefix;
|
|
971
|
-
if (t === "suffix")
|
|
972
|
-
return e.formatter.suffix;
|
|
973
|
-
if (t === "precision")
|
|
974
|
-
return e.formatter.precision;
|
|
975
|
-
if (t === "decimal")
|
|
976
|
-
return e.formatter.decimal;
|
|
977
|
-
if (t === "thousand")
|
|
978
|
-
return e.formatter.thousand;
|
|
979
|
-
if (t === "dateFormat")
|
|
980
|
-
return e.formatter.dateFormat || "yyyy-MM-dd";
|
|
981
|
-
if (t === "customFormat")
|
|
982
|
-
return e.formatter.customFormat;
|
|
983
|
-
if (t === "type")
|
|
984
|
-
return e.formatter.type || "none";
|
|
985
|
-
}
|
|
986
|
-
return "none";
|
|
987
|
-
}
|
|
988
|
-
}, vt = {
|
|
989
|
-
convertTo: (e, t, n, o) => {
|
|
990
|
-
e.command ? e.command[t] = n : e.command = {
|
|
991
|
-
[t]: n
|
|
992
|
-
}, t === "enableType" && n === "default" && (e.command.enable = !0, e.command.commands = [
|
|
993
|
-
{
|
|
994
|
-
text: "编辑",
|
|
995
|
-
type: "primary",
|
|
996
|
-
command: "edit"
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
text: "删除",
|
|
1000
|
-
type: "danger",
|
|
1001
|
-
command: "remove"
|
|
1002
|
-
}
|
|
1003
|
-
]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
1004
|
-
{
|
|
1005
|
-
value: "add",
|
|
1006
|
-
text: "增加",
|
|
1007
|
-
type: "link"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
value: "edit",
|
|
1011
|
-
text: "编辑",
|
|
1012
|
-
type: "danger"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
value: "remove",
|
|
1016
|
-
text: "删除",
|
|
1017
|
-
type: "remove"
|
|
1018
|
-
}
|
|
1019
|
-
]), t === "enableType" && n === "unable" && (e.command.enable = !1);
|
|
1020
|
-
},
|
|
1021
|
-
convertFrom: (e, t, n) => {
|
|
1022
|
-
var o, i;
|
|
1023
|
-
if (e.command) {
|
|
1024
|
-
if (t === "enableType") {
|
|
1025
|
-
const d = (i = (o = e.command) == null ? void 0 : o.commands) == null ? void 0 : i.find((y) => y.command === "edit" && y.type === "primary");
|
|
1026
|
-
return e.command.enable ? d ? "default" : "custom" : "unable";
|
|
1027
|
-
}
|
|
1028
|
-
if (t === "commands")
|
|
1029
|
-
return e.command.enableType === "custom" ? e.command.commands : [];
|
|
1030
|
-
if (t === "formatter")
|
|
1031
|
-
return e.command.formatter;
|
|
1032
|
-
}
|
|
1033
|
-
return "";
|
|
1034
|
-
}
|
|
1035
|
-
}, bt = {
|
|
1036
|
-
convertTo: (e, t, n, o) => {
|
|
1037
|
-
e.column ? e.column[t] = n : e.column = {
|
|
1038
|
-
[t]: n
|
|
1039
|
-
}, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
|
|
1040
|
-
},
|
|
1041
|
-
convertFrom: (e, t, n) => {
|
|
1042
|
-
if (e.column) {
|
|
1043
|
-
if (t === "fitColumns")
|
|
1044
|
-
return e.column.fitColumns;
|
|
1045
|
-
if (t === "fitMode")
|
|
1046
|
-
return e.column.fitMode;
|
|
1047
|
-
}
|
|
1048
|
-
return "";
|
|
1049
|
-
}
|
|
1050
|
-
}, ht = {
|
|
1051
|
-
convertTo: (e, t, n, o) => {
|
|
1052
|
-
e.summary ? e.summary[t] = n : e.summary = {
|
|
1053
|
-
[t]: n
|
|
1054
|
-
}, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
1055
|
-
enable: n,
|
|
1056
|
-
groupFields: []
|
|
1057
|
-
});
|
|
1058
|
-
},
|
|
1059
|
-
convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
|
|
1060
|
-
}, Ct = {
|
|
1061
|
-
convertTo: (e, t, n, o) => {
|
|
1062
|
-
e.group ? e.group[t] = n : e.group = {
|
|
1063
|
-
[t]: n
|
|
1064
|
-
}, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
1065
|
-
enable: n,
|
|
1066
|
-
groupFields: [],
|
|
1067
|
-
showSummary: !1
|
|
1068
|
-
});
|
|
1069
|
-
},
|
|
1070
|
-
convertFrom: (e, t, n) => {
|
|
1071
|
-
if (e.group) {
|
|
1072
|
-
if (t === "enable")
|
|
1073
|
-
return e.group.enable;
|
|
1074
|
-
if (t === "showSummary")
|
|
1075
|
-
return e.group.showSummary;
|
|
1076
|
-
}
|
|
1124
|
+
function zo() {
|
|
1125
|
+
function t(p, C) {
|
|
1126
|
+
const g = qo[p];
|
|
1127
|
+
return g ? g(C) : {};
|
|
1077
1128
|
}
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
convertTo: (e, t, n) => {
|
|
1081
|
-
if (n && n.length > 0) {
|
|
1082
|
-
const o = n[0];
|
|
1083
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
1084
|
-
}
|
|
1129
|
+
function e(p) {
|
|
1130
|
+
return Ro[p] || Jo;
|
|
1085
1131
|
}
|
|
1086
|
-
|
|
1087
|
-
convertTo: (e, t, n, o) => {
|
|
1088
|
-
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
1089
|
-
},
|
|
1090
|
-
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
1091
|
-
}, Tt = {
|
|
1092
|
-
convertTo: (e, t, n, o) => {
|
|
1093
|
-
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
|
|
1094
|
-
},
|
|
1095
|
-
convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
1096
|
-
}, It = {
|
|
1097
|
-
convertTo: (e, t, n, o) => {
|
|
1098
|
-
e.selection || (e.selection = {}), e.selection[t] = n;
|
|
1099
|
-
},
|
|
1100
|
-
convertFrom: (e, t, n) => {
|
|
1101
|
-
var o, i;
|
|
1102
|
-
return t === "showCheckbox" ? (o = e.selection) != null && o.multiSelect ? !0 : (i = e.selection) == null ? void 0 : i.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
1103
|
-
}
|
|
1104
|
-
}, kt = {
|
|
1105
|
-
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
1106
|
-
}, Vt = {
|
|
1107
|
-
convertFrom: (e, t) => e[t] || "",
|
|
1108
|
-
convertTo: (e, t, n) => {
|
|
1109
|
-
e[t] = n;
|
|
1110
|
-
}
|
|
1111
|
-
}, Mt = {
|
|
1112
|
-
convertTo: (e, t, n, o) => {
|
|
1113
|
-
e.size || (e.size = {}), e.size[t] = n;
|
|
1114
|
-
},
|
|
1115
|
-
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
1116
|
-
}, xt = {
|
|
1117
|
-
convertFrom: (e, t, n) => {
|
|
1118
|
-
var o, i;
|
|
1119
|
-
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (i = e.formatter) == null ? void 0 : i.data : e.formatterEnumData;
|
|
1120
|
-
}
|
|
1121
|
-
}, Bt = {
|
|
1122
|
-
convertTo: (e, t, n, o) => {
|
|
1123
|
-
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
1124
|
-
},
|
|
1125
|
-
convertFrom: (e, t, n) => {
|
|
1126
|
-
var o, i;
|
|
1127
|
-
if (t === "mode")
|
|
1128
|
-
return ((o = e.sort) == null ? void 0 : o.mode) || "client";
|
|
1129
|
-
if (t === "multiSort")
|
|
1130
|
-
return !!((i = e.sort) != null && i.multiSort);
|
|
1131
|
-
}
|
|
1132
|
-
}, Pt = {
|
|
1133
|
-
convertTo: (e, t, n, o) => {
|
|
1134
|
-
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
1135
|
-
},
|
|
1136
|
-
convertFrom: (e, t, n) => {
|
|
1137
|
-
var o;
|
|
1138
|
-
if (t === "mode")
|
|
1139
|
-
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
1140
|
-
}
|
|
1141
|
-
}, Et = {
|
|
1142
|
-
convertTo: (e, t, n, o) => {
|
|
1143
|
-
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
1144
|
-
[t]: n
|
|
1145
|
-
};
|
|
1146
|
-
},
|
|
1147
|
-
convertFrom: (e, t, n) => {
|
|
1148
|
-
if (e.rowOption) {
|
|
1149
|
-
if (t === "customRowStyle")
|
|
1150
|
-
return e.rowOption.customRowStyle;
|
|
1151
|
-
if (t === "customCellStyle")
|
|
1152
|
-
return e.rowOption.customCellStyle;
|
|
1153
|
-
}
|
|
1154
|
-
return "";
|
|
1155
|
-
}
|
|
1156
|
-
}, Dt = {
|
|
1157
|
-
convertTo: (e, t, n, o) => {
|
|
1158
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
1159
|
-
<span class="f-pretend-link f-cursor-pointer"
|
|
1160
|
-
@click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
|
|
1161
|
-
{{rowData.${e.field}}}
|
|
1162
|
-
</span>` : e.columnTemplate = `
|
|
1163
|
-
<span class="f-pretend-link f-cursor-pointer">
|
|
1164
|
-
{{rowData.${e.field}}}
|
|
1165
|
-
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
1166
|
-
},
|
|
1167
|
-
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
1168
|
-
};
|
|
1169
|
-
function Nt(e, t, n) {
|
|
1170
|
-
const o = /* @__PURE__ */ new Map([
|
|
1171
|
-
["/converter/appearance.converter", ut],
|
|
1172
|
-
["/converter/buttons.converter", pt],
|
|
1173
|
-
["/converter/property-editor.converter", dt],
|
|
1174
|
-
["/converter/items-count.converter", kt],
|
|
1175
|
-
["/converter/type.converter", ft],
|
|
1176
|
-
["/converter/change-editor.converter", yt],
|
|
1177
|
-
["/converter/change-formatter.converter", gt],
|
|
1178
|
-
["/converter/column-command.converter", vt],
|
|
1179
|
-
["/converter/column-option.converter", bt],
|
|
1180
|
-
["/converter/summary.converter", ht],
|
|
1181
|
-
["/converter/group.converter", Ct],
|
|
1182
|
-
["/converter/form-group-label.converter", Vt],
|
|
1183
|
-
["/converter/field-selector.converter", Ft],
|
|
1184
|
-
["/converter/pagination.converter", wt],
|
|
1185
|
-
["/converter/row-number.converter", Tt],
|
|
1186
|
-
["/converter/grid-selection.converter", It],
|
|
1187
|
-
["/converter/size.converter", Mt],
|
|
1188
|
-
["/converter/change-formatter-enum.converter", xt],
|
|
1189
|
-
["/converter/grid-sort.converter", Bt],
|
|
1190
|
-
["/converter/grid-filter.converter", Pt],
|
|
1191
|
-
["/converter/row-option.converter", Et],
|
|
1192
|
-
["/converter/change-formatter-type.converter", Dt]
|
|
1193
|
-
]), i = /* @__PURE__ */ new Map([
|
|
1194
|
-
["string", { type: "input-group", enableClear: !1 }],
|
|
1195
|
-
["boolean", {
|
|
1196
|
-
type: "combo-list",
|
|
1197
|
-
textField: "name",
|
|
1198
|
-
valueField: "value",
|
|
1199
|
-
idField: "value",
|
|
1200
|
-
enableClear: !1,
|
|
1201
|
-
editable: !1,
|
|
1202
|
-
data: [
|
|
1203
|
-
{
|
|
1204
|
-
value: !0,
|
|
1205
|
-
name: "是"
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
value: !1,
|
|
1209
|
-
name: "否"
|
|
1210
|
-
}
|
|
1211
|
-
]
|
|
1212
|
-
}],
|
|
1213
|
-
["enum", { type: "combo-list", maxHeight: 128, enableClear: !1, editable: !1 }],
|
|
1214
|
-
["array", { type: "button-edit" }],
|
|
1215
|
-
["number", { type: "number-spinner", placeholder: "" }],
|
|
1216
|
-
["events-editor", { type: "events-editor", hide: !0 }]
|
|
1217
|
-
]), d = ct();
|
|
1218
|
-
function y(s, p) {
|
|
1219
|
-
return () => d.parseValueSchema(s, p);
|
|
1220
|
-
}
|
|
1221
|
-
function w(s, p, v) {
|
|
1222
|
-
return s.includes("visible") && p.visible !== void 0 ? typeof p.visible == "boolean" ? () => !!p.visible : p.visible === void 0 ? !0 : y(p.visible, v) : () => !0;
|
|
1223
|
-
}
|
|
1224
|
-
function C(s, p, v) {
|
|
1225
|
-
return s.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : y(p.readonly, v) : () => !1;
|
|
1226
|
-
}
|
|
1227
|
-
function l(s, p) {
|
|
1228
|
-
const v = s.$converter || p;
|
|
1229
|
-
return typeof v == "string" && v && o.has(v) ? o.get(v) || null : v || null;
|
|
1230
|
-
}
|
|
1231
|
-
function f(s, p, v, b, h, D = "", N = "") {
|
|
1232
|
-
return Object.keys(s).map((x) => {
|
|
1233
|
-
const j = O(1), R = x, I = s[x], U = Object.keys(I), W = I.title, z = I.type, J = i.get(z) || { type: "input-group", enableClear: !1 }, a = I.editor ? Object.assign({}, J, I.editor) : Object.assign({}, J), m = w(U, I, p), F = C(U, I, p);
|
|
1234
|
-
a.readonly = a.readonly === void 0 ? F() : a.readonly;
|
|
1235
|
-
const M = I.type === "cascade" ? f(I.properties, p, v, b, h, D, N) : [], B = !0;
|
|
1236
|
-
let k = l(I, N);
|
|
1237
|
-
const E = K({
|
|
1238
|
-
get() {
|
|
1239
|
-
if (j.value) {
|
|
1240
|
-
if (["class", "style"].find((q) => q === R) && !k && (k = o.get("/converter/appearance.converter") || null), k && k.convertFrom)
|
|
1241
|
-
return k.convertFrom(v, x, h, D);
|
|
1242
|
-
const A = v[x];
|
|
1243
|
-
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (A === void 0 || typeof A == "string" && A === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : A;
|
|
1244
|
-
}
|
|
1245
|
-
return null;
|
|
1246
|
-
},
|
|
1247
|
-
set(A) {
|
|
1248
|
-
j.value += 1, k && k.convertTo ? (k.convertTo(b, x, A, h, D), k.convertTo(v, x, A, h, D)) : (b[x] = A, v[x] = A);
|
|
1249
|
-
}
|
|
1250
|
-
}), { refreshPanelAfterChanged: V, description: T, isExpand: S, parentPropertyID: $ } = I, _ = { propertyID: R, propertyName: W, propertyType: z, propertyValue: E, editor: a, visible: m, readonly: F, cascadeConfig: M, hideCascadeTitle: B, refreshPanelAfterChanged: V, description: T, isExpand: S, parentPropertyID: $ };
|
|
1251
|
-
return p[R] = _, _;
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
function r(s, p, v = {}) {
|
|
1255
|
-
const b = {}, h = e[s];
|
|
1256
|
-
return h && h.categories ? Object.keys(h.categories).map((N) => {
|
|
1257
|
-
const L = h.categories[N], x = L == null ? void 0 : L.title, j = f(L.properties || {}, b, {}, v, p);
|
|
1258
|
-
return { categoryId: N, categoryName: x, properties: j };
|
|
1259
|
-
}) : [];
|
|
1260
|
-
}
|
|
1261
|
-
function c(s, p, v, b, h = "") {
|
|
1262
|
-
const D = p.$ref.schema, N = p.$ref.converter, L = v[D], x = L.type, j = n(L), R = {}, I = e[x];
|
|
1263
|
-
if (I && I.categories) {
|
|
1264
|
-
const U = I.categories[s], W = U == null ? void 0 : U.title;
|
|
1265
|
-
N && Object.keys(U.properties).forEach((a) => {
|
|
1266
|
-
U.properties[a].$converter = N;
|
|
1267
|
-
});
|
|
1268
|
-
const z = (U == null ? void 0 : U.properties) || {}, J = f(z, R, j, L, b, h);
|
|
1269
|
-
return { categoryId: s, categoryName: W, properties: J };
|
|
1270
|
-
}
|
|
1271
|
-
return { categoryId: s, categoryName: "", properties: [] };
|
|
1272
|
-
}
|
|
1273
|
-
function g(s, p, v, b, h) {
|
|
1274
|
-
const D = s.type, N = n(s), L = {};
|
|
1275
|
-
let x = h || e[D];
|
|
1276
|
-
if (x && Object.keys(x).length === 0 && v && v.getPropConfig && (x = v.getPropConfig(b)), x && x.categories) {
|
|
1277
|
-
const j = [];
|
|
1278
|
-
return Object.keys(x.categories).map((R) => {
|
|
1279
|
-
const I = x.categories[R];
|
|
1280
|
-
if (I.$ref) {
|
|
1281
|
-
j.push(c(R, I, s, p, b));
|
|
1282
|
-
return;
|
|
1283
|
-
}
|
|
1284
|
-
const U = I == null ? void 0 : I.title, W = I == null ? void 0 : I.tabId, z = I == null ? void 0 : I.tabName, J = I == null ? void 0 : I.hide, a = I == null ? void 0 : I.hideTitle, m = f(I.properties || {}, L, N, s, p, b, I.$converter), { setPropertyRelates: F } = I, M = I == null ? void 0 : I.parentPropertyID;
|
|
1285
|
-
j.push({ categoryId: R, categoryName: U, tabId: W, tabName: z, hide: J, properties: m, hideTitle: a, setPropertyRelates: F, parentPropertyID: M });
|
|
1286
|
-
}), j;
|
|
1287
|
-
}
|
|
1288
|
-
return [];
|
|
1289
|
-
}
|
|
1290
|
-
return {
|
|
1291
|
-
getPropertyConfigBySchema: g,
|
|
1292
|
-
getPropertyConfigByType: r,
|
|
1293
|
-
propertyConverterMap: o
|
|
1294
|
-
};
|
|
1295
|
-
}
|
|
1296
|
-
function St(e, t) {
|
|
1297
|
-
let n;
|
|
1298
|
-
function o(r) {
|
|
1299
|
-
const { properties: c, title: g, ignore: s } = r, p = s && Array.isArray(s), v = Object.keys(c).reduce((b, h) => ((!p || !s.find((D) => D === h)) && (b[h] = c[h].type === "object" && c[h].properties ? o(c[h]) : ie(c[h].default)), b), {});
|
|
1300
|
-
if (g && (!p || !s.find((b) => b === "id"))) {
|
|
1301
|
-
const b = g.toLowerCase().replace(/-/g, "_");
|
|
1302
|
-
v.id = `${b}_${Math.random().toString().slice(2, 6)}`;
|
|
1303
|
-
}
|
|
1304
|
-
return v;
|
|
1305
|
-
}
|
|
1306
|
-
function i(r) {
|
|
1307
|
-
const { properties: c, title: g, required: s } = r;
|
|
1308
|
-
if (s && Array.isArray(s)) {
|
|
1309
|
-
const p = s.reduce((v, b) => (v[b] = c[b].type === "object" && c[b].properties ? o(c[b]) : ie(c[b].default), v), {});
|
|
1310
|
-
if (g && s.find((v) => v === "id")) {
|
|
1311
|
-
const v = g.toLowerCase().replace(/-/g, "_");
|
|
1312
|
-
p.id = `${v}_${Math.random().toString().slice(2, 6)}`;
|
|
1313
|
-
}
|
|
1314
|
-
return p;
|
|
1315
|
-
}
|
|
1316
|
-
return {
|
|
1317
|
-
type: g
|
|
1318
|
-
};
|
|
1319
|
-
}
|
|
1320
|
-
function d(r, c = {}, g) {
|
|
1321
|
-
const s = e[r];
|
|
1322
|
-
if (s) {
|
|
1323
|
-
let p = i(s);
|
|
1324
|
-
const v = t[r];
|
|
1325
|
-
return p = v ? v({ getSchemaByType: d }, p, c, g) : p, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(p), p;
|
|
1326
|
-
}
|
|
1327
|
-
return null;
|
|
1328
|
-
}
|
|
1329
|
-
function y(r, c) {
|
|
1330
|
-
const g = o(c);
|
|
1331
|
-
return Object.keys(g).reduce((s, p) => (Object.prototype.hasOwnProperty.call(r, p) && (s[p] && me(s[p]) && me(r[p] || !r[p]) ? Object.assign(s[p], r[p] || {}) : s[p] = r[p]), s), g), g;
|
|
1332
|
-
}
|
|
1333
|
-
function w(r, c) {
|
|
1334
|
-
return Object.keys(r).filter((s) => r[s] != null).reduce((s, p) => {
|
|
1335
|
-
if (c.has(p)) {
|
|
1336
|
-
const v = c.get(p);
|
|
1337
|
-
if (typeof v == "string")
|
|
1338
|
-
s[v] = r[p];
|
|
1339
|
-
else {
|
|
1340
|
-
const b = v(p, r[p], r);
|
|
1341
|
-
Object.assign(s, b);
|
|
1342
|
-
}
|
|
1343
|
-
} else
|
|
1344
|
-
s[p] = r[p];
|
|
1345
|
-
return s;
|
|
1346
|
-
}, {});
|
|
1132
|
+
function o(p) {
|
|
1347
1133
|
}
|
|
1348
|
-
function
|
|
1349
|
-
const s = y(r, c);
|
|
1350
|
-
return w(s, g);
|
|
1134
|
+
function i(p) {
|
|
1351
1135
|
}
|
|
1352
|
-
function
|
|
1353
|
-
var g;
|
|
1354
|
-
const c = r.type;
|
|
1355
|
-
if (c) {
|
|
1356
|
-
const s = e[c];
|
|
1357
|
-
if (!s)
|
|
1358
|
-
return r;
|
|
1359
|
-
const p = y(r, s), v = ((g = r.editor) == null ? void 0 : g.type) || "";
|
|
1360
|
-
if (v) {
|
|
1361
|
-
const b = e[v], h = y(r.editor, b);
|
|
1362
|
-
p.editor = h;
|
|
1363
|
-
}
|
|
1364
|
-
return p;
|
|
1365
|
-
}
|
|
1366
|
-
return r;
|
|
1136
|
+
function n(p) {
|
|
1367
1137
|
}
|
|
1368
|
-
function
|
|
1369
|
-
n = r;
|
|
1138
|
+
function l(p) {
|
|
1370
1139
|
}
|
|
1371
|
-
return {
|
|
1140
|
+
return { getChangeFunctionName: o, getClearFunctionName: i, resolveEditorProps: t, resolveEditorType: e, getMousedownFunctionName: n, getMouseupFunctionName: l };
|
|
1372
1141
|
}
|
|
1373
|
-
const
|
|
1374
|
-
Nt(Rt, Ut, Ot);
|
|
1375
|
-
const { globalStorageKey: or } = be(), H = class H {
|
|
1142
|
+
const ie = class ie {
|
|
1376
1143
|
/**
|
|
1377
1144
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1378
1145
|
*/
|
|
1379
|
-
static getEditorTypesByMDataType(
|
|
1380
|
-
if (
|
|
1381
|
-
return [{ key:
|
|
1382
|
-
let
|
|
1383
|
-
if (
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1146
|
+
static getEditorTypesByMDataType(e, o = !1, i = "") {
|
|
1147
|
+
if (o)
|
|
1148
|
+
return [{ key: a["language-textbox"].type, value: a["language-textbox"].name }];
|
|
1149
|
+
let n = ie.fieldControlTypeMapping[e];
|
|
1150
|
+
if (i === "data-grid-column" && (n != null && n.length)) {
|
|
1151
|
+
const l = [a["check-group"].type, a["radio-group"].type, a.image.type, a["rich-text-editor"].type];
|
|
1152
|
+
n = n.filter((p) => !l.includes(p.key));
|
|
1386
1153
|
}
|
|
1387
|
-
return
|
|
1154
|
+
return n;
|
|
1388
1155
|
}
|
|
1389
1156
|
/**
|
|
1390
1157
|
* 获取所有输入类控件
|
|
1391
1158
|
*/
|
|
1392
1159
|
static getAllInputTypes() {
|
|
1393
|
-
const
|
|
1394
|
-
for (const
|
|
1395
|
-
|
|
1396
|
-
|
|
1160
|
+
const e = [];
|
|
1161
|
+
for (const o in ie.fieldControlTypeMapping)
|
|
1162
|
+
ie.fieldControlTypeMapping[o].forEach((i) => {
|
|
1163
|
+
e.find((n) => n.key === i.key && n.value === i.value) || e.push({ key: i.key, value: i.value });
|
|
1397
1164
|
});
|
|
1398
|
-
return
|
|
1165
|
+
return e;
|
|
1399
1166
|
}
|
|
1400
1167
|
/**
|
|
1401
1168
|
* 提供schema字段基础属性和DOM控件属性的映射
|
|
1402
1169
|
* @param control 控件元数据
|
|
1403
1170
|
*/
|
|
1404
|
-
static mappingDomPropAndSchemaProp(
|
|
1405
|
-
var
|
|
1406
|
-
const
|
|
1407
|
-
return (
|
|
1171
|
+
static mappingDomPropAndSchemaProp(e, o) {
|
|
1172
|
+
var l;
|
|
1173
|
+
const i = (l = e.editor) == null ? void 0 : l.type, n = [];
|
|
1174
|
+
return (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && o && o.categoryId && o.categoryId.indexOf("gridFieldEditor") < 0 && n.push({ domField: "title", schemaField: "name" }), n.push({ domField: "label", schemaField: "name" }), n.push({ domField: "editor.required", schemaField: "require" }), n.push({ domField: "editor.readonly", schemaField: "readonly" }), (i === a["input-group"].type || i === a.textarea.type || i === a["number-spinner"].type) && n.push({ domField: "editor.maxLength", schemaField: "type.length" }), i === a["number-spinner"].type && n.push({ domField: "editor.precision", schemaField: "type.precision" }), (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && n.push({ domField: "formatter.precision", schemaField: "type.precision" }), (i === a["combo-list"].type || i === a["radio-group"].type) && n.push({ domField: "editor.data", schemaField: "type.enumValues" }), (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && n.push({ domField: "formatter.data", schemaField: "type.enumValues" }), i === a["date-picker"].type && (n.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), n.push({ domField: "editor.fieldType", schemaField: "type.name" })), i === a["number-spinner"].type && (n.push({ domField: "editor.max", schemaField: "editor.maxValue" }), n.push({ domField: "editor.min", schemaField: "editor.minValue" })), i === a.lookup.type && (n.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), n.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), n.push({ domField: "editor.textField", schemaField: "editor.textField" }), n.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), n.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), n.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), n.push({ domField: "path", schemaField: "bindingPath" }), n.push({ domField: "binding.path", schemaField: "bindingField" }), n.push({ domField: "binding.fullPath", schemaField: "path" }), (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && n.push({ domField: "field", schemaField: "bindingPath" }), n;
|
|
1408
1175
|
}
|
|
1409
1176
|
};
|
|
1410
1177
|
/**
|
|
1411
1178
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1412
1179
|
*/
|
|
1413
|
-
|
|
1180
|
+
se(ie, "fieldControlTypeMapping", {
|
|
1414
1181
|
String: [
|
|
1415
|
-
{ key:
|
|
1416
|
-
{ key:
|
|
1417
|
-
{ key:
|
|
1418
|
-
{ key:
|
|
1419
|
-
{ key:
|
|
1420
|
-
{ key:
|
|
1421
|
-
{ key:
|
|
1422
|
-
{ key:
|
|
1423
|
-
{ key:
|
|
1424
|
-
{ key:
|
|
1425
|
-
{ key:
|
|
1182
|
+
{ key: a["input-group"].type, value: a["input-group"].name },
|
|
1183
|
+
{ key: a.lookup.type, value: a.lookup.name },
|
|
1184
|
+
{ key: a.image.type, value: a.image.name },
|
|
1185
|
+
{ key: a["date-picker"].type, value: a["date-picker"].name },
|
|
1186
|
+
{ key: a.switch.type, value: a.switch.name },
|
|
1187
|
+
{ key: a["check-box"].type, value: a["check-box"].name },
|
|
1188
|
+
{ key: a["check-group"].type, value: a["check-group"].name },
|
|
1189
|
+
{ key: a["radio-group"].type, value: a["radio-group"].name },
|
|
1190
|
+
{ key: a["combo-list"].type, value: a["combo-list"].name },
|
|
1191
|
+
{ key: a.textarea.type, value: a.textarea.name },
|
|
1192
|
+
{ key: a["time-picker"].type, value: a["time-picker"].name }
|
|
1426
1193
|
],
|
|
1427
1194
|
Text: [
|
|
1428
|
-
{ key:
|
|
1429
|
-
{ key:
|
|
1430
|
-
{ key:
|
|
1431
|
-
{ key:
|
|
1195
|
+
{ key: a.textarea.type, value: a.textarea.name },
|
|
1196
|
+
{ key: a.lookup.type, value: a.lookup.name },
|
|
1197
|
+
{ key: a.image.type, value: a.image.name },
|
|
1198
|
+
{ key: a["rich-text-editor"].type, value: a["rich-text-editor"].name }
|
|
1432
1199
|
],
|
|
1433
1200
|
Decimal: [
|
|
1434
|
-
{ key:
|
|
1201
|
+
{ key: a["number-spinner"].type, value: a["number-spinner"].name }
|
|
1435
1202
|
],
|
|
1436
1203
|
Integer: [
|
|
1437
|
-
{ key:
|
|
1204
|
+
{ key: a["number-spinner"].type, value: a["number-spinner"].name }
|
|
1438
1205
|
],
|
|
1439
1206
|
Number: [
|
|
1440
|
-
{ key:
|
|
1441
|
-
{ key:
|
|
1442
|
-
{ key:
|
|
1207
|
+
{ key: a["number-spinner"].type, value: a["number-spinner"].name },
|
|
1208
|
+
{ key: a.switch.type, value: a.switch.name },
|
|
1209
|
+
{ key: a["check-box"].type, value: a["check-box"].name }
|
|
1443
1210
|
],
|
|
1444
1211
|
BigNumber: [
|
|
1445
|
-
{ key:
|
|
1212
|
+
{ key: a["number-spinner"].type, value: a["number-spinner"].name }
|
|
1446
1213
|
],
|
|
1447
1214
|
Date: [
|
|
1448
|
-
{ key:
|
|
1215
|
+
{ key: a["date-picker"].type, value: a["date-picker"].name }
|
|
1449
1216
|
],
|
|
1450
1217
|
DateTime: [
|
|
1451
|
-
{ key:
|
|
1218
|
+
{ key: a["date-picker"].type, value: a["date-picker"].name }
|
|
1452
1219
|
],
|
|
1453
1220
|
Boolean: [
|
|
1454
|
-
{ key:
|
|
1455
|
-
{ key:
|
|
1221
|
+
{ key: a.switch.type, value: a.switch.name },
|
|
1222
|
+
{ key: a["check-box"].type, value: a["check-box"].name }
|
|
1456
1223
|
],
|
|
1457
1224
|
Enum: [
|
|
1458
|
-
{ key:
|
|
1459
|
-
{ key:
|
|
1225
|
+
{ key: a["combo-list"].type, value: a["combo-list"].name },
|
|
1226
|
+
{ key: a["radio-group"].type, value: a["radio-group"].name }
|
|
1460
1227
|
],
|
|
1461
1228
|
Object: [
|
|
1462
|
-
{ key:
|
|
1463
|
-
{ key:
|
|
1464
|
-
{ key:
|
|
1229
|
+
{ key: a.lookup.type, value: a.lookup.name },
|
|
1230
|
+
{ key: a["combo-list"].type, value: a["combo-list"].name },
|
|
1231
|
+
{ key: a["radio-group"].type, value: a["radio-group"].name }
|
|
1465
1232
|
]
|
|
1466
1233
|
});
|
|
1467
|
-
let
|
|
1468
|
-
var
|
|
1469
|
-
function
|
|
1470
|
-
function
|
|
1471
|
-
const
|
|
1472
|
-
if (!
|
|
1234
|
+
let Ie = ie;
|
|
1235
|
+
var de = /* @__PURE__ */ ((t) => (t.Form = "Form", t.Variable = "Variable", t))(de || {}), Be = /* @__PURE__ */ ((t) => (t.SimpleField = "SimpleField", t.ComplexField = "ComplexField", t))(Be || {});
|
|
1236
|
+
function Xo(t, e, o) {
|
|
1237
|
+
function i() {
|
|
1238
|
+
const p = o.componentId;
|
|
1239
|
+
if (!p)
|
|
1473
1240
|
return !1;
|
|
1474
|
-
const
|
|
1475
|
-
if (!
|
|
1241
|
+
const C = t.formSchemaUtils.getViewModelIdByComponentId(p);
|
|
1242
|
+
if (!C)
|
|
1476
1243
|
return !1;
|
|
1477
|
-
const { schema:
|
|
1478
|
-
return !(!
|
|
1244
|
+
const { schema: g } = e, { designViewModelUtils: y } = t, F = y.getDgViewModel(C), m = F == null ? void 0 : F.fields.find((w) => w.id === g.binding.field);
|
|
1245
|
+
return !(!m || m.$type !== Be.SimpleField);
|
|
1479
1246
|
}
|
|
1480
|
-
function
|
|
1481
|
-
const { schema:
|
|
1482
|
-
return !!
|
|
1483
|
-
}
|
|
1484
|
-
function
|
|
1485
|
-
var
|
|
1486
|
-
const { schema:
|
|
1487
|
-
let
|
|
1488
|
-
if (!
|
|
1489
|
-
return
|
|
1490
|
-
switch (
|
|
1491
|
-
case
|
|
1492
|
-
|
|
1247
|
+
function n() {
|
|
1248
|
+
const { schema: p } = e;
|
|
1249
|
+
return !!t.formSchemaUtils.getVariableById(p.binding.field);
|
|
1250
|
+
}
|
|
1251
|
+
function l() {
|
|
1252
|
+
var g;
|
|
1253
|
+
const { schema: p } = e;
|
|
1254
|
+
let C = !0;
|
|
1255
|
+
if (!t || !((g = p.binding) != null && g.field))
|
|
1256
|
+
return C;
|
|
1257
|
+
switch (p.binding.type) {
|
|
1258
|
+
case de.Form: {
|
|
1259
|
+
C = i();
|
|
1493
1260
|
break;
|
|
1494
1261
|
}
|
|
1495
|
-
case
|
|
1496
|
-
|
|
1262
|
+
case de.Variable:
|
|
1263
|
+
C = n();
|
|
1497
1264
|
}
|
|
1498
|
-
return
|
|
1265
|
+
return C;
|
|
1499
1266
|
}
|
|
1500
|
-
return { checkBindingFieldValidation:
|
|
1267
|
+
return { checkBindingFieldValidation: l };
|
|
1501
1268
|
}
|
|
1502
|
-
const
|
|
1269
|
+
const Ko = /* @__PURE__ */ _({
|
|
1503
1270
|
name: "FDynamicFormGroupDesign",
|
|
1504
|
-
props:
|
|
1271
|
+
props: Ve,
|
|
1505
1272
|
emits: ["change", "update:modelValue"],
|
|
1506
|
-
setup(
|
|
1507
|
-
var
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1510
|
-
const
|
|
1511
|
-
resolveEditorProps:
|
|
1512
|
-
resolveEditorType:
|
|
1513
|
-
} =
|
|
1273
|
+
setup(t, e) {
|
|
1274
|
+
var ne;
|
|
1275
|
+
const o = B(t.id), i = B(t.customClass), n = B(t.editor), l = B(t.label), p = B(t.modelValue), C = B(!0), g = B(((ne = t.editor) == null ? void 0 : ne.required) === !0), y = B(t.showLabel);
|
|
1276
|
+
B(t.type);
|
|
1277
|
+
const F = B(), m = Q("designer-host-service"), w = Q("design-item-context"), E = j(() => y.value ? t.showLabelType : "none"), {
|
|
1278
|
+
resolveEditorProps: L,
|
|
1279
|
+
resolveEditorType: $
|
|
1280
|
+
} = zo(), R = j(() => ({
|
|
1514
1281
|
"form-group": !0,
|
|
1515
1282
|
"farris-form-group": !0,
|
|
1516
1283
|
"common-group": !0,
|
|
1517
|
-
"q-state-readonly":
|
|
1284
|
+
"q-state-readonly": C.value,
|
|
1518
1285
|
"form-group-in-canvas": !0
|
|
1519
|
-
})),
|
|
1520
|
-
const
|
|
1521
|
-
return () =>
|
|
1522
|
-
ref:
|
|
1523
|
-
},
|
|
1524
|
-
modelValue:
|
|
1525
|
-
"onUpdate:modelValue": (
|
|
1286
|
+
})), P = j(() => {
|
|
1287
|
+
const W = n.value.type || "input-group", K = $(W), Y = L(W, n.value);
|
|
1288
|
+
return () => b(K, me({
|
|
1289
|
+
ref: F
|
|
1290
|
+
}, Y, {
|
|
1291
|
+
modelValue: p.value,
|
|
1292
|
+
"onUpdate:modelValue": (H) => p.value = H
|
|
1526
1293
|
}), null);
|
|
1527
1294
|
});
|
|
1528
|
-
|
|
1529
|
-
var
|
|
1530
|
-
|
|
1531
|
-
...
|
|
1532
|
-
},
|
|
1295
|
+
ae([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.showLabel], ([W, K, Y, H, re, D, G]) => {
|
|
1296
|
+
var r;
|
|
1297
|
+
o.value = W, i.value = K, n.value = {
|
|
1298
|
+
...Y
|
|
1299
|
+
}, l.value = H, p.value = re, C.value = D, g.value = ((r = n.value) == null ? void 0 : r.required) === !0, y.value = G;
|
|
1533
1300
|
}, {
|
|
1534
1301
|
deep: !0
|
|
1535
1302
|
});
|
|
1536
|
-
const
|
|
1537
|
-
checkBindingFieldValidation:
|
|
1538
|
-
} =
|
|
1539
|
-
function
|
|
1540
|
-
const
|
|
1541
|
-
return
|
|
1542
|
-
id: `${
|
|
1543
|
-
showType:
|
|
1544
|
-
required:
|
|
1545
|
-
text:
|
|
1546
|
-
title:
|
|
1547
|
-
valid:
|
|
1303
|
+
const q = !Q("external-container-id"), {
|
|
1304
|
+
checkBindingFieldValidation: A
|
|
1305
|
+
} = Xo(m, w, t);
|
|
1306
|
+
function O() {
|
|
1307
|
+
const W = q ? A() : !0;
|
|
1308
|
+
return b(Ue, {
|
|
1309
|
+
id: `${o.value}-lable`,
|
|
1310
|
+
showType: E.value,
|
|
1311
|
+
required: g.value,
|
|
1312
|
+
text: l.value,
|
|
1313
|
+
title: l.value,
|
|
1314
|
+
valid: W,
|
|
1548
1315
|
inValidTip: "绑定信息已失效,请切换绑定或移除控件"
|
|
1549
1316
|
}, null);
|
|
1550
1317
|
}
|
|
1551
|
-
const
|
|
1552
|
-
if (
|
|
1318
|
+
const S = j(() => {
|
|
1319
|
+
if (t.fill)
|
|
1553
1320
|
return {
|
|
1554
1321
|
maxWidth: "none"
|
|
1555
1322
|
};
|
|
1556
1323
|
});
|
|
1557
|
-
return
|
|
1558
|
-
editorRef:
|
|
1559
|
-
}), () =>
|
|
1560
|
-
id: `${
|
|
1561
|
-
class:
|
|
1562
|
-
}, [
|
|
1324
|
+
return e.expose({
|
|
1325
|
+
editorRef: F
|
|
1326
|
+
}), () => b("div", {
|
|
1327
|
+
id: `${o.value}-input-group`,
|
|
1328
|
+
class: i.value
|
|
1329
|
+
}, [b("div", {
|
|
1563
1330
|
class: "farris-group-wrap",
|
|
1564
|
-
style:
|
|
1565
|
-
}, [
|
|
1566
|
-
class:
|
|
1567
|
-
}, [
|
|
1331
|
+
style: S.value
|
|
1332
|
+
}, [b("div", {
|
|
1333
|
+
class: R.value
|
|
1334
|
+
}, [O(), b("div", {
|
|
1568
1335
|
class: "farris-input-wrap"
|
|
1569
|
-
}, [
|
|
1336
|
+
}, [P.value()])])])]);
|
|
1570
1337
|
}
|
|
1571
1338
|
});
|
|
1572
|
-
function
|
|
1573
|
-
function n() {
|
|
1574
|
-
return !0;
|
|
1575
|
-
}
|
|
1339
|
+
function Qo(t, e) {
|
|
1576
1340
|
function o() {
|
|
1577
1341
|
return !0;
|
|
1578
1342
|
}
|
|
1579
1343
|
function i() {
|
|
1344
|
+
return !0;
|
|
1345
|
+
}
|
|
1346
|
+
function n() {
|
|
1580
1347
|
return !1;
|
|
1581
1348
|
}
|
|
1582
|
-
function
|
|
1349
|
+
function l() {
|
|
1583
1350
|
return !0;
|
|
1584
1351
|
}
|
|
1585
|
-
function
|
|
1586
|
-
var
|
|
1587
|
-
const
|
|
1588
|
-
if (!
|
|
1352
|
+
function p(m) {
|
|
1353
|
+
var P;
|
|
1354
|
+
const w = e == null ? void 0 : e.designViewModelUtils, E = e == null ? void 0 : e.formSchemaUtils, L = (P = t == null ? void 0 : t.componentInstance.value) == null ? void 0 : P.belongedComponentId;
|
|
1355
|
+
if (!L || !w || !E)
|
|
1589
1356
|
return;
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1592
|
-
}
|
|
1593
|
-
function
|
|
1594
|
-
const
|
|
1595
|
-
if (
|
|
1596
|
-
let
|
|
1597
|
-
if (
|
|
1598
|
-
var
|
|
1599
|
-
if (
|
|
1357
|
+
const $ = E.getViewModelIdByComponentId(L), R = w.getDgViewModel($);
|
|
1358
|
+
R && R.removeField([m]);
|
|
1359
|
+
}
|
|
1360
|
+
function C(m, w) {
|
|
1361
|
+
const E = e == null ? void 0 : e.formSchemaUtils, { schema: L } = t;
|
|
1362
|
+
if (E.getComponents().find((R) => {
|
|
1363
|
+
let P = E.getControlsInCmpWidthBinding(R.viewModel, m);
|
|
1364
|
+
if (P = P.filter((M) => {
|
|
1365
|
+
var A;
|
|
1366
|
+
if (M.id === L.id)
|
|
1600
1367
|
return !1;
|
|
1601
|
-
const
|
|
1602
|
-
if (
|
|
1368
|
+
const q = w.type === "visible" ? M[w.type] : (A = M.editor) == null ? void 0 : A[w.type];
|
|
1369
|
+
if (q && q.type === "Expression" && q.expressionId === w.id)
|
|
1603
1370
|
return !0;
|
|
1604
|
-
}),
|
|
1371
|
+
}), P.length)
|
|
1605
1372
|
return !0;
|
|
1606
1373
|
}))
|
|
1607
1374
|
return !0;
|
|
1608
1375
|
}
|
|
1609
|
-
function
|
|
1610
|
-
var
|
|
1611
|
-
const
|
|
1612
|
-
if (
|
|
1613
|
-
const
|
|
1614
|
-
|
|
1615
|
-
var
|
|
1616
|
-
switch (
|
|
1376
|
+
function g(m) {
|
|
1377
|
+
var L;
|
|
1378
|
+
const w = e == null ? void 0 : e.formSchemaUtils, { schema: E } = t;
|
|
1379
|
+
if (w.getExpressions().length) {
|
|
1380
|
+
const $ = w.getExpressions(), R = $.findIndex((P) => P.target === m);
|
|
1381
|
+
R > -1 && ((L = $[R].rules) == null || L.map((P) => {
|
|
1382
|
+
var M;
|
|
1383
|
+
switch (P.type) {
|
|
1617
1384
|
case "visible":
|
|
1618
1385
|
case "readonly":
|
|
1619
1386
|
case "required": {
|
|
1620
|
-
const
|
|
1621
|
-
|
|
1387
|
+
const q = P.type === "visible" ? E[P.type] : (M = E.editor) == null ? void 0 : M[P.type];
|
|
1388
|
+
q && q.type === "Expression" && q.expressionId === P.id && (C(m, P) || (P.needDelete = !0));
|
|
1622
1389
|
break;
|
|
1623
1390
|
}
|
|
1624
1391
|
default:
|
|
1625
|
-
|
|
1392
|
+
C(m, P) || (P.needDelete = !0);
|
|
1626
1393
|
}
|
|
1627
|
-
}),
|
|
1394
|
+
}), $[R].rules = $[R].rules.filter((P) => !P.needDelete));
|
|
1628
1395
|
}
|
|
1629
1396
|
}
|
|
1630
|
-
function
|
|
1631
|
-
var
|
|
1632
|
-
const
|
|
1633
|
-
((
|
|
1397
|
+
function y() {
|
|
1398
|
+
var w, E;
|
|
1399
|
+
const m = (w = t == null ? void 0 : t.parent) == null ? void 0 : w.componentInstance.value;
|
|
1400
|
+
((E = m == null ? void 0 : m.schema) == null ? void 0 : E.type) === a["response-layout-item"].type && (m != null && m.schema.appearance.class) && (m.schema.appearance.class = m.schema.appearance.class.replace("f-form-layout", ""), m.schema.appearance.class = m.schema.appearance.class.replace("farris-form", ""), m.schema.appearance.class = m.schema.appearance.class.replace("farris-form-controls-inline", ""), m.schema.appearance.class = m.schema.appearance.class.replace("farris-form-auto", ""), m.schema.appearance.class = m.schema.appearance.class.trim().replace(" ", " "));
|
|
1634
1401
|
}
|
|
1635
|
-
function
|
|
1636
|
-
const { schema:
|
|
1637
|
-
|
|
1402
|
+
function F() {
|
|
1403
|
+
const { schema: m } = t, w = m.binding && m.binding.field;
|
|
1404
|
+
w && (p(w), g(w)), y();
|
|
1638
1405
|
}
|
|
1639
1406
|
return {
|
|
1640
|
-
canAccepts:
|
|
1641
|
-
checkCanDeleteComponent:
|
|
1642
|
-
checkCanMoveComponent:
|
|
1643
|
-
hideNestedPaddingInDesginerView:
|
|
1644
|
-
onRemoveComponent:
|
|
1407
|
+
canAccepts: n,
|
|
1408
|
+
checkCanDeleteComponent: i,
|
|
1409
|
+
checkCanMoveComponent: o,
|
|
1410
|
+
hideNestedPaddingInDesginerView: l,
|
|
1411
|
+
onRemoveComponent: F
|
|
1645
1412
|
};
|
|
1646
1413
|
}
|
|
1647
|
-
const
|
|
1414
|
+
const _o = /* @__PURE__ */ _({
|
|
1648
1415
|
name: "FFormGroupDesign",
|
|
1649
|
-
props:
|
|
1416
|
+
props: ye,
|
|
1650
1417
|
emits: [],
|
|
1651
|
-
setup(
|
|
1652
|
-
const
|
|
1653
|
-
return
|
|
1654
|
-
|
|
1655
|
-
var
|
|
1656
|
-
let
|
|
1657
|
-
return
|
|
1418
|
+
setup(t, e) {
|
|
1419
|
+
const o = B(), i = Q("design-item-context"), n = Q("designer-host-service"), l = Qo(i, n), p = fe(o, i, l);
|
|
1420
|
+
return ce(() => {
|
|
1421
|
+
o.value.componentInstance = p, p.value.getPropConfig = (...C) => {
|
|
1422
|
+
var y, F, m;
|
|
1423
|
+
let g = Oe[t.editor.type];
|
|
1424
|
+
return g && Object.keys(g).length === 0 && ((y = o.value) != null && y.editorRef) && ((m = (F = o.value) == null ? void 0 : F.editorRef) != null && m.getPropConfig) && (g = o.value.editorRef.getPropConfig(...C, p.value)), g;
|
|
1658
1425
|
};
|
|
1659
|
-
}),
|
|
1660
|
-
ref:
|
|
1426
|
+
}), e.expose(p.value), () => b(Ko, me(t, {
|
|
1427
|
+
ref: o
|
|
1661
1428
|
}), null);
|
|
1662
1429
|
}
|
|
1663
|
-
}),
|
|
1664
|
-
["appearance",
|
|
1665
|
-
]),
|
|
1666
|
-
class
|
|
1667
|
-
constructor(
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
this.resolver =
|
|
1672
|
-
}
|
|
1673
|
-
createComponent(
|
|
1674
|
-
const
|
|
1675
|
-
return
|
|
1676
|
-
}
|
|
1677
|
-
createComponentRefNode(
|
|
1678
|
-
const
|
|
1679
|
-
return Object.assign(
|
|
1680
|
-
id: `${
|
|
1681
|
-
component: `${
|
|
1682
|
-
}),
|
|
1683
|
-
}
|
|
1684
|
-
createComponentNode(
|
|
1685
|
-
const
|
|
1686
|
-
return Object.assign(
|
|
1687
|
-
id: `${
|
|
1688
|
-
viewModel: `${
|
|
1689
|
-
componentType:
|
|
1430
|
+
}), ge = /* @__PURE__ */ new Map([
|
|
1431
|
+
["appearance", Ze]
|
|
1432
|
+
]), Yo = /* @__PURE__ */ new Map([]), Ho = "root-viewmodel";
|
|
1433
|
+
class en {
|
|
1434
|
+
constructor(e, o) {
|
|
1435
|
+
se(this, "formSchemaUtils");
|
|
1436
|
+
se(this, "controlCreatorUtils");
|
|
1437
|
+
se(this, "designViewModelUtils");
|
|
1438
|
+
this.resolver = e, this.designerHostService = o, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
|
|
1439
|
+
}
|
|
1440
|
+
createComponent(e) {
|
|
1441
|
+
const o = this.createComponentRefNode(e), i = this.createComponentNode(e), n = this.createViewModeNode(e), l = this.formSchemaUtils.getFormSchema();
|
|
1442
|
+
return l.module.viewmodels.push(n), l.module.components.push(i), this.designViewModelUtils.assembleDesignViewModel(), o;
|
|
1443
|
+
}
|
|
1444
|
+
createComponentRefNode(e) {
|
|
1445
|
+
const o = this.resolver.getSchemaByType("component-ref");
|
|
1446
|
+
return Object.assign(o, {
|
|
1447
|
+
id: `${e.componentId}-component-ref`,
|
|
1448
|
+
component: `${e.componentId}-component`
|
|
1449
|
+
}), o;
|
|
1450
|
+
}
|
|
1451
|
+
createComponentNode(e) {
|
|
1452
|
+
const o = this.resolver.getSchemaByType("component"), i = this.createFormComponentContents(e);
|
|
1453
|
+
return Object.assign(o, {
|
|
1454
|
+
id: `${e.componentId}-component`,
|
|
1455
|
+
viewModel: `${e.componentId}-component-viewmodel`,
|
|
1456
|
+
componentType: e.componentType,
|
|
1690
1457
|
appearance: {
|
|
1691
|
-
class: this.getFormComponentClass()
|
|
1458
|
+
class: this.getFormComponentClass(e)
|
|
1692
1459
|
},
|
|
1693
|
-
formColumns:
|
|
1694
|
-
contents:
|
|
1695
|
-
}),
|
|
1460
|
+
formColumns: e.formColumns,
|
|
1461
|
+
contents: i
|
|
1462
|
+
}), o;
|
|
1696
1463
|
}
|
|
1697
1464
|
/**
|
|
1698
1465
|
* 获取卡片组件层级的class样式
|
|
1699
1466
|
*/
|
|
1700
|
-
getFormComponentClass() {
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1467
|
+
getFormComponentClass(e) {
|
|
1468
|
+
var i, n;
|
|
1469
|
+
const { templateId: o } = this.formSchemaUtils.getFormSchema().module;
|
|
1470
|
+
if (o === "double-list-in-tab-template" && ((n = (i = e.parentComponentInstance) == null ? void 0 : i.schema) == null ? void 0 : n.type) === "tab-page") {
|
|
1471
|
+
const l = e.parentComponentInstance.parent && e.parentComponentInstance.parent.schema;
|
|
1472
|
+
if ((l == null ? void 0 : l.type) === "tabs" && (l == null ? void 0 : l.fill) === !0)
|
|
1473
|
+
return "f-struct-wrapper f-utils-fill-flex-column";
|
|
1474
|
+
}
|
|
1475
|
+
return "f-struct-wrapper";
|
|
1476
|
+
}
|
|
1477
|
+
createFormComponentContents(e) {
|
|
1478
|
+
var C, g;
|
|
1479
|
+
const o = this.resolver.getSchemaByType("section");
|
|
1480
|
+
Object.assign(o, {
|
|
1481
|
+
id: e.componentId + "-form-section",
|
|
1708
1482
|
appearance: {
|
|
1709
1483
|
class: "f-section-form f-section-in-mainsubcard"
|
|
1710
1484
|
},
|
|
1711
|
-
mainTitle:
|
|
1485
|
+
mainTitle: e.componentName
|
|
1712
1486
|
});
|
|
1713
|
-
const
|
|
1714
|
-
Object.assign(
|
|
1715
|
-
id:
|
|
1487
|
+
const i = this.resolver.getSchemaByType("response-form"), n = [];
|
|
1488
|
+
Object.assign(i, {
|
|
1489
|
+
id: e.componentId + "-form",
|
|
1716
1490
|
appearance: {
|
|
1717
1491
|
class: "f-form-layout farris-form farris-form-controls-inline"
|
|
1718
1492
|
},
|
|
1719
|
-
contents:
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1493
|
+
contents: n,
|
|
1494
|
+
controlsInline: !0
|
|
1495
|
+
}), o.contents = [i];
|
|
1496
|
+
const { selectedFields: l } = e;
|
|
1497
|
+
l == null || l.forEach((y) => {
|
|
1498
|
+
if (y.$type === Fe.SimpleField) {
|
|
1499
|
+
const F = To(y), m = this.resolveControlClassByFormColumns(e), w = this.controlCreatorUtils.setFormFieldProperty(F, "", m);
|
|
1500
|
+
w && n.push(w);
|
|
1726
1501
|
}
|
|
1727
1502
|
});
|
|
1728
|
-
const { templateId:
|
|
1729
|
-
|
|
1503
|
+
const { templateId: p } = this.formSchemaUtils.getFormSchema().module;
|
|
1504
|
+
if (p === "double-list-in-tab-template" && ((g = (C = e.parentComponentInstance) == null ? void 0 : C.schema) == null ? void 0 : g.type) === "tab-page") {
|
|
1505
|
+
const y = e.parentComponentInstance.parent && e.parentComponentInstance.parent.schema;
|
|
1506
|
+
(y == null ? void 0 : y.type) === "tabs" && (y == null ? void 0 : y.fill) === !0 && (o.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", o.fill = !0);
|
|
1507
|
+
}
|
|
1508
|
+
return [o];
|
|
1730
1509
|
}
|
|
1731
|
-
resolveControlClassByFormColumns(
|
|
1732
|
-
let
|
|
1733
|
-
switch (
|
|
1510
|
+
resolveControlClassByFormColumns(e) {
|
|
1511
|
+
let o = "";
|
|
1512
|
+
switch (e.formColumns) {
|
|
1734
1513
|
case 1: {
|
|
1735
|
-
|
|
1514
|
+
o = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1736
1515
|
break;
|
|
1737
1516
|
}
|
|
1738
1517
|
case 2: {
|
|
1739
|
-
|
|
1518
|
+
o = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1740
1519
|
break;
|
|
1741
1520
|
}
|
|
1742
1521
|
case 3: {
|
|
1743
|
-
|
|
1522
|
+
o = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1744
1523
|
break;
|
|
1745
1524
|
}
|
|
1746
1525
|
case 4: {
|
|
1747
|
-
|
|
1526
|
+
o = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1748
1527
|
break;
|
|
1749
1528
|
}
|
|
1750
1529
|
}
|
|
1751
|
-
return
|
|
1530
|
+
return o;
|
|
1752
1531
|
}
|
|
1753
1532
|
/**
|
|
1754
1533
|
* 添加viewModel节点
|
|
1755
1534
|
*/
|
|
1756
|
-
createViewModeNode(
|
|
1535
|
+
createViewModeNode(e) {
|
|
1757
1536
|
return {
|
|
1758
|
-
id: `${
|
|
1759
|
-
code: `${
|
|
1760
|
-
name:
|
|
1761
|
-
bindTo:
|
|
1762
|
-
parent:
|
|
1763
|
-
fields: this.assembleViewModelFields(
|
|
1537
|
+
id: `${e.componentId}-component-viewmodel`,
|
|
1538
|
+
code: `${e.componentId}-component-viewmodel`,
|
|
1539
|
+
name: e.componentName,
|
|
1540
|
+
bindTo: e.bindTo,
|
|
1541
|
+
parent: Ho,
|
|
1542
|
+
fields: this.assembleViewModelFields(e),
|
|
1764
1543
|
commands: [],
|
|
1765
1544
|
states: [],
|
|
1766
1545
|
enableValidation: !0
|
|
@@ -1769,46 +1548,47 @@ class zt {
|
|
|
1769
1548
|
/**
|
|
1770
1549
|
* 组装viewModel fields 节点
|
|
1771
1550
|
*/
|
|
1772
|
-
assembleViewModelFields(
|
|
1773
|
-
const
|
|
1774
|
-
return
|
|
1775
|
-
if (
|
|
1776
|
-
let
|
|
1777
|
-
const
|
|
1778
|
-
(
|
|
1551
|
+
assembleViewModelFields(e) {
|
|
1552
|
+
const o = [], { selectedFields: i } = e;
|
|
1553
|
+
return i == null || i.forEach((n) => {
|
|
1554
|
+
if (n.$type === Fe.SimpleField) {
|
|
1555
|
+
let l = "blur";
|
|
1556
|
+
const p = n.type.name;
|
|
1557
|
+
(p === be.Enum || p === be.Boolean) && (l = "change"), o.push({
|
|
1779
1558
|
type: "Form",
|
|
1780
|
-
id:
|
|
1781
|
-
fieldName:
|
|
1559
|
+
id: n.id,
|
|
1560
|
+
fieldName: n.bindingField,
|
|
1782
1561
|
groupId: null,
|
|
1783
1562
|
groupName: null,
|
|
1784
|
-
updateOn:
|
|
1563
|
+
updateOn: l,
|
|
1785
1564
|
fieldSchema: {}
|
|
1786
1565
|
});
|
|
1787
1566
|
}
|
|
1788
|
-
}),
|
|
1567
|
+
}), o;
|
|
1789
1568
|
}
|
|
1790
1569
|
}
|
|
1791
|
-
function
|
|
1792
|
-
var
|
|
1793
|
-
const
|
|
1794
|
-
if (
|
|
1795
|
-
const
|
|
1570
|
+
function tn(t, e, o, i) {
|
|
1571
|
+
var l, p, C, g, y, F;
|
|
1572
|
+
const n = o.parentComponentInstance;
|
|
1573
|
+
if (n && i) {
|
|
1574
|
+
const m = (l = n.schema) == null ? void 0 : l.type, E = {
|
|
1796
1575
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
1797
|
-
componentName: ((
|
|
1576
|
+
componentName: ((p = o.bindingSourceContext) == null ? void 0 : p.entityTitle) || ((g = (C = o.bindingSourceContext) == null ? void 0 : C.bindingEntity) == null ? void 0 : g.name) || "标题",
|
|
1798
1577
|
componentType: "form",
|
|
1799
|
-
formColumns:
|
|
1800
|
-
parentContainerId:
|
|
1801
|
-
|
|
1802
|
-
|
|
1578
|
+
formColumns: m === "splitter-pane" ? 1 : 4,
|
|
1579
|
+
parentContainerId: n.schema.id,
|
|
1580
|
+
parentComponentInstance: n,
|
|
1581
|
+
bindTo: ((y = o.bindingSourceContext) == null ? void 0 : y.bindTo) || "/",
|
|
1582
|
+
selectedFields: (F = o.bindingSourceContext) == null ? void 0 : F.bindingEntityFields
|
|
1803
1583
|
};
|
|
1804
|
-
return new
|
|
1584
|
+
return new en(t, i).createComponent(E);
|
|
1805
1585
|
} else
|
|
1806
|
-
return
|
|
1586
|
+
return e;
|
|
1807
1587
|
}
|
|
1808
|
-
function
|
|
1809
|
-
return
|
|
1588
|
+
function on(t, e, o) {
|
|
1589
|
+
return e;
|
|
1810
1590
|
}
|
|
1811
|
-
const
|
|
1591
|
+
const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-design.gitee.io/grid-field-editor.schema.json", an = "response-form-layout-setting", sn = "A Farris Data Grid Component", ln = "object", un = {
|
|
1812
1592
|
id: {
|
|
1813
1593
|
description: "The unique identifier for a Input Group",
|
|
1814
1594
|
type: "string"
|
|
@@ -1822,18 +1602,18 @@ const Xt = "https://json-schema.org/draft/2020-12/schema", Qt = "https://farris-
|
|
|
1822
1602
|
description: "",
|
|
1823
1603
|
type: "object"
|
|
1824
1604
|
}
|
|
1825
|
-
},
|
|
1605
|
+
}, cn = [
|
|
1826
1606
|
"id",
|
|
1827
1607
|
"type"
|
|
1828
|
-
],
|
|
1829
|
-
$schema:
|
|
1830
|
-
$id:
|
|
1831
|
-
title:
|
|
1832
|
-
description:
|
|
1833
|
-
type:
|
|
1834
|
-
properties:
|
|
1835
|
-
required:
|
|
1836
|
-
},
|
|
1608
|
+
], pn = {
|
|
1609
|
+
$schema: nn,
|
|
1610
|
+
$id: rn,
|
|
1611
|
+
title: an,
|
|
1612
|
+
description: sn,
|
|
1613
|
+
type: ln,
|
|
1614
|
+
properties: un,
|
|
1615
|
+
required: cn
|
|
1616
|
+
}, xe = {
|
|
1837
1617
|
initialState: {
|
|
1838
1618
|
type: Object,
|
|
1839
1619
|
default: {
|
|
@@ -1843,142 +1623,142 @@ const Xt = "https://json-schema.org/draft/2020-12/schema", Qt = "https://farris-
|
|
|
1843
1623
|
uniqueColClassInEL: 2
|
|
1844
1624
|
}
|
|
1845
1625
|
}
|
|
1846
|
-
},
|
|
1626
|
+
}, dn = le(xe, pn, Yo, on), mn = /* @__PURE__ */ _({
|
|
1847
1627
|
name: "FResponseFormLayoutSetting",
|
|
1848
|
-
props:
|
|
1628
|
+
props: xe,
|
|
1849
1629
|
emits: ["change"],
|
|
1850
|
-
setup(
|
|
1851
|
-
const
|
|
1852
|
-
let
|
|
1853
|
-
const
|
|
1854
|
-
function
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1630
|
+
setup(t, e) {
|
|
1631
|
+
const o = [1], i = [1, 2], n = [1, 2, 3, 4], l = [1, 2, 3, 4, 6];
|
|
1632
|
+
let p = [], C = [], g = [], y = [];
|
|
1633
|
+
const F = B(t.initialState), m = B(-1), w = B(-1), E = B(-1), L = B(-1);
|
|
1634
|
+
function $() {
|
|
1635
|
+
const M = "自定义", q = 12 / F.value.uniqueColClassInSM;
|
|
1636
|
+
o.includes(q) ? m.value = q : (p.push({
|
|
1857
1637
|
value: 0,
|
|
1858
|
-
name:
|
|
1859
|
-
}),
|
|
1860
|
-
const
|
|
1861
|
-
|
|
1638
|
+
name: M
|
|
1639
|
+
}), m.value = 0);
|
|
1640
|
+
const A = 12 / F.value.uniqueColClassInMD;
|
|
1641
|
+
i.includes(A) ? w.value = A : (C.push({
|
|
1862
1642
|
value: 0,
|
|
1863
|
-
name:
|
|
1864
|
-
}),
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1643
|
+
name: M
|
|
1644
|
+
}), w.value = 0);
|
|
1645
|
+
const O = 12 / F.value.uniqueColClassInLG;
|
|
1646
|
+
n.includes(O) ? E.value = O : (g.push({
|
|
1867
1647
|
value: 0,
|
|
1868
|
-
name:
|
|
1869
|
-
}),
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1648
|
+
name: M
|
|
1649
|
+
}), E.value = 0);
|
|
1650
|
+
const S = 12 / F.value.uniqueColClassInEL;
|
|
1651
|
+
l.includes(S) ? L.value = S : (y.push({
|
|
1872
1652
|
value: 0,
|
|
1873
|
-
name:
|
|
1874
|
-
}),
|
|
1653
|
+
name: M
|
|
1654
|
+
}), L.value = 0), p = [...p], C = [...C], g = [...g], y = [...y];
|
|
1875
1655
|
}
|
|
1876
|
-
function
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
value:
|
|
1880
|
-
name:
|
|
1881
|
-
});
|
|
1882
|
-
}), o.forEach((h) => {
|
|
1883
|
-
w.push({
|
|
1884
|
-
value: h,
|
|
1885
|
-
name: h + ""
|
|
1656
|
+
function R() {
|
|
1657
|
+
o.forEach((M) => {
|
|
1658
|
+
p.push({
|
|
1659
|
+
value: M,
|
|
1660
|
+
name: M + ""
|
|
1886
1661
|
});
|
|
1887
|
-
}), i.forEach((
|
|
1662
|
+
}), i.forEach((M) => {
|
|
1888
1663
|
C.push({
|
|
1889
|
-
value:
|
|
1890
|
-
name:
|
|
1664
|
+
value: M,
|
|
1665
|
+
name: M + ""
|
|
1891
1666
|
});
|
|
1892
|
-
}),
|
|
1893
|
-
|
|
1894
|
-
value:
|
|
1895
|
-
name:
|
|
1667
|
+
}), n.forEach((M) => {
|
|
1668
|
+
g.push({
|
|
1669
|
+
value: M,
|
|
1670
|
+
name: M + ""
|
|
1671
|
+
});
|
|
1672
|
+
}), l.forEach((M) => {
|
|
1673
|
+
y.push({
|
|
1674
|
+
value: M,
|
|
1675
|
+
name: M + ""
|
|
1896
1676
|
});
|
|
1897
1677
|
});
|
|
1898
1678
|
}
|
|
1899
|
-
function
|
|
1900
|
-
|
|
1901
|
-
|
|
1679
|
+
function P() {
|
|
1680
|
+
ko.question("应用统一布局,将重置区域内部所有控件的宽度样式,确定应用?", "", () => {
|
|
1681
|
+
F.value.uniqueColClassInSM = m.value === 0 ? null : 12 / m.value, F.value.uniqueColClassInMD = w.value === 0 ? null : 12 / w.value, F.value.uniqueColClassInLG = E.value === 0 ? null : 12 / E.value, F.value.uniqueColClassInEL = L.value === 0 ? null : 12 / L.value, e.emit("change", F.value);
|
|
1902
1682
|
}, () => {
|
|
1903
1683
|
});
|
|
1904
1684
|
}
|
|
1905
|
-
return
|
|
1906
|
-
|
|
1907
|
-
}), () =>
|
|
1685
|
+
return ce(() => {
|
|
1686
|
+
R(), $();
|
|
1687
|
+
}), () => b("div", null, [b("div", {
|
|
1908
1688
|
class: "f-form-layout farris-form farris-form-controls-inline"
|
|
1909
|
-
}, [
|
|
1689
|
+
}, [b("div", {
|
|
1910
1690
|
class: "form-group farris-form-group screenGroup"
|
|
1911
|
-
}, [
|
|
1691
|
+
}, [b("span", {
|
|
1912
1692
|
class: "screenName"
|
|
1913
|
-
}, [X(" 小屏幕 ")]),
|
|
1693
|
+
}, [X(" 小屏幕 ")]), b("div", {
|
|
1914
1694
|
class: "d-flex ml-2 screen-input"
|
|
1915
|
-
}, [
|
|
1916
|
-
data:
|
|
1695
|
+
}, [b(ue, {
|
|
1696
|
+
data: p,
|
|
1917
1697
|
idField: "value",
|
|
1918
1698
|
valueField: "value",
|
|
1919
1699
|
editable: !1,
|
|
1920
1700
|
enableClear: !1,
|
|
1921
|
-
modelValue:
|
|
1922
|
-
"onUpdate:modelValue": (
|
|
1923
|
-
}, null),
|
|
1701
|
+
modelValue: m.value,
|
|
1702
|
+
"onUpdate:modelValue": (M) => m.value = M
|
|
1703
|
+
}, null), b("span", {
|
|
1924
1704
|
class: "ml-2 columnText"
|
|
1925
|
-
}, [X("列")])])]),
|
|
1705
|
+
}, [X("列")])])]), b("div", {
|
|
1926
1706
|
class: "form-group farris-form-group screenGroup"
|
|
1927
|
-
}, [
|
|
1707
|
+
}, [b("span", {
|
|
1928
1708
|
class: "screenName"
|
|
1929
|
-
}, [X("中等屏幕")]),
|
|
1709
|
+
}, [X("中等屏幕")]), b("div", {
|
|
1930
1710
|
class: "d-flex ml-2 screen-input"
|
|
1931
|
-
}, [
|
|
1932
|
-
data:
|
|
1711
|
+
}, [b(ue, {
|
|
1712
|
+
data: C,
|
|
1933
1713
|
idField: "value",
|
|
1934
1714
|
valueField: "value",
|
|
1935
1715
|
editable: !1,
|
|
1936
1716
|
enableClear: !1,
|
|
1937
|
-
modelValue:
|
|
1938
|
-
"onUpdate:modelValue": (
|
|
1939
|
-
}, null),
|
|
1717
|
+
modelValue: w.value,
|
|
1718
|
+
"onUpdate:modelValue": (M) => w.value = M
|
|
1719
|
+
}, null), b("span", {
|
|
1940
1720
|
class: "ml-2 columnText"
|
|
1941
|
-
}, [X("列")])])]),
|
|
1721
|
+
}, [X("列")])])]), b("div", {
|
|
1942
1722
|
class: "form-group farris-form-group screenGroup"
|
|
1943
|
-
}, [
|
|
1723
|
+
}, [b("span", {
|
|
1944
1724
|
class: "screenName"
|
|
1945
|
-
}, [X("大屏幕")]),
|
|
1725
|
+
}, [X("大屏幕")]), b("div", {
|
|
1946
1726
|
class: "d-flex ml-2 screen-input"
|
|
1947
|
-
}, [
|
|
1948
|
-
data:
|
|
1727
|
+
}, [b(ue, {
|
|
1728
|
+
data: g,
|
|
1949
1729
|
idField: "value",
|
|
1950
1730
|
valueField: "value",
|
|
1951
1731
|
editable: !1,
|
|
1952
1732
|
enableClear: !1,
|
|
1953
|
-
modelValue:
|
|
1954
|
-
"onUpdate:modelValue": (
|
|
1955
|
-
}, null),
|
|
1733
|
+
modelValue: E.value,
|
|
1734
|
+
"onUpdate:modelValue": (M) => E.value = M
|
|
1735
|
+
}, null), b("span", {
|
|
1956
1736
|
class: "ml-2 columnText"
|
|
1957
|
-
}, [X("列")])])]),
|
|
1737
|
+
}, [X("列")])])]), b("div", {
|
|
1958
1738
|
class: "form-group farris-form-group screenGroup"
|
|
1959
|
-
}, [
|
|
1739
|
+
}, [b("span", {
|
|
1960
1740
|
class: "screenName"
|
|
1961
|
-
}, [X("极大屏幕")]),
|
|
1741
|
+
}, [X("极大屏幕")]), b("div", {
|
|
1962
1742
|
class: "d-flex ml-2 screen-input"
|
|
1963
|
-
}, [
|
|
1964
|
-
data:
|
|
1743
|
+
}, [b(ue, {
|
|
1744
|
+
data: y,
|
|
1965
1745
|
idField: "value",
|
|
1966
1746
|
valueField: "value",
|
|
1967
1747
|
editable: !1,
|
|
1968
1748
|
enableClear: !1,
|
|
1969
|
-
modelValue:
|
|
1970
|
-
"onUpdate:modelValue": (
|
|
1971
|
-
}, null),
|
|
1749
|
+
modelValue: L.value,
|
|
1750
|
+
"onUpdate:modelValue": (M) => L.value = M
|
|
1751
|
+
}, null), b("span", {
|
|
1972
1752
|
class: "ml-2 columnText"
|
|
1973
|
-
}, [X("列")])])])]),
|
|
1753
|
+
}, [X("列")])])])]), b("div", {
|
|
1974
1754
|
class: "applyBtn"
|
|
1975
|
-
}, [
|
|
1755
|
+
}, [b("button", {
|
|
1976
1756
|
class: "btn f-rt-btn btn-primary",
|
|
1977
1757
|
type: "button",
|
|
1978
|
-
onClick: () =>
|
|
1758
|
+
onClick: () => P()
|
|
1979
1759
|
}, [X("应用")])])]);
|
|
1980
1760
|
}
|
|
1981
|
-
}),
|
|
1761
|
+
}), fn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-design.gitee.io/response-form.schema.json", gn = "response-form", hn = "A Farris Data Collection Component", Cn = "object", vn = {
|
|
1982
1762
|
id: {
|
|
1983
1763
|
description: "The unique identifier for a form group",
|
|
1984
1764
|
type: "string"
|
|
@@ -2021,19 +1801,19 @@ const Xt = "https://json-schema.org/draft/2020-12/schema", Qt = "https://farris-
|
|
|
2021
1801
|
type: "boolean",
|
|
2022
1802
|
default: !0
|
|
2023
1803
|
}
|
|
2024
|
-
},
|
|
1804
|
+
}, Fn = [
|
|
2025
1805
|
"id",
|
|
2026
1806
|
"type",
|
|
2027
1807
|
"contents"
|
|
2028
|
-
],
|
|
2029
|
-
$schema:
|
|
2030
|
-
$id:
|
|
2031
|
-
title:
|
|
2032
|
-
description:
|
|
2033
|
-
type:
|
|
2034
|
-
properties:
|
|
2035
|
-
required:
|
|
2036
|
-
},
|
|
1808
|
+
], bn = {
|
|
1809
|
+
$schema: fn,
|
|
1810
|
+
$id: yn,
|
|
1811
|
+
title: gn,
|
|
1812
|
+
description: hn,
|
|
1813
|
+
type: Cn,
|
|
1814
|
+
properties: vn,
|
|
1815
|
+
required: Fn
|
|
1816
|
+
}, wn = "https://json-schema.org/draft/2020-12/schema", In = "https://farris-design.gitee.io/form-group.schema.json", Vn = "form-group", Tn = "A Farris Input Component", kn = "object", Mn = {
|
|
2037
1817
|
id: {
|
|
2038
1818
|
description: "The unique identifier for a form group",
|
|
2039
1819
|
type: "string"
|
|
@@ -2108,40 +1888,42 @@ const Xt = "https://json-schema.org/draft/2020-12/schema", Qt = "https://farris-
|
|
|
2108
1888
|
type: "boolean",
|
|
2109
1889
|
default: !1
|
|
2110
1890
|
}
|
|
2111
|
-
},
|
|
1891
|
+
}, Bn = [
|
|
2112
1892
|
"id",
|
|
2113
1893
|
"type",
|
|
2114
1894
|
"editor"
|
|
2115
|
-
],
|
|
2116
|
-
$schema:
|
|
2117
|
-
$id:
|
|
2118
|
-
title:
|
|
2119
|
-
description:
|
|
2120
|
-
type:
|
|
2121
|
-
properties:
|
|
2122
|
-
required:
|
|
2123
|
-
},
|
|
1895
|
+
], Ee = {
|
|
1896
|
+
$schema: wn,
|
|
1897
|
+
$id: In,
|
|
1898
|
+
title: Vn,
|
|
1899
|
+
description: Tn,
|
|
1900
|
+
type: kn,
|
|
1901
|
+
properties: Mn,
|
|
1902
|
+
required: Bn
|
|
1903
|
+
}, Pe = le($e, bn, ge, tn), Le = le(
|
|
1904
|
+
Ve,
|
|
1905
|
+
Ee,
|
|
2124
1906
|
ge,
|
|
2125
|
-
Te,
|
|
2126
|
-
ce,
|
|
2127
1907
|
void 0
|
|
2128
|
-
),
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
1908
|
+
), xn = We(), En = le(
|
|
1909
|
+
Ae,
|
|
1910
|
+
Ee,
|
|
1911
|
+
ge,
|
|
2132
1912
|
void 0
|
|
2133
1913
|
);
|
|
2134
|
-
|
|
2135
|
-
|
|
1914
|
+
pe.register = (t, e, o, i) => {
|
|
1915
|
+
t["form-group"] = No, e["form-group"] = Le, t["response-form"] = Re, e["response-form"] = Pe, t["form-input"] = qe, e["form-input"] = En, i["form-group"] = { editorResolver: xn }, t["response-form-layout-setting"] = mn, e["response-form-layout-setting"] = dn;
|
|
2136
1916
|
};
|
|
2137
|
-
|
|
2138
|
-
|
|
1917
|
+
pe.registerDesigner = (t, e, o) => {
|
|
1918
|
+
t["form-group"] = _o, e["form-group"] = Le, t["response-form"] = pe, e["response-form"] = Pe;
|
|
2139
1919
|
};
|
|
2140
1920
|
export {
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
1921
|
+
No as FDynamicFormGroup,
|
|
1922
|
+
pe as FResponseFormDesign,
|
|
1923
|
+
pe as default,
|
|
1924
|
+
xn as editorResolver,
|
|
1925
|
+
Le as formGroupPropsResolver,
|
|
1926
|
+
En as formInputPropsResolver,
|
|
1927
|
+
Pe as formPropsResolver,
|
|
1928
|
+
Ao as useDesignerRules
|
|
2147
1929
|
};
|