@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,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as
|
|
5
|
-
import { LocaleService as
|
|
6
|
-
import { getMaxZIndex as
|
|
7
|
-
import { BaseControlProperty as
|
|
8
|
-
const
|
|
1
|
+
var Re = Object.defineProperty;
|
|
2
|
+
var Pe = (e, t, a) => t in e ? Re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
+
var Y = (e, t, a) => Pe(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import { ref as o, createVNode as g, Fragment as Le, watch as A, defineComponent as Oe, computed as W, nextTick as ie, onBeforeMount as We, onMounted as ue, onUnmounted as re, watchEffect as je, Teleport as Fe, Transition as Ne, shallowRef as Ve, render as le, h as De, cloneVNode as Xe, createApp as Ye, mergeProps as Ae } from "vue";
|
|
5
|
+
import { LocaleService as _ } from "../locale/index.esm.js";
|
|
6
|
+
import { isMobilePhone as Ue, getMaxZIndex as se } from "../common/index.esm.js";
|
|
7
|
+
import { BaseControlProperty as $e } from "../property-panel/index.esm.js";
|
|
8
|
+
const qe = {
|
|
9
9
|
/**
|
|
10
10
|
* 允许点击遮罩关闭对话框
|
|
11
11
|
*/
|
|
@@ -84,107 +84,108 @@ const Ae = {
|
|
|
84
84
|
dialogType: { type: String, default: "" },
|
|
85
85
|
src: { type: String, default: "" },
|
|
86
86
|
footerHeight: { type: Number, default: 60 },
|
|
87
|
-
host: { type: Object, default: "body" }
|
|
87
|
+
host: { type: Object, default: "body" },
|
|
88
|
+
isMessager: { type: Boolean, default: !1 }
|
|
88
89
|
};
|
|
89
90
|
class E {
|
|
90
|
-
constructor(
|
|
91
|
-
this.x =
|
|
91
|
+
constructor(t, a) {
|
|
92
|
+
this.x = t, this.y = a;
|
|
92
93
|
}
|
|
93
|
-
static getTransformInfo(
|
|
94
|
-
const n = window.getComputedStyle(
|
|
94
|
+
static getTransformInfo(t) {
|
|
95
|
+
const n = window.getComputedStyle(t).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
|
|
95
96
|
if (n.length >= 6) {
|
|
96
|
-
const
|
|
97
|
-
return { x:
|
|
97
|
+
const f = parseInt(n[4], 10), m = parseInt(n[5], 10);
|
|
98
|
+
return { x: f, y: m };
|
|
98
99
|
}
|
|
99
100
|
return { x: 0, y: 0 };
|
|
100
101
|
}
|
|
101
|
-
static fromEvent(
|
|
102
|
-
if (this.isMouseEvent(
|
|
103
|
-
return new E(
|
|
104
|
-
if (a === null ||
|
|
105
|
-
return new E(
|
|
106
|
-
for (let n = 0; n <
|
|
107
|
-
if (
|
|
108
|
-
return new E(
|
|
102
|
+
static fromEvent(t, a = null) {
|
|
103
|
+
if (this.isMouseEvent(t))
|
|
104
|
+
return new E(t.clientX, t.clientY);
|
|
105
|
+
if (a === null || t.changedTouches.length === 1)
|
|
106
|
+
return new E(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
|
|
107
|
+
for (let n = 0; n < t.changedTouches.length; n++)
|
|
108
|
+
if (t.changedTouches[n].target === a)
|
|
109
|
+
return new E(t.changedTouches[n].clientX, t.changedTouches[n].clientY);
|
|
109
110
|
}
|
|
110
|
-
static isMouseEvent(
|
|
111
|
-
return Object.prototype.toString.apply(
|
|
111
|
+
static isMouseEvent(t) {
|
|
112
|
+
return Object.prototype.toString.apply(t).indexOf("MouseEvent") === 8;
|
|
112
113
|
}
|
|
113
|
-
static isIPosition(
|
|
114
|
-
return !!
|
|
114
|
+
static isIPosition(t) {
|
|
115
|
+
return !!t && "x" in t && "y" in t;
|
|
115
116
|
}
|
|
116
|
-
static getCurrent(
|
|
117
|
+
static getCurrent(t) {
|
|
117
118
|
const a = new E(0, 0);
|
|
118
119
|
if (window) {
|
|
119
|
-
const n = window.getComputedStyle(
|
|
120
|
+
const n = window.getComputedStyle(t);
|
|
120
121
|
if (n) {
|
|
121
|
-
const
|
|
122
|
-
a.x = isNaN(
|
|
122
|
+
const f = parseInt(n.getPropertyValue("left"), 10), m = parseInt(n.getPropertyValue("top"), 10);
|
|
123
|
+
a.x = isNaN(f) ? 0 : f, a.y = isNaN(m) ? 0 : m;
|
|
123
124
|
}
|
|
124
125
|
return a;
|
|
125
126
|
}
|
|
126
127
|
return null;
|
|
127
128
|
}
|
|
128
|
-
static copy(
|
|
129
|
-
return new E(0, 0).set(
|
|
129
|
+
static copy(t) {
|
|
130
|
+
return new E(0, 0).set(t);
|
|
130
131
|
}
|
|
131
132
|
get value() {
|
|
132
133
|
return { x: this.x, y: this.y };
|
|
133
134
|
}
|
|
134
|
-
add(
|
|
135
|
-
return this.x +=
|
|
135
|
+
add(t) {
|
|
136
|
+
return this.x += t.x, this.y += t.y, this;
|
|
136
137
|
}
|
|
137
|
-
subtract(
|
|
138
|
-
return this.x -=
|
|
138
|
+
subtract(t) {
|
|
139
|
+
return this.x -= t.x, this.y -= t.y, this;
|
|
139
140
|
}
|
|
140
|
-
multiply(
|
|
141
|
-
this.x *=
|
|
141
|
+
multiply(t) {
|
|
142
|
+
this.x *= t, this.y *= t;
|
|
142
143
|
}
|
|
143
|
-
divide(
|
|
144
|
-
this.x /=
|
|
144
|
+
divide(t) {
|
|
145
|
+
this.x /= t, this.y /= t;
|
|
145
146
|
}
|
|
146
147
|
reset() {
|
|
147
148
|
return this.x = 0, this.y = 0, this;
|
|
148
149
|
}
|
|
149
|
-
set(
|
|
150
|
-
return this.x =
|
|
150
|
+
set(t) {
|
|
151
|
+
return this.x = t.x, this.y = t.y, this;
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
|
-
class
|
|
154
|
-
constructor(
|
|
155
|
-
this.width =
|
|
154
|
+
class U {
|
|
155
|
+
constructor(t, a) {
|
|
156
|
+
this.width = t, this.height = a;
|
|
156
157
|
}
|
|
157
|
-
static getCurrent(
|
|
158
|
-
const a = new
|
|
158
|
+
static getCurrent(t) {
|
|
159
|
+
const a = new U(0, 0);
|
|
159
160
|
if (window) {
|
|
160
|
-
const n = window.getComputedStyle(
|
|
161
|
+
const n = window.getComputedStyle(t);
|
|
161
162
|
return n && (a.width = parseInt(n.getPropertyValue("width"), 10), a.height = parseInt(n.getPropertyValue("height"), 10)), a;
|
|
162
163
|
}
|
|
163
164
|
return null;
|
|
164
165
|
}
|
|
165
|
-
static copy(
|
|
166
|
-
return new
|
|
166
|
+
static copy(t) {
|
|
167
|
+
return new U(0, 0).set(t);
|
|
167
168
|
}
|
|
168
|
-
set(
|
|
169
|
-
return this.width =
|
|
169
|
+
set(t) {
|
|
170
|
+
return this.width = t.width, this.height = t.height, this;
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
-
const a =
|
|
173
|
+
function Ke(e, t) {
|
|
174
|
+
const a = o(), n = o(), f = o(), m = o(), d = o(), r = o(), c = o(), h = o(), x = o(), M = o(), L = o(), j = o(e.resizeable), P = o(), F = o(e.draggable), O = o(!1);
|
|
174
175
|
function S() {
|
|
175
|
-
const
|
|
176
|
+
const s = n.value || document.body, i = window.getComputedStyle(s);
|
|
176
177
|
if (!i || !a.value)
|
|
177
178
|
return;
|
|
178
179
|
const p = E.getTransformInfo(a.value), y = {};
|
|
179
180
|
c.value && (y.deltaL = a.value.offsetLeft - c.value.x, y.deltaT = a.value.offsetTop - c.value.y);
|
|
180
181
|
const k = i.getPropertyValue("position");
|
|
181
|
-
y.width =
|
|
182
|
+
y.width = s.clientWidth, y.height = s.clientHeight, y.pr = parseInt(i.getPropertyValue("padding-right"), 10), y.pb = parseInt(i.getPropertyValue("padding-bottom"), 10), y.position = i.getPropertyValue("position"), k === "static" && (s.style.position = "relative"), y.translateX = p.x, y.translateY = p.y, M.value = y;
|
|
182
183
|
}
|
|
183
|
-
function B(
|
|
184
|
+
function B(s) {
|
|
184
185
|
if (a.value) {
|
|
185
|
-
m.value =
|
|
186
|
-
const i =
|
|
187
|
-
|
|
186
|
+
m.value = U.getCurrent(a.value), d.value = E.getCurrent(a.value), r.value = m.value ? U.copy(m.value) : null, c.value = d.value ? E.copy(d.value) : null, S();
|
|
187
|
+
const i = s.target.getAttribute("type") || "";
|
|
188
|
+
h.value = {
|
|
188
189
|
n: !!i.match(/n/),
|
|
189
190
|
s: !!i.match(/s/),
|
|
190
191
|
w: !!i.match(/w/),
|
|
@@ -193,49 +194,49 @@ function Ue(t, e) {
|
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
function T() {
|
|
196
|
-
var
|
|
197
|
+
var s, i, p, y;
|
|
197
198
|
if (a.value) {
|
|
198
199
|
const k = a.value;
|
|
199
|
-
|
|
200
|
+
h.value && ((h.value.n || h.value.s) && ((s = r.value) != null && s.height) && (k.style.height = r.value.height + "px"), (h.value.w || h.value.e) && ((i = r.value) != null && i.width) && (k.style.width = r.value.width + "px"), c.value && ((p = c.value) != null && p.x && (k.style.left = c.value.x + "px"), (y = c.value) != null && y.y && (k.style.top = c.value.y + "px")));
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
-
const
|
|
204
|
-
r.value && c.value &&
|
|
203
|
+
function X() {
|
|
204
|
+
const s = e.minHeight ? e.minHeight : 1, i = e.minWidth ? e.minWidth : 1;
|
|
205
|
+
r.value && c.value && h.value && m.value && (r.value.height < s && (r.value.height = s, h.value.n && d.value && (c.value.y = d.value.y + (m.value.height - s))), r.value.width < i && (r.value.width = i, h.value.w && d.value && (c.value.x = d.value.x + (m.value.width - i))), e.maxHeight && r.value.height > e.maxHeight && (r.value.height = e.maxHeight, d.value && h.value.n && (c.value.y = d.value.y + (m.value.height - e.maxHeight))), e.maxWidth && r.value.width > e.maxWidth && (r.value.width = e.maxWidth, h.value.w && d.value && (c.value.x = d.value.x + (m.value.width - e.maxWidth))));
|
|
205
206
|
}
|
|
206
207
|
function w() {
|
|
207
208
|
if (n.value) {
|
|
208
|
-
const
|
|
209
|
-
if (c.value && r.value &&
|
|
210
|
-
const i =
|
|
211
|
-
|
|
209
|
+
const s = M.value;
|
|
210
|
+
if (c.value && r.value && h.value && m.value) {
|
|
211
|
+
const i = s.width - s.pr - s.deltaL - s.translateX - c.value.x, p = s.height - s.pb - s.deltaT - s.translateY - c.value.y;
|
|
212
|
+
h.value.n && c.value.y + s.translateY < 0 && d.value && (c.value.y = -s.translateY, r.value.height = m.value.height + d.value.y + s.translateY), h.value.w && c.value.x + s.translateX < 0 && d.value && (c.value.x = -s.translateX, r.value.width = m.value.width + d.value.x + s.translateX), r.value.width > i && (r.value.width = i), r.value.height > p && (r.value.height = p);
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
|
-
function z(
|
|
216
|
-
if (!
|
|
216
|
+
function z(s) {
|
|
217
|
+
if (!f.value || !m.value || !d.value || !h.value)
|
|
217
218
|
return;
|
|
218
|
-
|
|
219
|
-
const i =
|
|
220
|
-
|
|
219
|
+
s.subtract(f.value);
|
|
220
|
+
const i = s.x, p = s.y;
|
|
221
|
+
h.value.n ? (c.value.y = d.value.y + p, r.value.height = m.value.height - p) : h.value.s && (r.value.height = m.value.height + p), h.value.e ? r.value.width = m.value.width + i : h.value.w && (r.value.width = m.value.width - i, c.value.x = d.value.x + i), w(), X(), T();
|
|
221
222
|
}
|
|
222
|
-
function u(
|
|
223
|
+
function u(s) {
|
|
223
224
|
if (!x.value)
|
|
224
225
|
return;
|
|
225
|
-
const i = E.fromEvent(
|
|
226
|
+
const i = E.fromEvent(s);
|
|
226
227
|
i && z(i);
|
|
227
228
|
}
|
|
228
229
|
function b() {
|
|
229
230
|
if (a.value) {
|
|
230
231
|
const {
|
|
231
|
-
width:
|
|
232
|
+
width: s,
|
|
232
233
|
height: i,
|
|
233
234
|
x: p,
|
|
234
235
|
y
|
|
235
236
|
} = a.value.getBoundingClientRect(), k = E.getTransformInfo(a.value);
|
|
236
237
|
return {
|
|
237
238
|
size: {
|
|
238
|
-
width:
|
|
239
|
+
width: s,
|
|
239
240
|
height: i
|
|
240
241
|
},
|
|
241
242
|
position: {
|
|
@@ -246,21 +247,21 @@ function Ue(t, e) {
|
|
|
246
247
|
}
|
|
247
248
|
return null;
|
|
248
249
|
}
|
|
249
|
-
function H(
|
|
250
|
+
function H(s) {
|
|
250
251
|
if (a.value) {
|
|
251
252
|
const i = b();
|
|
252
253
|
L.value = i;
|
|
253
254
|
}
|
|
254
|
-
|
|
255
|
+
f.value = void 0, m.value = null, d.value = null, r.value = null, c.value = null, h.value = null, x.value = null, document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", H);
|
|
255
256
|
}
|
|
256
257
|
function N() {
|
|
257
258
|
document.addEventListener("mousemove", u), document.addEventListener("mouseup", H);
|
|
258
259
|
}
|
|
259
|
-
function C(
|
|
260
|
-
|
|
260
|
+
function C(s) {
|
|
261
|
+
s instanceof MouseEvent && s.button === 2 || F.value && (document.body.click(), s.stopPropagation(), s.preventDefault(), f.value = E.fromEvent(s), x.value = s.target, B(s), N());
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
-
return a.value =
|
|
263
|
+
function V(s) {
|
|
264
|
+
return a.value = s, j.value && g(Le, null, [g("div", {
|
|
264
265
|
class: "fv-resizable-handle fv-resizable-n",
|
|
265
266
|
type: "n",
|
|
266
267
|
onMousedown: (i) => C(i)
|
|
@@ -294,10 +295,10 @@ function Ue(t, e) {
|
|
|
294
295
|
onMousedown: (i) => C(i)
|
|
295
296
|
}, null)]);
|
|
296
297
|
}
|
|
297
|
-
function K(
|
|
298
|
+
function K(s = !0) {
|
|
298
299
|
document.body.click();
|
|
299
|
-
const i = n.value || document.body, p =
|
|
300
|
-
|
|
300
|
+
const i = n.value || document.body, p = U.getCurrent(i), y = a.value;
|
|
301
|
+
s && y && (P.value = b(), P.value.transform = y.style.transform), p && y && (r.value = p, r.value.height -= 14, r.value.width -= 14, y.style.height = r.value.height + "px", y.style.width = r.value.width + "px", y.style.left = "7px", y.style.top = "7px", y.style.transform = "", L.value = {
|
|
301
302
|
size: r.value,
|
|
302
303
|
position: {
|
|
303
304
|
x: 0,
|
|
@@ -305,8 +306,8 @@ function Ue(t, e) {
|
|
|
305
306
|
}
|
|
306
307
|
}, F.value = !1, O.value = !0);
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
-
var
|
|
309
|
+
function G() {
|
|
310
|
+
var s, i;
|
|
310
311
|
if (document.body.click(), P.value) {
|
|
311
312
|
const p = {
|
|
312
313
|
width: P.value.size.width || 0,
|
|
@@ -315,50 +316,50 @@ function Ue(t, e) {
|
|
|
315
316
|
x: (window.innerWidth - p.width) / 2,
|
|
316
317
|
y: (window.innerHeight - p.height) / 2
|
|
317
318
|
};
|
|
318
|
-
(
|
|
319
|
+
(s = r.value) == null || s.set(p), (i = c.value) == null || i.set(y);
|
|
319
320
|
const k = a.value;
|
|
320
321
|
k.style.height = p.height + "px", k.style.width = p.width + "px", k.style.left = `${y.x}px`, k.style.top = `${y.y}px`, k.style.transform = "", L.value = {
|
|
321
322
|
size: p,
|
|
322
323
|
position: y
|
|
323
|
-
}, F.value =
|
|
324
|
+
}, F.value = e.draggable, O.value = !1;
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
327
|
function J() {
|
|
327
328
|
if (a.value) {
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
329
|
+
const s = U.getCurrent(a.value);
|
|
330
|
+
if (s) {
|
|
330
331
|
const {
|
|
331
332
|
width: i,
|
|
332
333
|
height: p
|
|
333
|
-
} =
|
|
334
|
+
} = s;
|
|
334
335
|
a.value.style.left = `${(window.innerWidth - i) / 2}px`, a.value.style.top = `${(window.innerHeight - p) / 2}px`, a.value.style.transform = "";
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
-
const
|
|
339
|
+
function $() {
|
|
340
|
+
const s = () => {
|
|
340
341
|
O.value ? K(!1) : J(), document.body.click();
|
|
341
342
|
};
|
|
342
|
-
return window.addEventListener("resize",
|
|
343
|
-
window.removeEventListener("resize",
|
|
343
|
+
return window.addEventListener("resize", s), () => {
|
|
344
|
+
window.removeEventListener("resize", s);
|
|
344
345
|
};
|
|
345
346
|
}
|
|
346
|
-
const
|
|
347
|
+
const Q = $();
|
|
347
348
|
return {
|
|
348
|
-
renderResizeBar:
|
|
349
|
+
renderResizeBar: V,
|
|
349
350
|
boundingElement: n,
|
|
350
351
|
resizedEventParam: L,
|
|
351
352
|
maximize: K,
|
|
352
|
-
restore:
|
|
353
|
+
restore: G,
|
|
353
354
|
allowDrag: F,
|
|
354
355
|
isMaximized: O,
|
|
355
|
-
unWindowResizeHandle:
|
|
356
|
+
unWindowResizeHandle: Q,
|
|
356
357
|
moveToCenter: J
|
|
357
358
|
};
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
-
const n =
|
|
361
|
-
|
|
360
|
+
function Je(e, t, a) {
|
|
361
|
+
const n = o(), f = o(e.draggable), m = o(e.lockAxis), d = o(), r = o(), c = o(!1), h = o(new E(0, 0)), x = o(new E(0, 0)), M = o(new E(0, 0)), L = o(new E(0, 0));
|
|
362
|
+
A(() => a.value, (u) => {
|
|
362
363
|
d.value.style.cursor = u ? "move" : "default";
|
|
363
364
|
});
|
|
364
365
|
function j(u, b) {
|
|
@@ -374,7 +375,7 @@ function $e(t, e, a) {
|
|
|
374
375
|
function P() {
|
|
375
376
|
var N, C;
|
|
376
377
|
let u = M.value.x + x.value.x, b = M.value.y + x.value.y;
|
|
377
|
-
m.value === "x" ? (u = ((N =
|
|
378
|
+
m.value === "x" ? (u = ((N = h.value) == null ? void 0 : N.x) || 0, M.value.x = 0) : m.value === "y" && (b = ((C = h.value) == null ? void 0 : C.y) || 0, M.value.y = 0);
|
|
378
379
|
const H = `translate3d(${Math.round(u)}px, ${Math.round(b)}px, 0px)`;
|
|
379
380
|
n.value && (n.value.style.transform = H), L.value.x = u, L.value.y = b;
|
|
380
381
|
}
|
|
@@ -390,19 +391,19 @@ function $e(t, e, a) {
|
|
|
390
391
|
return H.top || (M.value.y -= b.top - u.top), H.bottom || (M.value.y -= b.bottom - u.bottom), H.right || (M.value.x -= b.right - u.right), H.left || (M.value.x -= b.left - u.left), P(), H;
|
|
391
392
|
}
|
|
392
393
|
function O(u) {
|
|
393
|
-
u && (
|
|
394
|
+
u && (h.value && u.subtract(h.value), M.value.set(u), P(), F());
|
|
394
395
|
}
|
|
395
396
|
function S(u) {
|
|
396
|
-
c.value &&
|
|
397
|
+
c.value && f.value && (u.stopPropagation(), u.preventDefault(), O(E.fromEvent(u, d.value)));
|
|
397
398
|
}
|
|
398
399
|
function B() {
|
|
399
400
|
var u;
|
|
400
|
-
c.value && (c.value = !1, x.value.add(M.value), M.value.reset(), (u = n.value) == null || u.classList.remove("ng-dragging"),
|
|
401
|
+
c.value && (c.value = !1, x.value.add(M.value), M.value.reset(), (u = n.value) == null || u.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", B));
|
|
401
402
|
}
|
|
402
403
|
function T() {
|
|
403
404
|
!c.value && d.value && (c.value = !0, d.value.classList.add("ng-dragging"), document.addEventListener("mousemove", S), document.addEventListener("mouseup", B));
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function X() {
|
|
406
407
|
if (n.value) {
|
|
407
408
|
const u = E.getTransformInfo(n.value);
|
|
408
409
|
x.value.set(u);
|
|
@@ -414,225 +415,228 @@ function $e(t, e, a) {
|
|
|
414
415
|
if (!a.value || u instanceof MouseEvent && u.button === 2)
|
|
415
416
|
return;
|
|
416
417
|
const b = u.target || u.srcElement;
|
|
417
|
-
d.value !== void 0 && b && !j(b, d.value) ||
|
|
418
|
+
d.value !== void 0 && b && !j(b, d.value) || f.value !== !1 && (document.body.click(), u.stopPropagation(), u.preventDefault(), h.value = E.fromEvent(u, n.value), X(), T());
|
|
418
419
|
}
|
|
419
420
|
function z(u, b, H) {
|
|
420
|
-
if (
|
|
421
|
+
if (f.value && b) {
|
|
421
422
|
if (u)
|
|
422
423
|
d.value = u;
|
|
423
|
-
else if (
|
|
424
|
-
if (
|
|
425
|
-
d.value =
|
|
426
|
-
else if (typeof
|
|
427
|
-
const N = b.querySelector(
|
|
424
|
+
else if (e.dragHandle) {
|
|
425
|
+
if (e.dragHandle instanceof HTMLElement)
|
|
426
|
+
d.value = e.dragHandle;
|
|
427
|
+
else if (typeof e.dragHandle == "string") {
|
|
428
|
+
const N = b.querySelector(e.dragHandle);
|
|
428
429
|
N && (d.value = N);
|
|
429
430
|
}
|
|
430
431
|
}
|
|
431
|
-
n.value = b, r.value = H, d.value ? (d.value.classList.add("ng-draggable"), d.value.addEventListener("mousedown", w)) :
|
|
432
|
+
n.value = b, r.value = H, d.value ? (d.value.classList.add("ng-draggable"), d.value.addEventListener("mousedown", w)) : f.value = !1;
|
|
432
433
|
}
|
|
433
434
|
}
|
|
434
435
|
return {
|
|
435
436
|
registerDraggle: z,
|
|
436
|
-
resetTranslate:
|
|
437
|
+
resetTranslate: X
|
|
437
438
|
};
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
-
if (
|
|
440
|
+
function ce(e, t) {
|
|
441
|
+
if (e) {
|
|
441
442
|
const a = (n) => {
|
|
442
|
-
n.key.toLowerCase() ===
|
|
443
|
+
n.key.toLowerCase() === e.toLowerCase() && t({ event: n, key: e });
|
|
443
444
|
};
|
|
444
445
|
return document.addEventListener("keydown", a), () => {
|
|
445
446
|
document.removeEventListener("keydown", a);
|
|
446
447
|
};
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
|
-
function
|
|
450
|
-
const a =
|
|
450
|
+
function Ze(e, t) {
|
|
451
|
+
const a = o(e.enableEsc);
|
|
451
452
|
let n = null;
|
|
452
|
-
return a.value ? (n =
|
|
453
|
-
|
|
453
|
+
return a.value ? (n = ce("Escape", (f) => {
|
|
454
|
+
t.emit("esc", { event: f.event, type: "esc" });
|
|
454
455
|
}), {
|
|
455
456
|
remove: n
|
|
456
457
|
}) : null;
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
-
const a =
|
|
459
|
+
function _e(e, t) {
|
|
460
|
+
const a = o(e.enableEnter);
|
|
460
461
|
let n = null;
|
|
461
|
-
return a.value ? (n =
|
|
462
|
-
|
|
462
|
+
return a.value ? (n = ce("Enter", (f) => {
|
|
463
|
+
t.emit("enter", { event: f.event, type: "enter" });
|
|
463
464
|
}), {
|
|
464
465
|
remove: n
|
|
465
466
|
}) : null;
|
|
466
467
|
}
|
|
467
|
-
const q = /* @__PURE__ */
|
|
468
|
+
const q = /* @__PURE__ */ Oe({
|
|
468
469
|
name: "FModal",
|
|
469
|
-
props:
|
|
470
|
+
props: qe,
|
|
470
471
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
471
|
-
setup(
|
|
472
|
-
const a =
|
|
473
|
-
S.value === "错误提示" && (S.value =
|
|
474
|
-
const
|
|
475
|
-
function w(l,
|
|
476
|
-
const R =
|
|
472
|
+
setup(e, t) {
|
|
473
|
+
const a = o(e.width || 300), n = o(e.height || 200), f = o(e.modelValue), m = o(""), d = o(e.class), r = o(e.fitContent), c = o(e.showHeader), h = o(""), x = o(e.showCloseButton), M = o(e.showMaxButton), L = o(!1), j = o(e.dialogType), P = o(e.src), F = o(""), O = o(e.showButtons), S = o(e.title), B = o(e.containment || null), T = o();
|
|
474
|
+
S.value === "错误提示" && (S.value = _.getLocaleValue("messageBox.errorTitle"));
|
|
475
|
+
const X = o(!1);
|
|
476
|
+
function w(l, v) {
|
|
477
|
+
const R = v ? "accept" : "cancel";
|
|
477
478
|
Promise.resolve().then(() => {
|
|
478
479
|
var I;
|
|
479
|
-
return (I =
|
|
480
|
+
return (I = e.beforeClose) == null ? void 0 : I.call(e, {
|
|
480
481
|
closeType: R
|
|
481
482
|
});
|
|
482
483
|
}).then((I) => {
|
|
483
|
-
I && (
|
|
484
|
+
I && (f.value = !1, t.emit("update:modelValue", !1), v != null && t.emit(v ? "accept" : "cancel"), t.emit("closed", l));
|
|
484
485
|
});
|
|
485
486
|
}
|
|
486
487
|
const z = [{
|
|
487
488
|
name: "cancel",
|
|
488
|
-
text:
|
|
489
|
+
text: _.getLocaleValue("messageBox.cancel") || "取消",
|
|
489
490
|
class: "btn btn-secondary",
|
|
490
491
|
handle: (l) => {
|
|
491
492
|
w(l, !1);
|
|
492
493
|
}
|
|
493
494
|
}, {
|
|
494
495
|
name: "accept",
|
|
495
|
-
text:
|
|
496
|
+
text: _.getLocaleValue("messageBox.ok") || "确定",
|
|
496
497
|
class: "btn btn-primary",
|
|
497
498
|
handle: (l) => {
|
|
498
499
|
w(l, !0);
|
|
499
500
|
}
|
|
500
|
-
}], u =
|
|
501
|
+
}], u = o(e.buttons && e.buttons.length ? e.buttons : z), b = W(() => !!h.value), H = W(() => !!O.value && !!u.value), N = o(), C = o(), V = o(!1), {
|
|
501
502
|
renderResizeBar: K,
|
|
502
|
-
maximize:
|
|
503
|
+
maximize: G,
|
|
503
504
|
restore: J,
|
|
504
|
-
boundingElement:
|
|
505
|
-
resizedEventParam:
|
|
506
|
-
allowDrag:
|
|
505
|
+
boundingElement: $,
|
|
506
|
+
resizedEventParam: Q,
|
|
507
|
+
allowDrag: s,
|
|
507
508
|
unWindowResizeHandle: i,
|
|
508
509
|
moveToCenter: p
|
|
509
|
-
} =
|
|
510
|
+
} = Ke(e), {
|
|
510
511
|
registerDraggle: y
|
|
511
|
-
} =
|
|
512
|
+
} = Je(e, t, s);
|
|
512
513
|
function k() {
|
|
513
514
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function ve() {
|
|
516
517
|
const l = document.querySelectorAll(".farris-modal").length;
|
|
517
518
|
(!l || l - 1 <= 0) && document.body.classList.remove("modal-open"), T.value && T.value.classList.remove("show");
|
|
518
519
|
}
|
|
519
|
-
|
|
520
|
-
l !==
|
|
521
|
-
}),
|
|
522
|
-
l !==
|
|
523
|
-
C.value && !B.value && (B.value = C.value.parentElement,
|
|
524
|
-
}), l || (B.value && (B.value = null),
|
|
525
|
-
}),
|
|
526
|
-
l !==
|
|
527
|
-
}),
|
|
528
|
-
l !==
|
|
529
|
-
}),
|
|
530
|
-
const R = l || {}, I =
|
|
531
|
-
JSON.stringify(R) !== JSON.stringify(I) &&
|
|
520
|
+
A(() => e.title, (l, v) => {
|
|
521
|
+
l !== v && (S.value = l);
|
|
522
|
+
}), A(() => e.modelValue, (l, v) => {
|
|
523
|
+
l !== v && (f.value = l, f.value && e.draggable && ie(() => {
|
|
524
|
+
C.value && !B.value && (B.value = C.value.parentElement, $.value = B.value, y(N.value, C.value, $.value), p());
|
|
525
|
+
}), l || (B.value && (B.value = null), ve())), f.value ? X.value = k() : (V.value = !1, s.value = e.draggable);
|
|
526
|
+
}), A(() => e.showHeader, (l, v) => {
|
|
527
|
+
l !== v && (c.value = l);
|
|
528
|
+
}), A(() => e.showButtons, (l, v) => {
|
|
529
|
+
l !== v && (O.value = l);
|
|
530
|
+
}), A(() => Q.value, (l, v) => {
|
|
531
|
+
const R = l || {}, I = v || {};
|
|
532
|
+
JSON.stringify(R) !== JSON.stringify(I) && t.emit("resize", {
|
|
532
533
|
newSize: l,
|
|
533
|
-
oldSize:
|
|
534
|
-
isMaximized:
|
|
534
|
+
oldSize: v,
|
|
535
|
+
isMaximized: V.value
|
|
535
536
|
});
|
|
536
|
-
}),
|
|
537
|
-
(l[0] !==
|
|
537
|
+
}), A([() => e.width, () => e.height], (l, v) => {
|
|
538
|
+
(l[0] !== v[0] || l[1] !== v[1]) && (a.value = l[0] || 500, n.value = l[1] || 600);
|
|
539
|
+
}), A(() => e.class, (l, v) => {
|
|
540
|
+
d.value = l;
|
|
538
541
|
});
|
|
539
|
-
const
|
|
542
|
+
const Z = W(() => (f.value && document.body.classList.add("modal-open"), f.value)), fe = W(() => {
|
|
540
543
|
var R;
|
|
541
544
|
const l = {
|
|
542
545
|
modal: !0,
|
|
543
546
|
"farris-modal": !0,
|
|
544
547
|
fade: !0
|
|
545
548
|
};
|
|
546
|
-
l["f-modal-fitContent"] = !!r.value, l.show = !!
|
|
547
|
-
const
|
|
548
|
-
return
|
|
549
|
-
}),
|
|
549
|
+
l["f-modal-fitContent"] = !!r.value, l.show = !!Z.value;
|
|
550
|
+
const v = (R = e.maskClass) == null ? void 0 : R.split(" ");
|
|
551
|
+
return v == null || v.reduce((I, D) => (I[D] = !0, I), l), l;
|
|
552
|
+
}), he = W(() => {
|
|
550
553
|
var R;
|
|
551
554
|
const l = {
|
|
552
555
|
"modal-dialog": !0
|
|
553
|
-
},
|
|
554
|
-
return
|
|
555
|
-
}),
|
|
556
|
-
const l = document.documentElement.clientWidth,
|
|
556
|
+
}, v = (R = d.value) == null ? void 0 : R.split(" ");
|
|
557
|
+
return v == null || v.reduce((I, D) => (I[D] = !0, I), l), l;
|
|
558
|
+
}), ae = () => Ue() && !e.isMessager, me = W(() => {
|
|
559
|
+
const l = document.documentElement.clientWidth, v = document.documentElement.clientHeight, R = Math.min(a.value, l), I = r.value ? "auto" : `${Math.min(n.value, v - 10)}px`, D = {
|
|
557
560
|
position: "absolute",
|
|
558
561
|
top: `${(window.innerHeight - parseInt(I === "auto" ? "0" : I)) / 2}px`,
|
|
559
562
|
left: `${(window.innerWidth - R) / 2}px`,
|
|
560
563
|
width: `${R}px`,
|
|
561
564
|
height: I
|
|
562
565
|
};
|
|
563
|
-
return
|
|
564
|
-
}),
|
|
566
|
+
return ae() && (D.top = "0px", D.left = "0px", D.width = `${window.innerWidth}px`, D.height = `${window.innerHeight}px`), e.mask || (D.pointerEvents = "auto"), D;
|
|
567
|
+
}), ne = o(se() || 1050), ge = W(() => {
|
|
565
568
|
const l = {
|
|
566
569
|
display: "block",
|
|
567
|
-
|
|
570
|
+
overflow: "hidden"
|
|
568
571
|
};
|
|
569
|
-
return
|
|
570
|
-
}),
|
|
572
|
+
return e.mask || (l.pointerEvents = "none", l.backgroundColor = "transparent"), X.value && (l.backgroundColor = "transparent"), l.zIndex = ne.value, l;
|
|
573
|
+
}), ye = W(() => ({
|
|
571
574
|
"modal-content": !0,
|
|
572
|
-
"modal-content-has-header": c.value
|
|
573
|
-
|
|
575
|
+
"modal-content-has-header": c.value,
|
|
576
|
+
"is-mobile": ae()
|
|
577
|
+
})), be = W(() => {
|
|
574
578
|
const l = {
|
|
575
579
|
display: c.value ? "" : "none"
|
|
576
580
|
};
|
|
577
|
-
return l["pointer-events"] =
|
|
578
|
-
}),
|
|
581
|
+
return l["pointer-events"] = s.value ? "auto" : "none", l;
|
|
582
|
+
}), we = W(() => ({
|
|
579
583
|
"f-icon": !0,
|
|
580
584
|
modal_maximize: !0,
|
|
581
|
-
modalrevert:
|
|
582
|
-
})),
|
|
585
|
+
modalrevert: V.value
|
|
586
|
+
})), pe = W(() => ({
|
|
583
587
|
"modal-body": !0,
|
|
584
588
|
"f-utils-flex-column": j.value === "iframe",
|
|
585
589
|
"f-utils-fill": !0
|
|
586
590
|
}));
|
|
587
|
-
function
|
|
591
|
+
function xe() {
|
|
588
592
|
return {
|
|
589
|
-
height: `${
|
|
593
|
+
height: `${e.footerHeight || 60}px`
|
|
590
594
|
};
|
|
591
595
|
}
|
|
592
|
-
const
|
|
596
|
+
const Ce = W(() => {
|
|
593
597
|
const l = {
|
|
594
598
|
textAlgin: F.value
|
|
595
|
-
},
|
|
596
|
-
return Object.assign(l,
|
|
599
|
+
}, v = xe();
|
|
600
|
+
return Object.assign(l, v);
|
|
597
601
|
});
|
|
598
|
-
function
|
|
599
|
-
if (l == null || l.stopPropagation(),
|
|
600
|
-
|
|
602
|
+
function oe(l) {
|
|
603
|
+
if (l == null || l.stopPropagation(), V.value) {
|
|
604
|
+
V.value = !1, J();
|
|
601
605
|
return;
|
|
602
606
|
}
|
|
603
|
-
|
|
607
|
+
G(), V.value = !0;
|
|
604
608
|
}
|
|
605
|
-
async function
|
|
606
|
-
l.handle && await l.handle(
|
|
609
|
+
async function Me(l, v) {
|
|
610
|
+
l.handle && await l.handle(v, l) && t.emit("closed", v);
|
|
607
611
|
}
|
|
608
|
-
function
|
|
612
|
+
function Ee(l) {
|
|
609
613
|
l.width && (a.value = l.width), l.height && (n.value = l.height), l.buttons && (u.value = l.buttons), l.title && (S.value = l.title);
|
|
610
614
|
}
|
|
611
615
|
let ee = null, te = null;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
}),
|
|
615
|
-
C.value && !B.value && (B.value = C.value.parentElement,
|
|
616
|
-
}),
|
|
616
|
+
We(() => {
|
|
617
|
+
X.value = k();
|
|
618
|
+
}), ue(() => {
|
|
619
|
+
C.value && !B.value && (B.value = C.value.parentElement, $.value = B.value, y(N.value, C.value, $.value)), Z.value && document.body.classList.add("modal-open"), ee = Ze(e, t), te = _e(e, t);
|
|
620
|
+
}), re(() => {
|
|
617
621
|
i && i(), ee && ee.remove(), te && te.remove();
|
|
618
|
-
}),
|
|
622
|
+
}), t.expose({
|
|
619
623
|
modalElementRef: C,
|
|
620
|
-
updateModalOptions:
|
|
624
|
+
updateModalOptions: Ee,
|
|
621
625
|
close: w,
|
|
622
|
-
maxDialog:
|
|
623
|
-
isMaximized:
|
|
626
|
+
maxDialog: oe,
|
|
627
|
+
isMaximized: V
|
|
624
628
|
});
|
|
625
|
-
function
|
|
629
|
+
function ze() {
|
|
626
630
|
return g("ul", null, [L.value && g("li", {
|
|
627
631
|
class: "f-btn-icon f-bare"
|
|
628
632
|
}, [g("span", {
|
|
629
633
|
class: "f-icon modal_minimize"
|
|
630
634
|
}, null)]), M.value && g("li", {
|
|
631
|
-
onClick:
|
|
635
|
+
onClick: oe,
|
|
632
636
|
class: "f-btn-icon f-bare",
|
|
633
637
|
style: "pointer-events: auto;"
|
|
634
638
|
}, [g("span", {
|
|
635
|
-
class:
|
|
639
|
+
class: we.value
|
|
636
640
|
}, null)]), x.value && g("li", {
|
|
637
641
|
class: "f-btn-icon f-bare",
|
|
638
642
|
onClick: (l) => w(l, !1),
|
|
@@ -641,114 +645,116 @@ const q = /* @__PURE__ */ Pe({
|
|
|
641
645
|
class: "f-icon modal_close"
|
|
642
646
|
}, null)])]);
|
|
643
647
|
}
|
|
644
|
-
function
|
|
648
|
+
function ke() {
|
|
645
649
|
return g("div", {
|
|
646
650
|
class: "modal-footer",
|
|
647
|
-
style:
|
|
651
|
+
style: Ce.value
|
|
648
652
|
}, [u.value && u.value.map((l) => {
|
|
649
|
-
const
|
|
653
|
+
const v = o(l.disabled);
|
|
650
654
|
return g("button", {
|
|
651
655
|
name: l.name,
|
|
652
656
|
type: "button",
|
|
653
|
-
disabled:
|
|
657
|
+
disabled: v.value,
|
|
654
658
|
class: l.class + (l.iconClass ? " btn-icontext" : ""),
|
|
655
659
|
onClick: (R) => {
|
|
656
|
-
|
|
660
|
+
Me(l, R);
|
|
657
661
|
}
|
|
658
662
|
}, [!!l.iconClass && g("i", {
|
|
659
663
|
class: l.iconClass
|
|
660
664
|
}, null), l.text]);
|
|
661
665
|
})]);
|
|
662
666
|
}
|
|
663
|
-
function
|
|
667
|
+
function Be() {
|
|
664
668
|
return g("div", {
|
|
665
669
|
ref: N,
|
|
666
670
|
class: "modal-header",
|
|
667
|
-
style:
|
|
668
|
-
}, [
|
|
671
|
+
style: be.value
|
|
672
|
+
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : g("div", {
|
|
669
673
|
class: "modal-title"
|
|
670
674
|
}, [b.value && g("span", {
|
|
671
|
-
class:
|
|
675
|
+
class: h.value,
|
|
672
676
|
style: "margin-right: 8px"
|
|
673
677
|
}, null), g("span", {
|
|
674
678
|
class: "modal-title-label"
|
|
675
679
|
}, [S.value])]), g("div", {
|
|
676
680
|
class: "actions"
|
|
677
|
-
}, [
|
|
681
|
+
}, [ze()])]);
|
|
678
682
|
}
|
|
679
|
-
function
|
|
680
|
-
return
|
|
683
|
+
function He() {
|
|
684
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : H.value && ke();
|
|
681
685
|
}
|
|
682
|
-
function
|
|
683
|
-
if (l.stopPropagation(),
|
|
686
|
+
function Te(l) {
|
|
687
|
+
if (l.stopPropagation(), e.allowClickMaskToClose) {
|
|
684
688
|
if (l.target !== T.value)
|
|
685
689
|
return;
|
|
686
690
|
w(l, !1);
|
|
687
691
|
}
|
|
688
692
|
}
|
|
689
|
-
function
|
|
690
|
-
var l,
|
|
693
|
+
function Ie() {
|
|
694
|
+
var l, v;
|
|
691
695
|
return g("div", {
|
|
692
696
|
id: m.value,
|
|
693
|
-
class:
|
|
694
|
-
style:
|
|
697
|
+
class: he.value,
|
|
698
|
+
style: me.value,
|
|
695
699
|
ref: C
|
|
696
700
|
}, [g("div", {
|
|
697
|
-
class:
|
|
698
|
-
}, [c.value &&
|
|
699
|
-
class:
|
|
700
|
-
}, [(
|
|
701
|
+
class: ye.value
|
|
702
|
+
}, [c.value && Be(), g("div", {
|
|
703
|
+
class: pe.value
|
|
704
|
+
}, [(v = (l = t.slots).default) == null ? void 0 : v.call(l), j.value === "iframe" && g("iframe", {
|
|
701
705
|
title: m.value,
|
|
702
706
|
class: "f-utils-fill",
|
|
703
707
|
width: "100%",
|
|
704
708
|
frameborder: "0",
|
|
705
709
|
src: P.value
|
|
706
|
-
}, null)]),
|
|
710
|
+
}, null)]), He()]), !r.value && C.value && !V.value && K(C.value)]);
|
|
707
711
|
}
|
|
708
|
-
function
|
|
712
|
+
function Se(l) {
|
|
709
713
|
return l || "body";
|
|
710
714
|
}
|
|
711
|
-
return () =>
|
|
712
|
-
|
|
715
|
+
return je(() => {
|
|
716
|
+
Z.value && (ne.value = se() || 1050);
|
|
717
|
+
}), () => g(Fe, {
|
|
718
|
+
to: Se(e.host)
|
|
713
719
|
}, {
|
|
714
|
-
default: () => [
|
|
720
|
+
default: () => [Z.value && g(Ne, {
|
|
715
721
|
name: "fade",
|
|
716
722
|
appear: !0
|
|
717
723
|
}, {
|
|
718
724
|
default: () => [g("div", {
|
|
719
725
|
ref: T,
|
|
720
|
-
class:
|
|
721
|
-
style:
|
|
722
|
-
onClick:
|
|
723
|
-
}, [
|
|
726
|
+
class: fe.value,
|
|
727
|
+
style: ge.value,
|
|
728
|
+
onClick: Te
|
|
729
|
+
}, [Ie()])]
|
|
724
730
|
})]
|
|
725
731
|
});
|
|
726
732
|
}
|
|
727
733
|
});
|
|
728
|
-
function
|
|
729
|
-
if (
|
|
730
|
-
return
|
|
731
|
-
if (
|
|
732
|
-
return
|
|
734
|
+
function de(e) {
|
|
735
|
+
if (e.content && e.content.render)
|
|
736
|
+
return e.content.render;
|
|
737
|
+
if (e.render && typeof e.render == "function")
|
|
738
|
+
return e.render;
|
|
733
739
|
}
|
|
734
|
-
function
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
const a =
|
|
738
|
-
setup(n,
|
|
739
|
-
|
|
740
|
-
document.body.removeChild(
|
|
740
|
+
function Ge(e) {
|
|
741
|
+
const t = document.createElement("div");
|
|
742
|
+
t.style.display = "contents";
|
|
743
|
+
const a = Ye({
|
|
744
|
+
setup(n, f) {
|
|
745
|
+
re(() => {
|
|
746
|
+
document.body.removeChild(t);
|
|
741
747
|
});
|
|
742
|
-
const m =
|
|
743
|
-
}), j =
|
|
744
|
-
}), P =
|
|
745
|
-
}), F =
|
|
746
|
-
}), O =
|
|
747
|
-
}), S =
|
|
748
|
+
const m = o(), d = o(e.class || ""), r = o(!!e.showButtons), c = o(!!e.showHeader), h = o(e.showCloseButton == null ? !0 : e.showCloseButton), x = o(!0), M = o(e.title || ""), L = e.acceptCallback || (() => {
|
|
749
|
+
}), j = e.rejectCallback || (() => {
|
|
750
|
+
}), P = e.closedCallback || ((T) => {
|
|
751
|
+
}), F = e.resizeHandle || ((T) => {
|
|
752
|
+
}), O = e.stopMoveHandle || ((T) => {
|
|
753
|
+
}), S = de(e), B = (T) => {
|
|
748
754
|
x.value = !1, a.unmount(), P(T);
|
|
749
755
|
};
|
|
750
|
-
return
|
|
751
|
-
}),
|
|
756
|
+
return ue(() => {
|
|
757
|
+
}), f.expose({
|
|
752
758
|
modalRef: m
|
|
753
759
|
}), () => g(q, {
|
|
754
760
|
ref: m,
|
|
@@ -756,16 +762,16 @@ function Je(t) {
|
|
|
756
762
|
modelValue: x.value,
|
|
757
763
|
"onUpdate:modelValue": (T) => x.value = T,
|
|
758
764
|
title: M.value,
|
|
759
|
-
width:
|
|
760
|
-
height:
|
|
761
|
-
buttons:
|
|
765
|
+
width: e.width,
|
|
766
|
+
height: e.height,
|
|
767
|
+
buttons: e.buttons,
|
|
762
768
|
"show-header": c.value,
|
|
763
769
|
"show-buttons": r.value,
|
|
764
|
-
"show-close-button":
|
|
770
|
+
"show-close-button": h.value,
|
|
765
771
|
"show-max-button": !1,
|
|
766
772
|
onAccept: L,
|
|
767
773
|
onCancel: j,
|
|
768
|
-
fitContent:
|
|
774
|
+
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
769
775
|
onClosed: B,
|
|
770
776
|
onResize: F,
|
|
771
777
|
onStopMove: O
|
|
@@ -774,67 +780,67 @@ function Je(t) {
|
|
|
774
780
|
});
|
|
775
781
|
}
|
|
776
782
|
});
|
|
777
|
-
return document.body.appendChild(
|
|
783
|
+
return document.body.appendChild(t), a.use(_.i18n), a.mount(t), a;
|
|
778
784
|
}
|
|
779
|
-
class
|
|
780
|
-
constructor(
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
this.app =
|
|
785
|
+
class Qe {
|
|
786
|
+
constructor(t) {
|
|
787
|
+
Y(this, "appContext", null);
|
|
788
|
+
Y(this, "modalRef", o());
|
|
789
|
+
Y(this, "activeModalIndex", o(0));
|
|
790
|
+
Y(this, "modalRefs", {});
|
|
791
|
+
Y(this, "isUseEscCloseModal", o(!1));
|
|
792
|
+
Y(this, "activeModalInstance", W(() => this.modalRefs[this.activeModalIndex.value]));
|
|
793
|
+
this.app = t, this.appContext = t ? t._context : null;
|
|
788
794
|
}
|
|
789
795
|
getCurrentModal() {
|
|
790
796
|
return this.activeModalInstance.value;
|
|
791
797
|
}
|
|
792
|
-
adaptToWindow(
|
|
798
|
+
adaptToWindow(t, a) {
|
|
793
799
|
const {
|
|
794
800
|
width: n,
|
|
795
|
-
height:
|
|
801
|
+
height: f
|
|
796
802
|
} = {
|
|
797
803
|
width: window.innerWidth,
|
|
798
804
|
height: window.innerHeight
|
|
799
805
|
};
|
|
800
|
-
return n <
|
|
801
|
-
width:
|
|
806
|
+
return n < t && (t = n - 14), f < a && (a = f - 14), {
|
|
807
|
+
width: t,
|
|
802
808
|
height: a
|
|
803
809
|
};
|
|
804
810
|
}
|
|
805
|
-
static show(
|
|
811
|
+
static show(t) {
|
|
806
812
|
const a = Object.assign({
|
|
807
813
|
title: "",
|
|
808
814
|
showButtons: !0,
|
|
809
815
|
showHeader: !0
|
|
810
|
-
},
|
|
811
|
-
return
|
|
816
|
+
}, t);
|
|
817
|
+
return Ge(a);
|
|
812
818
|
}
|
|
813
|
-
close(
|
|
819
|
+
close(t) {
|
|
814
820
|
var a, n;
|
|
815
|
-
|
|
821
|
+
t ? (n = t.value) == null || n.close() : (a = this.getCurrentModal()) == null || a.close();
|
|
816
822
|
}
|
|
817
|
-
open(
|
|
823
|
+
open(t) {
|
|
818
824
|
const a = document.createDocumentFragment();
|
|
819
|
-
|
|
820
|
-
const n =
|
|
825
|
+
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
826
|
+
const n = Ve(Object.assign({
|
|
821
827
|
title: "",
|
|
822
828
|
showButtons: !0,
|
|
823
829
|
showHeader: !0
|
|
824
|
-
},
|
|
830
|
+
}, t)), f = o(!0), m = n.value.acceptCallback || (() => {
|
|
825
831
|
}), d = n.value.rejectCallback || (() => {
|
|
826
832
|
}), r = n.value.closedCallback || ((w, z) => {
|
|
827
833
|
}), c = n.value.resizeHandle || ((w) => {
|
|
828
|
-
}),
|
|
834
|
+
}), h = t.stopMoveHandle || ((w) => {
|
|
829
835
|
});
|
|
830
836
|
let x;
|
|
831
|
-
const M =
|
|
837
|
+
const M = de(n.value), L = (w) => {
|
|
832
838
|
var u;
|
|
833
|
-
|
|
839
|
+
f.value = !1;
|
|
834
840
|
const z = (u = w == null ? void 0 : w.target) == null ? void 0 : u.classList.contains("modal_close");
|
|
835
841
|
r(w, this.isUseEscCloseModal.value ? "esc" : z ? "icon" : "button");
|
|
836
842
|
}, j = (w) => {
|
|
837
|
-
L(w), x &&
|
|
843
|
+
L(w), x && ie(() => {
|
|
838
844
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], le(null, a), x = null, this.modalRef.value = null, this.modalRefs) {
|
|
839
845
|
const z = Object.keys(this.modalRefs).map((u) => Number(u));
|
|
840
846
|
z.length > 0 ? this.activeModalIndex.value = Math.max(...z) : this.activeModalIndex.value = 0;
|
|
@@ -849,22 +855,23 @@ class Ze {
|
|
|
849
855
|
height: O
|
|
850
856
|
} = n.value, S = this.adaptToWindow(F || 500, O || 320);
|
|
851
857
|
Object.assign(n.value, S);
|
|
852
|
-
const B = () => g(q,
|
|
858
|
+
const B = () => g(q, Ae({
|
|
853
859
|
ref: this.modalRef,
|
|
854
|
-
modelValue:
|
|
855
|
-
"onUpdate:modelValue": (w) =>
|
|
860
|
+
modelValue: f.value,
|
|
861
|
+
"onUpdate:modelValue": (w) => f.value = w
|
|
856
862
|
}, n.value, {
|
|
863
|
+
isMessager: n.value.class && n.value.class.indexOf("modal-message") > -1,
|
|
857
864
|
onAccept: m,
|
|
858
865
|
onCancel: d,
|
|
859
866
|
onClosed: j,
|
|
860
867
|
onResize: c,
|
|
861
868
|
onEsc: P,
|
|
862
|
-
onStopMove:
|
|
869
|
+
onStopMove: h
|
|
863
870
|
}), {
|
|
864
871
|
default: () => [M && M(this.app)]
|
|
865
872
|
});
|
|
866
873
|
return x = ((w) => {
|
|
867
|
-
const z =
|
|
874
|
+
const z = De(B, w);
|
|
868
875
|
return z.appContext = this.appContext, le(z, a), z;
|
|
869
876
|
})({
|
|
870
877
|
...n.value
|
|
@@ -874,7 +881,7 @@ class Ze {
|
|
|
874
881
|
n.value = {
|
|
875
882
|
...n.value,
|
|
876
883
|
...w
|
|
877
|
-
}, x && le(
|
|
884
|
+
}, x && le(Xe(x, {
|
|
878
885
|
...n
|
|
879
886
|
}), a);
|
|
880
887
|
},
|
|
@@ -884,7 +891,7 @@ class Ze {
|
|
|
884
891
|
};
|
|
885
892
|
}
|
|
886
893
|
}
|
|
887
|
-
const
|
|
894
|
+
const et = [
|
|
888
895
|
{
|
|
889
896
|
label: "beforeClose",
|
|
890
897
|
name: "关闭前事件"
|
|
@@ -898,10 +905,10 @@ const _e = [
|
|
|
898
905
|
name: "取消事件"
|
|
899
906
|
}
|
|
900
907
|
];
|
|
901
|
-
class
|
|
908
|
+
class it extends $e {
|
|
902
909
|
constructor(a, n) {
|
|
903
910
|
super(a, n);
|
|
904
|
-
|
|
911
|
+
Y(this, "numberEditor", {
|
|
905
912
|
type: "number-spinner",
|
|
906
913
|
useThousands: !1
|
|
907
914
|
});
|
|
@@ -970,7 +977,7 @@ class nt extends Ye {
|
|
|
970
977
|
};
|
|
971
978
|
}
|
|
972
979
|
getEventPropConfig(a) {
|
|
973
|
-
const n = this,
|
|
980
|
+
const n = this, f = et, m = n.eventsEditorUtils.formProperties(a, n.viewModelId, f);
|
|
974
981
|
return {
|
|
975
982
|
title: "事件",
|
|
976
983
|
hideTitle: !0,
|
|
@@ -979,27 +986,27 @@ class nt extends Ye {
|
|
|
979
986
|
tabId: "commands",
|
|
980
987
|
tabName: "交互",
|
|
981
988
|
setPropertyRelates(r, c) {
|
|
982
|
-
const
|
|
983
|
-
delete a[n.viewModelId],
|
|
989
|
+
const h = r.propertyValue;
|
|
990
|
+
delete a[n.viewModelId], h && n.eventsEditorUtils.saveRelatedParameters(a, n.viewModelId, h.events, h), f.forEach((x) => {
|
|
984
991
|
c[x.label] = a[x.label];
|
|
985
992
|
});
|
|
986
993
|
}
|
|
987
994
|
};
|
|
988
995
|
}
|
|
989
996
|
}
|
|
990
|
-
const
|
|
991
|
-
q.install = (
|
|
992
|
-
|
|
993
|
-
const
|
|
994
|
-
|
|
997
|
+
const tt = Symbol("FModalService");
|
|
998
|
+
q.install = (e) => {
|
|
999
|
+
e.component(q.name, q);
|
|
1000
|
+
const t = new Qe(e);
|
|
1001
|
+
e.provide(tt, t), e.provide("FModalService", t);
|
|
995
1002
|
};
|
|
996
1003
|
export {
|
|
997
1004
|
q as FModal,
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1005
|
+
Qe as FModalService,
|
|
1006
|
+
tt as F_MODAL_SERVICE_TOKEN,
|
|
1007
|
+
it as ModalProperty,
|
|
1001
1008
|
q as default,
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1009
|
+
qe as modalProps,
|
|
1010
|
+
Je as useDraggable,
|
|
1011
|
+
Ke as useResizeable
|
|
1005
1012
|
};
|