@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,16 +1,19 @@
|
|
|
1
|
-
import { resolveAppearance as
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ref as
|
|
4
|
-
import
|
|
5
|
-
import { isPlainObject as
|
|
1
|
+
import { resolveAppearance as te, createPropsResolver as J } from "../../components/dynamic-resolver/index.esm.js";
|
|
2
|
+
import { getCustomStyle as Se, getMaxZIndex as xe, withInstall as Fe } from "../../components/common/index.esm.js";
|
|
3
|
+
import { ref as M, computed as D, defineComponent as oe, watch as _, watchEffect as Pe, createVNode as p, Teleport as $e, Transition as Z, withModifiers as W, withDirectives as Re, vShow as De, Fragment as re, nextTick as Me, inject as G, onMounted as Ee } from "vue";
|
|
4
|
+
import je, { responseToolbarProps as Oe } from "../../components/response-toolbar/index.esm.js";
|
|
5
|
+
import { isPlainObject as Y, cloneDeep as K } from "lodash-es";
|
|
6
6
|
import { LocaleService as ee } from "../../components/locale/index.esm.js";
|
|
7
|
-
import { UseTemplateDragAndDropRules as
|
|
8
|
-
import {
|
|
9
|
-
import { BaseControlProperty as
|
|
10
|
-
import { canvasChanged as
|
|
11
|
-
const
|
|
12
|
-
["appearance",
|
|
13
|
-
]),
|
|
7
|
+
import { UseTemplateDragAndDropRules as Ie, DgControl as Be, useDragulaCommonRule as He, setPositionOfButtonGroup as Ne, useDesignerComponent as Ae, FDesignerInnerItem as Le } from "../../components/designer-canvas/index.esm.js";
|
|
8
|
+
import { commonToolbarItemDesignProps as Ve, FResponseToolbarDesign as ne, FResponseToolbarItemDesign as qe } from "../response-toolbar/index.esm.js";
|
|
9
|
+
import { BaseControlProperty as ze } from "../../components/property-panel/index.esm.js";
|
|
10
|
+
import { canvasChanged as _e } from "../../components/designer-canvas/index.esm.js/src/composition/designer-canvas-changed";
|
|
11
|
+
const ie = /* @__PURE__ */ new Map([
|
|
12
|
+
["appearance", te]
|
|
13
|
+
]), We = /* @__PURE__ */ new Map([
|
|
14
|
+
["buttons", "items"],
|
|
15
|
+
["appearance", te]
|
|
16
|
+
]), Ue = "https://json-schema.org/draft/2020-12/schema", Ge = "https://farris-design.gitee.io/drawer.schema.json", Ze = "drawer", Je = "A Farris Component", Qe = "object", Xe = {
|
|
14
17
|
id: {
|
|
15
18
|
description: "The unique identifier for drawer",
|
|
16
19
|
type: "string"
|
|
@@ -98,7 +101,7 @@ const oe = /* @__PURE__ */ new Map([
|
|
|
98
101
|
type: {
|
|
99
102
|
description: "",
|
|
100
103
|
type: "string",
|
|
101
|
-
default: "
|
|
104
|
+
default: "drawer-toolbar"
|
|
102
105
|
},
|
|
103
106
|
alignment: {
|
|
104
107
|
description: "The alignment of Response Toolbar Button.",
|
|
@@ -143,7 +146,7 @@ const oe = /* @__PURE__ */ new Map([
|
|
|
143
146
|
type: {
|
|
144
147
|
description: "",
|
|
145
148
|
type: "string",
|
|
146
|
-
default: "
|
|
149
|
+
default: "drawer-toolbar"
|
|
147
150
|
},
|
|
148
151
|
alignment: {
|
|
149
152
|
description: "The alignment of Response Toolbar Button.",
|
|
@@ -186,182 +189,107 @@ const oe = /* @__PURE__ */ new Map([
|
|
|
186
189
|
type: "boolean",
|
|
187
190
|
default: !1
|
|
188
191
|
}
|
|
189
|
-
},
|
|
192
|
+
}, Ye = [
|
|
190
193
|
"id",
|
|
191
194
|
"type",
|
|
192
195
|
"contents"
|
|
193
|
-
],
|
|
196
|
+
], Ke = {
|
|
194
197
|
beforeClose: "关闭前事件"
|
|
195
|
-
},
|
|
196
|
-
$schema:
|
|
197
|
-
$id:
|
|
198
|
-
title:
|
|
199
|
-
description:
|
|
200
|
-
type:
|
|
201
|
-
properties:
|
|
202
|
-
required:
|
|
203
|
-
events:
|
|
198
|
+
}, ae = {
|
|
199
|
+
$schema: Ue,
|
|
200
|
+
$id: Ge,
|
|
201
|
+
title: Ze,
|
|
202
|
+
description: Je,
|
|
203
|
+
type: Qe,
|
|
204
|
+
properties: Xe,
|
|
205
|
+
required: Ye,
|
|
206
|
+
events: Ke
|
|
204
207
|
};
|
|
205
|
-
function
|
|
208
|
+
function se(e, t, o) {
|
|
206
209
|
return Object.assign(t, {
|
|
207
210
|
title: "标题",
|
|
208
211
|
headerToolbar: {
|
|
209
212
|
id: t.id + "_header_toolbar",
|
|
210
|
-
type: "
|
|
213
|
+
type: "drawer-toolbar",
|
|
211
214
|
buttons: []
|
|
212
215
|
},
|
|
213
216
|
footerToolbar: {
|
|
214
217
|
id: t.id + "_footer_toolbar",
|
|
215
|
-
type: "
|
|
218
|
+
type: "drawer-toolbar",
|
|
216
219
|
buttons: []
|
|
217
220
|
}
|
|
218
221
|
}), t;
|
|
219
222
|
}
|
|
220
|
-
function
|
|
221
|
-
|
|
222
|
-
function o(n) {
|
|
223
|
-
const { properties: s, title: m, ignore: i } = n, a = i && Array.isArray(i), c = Object.keys(s).reduce((b, w) => ((!a || !i.find((l) => l === w)) && (b[w] = s[w].type === "object" && s[w].properties ? o(s[w]) : K(s[w].default)), b), {});
|
|
224
|
-
if (m && (!a || !i.find((b) => b === "id"))) {
|
|
225
|
-
const b = m.toLowerCase().replace(/-/g, "_");
|
|
226
|
-
c.id = `${b}_${Math.random().toString().slice(2, 6)}`;
|
|
227
|
-
}
|
|
228
|
-
return c;
|
|
229
|
-
}
|
|
230
|
-
function v(n) {
|
|
231
|
-
const { properties: s, title: m, required: i } = n;
|
|
232
|
-
if (i && Array.isArray(i)) {
|
|
233
|
-
const a = i.reduce((c, b) => (c[b] = s[b].type === "object" && s[b].properties ? o(s[b]) : K(s[b].default), c), {});
|
|
234
|
-
if (m && i.find((c) => c === "id")) {
|
|
235
|
-
const c = m.toLowerCase().replace(/-/g, "_");
|
|
236
|
-
a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
237
|
-
}
|
|
238
|
-
return a;
|
|
239
|
-
}
|
|
240
|
-
return {
|
|
241
|
-
type: m
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
function k(n, s = {}, m) {
|
|
245
|
-
const i = e[n];
|
|
246
|
-
if (i) {
|
|
247
|
-
let a = v(i);
|
|
248
|
-
const c = t[n];
|
|
249
|
-
return a = c ? c({ getSchemaByType: k }, a, s, m) : a, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(a), a;
|
|
250
|
-
}
|
|
251
|
-
return null;
|
|
252
|
-
}
|
|
253
|
-
function h(n, s) {
|
|
254
|
-
const m = o(s);
|
|
255
|
-
return Object.keys(m).reduce((i, a) => (Object.prototype.hasOwnProperty.call(n, a) && (i[a] && Z(i[a]) && Z(n[a] || !n[a]) ? Object.assign(i[a], n[a] || {}) : i[a] = n[a]), i), m), m;
|
|
256
|
-
}
|
|
257
|
-
function p(n, s) {
|
|
258
|
-
return Object.keys(n).filter((i) => n[i] != null).reduce((i, a) => {
|
|
259
|
-
if (s.has(a)) {
|
|
260
|
-
const c = s.get(a);
|
|
261
|
-
if (typeof c == "string")
|
|
262
|
-
i[c] = n[a];
|
|
263
|
-
else {
|
|
264
|
-
const b = c(a, n[a], n);
|
|
265
|
-
Object.assign(i, b);
|
|
266
|
-
}
|
|
267
|
-
} else
|
|
268
|
-
i[a] = n[a];
|
|
269
|
-
return i;
|
|
270
|
-
}, {});
|
|
271
|
-
}
|
|
272
|
-
function F(n, s, m = /* @__PURE__ */ new Map()) {
|
|
273
|
-
const i = h(n, s);
|
|
274
|
-
return p(i, m);
|
|
275
|
-
}
|
|
276
|
-
function u(n) {
|
|
277
|
-
var m;
|
|
278
|
-
const s = n.type;
|
|
279
|
-
if (s) {
|
|
280
|
-
const i = e[s];
|
|
281
|
-
if (!i)
|
|
282
|
-
return n;
|
|
283
|
-
const a = h(n, i), c = ((m = n.editor) == null ? void 0 : m.type) || "";
|
|
284
|
-
if (c) {
|
|
285
|
-
const b = e[c], w = h(n.editor, b);
|
|
286
|
-
a.editor = w;
|
|
287
|
-
}
|
|
288
|
-
return a;
|
|
289
|
-
}
|
|
290
|
-
return n;
|
|
291
|
-
}
|
|
292
|
-
function g(n) {
|
|
293
|
-
r = n;
|
|
294
|
-
}
|
|
295
|
-
return { getSchemaByType: k, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: F, mappingSchemaToProps: p, setDesignerContext: g };
|
|
223
|
+
function le(e, t, o) {
|
|
224
|
+
return t;
|
|
296
225
|
}
|
|
297
|
-
|
|
298
|
-
function
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
return Number(s[u].length) <= Number(i);
|
|
226
|
+
function et(e = {}) {
|
|
227
|
+
function t(f, v, s, c) {
|
|
228
|
+
if (typeof s == "number")
|
|
229
|
+
return c[f].length === s;
|
|
230
|
+
if (typeof s == "object") {
|
|
231
|
+
const b = Object.keys(s)[0], i = s[b];
|
|
232
|
+
if (b === "not")
|
|
233
|
+
return Number(c[f].length) !== Number(i);
|
|
234
|
+
if (b === "moreThan")
|
|
235
|
+
return Number(c[f].length) >= Number(i);
|
|
236
|
+
if (b === "lessThan")
|
|
237
|
+
return Number(c[f].length) <= Number(i);
|
|
310
238
|
}
|
|
311
239
|
return !1;
|
|
312
240
|
}
|
|
313
|
-
function
|
|
314
|
-
return
|
|
241
|
+
function o(f, v, s, c) {
|
|
242
|
+
return c[f] && c[f].propertyValue && String(c[f].propertyValue.value) === String(s);
|
|
315
243
|
}
|
|
316
|
-
const
|
|
244
|
+
const r = /* @__PURE__ */ new Map([
|
|
317
245
|
["length", t],
|
|
318
|
-
["getProperty",
|
|
246
|
+
["getProperty", o]
|
|
319
247
|
]);
|
|
320
|
-
Object.keys(e).reduce((
|
|
321
|
-
function
|
|
322
|
-
const
|
|
323
|
-
return typeof
|
|
324
|
-
if (
|
|
325
|
-
return { target:
|
|
326
|
-
const
|
|
327
|
-
return { target:
|
|
248
|
+
Object.keys(e).reduce((f, v) => (f.set(v, e[v]), f), r);
|
|
249
|
+
function g(f, v) {
|
|
250
|
+
const s = f;
|
|
251
|
+
return typeof v == "number" ? [{ target: s, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: s, operator: "getProperty", param: f, value: !!v }] : typeof v == "object" ? Object.keys(v).map((c) => {
|
|
252
|
+
if (c === "length")
|
|
253
|
+
return { target: s, operator: "length", param: null, value: v[c] };
|
|
254
|
+
const b = c, i = v[c];
|
|
255
|
+
return { target: s, operator: "getProperty", param: b, value: i };
|
|
328
256
|
}) : [];
|
|
329
257
|
}
|
|
330
|
-
function k(
|
|
331
|
-
return Object.keys(
|
|
332
|
-
const
|
|
333
|
-
return
|
|
258
|
+
function k(f) {
|
|
259
|
+
return Object.keys(f).reduce((s, c) => {
|
|
260
|
+
const b = g(c, f[c]);
|
|
261
|
+
return s.push(...b), s;
|
|
334
262
|
}, []);
|
|
335
263
|
}
|
|
336
|
-
function
|
|
337
|
-
if (
|
|
338
|
-
const
|
|
339
|
-
return
|
|
264
|
+
function T(f, v) {
|
|
265
|
+
if (r.has(f.operator)) {
|
|
266
|
+
const s = r.get(f.operator);
|
|
267
|
+
return s && s(f.target, f.param, f.value, v) || !1;
|
|
340
268
|
}
|
|
341
269
|
return !1;
|
|
342
270
|
}
|
|
343
|
-
function
|
|
344
|
-
return k(
|
|
271
|
+
function m(f, v) {
|
|
272
|
+
return k(f).reduce((b, i) => b && T(i, v), !0);
|
|
345
273
|
}
|
|
346
|
-
function
|
|
347
|
-
const
|
|
348
|
-
return
|
|
274
|
+
function x(f, v) {
|
|
275
|
+
const s = Object.keys(f), c = s.includes("allOf"), b = s.includes("anyOf"), i = c || b, u = (i ? f[i ? c ? "allOf" : "anyOf" : "allOf"] : [f]).map((S) => m(S, v));
|
|
276
|
+
return c ? !u.includes(!1) : u.includes(!0);
|
|
349
277
|
}
|
|
350
|
-
return { parseValueSchema:
|
|
278
|
+
return { parseValueSchema: x };
|
|
351
279
|
}
|
|
352
|
-
const
|
|
353
|
-
convertTo: (e, t,
|
|
354
|
-
e.appearance || (e.appearance = {}), e.appearance[t] =
|
|
280
|
+
const tt = {
|
|
281
|
+
convertTo: (e, t, o, r) => {
|
|
282
|
+
e.appearance || (e.appearance = {}), e.appearance[t] = o;
|
|
355
283
|
},
|
|
356
|
-
convertFrom: (e, t,
|
|
357
|
-
},
|
|
358
|
-
convertFrom: (e, t,
|
|
359
|
-
},
|
|
360
|
-
convertTo: (e, t,
|
|
361
|
-
e.editor && (e.editor[t] =
|
|
284
|
+
convertFrom: (e, t, o) => e.appearance ? e.appearance[t] : e[t]
|
|
285
|
+
}, ot = {
|
|
286
|
+
convertFrom: (e, t, o) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
287
|
+
}, rt = {
|
|
288
|
+
convertTo: (e, t, o, r) => {
|
|
289
|
+
e.editor && (e.editor[t] = o);
|
|
362
290
|
},
|
|
363
|
-
convertFrom: (e, t,
|
|
364
|
-
},
|
|
291
|
+
convertFrom: (e, t, o) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
292
|
+
}, nt = {
|
|
365
293
|
button: { type: "button", name: "按钮" },
|
|
366
294
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
367
295
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -388,6 +316,7 @@ const Ge = {
|
|
|
388
316
|
tabs: { type: "tabs", name: "标签页" },
|
|
389
317
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
390
318
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮" },
|
|
319
|
+
"drawer-toolbar-item": { type: "drawer-toolbar-item", name: "抽屉工具栏按钮" },
|
|
391
320
|
"html-template": { type: "html-template", name: "模板容器" },
|
|
392
321
|
"time-picker": { type: "time-picker", name: "时间选择" },
|
|
393
322
|
section: { type: "section", name: "分组面板" },
|
|
@@ -400,6 +329,7 @@ const Ge = {
|
|
|
400
329
|
"page-header": { type: "page-header", name: "页头" },
|
|
401
330
|
"page-footer": { type: "page-footer", name: "页脚" },
|
|
402
331
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏" },
|
|
332
|
+
"drawer-toolbar": { type: "drawer-toolbar", name: "抽屉工具栏" },
|
|
403
333
|
fieldset: { type: "fieldset", name: "分组" },
|
|
404
334
|
"query-solution": { type: "query-solution", name: "筛选方案" },
|
|
405
335
|
drawer: { type: "drawer", name: "抽屉" },
|
|
@@ -412,26 +342,26 @@ const Ge = {
|
|
|
412
342
|
"discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
|
|
413
343
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
414
344
|
comment: { type: "comment", name: "评论区" },
|
|
415
|
-
"rich-text-editor": { type: "rich-text-editor", name: "
|
|
345
|
+
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
416
346
|
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
417
|
-
},
|
|
418
|
-
convertFrom: (e, t,
|
|
419
|
-
var
|
|
420
|
-
const
|
|
421
|
-
return ((
|
|
347
|
+
}, it = {
|
|
348
|
+
convertFrom: (e, t, o) => {
|
|
349
|
+
var g;
|
|
350
|
+
const r = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
351
|
+
return ((g = nt[r]) == null ? void 0 : g.name) || r;
|
|
422
352
|
}
|
|
423
|
-
},
|
|
424
|
-
convertTo: (e, t,
|
|
353
|
+
}, at = {
|
|
354
|
+
convertTo: (e, t, o, r) => {
|
|
425
355
|
e[t] = e[t];
|
|
426
356
|
},
|
|
427
|
-
convertFrom: (e, t,
|
|
428
|
-
},
|
|
429
|
-
convertTo: (e, t,
|
|
430
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] =
|
|
431
|
-
[t]:
|
|
357
|
+
convertFrom: (e, t, o) => e.editor ? o.getRealEditorType(e.editor.type) : ""
|
|
358
|
+
}, st = {
|
|
359
|
+
convertTo: (e, t, o, r) => {
|
|
360
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = o : e.formatter = {
|
|
361
|
+
[t]: o
|
|
432
362
|
});
|
|
433
363
|
},
|
|
434
|
-
convertFrom: (e, t,
|
|
364
|
+
convertFrom: (e, t, o) => {
|
|
435
365
|
if (e.formatter) {
|
|
436
366
|
if (t === "trueText")
|
|
437
367
|
return e.formatter.trueText;
|
|
@@ -456,11 +386,11 @@ const Ge = {
|
|
|
456
386
|
}
|
|
457
387
|
return "none";
|
|
458
388
|
}
|
|
459
|
-
},
|
|
460
|
-
convertTo: (e, t,
|
|
461
|
-
e.command ? e.command[t] =
|
|
462
|
-
[t]:
|
|
463
|
-
}, t === "enableType" &&
|
|
389
|
+
}, lt = {
|
|
390
|
+
convertTo: (e, t, o, r) => {
|
|
391
|
+
e.command ? e.command[t] = o : e.command = {
|
|
392
|
+
[t]: o
|
|
393
|
+
}, t === "enableType" && o === "default" && (e.command.enable = !0, e.command.commands = [
|
|
464
394
|
{
|
|
465
395
|
text: "编辑",
|
|
466
396
|
type: "primary",
|
|
@@ -471,45 +401,59 @@ const Ge = {
|
|
|
471
401
|
type: "danger",
|
|
472
402
|
command: "remove"
|
|
473
403
|
}
|
|
474
|
-
]), t === "enableType" &&
|
|
404
|
+
]), t === "enableType" && o === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
475
405
|
{
|
|
476
406
|
value: "add",
|
|
477
|
-
text:
|
|
407
|
+
text: {
|
|
408
|
+
en: "add",
|
|
409
|
+
"zh-CHS": "增加",
|
|
410
|
+
"zh-CHT": "增加"
|
|
411
|
+
},
|
|
478
412
|
type: "link"
|
|
479
413
|
},
|
|
480
414
|
{
|
|
481
415
|
value: "edit",
|
|
482
|
-
text:
|
|
416
|
+
text: {
|
|
417
|
+
en: "edit",
|
|
418
|
+
"zh-CHS": "编辑",
|
|
419
|
+
"zh-CHT": "編輯"
|
|
420
|
+
},
|
|
483
421
|
type: "danger"
|
|
484
422
|
},
|
|
485
423
|
{
|
|
486
424
|
value: "remove",
|
|
487
|
-
text:
|
|
425
|
+
text: {
|
|
426
|
+
en: "remove",
|
|
427
|
+
"zh-CHS": "删除",
|
|
428
|
+
"zh-CHT": "刪除"
|
|
429
|
+
},
|
|
488
430
|
type: "remove"
|
|
489
431
|
}
|
|
490
|
-
]), t === "enableType" &&
|
|
432
|
+
]), t === "enableType" && o === "unable" && (e.command.enable = !1);
|
|
491
433
|
},
|
|
492
|
-
convertFrom: (e, t,
|
|
493
|
-
var
|
|
434
|
+
convertFrom: (e, t, o) => {
|
|
435
|
+
var r, g;
|
|
494
436
|
if (e.command) {
|
|
495
437
|
if (t === "enableType") {
|
|
496
|
-
const k = (
|
|
438
|
+
const k = (g = (r = e.command) == null ? void 0 : r.commands) == null ? void 0 : g.find((T) => T.command === "edit" && T.type === "primary");
|
|
497
439
|
return e.command.enable ? k ? "default" : "custom" : "unable";
|
|
498
440
|
}
|
|
499
441
|
if (t === "commands")
|
|
500
442
|
return e.command.enableType === "custom" ? e.command.commands : [];
|
|
501
443
|
if (t === "formatter")
|
|
502
444
|
return e.command.formatter;
|
|
445
|
+
if (t === "count")
|
|
446
|
+
return e.command.count;
|
|
503
447
|
}
|
|
504
448
|
return "";
|
|
505
449
|
}
|
|
506
|
-
},
|
|
507
|
-
convertTo: (e, t,
|
|
508
|
-
e.column ? e.column[t] =
|
|
509
|
-
[t]:
|
|
510
|
-
}, t === "fitColumns" &&
|
|
450
|
+
}, ct = {
|
|
451
|
+
convertTo: (e, t, o, r) => {
|
|
452
|
+
e.column ? e.column[t] = o : e.column = {
|
|
453
|
+
[t]: o
|
|
454
|
+
}, t === "fitColumns" && o && (e.column.fitMode || (e.column.fitMode = "average"));
|
|
511
455
|
},
|
|
512
|
-
convertFrom: (e, t,
|
|
456
|
+
convertFrom: (e, t, o) => {
|
|
513
457
|
if (e.column) {
|
|
514
458
|
if (t === "fitColumns")
|
|
515
459
|
return e.column.fitColumns;
|
|
@@ -518,27 +462,27 @@ const Ge = {
|
|
|
518
462
|
}
|
|
519
463
|
return "";
|
|
520
464
|
}
|
|
521
|
-
},
|
|
522
|
-
convertTo: (e, t,
|
|
523
|
-
e.summary ? e.summary[t] =
|
|
524
|
-
[t]:
|
|
525
|
-
}, t === "enable" &&
|
|
526
|
-
enable:
|
|
465
|
+
}, ut = {
|
|
466
|
+
convertTo: (e, t, o, r) => {
|
|
467
|
+
e.summary ? e.summary[t] = o : e.summary = {
|
|
468
|
+
[t]: o
|
|
469
|
+
}, t === "enable" && o && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
|
|
470
|
+
enable: o,
|
|
527
471
|
groupFields: []
|
|
528
472
|
});
|
|
529
473
|
},
|
|
530
|
-
convertFrom: (e, t,
|
|
531
|
-
},
|
|
532
|
-
convertTo: (e, t,
|
|
533
|
-
e.group ? e.group[t] =
|
|
534
|
-
[t]:
|
|
535
|
-
}, t === "enable" &&
|
|
536
|
-
enable:
|
|
474
|
+
convertFrom: (e, t, o) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
|
|
475
|
+
}, dt = {
|
|
476
|
+
convertTo: (e, t, o, r) => {
|
|
477
|
+
e.group ? e.group[t] = o : e.group = {
|
|
478
|
+
[t]: o
|
|
479
|
+
}, t === "enable" && o && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
|
|
480
|
+
enable: o,
|
|
537
481
|
groupFields: [],
|
|
538
482
|
showSummary: !1
|
|
539
483
|
});
|
|
540
484
|
},
|
|
541
|
-
convertFrom: (e, t,
|
|
485
|
+
convertFrom: (e, t, o) => {
|
|
542
486
|
if (e.group) {
|
|
543
487
|
if (t === "enable")
|
|
544
488
|
return e.group.enable;
|
|
@@ -546,76 +490,76 @@ const Ge = {
|
|
|
546
490
|
return e.group.showSummary;
|
|
547
491
|
}
|
|
548
492
|
}
|
|
549
|
-
},
|
|
493
|
+
}, ft = {
|
|
550
494
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
551
|
-
convertTo: (e, t,
|
|
552
|
-
if (
|
|
553
|
-
const
|
|
554
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
495
|
+
convertTo: (e, t, o) => {
|
|
496
|
+
if (o && o.length > 0) {
|
|
497
|
+
const r = o[0];
|
|
498
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
|
|
555
499
|
}
|
|
556
500
|
}
|
|
557
|
-
},
|
|
558
|
-
convertTo: (e, t,
|
|
559
|
-
e.pagination || (e.pagination = {}), e.pagination[t] =
|
|
501
|
+
}, pt = {
|
|
502
|
+
convertTo: (e, t, o, r) => {
|
|
503
|
+
e.pagination || (e.pagination = {}), e.pagination[t] = o;
|
|
560
504
|
},
|
|
561
|
-
convertFrom: (e, t,
|
|
562
|
-
},
|
|
563
|
-
convertTo: (e, t,
|
|
564
|
-
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] =
|
|
505
|
+
convertFrom: (e, t, o) => e.pagination ? e.pagination[t] : e[t]
|
|
506
|
+
}, mt = {
|
|
507
|
+
convertTo: (e, t, o, r) => {
|
|
508
|
+
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = o;
|
|
565
509
|
},
|
|
566
|
-
convertFrom: (e, t,
|
|
567
|
-
},
|
|
568
|
-
convertTo: (e, t,
|
|
569
|
-
e.selection || (e.selection = {}), e.selection[t] =
|
|
510
|
+
convertFrom: (e, t, o) => e.rowNumber ? e.rowNumber[t] : e[t]
|
|
511
|
+
}, bt = {
|
|
512
|
+
convertTo: (e, t, o, r) => {
|
|
513
|
+
e.selection || (e.selection = {}), e.selection[t] = o;
|
|
570
514
|
},
|
|
571
|
-
convertFrom: (e, t,
|
|
572
|
-
var
|
|
573
|
-
return t === "showCheckbox" ? (
|
|
515
|
+
convertFrom: (e, t, o) => {
|
|
516
|
+
var r, g;
|
|
517
|
+
return t === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (g = e.selection) == null ? void 0 : g.showCheckbox : e.selection ? e.selection[t] : e[t];
|
|
574
518
|
}
|
|
575
|
-
},
|
|
576
|
-
convertFrom: (e, t,
|
|
577
|
-
},
|
|
519
|
+
}, gt = {
|
|
520
|
+
convertFrom: (e, t, o) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
521
|
+
}, vt = {
|
|
578
522
|
convertFrom: (e, t) => e[t] || "",
|
|
579
|
-
convertTo: (e, t,
|
|
580
|
-
e[t] =
|
|
523
|
+
convertTo: (e, t, o) => {
|
|
524
|
+
e[t] = o;
|
|
581
525
|
}
|
|
582
|
-
},
|
|
583
|
-
convertTo: (e, t,
|
|
584
|
-
e.size || (e.size = {}), e.size[t] =
|
|
526
|
+
}, yt = {
|
|
527
|
+
convertTo: (e, t, o, r) => {
|
|
528
|
+
e.size || (e.size = {}), e.size[t] = o;
|
|
585
529
|
},
|
|
586
|
-
convertFrom: (e, t,
|
|
587
|
-
},
|
|
588
|
-
convertFrom: (e, t,
|
|
589
|
-
var
|
|
590
|
-
return (
|
|
530
|
+
convertFrom: (e, t, o) => e.size ? e.size[t] : e[t]
|
|
531
|
+
}, ht = {
|
|
532
|
+
convertFrom: (e, t, o) => {
|
|
533
|
+
var r, g;
|
|
534
|
+
return (r = e.formatter) != null && r.data && t === "formatterEnumData" && !e.formatterEnumData ? (g = e.formatter) == null ? void 0 : g.data : e.formatterEnumData;
|
|
591
535
|
}
|
|
592
|
-
},
|
|
593
|
-
convertTo: (e, t,
|
|
594
|
-
e.sort || (e.sort = {}), e.sort[t] =
|
|
536
|
+
}, wt = {
|
|
537
|
+
convertTo: (e, t, o, r) => {
|
|
538
|
+
e.sort || (e.sort = {}), e.sort[t] = o;
|
|
595
539
|
},
|
|
596
|
-
convertFrom: (e, t,
|
|
597
|
-
var
|
|
540
|
+
convertFrom: (e, t, o) => {
|
|
541
|
+
var r, g;
|
|
598
542
|
if (t === "mode")
|
|
599
|
-
return ((
|
|
543
|
+
return ((r = e.sort) == null ? void 0 : r.mode) || "client";
|
|
600
544
|
if (t === "multiSort")
|
|
601
|
-
return !!((
|
|
545
|
+
return !!((g = e.sort) != null && g.multiSort);
|
|
602
546
|
}
|
|
603
|
-
},
|
|
604
|
-
convertTo: (e, t,
|
|
605
|
-
e.filter || (e.filter = {}), e.filter[t] =
|
|
547
|
+
}, Ct = {
|
|
548
|
+
convertTo: (e, t, o, r) => {
|
|
549
|
+
e.filter || (e.filter = {}), e.filter[t] = o;
|
|
606
550
|
},
|
|
607
|
-
convertFrom: (e, t,
|
|
608
|
-
var
|
|
551
|
+
convertFrom: (e, t, o) => {
|
|
552
|
+
var r;
|
|
609
553
|
if (t === "mode")
|
|
610
|
-
return ((
|
|
554
|
+
return ((r = e.filter) == null ? void 0 : r.mode) || "client";
|
|
611
555
|
}
|
|
612
|
-
},
|
|
613
|
-
convertTo: (e, t,
|
|
614
|
-
e.rowOption ? e.rowOption[t] =
|
|
615
|
-
[t]:
|
|
556
|
+
}, Tt = {
|
|
557
|
+
convertTo: (e, t, o, r) => {
|
|
558
|
+
e.rowOption ? e.rowOption[t] = o : e.rowOption = {
|
|
559
|
+
[t]: o
|
|
616
560
|
};
|
|
617
561
|
},
|
|
618
|
-
convertFrom: (e, t,
|
|
562
|
+
convertFrom: (e, t, o) => {
|
|
619
563
|
if (e.rowOption) {
|
|
620
564
|
if (t === "customRowStyle")
|
|
621
565
|
return e.rowOption.customRowStyle;
|
|
@@ -624,44 +568,44 @@ const Ge = {
|
|
|
624
568
|
}
|
|
625
569
|
return "";
|
|
626
570
|
}
|
|
627
|
-
},
|
|
628
|
-
convertTo: (e, t,
|
|
629
|
-
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] =
|
|
571
|
+
}, kt = {
|
|
572
|
+
convertTo: (e, t, o, r) => {
|
|
573
|
+
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = o, t === "columnTemplateType" && o === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
630
574
|
<span class="f-pretend-link f-cursor-pointer"
|
|
631
575
|
@click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
|
|
632
576
|
{{rowData.${e.field}}}
|
|
633
577
|
</span>` : e.columnTemplate = `
|
|
634
578
|
<span class="f-pretend-link f-cursor-pointer">
|
|
635
579
|
{{rowData.${e.field}}}
|
|
636
|
-
</span>`), t === "columnTemplateType" &&
|
|
580
|
+
</span>`), t === "columnTemplateType" && o === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && o === "custom" && (e.columnTemplate = ""));
|
|
637
581
|
},
|
|
638
|
-
convertFrom: (e, t,
|
|
582
|
+
convertFrom: (e, t, o) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
639
583
|
};
|
|
640
|
-
function ce(e, t,
|
|
641
|
-
const
|
|
642
|
-
["/converter/appearance.converter",
|
|
643
|
-
["/converter/buttons.converter",
|
|
644
|
-
["/converter/property-editor.converter",
|
|
645
|
-
["/converter/items-count.converter",
|
|
646
|
-
["/converter/type.converter",
|
|
647
|
-
["/converter/change-editor.converter",
|
|
648
|
-
["/converter/change-formatter.converter",
|
|
649
|
-
["/converter/column-command.converter",
|
|
650
|
-
["/converter/column-option.converter",
|
|
651
|
-
["/converter/summary.converter",
|
|
652
|
-
["/converter/group.converter",
|
|
653
|
-
["/converter/form-group-label.converter",
|
|
654
|
-
["/converter/field-selector.converter",
|
|
655
|
-
["/converter/pagination.converter",
|
|
656
|
-
["/converter/row-number.converter",
|
|
657
|
-
["/converter/grid-selection.converter",
|
|
658
|
-
["/converter/size.converter",
|
|
659
|
-
["/converter/change-formatter-enum.converter",
|
|
660
|
-
["/converter/grid-sort.converter",
|
|
661
|
-
["/converter/grid-filter.converter",
|
|
662
|
-
["/converter/row-option.converter",
|
|
663
|
-
["/converter/change-formatter-type.converter",
|
|
664
|
-
]),
|
|
584
|
+
function ce(e, t, o) {
|
|
585
|
+
const r = /* @__PURE__ */ new Map([
|
|
586
|
+
["/converter/appearance.converter", tt],
|
|
587
|
+
["/converter/buttons.converter", ot],
|
|
588
|
+
["/converter/property-editor.converter", rt],
|
|
589
|
+
["/converter/items-count.converter", gt],
|
|
590
|
+
["/converter/type.converter", it],
|
|
591
|
+
["/converter/change-editor.converter", at],
|
|
592
|
+
["/converter/change-formatter.converter", st],
|
|
593
|
+
["/converter/column-command.converter", lt],
|
|
594
|
+
["/converter/column-option.converter", ct],
|
|
595
|
+
["/converter/summary.converter", ut],
|
|
596
|
+
["/converter/group.converter", dt],
|
|
597
|
+
["/converter/form-group-label.converter", vt],
|
|
598
|
+
["/converter/field-selector.converter", ft],
|
|
599
|
+
["/converter/pagination.converter", pt],
|
|
600
|
+
["/converter/row-number.converter", mt],
|
|
601
|
+
["/converter/grid-selection.converter", bt],
|
|
602
|
+
["/converter/size.converter", yt],
|
|
603
|
+
["/converter/change-formatter-enum.converter", ht],
|
|
604
|
+
["/converter/grid-sort.converter", wt],
|
|
605
|
+
["/converter/grid-filter.converter", Ct],
|
|
606
|
+
["/converter/row-option.converter", Tt],
|
|
607
|
+
["/converter/change-formatter-type.converter", kt]
|
|
608
|
+
]), g = /* @__PURE__ */ new Map([
|
|
665
609
|
["string", { type: "input-group", enableClear: !1 }],
|
|
666
610
|
["boolean", {
|
|
667
611
|
type: "combo-list",
|
|
@@ -685,124 +629,201 @@ function ce(e, t, r) {
|
|
|
685
629
|
["array", { type: "button-edit" }],
|
|
686
630
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
687
631
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
688
|
-
]), k =
|
|
689
|
-
function
|
|
690
|
-
return () => k.parseValueSchema(i,
|
|
632
|
+
]), k = et();
|
|
633
|
+
function T(i, n) {
|
|
634
|
+
return () => k.parseValueSchema(i, n);
|
|
691
635
|
}
|
|
692
|
-
function
|
|
693
|
-
return i.includes("visible") &&
|
|
636
|
+
function m(i, n, l) {
|
|
637
|
+
return i.includes("visible") && n.visible !== void 0 ? typeof n.visible == "boolean" ? () => !!n.visible : n.visible === void 0 ? !0 : T(n.visible, l) : () => !0;
|
|
694
638
|
}
|
|
695
|
-
function
|
|
696
|
-
return i.includes("readonly") &&
|
|
639
|
+
function x(i, n, l) {
|
|
640
|
+
return i.includes("readonly") && n.readonly !== void 0 ? typeof n.readonly == "boolean" ? () => !!n.readonly : T(n.readonly, l) : () => !1;
|
|
697
641
|
}
|
|
698
|
-
function
|
|
699
|
-
const
|
|
700
|
-
return typeof
|
|
642
|
+
function f(i, n) {
|
|
643
|
+
const l = i.$converter || n;
|
|
644
|
+
return typeof l == "string" && l && r.has(l) ? r.get(l) || null : l || null;
|
|
701
645
|
}
|
|
702
|
-
function
|
|
703
|
-
return Object.keys(i).map((
|
|
704
|
-
const
|
|
705
|
-
|
|
706
|
-
const
|
|
707
|
-
let
|
|
708
|
-
const
|
|
646
|
+
function v(i, n, l, u, h, S = "", $ = "") {
|
|
647
|
+
return Object.keys(i).map((a) => {
|
|
648
|
+
const y = M(1), R = a, w = i[a], d = Object.keys(w), B = w.title, E = w.type, N = g.get(E) || { type: "input-group", enableClear: !1 }, O = w.editor ? Object.assign({}, N, w.editor) : Object.assign({}, N), L = m(d, w, n), A = x(d, w, n);
|
|
649
|
+
O.readonly = O.readonly === void 0 ? A() : O.readonly;
|
|
650
|
+
const V = w.type === "cascade" ? v(w.properties, n, l, u, h, S, $) : [], q = !0;
|
|
651
|
+
let C = f(w, $);
|
|
652
|
+
const P = D({
|
|
709
653
|
get() {
|
|
710
|
-
if (
|
|
711
|
-
if (["class", "style"].find((
|
|
712
|
-
return
|
|
713
|
-
const H =
|
|
714
|
-
return Object.prototype.hasOwnProperty.call(
|
|
654
|
+
if (y.value) {
|
|
655
|
+
if (["class", "style"].find((ke) => ke === R) && !C && (C = r.get("/converter/appearance.converter") || null), C && C.convertFrom)
|
|
656
|
+
return C.convertFrom(l, a, h, S);
|
|
657
|
+
const H = l[a];
|
|
658
|
+
return Object.prototype.hasOwnProperty.call(w, "defaultValue") && (H === void 0 || typeof H == "string" && H === "") ? w.type === "boolean" ? w.defaultValue : w.defaultValue || "" : H;
|
|
715
659
|
}
|
|
716
660
|
return null;
|
|
717
661
|
},
|
|
718
662
|
set(H) {
|
|
719
|
-
|
|
663
|
+
y.value += 1, C && C.convertTo ? (C.convertTo(u, a, H, h, S), C.convertTo(l, a, H, h, S)) : (u[a] = H, l[a] = H);
|
|
720
664
|
}
|
|
721
|
-
}), { refreshPanelAfterChanged:
|
|
722
|
-
return
|
|
665
|
+
}), { refreshPanelAfterChanged: I, description: j, isExpand: Ce, parentPropertyID: Te } = w, X = { propertyID: R, propertyName: B, propertyType: E, propertyValue: P, editor: O, visible: L, readonly: A, cascadeConfig: V, hideCascadeTitle: q, refreshPanelAfterChanged: I, description: j, isExpand: Ce, parentPropertyID: Te };
|
|
666
|
+
return n[R] = X, X;
|
|
723
667
|
});
|
|
724
668
|
}
|
|
725
|
-
function
|
|
726
|
-
const
|
|
727
|
-
return
|
|
728
|
-
const
|
|
729
|
-
return { categoryId:
|
|
669
|
+
function s(i, n, l = {}) {
|
|
670
|
+
const u = {}, h = e[i];
|
|
671
|
+
return h && h.categories ? Object.keys(h.categories).map(($) => {
|
|
672
|
+
const F = h.categories[$], a = F == null ? void 0 : F.title, y = v(F.properties || {}, u, {}, l, n);
|
|
673
|
+
return { categoryId: $, categoryName: a, properties: y };
|
|
730
674
|
}) : [];
|
|
731
675
|
}
|
|
732
|
-
function
|
|
733
|
-
const
|
|
734
|
-
if (
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
|
|
676
|
+
function c(i, n, l, u, h = "") {
|
|
677
|
+
const S = n.$ref.schema, $ = n.$ref.converter, F = l[S], a = F.type, y = o(F), R = {}, w = e[a];
|
|
678
|
+
if (w && w.categories) {
|
|
679
|
+
const d = w.categories[i], B = d == null ? void 0 : d.title;
|
|
680
|
+
$ && Object.keys(d.properties).forEach((O) => {
|
|
681
|
+
d.properties[O].$converter = $;
|
|
738
682
|
});
|
|
739
|
-
const
|
|
740
|
-
return { categoryId: i, categoryName:
|
|
683
|
+
const E = (d == null ? void 0 : d.properties) || {}, N = v(E, R, y, F, u, h);
|
|
684
|
+
return { categoryId: i, categoryName: B, properties: N };
|
|
741
685
|
}
|
|
742
686
|
return { categoryId: i, categoryName: "", properties: [] };
|
|
743
687
|
}
|
|
744
|
-
function
|
|
745
|
-
const
|
|
746
|
-
let
|
|
747
|
-
if (
|
|
748
|
-
const
|
|
749
|
-
return Object.keys(
|
|
750
|
-
const d =
|
|
688
|
+
function b(i, n, l, u, h) {
|
|
689
|
+
const S = i.type, $ = o(i), F = {};
|
|
690
|
+
let a = h || e[S];
|
|
691
|
+
if (!(a && Object.keys(a).length > 0) && l && l.getPropConfig && (a = l.getPropConfig(u)), a && a.categories) {
|
|
692
|
+
const R = [];
|
|
693
|
+
return Object.keys(a.categories).map((w) => {
|
|
694
|
+
const d = a.categories[w];
|
|
751
695
|
if (d.$ref) {
|
|
752
|
-
|
|
696
|
+
R.push(c(w, d, i, n, u));
|
|
753
697
|
return;
|
|
754
698
|
}
|
|
755
|
-
const
|
|
756
|
-
|
|
757
|
-
}),
|
|
699
|
+
const B = d == null ? void 0 : d.title, E = d == null ? void 0 : d.tabId, N = d == null ? void 0 : d.tabName, O = d == null ? void 0 : d.hide, L = d == null ? void 0 : d.hideTitle, A = v(d.properties || {}, F, $, i, n, u, d.$converter), { setPropertyRelates: V } = d, q = d == null ? void 0 : d.parentPropertyID;
|
|
700
|
+
R.push({ categoryId: w, categoryName: B, tabId: E, tabName: N, hide: O, properties: A, hideTitle: L, setPropertyRelates: V, parentPropertyID: q });
|
|
701
|
+
}), R;
|
|
758
702
|
}
|
|
759
703
|
return [];
|
|
760
704
|
}
|
|
761
705
|
return {
|
|
762
|
-
getPropertyConfigBySchema:
|
|
763
|
-
getPropertyConfigByType:
|
|
764
|
-
propertyConverterMap:
|
|
706
|
+
getPropertyConfigBySchema: b,
|
|
707
|
+
getPropertyConfigByType: s,
|
|
708
|
+
propertyConverterMap: r
|
|
765
709
|
};
|
|
766
710
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
711
|
+
function ue(e, t) {
|
|
712
|
+
let o;
|
|
713
|
+
function r(s) {
|
|
714
|
+
const { properties: c, title: b, ignore: i } = s, n = i && Array.isArray(i), l = Object.keys(c).reduce((u, h) => ((!n || !i.find((S) => S === h)) && (u[h] = c[h].type === "object" && c[h].properties ? r(c[h]) : K(c[h].default)), u), {});
|
|
715
|
+
if (b && (!n || !i.find((u) => u === "id"))) {
|
|
716
|
+
const u = b.toLowerCase().replace(/-/g, "_");
|
|
717
|
+
l.id = `${u}_${Math.random().toString().slice(2, 6)}`;
|
|
718
|
+
}
|
|
719
|
+
return l;
|
|
720
|
+
}
|
|
721
|
+
function g(s) {
|
|
722
|
+
const { properties: c, title: b, required: i } = s;
|
|
723
|
+
if (i && Array.isArray(i)) {
|
|
724
|
+
const n = i.reduce((l, u) => (l[u] = c[u].type === "object" && c[u].properties ? r(c[u]) : K(c[u].default), l), {});
|
|
725
|
+
if (b && i.find((l) => l === "id")) {
|
|
726
|
+
const l = b.toLowerCase().replace(/-/g, "_");
|
|
727
|
+
n.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
728
|
+
}
|
|
729
|
+
return n;
|
|
730
|
+
}
|
|
731
|
+
return {
|
|
732
|
+
type: b
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
function k(s, c = {}, b) {
|
|
736
|
+
const i = e[s];
|
|
737
|
+
if (i) {
|
|
738
|
+
let n = g(i);
|
|
739
|
+
const l = t[s];
|
|
740
|
+
return n = l ? l({ getSchemaByType: k }, n, c, b) : n, o != null && o.appendIdentifyForNewControl && o.appendIdentifyForNewControl(n), n;
|
|
741
|
+
}
|
|
742
|
+
return null;
|
|
743
|
+
}
|
|
744
|
+
function T(s, c) {
|
|
745
|
+
const b = r(c);
|
|
746
|
+
return Object.keys(b).reduce((i, n) => (Object.prototype.hasOwnProperty.call(s, n) && (i[n] && Y(i[n]) && Y(s[n] || !s[n]) ? Object.assign(i[n], s[n] || {}) : i[n] = s[n]), i), b), b;
|
|
747
|
+
}
|
|
748
|
+
function m(s, c) {
|
|
749
|
+
return Object.keys(s).filter((i) => s[i] != null).reduce((i, n) => {
|
|
750
|
+
if (c.has(n)) {
|
|
751
|
+
const l = c.get(n);
|
|
752
|
+
if (typeof l == "string")
|
|
753
|
+
i[l] = s[n];
|
|
754
|
+
else {
|
|
755
|
+
const u = l(n, s[n], s);
|
|
756
|
+
Object.assign(i, u);
|
|
757
|
+
}
|
|
758
|
+
} else
|
|
759
|
+
i[n] = s[n];
|
|
760
|
+
return i;
|
|
761
|
+
}, {});
|
|
762
|
+
}
|
|
763
|
+
function x(s, c, b = /* @__PURE__ */ new Map()) {
|
|
764
|
+
const i = T(s, c);
|
|
765
|
+
return m(i, b);
|
|
766
|
+
}
|
|
767
|
+
function f(s) {
|
|
768
|
+
var b;
|
|
769
|
+
const c = s.type;
|
|
770
|
+
if (c) {
|
|
771
|
+
const i = e[c];
|
|
772
|
+
if (!i)
|
|
773
|
+
return s;
|
|
774
|
+
const n = T(s, i), l = ((b = s.editor) == null ? void 0 : b.type) || "";
|
|
775
|
+
if (l) {
|
|
776
|
+
const u = e[l], h = T(s.editor, u);
|
|
777
|
+
n.editor = h;
|
|
778
|
+
}
|
|
779
|
+
return n;
|
|
780
|
+
}
|
|
781
|
+
return s;
|
|
782
|
+
}
|
|
783
|
+
function v(s) {
|
|
784
|
+
o = s;
|
|
785
|
+
}
|
|
786
|
+
return { getSchemaByType: k, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: x, mappingSchemaToProps: m, setDesignerContext: v };
|
|
787
|
+
}
|
|
788
|
+
const de = {}, fe = {}, { resolveSchemaWithDefaultValue: St } = ue(de, fe), pe = {}, me = {};
|
|
789
|
+
ce(pe, me, St);
|
|
790
|
+
const be = {}, ge = {}, { resolveSchemaWithDefaultValue: xt, resolveSchemaToProps: Ft, mappingSchemaToProps: Pt } = ue(be, ge), ve = {}, ye = {};
|
|
791
|
+
ce(ve, ye, xt);
|
|
792
|
+
function $t(e, t, o = /* @__PURE__ */ new Map(), r = (T, m, x, f) => m, g = {}, k = (T) => T) {
|
|
793
|
+
return be[t.title] = t, ge[t.title] = r, ve[t.title] = g, ye[t.title] = k, de[t.title] = t, fe[t.title] = r, pe[t.title] = g, me[t.title] = k, (T = {}, m = !0) => {
|
|
794
|
+
if (!m)
|
|
795
|
+
return Pt(T, o);
|
|
796
|
+
const x = Ft(T, t, o), f = Object.keys(e).reduce((v, s) => (v[s] = e[s].default, v), {});
|
|
797
|
+
return Object.assign(f, x);
|
|
777
798
|
};
|
|
778
799
|
}
|
|
779
|
-
function
|
|
800
|
+
function Rt(e, t) {
|
|
780
801
|
if (!e || e.length < 1)
|
|
781
802
|
return null;
|
|
782
|
-
for (const
|
|
783
|
-
if (
|
|
784
|
-
return
|
|
785
|
-
if (
|
|
786
|
-
const
|
|
787
|
-
if (
|
|
788
|
-
return
|
|
803
|
+
for (const o of e) {
|
|
804
|
+
if (o.id === t)
|
|
805
|
+
return o;
|
|
806
|
+
if (o.children) {
|
|
807
|
+
const r = o.children.find((g) => g.id === t);
|
|
808
|
+
if (r)
|
|
809
|
+
return r;
|
|
789
810
|
}
|
|
790
811
|
}
|
|
791
812
|
return null;
|
|
792
813
|
}
|
|
793
|
-
function
|
|
794
|
-
function e(t,
|
|
795
|
-
const { footerToolbar:
|
|
814
|
+
function Dt() {
|
|
815
|
+
function e(t, o) {
|
|
816
|
+
const { footerToolbar: r, headerToolbar: g } = t, k = ((r == null ? void 0 : r.buttons) || []).concat((g == null ? void 0 : g.buttons) || []);
|
|
796
817
|
if (!k || k.length < 1)
|
|
797
818
|
return null;
|
|
798
|
-
const [
|
|
799
|
-
return
|
|
819
|
+
const [T, m] = o.payloads, x = Rt(k, m);
|
|
820
|
+
return x ? x.onClick || x.click : null;
|
|
800
821
|
}
|
|
801
822
|
return {
|
|
802
823
|
resolve: e
|
|
803
824
|
};
|
|
804
825
|
}
|
|
805
|
-
const
|
|
826
|
+
const Q = {
|
|
806
827
|
id: { type: String, required: !0 },
|
|
807
828
|
/** 背景色 */
|
|
808
829
|
backgroundColor: { type: String, default: "#fff" },
|
|
@@ -811,7 +832,8 @@ const X = {
|
|
|
811
832
|
*/
|
|
812
833
|
beforeClose: { type: Function, default: () => !0 },
|
|
813
834
|
/**
|
|
814
|
-
* 自定义抽屉样式
|
|
835
|
+
* 自定义抽屉样式
|
|
836
|
+
* @deprecated 请使用 customClass
|
|
815
837
|
*/
|
|
816
838
|
class: { type: String, default: "" },
|
|
817
839
|
/**
|
|
@@ -851,176 +873,211 @@ const X = {
|
|
|
851
873
|
footerTemplate: { type: Object, default: null },
|
|
852
874
|
footerToolbar: { type: Object, default: {} },
|
|
853
875
|
footerHeight: { type: Number, default: 60 },
|
|
854
|
-
buttons: { type: Array, default: [] }
|
|
876
|
+
buttons: { type: Array, default: [] },
|
|
877
|
+
customClass: { type: String, default: "" },
|
|
878
|
+
customStyle: { type: String, default: "" }
|
|
855
879
|
};
|
|
856
|
-
|
|
857
|
-
const
|
|
858
|
-
function
|
|
880
|
+
$t(Q, ae, ie, se);
|
|
881
|
+
const Mt = Dt();
|
|
882
|
+
function Et() {
|
|
859
883
|
return { drawerLocale: {
|
|
860
884
|
cancel: ee.getLocaleValue("drawer.cancel") || "取消",
|
|
861
885
|
confirm: ee.getLocaleValue("drawer.confirm") || "确定"
|
|
862
886
|
} };
|
|
863
887
|
}
|
|
864
|
-
const
|
|
888
|
+
const jt = /* @__PURE__ */ oe({
|
|
865
889
|
name: "FDrawer",
|
|
866
|
-
props:
|
|
890
|
+
props: Q,
|
|
867
891
|
emits: ["afterClose", "update:modelValue", "click"],
|
|
868
892
|
setup(e, t) {
|
|
869
|
-
|
|
870
|
-
const
|
|
871
|
-
"f-drawer": !0,
|
|
893
|
+
Et();
|
|
894
|
+
const o = M(e.modelValue), r = M(e.buttons), g = D(() => ({
|
|
895
|
+
"f-utils-absolute-all f-drawer": !0,
|
|
872
896
|
// 在某个DOM内部打开抽屉
|
|
873
897
|
"f-drawer-inline": typeof e.host == "string" ? e.host !== "body" : document.querySelector(e.host) !== document.body
|
|
874
|
-
})), k =
|
|
898
|
+
})), k = D(() => ({
|
|
875
899
|
opacity: e.transparent ? 0 : 1
|
|
876
|
-
})),
|
|
877
|
-
const
|
|
900
|
+
})), T = D(() => {
|
|
901
|
+
const a = {};
|
|
878
902
|
return e.maskClass && e.maskClass.split(" ").forEach((y) => {
|
|
879
|
-
|
|
903
|
+
a[y] = !0;
|
|
880
904
|
}), {
|
|
881
|
-
"f-drawer-mask": !0,
|
|
882
|
-
...
|
|
905
|
+
"f-drawer-mask f-utils-absolute-all": !0,
|
|
906
|
+
...a
|
|
883
907
|
};
|
|
884
|
-
}),
|
|
885
|
-
const
|
|
886
|
-
return e.
|
|
887
|
-
|
|
908
|
+
}), m = D(() => {
|
|
909
|
+
const a = {};
|
|
910
|
+
return e.customClass && e.customClass.split(" ").forEach((y) => {
|
|
911
|
+
a[y] = !0;
|
|
888
912
|
}), {
|
|
889
913
|
"f-drawer-wrapper": !0,
|
|
890
914
|
[`f-drawer-wrapper-${e.position}`]: !0,
|
|
891
|
-
...
|
|
915
|
+
...a
|
|
916
|
+
};
|
|
917
|
+
}), x = D(() => {
|
|
918
|
+
const a = e.width;
|
|
919
|
+
return typeof a == "string" ? a : typeof a == "number" ? `${a}px` : "20%";
|
|
920
|
+
}), f = D(() => {
|
|
921
|
+
const a = e.height;
|
|
922
|
+
return typeof a == "string" ? a : typeof a == "number" ? `${a}px` : "20%";
|
|
923
|
+
}), v = D(() => {
|
|
924
|
+
let a = "-6px 0";
|
|
925
|
+
switch (e.position) {
|
|
926
|
+
case "left":
|
|
927
|
+
a = "6px 0";
|
|
928
|
+
break;
|
|
929
|
+
case "right":
|
|
930
|
+
a = "-6px 0";
|
|
931
|
+
break;
|
|
932
|
+
case "top":
|
|
933
|
+
a = "0 6px";
|
|
934
|
+
break;
|
|
935
|
+
case "bottom":
|
|
936
|
+
a = "0 -6px";
|
|
937
|
+
break;
|
|
938
|
+
}
|
|
939
|
+
const y = {
|
|
940
|
+
width: x.value,
|
|
941
|
+
height: f.value,
|
|
942
|
+
backgroundColor: e.backgroundColor,
|
|
943
|
+
maxWidth: "100%"
|
|
892
944
|
};
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
|
|
896
|
-
}), u = R(() => {
|
|
897
|
-
const l = e.height;
|
|
898
|
-
return typeof l == "string" ? l : typeof l == "number" ? `${l}px` : "20%";
|
|
899
|
-
}), g = R(() => `f-drawer-${e.position}`), n = (l) => {
|
|
945
|
+
return e.transparent && (y.boxShadow = `${a} 8px 0 rgba(31, 35, 41, .1)`), Se(y, e == null ? void 0 : e.customStyle);
|
|
946
|
+
}), s = D(() => `f-drawer-${e.position}`), c = (a) => {
|
|
900
947
|
Promise.resolve().then(() => {
|
|
901
948
|
var y;
|
|
902
949
|
return (y = e.beforeClose) == null ? void 0 : y.call(e);
|
|
903
950
|
}).then((y) => {
|
|
904
|
-
y && (
|
|
951
|
+
y && (o.value = !1, t.emit("update:modelValue", o.value), t.emit("afterClose"));
|
|
905
952
|
});
|
|
906
953
|
};
|
|
907
|
-
|
|
908
|
-
|
|
954
|
+
_(() => e.modelValue, (a, y) => {
|
|
955
|
+
a !== y && (o.value = a);
|
|
909
956
|
});
|
|
910
|
-
const
|
|
911
|
-
t.emit("click",
|
|
912
|
-
},
|
|
957
|
+
const b = (a, y) => {
|
|
958
|
+
t.emit("click", a, y);
|
|
959
|
+
}, i = {
|
|
913
960
|
close: () => {
|
|
914
|
-
|
|
961
|
+
o.value = !1;
|
|
915
962
|
}
|
|
916
963
|
};
|
|
917
|
-
async function
|
|
918
|
-
|
|
964
|
+
async function n(a, y) {
|
|
965
|
+
a.handle && await a.handle(y, i) && t.emit("closed", y);
|
|
919
966
|
}
|
|
920
|
-
const
|
|
967
|
+
const l = (a, y) => p(je, {
|
|
921
968
|
class: y,
|
|
922
969
|
alignment: "right",
|
|
923
|
-
items:
|
|
924
|
-
onClick:
|
|
970
|
+
items: a,
|
|
971
|
+
onClick: b
|
|
925
972
|
}, null);
|
|
926
|
-
function
|
|
927
|
-
var
|
|
928
|
-
if ((y = (
|
|
929
|
-
const
|
|
973
|
+
function u() {
|
|
974
|
+
var a, y, R, w;
|
|
975
|
+
if ((y = (a = e.footerToolbar) == null ? void 0 : a.buttons) != null && y.length && (e.footerToolbar.visible === void 0 || e.footerToolbar.visible)) {
|
|
976
|
+
const d = {
|
|
930
977
|
"f-utils-fill": !0
|
|
931
978
|
};
|
|
932
|
-
return (
|
|
979
|
+
return (w = (R = e.footerToolbar) == null ? void 0 : R.appearance) != null && w.class && (d[e.footerToolbar.appearance.class] = !0), l(e.footerToolbar.buttons, d);
|
|
933
980
|
}
|
|
934
|
-
return
|
|
935
|
-
const
|
|
936
|
-
return
|
|
937
|
-
id:
|
|
981
|
+
return r.value && !!r.value.length && r.value.map((d) => {
|
|
982
|
+
const B = M(d.disabled);
|
|
983
|
+
return p("button", {
|
|
984
|
+
id: d.id,
|
|
938
985
|
type: "button",
|
|
939
|
-
disabled:
|
|
940
|
-
class:
|
|
941
|
-
onClick: (
|
|
942
|
-
|
|
986
|
+
disabled: B.value,
|
|
987
|
+
class: d.class + (d.iconClass ? " btn-icontext" : ""),
|
|
988
|
+
onClick: (E) => {
|
|
989
|
+
n(d, E);
|
|
943
990
|
}
|
|
944
|
-
}, [!!
|
|
945
|
-
class:
|
|
946
|
-
}, null),
|
|
991
|
+
}, [!!d.iconClass && p("i", {
|
|
992
|
+
class: d.iconClass
|
|
993
|
+
}, null), d.text]);
|
|
947
994
|
});
|
|
948
995
|
}
|
|
949
|
-
function
|
|
950
|
-
return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
996
|
+
function h() {
|
|
997
|
+
return e.footerTemplate && typeof e.footerTemplate == "function" ? e.footerTemplate() : t.slots.footerTemplate ? t.slots.footerTemplate() : u();
|
|
951
998
|
}
|
|
952
|
-
function
|
|
953
|
-
var y,
|
|
954
|
-
const
|
|
999
|
+
function S() {
|
|
1000
|
+
var y, R;
|
|
1001
|
+
const a = {
|
|
955
1002
|
"f-utils-fill": !0
|
|
956
1003
|
};
|
|
957
|
-
return (
|
|
958
|
-
class: "f-drawer-title"
|
|
959
|
-
|
|
1004
|
+
return (R = (y = e.headerToolbar) == null ? void 0 : y.appearance) != null && R.class && (a[e.headerToolbar.appearance.class] = !0), e.headerTemplate && typeof e.headerTemplate == "function" ? e.headerTemplate() : t.slots.headerTemplate ? t.slots.headerTemplate() : p(re, null, [p("div", {
|
|
1005
|
+
class: "f-drawer-title",
|
|
1006
|
+
title: e.title
|
|
1007
|
+
}, [e.title]), e.headerToolbar && (e.headerToolbar.visible === void 0 || e.headerToolbar.visible) && p("div", {
|
|
960
1008
|
class: "f-utils-fill-flex-row mx-2 col-7"
|
|
961
|
-
}, [
|
|
1009
|
+
}, [l(e.headerToolbar.buttons || [], a)]), e.showClose && p("div", {
|
|
962
1010
|
class: "f-drawer-close"
|
|
963
|
-
}, [
|
|
1011
|
+
}, [p("span", {
|
|
964
1012
|
class: "f-icon f-icon-close",
|
|
965
|
-
onClick: W((
|
|
966
|
-
|
|
1013
|
+
onClick: W((w) => {
|
|
1014
|
+
c();
|
|
967
1015
|
}, ["stop"])
|
|
968
1016
|
}, null)])]);
|
|
969
1017
|
}
|
|
970
|
-
|
|
1018
|
+
const $ = M({});
|
|
1019
|
+
function F() {
|
|
1020
|
+
const a = xe();
|
|
1021
|
+
$.value = {
|
|
1022
|
+
zIndex: a < 1e3 ? 1e3 : a
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
return Pe(() => {
|
|
1026
|
+
o.value && F();
|
|
1027
|
+
}), t.expose({
|
|
971
1028
|
open: () => {
|
|
972
|
-
|
|
1029
|
+
o.value = !0;
|
|
973
1030
|
},
|
|
974
1031
|
close: () => {
|
|
975
|
-
|
|
1032
|
+
c();
|
|
976
1033
|
}
|
|
977
|
-
}), () =>
|
|
1034
|
+
}), () => p($e, {
|
|
978
1035
|
to: e.host
|
|
979
1036
|
}, {
|
|
980
|
-
default: () => [
|
|
981
|
-
class:
|
|
982
|
-
id: e.id
|
|
983
|
-
|
|
1037
|
+
default: () => [p("div", {
|
|
1038
|
+
class: g.value,
|
|
1039
|
+
id: e.id,
|
|
1040
|
+
style: $.value
|
|
1041
|
+
}, [p(Z, {
|
|
984
1042
|
name: "f-drawer-mask",
|
|
985
1043
|
appear: !0
|
|
986
1044
|
}, {
|
|
987
|
-
default: () => [
|
|
988
|
-
class:
|
|
1045
|
+
default: () => [o.value && p("div", {
|
|
1046
|
+
class: T.value,
|
|
989
1047
|
style: k.value,
|
|
990
|
-
onClick: W((
|
|
991
|
-
e.allowClickMaskToClose &&
|
|
1048
|
+
onClick: W((a) => {
|
|
1049
|
+
e.allowClickMaskToClose && c();
|
|
992
1050
|
}, ["stop"])
|
|
993
1051
|
}, null)]
|
|
994
|
-
}),
|
|
995
|
-
name:
|
|
1052
|
+
}), p(Z, {
|
|
1053
|
+
name: s.value
|
|
996
1054
|
}, {
|
|
997
|
-
default: () =>
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
}, [b()])])]), [[Se, r.value]])]
|
|
1055
|
+
default: () => {
|
|
1056
|
+
var a, y;
|
|
1057
|
+
return [Re(p("div", {
|
|
1058
|
+
class: m.value,
|
|
1059
|
+
style: v.value
|
|
1060
|
+
}, [p("div", {
|
|
1061
|
+
class: "f-drawer-container"
|
|
1062
|
+
}, [e.showHeader && p("div", {
|
|
1063
|
+
class: "f-drawer-header align-items-center"
|
|
1064
|
+
}, [S()]), p("div", {
|
|
1065
|
+
class: "f-drawer-body f-utils-fill",
|
|
1066
|
+
style: "overflow: auto;"
|
|
1067
|
+
}, [(y = (a = t.slots).default) == null ? void 0 : y.call(a)]), e.showFooter && p("div", {
|
|
1068
|
+
class: "f-drawer-footer px-2",
|
|
1069
|
+
style: {
|
|
1070
|
+
height: e.footerHeight + "px"
|
|
1071
|
+
}
|
|
1072
|
+
}, [h()])])]), [[De, o.value]])];
|
|
1073
|
+
}
|
|
1017
1074
|
})])]
|
|
1018
1075
|
});
|
|
1019
1076
|
}
|
|
1020
1077
|
});
|
|
1021
|
-
class
|
|
1022
|
-
constructor(t,
|
|
1023
|
-
super(t,
|
|
1078
|
+
class Ot extends ze {
|
|
1079
|
+
constructor(t, o) {
|
|
1080
|
+
super(t, o);
|
|
1024
1081
|
}
|
|
1025
1082
|
getPropertyConfig(t) {
|
|
1026
1083
|
return this.propertyConfig.categories.basic = this.getBasicPropConfig(t), this.propertyConfig.categories.appearance = this.getAppearanceConfig(t), this.getBehaviorConfig(), this.propertyConfig.categories.header = this.headerPropertyConfig(t), this.propertyConfig.categories.footer = this.footerPropertyConfig(t), this.propertyConfig.categories.eventsEditor = this.eventPropertyConfig(t), this.propertyConfig;
|
|
@@ -1066,11 +1123,11 @@ class kt extends Ne {
|
|
|
1066
1123
|
visible: t.showHeader !== !1 && t.customHeader === !0
|
|
1067
1124
|
}
|
|
1068
1125
|
},
|
|
1069
|
-
setPropertyRelates: (
|
|
1070
|
-
if (
|
|
1071
|
-
switch (
|
|
1126
|
+
setPropertyRelates: (o, r) => {
|
|
1127
|
+
if (o)
|
|
1128
|
+
switch (o && o.propertyID) {
|
|
1072
1129
|
case "title": {
|
|
1073
|
-
|
|
1130
|
+
o.needRefreshControlTree = !0;
|
|
1074
1131
|
break;
|
|
1075
1132
|
}
|
|
1076
1133
|
}
|
|
@@ -1120,7 +1177,7 @@ class kt extends Ne {
|
|
|
1120
1177
|
footerTemplate: {
|
|
1121
1178
|
title: "页脚模板",
|
|
1122
1179
|
type: "string",
|
|
1123
|
-
description: "
|
|
1180
|
+
description: "设置页脚HTML模板,替换页脚工具栏",
|
|
1124
1181
|
editor: {
|
|
1125
1182
|
type: "code-editor",
|
|
1126
1183
|
language: "html"
|
|
@@ -1128,15 +1185,15 @@ class kt extends Ne {
|
|
|
1128
1185
|
visible: t.footerContentType === "html" && t.showFooter !== !1
|
|
1129
1186
|
}
|
|
1130
1187
|
},
|
|
1131
|
-
setPropertyRelates: (
|
|
1132
|
-
if (
|
|
1133
|
-
switch (
|
|
1188
|
+
setPropertyRelates: (o, r) => {
|
|
1189
|
+
if (o)
|
|
1190
|
+
switch (o && o.propertyID) {
|
|
1134
1191
|
case "showFooter": {
|
|
1135
|
-
|
|
1192
|
+
r.footerToolbar = { id: r.id + "_footer-toolbar", type: "drawer-toolbar", buttons: [] }, r.footerTemplate = "", r.footerContentType = "toolbar";
|
|
1136
1193
|
break;
|
|
1137
1194
|
}
|
|
1138
1195
|
case "footerContentType": {
|
|
1139
|
-
this.resetFooterContent(
|
|
1196
|
+
this.resetFooterContent(r, o.propertyValue);
|
|
1140
1197
|
break;
|
|
1141
1198
|
}
|
|
1142
1199
|
}
|
|
@@ -1189,257 +1246,449 @@ class kt extends Ne {
|
|
|
1189
1246
|
}
|
|
1190
1247
|
};
|
|
1191
1248
|
}
|
|
1192
|
-
resetFooterContent(t,
|
|
1193
|
-
switch (
|
|
1249
|
+
resetFooterContent(t, o = "toolbar") {
|
|
1250
|
+
switch (o) {
|
|
1194
1251
|
case "toolbar": {
|
|
1195
1252
|
t.footerTemplate = "";
|
|
1196
1253
|
break;
|
|
1197
1254
|
}
|
|
1198
1255
|
case "html": {
|
|
1199
|
-
t.footerToolbar = { id: t.id + "_footer-toolbar", type: "
|
|
1256
|
+
t.footerToolbar = { id: t.id + "_footer-toolbar", type: "drawer-toolbar", buttons: [] };
|
|
1200
1257
|
break;
|
|
1201
1258
|
}
|
|
1202
1259
|
}
|
|
1203
1260
|
}
|
|
1204
1261
|
eventPropertyConfig(t) {
|
|
1205
|
-
const
|
|
1262
|
+
const o = this, r = [
|
|
1206
1263
|
{
|
|
1207
1264
|
label: "beforeClose",
|
|
1208
1265
|
name: "关闭前事件"
|
|
1209
1266
|
}
|
|
1210
|
-
],
|
|
1267
|
+
], g = o.eventsEditorUtils.formProperties(t, o.viewModelId, r);
|
|
1211
1268
|
return {
|
|
1212
1269
|
title: "事件",
|
|
1213
1270
|
hideTitle: !0,
|
|
1214
|
-
properties:
|
|
1271
|
+
properties: o.createBaseEventProperty(g),
|
|
1215
1272
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1216
1273
|
refreshPanelAfterChanged: !0,
|
|
1217
1274
|
tabId: "commands",
|
|
1218
1275
|
tabName: "交互",
|
|
1219
|
-
setPropertyRelates(
|
|
1220
|
-
const
|
|
1221
|
-
delete
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1276
|
+
setPropertyRelates(T, m) {
|
|
1277
|
+
const x = T.propertyValue;
|
|
1278
|
+
delete m[o.viewModelId], x && o.eventsEditorUtils.saveRelatedParameters(m, o.viewModelId, x.events, x);
|
|
1279
|
+
const f = o.designViewModelUtils.getDgViewModel(o.viewModelId);
|
|
1280
|
+
f && o.designViewModelField && f.changeField(o.designViewModelField.id, { valueChanging: m.fieldValueChanging, valueChanged: m.fieldValueChanged });
|
|
1224
1281
|
}
|
|
1225
1282
|
};
|
|
1226
1283
|
}
|
|
1227
1284
|
}
|
|
1228
|
-
function
|
|
1229
|
-
const
|
|
1230
|
-
function
|
|
1231
|
-
if (!
|
|
1285
|
+
function It(e, t, o) {
|
|
1286
|
+
const r = new Ie();
|
|
1287
|
+
function g(n) {
|
|
1288
|
+
if (!He().basalDragulaRuleForContainer(n, o))
|
|
1232
1289
|
return !1;
|
|
1233
|
-
const { canAccept:
|
|
1234
|
-
return
|
|
1290
|
+
const { canAccept: u } = r.getTemplateRule(e, o);
|
|
1291
|
+
return u;
|
|
1235
1292
|
}
|
|
1236
1293
|
function k() {
|
|
1237
1294
|
return !1;
|
|
1238
1295
|
}
|
|
1239
|
-
function
|
|
1296
|
+
function T() {
|
|
1240
1297
|
return !1;
|
|
1241
1298
|
}
|
|
1242
|
-
function
|
|
1299
|
+
function m() {
|
|
1243
1300
|
return !0;
|
|
1244
1301
|
}
|
|
1245
|
-
function
|
|
1302
|
+
function x() {
|
|
1246
1303
|
return "position: initial !important;border: none !important;left: 0;right: 0;padding: 0;";
|
|
1247
1304
|
}
|
|
1248
|
-
function
|
|
1249
|
-
const
|
|
1250
|
-
return
|
|
1305
|
+
function f(n) {
|
|
1306
|
+
const l = new Ot(n, o), { schema: u } = e;
|
|
1307
|
+
return l.getPropertyConfig(u);
|
|
1251
1308
|
}
|
|
1252
|
-
function
|
|
1309
|
+
function v(n) {
|
|
1253
1310
|
return t;
|
|
1254
1311
|
}
|
|
1255
|
-
|
|
1312
|
+
function s() {
|
|
1313
|
+
e.designerItemElementRef.value && Me(() => {
|
|
1314
|
+
Ne(t.value);
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
function c(n) {
|
|
1318
|
+
if (!n)
|
|
1319
|
+
return;
|
|
1320
|
+
const { changeObject: l } = n;
|
|
1321
|
+
l && ["width", "position"].includes(l.propertyID) && s();
|
|
1322
|
+
}
|
|
1323
|
+
function b(n, l, u) {
|
|
1324
|
+
var h;
|
|
1325
|
+
(h = n == null ? void 0 : n.buttons) != null && h.length && n.buttons.map((S) => {
|
|
1326
|
+
var $;
|
|
1327
|
+
u.set(S.id, {
|
|
1328
|
+
componentTitle: S.text,
|
|
1329
|
+
parentPathName: `${l} > ${S.text}`
|
|
1330
|
+
}), ($ = S.children) != null && $.length && S.children.map((F) => {
|
|
1331
|
+
u.set(F.id, {
|
|
1332
|
+
componentTitle: F.text,
|
|
1333
|
+
parentPathName: `${l} > ${F.text}`
|
|
1334
|
+
});
|
|
1335
|
+
});
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
function i() {
|
|
1339
|
+
if (e && o) {
|
|
1340
|
+
const { formSchemaUtils: n } = o, l = n.getControlBasicInfoMap(), { schema: u } = e, h = u.title || Be.drawer.name;
|
|
1341
|
+
l.set(u.id, {
|
|
1342
|
+
componentTitle: h,
|
|
1343
|
+
parentPathName: h
|
|
1344
|
+
}), b(u.headerToolbar, h, l), b(u.footerToolbar, h, l);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
return {
|
|
1348
|
+
canAccepts: g,
|
|
1349
|
+
checkCanDeleteComponent: k,
|
|
1350
|
+
checkCanMoveComponent: T,
|
|
1351
|
+
hideNestedPaddingInDesginerView: m,
|
|
1352
|
+
getStyles: x,
|
|
1353
|
+
getPropsConfig: f,
|
|
1354
|
+
getDraggableDesignItemElement: v,
|
|
1355
|
+
onPropertyChanged: c,
|
|
1356
|
+
setComponentBasicInfoMap: i
|
|
1357
|
+
};
|
|
1256
1358
|
}
|
|
1257
|
-
const
|
|
1359
|
+
const he = Object.assign({}, Q, {
|
|
1258
1360
|
componentId: { type: String, default: "" },
|
|
1259
1361
|
footerContentType: { type: String, default: "toolbar" },
|
|
1260
|
-
customHeader: { type: Boolean, default: !1 }
|
|
1261
|
-
|
|
1362
|
+
customHeader: { type: Boolean, default: !1 },
|
|
1363
|
+
showWrapperInCanvas: { type: Boolean, default: !1 }
|
|
1364
|
+
}), Bt = "https://json-schema.org/draft/2020-12/schema", Ht = "https://farris-design.gitee.io/section-toolbar-item.schema.json", Nt = "drawer-toolbar-item", At = "A Farris Toolbar Item Component", Lt = "object", Vt = {
|
|
1365
|
+
id: {
|
|
1366
|
+
description: "The unique identifier for a Response Toolbar",
|
|
1367
|
+
type: "string"
|
|
1368
|
+
},
|
|
1369
|
+
type: {
|
|
1370
|
+
description: "The type string of Response Toolbar",
|
|
1371
|
+
type: "string",
|
|
1372
|
+
default: "drawer-toolbar-item"
|
|
1373
|
+
},
|
|
1374
|
+
appearance: {
|
|
1375
|
+
description: "",
|
|
1376
|
+
type: "object",
|
|
1377
|
+
properties: {
|
|
1378
|
+
class: {
|
|
1379
|
+
type: "string"
|
|
1380
|
+
},
|
|
1381
|
+
style: {
|
|
1382
|
+
type: "string"
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
default: {}
|
|
1386
|
+
},
|
|
1387
|
+
text: {
|
|
1388
|
+
description: "按钮",
|
|
1389
|
+
type: "string",
|
|
1390
|
+
default: "按钮"
|
|
1391
|
+
},
|
|
1392
|
+
icon: {
|
|
1393
|
+
description: "图标",
|
|
1394
|
+
type: "string",
|
|
1395
|
+
default: ""
|
|
1396
|
+
},
|
|
1397
|
+
disabled: {
|
|
1398
|
+
description: "禁用",
|
|
1399
|
+
type: "boolean",
|
|
1400
|
+
default: !1
|
|
1401
|
+
},
|
|
1402
|
+
visible: {
|
|
1403
|
+
description: "是否可见",
|
|
1404
|
+
type: "boolean",
|
|
1405
|
+
default: !0
|
|
1406
|
+
},
|
|
1407
|
+
onClick: {
|
|
1408
|
+
description: "点击事件",
|
|
1409
|
+
type: "string",
|
|
1410
|
+
default: ""
|
|
1411
|
+
},
|
|
1412
|
+
tipsEnable: {
|
|
1413
|
+
description: "",
|
|
1414
|
+
type: "boolean",
|
|
1415
|
+
default: !1
|
|
1416
|
+
},
|
|
1417
|
+
tipsText: {
|
|
1418
|
+
description: "",
|
|
1419
|
+
type: "string",
|
|
1420
|
+
default: ""
|
|
1421
|
+
},
|
|
1422
|
+
dropdownClass: {
|
|
1423
|
+
description: "处于下拉菜单时的样式",
|
|
1424
|
+
type: "string",
|
|
1425
|
+
default: ""
|
|
1426
|
+
},
|
|
1427
|
+
split: {
|
|
1428
|
+
description: "",
|
|
1429
|
+
type: "boolean",
|
|
1430
|
+
default: !1
|
|
1431
|
+
}
|
|
1432
|
+
}, qt = [
|
|
1433
|
+
"id",
|
|
1434
|
+
"type",
|
|
1435
|
+
"text"
|
|
1436
|
+
], zt = {
|
|
1437
|
+
onClick: "点击事件"
|
|
1438
|
+
}, _t = {
|
|
1439
|
+
$schema: Bt,
|
|
1440
|
+
$id: Ht,
|
|
1441
|
+
title: Nt,
|
|
1442
|
+
description: At,
|
|
1443
|
+
type: Lt,
|
|
1444
|
+
properties: Vt,
|
|
1445
|
+
required: qt,
|
|
1446
|
+
events: zt
|
|
1447
|
+
}, Wt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/section-toolbar.schema.json", Gt = "drawer-toolbar", Zt = "A Farris Toolbar Component", Jt = "object", Qt = {
|
|
1448
|
+
id: {
|
|
1449
|
+
description: "The unique identifier for a Section Toolbar",
|
|
1450
|
+
type: "string"
|
|
1451
|
+
},
|
|
1452
|
+
type: {
|
|
1453
|
+
description: "The type string of Section Toolbar",
|
|
1454
|
+
type: "string",
|
|
1455
|
+
default: "drawer-toolbar"
|
|
1456
|
+
},
|
|
1457
|
+
appearance: {
|
|
1458
|
+
description: "",
|
|
1459
|
+
type: "object",
|
|
1460
|
+
properties: {
|
|
1461
|
+
class: {
|
|
1462
|
+
type: "string",
|
|
1463
|
+
default: ""
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
alignment: {
|
|
1468
|
+
description: "The alignment of Section Toolbar Button.",
|
|
1469
|
+
type: "string",
|
|
1470
|
+
default: "right"
|
|
1471
|
+
},
|
|
1472
|
+
buttons: {
|
|
1473
|
+
description: "The items of Section Toolbar.",
|
|
1474
|
+
type: "array",
|
|
1475
|
+
default: []
|
|
1476
|
+
},
|
|
1477
|
+
buttonSize: {
|
|
1478
|
+
type: "string",
|
|
1479
|
+
default: ""
|
|
1480
|
+
},
|
|
1481
|
+
visible: {
|
|
1482
|
+
description: "",
|
|
1483
|
+
type: "boolean",
|
|
1484
|
+
default: !0
|
|
1485
|
+
}
|
|
1486
|
+
}, Xt = [
|
|
1487
|
+
"id",
|
|
1488
|
+
"type",
|
|
1489
|
+
"buttons"
|
|
1490
|
+
], Yt = {
|
|
1491
|
+
onClick: "点击事件"
|
|
1492
|
+
}, Kt = {
|
|
1493
|
+
$schema: Wt,
|
|
1494
|
+
$id: Ut,
|
|
1495
|
+
title: Gt,
|
|
1496
|
+
description: Zt,
|
|
1497
|
+
type: Jt,
|
|
1498
|
+
properties: Qt,
|
|
1499
|
+
required: Xt,
|
|
1500
|
+
events: Yt
|
|
1501
|
+
}, eo = Object.assign({}, Ve), to = J(eo, _t, void 0, le), oo = Object.assign({}, Oe, {
|
|
1502
|
+
componentId: { type: String, default: "" }
|
|
1503
|
+
}), z = J(
|
|
1504
|
+
oo,
|
|
1505
|
+
Kt,
|
|
1506
|
+
We,
|
|
1507
|
+
le
|
|
1508
|
+
), U = /* @__PURE__ */ oe({
|
|
1262
1509
|
name: "FDrawerDesign",
|
|
1263
|
-
props:
|
|
1510
|
+
props: he,
|
|
1264
1511
|
setup(e, t) {
|
|
1265
|
-
const
|
|
1266
|
-
|
|
1267
|
-
id:
|
|
1268
|
-
type: "
|
|
1512
|
+
const o = M(), r = M(), g = e.id + "_footer-toolbar", k = e.id + "_header-toolbar", T = G("designer-host-service"), m = G("design-item-context"), x = It(m, r, T), f = Ae(o, m, x);
|
|
1513
|
+
m.schema.footerToolbar = m.schema.footerToolbar || {
|
|
1514
|
+
id: g,
|
|
1515
|
+
type: "drawer-toolbar",
|
|
1269
1516
|
buttons: []
|
|
1270
1517
|
};
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1273
|
-
|
|
1518
|
+
const v = M(m.schema.footerToolbar), s = M(z(v.value));
|
|
1519
|
+
_(() => m.schema.footerToolbar, () => {
|
|
1520
|
+
v.value = m.schema.footerToolbar, s.value = z(v.value);
|
|
1274
1521
|
}, {
|
|
1275
1522
|
deep: !0
|
|
1276
1523
|
});
|
|
1277
|
-
const
|
|
1278
|
-
|
|
1524
|
+
const c = G("design-item-context"), b = D(() => [...s.value.items]);
|
|
1525
|
+
m.schema.headerToolbar = m.schema.headerToolbar || {
|
|
1279
1526
|
id: k,
|
|
1280
|
-
type: "
|
|
1527
|
+
type: "drawer-toolbar",
|
|
1281
1528
|
buttons: []
|
|
1282
1529
|
};
|
|
1283
|
-
const i =
|
|
1284
|
-
|
|
1285
|
-
i.value =
|
|
1530
|
+
const i = M(m.schema.headerToolbar), n = M(z(i.value));
|
|
1531
|
+
_(() => m.schema.headerToolbar, () => {
|
|
1532
|
+
i.value = m.schema.headerToolbar, n.value = z(i.value);
|
|
1286
1533
|
}, {
|
|
1287
1534
|
deep: !0
|
|
1288
1535
|
});
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
}), t.expose(
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
|
|
1536
|
+
const l = D(() => [...n.value.items]);
|
|
1537
|
+
Ee(() => {
|
|
1538
|
+
o.value.componentInstance = f;
|
|
1539
|
+
}), t.expose(f.value);
|
|
1540
|
+
const u = M(e.modelValue || m.schema.showWrapperInCanvas);
|
|
1541
|
+
_(() => e.modelValue, () => {
|
|
1542
|
+
u.value = e.modelValue;
|
|
1296
1543
|
});
|
|
1297
|
-
const
|
|
1298
|
-
const
|
|
1299
|
-
return
|
|
1300
|
-
}),
|
|
1301
|
-
const
|
|
1544
|
+
const h = D(() => {
|
|
1545
|
+
const C = ["f-drawer-wrapper", `f-drawer-wrapper-${e.position}`, e.wrapperClass];
|
|
1546
|
+
return u.value || C.push("d-none"), C;
|
|
1547
|
+
}), S = D(() => {
|
|
1548
|
+
const C = e.width, P = e.height, I = typeof C == "string" ? C : typeof C == "number" ? `${C}px` : "20%", j = typeof P == "string" ? P : typeof P == "number" ? `${P}px` : "20%";
|
|
1302
1549
|
return {
|
|
1303
|
-
width:
|
|
1304
|
-
height:
|
|
1305
|
-
backgroundColor: e.backgroundColor
|
|
1550
|
+
width: I,
|
|
1551
|
+
height: j,
|
|
1552
|
+
backgroundColor: e.backgroundColor,
|
|
1553
|
+
maxWidth: "100%"
|
|
1306
1554
|
};
|
|
1307
|
-
}),
|
|
1555
|
+
}), $ = D(() => ["f-drawer-entry", `f-drawer-entry-${e.position}`, e.entryClass]), F = D(() => `f-icon-arrow-chevron-${{
|
|
1308
1556
|
left: "right",
|
|
1309
1557
|
right: "left",
|
|
1310
1558
|
top: "down",
|
|
1311
1559
|
bottom: "up"
|
|
1312
|
-
}[e.position] ?? "right"}`),
|
|
1313
|
-
|
|
1314
|
-
},
|
|
1315
|
-
|
|
1316
|
-
},
|
|
1317
|
-
class:
|
|
1318
|
-
onClick:
|
|
1319
|
-
}, [t.slots.button ? t.slots.button() :
|
|
1560
|
+
}[e.position] ?? "right"}`), a = () => {
|
|
1561
|
+
u.value = !1, m.schema.showWrapperInCanvas = !1;
|
|
1562
|
+
}, y = () => {
|
|
1563
|
+
u.value = !0, m.schema.showWrapperInCanvas = !0;
|
|
1564
|
+
}, R = () => p("div", {
|
|
1565
|
+
class: $.value,
|
|
1566
|
+
onClick: y
|
|
1567
|
+
}, [t.slots.button ? t.slots.button() : p("div", {
|
|
1320
1568
|
class: "f-drawer-entry-icon"
|
|
1321
|
-
}, [
|
|
1322
|
-
class: `f-icon ${
|
|
1323
|
-
}, null)])]),
|
|
1569
|
+
}, [p("span", {
|
|
1570
|
+
class: `f-icon ${F.value}`
|
|
1571
|
+
}, null)])]), w = D(() => ({
|
|
1324
1572
|
opacity: e.transparent ? 0 : 1
|
|
1325
|
-
})),
|
|
1573
|
+
})), d = () => p(Z, {
|
|
1326
1574
|
name: "f-drawer-mask",
|
|
1327
1575
|
appear: !0
|
|
1328
1576
|
}, {
|
|
1329
|
-
default: () => [
|
|
1577
|
+
default: () => [u.value && p("div", {
|
|
1330
1578
|
class: "f-drawer-mask",
|
|
1331
|
-
style:
|
|
1332
|
-
onClick: W(
|
|
1579
|
+
style: w.value,
|
|
1580
|
+
onClick: W(a, ["stop"])
|
|
1333
1581
|
}, null)]
|
|
1334
1582
|
});
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1583
|
+
function B(C, P, I, j) {
|
|
1584
|
+
m && m.setupContext && m.setupContext.emit("selectionChange", C, P, I, j);
|
|
1337
1585
|
}
|
|
1338
|
-
const
|
|
1339
|
-
modelValue:
|
|
1340
|
-
"onUpdate:modelValue": (
|
|
1586
|
+
const E = (C, P, I) => p(Le, {
|
|
1587
|
+
modelValue: I,
|
|
1588
|
+
"onUpdate:modelValue": (j) => I = j,
|
|
1341
1589
|
canAdd: !1,
|
|
1342
1590
|
class: "w-100 position-relative",
|
|
1343
|
-
childType: "
|
|
1591
|
+
childType: "drawer-toolbar-item",
|
|
1344
1592
|
childLabel: "按钮",
|
|
1345
1593
|
contentKey: "buttons",
|
|
1346
|
-
id:
|
|
1594
|
+
id: C,
|
|
1347
1595
|
componentId: e.componentId,
|
|
1348
|
-
onSelectionChange:
|
|
1596
|
+
onSelectionChange: B
|
|
1349
1597
|
}, {
|
|
1350
|
-
default: () => [
|
|
1598
|
+
default: () => [p(ne, {
|
|
1351
1599
|
customClass: "w-100",
|
|
1352
|
-
items:
|
|
1600
|
+
items: P,
|
|
1353
1601
|
componentId: e.componentId
|
|
1354
1602
|
}, null)]
|
|
1355
|
-
}),
|
|
1603
|
+
}), N = () => p("div", {
|
|
1356
1604
|
class: "f-drawer-close"
|
|
1357
|
-
}, [
|
|
1605
|
+
}, [p("span", {
|
|
1358
1606
|
class: "f-icon f-icon-close",
|
|
1359
|
-
onClick: W(
|
|
1360
|
-
}, null)]),
|
|
1607
|
+
onClick: W(a, ["stop"])
|
|
1608
|
+
}, null)]), O = () => e.showHeader ? p("div", {
|
|
1361
1609
|
class: "f-drawer-header align-items-center"
|
|
1362
|
-
}, [e.customHeader ?
|
|
1610
|
+
}, [e.customHeader ? p("div", {
|
|
1363
1611
|
class: "w-100 h-100",
|
|
1364
1612
|
innerHTML: e.headerTemplate
|
|
1365
|
-
}, null) :
|
|
1613
|
+
}, null) : p(re, null, [p("div", {
|
|
1366
1614
|
class: "f-drawer-title"
|
|
1367
|
-
}, [t.slots.title ? t.slots.title() : e.title]),
|
|
1615
|
+
}, [t.slots.title ? t.slots.title() : e.title]), p("div", {
|
|
1368
1616
|
class: "mx-2 col-7"
|
|
1369
|
-
}, [
|
|
1617
|
+
}, [E(k, l.value, i.value)]), p("div", {
|
|
1370
1618
|
class: "f-drawer-header-right"
|
|
1371
|
-
}, [e.showClose &&
|
|
1372
|
-
function
|
|
1373
|
-
|
|
1374
|
-
const
|
|
1375
|
-
if (
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1619
|
+
}, [e.showClose && N()])])]) : null;
|
|
1620
|
+
function L(C) {
|
|
1621
|
+
C && (C.preventDefault(), C.stopPropagation()), f.value.onRemoveComponent(T);
|
|
1622
|
+
const P = c == null ? void 0 : c.parent, I = (j) => j.id === m.schema.id;
|
|
1623
|
+
if (P && P.schema.contents) {
|
|
1624
|
+
const j = P.schema.contents.findIndex(I);
|
|
1625
|
+
P.schema.contents.splice(j, 1), _e.value++, t.emit("selectionChange");
|
|
1378
1626
|
}
|
|
1379
1627
|
}
|
|
1380
|
-
const
|
|
1628
|
+
const A = () => p("div", {
|
|
1381
1629
|
class: "component-btn-group"
|
|
1382
|
-
}, [
|
|
1630
|
+
}, [p("div", null, [p("div", {
|
|
1383
1631
|
class: "btn component-settings-button",
|
|
1384
1632
|
title: "删除",
|
|
1385
|
-
onClick:
|
|
1386
|
-
}, [
|
|
1633
|
+
onClick: L
|
|
1634
|
+
}, [p("i", {
|
|
1387
1635
|
class: "f-icon f-icon-yxs_delete"
|
|
1388
|
-
}, null)])
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1636
|
+
}, null)]), p("div", {
|
|
1637
|
+
class: "btn component-settings-button",
|
|
1638
|
+
title: "关闭抽屉",
|
|
1639
|
+
onClick: a
|
|
1640
|
+
}, [p("i", {
|
|
1641
|
+
class: "f-icon f-icon-close"
|
|
1642
|
+
}, null)])])]), V = () => {
|
|
1643
|
+
var C, P;
|
|
1644
|
+
return p("div", {
|
|
1645
|
+
class: h.value,
|
|
1646
|
+
style: S.value
|
|
1647
|
+
}, [p("div", {
|
|
1648
|
+
class: "f-drawer-container position-relative",
|
|
1649
|
+
ref: r
|
|
1650
|
+
}, [A(), O(), p("div", {
|
|
1651
|
+
class: "f-drawer-body drag-container d-block",
|
|
1652
|
+
"data-dragref": `${m.schema.id}-container`,
|
|
1653
|
+
ref: o,
|
|
1654
|
+
style: "overflow: auto;",
|
|
1655
|
+
id: m.schema.id
|
|
1656
|
+
}, [(P = (C = t.slots).default) == null ? void 0 : P.call(C)]), e.showFooter && p("div", {
|
|
1657
|
+
class: "f-drawer-footer px-2 border-top",
|
|
1658
|
+
style: {
|
|
1659
|
+
height: e.footerHeight + "px"
|
|
1660
|
+
}
|
|
1661
|
+
}, [e.footerContentType === "toolbar" && E(g, b.value, v.value), e.footerContentType === "html" && p("div", {
|
|
1662
|
+
class: "w-100 h-100",
|
|
1663
|
+
innerHTML: e.footerTemplate
|
|
1664
|
+
}, null)])])]);
|
|
1665
|
+
}, q = () => p("div", {
|
|
1417
1666
|
class: "f-drawer f-drawer-inline"
|
|
1418
|
-
}, [
|
|
1419
|
-
return () =>
|
|
1667
|
+
}, [d(), V()]);
|
|
1668
|
+
return () => p("div", null, [q(), R()]);
|
|
1420
1669
|
}
|
|
1421
1670
|
});
|
|
1422
|
-
function
|
|
1423
|
-
function e(t,
|
|
1424
|
-
const
|
|
1425
|
-
return
|
|
1671
|
+
function ro() {
|
|
1672
|
+
function e(t, o) {
|
|
1673
|
+
const r = {};
|
|
1674
|
+
return r.beforeClose = (g) => o.call("beforeClose", t, [t]), r;
|
|
1426
1675
|
}
|
|
1427
1676
|
return {
|
|
1428
1677
|
resolve: e
|
|
1429
1678
|
};
|
|
1430
1679
|
}
|
|
1431
|
-
const
|
|
1432
|
-
|
|
1433
|
-
e.drawer =
|
|
1680
|
+
const we = J(he, ae, ie, se), no = ro();
|
|
1681
|
+
U.register = (e, t, o, r) => {
|
|
1682
|
+
e.drawer = jt, t.drawer = we, r.drawer = { eventHandlerResolver: Mt, callbackResolver: no };
|
|
1434
1683
|
};
|
|
1435
|
-
|
|
1436
|
-
e.drawer =
|
|
1684
|
+
U.registerDesigner = (e, t, o) => {
|
|
1685
|
+
e.drawer = U, t.drawer = we, e["drawer-toolbar-item"] = qe, t["drawer-toolbar-item"] = to, e["drawer-toolbar"] = ne, t["drawer-toolbar"] = z;
|
|
1437
1686
|
};
|
|
1438
|
-
const
|
|
1687
|
+
const go = Fe(U);
|
|
1439
1688
|
export {
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1689
|
+
no as callbackResolver,
|
|
1690
|
+
go as default,
|
|
1691
|
+
Q as drawerProps,
|
|
1692
|
+
Mt as eventHandlerResolver,
|
|
1693
|
+
we as propsResolver
|
|
1445
1694
|
};
|