@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,132 +1,125 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { LocaleService as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
1
|
+
import { defineComponent as oe, ref as v, computed as G, withDirectives as Fe, createVNode as x, resolveDirective as be, watch as te, createTextVNode as ve, mergeProps as ae } from "vue";
|
|
2
|
+
import { LocaleService as we } from "../locale/index.esm.js";
|
|
3
|
+
import Ie from "../../designer/accordion/index.esm.js";
|
|
4
|
+
import Ve from "../../designer/avatar/index.esm.js";
|
|
5
|
+
import ke from "../../designer/button-edit/index.esm.js";
|
|
6
|
+
import Be from "../../designer/button-group/index.esm.js";
|
|
7
|
+
import de, { calendarProps as Te } from "../calendar/index.esm.js";
|
|
8
|
+
import Ee from "../../designer/capsule/index.esm.js";
|
|
9
|
+
import ie from "../../designer/checkbox/index.esm.js";
|
|
10
|
+
import le from "../../designer/checkbox-group/index.esm.js";
|
|
11
|
+
import Le from "../../designer/combo-list/index.esm.js";
|
|
12
|
+
import Pe from "../../designer/combo-tree/index.esm.js";
|
|
13
|
+
import Ue from "../../designer/component/index.esm.js";
|
|
14
|
+
import xe from "../../designer/color-picker/index.esm.js";
|
|
15
|
+
import Ne from "../content-container/index.esm.js";
|
|
16
|
+
import De from "../../designer/date-picker/index.esm.js";
|
|
17
17
|
import Me from "../../designer/data-grid/index.esm.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
18
|
+
import Re from "../../designer/dropdown/index.esm.js";
|
|
19
|
+
import qe from "../../designer/dynamic-form/index.esm.js";
|
|
20
|
+
import Ae from "../events-editor/index.esm.js";
|
|
21
|
+
import Oe from "../filter-bar/index.esm.js";
|
|
22
|
+
import $e from "../field-selector/index.esm.js";
|
|
23
|
+
import Ge from "../../designer/binding-selector/index.esm.js";
|
|
24
|
+
import je from "../../designer/image-cropper/index.esm.js";
|
|
25
|
+
import We from "../../designer/input-group/index.esm.js";
|
|
26
|
+
import Ke from "../layout/index.esm.js";
|
|
27
|
+
import Xe from "../list-nav/index.esm.js";
|
|
28
|
+
import _e from "../../designer/list-view/index.esm.js";
|
|
29
|
+
import me, { lookupProps as Je } from "../lookup/index.esm.js";
|
|
30
|
+
import Qe from "../mapping-editor/index.esm.js";
|
|
31
|
+
import ze from "../../designer/nav/index.esm.js";
|
|
32
|
+
import Ye from "../../designer/number-range/index.esm.js";
|
|
33
|
+
import Ze from "../../designer/number-spinner/index.esm.js";
|
|
34
|
+
import Se from "../../designer/order/index.esm.js";
|
|
35
|
+
import He from "../page-header/index.esm.js";
|
|
36
|
+
import et from "../../designer/page-footer/index.esm.js";
|
|
37
|
+
import tt from "../../designer/pagination/index.esm.js";
|
|
38
|
+
import ot from "../../designer/progress/index.esm.js";
|
|
39
|
+
import nt from "../query-solution/index.esm.js";
|
|
40
|
+
import rt from "../../designer/radio-group/index.esm.js";
|
|
41
|
+
import at from "../../designer/rate/index.esm.js";
|
|
42
|
+
import it from "../../designer/response-toolbar/index.esm.js";
|
|
43
|
+
import lt from "../response-layout/index.esm.js";
|
|
44
|
+
import st, { useResponseLayoutEditorSetting as ut } from "../../designer/response-layout-editor/index.esm.js";
|
|
45
|
+
import ct from "../../designer/search-box/index.esm.js";
|
|
46
|
+
import dt from "../../designer/section/index.esm.js";
|
|
47
|
+
import mt from "../../designer/smoke-detector/index.esm.js";
|
|
48
|
+
import ft from "../../designer/splitter/index.esm.js";
|
|
49
|
+
import pt from "../../designer/step/index.esm.js";
|
|
50
|
+
import gt from "../../designer/switch/index.esm.js";
|
|
51
|
+
import yt from "../../designer/tabs/index.esm.js";
|
|
52
|
+
import ht from "../../designer/tags/index.esm.js";
|
|
53
|
+
import Ct from "../../designer/text/index.esm.js";
|
|
54
|
+
import Ft from "../../designer/time-picker/index.esm.js";
|
|
55
|
+
import bt from "../../designer/transfer/index.esm.js";
|
|
56
|
+
import vt from "../../designer/tree-view/index.esm.js";
|
|
57
|
+
import wt from "../../designer/uploader/index.esm.js";
|
|
58
|
+
import It from "../../designer/verify-detail/index.esm.js";
|
|
59
|
+
import Vt from "../../designer/video/index.esm.js";
|
|
60
|
+
import kt from "../../designer/textarea/index.esm.js";
|
|
61
|
+
import Bt from "../schema-selector/index.esm.js";
|
|
62
|
+
import Tt from "../../designer/tree-grid/index.esm.js";
|
|
63
|
+
import Et from "../event-parameter/index.esm.js";
|
|
64
|
+
import Lt from "../../designer/filter-condition-editor/index.esm.js";
|
|
65
|
+
import Pt from "../fieldset/index.esm.js";
|
|
66
|
+
import Ut from "../../designer/sort-condition-editor/index.esm.js";
|
|
67
|
+
import xt from "../../designer/menu-lookup/index.esm.js";
|
|
68
|
+
import Nt from "../../designer/drawer/index.esm.js";
|
|
69
|
+
import Dt from "../../designer/json-editor/index.esm.js";
|
|
70
70
|
import Mt from "../property-editor/index.esm.js";
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import {
|
|
81
|
-
import { useThirdComponent as
|
|
82
|
-
import
|
|
83
|
-
import {
|
|
84
|
-
|
|
71
|
+
import Rt from "../../designer/expression-editor/index.esm.js";
|
|
72
|
+
import qt from "../../designer/code-editor/index.esm.js";
|
|
73
|
+
import At from "../../designer/html-template/index.esm.js";
|
|
74
|
+
import Ot from "../collection-property-editor/index.esm.js";
|
|
75
|
+
import $t from "../../designer/modal/index.esm.js";
|
|
76
|
+
import Gt from "../external-container/index.esm.js";
|
|
77
|
+
import fe, { languageTextBoxProps as jt } from "../language-textbox/index.esm.js";
|
|
78
|
+
import Wt from "../image/index.esm.js";
|
|
79
|
+
import Kt from "../comment/index.esm.js";
|
|
80
|
+
import { schemaResolverMap as Xt, propertyEffectMap as _t, propertyConfigSchemaMap as Jt, schemaMap as pe, createPropsResolver as Qt } from "../dynamic-resolver/index.esm.js";
|
|
81
|
+
import { useThirdComponent as zt, isMobilePhone as Yt, useGuid as se } from "../common/index.esm.js";
|
|
82
|
+
import Zt, { buttonEditProps as St } from "../button-edit/index.esm.js";
|
|
83
|
+
import Ht, { checkboxProps as eo } from "../checkbox/index.esm.js";
|
|
84
|
+
import to, { checkboxGroupProps as oo } from "../checkbox-group/index.esm.js";
|
|
85
|
+
import no, { comboListProps as ro } from "../combo-list/index.esm.js";
|
|
86
|
+
import ao, { datePickerProps as io } from "../date-picker/index.esm.js";
|
|
87
|
+
import lo, { inputGroupProps as so } from "../input-group/index.esm.js";
|
|
88
|
+
import uo, { numberRangeProps as co } from "../number-range/index.esm.js";
|
|
89
|
+
import mo, { numberSpinnerProps as fo } from "../number-spinner/index.esm.js";
|
|
90
|
+
import po, { progressProps as go } from "../progress/index.esm.js";
|
|
91
|
+
import yo, { radioGroupProps as ho } from "../radio-group/index.esm.js";
|
|
92
|
+
import Co, { rateProps as Fo } from "../rate/index.esm.js";
|
|
93
|
+
import bo, { switchProps as vo } from "../switch/index.esm.js";
|
|
94
|
+
import wo, { timePickerProps as Io } from "../time-picker/index.esm.js";
|
|
95
|
+
import Vo, { textAreaProps as ko } from "../textarea/index.esm.js";
|
|
96
|
+
import { DgControl as ne, refreshCanvas as Bo, UseTemplateDragAndDropRules as To, useDragulaCommonRule as Eo } from "../designer-canvas/index.esm.js";
|
|
97
|
+
import { BaseControlProperty as Lo, FormBindingType as ee } from "../property-panel/index.esm.js";
|
|
98
|
+
const Po = {
|
|
85
99
|
customClass: { type: String, default: "" },
|
|
86
100
|
customStyle: { type: String, defaut: "" },
|
|
87
101
|
/** 控制是否可见 */
|
|
88
102
|
visible: { type: Boolean, default: !0 },
|
|
89
103
|
/** 内部控件布局是否响应国际化 */
|
|
90
104
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
91
|
-
},
|
|
105
|
+
}, re = /* @__PURE__ */ oe({
|
|
92
106
|
name: "FResponseForm",
|
|
93
|
-
props:
|
|
107
|
+
props: Po,
|
|
94
108
|
emits: [],
|
|
95
|
-
setup(
|
|
96
|
-
const
|
|
97
|
-
const
|
|
109
|
+
setup(e, o) {
|
|
110
|
+
const m = v(), p = G(() => {
|
|
111
|
+
const r = we.getLocale(), V = e.customClass.split(" "), y = {
|
|
98
112
|
"drag-container": !0
|
|
99
113
|
};
|
|
100
|
-
return
|
|
114
|
+
return V.reduce((w, f) => (w[f] = !0, w), y), e.adaptForLanguage && r && (y["farris-form-controls-inline"] = r !== "en"), y;
|
|
101
115
|
});
|
|
102
|
-
return () =>
|
|
103
|
-
ref:
|
|
104
|
-
class:
|
|
105
|
-
style:
|
|
106
|
-
}, [
|
|
116
|
+
return () => e.visible && Fe(x("div", {
|
|
117
|
+
ref: m,
|
|
118
|
+
class: p.value,
|
|
119
|
+
style: e.customStyle
|
|
120
|
+
}, [o.slots.default && o.slots.default()]), [[be("area-response")]]);
|
|
107
121
|
}
|
|
108
|
-
}),
|
|
109
|
-
id: { type: String, default: "" },
|
|
110
|
-
customClass: { type: String, default: "" },
|
|
111
|
-
customStyle: { type: String, default: "" },
|
|
112
|
-
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
113
|
-
editor: { type: Object, default: {} },
|
|
114
|
-
label: { type: String, default: "" },
|
|
115
|
-
/** value is uncertain because type is uncertain, default value should not be set */
|
|
116
|
-
modelValue: { type: [String, Boolean, Array, Number] },
|
|
117
|
-
// readonly: { type: Boolean, default: false },
|
|
118
|
-
visible: { type: Boolean, default: !0 },
|
|
119
|
-
required: { type: Boolean, default: !1 },
|
|
120
|
-
showLabel: { type: Boolean, default: !0 },
|
|
121
|
-
/**
|
|
122
|
-
* visible相当于showLabel为true,none相当于showLabel为false
|
|
123
|
-
*/
|
|
124
|
-
showLabelType: { type: String, default: "visible" },
|
|
125
|
-
type: { type: String, default: "input-group" },
|
|
126
|
-
componentId: { type: String, default: "" },
|
|
127
|
-
errors: { type: Object, default: null },
|
|
128
|
-
fill: { type: Boolean, default: !1 }
|
|
129
|
-
}, _t = {
|
|
122
|
+
}), Uo = {
|
|
130
123
|
id: { type: String },
|
|
131
124
|
required: { type: Boolean, default: !1 },
|
|
132
125
|
text: { type: String, default: "" },
|
|
@@ -137,64 +130,69 @@ const Kt = {
|
|
|
137
130
|
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
138
131
|
*/
|
|
139
132
|
showType: { type: String, default: "visible" }
|
|
140
|
-
},
|
|
133
|
+
}, ge = /* @__PURE__ */ oe({
|
|
141
134
|
name: "FDynamicFormLabel",
|
|
142
|
-
props:
|
|
135
|
+
props: Uo,
|
|
143
136
|
emits: [],
|
|
144
|
-
setup(
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
}),
|
|
152
|
-
|
|
137
|
+
setup(e, o) {
|
|
138
|
+
v(e.title || e.text);
|
|
139
|
+
const m = v(e.required), p = v(e.text), r = v(e.valid), V = v(e.inValidTip);
|
|
140
|
+
te(() => e.text, () => {
|
|
141
|
+
p.value = e.text;
|
|
142
|
+
}), te(() => e.required, (B, I) => {
|
|
143
|
+
B !== I && (m.value = B);
|
|
144
|
+
}), te([() => e.valid, () => e.inValidTip], ([B, I]) => {
|
|
145
|
+
r.value = B, V.value = I;
|
|
153
146
|
});
|
|
154
|
-
const
|
|
147
|
+
const y = G(() => r.value ? p.value : V.value), w = G(() => r.value ? "" : "color:red"), f = G(() => ({
|
|
155
148
|
"col-form-label": !0,
|
|
156
149
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
157
|
-
"f-width-auto":
|
|
158
|
-
})),
|
|
159
|
-
return () =>
|
|
160
|
-
class:
|
|
161
|
-
title:
|
|
162
|
-
style:
|
|
163
|
-
}, [!
|
|
150
|
+
"f-width-auto": m.value && (e.showType === "none" || !p.value)
|
|
151
|
+
})), h = G(() => e.showType === "force-none" ? !1 : e.showType === "reserve-space" || m.value || !!p.value && e.showType !== "none");
|
|
152
|
+
return () => h.value && x("label", {
|
|
153
|
+
class: f.value,
|
|
154
|
+
title: y.value,
|
|
155
|
+
style: w.value
|
|
156
|
+
}, [!r.value && x("span", {
|
|
164
157
|
class: "f-icon f-icon-warning mr-1",
|
|
165
158
|
style: "color: red; min-width: 16px;",
|
|
166
|
-
title:
|
|
167
|
-
}, null),
|
|
159
|
+
title: V.value
|
|
160
|
+
}, null), x("span", {
|
|
168
161
|
class: "farris-label-text"
|
|
169
|
-
}, [
|
|
162
|
+
}, [m.value && x("span", {
|
|
170
163
|
class: "farris-label-info text-danger"
|
|
171
|
-
}, [
|
|
172
|
-
}
|
|
173
|
-
}), { globalStorageKey:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
164
|
+
}, [ve("*")]), e.showType === "visible" && p.value])]);
|
|
165
|
+
}
|
|
166
|
+
}), { globalStorageKey: xo } = zt(), a = {}, i = {}, l = {}, s = {};
|
|
167
|
+
async function No() {
|
|
168
|
+
{
|
|
169
|
+
const e = {
|
|
170
|
+
schemaMap: pe,
|
|
171
|
+
propertyConfigSchemaMap: Jt,
|
|
172
|
+
propertyEffectMap: _t,
|
|
173
|
+
schemaResolverMap: Xt
|
|
174
|
+
};
|
|
175
|
+
Ve.register(a, i, l, s), Ie.register(a, i, l, s), ke.register(a, i, l, s), Be.register(a, i, l, s), de.register(a, i, l, s, e), Ee.register(a, i, l, s), ie.register(a, i, l, s, e), le.register(a, i, l, s, e), ie.register(a, i, l, s, e), le.register(a, i, l, s, e), Le.register(a, i, l, s, e), Pe.register(a, i, l, s), Ue.register(a, i, l, s), Ne.register(a, i, l, s, e), xe.register(a, i, l, s), De.register(a, i, l, s, e), Me.register(a, i, l, s, e), Re.register(a, i, l, s), qe.register(a, i, l, s, e), Ae.register(a, i, l, s), Rt.register(a, i, l, s), Oe.register(a, i, l, s), $e.register(a, i, l, s), Lt.register(a, i, l, s), je.register(a, i, l, s), We.register(a, i, l, s, e), Ke.register(a, i, l, s, e), _e.register(a, i, l, s, e), Xe.register(a, i, l, s), me.register(a, i, l, s, e), Qe.register(a, i, l, s), ze.register(a, i, l, s), Ye.register(a, i, l, s), Ze.register(a, i, l, s, e), Se.register(a, i, l, s), He.register(a, i, l, s, e), et.register(a, i, l, s), tt.register(a, i, l, s), ot.register(a, i, l, s), nt.register(a, i, l, s, e), rt.register(a, i, l, s, e), at.register(a, i, l, s), lt.register(a, i, l, s, e), st.register(a, i, l, s), it.register(a, i, l, s), Bt.register(a, i, l), ct.register(a, i, l, s), dt.register(a, i, l, s, e), mt.register(a, i, l, s), ft.register(a, i, l, s), pt.register(a, i, l, s), gt.register(a, i, l, s, e), Ut.register(a, i, l, s), yt.register(a, i, l, s, e), ht.register(a, i, l, s), Ct.register(a, i, l, s), Ft.register(a, i, l, s, e), bt.register(a, i, l, s), vt.register(a, i, l, s), It.register(a, i, l, s), wt.register(a, i, l, s), Vt.register(a, i, l, s), kt.register(a, i, l, s, e), Tt.register(a, i, l, s), Ge.register(a, i, l, s), Et.register(a, i, l, s), Pt.register(a, i, l, s, e), xt.register(a, i, l, s), Nt.register(a, i, l, s), Dt.register(a, i, l, s), Mt.register(a, i, l, s), qt.register(a, i, l, s), At.register(a, i, l, s, e), Ot.register(a, i, l, s), $t.register(a, i, l, s), Gt.register(a, i, l, s), fe.register(a, i, l, s, e), Wt.register(a, i, l, s, e), Kt.register(a, i, l, s);
|
|
176
|
+
const o = window[xo];
|
|
177
|
+
if (o)
|
|
178
|
+
for (const m in o)
|
|
179
|
+
o[m].createPropsResolver = Qt, o[m].register(a, i, l);
|
|
182
180
|
}
|
|
183
181
|
}
|
|
184
|
-
function
|
|
185
|
-
|
|
186
|
-
function
|
|
187
|
-
const
|
|
188
|
-
if (!
|
|
189
|
-
throw new Error(`Could not find the editor of type '${
|
|
190
|
-
return
|
|
191
|
-
}
|
|
192
|
-
function
|
|
193
|
-
const
|
|
194
|
-
return
|
|
195
|
-
}
|
|
196
|
-
function y
|
|
197
|
-
switch (
|
|
182
|
+
function ye() {
|
|
183
|
+
No();
|
|
184
|
+
function e(y) {
|
|
185
|
+
const w = a[y];
|
|
186
|
+
if (!w)
|
|
187
|
+
throw new Error(`Could not find the editor of type '${y}'`);
|
|
188
|
+
return w;
|
|
189
|
+
}
|
|
190
|
+
function o(y, w) {
|
|
191
|
+
const f = i[y];
|
|
192
|
+
return f ? f(w) : {};
|
|
193
|
+
}
|
|
194
|
+
function m(y) {
|
|
195
|
+
switch (y) {
|
|
198
196
|
case "check-box":
|
|
199
197
|
return "onChangeValue";
|
|
200
198
|
case "switch":
|
|
@@ -268,31 +266,101 @@ function ue() {
|
|
|
268
266
|
return "onUpdate:modelValue";
|
|
269
267
|
}
|
|
270
268
|
}
|
|
271
|
-
function
|
|
272
|
-
switch (
|
|
269
|
+
function p(y) {
|
|
270
|
+
switch (y) {
|
|
273
271
|
case "combo-list":
|
|
274
272
|
case "input-group":
|
|
275
273
|
case "textarea":
|
|
276
274
|
return "onClear";
|
|
277
275
|
}
|
|
278
276
|
}
|
|
279
|
-
function
|
|
280
|
-
switch (
|
|
277
|
+
function r(y) {
|
|
278
|
+
switch (y) {
|
|
281
279
|
case "input-group":
|
|
282
280
|
case "textarea":
|
|
283
281
|
return "onMousedownEvent";
|
|
284
282
|
}
|
|
285
283
|
}
|
|
286
|
-
function
|
|
287
|
-
switch (
|
|
284
|
+
function V(y) {
|
|
285
|
+
switch (y) {
|
|
288
286
|
case "input-group":
|
|
289
287
|
case "textarea":
|
|
290
288
|
return "onMouseupEvent";
|
|
291
289
|
}
|
|
292
290
|
}
|
|
293
|
-
return { resolveEditorProps:
|
|
291
|
+
return { resolveEditorProps: o, resolveEditorType: e, getChangeFunctionName: m, getClearFunctionName: p, getMousedownFunctionName: r, getMouseupFunctionName: V };
|
|
294
292
|
}
|
|
295
|
-
const
|
|
293
|
+
const Do = {
|
|
294
|
+
id: { type: String, default: "" },
|
|
295
|
+
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
296
|
+
editor: { type: Object, default: {} },
|
|
297
|
+
/** value is uncertain because type is uncertain, default value should not be set */
|
|
298
|
+
modelValue: { type: [String, Boolean, Array, Number] },
|
|
299
|
+
/**
|
|
300
|
+
* 作为内嵌编辑器被创建后默认获得焦点
|
|
301
|
+
*/
|
|
302
|
+
focusOnCreated: { type: Boolean, default: !1 },
|
|
303
|
+
/**
|
|
304
|
+
* 作为内嵌编辑器被创建后默认选中文本
|
|
305
|
+
*/
|
|
306
|
+
selectOnCreated: { type: Boolean, default: !1 }
|
|
307
|
+
}, ue = /* @__PURE__ */ oe({
|
|
308
|
+
name: "FDynamicFormInput",
|
|
309
|
+
props: Do,
|
|
310
|
+
emits: ["change", "update:modelValue", "mousedown", "mouseup"],
|
|
311
|
+
setup(e, o) {
|
|
312
|
+
const m = v(e.id), p = v(e.editor), r = v(e.modelValue), {
|
|
313
|
+
resolveEditorProps: V,
|
|
314
|
+
resolveEditorType: y,
|
|
315
|
+
getChangeFunctionName: w,
|
|
316
|
+
getMousedownFunctionName: f,
|
|
317
|
+
getMouseupFunctionName: h,
|
|
318
|
+
getClearFunctionName: B
|
|
319
|
+
} = ye();
|
|
320
|
+
function I(L, k, T) {
|
|
321
|
+
r.value = k !== void 0 ? k : L, o.emit("update:modelValue", r.value), o.emit("change", r.value, {
|
|
322
|
+
newValue: L,
|
|
323
|
+
newModelValue: k,
|
|
324
|
+
parameters: T
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function N(L) {
|
|
328
|
+
o.emit("mousedown", L);
|
|
329
|
+
}
|
|
330
|
+
function A(L) {
|
|
331
|
+
o.emit("mouseup", L);
|
|
332
|
+
}
|
|
333
|
+
function $() {
|
|
334
|
+
o.emit("update:modelValue", "");
|
|
335
|
+
}
|
|
336
|
+
function j(L) {
|
|
337
|
+
return (...k) => {
|
|
338
|
+
$(), typeof L == "function" && L(...k);
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
function J(L) {
|
|
342
|
+
return (k, T, q) => {
|
|
343
|
+
I(k, T, q), typeof L == "function" && L(k, T, q);
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
const K = G(() => {
|
|
347
|
+
const L = y(p.value.type), k = V(p.value.type, p.value);
|
|
348
|
+
k.focusOnCreated = e.focusOnCreated, k.selectOnCreated = e.selectOnCreated;
|
|
349
|
+
const T = w(p.value.type), q = B(p.value.type);
|
|
350
|
+
q && (k[q] = j(k[q])), T && (k[T] = J(k[T]));
|
|
351
|
+
const D = f(p.value.type);
|
|
352
|
+
k[D] = N;
|
|
353
|
+
const Y = h(p.value.type);
|
|
354
|
+
return k[Y] = A, k.id = m.value, () => x(L, ae(k, {
|
|
355
|
+
modelValue: r.value,
|
|
356
|
+
"onUpdate:modelValue": (M) => r.value = M
|
|
357
|
+
}), null);
|
|
358
|
+
});
|
|
359
|
+
return te([() => e.id, () => e.editor, () => e.modelValue], ([L, k, T]) => {
|
|
360
|
+
m.value = L, p.value = k, r.value = T;
|
|
361
|
+
}), () => K.value();
|
|
362
|
+
}
|
|
363
|
+
}), Mo = {
|
|
296
364
|
/**
|
|
297
365
|
* 显示的错误信息
|
|
298
366
|
*/
|
|
@@ -300,566 +368,685 @@ const Yt = {
|
|
|
300
368
|
type: Object,
|
|
301
369
|
default: null
|
|
302
370
|
}
|
|
303
|
-
},
|
|
371
|
+
}, he = /* @__PURE__ */ oe({
|
|
304
372
|
name: "FValidationMessage",
|
|
305
|
-
props:
|
|
373
|
+
props: Mo,
|
|
306
374
|
emits: [],
|
|
307
|
-
setup(
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
|
|
375
|
+
setup(e, o) {
|
|
376
|
+
const m = v(e.errors);
|
|
377
|
+
te(() => e.errors, (V) => {
|
|
378
|
+
m.value = V;
|
|
311
379
|
});
|
|
312
|
-
const
|
|
313
|
-
if (
|
|
314
|
-
const
|
|
315
|
-
var
|
|
316
|
-
return (
|
|
380
|
+
const p = v(!0), r = G(() => {
|
|
381
|
+
if (m.value) {
|
|
382
|
+
const V = Object.keys(m.value).map((y) => {
|
|
383
|
+
var w;
|
|
384
|
+
return (w = m.value[y]) == null ? void 0 : w.name;
|
|
317
385
|
});
|
|
318
|
-
return
|
|
386
|
+
return V.length ? V.join(" ") : "";
|
|
319
387
|
}
|
|
320
388
|
return "";
|
|
321
389
|
});
|
|
322
|
-
return () =>
|
|
390
|
+
return () => r.value && x("div", {
|
|
323
391
|
class: "farris-feedback f-state-invalid",
|
|
324
|
-
onClick: () =>
|
|
325
|
-
}, [!
|
|
392
|
+
onClick: () => p.value = !p.value
|
|
393
|
+
}, [!p.value && x("span", {
|
|
326
394
|
class: "f-icon f-icon-message_warning f-feedback-icon"
|
|
327
|
-
}, null),
|
|
395
|
+
}, null), p.value && x("span", {
|
|
328
396
|
class: "f-feedback-message"
|
|
329
|
-
}, [
|
|
397
|
+
}, [r.value])]);
|
|
330
398
|
}
|
|
331
|
-
})
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
"
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
399
|
+
});
|
|
400
|
+
function Ro(e, o) {
|
|
401
|
+
e["button-edit"] = Zt, e.calendar = de, e["check-box"] = Ht, e["check-group"] = to, e["combo-list"] = no, e["date-picker"] = ao, e["input-group"] = lo, e.lookup = me, e["number-range"] = uo, e["number-spinner"] = mo, e.progress = po, e["radio-group"] = yo, e.rate = Co, e.switch = bo, e["time-picker"] = wo, e.textarea = Vo, e["language-textbox"] = fe, o["button-edit"] = St, o.calendar = Te, o["check-box"] = eo, o["check-group"] = oo, o["combo-list"] = ro, o["date-picker"] = io, o["input-group"] = so, o.lookup = Je, o["number-range"] = co, o["number-spinner"] = fo, o.progress = go, o["radio-group"] = ho, o.rate = Fo, o.switch = vo, o["time-picker"] = Io, o.textarea = ko, o["language-textbox"] = jt;
|
|
402
|
+
}
|
|
403
|
+
function qo() {
|
|
404
|
+
const e = {}, o = {};
|
|
405
|
+
Ro(e, o);
|
|
406
|
+
function m(f) {
|
|
407
|
+
return e[f || "input-group"];
|
|
408
|
+
}
|
|
409
|
+
function p(f, h) {
|
|
410
|
+
const B = o[f || "input-group"], I = Object.keys(B).reduce((N, A) => (N[A] = B[A].default, N), {});
|
|
411
|
+
return Object.assign(I, h);
|
|
412
|
+
}
|
|
413
|
+
function r(f) {
|
|
414
|
+
switch (f) {
|
|
415
|
+
case "check-box":
|
|
416
|
+
return "onChangeValue";
|
|
417
|
+
case "switch":
|
|
418
|
+
return "onModelValueChanged";
|
|
419
|
+
case "check-group":
|
|
420
|
+
return "onChangeValue";
|
|
421
|
+
case "combo-list":
|
|
422
|
+
case "combo-tree":
|
|
423
|
+
return "onChange";
|
|
424
|
+
case "combo-lookup":
|
|
425
|
+
return "";
|
|
426
|
+
case "year-range":
|
|
427
|
+
case "year-picker":
|
|
428
|
+
case "month-range":
|
|
429
|
+
case "month-picker":
|
|
430
|
+
case "date-range":
|
|
431
|
+
case "datetime-range":
|
|
432
|
+
case "datetime-picker":
|
|
433
|
+
case "date-picker":
|
|
434
|
+
return "onDatePicked";
|
|
435
|
+
case "time-picker":
|
|
436
|
+
return "onValueChange";
|
|
437
|
+
case "input-group":
|
|
438
|
+
return "onChange";
|
|
439
|
+
case "lookup":
|
|
440
|
+
case "language-textbox":
|
|
441
|
+
return "onUpdate:modelValue";
|
|
442
|
+
case "number-range":
|
|
443
|
+
return "onValueChange";
|
|
444
|
+
case "number-spinner":
|
|
445
|
+
return "onValueChange";
|
|
446
|
+
case "radio-group":
|
|
447
|
+
return "onChangeValue";
|
|
448
|
+
case "text":
|
|
449
|
+
return "";
|
|
450
|
+
case "textarea":
|
|
451
|
+
return "onChange";
|
|
364
452
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
453
|
+
}
|
|
454
|
+
function V(f) {
|
|
455
|
+
switch (f) {
|
|
456
|
+
case "combo-list":
|
|
457
|
+
case "input-group":
|
|
458
|
+
case "textarea":
|
|
459
|
+
return "onClear";
|
|
369
460
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
461
|
+
}
|
|
462
|
+
function y(f) {
|
|
463
|
+
switch (f) {
|
|
464
|
+
case "input-group":
|
|
465
|
+
case "textarea":
|
|
466
|
+
return "onMousedownEvent";
|
|
374
467
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
"onUpdate:modelValue": (l) => b.value = l
|
|
382
|
-
}), a.slots);
|
|
383
|
-
});
|
|
384
|
-
function te() {
|
|
385
|
-
return N(Zt, {
|
|
386
|
-
id: `${y.value}-validation-message`,
|
|
387
|
-
errors: A.value
|
|
388
|
-
}, null);
|
|
468
|
+
}
|
|
469
|
+
function w(f) {
|
|
470
|
+
switch (f) {
|
|
471
|
+
case "input-group":
|
|
472
|
+
case "textarea":
|
|
473
|
+
return "onMouseupEvent";
|
|
389
474
|
}
|
|
390
|
-
return S([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([U, q, L, e, s, l, d, g, p, F]) => {
|
|
391
|
-
var m;
|
|
392
|
-
y.value = U, C.value = q, c.value = L, h.value = e, b.value = s, I.value = l, v.value = ((m = c.value) == null ? void 0 : m.required) || d, f.value = g, P.value = p, A.value = F;
|
|
393
|
-
}), a.expose({
|
|
394
|
-
editorRef: w
|
|
395
|
-
}), () => P.value && N("div", {
|
|
396
|
-
id: `${y.value}-form-group`,
|
|
397
|
-
class: C.value,
|
|
398
|
-
style: t.customStyle
|
|
399
|
-
}, [N("div", {
|
|
400
|
-
class: "farris-group-wrap",
|
|
401
|
-
style: V.value
|
|
402
|
-
}, [N("div", {
|
|
403
|
-
class: M.value
|
|
404
|
-
}, [N(Jt, {
|
|
405
|
-
id: `${y.value}-lable`,
|
|
406
|
-
showType: j.value,
|
|
407
|
-
required: v.value,
|
|
408
|
-
text: h.value,
|
|
409
|
-
title: h.value
|
|
410
|
-
}, null), N("div", {
|
|
411
|
-
class: "farris-input-wrap"
|
|
412
|
-
}, [Z.value(), te()])])])]);
|
|
413
475
|
}
|
|
414
|
-
|
|
476
|
+
return { resolveEditorProps: p, resolveEditorType: m, getChangeFunctionName: r, getClearFunctionName: V, getMousedownFunctionName: y, getMouseupFunctionName: w };
|
|
477
|
+
}
|
|
478
|
+
const Ce = {
|
|
415
479
|
id: { type: String, default: "" },
|
|
480
|
+
customClass: { type: String, default: "" },
|
|
481
|
+
customStyle: { type: String, default: "" },
|
|
416
482
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
417
483
|
editor: { type: Object, default: {} },
|
|
484
|
+
label: { type: String, default: "" },
|
|
418
485
|
/** value is uncertain because type is uncertain, default value should not be set */
|
|
419
486
|
modelValue: { type: [String, Boolean, Array, Number] },
|
|
487
|
+
// readonly: { type: Boolean, default: false },
|
|
488
|
+
visible: { type: Boolean, default: !0 },
|
|
489
|
+
required: { type: Boolean, default: !1 },
|
|
490
|
+
showLabel: { type: Boolean, default: !0 },
|
|
420
491
|
/**
|
|
421
|
-
*
|
|
422
|
-
*/
|
|
423
|
-
focusOnCreated: { type: Boolean, default: !1 },
|
|
424
|
-
/**
|
|
425
|
-
* 作为内嵌编辑器被创建后默认选中文本
|
|
492
|
+
* visible相当于showLabel为true,none相当于showLabel为false
|
|
426
493
|
*/
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
494
|
+
showLabelType: { type: String, default: "visible" },
|
|
495
|
+
type: { type: String, default: "input-group" },
|
|
496
|
+
componentId: { type: String, default: "" },
|
|
497
|
+
errors: { type: Object, default: null },
|
|
498
|
+
fill: { type: Boolean, default: !1 }
|
|
499
|
+
}, ce = /* @__PURE__ */ oe({
|
|
500
|
+
name: "FFormControl",
|
|
501
|
+
props: Ce,
|
|
502
|
+
emits: ["change", "update:modelValue"],
|
|
503
|
+
setup(e, o) {
|
|
504
|
+
var Y;
|
|
505
|
+
const m = v(e.id), p = v(e.customClass), r = v(e.editor), V = v(e.label), y = v(e.modelValue), w = v(e.readonly), f = v(((Y = e.editor) == null ? void 0 : Y.required) || e.required), h = v(e.showLabel), B = v(e.visible);
|
|
506
|
+
v(e.type);
|
|
507
|
+
const I = v(), N = v(e.errors), A = G(() => h.value ? e.showLabelType : "none"), {
|
|
508
|
+
resolveEditorProps: $,
|
|
509
|
+
resolveEditorType: j,
|
|
510
|
+
getChangeFunctionName: J,
|
|
511
|
+
getClearFunctionName: K
|
|
512
|
+
} = qo(), L = G(() => ({
|
|
513
|
+
"form-group": !0,
|
|
514
|
+
"farris-form-group": !0,
|
|
515
|
+
"common-group": !0,
|
|
516
|
+
"q-state-readonly": w.value
|
|
517
|
+
}));
|
|
518
|
+
function k(M, X, R) {
|
|
519
|
+
y.value = X !== void 0 ? X : M, o.emit("update:modelValue", y.value), o.emit("change", y.value, {
|
|
443
520
|
newValue: M,
|
|
444
|
-
newModelValue:
|
|
445
|
-
parameters:
|
|
521
|
+
newModelValue: X,
|
|
522
|
+
parameters: R
|
|
446
523
|
});
|
|
447
524
|
}
|
|
448
|
-
function
|
|
449
|
-
|
|
525
|
+
function T() {
|
|
526
|
+
o.emit("update:modelValue", "");
|
|
450
527
|
}
|
|
451
|
-
|
|
452
|
-
|
|
528
|
+
const q = G(() => {
|
|
529
|
+
const M = r.value.type || "input-group", X = j(M), R = $(M, r.value), Z = J(M), z = K(r.value.type);
|
|
530
|
+
return z && (R[z] = T), R[Z] = k, (R.id == null || R.id === "") && (R.id = m.value), M === "number-range" && r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" ? (r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" && (R.onBeginValueChange = r.value.onBeginValueChange), r.value.onEndValueChange && typeof r.value.onEndValueChange == "function" && (R.onEndValueChange = r.value.onEndValueChange)) : M === "lookup" && r.value["onUpdate:idValue"] && typeof r.value["onUpdate:idValue"] == "function" && (R["onUpdate:idValue"] = r.value["onUpdate:idValue"], R.id = m.value), () => x(X, ae({
|
|
531
|
+
ref: I
|
|
532
|
+
}, R, {
|
|
533
|
+
modelValue: y.value,
|
|
534
|
+
"onUpdate:modelValue": (E) => y.value = E
|
|
535
|
+
}), o.slots);
|
|
536
|
+
});
|
|
537
|
+
function D() {
|
|
538
|
+
return x(he, {
|
|
539
|
+
id: `${m.value}-validation-message`,
|
|
540
|
+
errors: N.value
|
|
541
|
+
}, null);
|
|
453
542
|
}
|
|
454
|
-
|
|
455
|
-
|
|
543
|
+
return te([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([M, X, R, Z, z, E, O, t, n, u]) => {
|
|
544
|
+
var d;
|
|
545
|
+
m.value = M, p.value = X, r.value = R, V.value = Z, y.value = z, w.value = E, f.value = ((d = r.value) == null ? void 0 : d.required) || O, h.value = t, B.value = n, N.value = u;
|
|
546
|
+
}), o.expose({
|
|
547
|
+
editorRef: I
|
|
548
|
+
}), () => B.value && x("div", {
|
|
549
|
+
id: `${m.value}-input-group`,
|
|
550
|
+
class: p.value,
|
|
551
|
+
style: e.customStyle
|
|
552
|
+
}, [x("div", {
|
|
553
|
+
class: "farris-group-wrap"
|
|
554
|
+
}, [x("div", {
|
|
555
|
+
class: L.value
|
|
556
|
+
}, [x(ge, {
|
|
557
|
+
id: `${m.value}-lable`,
|
|
558
|
+
showType: A.value,
|
|
559
|
+
required: f.value,
|
|
560
|
+
text: V.value,
|
|
561
|
+
title: V.value
|
|
562
|
+
}, null), x("div", {
|
|
563
|
+
class: "farris-input-wrap"
|
|
564
|
+
}, [q.value(), D()])])])]);
|
|
565
|
+
}
|
|
566
|
+
}), Pr = /* @__PURE__ */ oe({
|
|
567
|
+
name: "FDynamicFormGroup",
|
|
568
|
+
props: Ce,
|
|
569
|
+
emits: ["change", "update:modelValue"],
|
|
570
|
+
setup(e, o) {
|
|
571
|
+
var z;
|
|
572
|
+
const m = v(e.id), p = v(e.customClass), r = v(e.editor), V = v(e.label), y = v(e.modelValue), w = v(e.readonly), f = v(((z = e.editor) == null ? void 0 : z.required) || e.required), h = v(e.showLabel), B = v(e.visible);
|
|
573
|
+
v(e.type);
|
|
574
|
+
const I = v(), N = v(e.errors), A = Yt(), $ = v(e.editor.type || "input-group"), j = G(() => h.value ? e.showLabelType : "none"), {
|
|
575
|
+
resolveEditorProps: J,
|
|
576
|
+
resolveEditorType: K,
|
|
577
|
+
getChangeFunctionName: L,
|
|
578
|
+
getClearFunctionName: k
|
|
579
|
+
} = ye(), T = G(() => {
|
|
580
|
+
const E = {
|
|
581
|
+
"form-group": !0,
|
|
582
|
+
"farris-form-group": !0,
|
|
583
|
+
"common-group": !0,
|
|
584
|
+
"q-state-readonly": w.value,
|
|
585
|
+
"form-group--in-mobile": A
|
|
586
|
+
};
|
|
587
|
+
return E["form-group--has-" + $.value] = !0, E;
|
|
588
|
+
}), q = G(() => {
|
|
589
|
+
if (e.fill)
|
|
590
|
+
return {
|
|
591
|
+
maxWidth: "none"
|
|
592
|
+
};
|
|
593
|
+
});
|
|
594
|
+
function D(E, O, t) {
|
|
595
|
+
y.value = O !== void 0 ? O : E, o.emit("update:modelValue", y.value), o.emit("change", y.value, {
|
|
596
|
+
newValue: E,
|
|
597
|
+
newModelValue: O,
|
|
598
|
+
parameters: t
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
function Y() {
|
|
602
|
+
o.emit("update:modelValue", "");
|
|
456
603
|
}
|
|
457
|
-
function
|
|
458
|
-
return (...
|
|
459
|
-
|
|
604
|
+
function M(E) {
|
|
605
|
+
return (...O) => {
|
|
606
|
+
Y(), typeof E == "function" && E(...O);
|
|
460
607
|
};
|
|
461
608
|
}
|
|
462
|
-
function
|
|
463
|
-
return (
|
|
464
|
-
|
|
609
|
+
function X(E) {
|
|
610
|
+
return (O, t, n) => {
|
|
611
|
+
D(O, t, n), typeof E == "function" && E(O, t, n);
|
|
465
612
|
};
|
|
466
613
|
}
|
|
467
|
-
const
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
return V[Y] = j, V.id = y.value, () => N(M, ce(V, {
|
|
476
|
-
modelValue: c.value,
|
|
477
|
-
"onUpdate:modelValue": (Z) => c.value = Z
|
|
478
|
-
}), null);
|
|
614
|
+
const R = G(() => {
|
|
615
|
+
const E = r.value.type || "input-group", O = K(E), t = J(E, r.value), n = L(E), u = k(r.value.type);
|
|
616
|
+
return u && (t[u] = M(t[u])), n && (t[n] = X(t[n])), (t.id == null || t.id === "") && (t.id = m.value), E === "number-range" && r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" ? (r.value.onBeginValueChange && typeof r.value.onBeginValueChange == "function" && (t.onBeginValueChange = r.value.onBeginValueChange), r.value.onEndValueChange && typeof r.value.onEndValueChange == "function" && (t.onEndValueChange = r.value.onEndValueChange)) : E === "lookup" && r.value["onUpdate:idValue"] && typeof r.value["onUpdate:idValue"] == "function" ? (t["onUpdate:idValue"] = r.value["onUpdate:idValue"], t.id = m.value) : E === "collection-property-editor" && r.value.onSelectionChange && typeof r.value.onSelectionChange == "function" ? t.onSelectionChange = r.value.onSelectionChange : E === "property-editor" && (t.onBeforeOpenVariables = r.value.onBeforeOpenVariables), () => x(O, ae({
|
|
617
|
+
ref: I
|
|
618
|
+
}, t, {
|
|
619
|
+
modelValue: y.value,
|
|
620
|
+
"onUpdate:modelValue": (d) => y.value = d
|
|
621
|
+
}), o.slots);
|
|
479
622
|
});
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
623
|
+
function Z() {
|
|
624
|
+
return x(he, {
|
|
625
|
+
id: `${m.value}-validation-message`,
|
|
626
|
+
errors: N.value
|
|
627
|
+
}, null);
|
|
628
|
+
}
|
|
629
|
+
return te([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([E, O, t, n, u, d, C, F, b, g]) => {
|
|
630
|
+
var c;
|
|
631
|
+
m.value = E, p.value = O, r.value = t, V.value = n, y.value = u, w.value = d, f.value = ((c = r.value) == null ? void 0 : c.required) || C, h.value = F, B.value = b, N.value = g;
|
|
632
|
+
}), o.expose({
|
|
633
|
+
editorRef: I
|
|
634
|
+
}), () => B.value && x("div", {
|
|
635
|
+
id: `${m.value}-form-group`,
|
|
636
|
+
class: p.value,
|
|
637
|
+
style: e.customStyle
|
|
638
|
+
}, [x("div", {
|
|
639
|
+
class: "farris-group-wrap",
|
|
640
|
+
style: q.value
|
|
641
|
+
}, [x("div", {
|
|
642
|
+
class: T.value
|
|
643
|
+
}, [x(ge, {
|
|
644
|
+
id: `${m.value}-lable`,
|
|
645
|
+
showType: j.value,
|
|
646
|
+
required: f.value,
|
|
647
|
+
text: V.value,
|
|
648
|
+
title: V.value
|
|
649
|
+
}, null), x("div", {
|
|
650
|
+
class: "farris-input-wrap"
|
|
651
|
+
}, [R.value(), Z()])])])]);
|
|
483
652
|
}
|
|
484
653
|
});
|
|
485
|
-
function
|
|
486
|
-
function
|
|
487
|
-
if (
|
|
488
|
-
return
|
|
489
|
-
const
|
|
490
|
-
return
|
|
491
|
-
}
|
|
492
|
-
function
|
|
493
|
-
const
|
|
494
|
-
return !(!
|
|
495
|
-
}
|
|
496
|
-
function
|
|
497
|
-
const
|
|
498
|
-
return Array.from(
|
|
499
|
-
}
|
|
500
|
-
function
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
const
|
|
654
|
+
function Ao(e, o) {
|
|
655
|
+
function m(f, h = null) {
|
|
656
|
+
if (h)
|
|
657
|
+
return h;
|
|
658
|
+
const B = e.getComponentById(o);
|
|
659
|
+
return e.selectNode(B, (I) => I.id === f);
|
|
660
|
+
}
|
|
661
|
+
function p(f) {
|
|
662
|
+
const h = e.getComponentById(f);
|
|
663
|
+
return !(!h || !h.componentType || !h.componentType.startsWith("form"));
|
|
664
|
+
}
|
|
665
|
+
function r(f) {
|
|
666
|
+
const h = new Set(f);
|
|
667
|
+
return Array.from(h).length === 1;
|
|
668
|
+
}
|
|
669
|
+
function V(f) {
|
|
670
|
+
const h = m(f.id), B = ut(e), I = [];
|
|
671
|
+
B.getResonseFormLayoutConfig(h, I, 1);
|
|
672
|
+
const N = I.map((T) => T.columnInSM), A = I.map((T) => T.columnInMD), $ = I.map((T) => T.columnInLG), j = I.map((T) => T.columnInEL), J = r(N) ? N[0] : 0, K = r(A) ? A[0] : 0, L = r($) ? $[0] : 0, k = r(j) ? j[0] : 0;
|
|
504
673
|
return {
|
|
505
|
-
uniqueColClassInSM:
|
|
506
|
-
uniqueColClassInMD:
|
|
507
|
-
uniqueColClassInLG:
|
|
508
|
-
uniqueColClassInEL:
|
|
674
|
+
uniqueColClassInSM: J,
|
|
675
|
+
uniqueColClassInMD: K,
|
|
676
|
+
uniqueColClassInLG: L,
|
|
677
|
+
uniqueColClassInEL: k
|
|
509
678
|
};
|
|
510
679
|
}
|
|
511
|
-
function
|
|
512
|
-
let
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
|
|
680
|
+
function y(f, h) {
|
|
681
|
+
let B, I, N, A, $ = [];
|
|
682
|
+
if (f) {
|
|
683
|
+
const T = f.split(" "), q = T.filter((D) => D.startsWith("col-"));
|
|
684
|
+
B = q.find((D) => /^col-([1-9]|10|11|12)$/.test(D)), I = q.find((D) => /^col-md-([1-9]|10|11|12)$/.test(D)), N = q.find((D) => /^col-xl-([1-9]|10|11|12)$/.test(D)), A = q.find((D) => /^col-el-([1-9]|10|11|12)$/.test(D)), $ = T.filter((D) => !D.startsWith("col-"));
|
|
516
685
|
}
|
|
517
|
-
const
|
|
518
|
-
return [
|
|
686
|
+
const j = h.uniqueColClassInSM ? "col-" + h.uniqueColClassInSM : B, J = h.uniqueColClassInMD ? "col-md-" + h.uniqueColClassInMD : I, K = h.uniqueColClassInLG ? "col-xl-" + h.uniqueColClassInLG : N, L = h.uniqueColClassInEL ? "col-el-" + h.uniqueColClassInEL : A;
|
|
687
|
+
return [j, J, K, L].concat($).join(" ");
|
|
519
688
|
}
|
|
520
|
-
function
|
|
521
|
-
|
|
522
|
-
if (
|
|
523
|
-
I
|
|
689
|
+
function w(f, h, B) {
|
|
690
|
+
f = m(B, f), f.contents.forEach((I) => {
|
|
691
|
+
if (I.type === ne.fieldset.type) {
|
|
692
|
+
w(I, h, I.id);
|
|
524
693
|
return;
|
|
525
694
|
}
|
|
526
|
-
|
|
527
|
-
const
|
|
528
|
-
|
|
695
|
+
I.appearance || (I.appearance = {});
|
|
696
|
+
const N = I.appearance.class;
|
|
697
|
+
I.appearance.class = y(N, h);
|
|
529
698
|
});
|
|
530
699
|
}
|
|
531
|
-
return { checkIsInFormComponent:
|
|
700
|
+
return { checkIsInFormComponent: p, assembleUnifiedLayoutContext: V, changeFormControlsByUnifiedLayoutConfig: w };
|
|
532
701
|
}
|
|
533
|
-
class
|
|
534
|
-
constructor(
|
|
535
|
-
super(
|
|
536
|
-
}
|
|
537
|
-
getPropertyConfig(
|
|
538
|
-
const
|
|
539
|
-
this.propertyConfig.categories.basic = this.getBasicPropConfig(
|
|
540
|
-
const { checkIsInFormComponent:
|
|
541
|
-
return
|
|
702
|
+
class Oo extends Lo {
|
|
703
|
+
constructor(o, m) {
|
|
704
|
+
super(o, m);
|
|
705
|
+
}
|
|
706
|
+
getPropertyConfig(o, m) {
|
|
707
|
+
const p = this;
|
|
708
|
+
this.propertyConfig.categories.basic = this.getBasicPropConfig(o);
|
|
709
|
+
const { checkIsInFormComponent: r, assembleUnifiedLayoutContext: V, changeFormControlsByUnifiedLayoutConfig: y } = Ao(this.formSchemaUtils, this.componentId), w = this.getAppearanceConfig(o), f = r(this.componentId);
|
|
710
|
+
return w.properties.adaptForLanguage = {
|
|
542
711
|
title: "控件布局响应国际化",
|
|
543
712
|
description: "启用国际化后:简体中文、繁体中文环境下控件标签与输入框在一行展示,其他语言环境下控件标签与输入框上下排列。",
|
|
544
|
-
visible:
|
|
713
|
+
visible: f,
|
|
545
714
|
type: "boolean"
|
|
546
|
-
},
|
|
715
|
+
}, w.properties.labelAutoOverflow = {
|
|
547
716
|
title: "控件标签换行",
|
|
548
717
|
description: "控件标签字数超长时,换行显示。控件标签与输入框在一行展示时,此属性有效。",
|
|
549
|
-
visible:
|
|
718
|
+
visible: f,
|
|
550
719
|
type: "boolean"
|
|
551
|
-
},
|
|
720
|
+
}, w.properties.unifiedLayout = {
|
|
552
721
|
title: "统一布局配置",
|
|
553
722
|
description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
|
|
554
|
-
visible:
|
|
723
|
+
visible: f,
|
|
555
724
|
refreshPanelAfterChanged: !0,
|
|
556
725
|
editor: {
|
|
557
726
|
type: "response-form-layout-setting",
|
|
558
|
-
initialState:
|
|
727
|
+
initialState: V(o)
|
|
559
728
|
}
|
|
560
|
-
},
|
|
561
|
-
if (
|
|
562
|
-
switch (
|
|
729
|
+
}, w.setPropertyRelates = function(h, B) {
|
|
730
|
+
if (h)
|
|
731
|
+
switch (h && h.propertyID) {
|
|
563
732
|
case "unifiedLayout": {
|
|
564
|
-
|
|
733
|
+
y(null, h.propertyValue, o.id), p.updateElementByParentContainer(o.id, m);
|
|
565
734
|
break;
|
|
566
735
|
}
|
|
567
736
|
case "labelAutoOverflow": {
|
|
568
|
-
|
|
737
|
+
p.setLabelAutoOverflow(o, h.propertyValue), Bo();
|
|
569
738
|
break;
|
|
570
739
|
}
|
|
571
740
|
}
|
|
572
|
-
}, this.propertyConfig.categories.appearance =
|
|
741
|
+
}, this.propertyConfig.categories.appearance = w, this.propertyConfig.categories.behavior = this.getBehaviorConfig(o), this.propertyConfig;
|
|
573
742
|
}
|
|
574
|
-
setLabelAutoOverflow(
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
743
|
+
setLabelAutoOverflow(o, m, p) {
|
|
744
|
+
if (!p) {
|
|
745
|
+
const r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
746
|
+
p = this.formSchemaUtils.selectNode(r, (V) => V.id === o.id);
|
|
747
|
+
}
|
|
748
|
+
p && p.contents && p.contents.length && p.contents.forEach((r) => {
|
|
749
|
+
if (r.type === ne.fieldset.type) {
|
|
750
|
+
this.setLabelAutoOverflow(null, m, r);
|
|
751
|
+
return;
|
|
752
|
+
}
|
|
753
|
+
r.appearance || (r.appearance = {
|
|
578
754
|
class: ""
|
|
579
|
-
}),
|
|
580
|
-
})
|
|
755
|
+
}), r.appearance.class || (r.appearance.class = ""), m ? r.appearance.class.includes("farris-group-multi-label") || (r.appearance.class = r.appearance.class + " farris-group-multi-label") : r.appearance.class = r.appearance.class.replace("farris-group-multi-label", "").trim();
|
|
756
|
+
});
|
|
581
757
|
}
|
|
582
758
|
}
|
|
583
|
-
function
|
|
584
|
-
const
|
|
585
|
-
function
|
|
586
|
-
const { sourceElement:
|
|
587
|
-
if (!
|
|
759
|
+
function Ur(e, o) {
|
|
760
|
+
const m = e.schema, p = new To(), { canMove: r, canAccept: V, canDelete: y } = p.getTemplateRule(e, o);
|
|
761
|
+
function w(t, n) {
|
|
762
|
+
const { sourceElement: u } = t, { componentInstance: d } = u, C = o == null ? void 0 : o.formSchemaUtils;
|
|
763
|
+
if (!C)
|
|
588
764
|
return !0;
|
|
589
|
-
const
|
|
590
|
-
return
|
|
765
|
+
const F = C.getComponentById(d.value.belongedComponentId), b = C.getViewModelById(F.viewModel), g = C.getComponentById(e.componentInstance.value.belongedComponentId), c = C.getViewModelById(g.viewModel);
|
|
766
|
+
return n ? b != null && b.id && (c != null && c.id) && b.id !== c.id ? b.bindTo === c.bindTo : !0 : (b == null ? void 0 : b.id) === (c == null ? void 0 : c.id);
|
|
591
767
|
}
|
|
592
|
-
function
|
|
593
|
-
const { bindingTargetId:
|
|
594
|
-
if (!
|
|
768
|
+
function f(t) {
|
|
769
|
+
const { bindingTargetId: n } = t;
|
|
770
|
+
if (!o)
|
|
595
771
|
return;
|
|
596
|
-
const { formSchemaUtils:
|
|
597
|
-
return !!(
|
|
772
|
+
const { formSchemaUtils: u, schemaService: d } = o, C = u.getComponentById(e.componentInstance.value.belongedComponentId), F = d.getFieldByIDAndVMID(n, C.viewModel);
|
|
773
|
+
return !!(F != null && F.schemaField);
|
|
598
774
|
}
|
|
599
|
-
function
|
|
600
|
-
const
|
|
601
|
-
if (
|
|
602
|
-
if (
|
|
775
|
+
function h(t) {
|
|
776
|
+
const n = p.getComponentContext(e);
|
|
777
|
+
if (n && n.componentClassList && n.componentClassList.includes("f-form-layout") && n.componentClassList.includes("farris-form")) {
|
|
778
|
+
if (t.sourceType === "control" && (t.componentCategory === "input" || t.componentType === "fieldset"))
|
|
603
779
|
return !0;
|
|
604
|
-
if (
|
|
605
|
-
if (
|
|
606
|
-
return
|
|
607
|
-
if (
|
|
608
|
-
return
|
|
780
|
+
if (t.sourceType === "move") {
|
|
781
|
+
if (t.componentType === "form-group")
|
|
782
|
+
return w(t, !0);
|
|
783
|
+
if (t.componentType === "fieldset")
|
|
784
|
+
return w(t, !1);
|
|
609
785
|
}
|
|
610
|
-
return
|
|
786
|
+
return t.sourceType === "field" && t.componentCategory === "input" ? f(t) : !1;
|
|
611
787
|
}
|
|
612
788
|
return !0;
|
|
613
789
|
}
|
|
614
|
-
function
|
|
615
|
-
return !(
|
|
616
|
-
}
|
|
617
|
-
function
|
|
618
|
-
var
|
|
619
|
-
const
|
|
620
|
-
if (
|
|
621
|
-
const
|
|
622
|
-
switch (
|
|
623
|
-
case
|
|
624
|
-
|
|
790
|
+
function B(t) {
|
|
791
|
+
return !(!Eo().basalDragulaRuleForContainer(t, o) || !V || !h(t));
|
|
792
|
+
}
|
|
793
|
+
function I(t) {
|
|
794
|
+
var c;
|
|
795
|
+
const n = t.componentInstance, u = n.value.schema, d = o == null ? void 0 : o.formSchemaUtils, C = o == null ? void 0 : o.designViewModelUtils, F = d.getViewModelIdByComponentId(n.value.belongedComponentId), b = C.getDgViewModel(F), g = n.value.parent;
|
|
796
|
+
if (g && ne.fieldset && ((c = g.schema) == null ? void 0 : c.type) === ne.fieldset.type && b) {
|
|
797
|
+
const P = { groupId: null, groupName: null };
|
|
798
|
+
switch (u.binding.type) {
|
|
799
|
+
case ee.Form: {
|
|
800
|
+
b.changeField(u.binding.field, P);
|
|
625
801
|
break;
|
|
626
802
|
}
|
|
627
|
-
case
|
|
628
|
-
d.modifyViewModelFieldById(
|
|
803
|
+
case ee.Variable: {
|
|
804
|
+
d.modifyViewModelFieldById(F, u.binding.field, P, !0);
|
|
629
805
|
break;
|
|
630
806
|
}
|
|
631
807
|
}
|
|
632
808
|
}
|
|
633
809
|
}
|
|
634
|
-
function
|
|
635
|
-
const d =
|
|
636
|
-
|
|
637
|
-
const
|
|
638
|
-
|
|
810
|
+
function N(t, n, u) {
|
|
811
|
+
const d = n.fields.find((c) => c.id === t), C = o == null ? void 0 : o.designViewModelUtils, F = C.getDgViewModel(n.id), b = F.fields.find((c) => c.id === t);
|
|
812
|
+
F.removeField([t]);
|
|
813
|
+
const g = C.getDgViewModel(u);
|
|
814
|
+
g.addField(b), d.fieldSchema && g.changeField(b.id, d.fieldSchema);
|
|
639
815
|
}
|
|
640
|
-
function
|
|
641
|
-
const
|
|
642
|
-
if (
|
|
643
|
-
|
|
816
|
+
function A(t, n, u, d = []) {
|
|
817
|
+
const C = n.id, F = t.binding.field, b = n.fields.findIndex((c) => c.id === F);
|
|
818
|
+
if (b > -1 && (u.fields.push(n.fields[b]), n.fields.splice(b, 1)), C === "root-viewmodel" && u.id !== "root-viewmodel") {
|
|
819
|
+
t.binding.path && !t.binding.path.includes("root-component.") && (t.binding.path = "root-component." + t.binding.path);
|
|
644
820
|
return;
|
|
645
821
|
}
|
|
646
|
-
if (
|
|
647
|
-
|
|
822
|
+
if (u.id === "root-viewmodel" && C !== "root-viewmodel" && t.binding.path && t.binding.path.includes("root-component.")) {
|
|
823
|
+
t.binding.path = t.binding.path.replace("root-component.", "");
|
|
648
824
|
return;
|
|
649
825
|
}
|
|
650
|
-
const
|
|
651
|
-
|
|
826
|
+
const g = n.states.find((c) => c.id === F);
|
|
827
|
+
g && (u.states = u.states ? u.states : [], u.states.findIndex((c) => c.id === g.id) < 0 && (u.states.push(g), d.push(g.id)));
|
|
652
828
|
}
|
|
653
|
-
function
|
|
654
|
-
var
|
|
655
|
-
if (!
|
|
829
|
+
function $(t, n, u, d = []) {
|
|
830
|
+
var b;
|
|
831
|
+
if (!t)
|
|
656
832
|
return;
|
|
657
|
-
const
|
|
658
|
-
Object.keys(
|
|
659
|
-
if (
|
|
833
|
+
const C = n.id === "root-viewmodel" && u.id !== "root-viewmodel", F = u.id === "root-viewmodel" && n.id !== "root-viewmodel";
|
|
834
|
+
Object.keys(t).forEach((g) => {
|
|
835
|
+
if (g === "binding")
|
|
660
836
|
return;
|
|
661
|
-
const
|
|
662
|
-
if (
|
|
663
|
-
if (
|
|
664
|
-
|
|
837
|
+
const c = t[g];
|
|
838
|
+
if (c && typeof c == "object" && c.type === ee.Variable && c.field) {
|
|
839
|
+
if (C) {
|
|
840
|
+
c.path && !c.path.includes("root-component.") && (c.path = "root-component." + c.path);
|
|
665
841
|
return;
|
|
666
842
|
}
|
|
667
|
-
if (
|
|
668
|
-
|
|
843
|
+
if (F && c.path && c.path.includes("root-component.")) {
|
|
844
|
+
c.path = c.path.replace("root-component.", "");
|
|
669
845
|
return;
|
|
670
846
|
}
|
|
671
|
-
const
|
|
672
|
-
if (
|
|
673
|
-
d.push(
|
|
674
|
-
const
|
|
675
|
-
if (
|
|
676
|
-
|
|
847
|
+
const P = n.states.find((U) => U.id === c.field);
|
|
848
|
+
if (P) {
|
|
849
|
+
d.push(P.id), u.states = u.states ? u.states : [];
|
|
850
|
+
const U = u.states.find((S) => S.code === P.code);
|
|
851
|
+
if (U)
|
|
852
|
+
c.field = U.id;
|
|
677
853
|
else {
|
|
678
|
-
const
|
|
679
|
-
|
|
854
|
+
const S = Object.assign({}, { newId: se().guid() }, P);
|
|
855
|
+
u.states.push(S), c.field = S.newId;
|
|
680
856
|
}
|
|
681
857
|
}
|
|
682
858
|
}
|
|
683
|
-
}), (
|
|
684
|
-
|
|
859
|
+
}), (b = u.states) != null && b.length && u.states.map((g) => {
|
|
860
|
+
g.newId && (g.id = g.newId, delete g.newId);
|
|
685
861
|
});
|
|
686
862
|
}
|
|
687
|
-
function
|
|
688
|
-
if (
|
|
689
|
-
for (const d of
|
|
690
|
-
|
|
863
|
+
function j(t, n, u) {
|
|
864
|
+
if (t && (n(t, u), t.contents))
|
|
865
|
+
for (const d of t.contents)
|
|
866
|
+
j(d, n, u);
|
|
691
867
|
}
|
|
692
|
-
function
|
|
693
|
-
if (!
|
|
868
|
+
function J(t = [], n) {
|
|
869
|
+
if (!t.length)
|
|
694
870
|
return;
|
|
695
|
-
const
|
|
696
|
-
|
|
697
|
-
const
|
|
698
|
-
|
|
699
|
-
}),
|
|
871
|
+
const u = o == null ? void 0 : o.formSchemaUtils, d = u.getComponentByViewModelId(n), C = [], F = (g, c) => {
|
|
872
|
+
g && (Object.keys(g).forEach((P) => {
|
|
873
|
+
const U = g[P];
|
|
874
|
+
U && typeof U == "object" && U.type === ee.Variable && t.includes(U.field) && !c.includes(U.field) && c.push(U.field);
|
|
875
|
+
}), g.editor && F(g.editor, c));
|
|
700
876
|
};
|
|
701
|
-
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
|
|
877
|
+
j(d, F, C);
|
|
878
|
+
const b = u.getViewModelById(n);
|
|
879
|
+
t.forEach((g) => {
|
|
880
|
+
C.includes(g) || (b.states = b.states.filter((c) => c.id !== g));
|
|
705
881
|
});
|
|
706
882
|
}
|
|
707
|
-
function
|
|
708
|
-
const
|
|
709
|
-
id:
|
|
710
|
-
code:
|
|
711
|
-
name:
|
|
712
|
-
}),
|
|
713
|
-
return
|
|
714
|
-
host:
|
|
715
|
-
handler:
|
|
716
|
-
}),
|
|
717
|
-
}
|
|
718
|
-
function
|
|
719
|
-
var
|
|
720
|
-
const d = {},
|
|
721
|
-
if (!
|
|
883
|
+
function K(t) {
|
|
884
|
+
const n = se().guid(), u = Object.assign({}, t, {
|
|
885
|
+
id: n,
|
|
886
|
+
code: t.code + n.slice(0, 4),
|
|
887
|
+
name: t.name + n.slice(0, 4)
|
|
888
|
+
}), F = (o == null ? void 0 : o.formSchemaUtils).getCommands().find((b) => b.id === t.cmpId);
|
|
889
|
+
return F && F.refedHandlers.push({
|
|
890
|
+
host: n,
|
|
891
|
+
handler: t.handlerName
|
|
892
|
+
}), u;
|
|
893
|
+
}
|
|
894
|
+
function L(t, n, u) {
|
|
895
|
+
var P, U, S;
|
|
896
|
+
const d = {}, C = t.type === "form-group" && t.editor ? t.editor.type : t.type, F = (P = pe[C]) == null ? void 0 : P.events;
|
|
897
|
+
if (!F)
|
|
722
898
|
return;
|
|
723
|
-
Object.keys(
|
|
724
|
-
const
|
|
725
|
-
if (
|
|
726
|
-
const
|
|
727
|
-
if (
|
|
728
|
-
let
|
|
729
|
-
|
|
899
|
+
Object.keys(t).forEach((H) => {
|
|
900
|
+
const Q = Object.keys(F).find((_) => _ === H);
|
|
901
|
+
if (Q && t[Q]) {
|
|
902
|
+
const _ = n.commands.find((W) => W.code === t[Q]);
|
|
903
|
+
if (_) {
|
|
904
|
+
let W = d[_.code];
|
|
905
|
+
W || (W = K(_), d[_.code] = W, u.commands.push(W)), t[Q] = W.code;
|
|
730
906
|
}
|
|
731
907
|
}
|
|
732
908
|
});
|
|
733
|
-
const
|
|
734
|
-
if (((
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
if (Q
|
|
738
|
-
const
|
|
739
|
-
if (!
|
|
909
|
+
const g = (o == null ? void 0 : o.designViewModelUtils).getDgViewModel(u.id), c = ["valueChanging", "valueChanged"];
|
|
910
|
+
if (((U = t.binding) == null ? void 0 : U.type) === ee.Form) {
|
|
911
|
+
const H = (S = u.fields) == null ? void 0 : S.find((Q) => Q.id === t.binding.field);
|
|
912
|
+
H && c.forEach((Q) => {
|
|
913
|
+
if (H[Q]) {
|
|
914
|
+
const _ = n.commands.find((W) => W.code === H[Q]);
|
|
915
|
+
if (!_)
|
|
740
916
|
return;
|
|
741
|
-
if (d[
|
|
742
|
-
|
|
917
|
+
if (d[_.code])
|
|
918
|
+
g.changeField(H.id, { [Q]: d[_.code].code });
|
|
743
919
|
else {
|
|
744
|
-
const
|
|
745
|
-
d[
|
|
920
|
+
const W = K(_);
|
|
921
|
+
d[_.code] = W, u.commands.push(W), g.changeField(H.id, { [Q]: W.code });
|
|
746
922
|
}
|
|
747
923
|
}
|
|
748
924
|
});
|
|
749
925
|
}
|
|
750
926
|
}
|
|
751
|
-
function
|
|
752
|
-
const
|
|
753
|
-
if (
|
|
754
|
-
const
|
|
755
|
-
switch (
|
|
756
|
-
case
|
|
757
|
-
|
|
927
|
+
function k(t) {
|
|
928
|
+
const n = o == null ? void 0 : o.formSchemaUtils, u = t.componentInstance, d = u.value.schema, C = n.getViewModelIdByComponentId(u.value.belongedComponentId), F = n.getViewModelById(C), b = n.getComponentById(e.componentInstance.value.belongedComponentId), g = n.getViewModelById(b.viewModel);
|
|
929
|
+
if (C !== g.id) {
|
|
930
|
+
const c = d.binding.type, P = d.binding.field, U = [];
|
|
931
|
+
switch (c) {
|
|
932
|
+
case ee.Form: {
|
|
933
|
+
N(P, F, g.id);
|
|
758
934
|
break;
|
|
759
935
|
}
|
|
760
|
-
case
|
|
761
|
-
|
|
936
|
+
case ee.Variable: {
|
|
937
|
+
A(d, F, g, U);
|
|
762
938
|
break;
|
|
763
939
|
}
|
|
764
940
|
}
|
|
765
|
-
|
|
941
|
+
$(d, F, g, U), $(d.editor, F, g, U), L(d, F, g), C !== "root-viewmodel" && J(U, C);
|
|
766
942
|
}
|
|
767
943
|
}
|
|
768
|
-
function
|
|
769
|
-
if (!
|
|
944
|
+
function T(t) {
|
|
945
|
+
if (!t || !t.componentInstance)
|
|
770
946
|
return;
|
|
771
|
-
const
|
|
772
|
-
!
|
|
947
|
+
const u = t.componentInstance.value.schema;
|
|
948
|
+
!u.binding || !u.binding.field || (I(t), k(t));
|
|
773
949
|
}
|
|
774
|
-
function
|
|
775
|
-
return
|
|
950
|
+
function q() {
|
|
951
|
+
return m.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
776
952
|
}
|
|
777
|
-
function D(
|
|
778
|
-
let
|
|
779
|
-
switch (
|
|
953
|
+
function D(t) {
|
|
954
|
+
let n = "";
|
|
955
|
+
switch (t) {
|
|
780
956
|
case 1: {
|
|
781
|
-
|
|
957
|
+
n = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
782
958
|
break;
|
|
783
959
|
}
|
|
784
960
|
case 2: {
|
|
785
|
-
|
|
961
|
+
n = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
786
962
|
break;
|
|
787
963
|
}
|
|
788
964
|
case 3: {
|
|
789
|
-
|
|
965
|
+
n = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
790
966
|
break;
|
|
791
967
|
}
|
|
792
968
|
case 4: {
|
|
793
|
-
|
|
969
|
+
n = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
794
970
|
break;
|
|
795
971
|
}
|
|
796
972
|
}
|
|
797
|
-
return
|
|
973
|
+
return n;
|
|
798
974
|
}
|
|
799
|
-
function Y(
|
|
800
|
-
|
|
801
|
-
if (
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
d =
|
|
975
|
+
function Y(t, n) {
|
|
976
|
+
let u = !1;
|
|
977
|
+
if (e.schema && Object.prototype.hasOwnProperty.call(e.schema, "labelAutoOverflow"))
|
|
978
|
+
u = e.schema.labelAutoOverflow;
|
|
979
|
+
else {
|
|
980
|
+
const d = o == null ? void 0 : o.formSchemaUtils, C = d == null ? void 0 : d.selectNode(n, (F) => F.type === ne["response-form"].type);
|
|
981
|
+
C && (u = C.labelAutoOverflow);
|
|
805
982
|
}
|
|
983
|
+
return u && (t += " farris-group-multi-label"), t;
|
|
806
984
|
}
|
|
807
|
-
function
|
|
808
|
-
const
|
|
809
|
-
if (
|
|
810
|
-
const
|
|
811
|
-
|
|
985
|
+
function M(t) {
|
|
986
|
+
const n = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
|
|
987
|
+
if (n && n.schema && n.schema.componentType) {
|
|
988
|
+
const { formColumns: u } = n.schema;
|
|
989
|
+
let d = D(u);
|
|
990
|
+
d = o == null ? void 0 : o.formSchemaUtils.getControlClassByFormUnifiedLayout(d, n.schema.id, e.schema), d = Y(d, n.schema), t.appearance || (t.appearance = {}), t.appearance.class = d;
|
|
812
991
|
}
|
|
813
992
|
}
|
|
814
|
-
function
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
let T;
|
|
820
|
-
const k = a == null ? void 0 : a.controlCreatorUtils;
|
|
821
|
-
return (p = e.bindingSourceContext) != null && p.entityFieldNode ? T = k.setFormFieldProperty((F = e.bindingSourceContext) == null ? void 0 : F.entityFieldNode, s == null ? void 0 : s.type) : (T = k.createFormGroupWithoutField(s == null ? void 0 : s.type), T.label = u), Y(T), Z(e, (m = T.editor) == null ? void 0 : m.type), T;
|
|
993
|
+
function X(t, n, u, d) {
|
|
994
|
+
const { bindingSourceContext: C, parentComponentInstance: F } = t;
|
|
995
|
+
if (C != null && C.entityFieldNode && F) {
|
|
996
|
+
const b = o == null ? void 0 : o.designViewModelUtils, c = (o == null ? void 0 : o.formSchemaUtils).getViewModelIdByComponentId(F.belongedComponentId), P = b.getDgViewModel(c);
|
|
997
|
+
P.removeField([C.entityFieldNode.id]), P.addField(C.designViewModelField), n && P.changeField(C.entityFieldNode.id, { editor: { $type: n }, groupId: u, groupName: d });
|
|
822
998
|
}
|
|
823
|
-
return s;
|
|
824
999
|
}
|
|
825
|
-
function
|
|
826
|
-
|
|
1000
|
+
function R(t, n) {
|
|
1001
|
+
var F, b, g;
|
|
1002
|
+
const u = m;
|
|
1003
|
+
if ((u.appearance && u.appearance.class || "").split(" ").includes("f-form-layout") && t.componentCategory === "input") {
|
|
1004
|
+
const { label: c } = t;
|
|
1005
|
+
let P;
|
|
1006
|
+
const U = o == null ? void 0 : o.controlCreatorUtils;
|
|
1007
|
+
return (F = t.bindingSourceContext) != null && F.entityFieldNode ? P = U.setFormFieldProperty((b = t.bindingSourceContext) == null ? void 0 : b.entityFieldNode, n == null ? void 0 : n.type) : (P = U.createFormGroupWithoutField(n == null ? void 0 : n.type), P.label = c), M(P), X(t, (g = P.editor) == null ? void 0 : g.type), P;
|
|
1008
|
+
}
|
|
1009
|
+
return n;
|
|
827
1010
|
}
|
|
828
|
-
function
|
|
829
|
-
return
|
|
1011
|
+
function Z() {
|
|
1012
|
+
return r;
|
|
830
1013
|
}
|
|
831
|
-
function
|
|
1014
|
+
function z() {
|
|
1015
|
+
return y;
|
|
1016
|
+
}
|
|
1017
|
+
function E() {
|
|
832
1018
|
return !1;
|
|
833
1019
|
}
|
|
834
|
-
function
|
|
835
|
-
return new
|
|
1020
|
+
function O(t) {
|
|
1021
|
+
return new Oo(t, o).getPropertyConfig(m, e.componentInstance.value);
|
|
836
1022
|
}
|
|
837
1023
|
return {
|
|
838
|
-
canAccepts:
|
|
839
|
-
checkCanDeleteComponent:
|
|
840
|
-
checkCanMoveComponent:
|
|
841
|
-
getStyles:
|
|
842
|
-
getPropsConfig:
|
|
843
|
-
hideNestedPaddingInDesginerView:
|
|
844
|
-
onAcceptMovedChildElement:
|
|
845
|
-
onResolveNewComponentSchema:
|
|
846
|
-
moveInputBetweenComponent:
|
|
847
|
-
resolveFormGroupAppearance:
|
|
848
|
-
syncFieldToViewModel:
|
|
1024
|
+
canAccepts: B,
|
|
1025
|
+
checkCanDeleteComponent: z,
|
|
1026
|
+
checkCanMoveComponent: Z,
|
|
1027
|
+
getStyles: q,
|
|
1028
|
+
getPropsConfig: O,
|
|
1029
|
+
hideNestedPaddingInDesginerView: E,
|
|
1030
|
+
onAcceptMovedChildElement: T,
|
|
1031
|
+
onResolveNewComponentSchema: R,
|
|
1032
|
+
moveInputBetweenComponent: k,
|
|
1033
|
+
resolveFormGroupAppearance: M,
|
|
1034
|
+
syncFieldToViewModel: X
|
|
849
1035
|
};
|
|
850
1036
|
}
|
|
851
|
-
|
|
852
|
-
|
|
1037
|
+
re.install = (e) => {
|
|
1038
|
+
e.component(re.name, re).component(ue.name, ue).component(ce.name, ce);
|
|
853
1039
|
};
|
|
854
1040
|
export {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
1041
|
+
Pr as FDynamicFormGroup,
|
|
1042
|
+
ue as FDynamicFormInput,
|
|
1043
|
+
ge as FDynamicFormLabel,
|
|
1044
|
+
ce as FFormControl,
|
|
1045
|
+
re as FResponseForm,
|
|
1046
|
+
re as default,
|
|
1047
|
+
Ce as dynamicFormGroupProps,
|
|
1048
|
+
Do as dynamicFormInputProps,
|
|
1049
|
+
Po as responseFormProps,
|
|
1050
|
+
Ur as useDesignerRules,
|
|
1051
|
+
ye as useTypeResolver
|
|
865
1052
|
};
|