@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,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { radioCheckboxCommonProps as
|
|
5
|
-
import { resolveAppearance as
|
|
6
|
-
import
|
|
7
|
-
import { computed as
|
|
8
|
-
import { DgControl as
|
|
9
|
-
import { cloneDeep as
|
|
10
|
-
import { LocaleService as
|
|
1
|
+
var vt = Object.defineProperty;
|
|
2
|
+
var gt = (n, t, e) => t in n ? vt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var T = (n, t, e) => gt(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { radioCheckboxCommonProps as yt, FormSchemaEntityField$Type as Be, FormSchemaEntityFieldType$Type as Te, isMobilePhone as bt, getMaxZIndex as Se, useGuid as Ce, withInstall as Ct } from "../../components/common/index.esm.js";
|
|
5
|
+
import { resolveAppearance as wt, createPropsResolver as Pe, getPropsResolverGenerator as Ve } from "../../components/dynamic-resolver/index.esm.js";
|
|
6
|
+
import xt, { radioGroupProps as Oe } from "../../components/radio-group/index.esm.js";
|
|
7
|
+
import { computed as S, nextTick as oe, defineComponent as J, ref as h, inject as ce, onMounted as Z, createVNode as v, Teleport as Re, createApp as we, onUnmounted as pe, Fragment as ae, watch as D, onBeforeMount as Mt, watchEffect as It, Transition as Ne, shallowRef as Et, render as ge, h as Ft, cloneVNode as Bt, mergeProps as xe, withDirectives as ye, vShow as St, onUpdated as kt, onBeforeUnmount as Tt, createTextVNode as ee, reactive as Pt, vModelText as ke } from "vue";
|
|
8
|
+
import { DgControl as b, canvasChanged as re, refreshCanvas as Vt, useDesignerComponent as Ot } from "../../components/designer-canvas/index.esm.js";
|
|
9
|
+
import { cloneDeep as Le, debounce as Rt } from "lodash-es";
|
|
10
|
+
import { LocaleService as ne } from "../../components/locale/index.esm.js";
|
|
11
11
|
import "../../components/property-panel/index.esm.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { FNotifyService as
|
|
16
|
-
const
|
|
17
|
-
...
|
|
12
|
+
import Nt from "../../components/tags/index.esm.js";
|
|
13
|
+
import Lt from "../../components/popover/index.esm.js";
|
|
14
|
+
import zt from "../../components/data-grid/index.esm.js";
|
|
15
|
+
import { FNotifyService as Ht } from "../../components/notify/index.esm.js";
|
|
16
|
+
const At = {
|
|
17
|
+
...yt,
|
|
18
18
|
/**
|
|
19
19
|
* 组件标识
|
|
20
20
|
*/
|
|
@@ -60,8 +60,8 @@ const St = {
|
|
|
60
60
|
*/
|
|
61
61
|
valueField: { type: String, default: "value" }
|
|
62
62
|
};
|
|
63
|
-
function
|
|
64
|
-
const o =
|
|
63
|
+
function $t(n, t, e) {
|
|
64
|
+
const o = S(() => !n.disabled), i = S(() => n.data || n.enumData || n.options || []);
|
|
65
65
|
function l(r) {
|
|
66
66
|
return r[n.valueField];
|
|
67
67
|
}
|
|
@@ -82,7 +82,7 @@ function Tt(n, t, e) {
|
|
|
82
82
|
onClickRadio: s
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ut(n) {
|
|
86
86
|
const { formSchemaUtils: t, formStateMachineUtils: e } = n;
|
|
87
87
|
function o(r, d = "") {
|
|
88
88
|
return {
|
|
@@ -92,7 +92,8 @@ function Pt(n) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
function i(r, d = "") {
|
|
95
|
-
|
|
95
|
+
const c = t.getViewModelById(r);
|
|
96
|
+
return c ? c.states.map((u) => o(u, d)) : [];
|
|
96
97
|
}
|
|
97
98
|
function l(r) {
|
|
98
99
|
const d = t.getRootViewModelId(), c = i(r);
|
|
@@ -109,9 +110,9 @@ function Pt(n) {
|
|
|
109
110
|
}
|
|
110
111
|
return { getVariables: l, getControlName: a, getStateMachines: s };
|
|
111
112
|
}
|
|
112
|
-
class
|
|
113
|
+
class ze {
|
|
113
114
|
constructor(t) {
|
|
114
|
-
|
|
115
|
+
T(this, "sessionVariables", [
|
|
115
116
|
{
|
|
116
117
|
key: "CurrentSysOrgName",
|
|
117
118
|
name: "当前组织Name",
|
|
@@ -148,7 +149,7 @@ class Pe {
|
|
|
148
149
|
description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
|
|
149
150
|
}
|
|
150
151
|
]);
|
|
151
|
-
|
|
152
|
+
T(this, "expressionNames", {
|
|
152
153
|
compute: "计算表达式",
|
|
153
154
|
dependency: "依赖表达式",
|
|
154
155
|
validate: "验证表达式",
|
|
@@ -157,7 +158,7 @@ class Pe {
|
|
|
157
158
|
readonly: "只读表达式",
|
|
158
159
|
required: "必填表达式"
|
|
159
160
|
});
|
|
160
|
-
|
|
161
|
+
T(this, "getExpressionConverter", (t, e) => ({
|
|
161
162
|
convertFrom: (o, i, l, a) => {
|
|
162
163
|
const s = l.getExpressionRuleValue(t, e || i);
|
|
163
164
|
return s && s.value || "";
|
|
@@ -337,8 +338,8 @@ class Pe {
|
|
|
337
338
|
onSubmitModal: (c) => {
|
|
338
339
|
const u = this.updateExpression(t, e, c, a);
|
|
339
340
|
if (i) {
|
|
340
|
-
const
|
|
341
|
-
i(
|
|
341
|
+
const g = this.buildRule(s, c, a);
|
|
342
|
+
i(g);
|
|
342
343
|
}
|
|
343
344
|
return u;
|
|
344
345
|
}
|
|
@@ -376,21 +377,21 @@ class Pe {
|
|
|
376
377
|
};
|
|
377
378
|
}
|
|
378
379
|
}
|
|
379
|
-
class
|
|
380
|
+
class Wt {
|
|
380
381
|
constructor(t, e) {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
382
|
+
T(this, "componentId");
|
|
383
|
+
T(this, "viewModelId");
|
|
384
|
+
T(this, "eventsEditorUtils");
|
|
385
|
+
T(this, "formSchemaUtils");
|
|
386
|
+
T(this, "formMetadataConverter");
|
|
387
|
+
T(this, "designViewModelUtils");
|
|
388
|
+
T(this, "designViewModelField");
|
|
389
|
+
T(this, "controlCreatorUtils");
|
|
390
|
+
T(this, "designerHostService");
|
|
391
|
+
T(this, "designerContext");
|
|
392
|
+
T(this, "schemaService", null);
|
|
393
|
+
T(this, "metadataService", null);
|
|
394
|
+
T(this, "propertyConfig", {
|
|
394
395
|
type: "object",
|
|
395
396
|
categories: {}
|
|
396
397
|
});
|
|
@@ -437,7 +438,7 @@ class Vt {
|
|
|
437
438
|
valueField: "value",
|
|
438
439
|
idField: "value",
|
|
439
440
|
editable: !1,
|
|
440
|
-
data: [{ value: t.type, name:
|
|
441
|
+
data: [{ value: t.type, name: b[t.type] && b[t.type].name }]
|
|
441
442
|
}
|
|
442
443
|
}
|
|
443
444
|
}
|
|
@@ -473,7 +474,7 @@ class Vt {
|
|
|
473
474
|
switch (a && a.propertyID) {
|
|
474
475
|
case "class":
|
|
475
476
|
case "style": {
|
|
476
|
-
|
|
477
|
+
re.value++;
|
|
477
478
|
break;
|
|
478
479
|
}
|
|
479
480
|
}
|
|
@@ -493,26 +494,26 @@ class Vt {
|
|
|
493
494
|
* @returns
|
|
494
495
|
*/
|
|
495
496
|
getPropertyEditorParams(t, e = [], o = "visible", i = {}, l = {}, a = "") {
|
|
496
|
-
const { getVariables: s, getControlName: r, getStateMachines: d } =
|
|
497
|
+
const { getVariables: s, getControlName: r, getStateMachines: d } = Ut(this.designerHostService), c = this.getRealTargetType(t), u = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], g = {
|
|
497
498
|
type: "property-editor",
|
|
498
499
|
propertyTypes: u
|
|
499
500
|
};
|
|
500
501
|
return u.map((m) => {
|
|
501
502
|
switch (m) {
|
|
502
503
|
case "Const":
|
|
503
|
-
Object.assign(
|
|
504
|
+
Object.assign(g, {
|
|
504
505
|
constType: "enum",
|
|
505
506
|
constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
|
|
506
507
|
}, i);
|
|
507
508
|
break;
|
|
508
509
|
case "Expression":
|
|
509
|
-
|
|
510
|
+
g.expressionConfig = this.getExpressionOptions(t, c, a || o);
|
|
510
511
|
break;
|
|
511
512
|
case "StateMachine":
|
|
512
|
-
|
|
513
|
+
g.stateMachines = d();
|
|
513
514
|
break;
|
|
514
515
|
case "Variable":
|
|
515
|
-
Object.assign(
|
|
516
|
+
Object.assign(g, {
|
|
516
517
|
controlName: r(t),
|
|
517
518
|
newVariablePrefix: "is",
|
|
518
519
|
newVariableType: "Boolean",
|
|
@@ -521,10 +522,10 @@ class Vt {
|
|
|
521
522
|
onBeforeOpenVariables: (f) => {
|
|
522
523
|
f.value = s(this.viewModelId);
|
|
523
524
|
}
|
|
524
|
-
}, l), this.designerContext.designerMode === "PC_RTC" && (
|
|
525
|
+
}, l), this.designerContext.designerMode === "PC_RTC" && (g.newVariablePrefix = "ext_" + g.newVariablePrefix);
|
|
525
526
|
break;
|
|
526
527
|
}
|
|
527
|
-
}),
|
|
528
|
+
}), g;
|
|
528
529
|
}
|
|
529
530
|
getVisibleProperty(t, e = "") {
|
|
530
531
|
var l;
|
|
@@ -587,8 +588,8 @@ class Vt {
|
|
|
587
588
|
const o = e && e.parent && e.parent.schema;
|
|
588
589
|
if (!o)
|
|
589
590
|
return;
|
|
590
|
-
const i = o.contents.findIndex((a) => a.id === t), l =
|
|
591
|
-
o.contents.splice(i, 1), o.contents.splice(i, 0, l),
|
|
591
|
+
const i = o.contents.findIndex((a) => a.id === t), l = Le(o.contents[i]);
|
|
592
|
+
o.contents.splice(i, 1), o.contents.splice(i, 0, l), Vt();
|
|
592
593
|
}
|
|
593
594
|
/**
|
|
594
595
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -618,14 +619,14 @@ class Vt {
|
|
|
618
619
|
const e = t.propertyValue;
|
|
619
620
|
if (!((e && e.type) === "Expression" && e.expressionInfo))
|
|
620
621
|
return;
|
|
621
|
-
const { expressionId: l, expressionInfo: a } = e, { targetId: s, targetType: r, expressionType: d, value: c, message: u } = a,
|
|
622
|
-
|
|
623
|
-
const { expressions: m } =
|
|
622
|
+
const { expressionId: l, expressionInfo: a } = e, { targetId: s, targetType: r, expressionType: d, value: c, message: u } = a, g = this.formSchemaUtils.getModule();
|
|
623
|
+
g.expressions = g.expressions || [];
|
|
624
|
+
const { expressions: m } = g;
|
|
624
625
|
let f = m.find((E) => E.target === s);
|
|
625
626
|
f || (f = { target: s, rules: [], targetType: r }, m.push(f));
|
|
626
|
-
const
|
|
627
|
-
if (
|
|
628
|
-
|
|
627
|
+
const C = f.rules.find((E) => E.type === d);
|
|
628
|
+
if (C)
|
|
629
|
+
C.value = c, C.message = u;
|
|
629
630
|
else {
|
|
630
631
|
const E = { id: l, type: d, value: c, message: u };
|
|
631
632
|
f.rules.push(E);
|
|
@@ -646,10 +647,10 @@ class Vt {
|
|
|
646
647
|
!r || !r.rules || (r.rules = r.rules.filter((d) => d.type !== l));
|
|
647
648
|
}
|
|
648
649
|
getExpressionOptions(t, e, o) {
|
|
649
|
-
return new
|
|
650
|
+
return new ze(this.formSchemaUtils).getExpressionOptions(t, e, o);
|
|
650
651
|
}
|
|
651
652
|
getRealTargetType(t) {
|
|
652
|
-
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
|
|
653
|
+
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
|
|
653
654
|
}
|
|
654
655
|
createBaseEventProperty(t) {
|
|
655
656
|
const e = {};
|
|
@@ -671,10 +672,10 @@ const ie = class ie {
|
|
|
671
672
|
*/
|
|
672
673
|
static getEditorTypesByMDataType(t, e = !1, o = "") {
|
|
673
674
|
if (e)
|
|
674
|
-
return [{ key:
|
|
675
|
+
return [{ key: b["language-textbox"].type, value: b["language-textbox"].name }];
|
|
675
676
|
let i = ie.fieldControlTypeMapping[t];
|
|
676
677
|
if (o === "data-grid-column" && (i != null && i.length)) {
|
|
677
|
-
const l = [
|
|
678
|
+
const l = [b["check-group"].type, b["radio-group"].type, b.image.type, b["rich-text-editor"].type];
|
|
678
679
|
i = i.filter((a) => !l.includes(a.key));
|
|
679
680
|
}
|
|
680
681
|
return i;
|
|
@@ -697,139 +698,139 @@ const ie = class ie {
|
|
|
697
698
|
static mappingDomPropAndSchemaProp(t, e) {
|
|
698
699
|
var l;
|
|
699
700
|
const o = (l = t.editor) == null ? void 0 : l.type, i = [];
|
|
700
|
-
return (t.type ===
|
|
701
|
+
return (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && e && e.categoryId && e.categoryId.indexOf("gridFieldEditor") < 0 && i.push({ domField: "title", schemaField: "name" }), i.push({ domField: "label", schemaField: "name" }), i.push({ domField: "editor.required", schemaField: "require" }), i.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === b["input-group"].type || o === b.textarea.type || o === b["number-spinner"].type) && i.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === b["number-spinner"].type && i.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && i.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === b["combo-list"].type || o === b["radio-group"].type) && i.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && i.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === b["date-picker"].type && (i.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), i.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === b["number-spinner"].type && (i.push({ domField: "editor.max", schemaField: "editor.maxValue" }), i.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === b.lookup.type && (i.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), i.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), i.push({ domField: "editor.textField", schemaField: "editor.textField" }), i.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), i.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), i.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), i.push({ domField: "path", schemaField: "bindingPath" }), i.push({ domField: "binding.path", schemaField: "bindingField" }), i.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && i.push({ domField: "field", schemaField: "bindingPath" }), i;
|
|
701
702
|
}
|
|
702
703
|
};
|
|
703
704
|
/**
|
|
704
705
|
* <字段类型,可配置的控件类型列表>的映射
|
|
705
706
|
*/
|
|
706
|
-
|
|
707
|
+
T(ie, "fieldControlTypeMapping", {
|
|
707
708
|
String: [
|
|
708
|
-
{ key:
|
|
709
|
-
{ key:
|
|
710
|
-
{ key:
|
|
711
|
-
{ key:
|
|
712
|
-
{ key:
|
|
713
|
-
{ key:
|
|
714
|
-
{ key:
|
|
715
|
-
{ key:
|
|
716
|
-
{ key:
|
|
717
|
-
{ key:
|
|
718
|
-
{ key:
|
|
709
|
+
{ key: b["input-group"].type, value: b["input-group"].name },
|
|
710
|
+
{ key: b.lookup.type, value: b.lookup.name },
|
|
711
|
+
{ key: b.image.type, value: b.image.name },
|
|
712
|
+
{ key: b["date-picker"].type, value: b["date-picker"].name },
|
|
713
|
+
{ key: b.switch.type, value: b.switch.name },
|
|
714
|
+
{ key: b["check-box"].type, value: b["check-box"].name },
|
|
715
|
+
{ key: b["check-group"].type, value: b["check-group"].name },
|
|
716
|
+
{ key: b["radio-group"].type, value: b["radio-group"].name },
|
|
717
|
+
{ key: b["combo-list"].type, value: b["combo-list"].name },
|
|
718
|
+
{ key: b.textarea.type, value: b.textarea.name },
|
|
719
|
+
{ key: b["time-picker"].type, value: b["time-picker"].name }
|
|
719
720
|
],
|
|
720
721
|
Text: [
|
|
721
|
-
{ key:
|
|
722
|
-
{ key:
|
|
723
|
-
{ key:
|
|
724
|
-
{ key:
|
|
722
|
+
{ key: b.textarea.type, value: b.textarea.name },
|
|
723
|
+
{ key: b.lookup.type, value: b.lookup.name },
|
|
724
|
+
{ key: b.image.type, value: b.image.name },
|
|
725
|
+
{ key: b["rich-text-editor"].type, value: b["rich-text-editor"].name }
|
|
725
726
|
],
|
|
726
727
|
Decimal: [
|
|
727
|
-
{ key:
|
|
728
|
+
{ key: b["number-spinner"].type, value: b["number-spinner"].name }
|
|
728
729
|
],
|
|
729
730
|
Integer: [
|
|
730
|
-
{ key:
|
|
731
|
+
{ key: b["number-spinner"].type, value: b["number-spinner"].name }
|
|
731
732
|
],
|
|
732
733
|
Number: [
|
|
733
|
-
{ key:
|
|
734
|
-
{ key:
|
|
735
|
-
{ key:
|
|
734
|
+
{ key: b["number-spinner"].type, value: b["number-spinner"].name },
|
|
735
|
+
{ key: b.switch.type, value: b.switch.name },
|
|
736
|
+
{ key: b["check-box"].type, value: b["check-box"].name }
|
|
736
737
|
],
|
|
737
738
|
BigNumber: [
|
|
738
|
-
{ key:
|
|
739
|
+
{ key: b["number-spinner"].type, value: b["number-spinner"].name }
|
|
739
740
|
],
|
|
740
741
|
Date: [
|
|
741
|
-
{ key:
|
|
742
|
+
{ key: b["date-picker"].type, value: b["date-picker"].name }
|
|
742
743
|
],
|
|
743
744
|
DateTime: [
|
|
744
|
-
{ key:
|
|
745
|
+
{ key: b["date-picker"].type, value: b["date-picker"].name }
|
|
745
746
|
],
|
|
746
747
|
Boolean: [
|
|
747
|
-
{ key:
|
|
748
|
-
{ key:
|
|
748
|
+
{ key: b.switch.type, value: b.switch.name },
|
|
749
|
+
{ key: b["check-box"].type, value: b["check-box"].name }
|
|
749
750
|
],
|
|
750
751
|
Enum: [
|
|
751
|
-
{ key:
|
|
752
|
-
{ key:
|
|
752
|
+
{ key: b["combo-list"].type, value: b["combo-list"].name },
|
|
753
|
+
{ key: b["radio-group"].type, value: b["radio-group"].name }
|
|
753
754
|
],
|
|
754
755
|
Object: [
|
|
755
|
-
{ key:
|
|
756
|
-
{ key:
|
|
757
|
-
{ key:
|
|
756
|
+
{ key: b.lookup.type, value: b.lookup.name },
|
|
757
|
+
{ key: b["combo-list"].type, value: b["combo-list"].name },
|
|
758
|
+
{ key: b["radio-group"].type, value: b["radio-group"].name }
|
|
758
759
|
]
|
|
759
760
|
});
|
|
760
|
-
let
|
|
761
|
-
var
|
|
762
|
-
class
|
|
761
|
+
let fe = ie;
|
|
762
|
+
var ue = /* @__PURE__ */ ((n) => (n.Form = "Form", n.Variable = "Variable", n))(ue || {});
|
|
763
|
+
class jt {
|
|
763
764
|
constructor() {
|
|
764
765
|
/** 控件标题 */
|
|
765
|
-
|
|
766
|
+
T(this, "label", "");
|
|
766
767
|
/** 控件id */
|
|
767
|
-
|
|
768
|
+
T(this, "id", "");
|
|
768
769
|
/** 每个控件占用的栅格数 */
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
770
|
+
T(this, "columnInSM", 12);
|
|
771
|
+
T(this, "columnInMD", 6);
|
|
772
|
+
T(this, "columnInLG", 3);
|
|
773
|
+
T(this, "columnInEL", 2);
|
|
773
774
|
/** 每个控件占用的列数 */
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
775
|
+
T(this, "displayWidthInSM", 1);
|
|
776
|
+
T(this, "displayWidthInMD", 1);
|
|
777
|
+
T(this, "displayWidthInLG", 1);
|
|
778
|
+
T(this, "displayWidthInEL", 1);
|
|
778
779
|
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
779
|
-
|
|
780
|
+
T(this, "displayColumnCountAtBreakPoint", "md");
|
|
780
781
|
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
781
|
-
|
|
782
|
+
T(this, "tagRow", 0);
|
|
782
783
|
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
783
|
-
|
|
784
|
+
T(this, "showTopBorder", 0);
|
|
784
785
|
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
785
|
-
|
|
786
|
+
T(this, "group", 1);
|
|
786
787
|
/** 控件是否符合标准的class配置(设计器用的) */
|
|
787
|
-
|
|
788
|
+
T(this, "isSupportedClass", !0);
|
|
788
789
|
/** 控件所在分组id(设计器用的) */
|
|
789
|
-
|
|
790
|
+
T(this, "fieldSetId", "");
|
|
790
791
|
}
|
|
791
792
|
}
|
|
792
|
-
function
|
|
793
|
+
function qt(n) {
|
|
793
794
|
let t, e;
|
|
794
795
|
const o = /* @__PURE__ */ new Map();
|
|
795
796
|
let i = [];
|
|
796
797
|
function l(c, u) {
|
|
797
|
-
const m = c.split(" ").filter((
|
|
798
|
+
const m = c.split(" ").filter((x) => x.startsWith("col-"));
|
|
798
799
|
if (m.length === 0) {
|
|
799
800
|
u.isSupportedClass = !1;
|
|
800
801
|
return;
|
|
801
802
|
}
|
|
802
|
-
let f = m.find((
|
|
803
|
-
f = f || "col-12", u.columnInSM = parseInt(f.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1),
|
|
803
|
+
let f = m.find((x) => /^col-([1-9]|10|11|12)$/.test(x)), C = m.find((x) => /^col-md-([1-9]|10|11|12)$/.test(x)), E = m.find((x) => /^col-xl-([1-9]|10|11|12)$/.test(x)), B = m.find((x) => /^col-el-([1-9]|10|11|12)$/.test(x));
|
|
804
|
+
f = f || "col-12", u.columnInSM = parseInt(f.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), C = C || "col-md-" + u.columnInSM, u.columnInMD = parseInt(C.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1), E = E || "col-xl-" + u.columnInMD, u.columnInLG = parseInt(E.replace("col-xl-", ""), 10), u.displayWidthInLG = u.columnInLG / 3, [1, 2, 3, 4].includes(u.displayWidthInLG) || (u.isSupportedClass = !1), B = B || "col-el-" + u.columnInLG, u.columnInEL = parseInt(B.replace("col-el-", ""), 10), u.displayWidthInEL = u.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(u.displayWidthInEL) || (u.isSupportedClass = !1);
|
|
804
805
|
}
|
|
805
|
-
function a(c, u,
|
|
806
|
+
function a(c, u, g, m = !1) {
|
|
806
807
|
let f = !1;
|
|
807
|
-
c.contents.forEach((
|
|
808
|
-
if (
|
|
809
|
-
|
|
808
|
+
c.contents.forEach((C) => {
|
|
809
|
+
if (C.type === "fieldset") {
|
|
810
|
+
g += 1, a(C, u, g, !0), f = !0;
|
|
810
811
|
return;
|
|
811
812
|
}
|
|
812
|
-
f && (
|
|
813
|
-
const E =
|
|
814
|
-
E ? l(E, B) : B.isSupportedClass = !1, B.label =
|
|
813
|
+
f && (g += 1, f = !1);
|
|
814
|
+
const E = C.appearance && C.appearance.class, B = new jt();
|
|
815
|
+
E ? l(E, B) : B.isSupportedClass = !1, B.label = C.label || C.id, B.id = C.id, B.group = g, m && (B.fieldSetId = c.id), e === C.id && (t = g), o.set(C.id, C), u.push(B);
|
|
815
816
|
});
|
|
816
817
|
}
|
|
817
818
|
function s(c) {
|
|
818
819
|
const u = n.getComponentById(c);
|
|
819
820
|
if (!u || !u.componentType || !u.componentType.startsWith("form"))
|
|
820
821
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
821
|
-
const
|
|
822
|
-
return !
|
|
822
|
+
const g = n.selectNode(u, (m) => m.type === b["response-form"].type);
|
|
823
|
+
return !g || !g.contents || g.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: g };
|
|
823
824
|
}
|
|
824
825
|
function r(c, u) {
|
|
825
826
|
u = u || c.id;
|
|
826
|
-
const { result:
|
|
827
|
-
if (!
|
|
828
|
-
return { result:
|
|
827
|
+
const { result: g, message: m, formNode: f } = s(u);
|
|
828
|
+
if (!g)
|
|
829
|
+
return { result: g, message: m };
|
|
829
830
|
e = c.id, i = [], o.clear();
|
|
830
|
-
const
|
|
831
|
-
a(f, i,
|
|
832
|
-
const E = i.find((
|
|
831
|
+
const C = f.contents[0].type === b.fieldset.type ? 0 : 1;
|
|
832
|
+
a(f, i, C);
|
|
833
|
+
const E = i.find((x) => !x.isSupportedClass);
|
|
833
834
|
return {
|
|
834
835
|
defaultState: {
|
|
835
836
|
defaultGroupNumber: t || 1,
|
|
@@ -840,20 +841,20 @@ function Rt(n) {
|
|
|
840
841
|
}
|
|
841
842
|
function d(c, u) {
|
|
842
843
|
u = u;
|
|
843
|
-
const { result:
|
|
844
|
-
if (!
|
|
844
|
+
const { result: g, formNode: m } = s(u);
|
|
845
|
+
if (!g)
|
|
845
846
|
return "";
|
|
846
847
|
const f = [];
|
|
847
|
-
return c.forEach((
|
|
848
|
-
var
|
|
849
|
-
const E = o.get(
|
|
848
|
+
return c.forEach((C) => {
|
|
849
|
+
var x;
|
|
850
|
+
const E = o.get(C.id), B = E.appearance && E.appearance.class;
|
|
850
851
|
if (B) {
|
|
851
|
-
const
|
|
852
|
-
E.appearance.class =
|
|
852
|
+
const $ = B.split(" ").filter((z) => !z.startsWith("col-")), k = "col-" + C.columnInSM, H = "col-md-" + C.columnInMD, p = "col-xl-" + C.columnInLG, M = "col-el-" + C.columnInEL, R = [k, H, p, M].concat($);
|
|
853
|
+
E.appearance.class = R.join(" ");
|
|
853
854
|
}
|
|
854
|
-
if (
|
|
855
|
-
const
|
|
856
|
-
|
|
855
|
+
if (C.fieldSetId) {
|
|
856
|
+
const P = m.contents.find((k) => k.id === C.fieldSetId), $ = f.find((k) => k.id === C.fieldSetId);
|
|
857
|
+
$ ? (x = $.contents) == null || x.push(E) : (f.push(P), P.contents = [E]);
|
|
857
858
|
} else
|
|
858
859
|
f.push(E);
|
|
859
860
|
}), m.contents = f, m.id;
|
|
@@ -865,19 +866,19 @@ function Rt(n) {
|
|
|
865
866
|
getResonseFormLayoutConfig: a
|
|
866
867
|
};
|
|
867
868
|
}
|
|
868
|
-
class
|
|
869
|
+
class Gt extends Wt {
|
|
869
870
|
constructor(e, o) {
|
|
870
871
|
super(e, o);
|
|
871
|
-
|
|
872
|
+
T(this, "responseLayoutEditorFunction");
|
|
872
873
|
/** 控件绑定的变量 */
|
|
873
|
-
|
|
874
|
-
|
|
874
|
+
T(this, "bindingVarible");
|
|
875
|
+
T(this, "numberEditorOptions", {
|
|
875
876
|
type: "number-spinner",
|
|
876
877
|
useThousands: !1,
|
|
877
878
|
keyboard: !1,
|
|
878
879
|
showButton: !1
|
|
879
880
|
});
|
|
880
|
-
this.responseLayoutEditorFunction =
|
|
881
|
+
this.responseLayoutEditorFunction = qt(this.formSchemaUtils);
|
|
881
882
|
}
|
|
882
883
|
getCommonPropertyConfig(e, o, i = "Card") {
|
|
883
884
|
this.propertyConfig.categories.basic = this.getBasicProperties(e, o, i), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, o), this.propertyConfig.categories.behavior = this.getBehaviorConfig(e, "form-group");
|
|
@@ -951,7 +952,7 @@ class Nt extends Vt {
|
|
|
951
952
|
readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
|
|
952
953
|
}
|
|
953
954
|
},
|
|
954
|
-
setPropertyRelates(c, u,
|
|
955
|
+
setPropertyRelates(c, u, g) {
|
|
955
956
|
if (c)
|
|
956
957
|
switch (c && c.propertyID) {
|
|
957
958
|
case "type": {
|
|
@@ -963,7 +964,7 @@ class Nt extends Vt {
|
|
|
963
964
|
break;
|
|
964
965
|
}
|
|
965
966
|
case "binding": {
|
|
966
|
-
l.changeBindingField(e, c,
|
|
967
|
+
l.changeBindingField(e, c, g);
|
|
967
968
|
break;
|
|
968
969
|
}
|
|
969
970
|
}
|
|
@@ -981,7 +982,7 @@ class Nt extends Vt {
|
|
|
981
982
|
if (e.binding.type === "Variable") {
|
|
982
983
|
if (this.bindingVarible = this.formSchemaUtils.getVariableById(e.binding.field), !this.bindingVarible)
|
|
983
984
|
return !1;
|
|
984
|
-
} else if (!this.designViewModelField || this.designViewModelField.$type !==
|
|
985
|
+
} else if (!this.designViewModelField || this.designViewModelField.$type !== Be.SimpleField)
|
|
985
986
|
return !1;
|
|
986
987
|
return !0;
|
|
987
988
|
}
|
|
@@ -996,11 +997,11 @@ class Nt extends Vt {
|
|
|
996
997
|
canChangeControlType: !1,
|
|
997
998
|
editorTypeList: [{
|
|
998
999
|
key: e.editor.type,
|
|
999
|
-
value: ((l =
|
|
1000
|
+
value: ((l = b[e.editor.type]) == null ? void 0 : l.name) || e.editor.type
|
|
1000
1001
|
}]
|
|
1001
1002
|
};
|
|
1002
1003
|
let i = [];
|
|
1003
|
-
return this.designViewModelField && this.designViewModelField.$type ===
|
|
1004
|
+
return this.designViewModelField && this.designViewModelField.$type === Be.SimpleField ? i = fe.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (i = fe.getEditorTypesByMDataType(this.bindingVarible.type, this.designViewModelField.multiLanguage)), { canChangeControlType: o, editorTypeList: i };
|
|
1004
1005
|
}
|
|
1005
1006
|
changeBindingField(e, o, i) {
|
|
1006
1007
|
o.needRefreshEntityTree = !0;
|
|
@@ -1051,10 +1052,10 @@ class Nt extends Vt {
|
|
|
1051
1052
|
i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, i.componentId || e.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(e.id, o), delete e.responseLayout;
|
|
1052
1053
|
break;
|
|
1053
1054
|
case "class":
|
|
1054
|
-
i.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId),
|
|
1055
|
+
i.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), re.value++;
|
|
1055
1056
|
break;
|
|
1056
1057
|
case "style": {
|
|
1057
|
-
|
|
1058
|
+
re.value++;
|
|
1058
1059
|
break;
|
|
1059
1060
|
}
|
|
1060
1061
|
}
|
|
@@ -1079,8 +1080,8 @@ class Nt extends Vt {
|
|
|
1079
1080
|
const r = a.contents[s];
|
|
1080
1081
|
let d;
|
|
1081
1082
|
if (this.designViewModelField) {
|
|
1082
|
-
const
|
|
1083
|
-
|
|
1083
|
+
const g = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
|
|
1084
|
+
g.editor || (g.editor = {}), g.editor.$type = l, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, g, !1), d = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l);
|
|
1084
1085
|
}
|
|
1085
1086
|
d || (d = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(d, {
|
|
1086
1087
|
id: r.id,
|
|
@@ -1094,19 +1095,19 @@ class Nt extends Vt {
|
|
|
1094
1095
|
(c) => c.classList.remove("dgComponentSelected")
|
|
1095
1096
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
1096
1097
|
(c) => c.classList.remove("dgComponentFocused")
|
|
1097
|
-
),
|
|
1098
|
+
), re.value++, oe(() => {
|
|
1098
1099
|
this.getFormDesignerInstance().reloadPropertyPanel();
|
|
1099
1100
|
});
|
|
1100
1101
|
}
|
|
1101
1102
|
getComponentConfig(e, o = {}, i = {}, l) {
|
|
1102
|
-
var
|
|
1103
|
+
var g, m;
|
|
1103
1104
|
const a = Object.assign({
|
|
1104
1105
|
description: "编辑器",
|
|
1105
1106
|
title: "编辑器",
|
|
1106
1107
|
type: "input-group",
|
|
1107
1108
|
$converter: "/converter/property-editor.converter",
|
|
1108
1109
|
parentPropertyID: "editor"
|
|
1109
|
-
}, o), s = (
|
|
1110
|
+
}, o), s = (g = e.binding) != null && g.field ? [] : ["Const", "Variable", "StateMachine"], r = this.getPropertyEditorParams(e, s, "readonly"), d = this.getPropertyEditorParams(e, s, "required"), c = {
|
|
1110
1111
|
readonly: {
|
|
1111
1112
|
description: "",
|
|
1112
1113
|
title: "只读",
|
|
@@ -1131,7 +1132,7 @@ class Nt extends Vt {
|
|
|
1131
1132
|
return {
|
|
1132
1133
|
...a,
|
|
1133
1134
|
properties: { ...c },
|
|
1134
|
-
setPropertyRelates(f,
|
|
1135
|
+
setPropertyRelates(f, C) {
|
|
1135
1136
|
if (f) {
|
|
1136
1137
|
switch (f.propertyID) {
|
|
1137
1138
|
case "readonly":
|
|
@@ -1139,7 +1140,7 @@ class Nt extends Vt {
|
|
|
1139
1140
|
u.afterMutilEditorChanged(e, f);
|
|
1140
1141
|
break;
|
|
1141
1142
|
}
|
|
1142
|
-
l && l.bind(u)(f, e,
|
|
1143
|
+
l && l.bind(u)(f, e, C);
|
|
1143
1144
|
}
|
|
1144
1145
|
}
|
|
1145
1146
|
};
|
|
@@ -1174,14 +1175,14 @@ class Nt extends Vt {
|
|
|
1174
1175
|
return;
|
|
1175
1176
|
const l = [];
|
|
1176
1177
|
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, l, 1), o) {
|
|
1177
|
-
const f = l.find((
|
|
1178
|
+
const f = l.find((C) => C.id === o.id);
|
|
1178
1179
|
Object.assign(f || {}, o);
|
|
1179
1180
|
}
|
|
1180
|
-
const a = l.map((f) => f.columnInSM), s = l.map((f) => f.columnInMD), r = l.map((f) => f.columnInLG), d = l.map((f) => f.columnInEL), c = this.checkIsUniqueColumn(a) ? a[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null,
|
|
1181
|
+
const a = l.map((f) => f.columnInSM), s = l.map((f) => f.columnInMD), r = l.map((f) => f.columnInLG), d = l.map((f) => f.columnInEL), c = this.checkIsUniqueColumn(a) ? a[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null, g = this.checkIsUniqueColumn(r) ? r[0] : null, m = this.checkIsUniqueColumn(d) ? d[0] : null;
|
|
1181
1182
|
Object.assign(i.unifiedLayout, {
|
|
1182
1183
|
uniqueColClassInSM: c,
|
|
1183
1184
|
uniqueColClassInMD: u,
|
|
1184
|
-
uniqueColClassInLG:
|
|
1185
|
+
uniqueColClassInLG: g,
|
|
1185
1186
|
uniqueColClassInEL: m
|
|
1186
1187
|
});
|
|
1187
1188
|
}
|
|
@@ -1223,22 +1224,22 @@ class Nt extends Vt {
|
|
|
1223
1224
|
* @param propertyData 下拉框控件属性值
|
|
1224
1225
|
*/
|
|
1225
1226
|
checkEnumDataReadonly(e) {
|
|
1226
|
-
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type ===
|
|
1227
|
+
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === Te.EnumType);
|
|
1227
1228
|
}
|
|
1228
1229
|
/**
|
|
1229
1230
|
* 将字段值变化前事件、变化后事件追加到交互面板
|
|
1230
1231
|
* 注意:因为绑定字段值变化后事件与下拉框的值变化事件(valueChanged)重名,所以这里将事件label都重命名下
|
|
1231
1232
|
*/
|
|
1232
1233
|
appendFieldValueChangeEvents(e, o) {
|
|
1233
|
-
e.binding && e.binding.type ===
|
|
1234
|
+
e.binding && e.binding.type === ue.Form && e.binding.field ? (o.find((i) => i.label === "fieldValueChanging"), o.find((i) => i.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : o = o.filter((i) => i.label !== "fieldValueChanging" && i.label !== "fieldValueChanged");
|
|
1234
1235
|
}
|
|
1235
1236
|
getControlMethodType(e) {
|
|
1236
1237
|
if (!e.binding)
|
|
1237
1238
|
return e.type;
|
|
1238
1239
|
switch (e.binding.type) {
|
|
1239
|
-
case
|
|
1240
|
+
case ue.Form:
|
|
1240
1241
|
return e.binding.path || e.type;
|
|
1241
|
-
case
|
|
1242
|
+
case ue.Variable:
|
|
1242
1243
|
return e.binding.fullPath || e.type;
|
|
1243
1244
|
}
|
|
1244
1245
|
return e.type;
|
|
@@ -1270,16 +1271,16 @@ class Nt extends Vt {
|
|
|
1270
1271
|
properties: a.createBaseEventProperty(r),
|
|
1271
1272
|
tabId: "commands",
|
|
1272
1273
|
tabName: "交互",
|
|
1273
|
-
setPropertyRelates(u,
|
|
1274
|
+
setPropertyRelates(u, g) {
|
|
1274
1275
|
const m = u.propertyValue;
|
|
1275
|
-
delete e[a.viewModelId], m && (m.setPropertyRelates = this.setPropertyRelates, m.controlInfo = { type: a.getControlMethodType(e), name: e.title }, a.eventsEditorUtils.saveRelatedParameters(e, a.viewModelId, m.events, m)), l && l(u,
|
|
1276
|
+
delete e[a.viewModelId], m && (m.setPropertyRelates = this.setPropertyRelates, m.controlInfo = { type: a.getControlMethodType(e), name: e.title }, a.eventsEditorUtils.saveRelatedParameters(e, a.viewModelId, m.events, m)), l && l(u, g, m);
|
|
1276
1277
|
const f = a.designViewModelUtils.getDgViewModel(a.viewModelId);
|
|
1277
1278
|
f && a.designViewModelField && f.changeField(a.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
|
|
1278
1279
|
}
|
|
1279
1280
|
};
|
|
1280
1281
|
}
|
|
1281
1282
|
getExpressionConfig(e, o, i = ["compute", "dependency", "validate"], l) {
|
|
1282
|
-
return new
|
|
1283
|
+
return new ze(this.formSchemaUtils).getExpressionConfig(
|
|
1283
1284
|
e,
|
|
1284
1285
|
o,
|
|
1285
1286
|
i,
|
|
@@ -1311,7 +1312,7 @@ class Nt extends Vt {
|
|
|
1311
1312
|
};
|
|
1312
1313
|
}
|
|
1313
1314
|
}
|
|
1314
|
-
class
|
|
1315
|
+
class Dt extends Gt {
|
|
1315
1316
|
constructor(t, e) {
|
|
1316
1317
|
super(t, e);
|
|
1317
1318
|
}
|
|
@@ -1397,32 +1398,32 @@ class Lt extends Nt {
|
|
|
1397
1398
|
var l;
|
|
1398
1399
|
super.changeBindingField(t, e);
|
|
1399
1400
|
const i = o;
|
|
1400
|
-
t.editor && ((l = i == null ? void 0 : i.type) == null ? void 0 : l.$type) ===
|
|
1401
|
+
t.editor && ((l = i == null ? void 0 : i.type) == null ? void 0 : l.$type) === Te.EnumType && (t.editor.data = i.type.enumValues || []);
|
|
1401
1402
|
}
|
|
1402
1403
|
}
|
|
1403
|
-
function
|
|
1404
|
+
function Kt(n, t) {
|
|
1404
1405
|
const e = n.schema;
|
|
1405
1406
|
function o(i, l) {
|
|
1406
|
-
return new
|
|
1407
|
+
return new Dt(i, t).getPropertyConfig(e, l);
|
|
1407
1408
|
}
|
|
1408
1409
|
return { getPropsConfig: o };
|
|
1409
1410
|
}
|
|
1410
|
-
const
|
|
1411
|
+
const me = /* @__PURE__ */ J({
|
|
1411
1412
|
name: "FRadioGroupDesign",
|
|
1412
|
-
props:
|
|
1413
|
+
props: At,
|
|
1413
1414
|
emits: ["changeValue", "update:modelValue"],
|
|
1414
1415
|
setup(n, t) {
|
|
1415
|
-
const e =
|
|
1416
|
+
const e = h(n.modelValue), {
|
|
1416
1417
|
enumData: o,
|
|
1417
1418
|
getValue: i,
|
|
1418
1419
|
getText: l
|
|
1419
|
-
} =
|
|
1420
|
+
} = $t(n, t, e), a = S(() => ({
|
|
1420
1421
|
"farris-checkradio-hor": n.direction === "horizontal"
|
|
1421
|
-
})), s =
|
|
1422
|
-
|
|
1422
|
+
})), s = h(), r = ce("designer-host-service"), d = ce("design-item-context"), c = Kt(d, r), u = Ot(s, d, c);
|
|
1423
|
+
Z(() => {
|
|
1423
1424
|
s.value.componentInstance = u;
|
|
1424
1425
|
});
|
|
1425
|
-
const
|
|
1426
|
+
const g = S(() => {
|
|
1426
1427
|
if (!o.value || o.value.length === 0) {
|
|
1427
1428
|
const m = [];
|
|
1428
1429
|
return [{
|
|
@@ -1432,33 +1433,33 @@ const fe = /* @__PURE__ */ Y({
|
|
|
1432
1433
|
value: "example2",
|
|
1433
1434
|
name: "示例二"
|
|
1434
1435
|
}].map((f) => {
|
|
1435
|
-
const
|
|
1436
|
-
|
|
1436
|
+
const C = {};
|
|
1437
|
+
C[n.valueField] = f.value, C[n.textField] = f.name, m.push(C);
|
|
1437
1438
|
}), m;
|
|
1438
1439
|
}
|
|
1439
1440
|
return o.value;
|
|
1440
1441
|
});
|
|
1441
|
-
return t.expose(u.value), () =>
|
|
1442
|
+
return t.expose(u.value), () => v("div", {
|
|
1442
1443
|
class: ["farris-input-wrap", a.value],
|
|
1443
1444
|
ref: s
|
|
1444
|
-
}, [
|
|
1445
|
-
const
|
|
1446
|
-
return
|
|
1445
|
+
}, [g.value.map((m, f) => {
|
|
1446
|
+
const C = "radio_" + n.name + f;
|
|
1447
|
+
return v("div", {
|
|
1447
1448
|
class: "custom-control custom-radio"
|
|
1448
|
-
}, [
|
|
1449
|
+
}, [v("input", {
|
|
1449
1450
|
type: "radio",
|
|
1450
1451
|
class: "custom-control-input",
|
|
1451
1452
|
name: n.name,
|
|
1452
|
-
id:
|
|
1453
|
+
id: C,
|
|
1453
1454
|
value: i(m),
|
|
1454
1455
|
disabled: !0
|
|
1455
|
-
}, null),
|
|
1456
|
+
}, null), v("label", {
|
|
1456
1457
|
class: "custom-control-label",
|
|
1457
|
-
for:
|
|
1458
|
+
for: C
|
|
1458
1459
|
}, [l(m)])]);
|
|
1459
1460
|
})]);
|
|
1460
1461
|
}
|
|
1461
|
-
}),
|
|
1462
|
+
}), Xt = {
|
|
1462
1463
|
/**
|
|
1463
1464
|
* 组件标识
|
|
1464
1465
|
*/
|
|
@@ -1578,23 +1579,23 @@ const fe = /* @__PURE__ */ Y({
|
|
|
1578
1579
|
*/
|
|
1579
1580
|
limitContentBySpace: { type: Boolean, default: !1 },
|
|
1580
1581
|
beforeClosePopup: { type: Function, default: null }
|
|
1581
|
-
},
|
|
1582
|
+
}, _t = {
|
|
1582
1583
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
|
|
1583
1584
|
host: { type: Object },
|
|
1584
1585
|
backgroundColor: { type: String, default: "" }
|
|
1585
|
-
},
|
|
1586
|
+
}, Yt = /* @__PURE__ */ J({
|
|
1586
1587
|
name: "FOverlay",
|
|
1587
|
-
props:
|
|
1588
|
+
props: _t,
|
|
1588
1589
|
emits: ["click"],
|
|
1589
1590
|
setup(n, t) {
|
|
1590
|
-
const e =
|
|
1591
|
+
const e = h(n.popupContentPosition), o = h(n.host), i = S(() => ({
|
|
1591
1592
|
backgroundColor: n.backgroundColor || "",
|
|
1592
1593
|
pointerEvents: "auto"
|
|
1593
1594
|
}));
|
|
1594
1595
|
function l(s) {
|
|
1595
1596
|
t.emit("click"), s.preventDefault(), s.stopPropagation();
|
|
1596
1597
|
}
|
|
1597
|
-
|
|
1598
|
+
S(() => {
|
|
1598
1599
|
const s = o.value;
|
|
1599
1600
|
if (s) {
|
|
1600
1601
|
const r = s.getBoundingClientRect(), {
|
|
@@ -1609,34 +1610,34 @@ const fe = /* @__PURE__ */ Y({
|
|
|
1609
1610
|
}
|
|
1610
1611
|
return e.value;
|
|
1611
1612
|
});
|
|
1612
|
-
const a =
|
|
1613
|
+
const a = S(() => ({
|
|
1613
1614
|
// position: 'relative',
|
|
1614
1615
|
// left: `${position.value.left}px`,
|
|
1615
1616
|
// top: `${position.value.top}px`
|
|
1616
1617
|
}));
|
|
1617
|
-
return () =>
|
|
1618
|
+
return () => v(Re, {
|
|
1618
1619
|
to: "body"
|
|
1619
1620
|
}, {
|
|
1620
1621
|
default: () => {
|
|
1621
1622
|
var s, r;
|
|
1622
|
-
return [
|
|
1623
|
+
return [v("div", {
|
|
1623
1624
|
class: "overlay-container",
|
|
1624
1625
|
onClick: (d) => l(d),
|
|
1625
1626
|
style: i.value
|
|
1626
|
-
}, [
|
|
1627
|
+
}, [v("div", {
|
|
1627
1628
|
style: a.value
|
|
1628
1629
|
}, [(r = (s = t.slots).default) == null ? void 0 : r.call(s)])])];
|
|
1629
1630
|
}
|
|
1630
1631
|
});
|
|
1631
1632
|
}
|
|
1632
1633
|
});
|
|
1633
|
-
function
|
|
1634
|
+
function Jt(n) {
|
|
1634
1635
|
if (n.content && n.content.render)
|
|
1635
1636
|
return n.content.render;
|
|
1636
1637
|
if (n.render && typeof n.render == "function")
|
|
1637
1638
|
return n.render;
|
|
1638
1639
|
}
|
|
1639
|
-
function
|
|
1640
|
+
function Zt(n) {
|
|
1640
1641
|
const t = document.createElement("div");
|
|
1641
1642
|
t.style.display = "contents";
|
|
1642
1643
|
let e;
|
|
@@ -1646,11 +1647,11 @@ function Wt(n) {
|
|
|
1646
1647
|
};
|
|
1647
1648
|
return e = we({
|
|
1648
1649
|
setup() {
|
|
1649
|
-
|
|
1650
|
+
pe(() => {
|
|
1650
1651
|
document.body.removeChild(t);
|
|
1651
1652
|
});
|
|
1652
|
-
const l =
|
|
1653
|
-
return () =>
|
|
1653
|
+
const l = Jt(n);
|
|
1654
|
+
return () => v(Yt, {
|
|
1654
1655
|
"popup-content-position": n.popupPosition,
|
|
1655
1656
|
host: n.host,
|
|
1656
1657
|
onClick: i,
|
|
@@ -1661,12 +1662,12 @@ function Wt(n) {
|
|
|
1661
1662
|
}
|
|
1662
1663
|
}), document.body.appendChild(t), e.mount(t), e;
|
|
1663
1664
|
}
|
|
1664
|
-
class
|
|
1665
|
+
class Qt {
|
|
1665
1666
|
static show(t) {
|
|
1666
|
-
return
|
|
1667
|
+
return Zt(t);
|
|
1667
1668
|
}
|
|
1668
1669
|
}
|
|
1669
|
-
const
|
|
1670
|
+
const en = {
|
|
1670
1671
|
/**
|
|
1671
1672
|
* 允许点击遮罩关闭对话框
|
|
1672
1673
|
*/
|
|
@@ -1745,9 +1746,10 @@ const qt = {
|
|
|
1745
1746
|
dialogType: { type: String, default: "" },
|
|
1746
1747
|
src: { type: String, default: "" },
|
|
1747
1748
|
footerHeight: { type: Number, default: 60 },
|
|
1748
|
-
host: { type: Object, default: "body" }
|
|
1749
|
+
host: { type: Object, default: "body" },
|
|
1750
|
+
isMessager: { type: Boolean, default: !1 }
|
|
1749
1751
|
};
|
|
1750
|
-
class
|
|
1752
|
+
class j {
|
|
1751
1753
|
constructor(t, e) {
|
|
1752
1754
|
this.x = t, this.y = e;
|
|
1753
1755
|
}
|
|
@@ -1761,12 +1763,12 @@ class $ {
|
|
|
1761
1763
|
}
|
|
1762
1764
|
static fromEvent(t, e = null) {
|
|
1763
1765
|
if (this.isMouseEvent(t))
|
|
1764
|
-
return new
|
|
1766
|
+
return new j(t.clientX, t.clientY);
|
|
1765
1767
|
if (e === null || t.changedTouches.length === 1)
|
|
1766
|
-
return new
|
|
1768
|
+
return new j(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
|
|
1767
1769
|
for (let o = 0; o < t.changedTouches.length; o++)
|
|
1768
1770
|
if (t.changedTouches[o].target === e)
|
|
1769
|
-
return new
|
|
1771
|
+
return new j(t.changedTouches[o].clientX, t.changedTouches[o].clientY);
|
|
1770
1772
|
}
|
|
1771
1773
|
static isMouseEvent(t) {
|
|
1772
1774
|
return Object.prototype.toString.apply(t).indexOf("MouseEvent") === 8;
|
|
@@ -1775,7 +1777,7 @@ class $ {
|
|
|
1775
1777
|
return !!t && "x" in t && "y" in t;
|
|
1776
1778
|
}
|
|
1777
1779
|
static getCurrent(t) {
|
|
1778
|
-
const e = new
|
|
1780
|
+
const e = new j(0, 0);
|
|
1779
1781
|
if (window) {
|
|
1780
1782
|
const o = window.getComputedStyle(t);
|
|
1781
1783
|
if (o) {
|
|
@@ -1787,7 +1789,7 @@ class $ {
|
|
|
1787
1789
|
return null;
|
|
1788
1790
|
}
|
|
1789
1791
|
static copy(t) {
|
|
1790
|
-
return new
|
|
1792
|
+
return new j(0, 0).set(t);
|
|
1791
1793
|
}
|
|
1792
1794
|
get value() {
|
|
1793
1795
|
return { x: this.x, y: this.y };
|
|
@@ -1811,12 +1813,12 @@ class $ {
|
|
|
1811
1813
|
return this.x = t.x, this.y = t.y, this;
|
|
1812
1814
|
}
|
|
1813
1815
|
}
|
|
1814
|
-
class
|
|
1816
|
+
class te {
|
|
1815
1817
|
constructor(t, e) {
|
|
1816
1818
|
this.width = t, this.height = e;
|
|
1817
1819
|
}
|
|
1818
1820
|
static getCurrent(t) {
|
|
1819
|
-
const e = new
|
|
1821
|
+
const e = new te(0, 0);
|
|
1820
1822
|
if (window) {
|
|
1821
1823
|
const o = window.getComputedStyle(t);
|
|
1822
1824
|
return o && (e.width = parseInt(o.getPropertyValue("width"), 10), e.height = parseInt(o.getPropertyValue("height"), 10)), e;
|
|
@@ -1824,280 +1826,280 @@ class ee {
|
|
|
1824
1826
|
return null;
|
|
1825
1827
|
}
|
|
1826
1828
|
static copy(t) {
|
|
1827
|
-
return new
|
|
1829
|
+
return new te(0, 0).set(t);
|
|
1828
1830
|
}
|
|
1829
1831
|
set(t) {
|
|
1830
1832
|
return this.width = t.width, this.height = t.height, this;
|
|
1831
1833
|
}
|
|
1832
1834
|
}
|
|
1833
|
-
function
|
|
1834
|
-
const e =
|
|
1835
|
+
function tn(n, t) {
|
|
1836
|
+
const e = h(), o = h(), i = h(), l = h(), a = h(), s = h(), r = h(), d = h(), c = h(), u = h(), g = h(), m = h(n.resizeable), f = h(), C = h(n.draggable), E = h(!1);
|
|
1835
1837
|
function B() {
|
|
1836
|
-
const w = o.value || document.body,
|
|
1837
|
-
if (!
|
|
1838
|
+
const w = o.value || document.body, F = window.getComputedStyle(w);
|
|
1839
|
+
if (!F || !e.value)
|
|
1838
1840
|
return;
|
|
1839
|
-
const
|
|
1841
|
+
const A = j.getTransformInfo(e.value), L = {};
|
|
1840
1842
|
r.value && (L.deltaL = e.value.offsetLeft - r.value.x, L.deltaT = e.value.offsetTop - r.value.y);
|
|
1841
|
-
const
|
|
1842
|
-
L.width = w.clientWidth, L.height = w.clientHeight, L.pr = parseInt(
|
|
1843
|
+
const G = F.getPropertyValue("position");
|
|
1844
|
+
L.width = w.clientWidth, L.height = w.clientHeight, L.pr = parseInt(F.getPropertyValue("padding-right"), 10), L.pb = parseInt(F.getPropertyValue("padding-bottom"), 10), L.position = F.getPropertyValue("position"), G === "static" && (w.style.position = "relative"), L.translateX = A.x, L.translateY = A.y, u.value = L;
|
|
1843
1845
|
}
|
|
1844
|
-
function
|
|
1846
|
+
function x(w) {
|
|
1845
1847
|
if (e.value) {
|
|
1846
|
-
l.value =
|
|
1847
|
-
const
|
|
1848
|
+
l.value = te.getCurrent(e.value), a.value = j.getCurrent(e.value), s.value = l.value ? te.copy(l.value) : null, r.value = a.value ? j.copy(a.value) : null, B();
|
|
1849
|
+
const F = w.target.getAttribute("type") || "";
|
|
1848
1850
|
d.value = {
|
|
1849
|
-
n: !!
|
|
1850
|
-
s: !!
|
|
1851
|
-
w: !!
|
|
1852
|
-
e: !!
|
|
1851
|
+
n: !!F.match(/n/),
|
|
1852
|
+
s: !!F.match(/s/),
|
|
1853
|
+
w: !!F.match(/w/),
|
|
1854
|
+
e: !!F.match(/e/)
|
|
1853
1855
|
};
|
|
1854
1856
|
}
|
|
1855
1857
|
}
|
|
1856
|
-
function
|
|
1857
|
-
var w,
|
|
1858
|
+
function P() {
|
|
1859
|
+
var w, F, A, L;
|
|
1858
1860
|
if (e.value) {
|
|
1859
|
-
const
|
|
1860
|
-
d.value && ((d.value.n || d.value.s) && ((w = s.value) != null && w.height) && (
|
|
1861
|
+
const G = e.value;
|
|
1862
|
+
d.value && ((d.value.n || d.value.s) && ((w = s.value) != null && w.height) && (G.style.height = s.value.height + "px"), (d.value.w || d.value.e) && ((F = s.value) != null && F.width) && (G.style.width = s.value.width + "px"), r.value && ((A = r.value) != null && A.x && (G.style.left = r.value.x + "px"), (L = r.value) != null && L.y && (G.style.top = r.value.y + "px")));
|
|
1861
1863
|
}
|
|
1862
1864
|
}
|
|
1863
|
-
function
|
|
1864
|
-
const w = n.minHeight ? n.minHeight : 1,
|
|
1865
|
-
s.value && r.value && d.value && l.value && (s.value.height < w && (s.value.height = w, d.value.n && a.value && (r.value.y = a.value.y + (l.value.height - w))), s.value.width <
|
|
1865
|
+
function $() {
|
|
1866
|
+
const w = n.minHeight ? n.minHeight : 1, F = n.minWidth ? n.minWidth : 1;
|
|
1867
|
+
s.value && r.value && d.value && l.value && (s.value.height < w && (s.value.height = w, d.value.n && a.value && (r.value.y = a.value.y + (l.value.height - w))), s.value.width < F && (s.value.width = F, d.value.w && a.value && (r.value.x = a.value.x + (l.value.width - F))), n.maxHeight && s.value.height > n.maxHeight && (s.value.height = n.maxHeight, a.value && d.value.n && (r.value.y = a.value.y + (l.value.height - n.maxHeight))), n.maxWidth && s.value.width > n.maxWidth && (s.value.width = n.maxWidth, d.value.w && a.value && (r.value.x = a.value.x + (l.value.width - n.maxWidth))));
|
|
1866
1868
|
}
|
|
1867
|
-
function
|
|
1869
|
+
function k() {
|
|
1868
1870
|
if (o.value) {
|
|
1869
1871
|
const w = u.value;
|
|
1870
1872
|
if (r.value && s.value && d.value && l.value) {
|
|
1871
|
-
const
|
|
1872
|
-
d.value.n && r.value.y + w.translateY < 0 && a.value && (r.value.y = -w.translateY, s.value.height = l.value.height + a.value.y + w.translateY), d.value.w && r.value.x + w.translateX < 0 && a.value && (r.value.x = -w.translateX, s.value.width = l.value.width + a.value.x + w.translateX), s.value.width >
|
|
1873
|
+
const F = w.width - w.pr - w.deltaL - w.translateX - r.value.x, A = w.height - w.pb - w.deltaT - w.translateY - r.value.y;
|
|
1874
|
+
d.value.n && r.value.y + w.translateY < 0 && a.value && (r.value.y = -w.translateY, s.value.height = l.value.height + a.value.y + w.translateY), d.value.w && r.value.x + w.translateX < 0 && a.value && (r.value.x = -w.translateX, s.value.width = l.value.width + a.value.x + w.translateX), s.value.width > F && (s.value.width = F), s.value.height > A && (s.value.height = A);
|
|
1873
1875
|
}
|
|
1874
1876
|
}
|
|
1875
1877
|
}
|
|
1876
|
-
function
|
|
1878
|
+
function H(w) {
|
|
1877
1879
|
if (!i.value || !l.value || !a.value || !d.value)
|
|
1878
1880
|
return;
|
|
1879
1881
|
w.subtract(i.value);
|
|
1880
|
-
const
|
|
1881
|
-
d.value.n ? (r.value.y = a.value.y +
|
|
1882
|
+
const F = w.x, A = w.y;
|
|
1883
|
+
d.value.n ? (r.value.y = a.value.y + A, s.value.height = l.value.height - A) : d.value.s && (s.value.height = l.value.height + A), d.value.e ? s.value.width = l.value.width + F : d.value.w && (s.value.width = l.value.width - F, r.value.x = a.value.x + F), k(), $(), P();
|
|
1882
1884
|
}
|
|
1883
|
-
function
|
|
1885
|
+
function p(w) {
|
|
1884
1886
|
if (!c.value)
|
|
1885
1887
|
return;
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1888
|
+
const F = j.fromEvent(w);
|
|
1889
|
+
F && H(F);
|
|
1888
1890
|
}
|
|
1889
|
-
function
|
|
1891
|
+
function M() {
|
|
1890
1892
|
if (e.value) {
|
|
1891
1893
|
const {
|
|
1892
1894
|
width: w,
|
|
1893
|
-
height:
|
|
1894
|
-
x:
|
|
1895
|
+
height: F,
|
|
1896
|
+
x: A,
|
|
1895
1897
|
y: L
|
|
1896
|
-
} = e.value.getBoundingClientRect(),
|
|
1898
|
+
} = e.value.getBoundingClientRect(), G = j.getTransformInfo(e.value);
|
|
1897
1899
|
return {
|
|
1898
1900
|
size: {
|
|
1899
1901
|
width: w,
|
|
1900
|
-
height:
|
|
1902
|
+
height: F
|
|
1901
1903
|
},
|
|
1902
1904
|
position: {
|
|
1903
|
-
x:
|
|
1904
|
-
y: L -
|
|
1905
|
+
x: A - G.x,
|
|
1906
|
+
y: L - G.y
|
|
1905
1907
|
}
|
|
1906
1908
|
};
|
|
1907
1909
|
}
|
|
1908
1910
|
return null;
|
|
1909
1911
|
}
|
|
1910
|
-
function
|
|
1912
|
+
function R(w) {
|
|
1911
1913
|
if (e.value) {
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
+
const F = M();
|
|
1915
|
+
g.value = F;
|
|
1914
1916
|
}
|
|
1915
|
-
i.value = void 0, l.value = null, a.value = null, s.value = null, r.value = null, d.value = null, c.value = null, document.removeEventListener("mousemove",
|
|
1917
|
+
i.value = void 0, l.value = null, a.value = null, s.value = null, r.value = null, d.value = null, c.value = null, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", R);
|
|
1916
1918
|
}
|
|
1917
|
-
function
|
|
1918
|
-
document.addEventListener("mousemove",
|
|
1919
|
+
function z() {
|
|
1920
|
+
document.addEventListener("mousemove", p), document.addEventListener("mouseup", R);
|
|
1919
1921
|
}
|
|
1920
|
-
function
|
|
1921
|
-
w instanceof MouseEvent && w.button === 2 ||
|
|
1922
|
+
function I(w) {
|
|
1923
|
+
w instanceof MouseEvent && w.button === 2 || C.value && (document.body.click(), w.stopPropagation(), w.preventDefault(), i.value = j.fromEvent(w), c.value = w.target, x(w), z());
|
|
1922
1924
|
}
|
|
1923
|
-
function
|
|
1924
|
-
return e.value = w, m.value &&
|
|
1925
|
+
function V(w) {
|
|
1926
|
+
return e.value = w, m.value && v(ae, null, [v("div", {
|
|
1925
1927
|
class: "fv-resizable-handle fv-resizable-n",
|
|
1926
1928
|
type: "n",
|
|
1927
|
-
onMousedown: (
|
|
1928
|
-
}, null),
|
|
1929
|
+
onMousedown: (F) => I(F)
|
|
1930
|
+
}, null), v("div", {
|
|
1929
1931
|
class: "fv-resizable-handle fv-resizable-e",
|
|
1930
1932
|
type: "e",
|
|
1931
|
-
onMousedown: (
|
|
1932
|
-
}, null),
|
|
1933
|
+
onMousedown: (F) => I(F)
|
|
1934
|
+
}, null), v("div", {
|
|
1933
1935
|
class: "fv-resizable-handle fv-resizable-s",
|
|
1934
1936
|
type: "s",
|
|
1935
|
-
onMousedown: (
|
|
1936
|
-
}, null),
|
|
1937
|
+
onMousedown: (F) => I(F)
|
|
1938
|
+
}, null), v("div", {
|
|
1937
1939
|
class: "fv-resizable-handle fv-resizable-w",
|
|
1938
1940
|
type: "w",
|
|
1939
|
-
onMousedown: (
|
|
1940
|
-
}, null),
|
|
1941
|
+
onMousedown: (F) => I(F)
|
|
1942
|
+
}, null), v("div", {
|
|
1941
1943
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
1942
1944
|
type: "ne",
|
|
1943
|
-
onMousedown: (
|
|
1944
|
-
}, null),
|
|
1945
|
+
onMousedown: (F) => I(F)
|
|
1946
|
+
}, null), v("div", {
|
|
1945
1947
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
1946
1948
|
type: "se",
|
|
1947
|
-
onMousedown: (
|
|
1948
|
-
}, null),
|
|
1949
|
+
onMousedown: (F) => I(F)
|
|
1950
|
+
}, null), v("div", {
|
|
1949
1951
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
1950
1952
|
type: "sw",
|
|
1951
|
-
onMousedown: (
|
|
1952
|
-
}, null),
|
|
1953
|
+
onMousedown: (F) => I(F)
|
|
1954
|
+
}, null), v("div", {
|
|
1953
1955
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
1954
1956
|
type: "nw",
|
|
1955
|
-
onMousedown: (
|
|
1957
|
+
onMousedown: (F) => I(F)
|
|
1956
1958
|
}, null)]);
|
|
1957
1959
|
}
|
|
1958
|
-
function
|
|
1960
|
+
function U(w = !0) {
|
|
1959
1961
|
document.body.click();
|
|
1960
|
-
const
|
|
1961
|
-
w && L && (f.value =
|
|
1962
|
+
const F = o.value || document.body, A = te.getCurrent(F), L = e.value;
|
|
1963
|
+
w && L && (f.value = M(), f.value.transform = L.style.transform), A && L && (s.value = A, s.value.height -= 14, s.value.width -= 14, L.style.height = s.value.height + "px", L.style.width = s.value.width + "px", L.style.left = "7px", L.style.top = "7px", L.style.transform = "", g.value = {
|
|
1962
1964
|
size: s.value,
|
|
1963
1965
|
position: {
|
|
1964
1966
|
x: 0,
|
|
1965
1967
|
y: 0
|
|
1966
1968
|
}
|
|
1967
|
-
},
|
|
1969
|
+
}, C.value = !1, E.value = !0);
|
|
1968
1970
|
}
|
|
1969
|
-
function
|
|
1970
|
-
var w,
|
|
1971
|
+
function W() {
|
|
1972
|
+
var w, F;
|
|
1971
1973
|
if (document.body.click(), f.value) {
|
|
1972
|
-
const
|
|
1974
|
+
const A = {
|
|
1973
1975
|
width: f.value.size.width || 0,
|
|
1974
1976
|
height: f.value.size.height || 0
|
|
1975
1977
|
}, L = {
|
|
1976
|
-
x: (window.innerWidth -
|
|
1977
|
-
y: (window.innerHeight -
|
|
1978
|
+
x: (window.innerWidth - A.width) / 2,
|
|
1979
|
+
y: (window.innerHeight - A.height) / 2
|
|
1978
1980
|
};
|
|
1979
|
-
(w = s.value) == null || w.set(
|
|
1980
|
-
const
|
|
1981
|
-
|
|
1982
|
-
size:
|
|
1981
|
+
(w = s.value) == null || w.set(A), (F = r.value) == null || F.set(L);
|
|
1982
|
+
const G = e.value;
|
|
1983
|
+
G.style.height = A.height + "px", G.style.width = A.width + "px", G.style.left = `${L.x}px`, G.style.top = `${L.y}px`, G.style.transform = "", g.value = {
|
|
1984
|
+
size: A,
|
|
1983
1985
|
position: L
|
|
1984
|
-
},
|
|
1986
|
+
}, C.value = n.draggable, E.value = !1;
|
|
1985
1987
|
}
|
|
1986
1988
|
}
|
|
1987
1989
|
function _() {
|
|
1988
1990
|
if (e.value) {
|
|
1989
|
-
const w =
|
|
1991
|
+
const w = te.getCurrent(e.value);
|
|
1990
1992
|
if (w) {
|
|
1991
1993
|
const {
|
|
1992
|
-
width:
|
|
1993
|
-
height:
|
|
1994
|
+
width: F,
|
|
1995
|
+
height: A
|
|
1994
1996
|
} = w;
|
|
1995
|
-
e.value.style.left = `${(window.innerWidth -
|
|
1997
|
+
e.value.style.left = `${(window.innerWidth - F) / 2}px`, e.value.style.top = `${(window.innerHeight - A) / 2}px`, e.value.style.transform = "";
|
|
1996
1998
|
}
|
|
1997
1999
|
}
|
|
1998
2000
|
}
|
|
1999
|
-
function
|
|
2001
|
+
function N() {
|
|
2000
2002
|
const w = () => {
|
|
2001
|
-
E.value ?
|
|
2003
|
+
E.value ? U(!1) : _(), document.body.click();
|
|
2002
2004
|
};
|
|
2003
2005
|
return window.addEventListener("resize", w), () => {
|
|
2004
2006
|
window.removeEventListener("resize", w);
|
|
2005
2007
|
};
|
|
2006
2008
|
}
|
|
2007
|
-
const q =
|
|
2009
|
+
const q = N();
|
|
2008
2010
|
return {
|
|
2009
|
-
renderResizeBar:
|
|
2011
|
+
renderResizeBar: V,
|
|
2010
2012
|
boundingElement: o,
|
|
2011
|
-
resizedEventParam:
|
|
2012
|
-
maximize:
|
|
2013
|
-
restore:
|
|
2014
|
-
allowDrag:
|
|
2013
|
+
resizedEventParam: g,
|
|
2014
|
+
maximize: U,
|
|
2015
|
+
restore: W,
|
|
2016
|
+
allowDrag: C,
|
|
2015
2017
|
isMaximized: E,
|
|
2016
2018
|
unWindowResizeHandle: q,
|
|
2017
2019
|
moveToCenter: _
|
|
2018
2020
|
};
|
|
2019
2021
|
}
|
|
2020
|
-
function
|
|
2021
|
-
const o =
|
|
2022
|
-
|
|
2023
|
-
a.value.style.cursor =
|
|
2022
|
+
function nn(n, t, e) {
|
|
2023
|
+
const o = h(), i = h(n.draggable), l = h(n.lockAxis), a = h(), s = h(), r = h(!1), d = h(new j(0, 0)), c = h(new j(0, 0)), u = h(new j(0, 0)), g = h(new j(0, 0));
|
|
2024
|
+
D(() => e.value, (p) => {
|
|
2025
|
+
a.value.style.cursor = p ? "move" : "default";
|
|
2024
2026
|
});
|
|
2025
|
-
function m(
|
|
2026
|
-
if (
|
|
2027
|
+
function m(p, M) {
|
|
2028
|
+
if (M.tagName === "BUTTON")
|
|
2027
2029
|
return !1;
|
|
2028
|
-
if (
|
|
2030
|
+
if (M === p)
|
|
2029
2031
|
return !0;
|
|
2030
|
-
for (const
|
|
2031
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2032
|
+
for (const R in M.children)
|
|
2033
|
+
if (Object.prototype.hasOwnProperty.call(M.children, R) && m(p, M.children[R]))
|
|
2032
2034
|
return !0;
|
|
2033
2035
|
return !1;
|
|
2034
2036
|
}
|
|
2035
2037
|
function f() {
|
|
2036
|
-
var
|
|
2037
|
-
let
|
|
2038
|
-
l.value === "x" ? (
|
|
2039
|
-
const
|
|
2040
|
-
o.value && (o.value.style.transform =
|
|
2038
|
+
var z, I;
|
|
2039
|
+
let p = u.value.x + c.value.x, M = u.value.y + c.value.y;
|
|
2040
|
+
l.value === "x" ? (p = ((z = d.value) == null ? void 0 : z.x) || 0, u.value.x = 0) : l.value === "y" && (M = ((I = d.value) == null ? void 0 : I.y) || 0, u.value.y = 0);
|
|
2041
|
+
const R = `translate3d(${Math.round(p)}px, ${Math.round(M)}px, 0px)`;
|
|
2042
|
+
o.value && (o.value.style.transform = R), g.value.x = p, g.value.y = M;
|
|
2041
2043
|
}
|
|
2042
|
-
function
|
|
2044
|
+
function C() {
|
|
2043
2045
|
if (!s.value || !o.value)
|
|
2044
2046
|
return null;
|
|
2045
|
-
const
|
|
2046
|
-
top:
|
|
2047
|
-
right:
|
|
2048
|
-
bottom:
|
|
2049
|
-
left:
|
|
2047
|
+
const p = s.value.getBoundingClientRect(), M = o.value.getBoundingClientRect(), R = {
|
|
2048
|
+
top: p.top < M.top,
|
|
2049
|
+
right: p.right > M.right,
|
|
2050
|
+
bottom: p.bottom > M.bottom,
|
|
2051
|
+
left: p.left < M.left
|
|
2050
2052
|
};
|
|
2051
|
-
return
|
|
2053
|
+
return R.top || (u.value.y -= M.top - p.top), R.bottom || (u.value.y -= M.bottom - p.bottom), R.right || (u.value.x -= M.right - p.right), R.left || (u.value.x -= M.left - p.left), f(), R;
|
|
2052
2054
|
}
|
|
2053
|
-
function E(
|
|
2054
|
-
|
|
2055
|
+
function E(p) {
|
|
2056
|
+
p && (d.value && p.subtract(d.value), u.value.set(p), f(), C());
|
|
2055
2057
|
}
|
|
2056
|
-
function B(
|
|
2057
|
-
r.value && i.value && (
|
|
2058
|
+
function B(p) {
|
|
2059
|
+
r.value && i.value && (p.stopPropagation(), p.preventDefault(), E(j.fromEvent(p, a.value)));
|
|
2058
2060
|
}
|
|
2059
|
-
function
|
|
2060
|
-
var
|
|
2061
|
-
r.value && (r.value = !1, c.value.add(u.value), u.value.reset(), (
|
|
2061
|
+
function x() {
|
|
2062
|
+
var p;
|
|
2063
|
+
r.value && (r.value = !1, c.value.add(u.value), u.value.reset(), (p = o.value) == null || p.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", x));
|
|
2062
2064
|
}
|
|
2063
|
-
function
|
|
2064
|
-
!r.value && a.value && (r.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", B), document.addEventListener("mouseup",
|
|
2065
|
+
function P() {
|
|
2066
|
+
!r.value && a.value && (r.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", B), document.addEventListener("mouseup", x));
|
|
2065
2067
|
}
|
|
2066
|
-
function
|
|
2068
|
+
function $() {
|
|
2067
2069
|
if (o.value) {
|
|
2068
|
-
const
|
|
2069
|
-
c.value.set(
|
|
2070
|
+
const p = j.getTransformInfo(o.value);
|
|
2071
|
+
c.value.set(p);
|
|
2070
2072
|
return;
|
|
2071
2073
|
}
|
|
2072
2074
|
c.value.reset();
|
|
2073
2075
|
}
|
|
2074
|
-
function
|
|
2075
|
-
if (!e.value ||
|
|
2076
|
+
function k(p) {
|
|
2077
|
+
if (!e.value || p instanceof MouseEvent && p.button === 2)
|
|
2076
2078
|
return;
|
|
2077
|
-
const
|
|
2078
|
-
a.value !== void 0 &&
|
|
2079
|
+
const M = p.target || p.srcElement;
|
|
2080
|
+
a.value !== void 0 && M && !m(M, a.value) || i.value !== !1 && (document.body.click(), p.stopPropagation(), p.preventDefault(), d.value = j.fromEvent(p, o.value), $(), P());
|
|
2079
2081
|
}
|
|
2080
|
-
function
|
|
2081
|
-
if (i.value &&
|
|
2082
|
-
if (
|
|
2083
|
-
a.value =
|
|
2082
|
+
function H(p, M, R) {
|
|
2083
|
+
if (i.value && M) {
|
|
2084
|
+
if (p)
|
|
2085
|
+
a.value = p;
|
|
2084
2086
|
else if (n.dragHandle) {
|
|
2085
2087
|
if (n.dragHandle instanceof HTMLElement)
|
|
2086
2088
|
a.value = n.dragHandle;
|
|
2087
2089
|
else if (typeof n.dragHandle == "string") {
|
|
2088
|
-
const
|
|
2089
|
-
|
|
2090
|
+
const z = M.querySelector(n.dragHandle);
|
|
2091
|
+
z && (a.value = z);
|
|
2090
2092
|
}
|
|
2091
2093
|
}
|
|
2092
|
-
o.value =
|
|
2094
|
+
o.value = M, s.value = R, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", k)) : i.value = !1;
|
|
2093
2095
|
}
|
|
2094
2096
|
}
|
|
2095
2097
|
return {
|
|
2096
|
-
registerDraggle:
|
|
2097
|
-
resetTranslate:
|
|
2098
|
+
registerDraggle: H,
|
|
2099
|
+
resetTranslate: $
|
|
2098
2100
|
};
|
|
2099
2101
|
}
|
|
2100
|
-
function
|
|
2102
|
+
function He(n, t) {
|
|
2101
2103
|
if (n) {
|
|
2102
2104
|
const e = (o) => {
|
|
2103
2105
|
o.key.toLowerCase() === n.toLowerCase() && t({ event: o, key: n });
|
|
@@ -2107,315 +2109,320 @@ function Ve(n, t) {
|
|
|
2107
2109
|
};
|
|
2108
2110
|
}
|
|
2109
2111
|
}
|
|
2110
|
-
function
|
|
2111
|
-
const e =
|
|
2112
|
+
function on(n, t) {
|
|
2113
|
+
const e = h(n.enableEsc);
|
|
2112
2114
|
let o = null;
|
|
2113
|
-
return e.value ? (o =
|
|
2115
|
+
return e.value ? (o = He("Escape", (i) => {
|
|
2114
2116
|
t.emit("esc", { event: i.event, type: "esc" });
|
|
2115
2117
|
}), {
|
|
2116
2118
|
remove: o
|
|
2117
2119
|
}) : null;
|
|
2118
2120
|
}
|
|
2119
|
-
function
|
|
2120
|
-
const e =
|
|
2121
|
+
function ln(n, t) {
|
|
2122
|
+
const e = h(n.enableEnter);
|
|
2121
2123
|
let o = null;
|
|
2122
|
-
return e.value ? (o =
|
|
2124
|
+
return e.value ? (o = He("Enter", (i) => {
|
|
2123
2125
|
t.emit("enter", { event: i.event, type: "enter" });
|
|
2124
2126
|
}), {
|
|
2125
2127
|
remove: o
|
|
2126
2128
|
}) : null;
|
|
2127
2129
|
}
|
|
2128
|
-
const le = /* @__PURE__ */
|
|
2130
|
+
const le = /* @__PURE__ */ J({
|
|
2129
2131
|
name: "FModal",
|
|
2130
|
-
props:
|
|
2132
|
+
props: en,
|
|
2131
2133
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
2132
2134
|
setup(n, t) {
|
|
2133
|
-
const e =
|
|
2134
|
-
B.value === "错误提示" && (B.value =
|
|
2135
|
-
const
|
|
2136
|
-
function
|
|
2137
|
-
const
|
|
2135
|
+
const e = h(n.width || 300), o = h(n.height || 200), i = h(n.modelValue), l = h(""), a = h(n.class), s = h(n.fitContent), r = h(n.showHeader), d = h(""), c = h(n.showCloseButton), u = h(n.showMaxButton), g = h(!1), m = h(n.dialogType), f = h(n.src), C = h(""), E = h(n.showButtons), B = h(n.title), x = h(n.containment || null), P = h();
|
|
2136
|
+
B.value === "错误提示" && (B.value = ne.getLocaleValue("messageBox.errorTitle"));
|
|
2137
|
+
const $ = h(!1);
|
|
2138
|
+
function k(y, O) {
|
|
2139
|
+
const X = O ? "accept" : "cancel";
|
|
2138
2140
|
Promise.resolve().then(() => {
|
|
2139
|
-
var
|
|
2140
|
-
return (
|
|
2141
|
-
closeType:
|
|
2141
|
+
var K;
|
|
2142
|
+
return (K = n.beforeClose) == null ? void 0 : K.call(n, {
|
|
2143
|
+
closeType: X
|
|
2142
2144
|
});
|
|
2143
|
-
}).then((
|
|
2144
|
-
|
|
2145
|
+
}).then((K) => {
|
|
2146
|
+
K && (i.value = !1, t.emit("update:modelValue", !1), O != null && t.emit(O ? "accept" : "cancel"), t.emit("closed", y));
|
|
2145
2147
|
});
|
|
2146
2148
|
}
|
|
2147
|
-
const
|
|
2149
|
+
const H = [{
|
|
2148
2150
|
name: "cancel",
|
|
2149
|
-
text:
|
|
2151
|
+
text: ne.getLocaleValue("messageBox.cancel") || "取消",
|
|
2150
2152
|
class: "btn btn-secondary",
|
|
2151
2153
|
handle: (y) => {
|
|
2152
|
-
|
|
2154
|
+
k(y, !1);
|
|
2153
2155
|
}
|
|
2154
2156
|
}, {
|
|
2155
2157
|
name: "accept",
|
|
2156
|
-
text:
|
|
2158
|
+
text: ne.getLocaleValue("messageBox.ok") || "确定",
|
|
2157
2159
|
class: "btn btn-primary",
|
|
2158
2160
|
handle: (y) => {
|
|
2159
|
-
|
|
2161
|
+
k(y, !0);
|
|
2160
2162
|
}
|
|
2161
|
-
}],
|
|
2162
|
-
renderResizeBar:
|
|
2163
|
-
maximize:
|
|
2163
|
+
}], p = h(n.buttons && n.buttons.length ? n.buttons : H), M = S(() => !!d.value), R = S(() => !!E.value && !!p.value), z = h(), I = h(), V = h(!1), {
|
|
2164
|
+
renderResizeBar: U,
|
|
2165
|
+
maximize: W,
|
|
2164
2166
|
restore: _,
|
|
2165
|
-
boundingElement:
|
|
2167
|
+
boundingElement: N,
|
|
2166
2168
|
resizedEventParam: q,
|
|
2167
2169
|
allowDrag: w,
|
|
2168
|
-
unWindowResizeHandle:
|
|
2169
|
-
moveToCenter:
|
|
2170
|
-
} =
|
|
2170
|
+
unWindowResizeHandle: F,
|
|
2171
|
+
moveToCenter: A
|
|
2172
|
+
} = tn(n), {
|
|
2171
2173
|
registerDraggle: L
|
|
2172
|
-
} =
|
|
2173
|
-
function
|
|
2174
|
+
} = nn(n, t, w);
|
|
2175
|
+
function G() {
|
|
2174
2176
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
2175
2177
|
}
|
|
2176
|
-
function
|
|
2178
|
+
function Ye() {
|
|
2177
2179
|
const y = document.querySelectorAll(".farris-modal").length;
|
|
2178
|
-
(!y || y - 1 <= 0) && document.body.classList.remove("modal-open"),
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
y !==
|
|
2182
|
-
}),
|
|
2183
|
-
y !==
|
|
2184
|
-
|
|
2185
|
-
}), y || (
|
|
2186
|
-
}),
|
|
2187
|
-
y !==
|
|
2188
|
-
}),
|
|
2189
|
-
y !==
|
|
2190
|
-
}),
|
|
2191
|
-
const
|
|
2192
|
-
JSON.stringify(
|
|
2180
|
+
(!y || y - 1 <= 0) && document.body.classList.remove("modal-open"), P.value && P.value.classList.remove("show");
|
|
2181
|
+
}
|
|
2182
|
+
D(() => n.title, (y, O) => {
|
|
2183
|
+
y !== O && (B.value = y);
|
|
2184
|
+
}), D(() => n.modelValue, (y, O) => {
|
|
2185
|
+
y !== O && (i.value = y, i.value && n.draggable && oe(() => {
|
|
2186
|
+
I.value && !x.value && (x.value = I.value.parentElement, N.value = x.value, L(z.value, I.value, N.value), A());
|
|
2187
|
+
}), y || (x.value && (x.value = null), Ye())), i.value ? $.value = G() : (V.value = !1, w.value = n.draggable);
|
|
2188
|
+
}), D(() => n.showHeader, (y, O) => {
|
|
2189
|
+
y !== O && (r.value = y);
|
|
2190
|
+
}), D(() => n.showButtons, (y, O) => {
|
|
2191
|
+
y !== O && (E.value = y);
|
|
2192
|
+
}), D(() => q.value, (y, O) => {
|
|
2193
|
+
const X = y || {}, K = O || {};
|
|
2194
|
+
JSON.stringify(X) !== JSON.stringify(K) && t.emit("resize", {
|
|
2193
2195
|
newSize: y,
|
|
2194
|
-
oldSize:
|
|
2195
|
-
isMaximized:
|
|
2196
|
+
oldSize: O,
|
|
2197
|
+
isMaximized: V.value
|
|
2196
2198
|
});
|
|
2197
|
-
}),
|
|
2198
|
-
(y[0] !==
|
|
2199
|
+
}), D([() => n.width, () => n.height], (y, O) => {
|
|
2200
|
+
(y[0] !== O[0] || y[1] !== O[1]) && (e.value = y[0] || 500, o.value = y[1] || 600);
|
|
2201
|
+
}), D(() => n.class, (y, O) => {
|
|
2202
|
+
a.value = y;
|
|
2199
2203
|
});
|
|
2200
|
-
const
|
|
2201
|
-
var
|
|
2204
|
+
const se = S(() => (i.value && document.body.classList.add("modal-open"), i.value)), Je = S(() => {
|
|
2205
|
+
var X;
|
|
2202
2206
|
const y = {
|
|
2203
2207
|
modal: !0,
|
|
2204
2208
|
"farris-modal": !0,
|
|
2205
2209
|
fade: !0
|
|
2206
2210
|
};
|
|
2207
|
-
y["f-modal-fitContent"] = !!s.value, y.show = !!
|
|
2208
|
-
const
|
|
2209
|
-
return
|
|
2210
|
-
}),
|
|
2211
|
-
var
|
|
2211
|
+
y["f-modal-fitContent"] = !!s.value, y.show = !!se.value;
|
|
2212
|
+
const O = (X = n.maskClass) == null ? void 0 : X.split(" ");
|
|
2213
|
+
return O == null || O.reduce((K, Y) => (K[Y] = !0, K), y), y;
|
|
2214
|
+
}), Ze = S(() => {
|
|
2215
|
+
var X;
|
|
2212
2216
|
const y = {
|
|
2213
2217
|
"modal-dialog": !0
|
|
2214
|
-
},
|
|
2215
|
-
return
|
|
2216
|
-
}),
|
|
2217
|
-
const y = document.documentElement.clientWidth,
|
|
2218
|
+
}, O = (X = a.value) == null ? void 0 : X.split(" ");
|
|
2219
|
+
return O == null || O.reduce((K, Y) => (K[Y] = !0, K), y), y;
|
|
2220
|
+
}), Ie = () => bt() && !n.isMessager, Qe = S(() => {
|
|
2221
|
+
const y = document.documentElement.clientWidth, O = document.documentElement.clientHeight, X = Math.min(e.value, y), K = s.value ? "auto" : `${Math.min(o.value, O - 10)}px`, Y = {
|
|
2218
2222
|
position: "absolute",
|
|
2219
|
-
top: `${(window.innerHeight - parseInt(
|
|
2220
|
-
left: `${(window.innerWidth -
|
|
2221
|
-
width: `${
|
|
2222
|
-
height:
|
|
2223
|
+
top: `${(window.innerHeight - parseInt(K === "auto" ? "0" : K)) / 2}px`,
|
|
2224
|
+
left: `${(window.innerWidth - X) / 2}px`,
|
|
2225
|
+
width: `${X}px`,
|
|
2226
|
+
height: K
|
|
2223
2227
|
};
|
|
2224
|
-
return n.mask || (
|
|
2225
|
-
}),
|
|
2228
|
+
return Ie() && (Y.top = "0px", Y.left = "0px", Y.width = `${window.innerWidth}px`, Y.height = `${window.innerHeight}px`), n.mask || (Y.pointerEvents = "auto"), Y;
|
|
2229
|
+
}), Ee = h(Se() || 1050), et = S(() => {
|
|
2226
2230
|
const y = {
|
|
2227
2231
|
display: "block",
|
|
2228
|
-
|
|
2232
|
+
overflow: "hidden"
|
|
2229
2233
|
};
|
|
2230
|
-
return n.mask || (y.pointerEvents = "none", y.backgroundColor = "transparent"),
|
|
2231
|
-
}),
|
|
2234
|
+
return n.mask || (y.pointerEvents = "none", y.backgroundColor = "transparent"), $.value && (y.backgroundColor = "transparent"), y.zIndex = Ee.value, y;
|
|
2235
|
+
}), tt = S(() => ({
|
|
2232
2236
|
"modal-content": !0,
|
|
2233
|
-
"modal-content-has-header": r.value
|
|
2234
|
-
|
|
2237
|
+
"modal-content-has-header": r.value,
|
|
2238
|
+
"is-mobile": Ie()
|
|
2239
|
+
})), nt = S(() => {
|
|
2235
2240
|
const y = {
|
|
2236
2241
|
display: r.value ? "" : "none"
|
|
2237
2242
|
};
|
|
2238
2243
|
return y["pointer-events"] = w.value ? "auto" : "none", y;
|
|
2239
|
-
}),
|
|
2244
|
+
}), it = S(() => ({
|
|
2240
2245
|
"f-icon": !0,
|
|
2241
2246
|
modal_maximize: !0,
|
|
2242
|
-
modalrevert:
|
|
2243
|
-
})),
|
|
2247
|
+
modalrevert: V.value
|
|
2248
|
+
})), ot = S(() => ({
|
|
2244
2249
|
"modal-body": !0,
|
|
2245
2250
|
"f-utils-flex-column": m.value === "iframe",
|
|
2246
2251
|
"f-utils-fill": !0
|
|
2247
2252
|
}));
|
|
2248
|
-
function
|
|
2253
|
+
function lt() {
|
|
2249
2254
|
return {
|
|
2250
2255
|
height: `${n.footerHeight || 60}px`
|
|
2251
2256
|
};
|
|
2252
2257
|
}
|
|
2253
|
-
const
|
|
2258
|
+
const at = S(() => {
|
|
2254
2259
|
const y = {
|
|
2255
|
-
textAlgin:
|
|
2256
|
-
},
|
|
2257
|
-
return Object.assign(y,
|
|
2260
|
+
textAlgin: C.value
|
|
2261
|
+
}, O = lt();
|
|
2262
|
+
return Object.assign(y, O);
|
|
2258
2263
|
});
|
|
2259
|
-
function
|
|
2260
|
-
if (y == null || y.stopPropagation(),
|
|
2261
|
-
|
|
2264
|
+
function Fe(y) {
|
|
2265
|
+
if (y == null || y.stopPropagation(), V.value) {
|
|
2266
|
+
V.value = !1, _();
|
|
2262
2267
|
return;
|
|
2263
2268
|
}
|
|
2264
|
-
|
|
2269
|
+
W(), V.value = !0;
|
|
2265
2270
|
}
|
|
2266
|
-
async function
|
|
2267
|
-
y.handle && await y.handle(
|
|
2271
|
+
async function st(y, O) {
|
|
2272
|
+
y.handle && await y.handle(O, y) && t.emit("closed", O);
|
|
2268
2273
|
}
|
|
2269
|
-
function
|
|
2270
|
-
y.width && (e.value = y.width), y.height && (o.value = y.height), y.buttons && (
|
|
2274
|
+
function rt(y) {
|
|
2275
|
+
y.width && (e.value = y.width), y.height && (o.value = y.height), y.buttons && (p.value = y.buttons), y.title && (B.value = y.title);
|
|
2271
2276
|
}
|
|
2272
2277
|
let he = null, ve = null;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
}),
|
|
2276
|
-
|
|
2277
|
-
}),
|
|
2278
|
-
|
|
2278
|
+
Mt(() => {
|
|
2279
|
+
$.value = G();
|
|
2280
|
+
}), Z(() => {
|
|
2281
|
+
I.value && !x.value && (x.value = I.value.parentElement, N.value = x.value, L(z.value, I.value, N.value)), se.value && document.body.classList.add("modal-open"), he = on(n, t), ve = ln(n, t);
|
|
2282
|
+
}), pe(() => {
|
|
2283
|
+
F && F(), he && he.remove(), ve && ve.remove();
|
|
2279
2284
|
}), t.expose({
|
|
2280
|
-
modalElementRef:
|
|
2281
|
-
updateModalOptions:
|
|
2282
|
-
close:
|
|
2283
|
-
maxDialog:
|
|
2284
|
-
isMaximized:
|
|
2285
|
+
modalElementRef: I,
|
|
2286
|
+
updateModalOptions: rt,
|
|
2287
|
+
close: k,
|
|
2288
|
+
maxDialog: Fe,
|
|
2289
|
+
isMaximized: V
|
|
2285
2290
|
});
|
|
2286
|
-
function
|
|
2287
|
-
return
|
|
2291
|
+
function ut() {
|
|
2292
|
+
return v("ul", null, [g.value && v("li", {
|
|
2288
2293
|
class: "f-btn-icon f-bare"
|
|
2289
|
-
}, [
|
|
2294
|
+
}, [v("span", {
|
|
2290
2295
|
class: "f-icon modal_minimize"
|
|
2291
|
-
}, null)]), u.value &&
|
|
2292
|
-
onClick:
|
|
2296
|
+
}, null)]), u.value && v("li", {
|
|
2297
|
+
onClick: Fe,
|
|
2293
2298
|
class: "f-btn-icon f-bare",
|
|
2294
2299
|
style: "pointer-events: auto;"
|
|
2295
|
-
}, [
|
|
2296
|
-
class:
|
|
2297
|
-
}, null)]), c.value &&
|
|
2300
|
+
}, [v("span", {
|
|
2301
|
+
class: it.value
|
|
2302
|
+
}, null)]), c.value && v("li", {
|
|
2298
2303
|
class: "f-btn-icon f-bare",
|
|
2299
|
-
onClick: (y) =>
|
|
2304
|
+
onClick: (y) => k(y, !1),
|
|
2300
2305
|
style: "pointer-events: auto;"
|
|
2301
|
-
}, [
|
|
2306
|
+
}, [v("span", {
|
|
2302
2307
|
class: "f-icon modal_close"
|
|
2303
2308
|
}, null)])]);
|
|
2304
2309
|
}
|
|
2305
|
-
function
|
|
2306
|
-
return
|
|
2310
|
+
function dt() {
|
|
2311
|
+
return v("div", {
|
|
2307
2312
|
class: "modal-footer",
|
|
2308
|
-
style:
|
|
2309
|
-
}, [
|
|
2310
|
-
const
|
|
2311
|
-
return
|
|
2313
|
+
style: at.value
|
|
2314
|
+
}, [p.value && p.value.map((y) => {
|
|
2315
|
+
const O = h(y.disabled);
|
|
2316
|
+
return v("button", {
|
|
2312
2317
|
name: y.name,
|
|
2313
2318
|
type: "button",
|
|
2314
|
-
disabled:
|
|
2319
|
+
disabled: O.value,
|
|
2315
2320
|
class: y.class + (y.iconClass ? " btn-icontext" : ""),
|
|
2316
|
-
onClick: (
|
|
2317
|
-
|
|
2321
|
+
onClick: (X) => {
|
|
2322
|
+
st(y, X);
|
|
2318
2323
|
}
|
|
2319
|
-
}, [!!y.iconClass &&
|
|
2324
|
+
}, [!!y.iconClass && v("i", {
|
|
2320
2325
|
class: y.iconClass
|
|
2321
2326
|
}, null), y.text]);
|
|
2322
2327
|
})]);
|
|
2323
2328
|
}
|
|
2324
|
-
function
|
|
2325
|
-
return
|
|
2326
|
-
ref:
|
|
2329
|
+
function ct() {
|
|
2330
|
+
return v("div", {
|
|
2331
|
+
ref: z,
|
|
2327
2332
|
class: "modal-header",
|
|
2328
|
-
style:
|
|
2329
|
-
}, [t.slots.headerTemplate ? t.slots.headerTemplate() :
|
|
2333
|
+
style: nt.value
|
|
2334
|
+
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
2330
2335
|
class: "modal-title"
|
|
2331
|
-
}, [
|
|
2336
|
+
}, [M.value && v("span", {
|
|
2332
2337
|
class: d.value,
|
|
2333
2338
|
style: "margin-right: 8px"
|
|
2334
|
-
}, null),
|
|
2339
|
+
}, null), v("span", {
|
|
2335
2340
|
class: "modal-title-label"
|
|
2336
|
-
}, [B.value])]),
|
|
2341
|
+
}, [B.value])]), v("div", {
|
|
2337
2342
|
class: "actions"
|
|
2338
|
-
}, [
|
|
2343
|
+
}, [ut()])]);
|
|
2339
2344
|
}
|
|
2340
|
-
function
|
|
2341
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
2345
|
+
function ft() {
|
|
2346
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : R.value && dt();
|
|
2342
2347
|
}
|
|
2343
|
-
function
|
|
2348
|
+
function mt(y) {
|
|
2344
2349
|
if (y.stopPropagation(), n.allowClickMaskToClose) {
|
|
2345
|
-
if (y.target !==
|
|
2350
|
+
if (y.target !== P.value)
|
|
2346
2351
|
return;
|
|
2347
|
-
|
|
2352
|
+
k(y, !1);
|
|
2348
2353
|
}
|
|
2349
2354
|
}
|
|
2350
|
-
function
|
|
2351
|
-
var y,
|
|
2352
|
-
return
|
|
2355
|
+
function pt() {
|
|
2356
|
+
var y, O;
|
|
2357
|
+
return v("div", {
|
|
2353
2358
|
id: l.value,
|
|
2354
|
-
class:
|
|
2355
|
-
style:
|
|
2356
|
-
ref:
|
|
2357
|
-
}, [
|
|
2358
|
-
class:
|
|
2359
|
-
}, [r.value &&
|
|
2360
|
-
class:
|
|
2361
|
-
}, [(
|
|
2359
|
+
class: Ze.value,
|
|
2360
|
+
style: Qe.value,
|
|
2361
|
+
ref: I
|
|
2362
|
+
}, [v("div", {
|
|
2363
|
+
class: tt.value
|
|
2364
|
+
}, [r.value && ct(), v("div", {
|
|
2365
|
+
class: ot.value
|
|
2366
|
+
}, [(O = (y = t.slots).default) == null ? void 0 : O.call(y), m.value === "iframe" && v("iframe", {
|
|
2362
2367
|
title: l.value,
|
|
2363
2368
|
class: "f-utils-fill",
|
|
2364
2369
|
width: "100%",
|
|
2365
2370
|
frameborder: "0",
|
|
2366
2371
|
src: f.value
|
|
2367
|
-
}, null)]),
|
|
2372
|
+
}, null)]), ft()]), !s.value && I.value && !V.value && U(I.value)]);
|
|
2368
2373
|
}
|
|
2369
|
-
function
|
|
2374
|
+
function ht(y) {
|
|
2370
2375
|
return y || "body";
|
|
2371
2376
|
}
|
|
2372
|
-
return () =>
|
|
2373
|
-
|
|
2377
|
+
return It(() => {
|
|
2378
|
+
se.value && (Ee.value = Se() || 1050);
|
|
2379
|
+
}), () => v(Re, {
|
|
2380
|
+
to: ht(n.host)
|
|
2374
2381
|
}, {
|
|
2375
|
-
default: () => [
|
|
2382
|
+
default: () => [se.value && v(Ne, {
|
|
2376
2383
|
name: "fade",
|
|
2377
2384
|
appear: !0
|
|
2378
2385
|
}, {
|
|
2379
|
-
default: () => [
|
|
2380
|
-
ref:
|
|
2381
|
-
class:
|
|
2382
|
-
style:
|
|
2383
|
-
onClick:
|
|
2384
|
-
}, [
|
|
2386
|
+
default: () => [v("div", {
|
|
2387
|
+
ref: P,
|
|
2388
|
+
class: Je.value,
|
|
2389
|
+
style: et.value,
|
|
2390
|
+
onClick: mt
|
|
2391
|
+
}, [pt()])]
|
|
2385
2392
|
})]
|
|
2386
2393
|
});
|
|
2387
2394
|
}
|
|
2388
2395
|
});
|
|
2389
|
-
function
|
|
2396
|
+
function Ae(n) {
|
|
2390
2397
|
if (n.content && n.content.render)
|
|
2391
2398
|
return n.content.render;
|
|
2392
2399
|
if (n.render && typeof n.render == "function")
|
|
2393
2400
|
return n.render;
|
|
2394
2401
|
}
|
|
2395
|
-
function
|
|
2402
|
+
function an(n) {
|
|
2396
2403
|
const t = document.createElement("div");
|
|
2397
2404
|
t.style.display = "contents";
|
|
2398
2405
|
const e = we({
|
|
2399
2406
|
setup(o, i) {
|
|
2400
|
-
|
|
2407
|
+
pe(() => {
|
|
2401
2408
|
document.body.removeChild(t);
|
|
2402
2409
|
});
|
|
2403
|
-
const l =
|
|
2410
|
+
const l = h(), a = h(n.class || ""), s = h(!!n.showButtons), r = h(!!n.showHeader), d = h(n.showCloseButton == null ? !0 : n.showCloseButton), c = h(!0), u = h(n.title || ""), g = n.acceptCallback || (() => {
|
|
2404
2411
|
}), m = n.rejectCallback || (() => {
|
|
2405
|
-
}), f = n.closedCallback || ((
|
|
2406
|
-
}),
|
|
2407
|
-
}), E = n.stopMoveHandle || ((
|
|
2408
|
-
}), B =
|
|
2409
|
-
c.value = !1, e.unmount(), f(
|
|
2412
|
+
}), f = n.closedCallback || ((P) => {
|
|
2413
|
+
}), C = n.resizeHandle || ((P) => {
|
|
2414
|
+
}), E = n.stopMoveHandle || ((P) => {
|
|
2415
|
+
}), B = Ae(n), x = (P) => {
|
|
2416
|
+
c.value = !1, e.unmount(), f(P);
|
|
2410
2417
|
};
|
|
2411
|
-
return
|
|
2418
|
+
return Z(() => {
|
|
2412
2419
|
}), i.expose({
|
|
2413
2420
|
modalRef: l
|
|
2414
|
-
}), () =>
|
|
2421
|
+
}), () => v(le, {
|
|
2415
2422
|
ref: l,
|
|
2416
2423
|
class: a.value,
|
|
2417
2424
|
modelValue: c.value,
|
|
2418
|
-
"onUpdate:modelValue": (
|
|
2425
|
+
"onUpdate:modelValue": (P) => c.value = P,
|
|
2419
2426
|
title: u.value,
|
|
2420
2427
|
width: n.width,
|
|
2421
2428
|
height: n.height,
|
|
@@ -2424,27 +2431,27 @@ function _t(n) {
|
|
|
2424
2431
|
"show-buttons": s.value,
|
|
2425
2432
|
"show-close-button": d.value,
|
|
2426
2433
|
"show-max-button": !1,
|
|
2427
|
-
onAccept:
|
|
2434
|
+
onAccept: g,
|
|
2428
2435
|
onCancel: m,
|
|
2429
2436
|
fitContent: n.fitContent == null ? !0 : n.fitContent,
|
|
2430
|
-
onClosed:
|
|
2431
|
-
onResize:
|
|
2437
|
+
onClosed: x,
|
|
2438
|
+
onResize: C,
|
|
2432
2439
|
onStopMove: E
|
|
2433
2440
|
}, {
|
|
2434
2441
|
default: () => [B && B(e)]
|
|
2435
2442
|
});
|
|
2436
2443
|
}
|
|
2437
2444
|
});
|
|
2438
|
-
return document.body.appendChild(t), e.use(
|
|
2445
|
+
return document.body.appendChild(t), e.use(ne.i18n), e.mount(t), e;
|
|
2439
2446
|
}
|
|
2440
|
-
class
|
|
2447
|
+
class sn {
|
|
2441
2448
|
constructor(t) {
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2449
|
+
T(this, "appContext", null);
|
|
2450
|
+
T(this, "modalRef", h());
|
|
2451
|
+
T(this, "activeModalIndex", h(0));
|
|
2452
|
+
T(this, "modalRefs", {});
|
|
2453
|
+
T(this, "isUseEscCloseModal", h(!1));
|
|
2454
|
+
T(this, "activeModalInstance", S(() => this.modalRefs[this.activeModalIndex.value]));
|
|
2448
2455
|
this.app = t, this.appContext = t ? t._context : null;
|
|
2449
2456
|
}
|
|
2450
2457
|
getCurrentModal() {
|
|
@@ -2469,7 +2476,7 @@ class Yt {
|
|
|
2469
2476
|
showButtons: !0,
|
|
2470
2477
|
showHeader: !0
|
|
2471
2478
|
}, t);
|
|
2472
|
-
return
|
|
2479
|
+
return an(e);
|
|
2473
2480
|
}
|
|
2474
2481
|
close(t) {
|
|
2475
2482
|
var e, o;
|
|
@@ -2478,43 +2485,44 @@ class Yt {
|
|
|
2478
2485
|
open(t) {
|
|
2479
2486
|
const e = document.createDocumentFragment();
|
|
2480
2487
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
2481
|
-
const o =
|
|
2488
|
+
const o = Et(Object.assign({
|
|
2482
2489
|
title: "",
|
|
2483
2490
|
showButtons: !0,
|
|
2484
2491
|
showHeader: !0
|
|
2485
|
-
}, t)), i =
|
|
2492
|
+
}, t)), i = h(!0), l = o.value.acceptCallback || (() => {
|
|
2486
2493
|
}), a = o.value.rejectCallback || (() => {
|
|
2487
|
-
}), s = o.value.closedCallback || ((
|
|
2488
|
-
}), r = o.value.resizeHandle || ((
|
|
2489
|
-
}), d = t.stopMoveHandle || ((
|
|
2494
|
+
}), s = o.value.closedCallback || ((k, H) => {
|
|
2495
|
+
}), r = o.value.resizeHandle || ((k) => {
|
|
2496
|
+
}), d = t.stopMoveHandle || ((k) => {
|
|
2490
2497
|
});
|
|
2491
2498
|
let c;
|
|
2492
|
-
const u =
|
|
2493
|
-
var
|
|
2499
|
+
const u = Ae(o.value), g = (k) => {
|
|
2500
|
+
var p;
|
|
2494
2501
|
i.value = !1;
|
|
2495
|
-
const
|
|
2496
|
-
s(
|
|
2497
|
-
}, m = (
|
|
2498
|
-
|
|
2502
|
+
const H = (p = k == null ? void 0 : k.target) == null ? void 0 : p.classList.contains("modal_close");
|
|
2503
|
+
s(k, this.isUseEscCloseModal.value ? "esc" : H ? "icon" : "button");
|
|
2504
|
+
}, m = (k) => {
|
|
2505
|
+
g(k), c && oe(() => {
|
|
2499
2506
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ge(null, e), c = null, this.modalRef.value = null, this.modalRefs) {
|
|
2500
|
-
const
|
|
2501
|
-
|
|
2507
|
+
const H = Object.keys(this.modalRefs).map((p) => Number(p));
|
|
2508
|
+
H.length > 0 ? this.activeModalIndex.value = Math.max(...H) : this.activeModalIndex.value = 0;
|
|
2502
2509
|
}
|
|
2503
2510
|
this.isUseEscCloseModal.value = !1;
|
|
2504
2511
|
});
|
|
2505
|
-
}, f = (
|
|
2506
|
-
var
|
|
2507
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
2512
|
+
}, f = (k) => {
|
|
2513
|
+
var H;
|
|
2514
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((H = this.activeModalInstance.value) == null || H.close(k == null ? void 0 : k.event));
|
|
2508
2515
|
}, {
|
|
2509
|
-
width:
|
|
2516
|
+
width: C,
|
|
2510
2517
|
height: E
|
|
2511
|
-
} = o.value, B = this.adaptToWindow(
|
|
2518
|
+
} = o.value, B = this.adaptToWindow(C || 500, E || 320);
|
|
2512
2519
|
Object.assign(o.value, B);
|
|
2513
|
-
const
|
|
2520
|
+
const x = () => v(le, xe({
|
|
2514
2521
|
ref: this.modalRef,
|
|
2515
2522
|
modelValue: i.value,
|
|
2516
|
-
"onUpdate:modelValue": (
|
|
2523
|
+
"onUpdate:modelValue": (k) => i.value = k
|
|
2517
2524
|
}, o.value, {
|
|
2525
|
+
isMessager: o.value.class && o.value.class.indexOf("modal-message") > -1,
|
|
2518
2526
|
onAccept: l,
|
|
2519
2527
|
onCancel: a,
|
|
2520
2528
|
onClosed: m,
|
|
@@ -2524,18 +2532,18 @@ class Yt {
|
|
|
2524
2532
|
}), {
|
|
2525
2533
|
default: () => [u && u(this.app)]
|
|
2526
2534
|
});
|
|
2527
|
-
return c = ((
|
|
2528
|
-
const
|
|
2529
|
-
return
|
|
2535
|
+
return c = ((k) => {
|
|
2536
|
+
const H = Ft(x, k);
|
|
2537
|
+
return H.appContext = this.appContext, ge(H, e), H;
|
|
2530
2538
|
})({
|
|
2531
2539
|
...o.value
|
|
2532
2540
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
2533
2541
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
2534
|
-
update: (
|
|
2542
|
+
update: (k) => {
|
|
2535
2543
|
o.value = {
|
|
2536
2544
|
...o.value,
|
|
2537
|
-
...
|
|
2538
|
-
}, c && ge(
|
|
2545
|
+
...k
|
|
2546
|
+
}, c && ge(Bt(c, {
|
|
2539
2547
|
...o
|
|
2540
2548
|
}), e);
|
|
2541
2549
|
},
|
|
@@ -2545,13 +2553,13 @@ class Yt {
|
|
|
2545
2553
|
};
|
|
2546
2554
|
}
|
|
2547
2555
|
}
|
|
2548
|
-
const
|
|
2556
|
+
const $e = Symbol("FModalService");
|
|
2549
2557
|
le.install = (n) => {
|
|
2550
2558
|
n.component(le.name, le);
|
|
2551
|
-
const t = new
|
|
2552
|
-
n.provide(
|
|
2559
|
+
const t = new sn(n);
|
|
2560
|
+
n.provide($e, t), n.provide("FModalService", t);
|
|
2553
2561
|
};
|
|
2554
|
-
function
|
|
2562
|
+
function Ue(n, t) {
|
|
2555
2563
|
function e() {
|
|
2556
2564
|
const o = n.beforeOpen || n.beforeClickButton || null;
|
|
2557
2565
|
let i = Promise.resolve(!0);
|
|
@@ -2565,56 +2573,56 @@ function Ne(n, t) {
|
|
|
2565
2573
|
}
|
|
2566
2574
|
return { judgeCanOpen: e };
|
|
2567
2575
|
}
|
|
2568
|
-
function
|
|
2569
|
-
const l =
|
|
2576
|
+
function rn(n, t, e, o, i) {
|
|
2577
|
+
const l = h(n.buttonBehavior), a = h(n.popupOnInput), s = S(() => ({
|
|
2570
2578
|
"input-group-append": !0,
|
|
2571
2579
|
"append-force-show": n.showButtonWhenDisabled && (n.readonly || n.disable)
|
|
2572
|
-
})), { judgeCanOpen: r } =
|
|
2573
|
-
async function
|
|
2580
|
+
})), { judgeCanOpen: r } = Ue(n, i), d = S(() => n.showButtonWhenDisabled || (!n.editable || !n.readonly) && !n.disable), c = ce($e, null), u = h();
|
|
2581
|
+
async function g(C) {
|
|
2574
2582
|
if (await r() && d.value) {
|
|
2575
2583
|
const E = !!t.slots.default;
|
|
2576
2584
|
if (l.value === "Modal") {
|
|
2577
|
-
const B = n.modalOptions,
|
|
2585
|
+
const B = n.modalOptions, x = c == null ? void 0 : c.open({
|
|
2578
2586
|
...B,
|
|
2579
2587
|
render: () => t.slots.default && t.slots.default()
|
|
2580
2588
|
});
|
|
2581
|
-
u.value =
|
|
2589
|
+
u.value = x == null ? void 0 : x.modalRef;
|
|
2582
2590
|
}
|
|
2583
|
-
l.value === "Overlay" &&
|
|
2591
|
+
l.value === "Overlay" && Qt.show({
|
|
2584
2592
|
// host: buttonEditRef.value,
|
|
2585
2593
|
host: document.body,
|
|
2586
2594
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
2587
2595
|
render: () => t.slots.default && t.slots.default()
|
|
2588
|
-
}), E && l.value === "Popup" && o.togglePopup(!0), E && a.value && o.hidePopup(), t.emit("clickButton", { origin:
|
|
2596
|
+
}), E && l.value === "Popup" && o.togglePopup(!0), E && a.value && o.hidePopup(), t.emit("clickButton", { origin: C, value: n.modelValue });
|
|
2589
2597
|
}
|
|
2590
2598
|
}
|
|
2591
|
-
function m(
|
|
2592
|
-
t.emit("mouseEnterIcon",
|
|
2599
|
+
function m(C) {
|
|
2600
|
+
t.emit("mouseEnterIcon", C);
|
|
2593
2601
|
}
|
|
2594
|
-
function f(
|
|
2595
|
-
t.emit("mouseLeaveIcon",
|
|
2602
|
+
function f(C) {
|
|
2603
|
+
t.emit("mouseLeaveIcon", C);
|
|
2596
2604
|
}
|
|
2597
2605
|
return {
|
|
2598
2606
|
buttonGroupClass: s,
|
|
2599
|
-
onClickButton:
|
|
2607
|
+
onClickButton: g,
|
|
2600
2608
|
onMouseEnterButton: m,
|
|
2601
2609
|
onMouseLeaveButton: f,
|
|
2602
2610
|
modalRef: u
|
|
2603
2611
|
};
|
|
2604
2612
|
}
|
|
2605
|
-
function
|
|
2606
|
-
const a =
|
|
2613
|
+
function un(n, t, e, o, i, l) {
|
|
2614
|
+
const a = h(!1), s = S(() => n.enableClear && !n.readonly && !n.disable), { changeTextBoxValue: r, hasClearClass: d } = l;
|
|
2607
2615
|
function c(f) {
|
|
2608
2616
|
a.value = f, d.value = f;
|
|
2609
2617
|
}
|
|
2610
|
-
|
|
2618
|
+
D(i, () => {
|
|
2611
2619
|
c(!!i.value);
|
|
2612
2620
|
});
|
|
2613
2621
|
function u(f) {
|
|
2614
|
-
const
|
|
2615
|
-
f.stopPropagation(), (
|
|
2622
|
+
const C = !n.readonly && !n.disable && n.editable, E = !n.editable;
|
|
2623
|
+
f.stopPropagation(), (C || E) && (r(""), i.value = "", c(!a.value), t.emit("clear"));
|
|
2616
2624
|
}
|
|
2617
|
-
function
|
|
2625
|
+
function g(f) {
|
|
2618
2626
|
if (s.value) {
|
|
2619
2627
|
if (!e.value) {
|
|
2620
2628
|
c(!1);
|
|
@@ -2630,18 +2638,18 @@ function Zt(n, t, e, o, i, l) {
|
|
|
2630
2638
|
enableClearButton: s,
|
|
2631
2639
|
showClearButton: a,
|
|
2632
2640
|
onClearValue: u,
|
|
2633
|
-
onMouseEnterTextBox:
|
|
2641
|
+
onMouseEnterTextBox: g,
|
|
2634
2642
|
onMouseLeaveTextBox: m
|
|
2635
2643
|
};
|
|
2636
2644
|
}
|
|
2637
|
-
function
|
|
2638
|
-
const l =
|
|
2645
|
+
function dn(n, t, e, o, i) {
|
|
2646
|
+
const l = S(() => n.popupOnInput), a = S(() => n.popupOnFocus), { shouldPopupContent: s, closeAllPopover: r } = i, d = h(!1), c = S(() => n.enableTitle ? e.value : ""), u = S(() => (n.disable || n.readonly) && !n.forcePlaceholder ? "" : n.placeholder), g = S(() => n.readonly || !n.editable), m = h(!1), f = S(() => !n.disable && m.value), C = S(() => ({
|
|
2639
2647
|
"text-left": n.textAlign === "left",
|
|
2640
2648
|
"text-center": n.textAlign === "center",
|
|
2641
2649
|
"text-right": n.textAlign === "right",
|
|
2642
2650
|
"form-control": !0,
|
|
2643
2651
|
"f-utils-fill": !0
|
|
2644
|
-
})), E =
|
|
2652
|
+
})), E = S(() => ({
|
|
2645
2653
|
"input-group": !0,
|
|
2646
2654
|
"f-state-disabled": n.disable,
|
|
2647
2655
|
"f-state-editable": n.editable && !n.disable && !n.readonly,
|
|
@@ -2649,77 +2657,77 @@ function Qt(n, t, e, o, i) {
|
|
|
2649
2657
|
"f-state-focus": f.value,
|
|
2650
2658
|
"input-group--has-clear": n.enableClear && d.value
|
|
2651
2659
|
}));
|
|
2652
|
-
function B(
|
|
2653
|
-
e.value =
|
|
2660
|
+
function B(I, V = !0) {
|
|
2661
|
+
e.value = I, V && (t.emit("change", I), t.emit("update:modelValue", I));
|
|
2654
2662
|
}
|
|
2655
|
-
function
|
|
2656
|
-
s.value = !1, B(
|
|
2663
|
+
function x(I) {
|
|
2664
|
+
s.value = !1, B(I, !0);
|
|
2657
2665
|
}
|
|
2658
|
-
|
|
2666
|
+
D(
|
|
2659
2667
|
() => n.modelValue,
|
|
2660
|
-
(
|
|
2661
|
-
e.value =
|
|
2668
|
+
(I) => {
|
|
2669
|
+
e.value = I;
|
|
2662
2670
|
}
|
|
2663
2671
|
);
|
|
2664
|
-
function
|
|
2665
|
-
m.value = !1, t.emit("blur",
|
|
2672
|
+
function P(I) {
|
|
2673
|
+
m.value = !1, t.emit("blur", I), I.stopPropagation();
|
|
2666
2674
|
}
|
|
2667
|
-
function
|
|
2668
|
-
t.emit("click",
|
|
2675
|
+
function $(I) {
|
|
2676
|
+
t.emit("click", I), r(), t.slots.default && !n.disable && !n.readonly && n.popupOnClick && i.togglePopup();
|
|
2669
2677
|
}
|
|
2670
|
-
function
|
|
2671
|
-
!n.disable && !n.readonly && (m.value = !0,
|
|
2678
|
+
function k(I) {
|
|
2679
|
+
!n.disable && !n.readonly && (m.value = !0, g.value || (t.emit("focus", I), a.value && !s.value && i.popup()));
|
|
2672
2680
|
}
|
|
2673
|
-
function
|
|
2674
|
-
t.emit("input",
|
|
2675
|
-
const
|
|
2676
|
-
o.value =
|
|
2681
|
+
function H(I) {
|
|
2682
|
+
t.emit("input", I);
|
|
2683
|
+
const V = I.target.value;
|
|
2684
|
+
o.value = V, e.value !== V && B(V, n.updateOn === "change"), l.value && !s.value && i.popup();
|
|
2677
2685
|
}
|
|
2678
|
-
function
|
|
2679
|
-
|
|
2686
|
+
function p(I) {
|
|
2687
|
+
I.target.tagName !== "INPUT" && I.preventDefault(), I.stopPropagation();
|
|
2680
2688
|
}
|
|
2681
|
-
function
|
|
2682
|
-
t.emit("keydown",
|
|
2689
|
+
function M(I) {
|
|
2690
|
+
t.emit("keydown", I);
|
|
2683
2691
|
}
|
|
2684
|
-
function
|
|
2685
|
-
|
|
2692
|
+
function R(I) {
|
|
2693
|
+
I.key === "Enter" && (l.value || a.value) && i.hidePopup(), t.emit("keyup", I);
|
|
2686
2694
|
}
|
|
2687
|
-
function
|
|
2688
|
-
const
|
|
2689
|
-
|
|
2695
|
+
function z(I) {
|
|
2696
|
+
const V = I.target.value;
|
|
2697
|
+
I.stopPropagation(), B(V);
|
|
2690
2698
|
}
|
|
2691
2699
|
return {
|
|
2692
2700
|
hasFocusedTextBox: f,
|
|
2693
|
-
isTextBoxReadonly:
|
|
2694
|
-
textBoxClass:
|
|
2701
|
+
isTextBoxReadonly: g,
|
|
2702
|
+
textBoxClass: C,
|
|
2695
2703
|
textBoxPlaceholder: u,
|
|
2696
2704
|
textBoxTitle: c,
|
|
2697
2705
|
inputGroupClass: E,
|
|
2698
2706
|
hasClearClass: d,
|
|
2699
2707
|
changeTextBoxValue: B,
|
|
2700
|
-
commitValue:
|
|
2701
|
-
onBlurTextBox:
|
|
2702
|
-
onClickTextBox:
|
|
2703
|
-
onFocusTextBox:
|
|
2704
|
-
onInput:
|
|
2705
|
-
onKeyDownTextBox:
|
|
2706
|
-
onKeyUpTextBox:
|
|
2707
|
-
onMouseDownTextBox:
|
|
2708
|
-
onTextBoxValueChange:
|
|
2708
|
+
commitValue: x,
|
|
2709
|
+
onBlurTextBox: P,
|
|
2710
|
+
onClickTextBox: $,
|
|
2711
|
+
onFocusTextBox: k,
|
|
2712
|
+
onInput: H,
|
|
2713
|
+
onKeyDownTextBox: M,
|
|
2714
|
+
onKeyUpTextBox: R,
|
|
2715
|
+
onMouseDownTextBox: p,
|
|
2716
|
+
onTextBoxValueChange: z
|
|
2709
2717
|
};
|
|
2710
2718
|
}
|
|
2711
|
-
const
|
|
2712
|
-
function
|
|
2713
|
-
const i =
|
|
2714
|
-
|
|
2715
|
-
window[
|
|
2719
|
+
const Q = "FarrisVue_PopoverInstancesKey";
|
|
2720
|
+
function cn(n, t, e, o) {
|
|
2721
|
+
const i = h(), l = h(!1), { judgeCanOpen: a } = Ue(n, o);
|
|
2722
|
+
D(() => i.value, (m, f) => {
|
|
2723
|
+
window[Q] = window[Q] || /* @__PURE__ */ new WeakMap(), m ? window[Q].set(e.value, m) : window[Q].delete(e.value);
|
|
2716
2724
|
});
|
|
2717
2725
|
function s() {
|
|
2718
|
-
if (window[
|
|
2719
|
-
const m = window[
|
|
2726
|
+
if (window[Q]) {
|
|
2727
|
+
const m = window[Q];
|
|
2720
2728
|
document.querySelectorAll(".f-button-edit,.v-popover").forEach((f) => {
|
|
2721
|
-
const
|
|
2722
|
-
|
|
2729
|
+
const C = m.get(f);
|
|
2730
|
+
C && f !== e.value && !e.value.closest(".popover-fitcontent") && C.hide();
|
|
2723
2731
|
});
|
|
2724
2732
|
}
|
|
2725
2733
|
}
|
|
@@ -2744,15 +2752,15 @@ function en(n, t, e, o) {
|
|
|
2744
2752
|
function u() {
|
|
2745
2753
|
l.value = !1;
|
|
2746
2754
|
}
|
|
2747
|
-
function
|
|
2755
|
+
function g() {
|
|
2748
2756
|
l.value = !0, oe(() => {
|
|
2749
2757
|
r();
|
|
2750
2758
|
});
|
|
2751
2759
|
}
|
|
2752
|
-
return { hidePopup: u, showPopup:
|
|
2760
|
+
return { hidePopup: u, showPopup: g, popup: c, shouldPopupContent: l, togglePopup: d, popoverRef: i, closeAllPopover: s };
|
|
2753
2761
|
}
|
|
2754
|
-
function
|
|
2755
|
-
const o =
|
|
2762
|
+
function fn(n, t, e) {
|
|
2763
|
+
const o = h(), {
|
|
2756
2764
|
isTextBoxReadonly: i,
|
|
2757
2765
|
textBoxClass: l,
|
|
2758
2766
|
textBoxPlaceholder: a,
|
|
@@ -2761,37 +2769,37 @@ function tn(n, t, e) {
|
|
|
2761
2769
|
onClickTextBox: d,
|
|
2762
2770
|
onFocusTextBox: c,
|
|
2763
2771
|
onInput: u,
|
|
2764
|
-
onKeyDownTextBox:
|
|
2772
|
+
onKeyDownTextBox: g,
|
|
2765
2773
|
onKeyUpTextBox: m,
|
|
2766
2774
|
onMouseDownTextBox: f,
|
|
2767
|
-
onTextBoxValueChange:
|
|
2768
|
-
} = e, E =
|
|
2775
|
+
onTextBoxValueChange: C
|
|
2776
|
+
} = e, E = h(n.id), {
|
|
2769
2777
|
uuid: B
|
|
2770
|
-
} = Ce(),
|
|
2778
|
+
} = Ce(), x = S(() => ({
|
|
2771
2779
|
// 'border-top-right-radius': '6px',
|
|
2772
2780
|
// 'border-bottom-right-radius': '6px'
|
|
2773
2781
|
}));
|
|
2774
|
-
|
|
2775
|
-
var
|
|
2776
|
-
n.selectOnCreated && ((
|
|
2782
|
+
Z(() => {
|
|
2783
|
+
var p, M;
|
|
2784
|
+
n.selectOnCreated && ((p = o.value) == null || p.select()), n.focusOnCreated && ((M = o.value) == null || M.focus({
|
|
2777
2785
|
preventScroll: !0
|
|
2778
2786
|
})), E.value || (E.value = "button-edit_" + B(8)), E.value = E.value + "-textbox";
|
|
2779
2787
|
});
|
|
2780
|
-
const
|
|
2781
|
-
|
|
2782
|
-
},
|
|
2783
|
-
|
|
2788
|
+
const P = h(!1), $ = (p) => {
|
|
2789
|
+
p.preventDefault(), P.value = !0;
|
|
2790
|
+
}, k = (p) => {
|
|
2791
|
+
p.preventDefault(), P.value = !1, u(p);
|
|
2784
2792
|
};
|
|
2785
|
-
function
|
|
2786
|
-
|
|
2793
|
+
function H(p) {
|
|
2794
|
+
P.value || u(p);
|
|
2787
2795
|
}
|
|
2788
|
-
return () =>
|
|
2796
|
+
return () => v("input", {
|
|
2789
2797
|
id: n.id ? n.id + "-textbox" : void 0,
|
|
2790
2798
|
ref: o,
|
|
2791
2799
|
name: "input-group-value",
|
|
2792
2800
|
autocomplete: n.autoComplete ? "on" : "off",
|
|
2793
2801
|
class: l.value,
|
|
2794
|
-
style:
|
|
2802
|
+
style: x.value,
|
|
2795
2803
|
disabled: n.disable,
|
|
2796
2804
|
maxlength: n.maxLength,
|
|
2797
2805
|
minlength: n.minLength,
|
|
@@ -2802,42 +2810,42 @@ function tn(n, t, e) {
|
|
|
2802
2810
|
type: n.inputType,
|
|
2803
2811
|
value: t.value,
|
|
2804
2812
|
onBlur: r,
|
|
2805
|
-
onChange:
|
|
2813
|
+
onChange: C,
|
|
2806
2814
|
onClick: d,
|
|
2807
2815
|
onFocus: c,
|
|
2808
|
-
onInput:
|
|
2809
|
-
onKeydown:
|
|
2816
|
+
onInput: H,
|
|
2817
|
+
onKeydown: g,
|
|
2810
2818
|
onKeyup: m,
|
|
2811
2819
|
onMousedown: f,
|
|
2812
|
-
onCompositionend:
|
|
2813
|
-
onCompositionstart:
|
|
2820
|
+
onCompositionend: k,
|
|
2821
|
+
onCompositionstart: $
|
|
2814
2822
|
}, null);
|
|
2815
2823
|
}
|
|
2816
|
-
function
|
|
2817
|
-
const o =
|
|
2824
|
+
function mn(n, t, e) {
|
|
2825
|
+
const o = h(n.separator), i = S(() => n.readonly || n.disable), {
|
|
2818
2826
|
changeTextBoxValue: l,
|
|
2819
2827
|
onFocusTextBox: a,
|
|
2820
2828
|
onBlurTextBox: s,
|
|
2821
2829
|
onClickTextBox: r,
|
|
2822
2830
|
textBoxPlaceholder: d
|
|
2823
|
-
} = e, c =
|
|
2831
|
+
} = e, c = S(() => t.value ? t.value.split(o.value).map((f) => ({
|
|
2824
2832
|
name: f,
|
|
2825
2833
|
selectable: !0
|
|
2826
2834
|
})) : []);
|
|
2827
2835
|
function u(f) {
|
|
2828
|
-
l(f.map((
|
|
2836
|
+
l(f.map((C) => C.name).join(o.value), !0);
|
|
2829
2837
|
}
|
|
2830
|
-
|
|
2838
|
+
D(() => n.separator, (f) => {
|
|
2831
2839
|
o.value = f;
|
|
2832
2840
|
});
|
|
2833
|
-
const
|
|
2834
|
-
|
|
2835
|
-
|
|
2841
|
+
const g = h(!n.disable && !n.readonly);
|
|
2842
|
+
D([() => n.disable, () => n.readonly], ([f, C], [E, B]) => {
|
|
2843
|
+
g.value = !f && !C;
|
|
2836
2844
|
});
|
|
2837
2845
|
function m(f) {
|
|
2838
2846
|
r(f);
|
|
2839
2847
|
}
|
|
2840
|
-
return () =>
|
|
2848
|
+
return () => v(Nt, {
|
|
2841
2849
|
tabindex: n.tabIndex,
|
|
2842
2850
|
onFocus: a,
|
|
2843
2851
|
onBlur: s,
|
|
@@ -2852,7 +2860,7 @@ function nn(n, t, e) {
|
|
|
2852
2860
|
onClick: m
|
|
2853
2861
|
}, null);
|
|
2854
2862
|
}
|
|
2855
|
-
function
|
|
2863
|
+
function pn(n, t, e, o) {
|
|
2856
2864
|
const {
|
|
2857
2865
|
buttonGroupClass: i,
|
|
2858
2866
|
onClickButton: l,
|
|
@@ -2862,45 +2870,45 @@ function on(n, t, e, o) {
|
|
|
2862
2870
|
enableClearButton: r,
|
|
2863
2871
|
showClearButton: d,
|
|
2864
2872
|
onClearValue: c
|
|
2865
|
-
} = o, u =
|
|
2873
|
+
} = o, u = h(), g = Rt((f) => {
|
|
2866
2874
|
l(f);
|
|
2867
2875
|
}, n.buttonBehavior === "Modal" ? 0 : 200), m = () => {
|
|
2868
2876
|
t.emit("beforeClearValue");
|
|
2869
2877
|
};
|
|
2870
2878
|
return {
|
|
2871
|
-
renderButtonGroup: () =>
|
|
2879
|
+
renderButtonGroup: () => v("div", {
|
|
2872
2880
|
id: n.id ? `${n.id}-button-group` : void 0,
|
|
2873
2881
|
class: i.value
|
|
2874
|
-
}, [r.value && ye(
|
|
2882
|
+
}, [r.value && ye(v("span", {
|
|
2875
2883
|
class: "input-group-text input-group-clear",
|
|
2876
2884
|
onClick: c,
|
|
2877
2885
|
onMousedown: m
|
|
2878
|
-
}, [
|
|
2886
|
+
}, [v("i", {
|
|
2879
2887
|
class: "f-icon modal_close"
|
|
2880
|
-
}, null)]), [[
|
|
2888
|
+
}, null)]), [[St, d.value]]), t.slots.buttonContent ? v("span", {
|
|
2881
2889
|
class: "input-group-text input-group-append-button",
|
|
2882
|
-
onClick:
|
|
2890
|
+
onClick: g,
|
|
2883
2891
|
onMouseenter: a,
|
|
2884
2892
|
onMouseleave: s
|
|
2885
|
-
}, [t.slots.buttonContent()]) : n.buttonContent ?
|
|
2893
|
+
}, [t.slots.buttonContent()]) : n.buttonContent ? v("span", {
|
|
2886
2894
|
class: "input-group-text input-group-append-button",
|
|
2887
2895
|
innerHTML: n.buttonContent,
|
|
2888
2896
|
ref: u,
|
|
2889
|
-
onClick: (f) =>
|
|
2897
|
+
onClick: (f) => g(f),
|
|
2890
2898
|
onMouseenter: a,
|
|
2891
2899
|
onMouseleave: s
|
|
2892
2900
|
}, null) : null]),
|
|
2893
2901
|
buttonHandleElement: u
|
|
2894
2902
|
};
|
|
2895
2903
|
}
|
|
2896
|
-
function
|
|
2897
|
-
const o =
|
|
2904
|
+
function hn(n, t, e) {
|
|
2905
|
+
const o = h(n.popupMinWidth), {
|
|
2898
2906
|
hidePopup: i,
|
|
2899
2907
|
popoverRef: l
|
|
2900
2908
|
} = e, a = () => {
|
|
2901
2909
|
t.emit("shown");
|
|
2902
2910
|
};
|
|
2903
|
-
return () =>
|
|
2911
|
+
return () => v(Lt, {
|
|
2904
2912
|
id: `${n.id}-popover`,
|
|
2905
2913
|
ref: l,
|
|
2906
2914
|
placement: n.placement,
|
|
@@ -2922,63 +2930,63 @@ function ln(n, t, e) {
|
|
|
2922
2930
|
}
|
|
2923
2931
|
});
|
|
2924
2932
|
}
|
|
2925
|
-
const
|
|
2933
|
+
const vn = /* @__PURE__ */ J({
|
|
2926
2934
|
name: "FButtonEdit",
|
|
2927
|
-
props:
|
|
2935
|
+
props: Xt,
|
|
2928
2936
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
2929
2937
|
setup(n, t) {
|
|
2930
|
-
const e =
|
|
2938
|
+
const e = h(), o = h(n.customClass), i = h(n.modelValue), l = cn(n, t, e, i), {
|
|
2931
2939
|
shouldPopupContent: a,
|
|
2932
2940
|
hidePopup: s,
|
|
2933
2941
|
showPopup: r,
|
|
2934
2942
|
togglePopup: d
|
|
2935
|
-
} = l, c =
|
|
2943
|
+
} = l, c = rn(n, t, e, l, i), u = h(""), g = dn(n, t, i, u, l), {
|
|
2936
2944
|
hasFocusedTextBox: m,
|
|
2937
2945
|
commitValue: f,
|
|
2938
|
-
inputGroupClass:
|
|
2939
|
-
} =
|
|
2946
|
+
inputGroupClass: C
|
|
2947
|
+
} = g, E = un(n, t, i, m, u, g), {
|
|
2940
2948
|
onMouseEnterTextBox: B,
|
|
2941
|
-
onMouseLeaveTextBox:
|
|
2942
|
-
} = E,
|
|
2943
|
-
const
|
|
2949
|
+
onMouseLeaveTextBox: x
|
|
2950
|
+
} = E, P = h(!1), $ = S(() => {
|
|
2951
|
+
const N = {
|
|
2944
2952
|
"f-button-edit": !0,
|
|
2945
2953
|
"f-cmp-inputgroup": !0,
|
|
2946
2954
|
"f-button-edit-nowrap": !n.wrapText
|
|
2947
2955
|
};
|
|
2948
|
-
return o.value && o.value.split(" ").reduce((q, w) => (q[w] = !0, q),
|
|
2949
|
-
}),
|
|
2956
|
+
return o.value && o.value.split(" ").reduce((q, w) => (q[w] = !0, q), N), N;
|
|
2957
|
+
}), k = S(() => ({
|
|
2950
2958
|
overflow: n.wrapText ? "hidden" : ""
|
|
2951
|
-
})),
|
|
2959
|
+
})), H = S(() => ({
|
|
2952
2960
|
// paddingLeft: '3px',
|
|
2953
2961
|
// backgroundColor: '#fff'
|
|
2954
2962
|
}));
|
|
2955
|
-
function
|
|
2963
|
+
function p() {
|
|
2956
2964
|
if (!n.multiSelect || n.inputType !== "tag" || !e.value)
|
|
2957
2965
|
return 0;
|
|
2958
|
-
let
|
|
2966
|
+
let N = 0;
|
|
2959
2967
|
const q = Array.from(e.value.querySelectorAll(".farris-tag-item"));
|
|
2960
|
-
return q && q.length && (
|
|
2968
|
+
return q && q.length && (N = q.map((w) => w.offsetTop).filter((w) => w > 20).length), N;
|
|
2961
2969
|
}
|
|
2962
|
-
const
|
|
2963
|
-
|
|
2964
|
-
|
|
2970
|
+
const M = h(p());
|
|
2971
|
+
kt(() => {
|
|
2972
|
+
M.value = p();
|
|
2965
2973
|
});
|
|
2966
|
-
function
|
|
2967
|
-
return n.multiSelect && n.inputType === "tag" ? () =>
|
|
2974
|
+
function R() {
|
|
2975
|
+
return n.multiSelect && n.inputType === "tag" ? () => v(ae, null, [mn(n, i, g)(), !!M.value && v("div", {
|
|
2968
2976
|
class: "d-flex flex-row mr-2 more-tags",
|
|
2969
2977
|
"more-tags": !0
|
|
2970
|
-
}, [
|
|
2978
|
+
}, [v("span", {
|
|
2971
2979
|
class: "multi--more-text"
|
|
2972
|
-
}, [
|
|
2980
|
+
}, [ee("+"), M.value])])]) : fn(n, i, g);
|
|
2973
2981
|
}
|
|
2974
|
-
let
|
|
2975
|
-
|
|
2976
|
-
|
|
2982
|
+
let z = R();
|
|
2983
|
+
D([() => n.multiSelect, () => n.inputType], () => {
|
|
2984
|
+
z = R();
|
|
2977
2985
|
});
|
|
2978
2986
|
const {
|
|
2979
|
-
renderButtonGroup:
|
|
2980
|
-
buttonHandleElement:
|
|
2981
|
-
} =
|
|
2987
|
+
renderButtonGroup: I,
|
|
2988
|
+
buttonHandleElement: V
|
|
2989
|
+
} = pn(n, t, c, E), U = hn(n, t, l), W = h(a.value), _ = {
|
|
2982
2990
|
displayText: u,
|
|
2983
2991
|
commitValue: f,
|
|
2984
2992
|
elementRef: e,
|
|
@@ -2988,68 +2996,68 @@ const an = /* @__PURE__ */ Y({
|
|
|
2988
2996
|
shouldPopupContent: a,
|
|
2989
2997
|
togglePopup: d,
|
|
2990
2998
|
openDialog: () => {
|
|
2991
|
-
|
|
2999
|
+
V.value && n.buttonBehavior === "Modal" && V.value.click();
|
|
2992
3000
|
},
|
|
2993
3001
|
getModal: () => {
|
|
2994
|
-
var
|
|
2995
|
-
return n.buttonBehavior === "Modal" ? (
|
|
3002
|
+
var N;
|
|
3003
|
+
return n.buttonBehavior === "Modal" ? (N = c.modalRef.value) == null ? void 0 : N.value : null;
|
|
2996
3004
|
},
|
|
2997
3005
|
getTextbox: () => {
|
|
2998
|
-
var
|
|
2999
|
-
return (
|
|
3006
|
+
var N;
|
|
3007
|
+
return (N = e.value) == null ? void 0 : N.querySelector("input");
|
|
3000
3008
|
},
|
|
3001
3009
|
forceClosePopup: () => {
|
|
3002
|
-
|
|
3010
|
+
W.value = !1, P.value = !0, a.value = !1;
|
|
3003
3011
|
}
|
|
3004
3012
|
};
|
|
3005
|
-
return
|
|
3013
|
+
return Z(() => {
|
|
3006
3014
|
e.value.componentInstance = _, window.onresize = () => {
|
|
3007
3015
|
document.body.click();
|
|
3008
3016
|
};
|
|
3009
|
-
}),
|
|
3010
|
-
var
|
|
3011
|
-
window.onresize = null, (
|
|
3012
|
-
}), t.expose(_),
|
|
3013
|
-
if (
|
|
3014
|
-
|
|
3017
|
+
}), Tt(() => {
|
|
3018
|
+
var N;
|
|
3019
|
+
window.onresize = null, (N = window[Q]) == null || N.delete(e.value);
|
|
3020
|
+
}), t.expose(_), D(() => a.value, async (N, q) => {
|
|
3021
|
+
if (P.value) {
|
|
3022
|
+
W.value = N, P.value = !1;
|
|
3015
3023
|
return;
|
|
3016
3024
|
}
|
|
3017
|
-
if (!
|
|
3025
|
+
if (!N && n.beforeClosePopup && typeof n.beforeClosePopup == "function") {
|
|
3018
3026
|
try {
|
|
3019
3027
|
const w = await n.beforeClosePopup();
|
|
3020
|
-
|
|
3028
|
+
W.value = !w, (!w || n.readonly) && (a.value = !0);
|
|
3021
3029
|
} catch (w) {
|
|
3022
|
-
console.error("Error in beforeClosePopup:", w),
|
|
3030
|
+
console.error("Error in beforeClosePopup:", w), W.value = q, a.value = q;
|
|
3023
3031
|
}
|
|
3024
3032
|
return;
|
|
3025
3033
|
}
|
|
3026
|
-
|
|
3034
|
+
W.value = N;
|
|
3027
3035
|
}), () => {
|
|
3028
|
-
var
|
|
3029
|
-
return
|
|
3036
|
+
var N, q;
|
|
3037
|
+
return v(ae, null, [v("div", xe(t.attrs, {
|
|
3030
3038
|
ref: e,
|
|
3031
|
-
class:
|
|
3039
|
+
class: $.value,
|
|
3032
3040
|
id: n.id ? n.id : void 0,
|
|
3033
|
-
style:
|
|
3034
|
-
}), [
|
|
3041
|
+
style: k.value
|
|
3042
|
+
}), [v("div", {
|
|
3035
3043
|
id: n.id ? `${n.id}-input-group` : void 0,
|
|
3036
|
-
class:
|
|
3037
|
-
style:
|
|
3044
|
+
class: C.value,
|
|
3045
|
+
style: H.value,
|
|
3038
3046
|
onMouseenter: B,
|
|
3039
|
-
onMouseleave:
|
|
3040
|
-
}, [(q = (
|
|
3047
|
+
onMouseleave: x
|
|
3048
|
+
}, [(q = (N = t.slots).precontent) == null ? void 0 : q.call(N), z(), I()])]), W.value && U()]);
|
|
3041
3049
|
};
|
|
3042
3050
|
}
|
|
3043
3051
|
});
|
|
3044
|
-
function
|
|
3052
|
+
function We(n, t, e) {
|
|
3045
3053
|
return t;
|
|
3046
3054
|
}
|
|
3047
|
-
function
|
|
3055
|
+
function je(n, t, e) {
|
|
3048
3056
|
return t;
|
|
3049
3057
|
}
|
|
3050
|
-
const
|
|
3051
|
-
["appearance",
|
|
3052
|
-
]),
|
|
3058
|
+
const qe = /* @__PURE__ */ new Map([
|
|
3059
|
+
["appearance", wt]
|
|
3060
|
+
]), Ge = /* @__PURE__ */ new Map([]), gn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-design.gitee.io/radio-group.schema.json", bn = "item-collection-editor", Cn = "A Farris Input Component", wn = "object", xn = {
|
|
3053
3061
|
id: {
|
|
3054
3062
|
description: "The unique identifier for a item-collection-editor",
|
|
3055
3063
|
type: "string"
|
|
@@ -3133,19 +3141,19 @@ const un = /* @__PURE__ */ new Map([
|
|
|
3133
3141
|
type: "number",
|
|
3134
3142
|
default: 600
|
|
3135
3143
|
}
|
|
3136
|
-
},
|
|
3144
|
+
}, Mn = [
|
|
3137
3145
|
"id",
|
|
3138
3146
|
"type"
|
|
3139
|
-
],
|
|
3140
|
-
$schema:
|
|
3141
|
-
$id:
|
|
3142
|
-
title:
|
|
3143
|
-
description:
|
|
3144
|
-
type:
|
|
3145
|
-
properties:
|
|
3146
|
-
required:
|
|
3147
|
-
ignore:
|
|
3148
|
-
},
|
|
3147
|
+
], In = [], De = {
|
|
3148
|
+
$schema: gn,
|
|
3149
|
+
$id: yn,
|
|
3150
|
+
title: bn,
|
|
3151
|
+
description: Cn,
|
|
3152
|
+
type: wn,
|
|
3153
|
+
properties: xn,
|
|
3154
|
+
required: Mn,
|
|
3155
|
+
ignore: In
|
|
3156
|
+
}, Me = {
|
|
3149
3157
|
/**
|
|
3150
3158
|
* 必填的列
|
|
3151
3159
|
*/
|
|
@@ -3201,7 +3209,14 @@ const un = /* @__PURE__ */ new Map([
|
|
|
3201
3209
|
* 模态框高度
|
|
3202
3210
|
*/
|
|
3203
3211
|
modalHeight: { type: Number, default: 600 }
|
|
3204
|
-
}
|
|
3212
|
+
};
|
|
3213
|
+
Pe(Me, De, Ge, je);
|
|
3214
|
+
const En = Ve(
|
|
3215
|
+
Me,
|
|
3216
|
+
De,
|
|
3217
|
+
Ge,
|
|
3218
|
+
je
|
|
3219
|
+
), Fn = {
|
|
3205
3220
|
/**
|
|
3206
3221
|
* 必填的列
|
|
3207
3222
|
*/
|
|
@@ -3236,88 +3251,88 @@ const un = /* @__PURE__ */ new Map([
|
|
|
3236
3251
|
*/
|
|
3237
3252
|
readonly: { type: Boolean, default: !1 },
|
|
3238
3253
|
commandOption: { type: Object, default: { enable: !1 } }
|
|
3239
|
-
},
|
|
3254
|
+
}, Bn = /* @__PURE__ */ J({
|
|
3240
3255
|
name: "FItemCollectionEditorInner",
|
|
3241
|
-
props:
|
|
3256
|
+
props: Fn,
|
|
3242
3257
|
emits: ["change"],
|
|
3243
3258
|
setup(n, t) {
|
|
3244
3259
|
let e = "";
|
|
3245
3260
|
const {
|
|
3246
3261
|
guid: o
|
|
3247
|
-
} = Ce(), i = new
|
|
3262
|
+
} = Ce(), i = new Ht(), l = h(n.valueField), a = h(n.nameField), s = {
|
|
3248
3263
|
editMode: "cell"
|
|
3249
3264
|
}, r = {
|
|
3250
3265
|
fitColumns: !0
|
|
3251
|
-
}, d =
|
|
3266
|
+
}, d = h(), c = n.columns;
|
|
3252
3267
|
let u = n.datas;
|
|
3253
|
-
|
|
3268
|
+
D(() => [n.datas], () => {
|
|
3254
3269
|
u = n.datas, d.value.updateDataSource(u);
|
|
3255
3270
|
});
|
|
3256
|
-
function
|
|
3257
|
-
const
|
|
3258
|
-
return c.forEach((
|
|
3259
|
-
|
|
3260
|
-
}),
|
|
3271
|
+
function g() {
|
|
3272
|
+
const p = {};
|
|
3273
|
+
return c.forEach((M) => {
|
|
3274
|
+
M.editor && (M.editor.type === "checkbox" || M.editor.type === "switch") ? p[M.field] = !1 : p[M.field] = "";
|
|
3275
|
+
}), p;
|
|
3261
3276
|
}
|
|
3262
3277
|
function m() {
|
|
3263
3278
|
if (n.dynamicMappingKeys) {
|
|
3264
|
-
const
|
|
3279
|
+
const p = "请先填写XXX。", M = l.value.trim() ? a.value.trim() ? "" : "枚举名称字段" : "枚举值字段";
|
|
3265
3280
|
return i.warning({
|
|
3266
3281
|
position: "top-center",
|
|
3267
|
-
message:
|
|
3282
|
+
message: p.replace("XXX", M)
|
|
3268
3283
|
}), !1;
|
|
3269
3284
|
}
|
|
3270
3285
|
return !0;
|
|
3271
3286
|
}
|
|
3272
|
-
function f(
|
|
3273
|
-
const
|
|
3287
|
+
function f(p) {
|
|
3288
|
+
const M = "不允许重复。";
|
|
3274
3289
|
if (!m())
|
|
3275
3290
|
return !1;
|
|
3276
|
-
if (!
|
|
3291
|
+
if (!p || p.length === 0)
|
|
3277
3292
|
return n.canEmpty ? !0 : (i.warning({
|
|
3278
3293
|
position: "top-center",
|
|
3279
|
-
message: "
|
|
3294
|
+
message: "请添加值。"
|
|
3280
3295
|
}), !1);
|
|
3281
|
-
const
|
|
3282
|
-
for (const
|
|
3283
|
-
for (const
|
|
3284
|
-
const
|
|
3285
|
-
if (
|
|
3286
|
-
if (
|
|
3296
|
+
const R = n.requiredFields || [], z = "不允许为空。";
|
|
3297
|
+
for (const V of p)
|
|
3298
|
+
for (const U of Object.keys(V)) {
|
|
3299
|
+
const W = c.find((_) => _.field === U);
|
|
3300
|
+
if (W && W.editor && (W.editor.type === "checkbox" || W.editor.type === "switch")) {
|
|
3301
|
+
if (R.includes(U) && (V[U] === null || V[U] === void 0))
|
|
3287
3302
|
return i.warning({
|
|
3288
3303
|
position: "top-center",
|
|
3289
|
-
message:
|
|
3304
|
+
message: W.title + z
|
|
3290
3305
|
}), !1;
|
|
3291
|
-
} else if (
|
|
3306
|
+
} else if (R.includes(U) && (V[U] === void 0 || V[U] === "" || V[U] === null))
|
|
3292
3307
|
return i.warning({
|
|
3293
3308
|
position: "top-center",
|
|
3294
|
-
message:
|
|
3309
|
+
message: W.title + z
|
|
3295
3310
|
}), !1;
|
|
3296
3311
|
}
|
|
3297
|
-
const
|
|
3298
|
-
for (const
|
|
3299
|
-
const
|
|
3300
|
-
if (
|
|
3301
|
-
const
|
|
3312
|
+
const I = n.uniqueFields || [];
|
|
3313
|
+
for (const V of I) {
|
|
3314
|
+
const U = p.map((N) => N[V]), W = new Set(U), _ = Array.from(W);
|
|
3315
|
+
if (U.length !== _.length) {
|
|
3316
|
+
const N = c.find((q) => q.field === V);
|
|
3302
3317
|
return i.warning({
|
|
3303
3318
|
position: "top-center",
|
|
3304
|
-
message:
|
|
3319
|
+
message: N.title + M
|
|
3305
3320
|
}), !1;
|
|
3306
3321
|
}
|
|
3307
3322
|
}
|
|
3308
3323
|
return !0;
|
|
3309
3324
|
}
|
|
3310
|
-
function
|
|
3325
|
+
function C() {
|
|
3311
3326
|
if (n.readonly || !m())
|
|
3312
3327
|
return;
|
|
3313
|
-
const
|
|
3328
|
+
const p = g(), M = o();
|
|
3314
3329
|
u.push({
|
|
3315
|
-
hId:
|
|
3316
|
-
...
|
|
3317
|
-
}), d.value.updateDataSource(u), d.value.selectRowById(
|
|
3330
|
+
hId: M,
|
|
3331
|
+
...p
|
|
3332
|
+
}), d.value.updateDataSource(u), d.value.selectRowById(M);
|
|
3318
3333
|
}
|
|
3319
|
-
function E() {
|
|
3320
|
-
u && u.length > 0
|
|
3334
|
+
function E(p) {
|
|
3335
|
+
u && u.length > 0 ? (p || (p = u[0].hId), d.value.selectRowById(p)) : e = "";
|
|
3321
3336
|
}
|
|
3322
3337
|
function B() {
|
|
3323
3338
|
if (!e) {
|
|
@@ -3327,65 +3342,72 @@ const un = /* @__PURE__ */ new Map([
|
|
|
3327
3342
|
});
|
|
3328
3343
|
return;
|
|
3329
3344
|
}
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3345
|
+
const p = u.findIndex((z) => z.hId === e);
|
|
3346
|
+
u = [...u.filter((z) => z.hId !== e)], d.value.updateDataSource(u);
|
|
3347
|
+
let R = "";
|
|
3348
|
+
p < u.length && u.length > 0 && (R = u[p].hId), E(R);
|
|
3349
|
+
}
|
|
3350
|
+
function x(p) {
|
|
3351
|
+
if (!p || p.length === 0)
|
|
3352
|
+
return p;
|
|
3353
|
+
const M = [];
|
|
3354
|
+
return p.forEach((R) => {
|
|
3337
3355
|
const {
|
|
3338
|
-
value:
|
|
3339
|
-
name:
|
|
3340
|
-
...
|
|
3341
|
-
} =
|
|
3342
|
-
|
|
3343
|
-
}),
|
|
3344
|
-
}
|
|
3345
|
-
function
|
|
3356
|
+
value: z,
|
|
3357
|
+
name: I,
|
|
3358
|
+
...V
|
|
3359
|
+
} = R, U = Object.assign({}, V);
|
|
3360
|
+
U[l.value.trim()] = z, U[a.value.trim()] = I, M.push(U);
|
|
3361
|
+
}), M;
|
|
3362
|
+
}
|
|
3363
|
+
function P() {
|
|
3346
3364
|
d.value.endEditCell();
|
|
3347
|
-
const
|
|
3348
|
-
return u.forEach((
|
|
3365
|
+
const p = [];
|
|
3366
|
+
return u.forEach((M) => {
|
|
3349
3367
|
const {
|
|
3350
|
-
hId:
|
|
3351
|
-
...
|
|
3352
|
-
} =
|
|
3353
|
-
for (const
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
}),
|
|
3357
|
-
}
|
|
3358
|
-
function
|
|
3359
|
-
let
|
|
3360
|
-
return f(
|
|
3368
|
+
hId: R,
|
|
3369
|
+
...z
|
|
3370
|
+
} = M, I = {};
|
|
3371
|
+
for (const V in z)
|
|
3372
|
+
V.startsWith("_") || (I[V] = z[V]);
|
|
3373
|
+
p.push(I);
|
|
3374
|
+
}), p;
|
|
3375
|
+
}
|
|
3376
|
+
function $() {
|
|
3377
|
+
let p = P();
|
|
3378
|
+
return f(p) ? (n.dynamicMappingKeys ? (p = x(p), t.emit("change", p, void 0, {
|
|
3361
3379
|
valueField: l.value.trim(),
|
|
3362
3380
|
nameField: a.value.trim()
|
|
3363
|
-
})) : t.emit("change",
|
|
3381
|
+
})) : t.emit("change", p, void 0, null), !0) : !1;
|
|
3382
|
+
}
|
|
3383
|
+
function k() {
|
|
3384
|
+
return u;
|
|
3364
3385
|
}
|
|
3365
3386
|
t.expose({
|
|
3366
|
-
clickConfirm:
|
|
3367
|
-
getItems:
|
|
3368
|
-
|
|
3387
|
+
clickConfirm: $,
|
|
3388
|
+
getItems: P,
|
|
3389
|
+
getDataGridDatas: k
|
|
3390
|
+
}), Z(() => {
|
|
3369
3391
|
E();
|
|
3370
3392
|
});
|
|
3371
|
-
function
|
|
3372
|
-
var
|
|
3373
|
-
e = (
|
|
3393
|
+
function H(p) {
|
|
3394
|
+
var M;
|
|
3395
|
+
e = (M = p[0]) == null ? void 0 : M.hId;
|
|
3374
3396
|
}
|
|
3375
|
-
return () =>
|
|
3397
|
+
return () => v("div", {
|
|
3376
3398
|
class: "f-utils-fill-flex-column h-100"
|
|
3377
|
-
}, [!n.readonly &&
|
|
3399
|
+
}, [!n.readonly && v("div", {
|
|
3378
3400
|
class: "mb-1 py-1 ml-1"
|
|
3379
|
-
}, [
|
|
3401
|
+
}, [v("button", {
|
|
3380
3402
|
class: "btn f-rt-btn f-btn-ml btn-primary",
|
|
3381
|
-
onClick: () =>
|
|
3382
|
-
}, [
|
|
3403
|
+
onClick: () => C()
|
|
3404
|
+
}, [ee("新增")]), v("button", {
|
|
3383
3405
|
class: "btn f-rt-btn f-btn-ml btn-secondary",
|
|
3384
3406
|
onClick: () => B()
|
|
3385
|
-
}, [
|
|
3407
|
+
}, [ee("删除")])]), v("div", {
|
|
3386
3408
|
class: "f-utils-fill border",
|
|
3387
3409
|
style: "margin:0 8px;border-radius:12px;"
|
|
3388
|
-
}, [
|
|
3410
|
+
}, [v(zt, {
|
|
3389
3411
|
ref: d,
|
|
3390
3412
|
showBorder: !0,
|
|
3391
3413
|
idField: "hId",
|
|
@@ -3396,10 +3418,10 @@ const un = /* @__PURE__ */ new Map([
|
|
|
3396
3418
|
columnOption: r,
|
|
3397
3419
|
commandOption: n.commandOption,
|
|
3398
3420
|
fit: !0,
|
|
3399
|
-
onSelectionChange:
|
|
3421
|
+
onSelectionChange: H
|
|
3400
3422
|
}, null)])]);
|
|
3401
3423
|
}
|
|
3402
|
-
}),
|
|
3424
|
+
}), Sn = {
|
|
3403
3425
|
showCloseButton: { type: Boolean, default: !0 },
|
|
3404
3426
|
position: { type: String, default: "top-center" },
|
|
3405
3427
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -3412,114 +3434,114 @@ const un = /* @__PURE__ */ new Map([
|
|
|
3412
3434
|
animate: { type: String, default: "fadeIn" },
|
|
3413
3435
|
options: { type: Object },
|
|
3414
3436
|
safeHtml: { type: Boolean, default: !0 }
|
|
3415
|
-
},
|
|
3437
|
+
}, kn = {
|
|
3416
3438
|
showCloseButton: { type: Boolean, default: !0 },
|
|
3417
3439
|
animate: { type: String, default: "fadeIn" },
|
|
3418
3440
|
options: { type: Object }
|
|
3419
|
-
}, be = /* @__PURE__ */
|
|
3441
|
+
}, be = /* @__PURE__ */ J({
|
|
3420
3442
|
name: "Toast",
|
|
3421
|
-
props:
|
|
3443
|
+
props: kn,
|
|
3422
3444
|
emits: ["close", "click"],
|
|
3423
3445
|
setup: (n, t) => {
|
|
3424
|
-
const e =
|
|
3425
|
-
const
|
|
3446
|
+
const e = h(n.animate), o = "fadeOut", i = S(() => n.options), l = h(!1), a = S(() => i.value.title && i.value.message), s = S(() => !i.value.title && i.value.message), r = S(() => {
|
|
3447
|
+
const x = {
|
|
3426
3448
|
animated: l.value,
|
|
3427
3449
|
toast: !0,
|
|
3428
3450
|
"toast--only-content": !a.value
|
|
3429
3451
|
};
|
|
3430
|
-
return
|
|
3431
|
-
}), d =
|
|
3432
|
-
const
|
|
3452
|
+
return x[n.animate] = !1, x[o] = l.value, x["toasty-type-" + i.value.type] = !0, i.value.theme && (x[i.value.theme] = !0), x;
|
|
3453
|
+
}), d = S(() => {
|
|
3454
|
+
const $ = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, k = {
|
|
3433
3455
|
"f-icon": !0
|
|
3434
3456
|
};
|
|
3435
|
-
return
|
|
3436
|
-
}), c =
|
|
3457
|
+
return k[$] = !0, k;
|
|
3458
|
+
}), c = S(() => i.value.title || i.value.message), u = S(() => n.showCloseButton), g = S(() => !!i.value.buttons || !!t.slots.default), m = S(() => ne.getLocale() === "en" ? {
|
|
3437
3459
|
wordBreak: "keep-all",
|
|
3438
3460
|
overflowWrap: "break-word"
|
|
3439
3461
|
} : {});
|
|
3440
|
-
function f(
|
|
3441
|
-
|
|
3462
|
+
function f(x) {
|
|
3463
|
+
x.stopPropagation(), x.preventDefault(), l.value = !1, setTimeout(() => {
|
|
3442
3464
|
t.emit("close", i.value);
|
|
3443
3465
|
}, 200);
|
|
3444
3466
|
}
|
|
3445
|
-
function
|
|
3467
|
+
function C(x, P) {
|
|
3446
3468
|
}
|
|
3447
|
-
function E(
|
|
3448
|
-
return `f-preten-link ${
|
|
3469
|
+
function E(x) {
|
|
3470
|
+
return `f-preten-link ${x.customClass ? x.customClass : ""}`;
|
|
3449
3471
|
}
|
|
3450
|
-
|
|
3472
|
+
D(e, () => {
|
|
3451
3473
|
e.value;
|
|
3452
3474
|
});
|
|
3453
3475
|
const B = () => {
|
|
3454
|
-
var
|
|
3455
|
-
return
|
|
3476
|
+
var x;
|
|
3477
|
+
return v(ae, null, [v("div", {
|
|
3456
3478
|
class: "after-toast-msg text-right"
|
|
3457
|
-
}, [!t.slots.default && ((
|
|
3458
|
-
class: E(
|
|
3459
|
-
onClick: (
|
|
3460
|
-
}, [
|
|
3479
|
+
}, [!t.slots.default && ((x = i.value.buttons) == null ? void 0 : x.map((P) => v("span", {
|
|
3480
|
+
class: E(P),
|
|
3481
|
+
onClick: ($) => void 0
|
|
3482
|
+
}, [P.text]))), t.slots.default && t.slots.default()])]);
|
|
3461
3483
|
};
|
|
3462
|
-
return () =>
|
|
3484
|
+
return () => v("div", {
|
|
3463
3485
|
class: r.value,
|
|
3464
3486
|
style: "min-height:44px"
|
|
3465
|
-
}, [u.value &&
|
|
3466
|
-
title:
|
|
3487
|
+
}, [u.value && v("button", {
|
|
3488
|
+
title: ne.getLocaleValue("messageBox.close"),
|
|
3467
3489
|
class: "toast-close f-btn-icon f-bare",
|
|
3468
3490
|
onClick: f
|
|
3469
|
-
}, [
|
|
3491
|
+
}, [v("span", {
|
|
3470
3492
|
class: "f-icon modal_close"
|
|
3471
|
-
}, null)]), c.value &&
|
|
3493
|
+
}, null)]), c.value && v("section", {
|
|
3472
3494
|
class: "modal-tips"
|
|
3473
|
-
}, [!a.value &&
|
|
3495
|
+
}, [!a.value && v("div", {
|
|
3474
3496
|
class: "float-left modal-tips-iconwrap"
|
|
3475
|
-
}, [
|
|
3497
|
+
}, [v("span", {
|
|
3476
3498
|
class: d.value
|
|
3477
|
-
}, null)]),
|
|
3499
|
+
}, null)]), v("div", {
|
|
3478
3500
|
class: "modal-tips-content"
|
|
3479
|
-
}, [a.value &&
|
|
3501
|
+
}, [a.value && v(ae, null, [v("h5", {
|
|
3480
3502
|
class: "toast-title modal-tips-title",
|
|
3481
3503
|
innerHTML: i.value.title
|
|
3482
|
-
}, null),
|
|
3504
|
+
}, null), v("p", {
|
|
3483
3505
|
class: "toast-msg",
|
|
3484
3506
|
innerHTML: i.value.message,
|
|
3485
3507
|
style: m.value
|
|
3486
|
-
}, null),
|
|
3508
|
+
}, null), g.value && B()]), s.value && (i.value.buttons ? v("div", {
|
|
3487
3509
|
class: "toast-title-btns-wrapper d-flex"
|
|
3488
|
-
}, [
|
|
3510
|
+
}, [v("h5", {
|
|
3489
3511
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
3490
3512
|
style: m.value,
|
|
3491
3513
|
innerHTML: i.value.message
|
|
3492
|
-
}, null),
|
|
3514
|
+
}, null), v("div", {
|
|
3493
3515
|
class: "after-toast-title text-right ml-auto"
|
|
3494
|
-
}, [B()])]) :
|
|
3516
|
+
}, [B()])]) : v("h5", {
|
|
3495
3517
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
3496
3518
|
style: m.value,
|
|
3497
3519
|
innerHTML: i.value.message
|
|
3498
3520
|
}, null))])])]);
|
|
3499
3521
|
}
|
|
3500
|
-
}),
|
|
3522
|
+
}), de = /* @__PURE__ */ J({
|
|
3501
3523
|
name: "Notify",
|
|
3502
|
-
props:
|
|
3524
|
+
props: Sn,
|
|
3503
3525
|
emits: ["close", "empty"],
|
|
3504
3526
|
setup(n, t) {
|
|
3505
|
-
const e =
|
|
3527
|
+
const e = S(() => ({
|
|
3506
3528
|
"farris-notify": !0
|
|
3507
3529
|
})), o = {
|
|
3508
3530
|
left: 12,
|
|
3509
3531
|
right: 12,
|
|
3510
3532
|
top: 20,
|
|
3511
3533
|
bottom: 12
|
|
3512
|
-
}, i =
|
|
3513
|
-
const
|
|
3534
|
+
}, i = h(), l = h(n.options), a = h(n.showCloseButton), s = S(() => n.position || "bottom-right"), r = S(() => n.timeout != null ? n.timeout : 3e3), d = S(() => {
|
|
3535
|
+
const g = n.bottom ? n.bottom : o.bottom, m = n.top ? n.top : o.top, f = {
|
|
3514
3536
|
transition: "all 0.2s ease",
|
|
3515
3537
|
left: s.value.indexOf("left") > -1 ? `${n.left ? n.left : o.left}px` : "",
|
|
3516
3538
|
right: s.value.indexOf("right") > -1 ? `${n.right ? n.right : o.right}px` : "",
|
|
3517
3539
|
top: s.value.indexOf("top") > -1 ? `${m}px` : "",
|
|
3518
|
-
bottom: s.value.indexOf("bottom") > -1 ? `${
|
|
3540
|
+
bottom: s.value.indexOf("bottom") > -1 ? `${g}px` : ""
|
|
3519
3541
|
};
|
|
3520
3542
|
return s.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", s.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
|
|
3521
3543
|
});
|
|
3522
|
-
function c(
|
|
3544
|
+
function c(g) {
|
|
3523
3545
|
t.emit("close");
|
|
3524
3546
|
}
|
|
3525
3547
|
r.value && setTimeout(() => {
|
|
@@ -3529,25 +3551,25 @@ const un = /* @__PURE__ */ new Map([
|
|
|
3529
3551
|
container: i,
|
|
3530
3552
|
notifyPosition: s
|
|
3531
3553
|
});
|
|
3532
|
-
function u(
|
|
3554
|
+
function u(g, m) {
|
|
3533
3555
|
c();
|
|
3534
3556
|
}
|
|
3535
|
-
return () =>
|
|
3557
|
+
return () => v("div", {
|
|
3536
3558
|
class: e.value,
|
|
3537
3559
|
style: d.value,
|
|
3538
3560
|
ref: i
|
|
3539
|
-
}, [
|
|
3561
|
+
}, [v(be, {
|
|
3540
3562
|
options: l.value,
|
|
3541
3563
|
showCloseButton: a.value,
|
|
3542
3564
|
animate: n.animate,
|
|
3543
|
-
onClose: (
|
|
3565
|
+
onClose: (g) => u(g, l.value)
|
|
3544
3566
|
}, null)]);
|
|
3545
3567
|
}
|
|
3546
3568
|
});
|
|
3547
|
-
class
|
|
3569
|
+
class Tn {
|
|
3548
3570
|
constructor() {
|
|
3549
|
-
|
|
3550
|
-
|
|
3571
|
+
T(this, "notifyRefs", []);
|
|
3572
|
+
T(this, "globalConfig", Pt({}));
|
|
3551
3573
|
}
|
|
3552
3574
|
escapeAllHtml(t) {
|
|
3553
3575
|
if (typeof t != "string" || !t)
|
|
@@ -3568,7 +3590,7 @@ class In {
|
|
|
3568
3590
|
const a = we({
|
|
3569
3591
|
setup() {
|
|
3570
3592
|
var d;
|
|
3571
|
-
const s =
|
|
3593
|
+
const s = h();
|
|
3572
3594
|
function r() {
|
|
3573
3595
|
s.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3574
3596
|
e.updateNotifyPositionForClose(i, s), a.unmount();
|
|
@@ -3577,20 +3599,20 @@ class In {
|
|
|
3577
3599
|
if (i.position.indexOf("top") > -1) {
|
|
3578
3600
|
const c = e.getNotifyInstances(i.position), u = c[c.length - 1];
|
|
3579
3601
|
if (u) {
|
|
3580
|
-
const
|
|
3581
|
-
i.top =
|
|
3602
|
+
const g = u.value.container.getBoundingClientRect();
|
|
3603
|
+
i.top = g.bottom;
|
|
3582
3604
|
}
|
|
3583
3605
|
}
|
|
3584
|
-
return i.safeHtml && ((d = i.options) != null && d.message) && (i.options.message = e.escapeAllHtml(i.options.message)),
|
|
3606
|
+
return i.safeHtml && ((d = i.options) != null && d.message) && (i.options.message = e.escapeAllHtml(i.options.message)), pe(() => {
|
|
3585
3607
|
document.body.removeChild(l);
|
|
3586
|
-
}),
|
|
3608
|
+
}), Z(() => {
|
|
3587
3609
|
e.updateNotifyPositionForCreate(i, s);
|
|
3588
|
-
}), () =>
|
|
3610
|
+
}), () => v(Ne, {
|
|
3589
3611
|
mode: "out-in",
|
|
3590
3612
|
name: "fade",
|
|
3591
3613
|
appear: !0
|
|
3592
3614
|
}, {
|
|
3593
|
-
default: () => [
|
|
3615
|
+
default: () => [v(de, xe({
|
|
3594
3616
|
ref: s
|
|
3595
3617
|
}, i, {
|
|
3596
3618
|
onClose: r
|
|
@@ -3598,7 +3620,7 @@ class In {
|
|
|
3598
3620
|
});
|
|
3599
3621
|
}
|
|
3600
3622
|
});
|
|
3601
|
-
return a.provide("NotifyService", this), document.body.appendChild(l), a.use(
|
|
3623
|
+
return a.provide("NotifyService", this), document.body.appendChild(l), a.use(ne.i18n), a.mount(l), a;
|
|
3602
3624
|
}
|
|
3603
3625
|
getNotifyInstances(t) {
|
|
3604
3626
|
return this.notifyRefs.filter((e) => e.value.notifyPosition === t);
|
|
@@ -3663,33 +3685,33 @@ class In {
|
|
|
3663
3685
|
}), this.notifyRefs.length = 0;
|
|
3664
3686
|
}
|
|
3665
3687
|
}
|
|
3666
|
-
const
|
|
3667
|
-
|
|
3668
|
-
n.component(
|
|
3669
|
-
const t = new
|
|
3670
|
-
n.provide(
|
|
3688
|
+
const Ke = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
3689
|
+
de.install = (n) => {
|
|
3690
|
+
n.component(de.name, de), n.component(be.name, be);
|
|
3691
|
+
const t = new Tn();
|
|
3692
|
+
n.provide(Ke, t), n.provide("FNotifyService", t);
|
|
3671
3693
|
};
|
|
3672
|
-
const
|
|
3694
|
+
const Pn = /* @__PURE__ */ J({
|
|
3673
3695
|
name: "FItemCollectionEditor",
|
|
3674
|
-
props:
|
|
3696
|
+
props: Me,
|
|
3675
3697
|
components: {},
|
|
3676
3698
|
emits: ["change"],
|
|
3677
3699
|
setup(n, t) {
|
|
3678
|
-
const e =
|
|
3700
|
+
const e = ce(Ke), {
|
|
3679
3701
|
guid: o
|
|
3680
|
-
} = Ce(), i =
|
|
3702
|
+
} = Ce(), i = h(`共 ${(n.modelValue || []).length} 项`), l = h(n.valueField), a = h(n.nameField), s = h();
|
|
3681
3703
|
function r() {
|
|
3682
3704
|
let m = [];
|
|
3683
3705
|
return n.dynamicMappingKeys ? (m = [], l.value = l.value.trim(), a.value = a.value.trim(), (n.modelValue || []).forEach((f) => {
|
|
3684
3706
|
if (l.value && a.value) {
|
|
3685
3707
|
const {
|
|
3686
|
-
[l.value]:
|
|
3708
|
+
[l.value]: C,
|
|
3687
3709
|
[a.value]: E,
|
|
3688
3710
|
...B
|
|
3689
|
-
} = f,
|
|
3690
|
-
|
|
3711
|
+
} = f, x = B || {};
|
|
3712
|
+
x.value = C, x.name = E, x.hId = o(), m.push(x);
|
|
3691
3713
|
}
|
|
3692
|
-
})) : (m =
|
|
3714
|
+
})) : (m = Le(n.modelValue || []), m.forEach((f) => {
|
|
3693
3715
|
f.hId = o();
|
|
3694
3716
|
})), m;
|
|
3695
3717
|
}
|
|
@@ -3727,10 +3749,10 @@ const Fn = /* @__PURE__ */ Y({
|
|
|
3727
3749
|
class: "btn btn-primary",
|
|
3728
3750
|
handle: async (m) => {
|
|
3729
3751
|
if (n.beforeSubmit && typeof n.beforeSubmit == "function") {
|
|
3730
|
-
const
|
|
3752
|
+
const C = s.value.getItems();
|
|
3731
3753
|
if (!await n.beforeSubmit({
|
|
3732
3754
|
notifyService: e,
|
|
3733
|
-
data:
|
|
3755
|
+
data: C
|
|
3734
3756
|
}))
|
|
3735
3757
|
return !1;
|
|
3736
3758
|
}
|
|
@@ -3738,13 +3760,13 @@ const Fn = /* @__PURE__ */ Y({
|
|
|
3738
3760
|
}
|
|
3739
3761
|
}]
|
|
3740
3762
|
};
|
|
3741
|
-
function
|
|
3742
|
-
i.value = `共 ${m.length} 项`, t.emit("change", m, f,
|
|
3763
|
+
function g(m, f, C) {
|
|
3764
|
+
i.value = `共 ${m.length} 项`, t.emit("change", m, f, C);
|
|
3743
3765
|
}
|
|
3744
|
-
return
|
|
3766
|
+
return D(() => n.modelValue, (m) => {
|
|
3745
3767
|
i.value = `共 ${(n.modelValue || []).length} 项`;
|
|
3746
|
-
}),
|
|
3747
|
-
}), () =>
|
|
3768
|
+
}), Z(() => {
|
|
3769
|
+
}), () => v(vn, {
|
|
3748
3770
|
"button-behavior": "Modal",
|
|
3749
3771
|
"modal-options": u,
|
|
3750
3772
|
modelValue: i.value,
|
|
@@ -3752,45 +3774,45 @@ const Fn = /* @__PURE__ */ Y({
|
|
|
3752
3774
|
editable: !1,
|
|
3753
3775
|
beforeOpen: c
|
|
3754
3776
|
}, {
|
|
3755
|
-
default: () => [
|
|
3777
|
+
default: () => [v("div", {
|
|
3756
3778
|
class: "f-utils-absolute-all f-utils-flex-column"
|
|
3757
|
-
}, [n.dynamicMappingKeys &&
|
|
3779
|
+
}, [n.dynamicMappingKeys && v("div", {
|
|
3758
3780
|
class: "farris-form-controls-inline p-2 f-form-layout farris-form f-form-lable-auto"
|
|
3759
|
-
}, [
|
|
3781
|
+
}, [v("div", {
|
|
3760
3782
|
class: "farris-group-wrap mr-3"
|
|
3761
|
-
}, [
|
|
3783
|
+
}, [v("div", {
|
|
3762
3784
|
class: "form-group farris-form-group"
|
|
3763
|
-
}, [
|
|
3785
|
+
}, [v("label", {
|
|
3764
3786
|
class: "col-form-label"
|
|
3765
|
-
}, [
|
|
3787
|
+
}, [v("span", {
|
|
3766
3788
|
class: "farris-label-info text-danger"
|
|
3767
|
-
}, [
|
|
3789
|
+
}, [ee("*")]), v("span", {
|
|
3768
3790
|
class: "farris-label-text"
|
|
3769
|
-
}, [
|
|
3791
|
+
}, [ee("枚举值字段")])]), v("div", {
|
|
3770
3792
|
class: "farris-input-wrap"
|
|
3771
|
-
}, [ye(
|
|
3793
|
+
}, [ye(v("input", {
|
|
3772
3794
|
type: "input",
|
|
3773
3795
|
class: "form-control",
|
|
3774
3796
|
"onUpdate:modelValue": (m) => l.value = m,
|
|
3775
3797
|
readonly: n.readonly
|
|
3776
|
-
}, null), [[
|
|
3798
|
+
}, null), [[ke, l.value]])])])]), v("div", {
|
|
3777
3799
|
class: "farris-group-wrap"
|
|
3778
|
-
}, [
|
|
3800
|
+
}, [v("div", {
|
|
3779
3801
|
class: "form-group farris-form-group"
|
|
3780
|
-
}, [
|
|
3802
|
+
}, [v("label", {
|
|
3781
3803
|
class: "col-form-label"
|
|
3782
|
-
}, [
|
|
3804
|
+
}, [v("span", {
|
|
3783
3805
|
class: "farris-label-info text-danger"
|
|
3784
|
-
}, [
|
|
3806
|
+
}, [ee("*")]), v("span", {
|
|
3785
3807
|
class: "farris-label-text"
|
|
3786
|
-
}, [
|
|
3808
|
+
}, [ee("枚举名称字段")])]), v("div", {
|
|
3787
3809
|
class: "farris-input-wrap"
|
|
3788
|
-
}, [ye(
|
|
3810
|
+
}, [ye(v("input", {
|
|
3789
3811
|
type: "input",
|
|
3790
3812
|
class: "form-control",
|
|
3791
3813
|
"onUpdate:modelValue": (m) => a.value = m,
|
|
3792
3814
|
readonly: n.readonly
|
|
3793
|
-
}, null), [[
|
|
3815
|
+
}, null), [[ke, a.value]])])])])]), v(Bn, {
|
|
3794
3816
|
ref: s,
|
|
3795
3817
|
valueField: l.value,
|
|
3796
3818
|
nameField: a.value,
|
|
@@ -3801,11 +3823,11 @@ const Fn = /* @__PURE__ */ Y({
|
|
|
3801
3823
|
canEmpty: n.canEmpty,
|
|
3802
3824
|
datas: r(),
|
|
3803
3825
|
columns: d(),
|
|
3804
|
-
onChange: (m, f,
|
|
3826
|
+
onChange: (m, f, C) => g(m, f, C)
|
|
3805
3827
|
}, null)])]
|
|
3806
3828
|
});
|
|
3807
3829
|
}
|
|
3808
|
-
}),
|
|
3830
|
+
}), Vn = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/radio-group.schema.json", Rn = "radio-group", Nn = "A Farris Input Component", Ln = "object", zn = {
|
|
3809
3831
|
id: {
|
|
3810
3832
|
description: "The unique identifier for a radio-group",
|
|
3811
3833
|
type: "string"
|
|
@@ -3890,32 +3912,39 @@ const Fn = /* @__PURE__ */ Y({
|
|
|
3890
3912
|
description: "值变化事件",
|
|
3891
3913
|
type: "string"
|
|
3892
3914
|
}
|
|
3893
|
-
},
|
|
3915
|
+
}, Hn = [
|
|
3894
3916
|
"type"
|
|
3895
|
-
],
|
|
3917
|
+
], An = [
|
|
3896
3918
|
"id",
|
|
3897
3919
|
"appearance",
|
|
3898
3920
|
"binding",
|
|
3899
3921
|
"visible"
|
|
3900
|
-
],
|
|
3901
|
-
$schema:
|
|
3902
|
-
$id:
|
|
3903
|
-
title:
|
|
3904
|
-
description:
|
|
3905
|
-
type:
|
|
3906
|
-
properties:
|
|
3907
|
-
required:
|
|
3908
|
-
ignore:
|
|
3909
|
-
},
|
|
3910
|
-
|
|
3911
|
-
|
|
3922
|
+
], Xe = {
|
|
3923
|
+
$schema: Vn,
|
|
3924
|
+
$id: On,
|
|
3925
|
+
title: Rn,
|
|
3926
|
+
description: Nn,
|
|
3927
|
+
type: Ln,
|
|
3928
|
+
properties: zn,
|
|
3929
|
+
required: Hn,
|
|
3930
|
+
ignore: An
|
|
3931
|
+
}, Qn = Pe(Oe, Xe, qe, We), _e = Ve(
|
|
3932
|
+
Oe,
|
|
3933
|
+
Xe,
|
|
3934
|
+
qe,
|
|
3935
|
+
We
|
|
3936
|
+
);
|
|
3937
|
+
me.register = (n, t, e, o, i) => {
|
|
3938
|
+
n["radio-group"] = xt, t["radio-group"] = _e(i), n["item-collection-editor"] = Pn, t["item-collection-editor"] = En(i);
|
|
3912
3939
|
};
|
|
3913
|
-
|
|
3914
|
-
n["radio-group"] =
|
|
3940
|
+
me.registerDesigner = (n, t, e, o) => {
|
|
3941
|
+
n["radio-group"] = me, t["radio-group"] = _e(o);
|
|
3915
3942
|
};
|
|
3916
|
-
const
|
|
3943
|
+
const ei = Ct(me);
|
|
3917
3944
|
export {
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3945
|
+
Pn as FItemCollectionEditor,
|
|
3946
|
+
me as FRadioGroupDesign,
|
|
3947
|
+
ei as default,
|
|
3948
|
+
Qn as propsResolver,
|
|
3949
|
+
_e as propsResolverGenerator
|
|
3921
3950
|
};
|