@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 o, computed as x, createVNode as v, Fragment as ue, defineComponent as
|
|
1
|
+
var Ve = Object.defineProperty;
|
|
2
|
+
var Ae = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var X = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as o, computed as x, createVNode as v, Fragment as ue, defineComponent as fe, watch as Y, nextTick as he, onBeforeMount as $e, onMounted as me, onUnmounted as ge, watchEffect as Xe, Teleport as Ye, Transition as Ue, shallowRef as qe, render as se, h as Ke, cloneVNode as Je, createApp as Ze, mergeProps as pe, reactive as U } from "vue";
|
|
5
5
|
import { LocaleService as J } from "../locale/index.esm.js";
|
|
6
|
-
import { getMaxZIndex as
|
|
6
|
+
import { isMobilePhone as Ge, getMaxZIndex as ve } from "../common/index.esm.js";
|
|
7
7
|
import "../property-panel/index.esm.js";
|
|
8
|
-
const
|
|
8
|
+
const Qe = {
|
|
9
9
|
width: { Type: Number, default: 400 },
|
|
10
10
|
type: { Type: String, default: "info" },
|
|
11
11
|
title: { Type: String, default: "" },
|
|
@@ -21,12 +21,12 @@ const Je = {
|
|
|
21
21
|
function ie() {
|
|
22
22
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
23
23
|
}
|
|
24
|
-
async function
|
|
24
|
+
async function _e(e) {
|
|
25
25
|
if (!navigator.clipboard)
|
|
26
26
|
throw ie();
|
|
27
27
|
return navigator.clipboard.writeText(e);
|
|
28
28
|
}
|
|
29
|
-
async function
|
|
29
|
+
async function et(e) {
|
|
30
30
|
const t = document.createElement("span");
|
|
31
31
|
t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
|
|
32
32
|
const n = window.getSelection(), a = window.document.createRange();
|
|
@@ -40,32 +40,32 @@ async function Ge(e) {
|
|
|
40
40
|
if (!u)
|
|
41
41
|
throw ie();
|
|
42
42
|
}
|
|
43
|
-
async function
|
|
43
|
+
async function tt(e) {
|
|
44
44
|
try {
|
|
45
|
-
await
|
|
45
|
+
await _e(e);
|
|
46
46
|
} catch (t) {
|
|
47
47
|
try {
|
|
48
|
-
await
|
|
48
|
+
await et(e);
|
|
49
49
|
} catch (n) {
|
|
50
50
|
throw n || t || ie();
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function nt() {
|
|
55
55
|
async function e(t) {
|
|
56
|
-
await
|
|
56
|
+
await tt(t);
|
|
57
57
|
}
|
|
58
58
|
return { onCopy: e };
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
const u = o(14),
|
|
60
|
+
function at(e, t, n, a) {
|
|
61
|
+
const u = o(14), d = o(140), r = o(""), i = o(a.value.length), s = x(() => a.value), m = x(() => ({
|
|
62
62
|
"font-size": `${u.value}px`,
|
|
63
63
|
height: "100%"
|
|
64
64
|
}));
|
|
65
|
-
function
|
|
65
|
+
function y(g) {
|
|
66
66
|
if (g.currentTarget) {
|
|
67
|
-
const
|
|
68
|
-
i.value =
|
|
67
|
+
const z = g.currentTarget.value || "";
|
|
68
|
+
i.value = z.length;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
return () => v(ue, null, [v("textarea", {
|
|
@@ -74,22 +74,22 @@ function et(e, t, n, a) {
|
|
|
74
74
|
class: "form-control",
|
|
75
75
|
style: m.value,
|
|
76
76
|
rows: "4",
|
|
77
|
-
maxlength:
|
|
78
|
-
onInput: (g) =>
|
|
77
|
+
maxlength: d.value,
|
|
78
|
+
onInput: (g) => y(g)
|
|
79
79
|
}, [s.value]), v("span", {
|
|
80
80
|
class: "textarea-wordcount",
|
|
81
|
-
title:
|
|
81
|
+
title: r.value,
|
|
82
82
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
83
|
-
}, [i.value + " / " +
|
|
83
|
+
}, [i.value + " / " + d.value])]);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
const u =
|
|
87
|
-
function
|
|
88
|
-
return
|
|
85
|
+
function lt(e, t, n, a) {
|
|
86
|
+
const u = at(e, t, n, a), d = /* @__PURE__ */ new Map([["text-area", u]]);
|
|
87
|
+
function r(i) {
|
|
88
|
+
return d.get(i) || null;
|
|
89
89
|
}
|
|
90
|
-
return { getEditorRender:
|
|
90
|
+
return { getEditorRender: r };
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ot() {
|
|
93
93
|
const e = o(!1), t = o("复制成功");
|
|
94
94
|
return {
|
|
95
95
|
feedbackStyle: x(() => {
|
|
@@ -116,11 +116,11 @@ function nt() {
|
|
|
116
116
|
toShowFeedback: e
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function st(e, t) {
|
|
120
120
|
const n = t.getEditorRender(e.promptEditorType);
|
|
121
121
|
return () => n && n();
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ut(e, t) {
|
|
124
124
|
function n(w) {
|
|
125
125
|
if (w == null)
|
|
126
126
|
return 0;
|
|
@@ -146,107 +146,104 @@ function lt(e, t) {
|
|
|
146
146
|
}
|
|
147
147
|
return "";
|
|
148
148
|
}
|
|
149
|
-
const u = x(() => !!e.value && !!e.value.date),
|
|
149
|
+
const u = x(() => !!e.value && !!e.value.date), d = x(() => {
|
|
150
150
|
const w = e.value && e.value.date || "";
|
|
151
151
|
return `${t.exception.happend} : ${w}`;
|
|
152
|
-
}),
|
|
152
|
+
}), r = x(() => !!e.value && !!e.value.detail), i = x(() => e.value ? n(e.value.detail) > 160 : !1), s = o(!1), m = x(() => s.value ? t.exception.collapse : t.exception.expand), y = x(() => {
|
|
153
153
|
const w = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
154
154
|
return s.value ? w : a(w, 160);
|
|
155
155
|
}), g = x(() => ({
|
|
156
|
-
|
|
157
|
-
right: 0,
|
|
158
|
-
bottom: s.value ? 0 : "2px",
|
|
159
|
-
color: "#2A87FF",
|
|
160
|
-
cursor: "pointer"
|
|
156
|
+
bottom: s.value ? 0 : "2px"
|
|
161
157
|
}));
|
|
162
|
-
function
|
|
158
|
+
function z() {
|
|
163
159
|
s.value = !s.value;
|
|
164
160
|
}
|
|
165
161
|
return () => v("div", {
|
|
166
162
|
class: "toast-msg-detail",
|
|
167
163
|
style: "max-height: calc(100vh - 200px);overflow: auto;"
|
|
168
|
-
}, [u.value && v("div", null, [
|
|
164
|
+
}, [u.value && v("div", null, [d.value]), r.value && v("div", {
|
|
169
165
|
class: "exception_wrap"
|
|
170
166
|
}, [v("div", {
|
|
171
167
|
class: "exception_error_msg"
|
|
172
168
|
}, [v("div", {
|
|
173
|
-
innerHTML:
|
|
169
|
+
innerHTML: y.value
|
|
174
170
|
}, null), i.value && v("span", {
|
|
171
|
+
class: "exception_toggle_detail",
|
|
175
172
|
style: g.value,
|
|
176
|
-
onClick:
|
|
173
|
+
onClick: z
|
|
177
174
|
}, [m.value])])])]);
|
|
178
175
|
}
|
|
179
|
-
function
|
|
176
|
+
function it(e) {
|
|
180
177
|
return () => v("p", {
|
|
181
178
|
class: "toast-msg-detail",
|
|
182
179
|
innerHTML: e.value,
|
|
183
180
|
style: "max-height: calc(100vh - 200px);overflow: auto;"
|
|
184
181
|
}, null);
|
|
185
182
|
}
|
|
186
|
-
function
|
|
187
|
-
const
|
|
183
|
+
function rt(e, t, n, a, u) {
|
|
184
|
+
const d = o(e.exceptionInfo), r = x(() => {
|
|
188
185
|
const B = t.value === "question" ? "warning" : t.value, H = {
|
|
189
186
|
"f-icon": !0
|
|
190
187
|
}, E = `f-icon-${B}`;
|
|
191
188
|
return H[E] = !0, H;
|
|
192
|
-
}), i = x(() => n.value ||
|
|
189
|
+
}), i = x(() => n.value || d.value && d.value.message), s = x(() => a.value), m = x(() => !!a.value), y = x(() => !!d.value);
|
|
193
190
|
function g() {
|
|
194
|
-
return
|
|
191
|
+
return y.value ? ut(d, u) : m.value ? it(s) : () => null;
|
|
195
192
|
}
|
|
196
|
-
const
|
|
193
|
+
const z = g(), w = x(() => u.locale === "en" ? {
|
|
197
194
|
wordBreak: "keep-all",
|
|
198
195
|
overflowWrap: "break-word"
|
|
199
196
|
} : {});
|
|
200
197
|
return () => v(ue, null, [v("div", {
|
|
201
198
|
class: "float-left modal-tips-iconwrap"
|
|
202
199
|
}, [v("span", {
|
|
203
|
-
class:
|
|
200
|
+
class: r.value
|
|
204
201
|
}, null)]), v("div", {
|
|
205
202
|
class: "modal-tips-content"
|
|
206
203
|
}, [v("p", {
|
|
207
204
|
class: "toast-msg-title",
|
|
208
205
|
innerHTML: i.value,
|
|
209
206
|
style: w.value
|
|
210
|
-
}, null),
|
|
207
|
+
}, null), z()])]);
|
|
211
208
|
}
|
|
212
|
-
function
|
|
209
|
+
function ct(e, t, n, a) {
|
|
213
210
|
const {
|
|
214
211
|
onCopy: u
|
|
215
212
|
} = t, {
|
|
216
|
-
toShowFeedback:
|
|
217
|
-
} = n,
|
|
213
|
+
toShowFeedback: d
|
|
214
|
+
} = n, r = o(a.exception.copySuccess || "复制成功"), i = o(a.exception.copy || "复制详细信息"), s = o(e.exceptionInfo || {
|
|
218
215
|
date: "",
|
|
219
216
|
message: "",
|
|
220
217
|
detail: ""
|
|
221
218
|
}), m = x(() => s.value && s.value.detail || "");
|
|
222
|
-
function
|
|
223
|
-
u(m.value).catch((
|
|
224
|
-
|
|
219
|
+
function y(g) {
|
|
220
|
+
u(m.value).catch((z) => {
|
|
221
|
+
r.value = a.exception.copyFailed || "复制失败";
|
|
225
222
|
}).finally(() => {
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
d.value = !0, setTimeout(() => {
|
|
224
|
+
d.value = !1;
|
|
228
225
|
}, 700);
|
|
229
226
|
});
|
|
230
227
|
}
|
|
231
228
|
return () => v("span", {
|
|
232
|
-
|
|
229
|
+
class: "copy-exception-info"
|
|
233
230
|
}, [v("span", {
|
|
234
|
-
onClick:
|
|
231
|
+
onClick: y,
|
|
235
232
|
style: "cursor: pointer;"
|
|
236
233
|
}, [i.value])]);
|
|
237
234
|
}
|
|
238
|
-
function
|
|
239
|
-
const
|
|
235
|
+
function dt(e, t, n, a, u) {
|
|
236
|
+
const d = o(e.type), r = o(e.buttons), i = o(e.exceptionInfo), s = o(u.ok || e.okButtonText), m = o(u.cancel || e.cancelButtonText), y = o(e.showCancelButton), g = o(e.showOkButton), z = x(() => !!(r.value && r.value.length)), w = x(() => !!(i.value && i.value.detail)), B = x(() => !(r.value && r.value.length) && (g.value || y.value)), H = ct(e, n, a, u);
|
|
240
237
|
s.value === "关闭" ? s.value = u.close : s.value === "知道了" && (s.value = u.exception.roger);
|
|
241
238
|
function E(C) {
|
|
242
|
-
|
|
239
|
+
d.value === "question" && t.emit("reject"), t.emit("close");
|
|
243
240
|
}
|
|
244
241
|
function k(C) {
|
|
245
|
-
|
|
242
|
+
d.value === "question" && t.emit("accept"), t.emit("close");
|
|
246
243
|
}
|
|
247
244
|
return () => v("div", {
|
|
248
245
|
class: "modal-footer"
|
|
249
|
-
}, [w.value && H(), B.value &&
|
|
246
|
+
}, [w.value && H(), B.value && y.value && v("button", {
|
|
250
247
|
type: "button",
|
|
251
248
|
class: "btn btn-secondary btn-lg",
|
|
252
249
|
onClick: E
|
|
@@ -254,7 +251,7 @@ function it(e, t, n, a, u) {
|
|
|
254
251
|
type: "button",
|
|
255
252
|
class: "btn btn-primary btn-lg",
|
|
256
253
|
onClick: k
|
|
257
|
-
}, [s.value]),
|
|
254
|
+
}, [s.value]), z.value && r.value.length && r.value.map((C) => v("button", {
|
|
258
255
|
type: "button",
|
|
259
256
|
onClick: C.handle,
|
|
260
257
|
class: C.class
|
|
@@ -262,10 +259,10 @@ function it(e, t, n, a, u) {
|
|
|
262
259
|
class: C.iconClass
|
|
263
260
|
}, null), C.text]))]);
|
|
264
261
|
}
|
|
265
|
-
function
|
|
262
|
+
function vt(e) {
|
|
266
263
|
const { getLocaleValue: t } = J, n = J.getLocale();
|
|
267
|
-
function a(u,
|
|
268
|
-
return
|
|
264
|
+
function a(u, d, r) {
|
|
265
|
+
return d === r ? t(u) : d;
|
|
269
266
|
}
|
|
270
267
|
return {
|
|
271
268
|
yes: a("messageBox.yes") || "是",
|
|
@@ -288,12 +285,12 @@ function rt(e) {
|
|
|
288
285
|
locale: n
|
|
289
286
|
};
|
|
290
287
|
}
|
|
291
|
-
const
|
|
288
|
+
const ee = /* @__PURE__ */ fe({
|
|
292
289
|
name: "FMessageBox",
|
|
293
|
-
props:
|
|
290
|
+
props: Qe,
|
|
294
291
|
emits: ["accept", "reject", "close"],
|
|
295
292
|
setup(e, t) {
|
|
296
|
-
const n =
|
|
293
|
+
const n = vt(e), a = o(e.type), u = o(e.title), d = o(e.detail), r = x(() => {
|
|
297
294
|
const k = {
|
|
298
295
|
"modal-tips": !0,
|
|
299
296
|
"d-flex": !0,
|
|
@@ -305,36 +302,36 @@ const _ = /* @__PURE__ */ ce({
|
|
|
305
302
|
cursor: "default"
|
|
306
303
|
};
|
|
307
304
|
return a.value === "prompt" ? k.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (k.padding = "0.5rem 1.5rem 1rem 1.5rem"), k;
|
|
308
|
-
}), s =
|
|
305
|
+
}), s = nt(), m = lt(e, a, u, d), y = ot(), {
|
|
309
306
|
feedbackStyle: g,
|
|
310
|
-
feedbackMessage:
|
|
311
|
-
} =
|
|
312
|
-
|
|
307
|
+
feedbackMessage: z
|
|
308
|
+
} = y;
|
|
309
|
+
z.value = n.exception.copySuccess;
|
|
313
310
|
function w() {
|
|
314
311
|
return v("div", {
|
|
315
312
|
style: g.value
|
|
316
|
-
}, [
|
|
313
|
+
}, [z.value]);
|
|
317
314
|
}
|
|
318
315
|
function B() {
|
|
319
316
|
switch (a.value) {
|
|
320
317
|
case "prompt":
|
|
321
|
-
return
|
|
318
|
+
return st(e, m);
|
|
322
319
|
default:
|
|
323
|
-
return
|
|
320
|
+
return rt(e, a, u, d, n);
|
|
324
321
|
}
|
|
325
322
|
}
|
|
326
|
-
const H = B(), E =
|
|
323
|
+
const H = B(), E = dt(e, t, s, y, n);
|
|
327
324
|
return () => v("div", {
|
|
328
325
|
class: "farris-messager"
|
|
329
326
|
}, [!e.exceptionInfo && v("div", {
|
|
330
327
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
331
328
|
class: "messager-draggable"
|
|
332
329
|
}, null), v("section", {
|
|
333
|
-
class:
|
|
330
|
+
class: r.value,
|
|
334
331
|
style: i.value
|
|
335
332
|
}, [H()]), E(), w()]);
|
|
336
333
|
}
|
|
337
|
-
}),
|
|
334
|
+
}), ft = {
|
|
338
335
|
/**
|
|
339
336
|
* 允许点击遮罩关闭对话框
|
|
340
337
|
*/
|
|
@@ -413,7 +410,8 @@ const _ = /* @__PURE__ */ ce({
|
|
|
413
410
|
dialogType: { type: String, default: "" },
|
|
414
411
|
src: { type: String, default: "" },
|
|
415
412
|
footerHeight: { type: Number, default: 60 },
|
|
416
|
-
host: { type: Object, default: "body" }
|
|
413
|
+
host: { type: Object, default: "body" },
|
|
414
|
+
isMessager: { type: Boolean, default: !1 }
|
|
417
415
|
};
|
|
418
416
|
class O {
|
|
419
417
|
constructor(t, n) {
|
|
@@ -422,8 +420,8 @@ class O {
|
|
|
422
420
|
static getTransformInfo(t) {
|
|
423
421
|
const a = window.getComputedStyle(t).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
|
|
424
422
|
if (a.length >= 6) {
|
|
425
|
-
const u = parseInt(a[4], 10),
|
|
426
|
-
return { x: u, y:
|
|
423
|
+
const u = parseInt(a[4], 10), d = parseInt(a[5], 10);
|
|
424
|
+
return { x: u, y: d };
|
|
427
425
|
}
|
|
428
426
|
return { x: 0, y: 0 };
|
|
429
427
|
}
|
|
@@ -447,8 +445,8 @@ class O {
|
|
|
447
445
|
if (window) {
|
|
448
446
|
const a = window.getComputedStyle(t);
|
|
449
447
|
if (a) {
|
|
450
|
-
const u = parseInt(a.getPropertyValue("left"), 10),
|
|
451
|
-
n.x = isNaN(u) ? 0 : u, n.y = isNaN(
|
|
448
|
+
const u = parseInt(a.getPropertyValue("left"), 10), d = parseInt(a.getPropertyValue("top"), 10);
|
|
449
|
+
n.x = isNaN(u) ? 0 : u, n.y = isNaN(d) ? 0 : d;
|
|
452
450
|
}
|
|
453
451
|
return n;
|
|
454
452
|
}
|
|
@@ -479,12 +477,12 @@ class O {
|
|
|
479
477
|
return this.x = t.x, this.y = t.y, this;
|
|
480
478
|
}
|
|
481
479
|
}
|
|
482
|
-
class
|
|
480
|
+
class q {
|
|
483
481
|
constructor(t, n) {
|
|
484
482
|
this.width = t, this.height = n;
|
|
485
483
|
}
|
|
486
484
|
static getCurrent(t) {
|
|
487
|
-
const n = new
|
|
485
|
+
const n = new q(0, 0);
|
|
488
486
|
if (window) {
|
|
489
487
|
const a = window.getComputedStyle(t);
|
|
490
488
|
return a && (n.width = parseInt(a.getPropertyValue("width"), 10), n.height = parseInt(a.getPropertyValue("height"), 10)), n;
|
|
@@ -492,27 +490,27 @@ class U {
|
|
|
492
490
|
return null;
|
|
493
491
|
}
|
|
494
492
|
static copy(t) {
|
|
495
|
-
return new
|
|
493
|
+
return new q(0, 0).set(t);
|
|
496
494
|
}
|
|
497
495
|
set(t) {
|
|
498
496
|
return this.width = t.width, this.height = t.height, this;
|
|
499
497
|
}
|
|
500
498
|
}
|
|
501
|
-
function
|
|
502
|
-
const n = o(), a = o(), u = o(),
|
|
499
|
+
function ht(e, t) {
|
|
500
|
+
const n = o(), a = o(), u = o(), d = o(), r = o(), i = o(), s = o(), m = o(), y = o(), g = o(), z = o(), w = o(e.resizeable), B = o(), H = o(e.draggable), E = o(!1);
|
|
503
501
|
function k() {
|
|
504
|
-
const
|
|
502
|
+
const c = a.value || document.body, f = window.getComputedStyle(c);
|
|
505
503
|
if (!f || !n.value)
|
|
506
504
|
return;
|
|
507
|
-
const
|
|
505
|
+
const S = O.getTransformInfo(n.value), b = {};
|
|
508
506
|
s.value && (b.deltaL = n.value.offsetLeft - s.value.x, b.deltaT = n.value.offsetTop - s.value.y);
|
|
509
|
-
const
|
|
510
|
-
b.width =
|
|
507
|
+
const j = f.getPropertyValue("position");
|
|
508
|
+
b.width = c.clientWidth, b.height = c.clientHeight, b.pr = parseInt(f.getPropertyValue("padding-right"), 10), b.pb = parseInt(f.getPropertyValue("padding-bottom"), 10), b.position = f.getPropertyValue("position"), j === "static" && (c.style.position = "relative"), b.translateX = S.x, b.translateY = S.y, g.value = b;
|
|
511
509
|
}
|
|
512
|
-
function C(
|
|
510
|
+
function C(c) {
|
|
513
511
|
if (n.value) {
|
|
514
|
-
|
|
515
|
-
const f =
|
|
512
|
+
d.value = q.getCurrent(n.value), r.value = O.getCurrent(n.value), i.value = d.value ? q.copy(d.value) : null, s.value = r.value ? O.copy(r.value) : null, k();
|
|
513
|
+
const f = c.target.getAttribute("type") || "";
|
|
516
514
|
m.value = {
|
|
517
515
|
n: !!f.match(/n/),
|
|
518
516
|
s: !!f.match(/s/),
|
|
@@ -522,74 +520,74 @@ function dt(e, t) {
|
|
|
522
520
|
}
|
|
523
521
|
}
|
|
524
522
|
function I() {
|
|
525
|
-
var
|
|
523
|
+
var c, f, S, b;
|
|
526
524
|
if (n.value) {
|
|
527
|
-
const
|
|
528
|
-
m.value && ((m.value.n || m.value.s) && ((
|
|
525
|
+
const j = n.value;
|
|
526
|
+
m.value && ((m.value.n || m.value.s) && ((c = i.value) != null && c.height) && (j.style.height = i.value.height + "px"), (m.value.w || m.value.e) && ((f = i.value) != null && f.width) && (j.style.width = i.value.width + "px"), s.value && ((S = s.value) != null && S.x && (j.style.left = s.value.x + "px"), (b = s.value) != null && b.y && (j.style.top = s.value.y + "px")));
|
|
529
527
|
}
|
|
530
528
|
}
|
|
531
|
-
function
|
|
532
|
-
const
|
|
533
|
-
i.value && s.value && m.value &&
|
|
529
|
+
function $() {
|
|
530
|
+
const c = e.minHeight ? e.minHeight : 1, f = e.minWidth ? e.minWidth : 1;
|
|
531
|
+
i.value && s.value && m.value && d.value && (i.value.height < c && (i.value.height = c, m.value.n && r.value && (s.value.y = r.value.y + (d.value.height - c))), i.value.width < f && (i.value.width = f, m.value.w && r.value && (s.value.x = r.value.x + (d.value.width - f))), e.maxHeight && i.value.height > e.maxHeight && (i.value.height = e.maxHeight, r.value && m.value.n && (s.value.y = r.value.y + (d.value.height - e.maxHeight))), e.maxWidth && i.value.width > e.maxWidth && (i.value.width = e.maxWidth, m.value.w && r.value && (s.value.x = r.value.x + (d.value.width - e.maxWidth))));
|
|
534
532
|
}
|
|
535
533
|
function T() {
|
|
536
534
|
if (a.value) {
|
|
537
|
-
const
|
|
538
|
-
if (s.value && i.value && m.value &&
|
|
539
|
-
const f =
|
|
540
|
-
m.value.n && s.value.y +
|
|
535
|
+
const c = g.value;
|
|
536
|
+
if (s.value && i.value && m.value && d.value) {
|
|
537
|
+
const f = c.width - c.pr - c.deltaL - c.translateX - s.value.x, S = c.height - c.pb - c.deltaT - c.translateY - s.value.y;
|
|
538
|
+
m.value.n && s.value.y + c.translateY < 0 && r.value && (s.value.y = -c.translateY, i.value.height = d.value.height + r.value.y + c.translateY), m.value.w && s.value.x + c.translateX < 0 && r.value && (s.value.x = -c.translateX, i.value.width = d.value.width + r.value.x + c.translateX), i.value.width > f && (i.value.width = f), i.value.height > S && (i.value.height = S);
|
|
541
539
|
}
|
|
542
540
|
}
|
|
543
541
|
}
|
|
544
|
-
function L(
|
|
545
|
-
if (!u.value || !
|
|
542
|
+
function L(c) {
|
|
543
|
+
if (!u.value || !d.value || !r.value || !m.value)
|
|
546
544
|
return;
|
|
547
|
-
|
|
548
|
-
const f =
|
|
549
|
-
m.value.n ? (s.value.y =
|
|
545
|
+
c.subtract(u.value);
|
|
546
|
+
const f = c.x, S = c.y;
|
|
547
|
+
m.value.n ? (s.value.y = r.value.y + S, i.value.height = d.value.height - S) : m.value.s && (i.value.height = d.value.height + S), m.value.e ? i.value.width = d.value.width + f : m.value.w && (i.value.width = d.value.width - f, s.value.x = r.value.x + f), T(), $(), I();
|
|
550
548
|
}
|
|
551
|
-
function h(
|
|
552
|
-
if (!
|
|
549
|
+
function h(c) {
|
|
550
|
+
if (!y.value)
|
|
553
551
|
return;
|
|
554
|
-
const f = O.fromEvent(
|
|
552
|
+
const f = O.fromEvent(c);
|
|
555
553
|
f && L(f);
|
|
556
554
|
}
|
|
557
555
|
function M() {
|
|
558
556
|
if (n.value) {
|
|
559
557
|
const {
|
|
560
|
-
width:
|
|
558
|
+
width: c,
|
|
561
559
|
height: f,
|
|
562
|
-
x:
|
|
560
|
+
x: S,
|
|
563
561
|
y: b
|
|
564
|
-
} = n.value.getBoundingClientRect(),
|
|
562
|
+
} = n.value.getBoundingClientRect(), j = O.getTransformInfo(n.value);
|
|
565
563
|
return {
|
|
566
564
|
size: {
|
|
567
|
-
width:
|
|
565
|
+
width: c,
|
|
568
566
|
height: f
|
|
569
567
|
},
|
|
570
568
|
position: {
|
|
571
|
-
x:
|
|
572
|
-
y: b -
|
|
569
|
+
x: S - j.x,
|
|
570
|
+
y: b - j.y
|
|
573
571
|
}
|
|
574
572
|
};
|
|
575
573
|
}
|
|
576
574
|
return null;
|
|
577
575
|
}
|
|
578
|
-
function
|
|
576
|
+
function F(c) {
|
|
579
577
|
if (n.value) {
|
|
580
578
|
const f = M();
|
|
581
|
-
|
|
579
|
+
z.value = f;
|
|
582
580
|
}
|
|
583
|
-
u.value = void 0,
|
|
581
|
+
u.value = void 0, d.value = null, r.value = null, i.value = null, s.value = null, m.value = null, y.value = null, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", F);
|
|
584
582
|
}
|
|
585
583
|
function P() {
|
|
586
|
-
document.addEventListener("mousemove", h), document.addEventListener("mouseup",
|
|
584
|
+
document.addEventListener("mousemove", h), document.addEventListener("mouseup", F);
|
|
587
585
|
}
|
|
588
|
-
function R(
|
|
589
|
-
|
|
586
|
+
function R(c) {
|
|
587
|
+
c instanceof MouseEvent && c.button === 2 || H.value && (document.body.click(), c.stopPropagation(), c.preventDefault(), u.value = O.fromEvent(c), y.value = c.target, C(c), P());
|
|
590
588
|
}
|
|
591
|
-
function N(
|
|
592
|
-
return n.value =
|
|
589
|
+
function N(c) {
|
|
590
|
+
return n.value = c, w.value && v(ue, null, [v("div", {
|
|
593
591
|
class: "fv-resizable-handle fv-resizable-n",
|
|
594
592
|
type: "n",
|
|
595
593
|
onMousedown: (f) => R(f)
|
|
@@ -623,10 +621,10 @@ function dt(e, t) {
|
|
|
623
621
|
onMousedown: (f) => R(f)
|
|
624
622
|
}, null)]);
|
|
625
623
|
}
|
|
626
|
-
function G(
|
|
624
|
+
function G(c = !0) {
|
|
627
625
|
document.body.click();
|
|
628
|
-
const f = a.value || document.body,
|
|
629
|
-
|
|
626
|
+
const f = a.value || document.body, S = q.getCurrent(f), b = n.value;
|
|
627
|
+
c && b && (B.value = M(), B.value.transform = b.style.transform), S && b && (i.value = S, i.value.height -= 14, i.value.width -= 14, b.style.height = i.value.height + "px", b.style.width = i.value.width + "px", b.style.left = "7px", b.style.top = "7px", b.style.transform = "", z.value = {
|
|
630
628
|
size: i.value,
|
|
631
629
|
position: {
|
|
632
630
|
x: 0,
|
|
@@ -634,138 +632,138 @@ function dt(e, t) {
|
|
|
634
632
|
}
|
|
635
633
|
}, H.value = !1, E.value = !0);
|
|
636
634
|
}
|
|
637
|
-
function
|
|
638
|
-
var
|
|
635
|
+
function ne() {
|
|
636
|
+
var c, f;
|
|
639
637
|
if (document.body.click(), B.value) {
|
|
640
|
-
const
|
|
638
|
+
const S = {
|
|
641
639
|
width: B.value.size.width || 0,
|
|
642
640
|
height: B.value.size.height || 0
|
|
643
641
|
}, b = {
|
|
644
|
-
x: (window.innerWidth -
|
|
645
|
-
y: (window.innerHeight -
|
|
642
|
+
x: (window.innerWidth - S.width) / 2,
|
|
643
|
+
y: (window.innerHeight - S.height) / 2
|
|
646
644
|
};
|
|
647
|
-
(
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
size:
|
|
645
|
+
(c = i.value) == null || c.set(S), (f = s.value) == null || f.set(b);
|
|
646
|
+
const j = n.value;
|
|
647
|
+
j.style.height = S.height + "px", j.style.width = S.width + "px", j.style.left = `${b.x}px`, j.style.top = `${b.y}px`, j.style.transform = "", z.value = {
|
|
648
|
+
size: S,
|
|
651
649
|
position: b
|
|
652
650
|
}, H.value = e.draggable, E.value = !1;
|
|
653
651
|
}
|
|
654
652
|
}
|
|
655
653
|
function Q() {
|
|
656
654
|
if (n.value) {
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
655
|
+
const c = q.getCurrent(n.value);
|
|
656
|
+
if (c) {
|
|
659
657
|
const {
|
|
660
658
|
width: f,
|
|
661
|
-
height:
|
|
662
|
-
} =
|
|
663
|
-
n.value.style.left = `${(window.innerWidth - f) / 2}px`, n.value.style.top = `${(window.innerHeight -
|
|
659
|
+
height: S
|
|
660
|
+
} = c;
|
|
661
|
+
n.value.style.left = `${(window.innerWidth - f) / 2}px`, n.value.style.top = `${(window.innerHeight - S) / 2}px`, n.value.style.transform = "";
|
|
664
662
|
}
|
|
665
663
|
}
|
|
666
664
|
}
|
|
667
|
-
function
|
|
668
|
-
const
|
|
665
|
+
function K() {
|
|
666
|
+
const c = () => {
|
|
669
667
|
E.value ? G(!1) : Q(), document.body.click();
|
|
670
668
|
};
|
|
671
|
-
return window.addEventListener("resize",
|
|
672
|
-
window.removeEventListener("resize",
|
|
669
|
+
return window.addEventListener("resize", c), () => {
|
|
670
|
+
window.removeEventListener("resize", c);
|
|
673
671
|
};
|
|
674
672
|
}
|
|
675
|
-
const
|
|
673
|
+
const ae = K();
|
|
676
674
|
return {
|
|
677
675
|
renderResizeBar: N,
|
|
678
676
|
boundingElement: a,
|
|
679
|
-
resizedEventParam:
|
|
677
|
+
resizedEventParam: z,
|
|
680
678
|
maximize: G,
|
|
681
|
-
restore:
|
|
679
|
+
restore: ne,
|
|
682
680
|
allowDrag: H,
|
|
683
681
|
isMaximized: E,
|
|
684
|
-
unWindowResizeHandle:
|
|
682
|
+
unWindowResizeHandle: ae,
|
|
685
683
|
moveToCenter: Q
|
|
686
684
|
};
|
|
687
685
|
}
|
|
688
|
-
function
|
|
689
|
-
const a = o(), u = o(e.draggable),
|
|
686
|
+
function mt(e, t, n) {
|
|
687
|
+
const a = o(), u = o(e.draggable), d = o(e.lockAxis), r = o(), i = o(), s = o(!1), m = o(new O(0, 0)), y = o(new O(0, 0)), g = o(new O(0, 0)), z = o(new O(0, 0));
|
|
690
688
|
Y(() => n.value, (h) => {
|
|
691
|
-
|
|
689
|
+
r.value.style.cursor = h ? "move" : "default";
|
|
692
690
|
});
|
|
693
691
|
function w(h, M) {
|
|
694
692
|
if (M.tagName === "BUTTON")
|
|
695
693
|
return !1;
|
|
696
694
|
if (M === h)
|
|
697
695
|
return !0;
|
|
698
|
-
for (const
|
|
699
|
-
if (Object.prototype.hasOwnProperty.call(M.children,
|
|
696
|
+
for (const F in M.children)
|
|
697
|
+
if (Object.prototype.hasOwnProperty.call(M.children, F) && w(h, M.children[F]))
|
|
700
698
|
return !0;
|
|
701
699
|
return !1;
|
|
702
700
|
}
|
|
703
701
|
function B() {
|
|
704
702
|
var P, R;
|
|
705
|
-
let h = g.value.x +
|
|
706
|
-
|
|
707
|
-
const
|
|
708
|
-
a.value && (a.value.style.transform =
|
|
703
|
+
let h = g.value.x + y.value.x, M = g.value.y + y.value.y;
|
|
704
|
+
d.value === "x" ? (h = ((P = m.value) == null ? void 0 : P.x) || 0, g.value.x = 0) : d.value === "y" && (M = ((R = m.value) == null ? void 0 : R.y) || 0, g.value.y = 0);
|
|
705
|
+
const F = `translate3d(${Math.round(h)}px, ${Math.round(M)}px, 0px)`;
|
|
706
|
+
a.value && (a.value.style.transform = F), z.value.x = h, z.value.y = M;
|
|
709
707
|
}
|
|
710
708
|
function H() {
|
|
711
709
|
if (!i.value || !a.value)
|
|
712
710
|
return null;
|
|
713
|
-
const h = i.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(),
|
|
711
|
+
const h = i.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), F = {
|
|
714
712
|
top: h.top < M.top,
|
|
715
713
|
right: h.right > M.right,
|
|
716
714
|
bottom: h.bottom > M.bottom,
|
|
717
715
|
left: h.left < M.left
|
|
718
716
|
};
|
|
719
|
-
return
|
|
717
|
+
return F.top || (g.value.y -= M.top - h.top), F.bottom || (g.value.y -= M.bottom - h.bottom), F.right || (g.value.x -= M.right - h.right), F.left || (g.value.x -= M.left - h.left), B(), F;
|
|
720
718
|
}
|
|
721
719
|
function E(h) {
|
|
722
720
|
h && (m.value && h.subtract(m.value), g.value.set(h), B(), H());
|
|
723
721
|
}
|
|
724
722
|
function k(h) {
|
|
725
|
-
s.value && u.value && (h.stopPropagation(), h.preventDefault(), E(O.fromEvent(h,
|
|
723
|
+
s.value && u.value && (h.stopPropagation(), h.preventDefault(), E(O.fromEvent(h, r.value)));
|
|
726
724
|
}
|
|
727
725
|
function C() {
|
|
728
726
|
var h;
|
|
729
|
-
s.value && (s.value = !1,
|
|
727
|
+
s.value && (s.value = !1, y.value.add(g.value), g.value.reset(), (h = a.value) == null || h.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", C));
|
|
730
728
|
}
|
|
731
729
|
function I() {
|
|
732
|
-
!s.value &&
|
|
730
|
+
!s.value && r.value && (s.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", k), document.addEventListener("mouseup", C));
|
|
733
731
|
}
|
|
734
|
-
function
|
|
732
|
+
function $() {
|
|
735
733
|
if (a.value) {
|
|
736
734
|
const h = O.getTransformInfo(a.value);
|
|
737
|
-
|
|
735
|
+
y.value.set(h);
|
|
738
736
|
return;
|
|
739
737
|
}
|
|
740
|
-
|
|
738
|
+
y.value.reset();
|
|
741
739
|
}
|
|
742
740
|
function T(h) {
|
|
743
741
|
if (!n.value || h instanceof MouseEvent && h.button === 2)
|
|
744
742
|
return;
|
|
745
743
|
const M = h.target || h.srcElement;
|
|
746
|
-
|
|
744
|
+
r.value !== void 0 && M && !w(M, r.value) || u.value !== !1 && (document.body.click(), h.stopPropagation(), h.preventDefault(), m.value = O.fromEvent(h, a.value), $(), I());
|
|
747
745
|
}
|
|
748
|
-
function L(h, M,
|
|
746
|
+
function L(h, M, F) {
|
|
749
747
|
if (u.value && M) {
|
|
750
748
|
if (h)
|
|
751
|
-
|
|
749
|
+
r.value = h;
|
|
752
750
|
else if (e.dragHandle) {
|
|
753
751
|
if (e.dragHandle instanceof HTMLElement)
|
|
754
|
-
|
|
752
|
+
r.value = e.dragHandle;
|
|
755
753
|
else if (typeof e.dragHandle == "string") {
|
|
756
754
|
const P = M.querySelector(e.dragHandle);
|
|
757
|
-
P && (
|
|
755
|
+
P && (r.value = P);
|
|
758
756
|
}
|
|
759
757
|
}
|
|
760
|
-
a.value = M, i.value =
|
|
758
|
+
a.value = M, i.value = F, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", T)) : u.value = !1;
|
|
761
759
|
}
|
|
762
760
|
}
|
|
763
761
|
return {
|
|
764
762
|
registerDraggle: L,
|
|
765
|
-
resetTranslate:
|
|
763
|
+
resetTranslate: $
|
|
766
764
|
};
|
|
767
765
|
}
|
|
768
|
-
function
|
|
766
|
+
function ye(e, t) {
|
|
769
767
|
if (e) {
|
|
770
768
|
const n = (a) => {
|
|
771
769
|
a.key.toLowerCase() === e.toLowerCase() && t({ event: a, key: e });
|
|
@@ -775,41 +773,41 @@ function me(e, t) {
|
|
|
775
773
|
};
|
|
776
774
|
}
|
|
777
775
|
}
|
|
778
|
-
function
|
|
776
|
+
function gt(e, t) {
|
|
779
777
|
const n = o(e.enableEsc);
|
|
780
778
|
let a = null;
|
|
781
|
-
return n.value ? (a =
|
|
779
|
+
return n.value ? (a = ye("Escape", (u) => {
|
|
782
780
|
t.emit("esc", { event: u.event, type: "esc" });
|
|
783
781
|
}), {
|
|
784
782
|
remove: a
|
|
785
783
|
}) : null;
|
|
786
784
|
}
|
|
787
|
-
function
|
|
785
|
+
function pt(e, t) {
|
|
788
786
|
const n = o(e.enableEnter);
|
|
789
787
|
let a = null;
|
|
790
|
-
return n.value ? (a =
|
|
788
|
+
return n.value ? (a = ye("Enter", (u) => {
|
|
791
789
|
t.emit("enter", { event: u.event, type: "enter" });
|
|
792
790
|
}), {
|
|
793
791
|
remove: a
|
|
794
792
|
}) : null;
|
|
795
793
|
}
|
|
796
|
-
const Z = /* @__PURE__ */
|
|
794
|
+
const Z = /* @__PURE__ */ fe({
|
|
797
795
|
name: "FModal",
|
|
798
|
-
props:
|
|
796
|
+
props: ft,
|
|
799
797
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
800
798
|
setup(e, t) {
|
|
801
|
-
const n = o(e.width || 300), a = o(e.height || 200), u = o(e.modelValue),
|
|
799
|
+
const n = o(e.width || 300), a = o(e.height || 200), u = o(e.modelValue), d = o(""), r = o(e.class), i = o(e.fitContent), s = o(e.showHeader), m = o(""), y = o(e.showCloseButton), g = o(e.showMaxButton), z = o(!1), w = o(e.dialogType), B = o(e.src), H = o(""), E = o(e.showButtons), k = o(e.title), C = o(e.containment || null), I = o();
|
|
802
800
|
k.value === "错误提示" && (k.value = J.getLocaleValue("messageBox.errorTitle"));
|
|
803
|
-
const
|
|
804
|
-
function T(l,
|
|
805
|
-
const W =
|
|
801
|
+
const $ = o(!1);
|
|
802
|
+
function T(l, p) {
|
|
803
|
+
const W = p ? "accept" : "cancel";
|
|
806
804
|
Promise.resolve().then(() => {
|
|
807
805
|
var D;
|
|
808
806
|
return (D = e.beforeClose) == null ? void 0 : D.call(e, {
|
|
809
807
|
closeType: W
|
|
810
808
|
});
|
|
811
809
|
}).then((D) => {
|
|
812
|
-
D && (u.value = !1, t.emit("update:modelValue", !1),
|
|
810
|
+
D && (u.value = !1, t.emit("update:modelValue", !1), p != null && t.emit(p ? "accept" : "cancel"), t.emit("closed", l));
|
|
813
811
|
});
|
|
814
812
|
}
|
|
815
813
|
const L = [{
|
|
@@ -826,143 +824,146 @@ const Z = /* @__PURE__ */ ce({
|
|
|
826
824
|
handle: (l) => {
|
|
827
825
|
T(l, !0);
|
|
828
826
|
}
|
|
829
|
-
}], h = o(e.buttons && e.buttons.length ? e.buttons : L), M = x(() => !!m.value),
|
|
827
|
+
}], h = o(e.buttons && e.buttons.length ? e.buttons : L), M = x(() => !!m.value), F = x(() => !!E.value && !!h.value), P = o(), R = o(), N = o(!1), {
|
|
830
828
|
renderResizeBar: G,
|
|
831
|
-
maximize:
|
|
829
|
+
maximize: ne,
|
|
832
830
|
restore: Q,
|
|
833
|
-
boundingElement:
|
|
834
|
-
resizedEventParam:
|
|
835
|
-
allowDrag:
|
|
831
|
+
boundingElement: K,
|
|
832
|
+
resizedEventParam: ae,
|
|
833
|
+
allowDrag: c,
|
|
836
834
|
unWindowResizeHandle: f,
|
|
837
|
-
moveToCenter:
|
|
838
|
-
} =
|
|
835
|
+
moveToCenter: S
|
|
836
|
+
} = ht(e), {
|
|
839
837
|
registerDraggle: b
|
|
840
|
-
} =
|
|
841
|
-
function
|
|
838
|
+
} = mt(e, t, c);
|
|
839
|
+
function j() {
|
|
842
840
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
843
841
|
}
|
|
844
|
-
function
|
|
842
|
+
function be() {
|
|
845
843
|
const l = document.querySelectorAll(".farris-modal").length;
|
|
846
844
|
(!l || l - 1 <= 0) && document.body.classList.remove("modal-open"), I.value && I.value.classList.remove("show");
|
|
847
845
|
}
|
|
848
|
-
Y(() => e.title, (l,
|
|
849
|
-
l !==
|
|
850
|
-
}), Y(() => e.modelValue, (l,
|
|
851
|
-
l !==
|
|
852
|
-
R.value && !C.value && (C.value = R.value.parentElement,
|
|
853
|
-
}), l || (C.value && (C.value = null),
|
|
854
|
-
}), Y(() => e.showHeader, (l,
|
|
855
|
-
l !==
|
|
856
|
-
}), Y(() => e.showButtons, (l,
|
|
857
|
-
l !==
|
|
858
|
-
}), Y(() =>
|
|
859
|
-
const W = l || {}, D =
|
|
846
|
+
Y(() => e.title, (l, p) => {
|
|
847
|
+
l !== p && (k.value = l);
|
|
848
|
+
}), Y(() => e.modelValue, (l, p) => {
|
|
849
|
+
l !== p && (u.value = l, u.value && e.draggable && he(() => {
|
|
850
|
+
R.value && !C.value && (C.value = R.value.parentElement, K.value = C.value, b(P.value, R.value, K.value), S());
|
|
851
|
+
}), l || (C.value && (C.value = null), be())), u.value ? $.value = j() : (N.value = !1, c.value = e.draggable);
|
|
852
|
+
}), Y(() => e.showHeader, (l, p) => {
|
|
853
|
+
l !== p && (s.value = l);
|
|
854
|
+
}), Y(() => e.showButtons, (l, p) => {
|
|
855
|
+
l !== p && (E.value = l);
|
|
856
|
+
}), Y(() => ae.value, (l, p) => {
|
|
857
|
+
const W = l || {}, D = p || {};
|
|
860
858
|
JSON.stringify(W) !== JSON.stringify(D) && t.emit("resize", {
|
|
861
859
|
newSize: l,
|
|
862
|
-
oldSize:
|
|
860
|
+
oldSize: p,
|
|
863
861
|
isMaximized: N.value
|
|
864
862
|
});
|
|
865
|
-
}), Y([() => e.width, () => e.height], (l,
|
|
866
|
-
(l[0] !==
|
|
863
|
+
}), Y([() => e.width, () => e.height], (l, p) => {
|
|
864
|
+
(l[0] !== p[0] || l[1] !== p[1]) && (n.value = l[0] || 500, a.value = l[1] || 600);
|
|
865
|
+
}), Y(() => e.class, (l, p) => {
|
|
866
|
+
r.value = l;
|
|
867
867
|
});
|
|
868
|
-
const
|
|
868
|
+
const _ = x(() => (u.value && document.body.classList.add("modal-open"), u.value)), Ce = x(() => {
|
|
869
869
|
var W;
|
|
870
870
|
const l = {
|
|
871
871
|
modal: !0,
|
|
872
872
|
"farris-modal": !0,
|
|
873
873
|
fade: !0
|
|
874
874
|
};
|
|
875
|
-
l["f-modal-fitContent"] = !!i.value, l.show = !!
|
|
876
|
-
const
|
|
877
|
-
return
|
|
878
|
-
}),
|
|
875
|
+
l["f-modal-fitContent"] = !!i.value, l.show = !!_.value;
|
|
876
|
+
const p = (W = e.maskClass) == null ? void 0 : W.split(" ");
|
|
877
|
+
return p == null || p.reduce((D, V) => (D[V] = !0, D), l), l;
|
|
878
|
+
}), Me = x(() => {
|
|
879
879
|
var W;
|
|
880
880
|
const l = {
|
|
881
881
|
"modal-dialog": !0
|
|
882
|
-
},
|
|
883
|
-
return
|
|
884
|
-
}),
|
|
885
|
-
const l = document.documentElement.clientWidth,
|
|
882
|
+
}, p = (W = r.value) == null ? void 0 : W.split(" ");
|
|
883
|
+
return p == null || p.reduce((D, V) => (D[V] = !0, D), l), l;
|
|
884
|
+
}), re = () => Ge() && !e.isMessager, Be = x(() => {
|
|
885
|
+
const l = document.documentElement.clientWidth, p = document.documentElement.clientHeight, W = Math.min(n.value, l), D = i.value ? "auto" : `${Math.min(a.value, p - 10)}px`, V = {
|
|
886
886
|
position: "absolute",
|
|
887
887
|
top: `${(window.innerHeight - parseInt(D === "auto" ? "0" : D)) / 2}px`,
|
|
888
888
|
left: `${(window.innerWidth - W) / 2}px`,
|
|
889
889
|
width: `${W}px`,
|
|
890
890
|
height: D
|
|
891
891
|
};
|
|
892
|
-
return e.mask || (
|
|
893
|
-
}),
|
|
892
|
+
return re() && (V.top = "0px", V.left = "0px", V.width = `${window.innerWidth}px`, V.height = `${window.innerHeight}px`), e.mask || (V.pointerEvents = "auto"), V;
|
|
893
|
+
}), ce = o(ve() || 1050), ke = x(() => {
|
|
894
894
|
const l = {
|
|
895
895
|
display: "block",
|
|
896
|
-
|
|
896
|
+
overflow: "hidden"
|
|
897
897
|
};
|
|
898
|
-
return e.mask || (l.pointerEvents = "none", l.backgroundColor = "transparent"),
|
|
899
|
-
}),
|
|
898
|
+
return e.mask || (l.pointerEvents = "none", l.backgroundColor = "transparent"), $.value && (l.backgroundColor = "transparent"), l.zIndex = ce.value, l;
|
|
899
|
+
}), Te = x(() => ({
|
|
900
900
|
"modal-content": !0,
|
|
901
|
-
"modal-content-has-header": s.value
|
|
902
|
-
|
|
901
|
+
"modal-content-has-header": s.value,
|
|
902
|
+
"is-mobile": re()
|
|
903
|
+
})), Ee = x(() => {
|
|
903
904
|
const l = {
|
|
904
905
|
display: s.value ? "" : "none"
|
|
905
906
|
};
|
|
906
|
-
return l["pointer-events"] =
|
|
907
|
-
}),
|
|
907
|
+
return l["pointer-events"] = c.value ? "auto" : "none", l;
|
|
908
|
+
}), Se = x(() => ({
|
|
908
909
|
"f-icon": !0,
|
|
909
910
|
modal_maximize: !0,
|
|
910
911
|
modalrevert: N.value
|
|
911
|
-
})),
|
|
912
|
+
})), ze = x(() => ({
|
|
912
913
|
"modal-body": !0,
|
|
913
914
|
"f-utils-flex-column": w.value === "iframe",
|
|
914
915
|
"f-utils-fill": !0
|
|
915
916
|
}));
|
|
916
|
-
function
|
|
917
|
+
function He() {
|
|
917
918
|
return {
|
|
918
919
|
height: `${e.footerHeight || 60}px`
|
|
919
920
|
};
|
|
920
921
|
}
|
|
921
|
-
const
|
|
922
|
+
const Re = x(() => {
|
|
922
923
|
const l = {
|
|
923
924
|
textAlgin: H.value
|
|
924
|
-
},
|
|
925
|
-
return Object.assign(l,
|
|
925
|
+
}, p = He();
|
|
926
|
+
return Object.assign(l, p);
|
|
926
927
|
});
|
|
927
|
-
function
|
|
928
|
+
function de(l) {
|
|
928
929
|
if (l == null || l.stopPropagation(), N.value) {
|
|
929
930
|
N.value = !1, Q();
|
|
930
931
|
return;
|
|
931
932
|
}
|
|
932
|
-
|
|
933
|
+
ne(), N.value = !0;
|
|
933
934
|
}
|
|
934
|
-
async function
|
|
935
|
-
l.handle && await l.handle(
|
|
935
|
+
async function Ie(l, p) {
|
|
936
|
+
l.handle && await l.handle(p, l) && t.emit("closed", p);
|
|
936
937
|
}
|
|
937
|
-
function
|
|
938
|
+
function Oe(l) {
|
|
938
939
|
l.width && (n.value = l.width), l.height && (a.value = l.height), l.buttons && (h.value = l.buttons), l.title && (k.value = l.title);
|
|
939
940
|
}
|
|
940
941
|
let le = null, oe = null;
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}),
|
|
944
|
-
R.value && !C.value && (C.value = R.value.parentElement,
|
|
945
|
-
}),
|
|
942
|
+
$e(() => {
|
|
943
|
+
$.value = j();
|
|
944
|
+
}), me(() => {
|
|
945
|
+
R.value && !C.value && (C.value = R.value.parentElement, K.value = C.value, b(P.value, R.value, K.value)), _.value && document.body.classList.add("modal-open"), le = gt(e, t), oe = pt(e, t);
|
|
946
|
+
}), ge(() => {
|
|
946
947
|
f && f(), le && le.remove(), oe && oe.remove();
|
|
947
948
|
}), t.expose({
|
|
948
949
|
modalElementRef: R,
|
|
949
|
-
updateModalOptions:
|
|
950
|
+
updateModalOptions: Oe,
|
|
950
951
|
close: T,
|
|
951
|
-
maxDialog:
|
|
952
|
+
maxDialog: de,
|
|
952
953
|
isMaximized: N
|
|
953
954
|
});
|
|
954
|
-
function
|
|
955
|
-
return v("ul", null, [
|
|
955
|
+
function Le() {
|
|
956
|
+
return v("ul", null, [z.value && v("li", {
|
|
956
957
|
class: "f-btn-icon f-bare"
|
|
957
958
|
}, [v("span", {
|
|
958
959
|
class: "f-icon modal_minimize"
|
|
959
960
|
}, null)]), g.value && v("li", {
|
|
960
|
-
onClick:
|
|
961
|
+
onClick: de,
|
|
961
962
|
class: "f-btn-icon f-bare",
|
|
962
963
|
style: "pointer-events: auto;"
|
|
963
964
|
}, [v("span", {
|
|
964
|
-
class:
|
|
965
|
-
}, null)]),
|
|
965
|
+
class: Se.value
|
|
966
|
+
}, null)]), y.value && v("li", {
|
|
966
967
|
class: "f-btn-icon f-bare",
|
|
967
968
|
onClick: (l) => T(l, !1),
|
|
968
969
|
style: "pointer-events: auto;"
|
|
@@ -970,30 +971,30 @@ const Z = /* @__PURE__ */ ce({
|
|
|
970
971
|
class: "f-icon modal_close"
|
|
971
972
|
}, null)])]);
|
|
972
973
|
}
|
|
973
|
-
function
|
|
974
|
+
function je() {
|
|
974
975
|
return v("div", {
|
|
975
976
|
class: "modal-footer",
|
|
976
|
-
style:
|
|
977
|
+
style: Re.value
|
|
977
978
|
}, [h.value && h.value.map((l) => {
|
|
978
|
-
const
|
|
979
|
+
const p = o(l.disabled);
|
|
979
980
|
return v("button", {
|
|
980
981
|
name: l.name,
|
|
981
982
|
type: "button",
|
|
982
|
-
disabled:
|
|
983
|
+
disabled: p.value,
|
|
983
984
|
class: l.class + (l.iconClass ? " btn-icontext" : ""),
|
|
984
985
|
onClick: (W) => {
|
|
985
|
-
|
|
986
|
+
Ie(l, W);
|
|
986
987
|
}
|
|
987
988
|
}, [!!l.iconClass && v("i", {
|
|
988
989
|
class: l.iconClass
|
|
989
990
|
}, null), l.text]);
|
|
990
991
|
})]);
|
|
991
992
|
}
|
|
992
|
-
function
|
|
993
|
+
function Fe() {
|
|
993
994
|
return v("div", {
|
|
994
995
|
ref: P,
|
|
995
996
|
class: "modal-header",
|
|
996
|
-
style:
|
|
997
|
+
style: Ee.value
|
|
997
998
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
998
999
|
class: "modal-title"
|
|
999
1000
|
}, [M.value && v("span", {
|
|
@@ -1003,87 +1004,89 @@ const Z = /* @__PURE__ */ ce({
|
|
|
1003
1004
|
class: "modal-title-label"
|
|
1004
1005
|
}, [k.value])]), v("div", {
|
|
1005
1006
|
class: "actions"
|
|
1006
|
-
}, [
|
|
1007
|
+
}, [Le()])]);
|
|
1007
1008
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
1009
|
+
function De() {
|
|
1010
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : F.value && je();
|
|
1010
1011
|
}
|
|
1011
|
-
function
|
|
1012
|
+
function We(l) {
|
|
1012
1013
|
if (l.stopPropagation(), e.allowClickMaskToClose) {
|
|
1013
1014
|
if (l.target !== I.value)
|
|
1014
1015
|
return;
|
|
1015
1016
|
T(l, !1);
|
|
1016
1017
|
}
|
|
1017
1018
|
}
|
|
1018
|
-
function
|
|
1019
|
-
var l,
|
|
1019
|
+
function Pe() {
|
|
1020
|
+
var l, p;
|
|
1020
1021
|
return v("div", {
|
|
1021
|
-
id:
|
|
1022
|
-
class:
|
|
1023
|
-
style:
|
|
1022
|
+
id: d.value,
|
|
1023
|
+
class: Me.value,
|
|
1024
|
+
style: Be.value,
|
|
1024
1025
|
ref: R
|
|
1025
1026
|
}, [v("div", {
|
|
1026
|
-
class:
|
|
1027
|
-
}, [s.value &&
|
|
1028
|
-
class:
|
|
1029
|
-
}, [(
|
|
1030
|
-
title:
|
|
1027
|
+
class: Te.value
|
|
1028
|
+
}, [s.value && Fe(), v("div", {
|
|
1029
|
+
class: ze.value
|
|
1030
|
+
}, [(p = (l = t.slots).default) == null ? void 0 : p.call(l), w.value === "iframe" && v("iframe", {
|
|
1031
|
+
title: d.value,
|
|
1031
1032
|
class: "f-utils-fill",
|
|
1032
1033
|
width: "100%",
|
|
1033
1034
|
frameborder: "0",
|
|
1034
1035
|
src: B.value
|
|
1035
|
-
}, null)]),
|
|
1036
|
+
}, null)]), De()]), !i.value && R.value && !N.value && G(R.value)]);
|
|
1036
1037
|
}
|
|
1037
|
-
function
|
|
1038
|
+
function Ne(l) {
|
|
1038
1039
|
return l || "body";
|
|
1039
1040
|
}
|
|
1040
|
-
return () =>
|
|
1041
|
-
|
|
1041
|
+
return Xe(() => {
|
|
1042
|
+
_.value && (ce.value = ve() || 1050);
|
|
1043
|
+
}), () => v(Ye, {
|
|
1044
|
+
to: Ne(e.host)
|
|
1042
1045
|
}, {
|
|
1043
|
-
default: () => [
|
|
1046
|
+
default: () => [_.value && v(Ue, {
|
|
1044
1047
|
name: "fade",
|
|
1045
1048
|
appear: !0
|
|
1046
1049
|
}, {
|
|
1047
1050
|
default: () => [v("div", {
|
|
1048
1051
|
ref: I,
|
|
1049
|
-
class:
|
|
1050
|
-
style:
|
|
1051
|
-
onClick:
|
|
1052
|
-
}, [
|
|
1052
|
+
class: Ce.value,
|
|
1053
|
+
style: ke.value,
|
|
1054
|
+
onClick: We
|
|
1055
|
+
}, [Pe()])]
|
|
1053
1056
|
})]
|
|
1054
1057
|
});
|
|
1055
1058
|
}
|
|
1056
1059
|
});
|
|
1057
|
-
function
|
|
1060
|
+
function we(e) {
|
|
1058
1061
|
if (e.content && e.content.render)
|
|
1059
1062
|
return e.content.render;
|
|
1060
1063
|
if (e.render && typeof e.render == "function")
|
|
1061
1064
|
return e.render;
|
|
1062
1065
|
}
|
|
1063
|
-
function
|
|
1066
|
+
function yt(e) {
|
|
1064
1067
|
const t = document.createElement("div");
|
|
1065
1068
|
t.style.display = "contents";
|
|
1066
|
-
const n =
|
|
1069
|
+
const n = Ze({
|
|
1067
1070
|
setup(a, u) {
|
|
1068
|
-
|
|
1071
|
+
ge(() => {
|
|
1069
1072
|
document.body.removeChild(t);
|
|
1070
1073
|
});
|
|
1071
|
-
const
|
|
1074
|
+
const d = o(), r = o(e.class || ""), i = o(!!e.showButtons), s = o(!!e.showHeader), m = o(e.showCloseButton == null ? !0 : e.showCloseButton), y = o(!0), g = o(e.title || ""), z = e.acceptCallback || (() => {
|
|
1072
1075
|
}), w = e.rejectCallback || (() => {
|
|
1073
1076
|
}), B = e.closedCallback || ((I) => {
|
|
1074
1077
|
}), H = e.resizeHandle || ((I) => {
|
|
1075
1078
|
}), E = e.stopMoveHandle || ((I) => {
|
|
1076
|
-
}), k =
|
|
1077
|
-
|
|
1079
|
+
}), k = we(e), C = (I) => {
|
|
1080
|
+
y.value = !1, n.unmount(), B(I);
|
|
1078
1081
|
};
|
|
1079
|
-
return
|
|
1082
|
+
return me(() => {
|
|
1080
1083
|
}), u.expose({
|
|
1081
|
-
modalRef:
|
|
1084
|
+
modalRef: d
|
|
1082
1085
|
}), () => v(Z, {
|
|
1083
|
-
ref:
|
|
1084
|
-
class:
|
|
1085
|
-
modelValue:
|
|
1086
|
-
"onUpdate:modelValue": (I) =>
|
|
1086
|
+
ref: d,
|
|
1087
|
+
class: r.value,
|
|
1088
|
+
modelValue: y.value,
|
|
1089
|
+
"onUpdate:modelValue": (I) => y.value = I,
|
|
1087
1090
|
title: g.value,
|
|
1088
1091
|
width: e.width,
|
|
1089
1092
|
height: e.height,
|
|
@@ -1092,7 +1095,7 @@ function mt(e) {
|
|
|
1092
1095
|
"show-buttons": i.value,
|
|
1093
1096
|
"show-close-button": m.value,
|
|
1094
1097
|
"show-max-button": !1,
|
|
1095
|
-
onAccept:
|
|
1098
|
+
onAccept: z,
|
|
1096
1099
|
onCancel: w,
|
|
1097
1100
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1098
1101
|
onClosed: C,
|
|
@@ -1105,14 +1108,14 @@ function mt(e) {
|
|
|
1105
1108
|
});
|
|
1106
1109
|
return document.body.appendChild(t), n.use(J.i18n), n.mount(t), n;
|
|
1107
1110
|
}
|
|
1108
|
-
class
|
|
1111
|
+
class xe {
|
|
1109
1112
|
constructor(t) {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1113
|
+
X(this, "appContext", null);
|
|
1114
|
+
X(this, "modalRef", o());
|
|
1115
|
+
X(this, "activeModalIndex", o(0));
|
|
1116
|
+
X(this, "modalRefs", {});
|
|
1117
|
+
X(this, "isUseEscCloseModal", o(!1));
|
|
1118
|
+
X(this, "activeModalInstance", x(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1116
1119
|
this.app = t, this.appContext = t ? t._context : null;
|
|
1117
1120
|
}
|
|
1118
1121
|
getCurrentModal() {
|
|
@@ -1137,7 +1140,7 @@ class pe {
|
|
|
1137
1140
|
showButtons: !0,
|
|
1138
1141
|
showHeader: !0
|
|
1139
1142
|
}, t);
|
|
1140
|
-
return
|
|
1143
|
+
return yt(n);
|
|
1141
1144
|
}
|
|
1142
1145
|
close(t) {
|
|
1143
1146
|
var n, a;
|
|
@@ -1146,25 +1149,25 @@ class pe {
|
|
|
1146
1149
|
open(t) {
|
|
1147
1150
|
const n = document.createDocumentFragment();
|
|
1148
1151
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
1149
|
-
const a =
|
|
1152
|
+
const a = qe(Object.assign({
|
|
1150
1153
|
title: "",
|
|
1151
1154
|
showButtons: !0,
|
|
1152
1155
|
showHeader: !0
|
|
1153
|
-
}, t)), u = o(!0),
|
|
1154
|
-
}),
|
|
1156
|
+
}, t)), u = o(!0), d = a.value.acceptCallback || (() => {
|
|
1157
|
+
}), r = a.value.rejectCallback || (() => {
|
|
1155
1158
|
}), i = a.value.closedCallback || ((T, L) => {
|
|
1156
1159
|
}), s = a.value.resizeHandle || ((T) => {
|
|
1157
1160
|
}), m = t.stopMoveHandle || ((T) => {
|
|
1158
1161
|
});
|
|
1159
|
-
let
|
|
1160
|
-
const g =
|
|
1162
|
+
let y;
|
|
1163
|
+
const g = we(a.value), z = (T) => {
|
|
1161
1164
|
var h;
|
|
1162
1165
|
u.value = !1;
|
|
1163
1166
|
const L = (h = T == null ? void 0 : T.target) == null ? void 0 : h.classList.contains("modal_close");
|
|
1164
1167
|
i(T, this.isUseEscCloseModal.value ? "esc" : L ? "icon" : "button");
|
|
1165
1168
|
}, w = (T) => {
|
|
1166
|
-
|
|
1167
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], se(null, n),
|
|
1169
|
+
z(T), y && he(() => {
|
|
1170
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], se(null, n), y = null, this.modalRef.value = null, this.modalRefs) {
|
|
1168
1171
|
const L = Object.keys(this.modalRefs).map((h) => Number(h));
|
|
1169
1172
|
L.length > 0 ? this.activeModalIndex.value = Math.max(...L) : this.activeModalIndex.value = 0;
|
|
1170
1173
|
}
|
|
@@ -1178,13 +1181,14 @@ class pe {
|
|
|
1178
1181
|
height: E
|
|
1179
1182
|
} = a.value, k = this.adaptToWindow(H || 500, E || 320);
|
|
1180
1183
|
Object.assign(a.value, k);
|
|
1181
|
-
const C = () => v(Z,
|
|
1184
|
+
const C = () => v(Z, pe({
|
|
1182
1185
|
ref: this.modalRef,
|
|
1183
1186
|
modelValue: u.value,
|
|
1184
1187
|
"onUpdate:modelValue": (T) => u.value = T
|
|
1185
1188
|
}, a.value, {
|
|
1186
|
-
|
|
1187
|
-
|
|
1189
|
+
isMessager: a.value.class && a.value.class.indexOf("modal-message") > -1,
|
|
1190
|
+
onAccept: d,
|
|
1191
|
+
onCancel: r,
|
|
1188
1192
|
onClosed: w,
|
|
1189
1193
|
onResize: s,
|
|
1190
1194
|
onEsc: B,
|
|
@@ -1192,8 +1196,8 @@ class pe {
|
|
|
1192
1196
|
}), {
|
|
1193
1197
|
default: () => [g && g(this.app)]
|
|
1194
1198
|
});
|
|
1195
|
-
return
|
|
1196
|
-
const L =
|
|
1199
|
+
return y = ((T) => {
|
|
1200
|
+
const L = Ke(C, T);
|
|
1197
1201
|
return L.appContext = this.appContext, se(L, n), L;
|
|
1198
1202
|
})({
|
|
1199
1203
|
...a.value
|
|
@@ -1203,7 +1207,7 @@ class pe {
|
|
|
1203
1207
|
a.value = {
|
|
1204
1208
|
...a.value,
|
|
1205
1209
|
...T
|
|
1206
|
-
},
|
|
1210
|
+
}, y && se(Je(y, {
|
|
1207
1211
|
...a
|
|
1208
1212
|
}), n);
|
|
1209
1213
|
},
|
|
@@ -1213,26 +1217,26 @@ class pe {
|
|
|
1213
1217
|
};
|
|
1214
1218
|
}
|
|
1215
1219
|
}
|
|
1216
|
-
const
|
|
1220
|
+
const wt = Symbol("FModalService");
|
|
1217
1221
|
Z.install = (e) => {
|
|
1218
1222
|
e.component(Z.name, Z);
|
|
1219
|
-
const t = new
|
|
1220
|
-
e.provide(
|
|
1223
|
+
const t = new xe(e);
|
|
1224
|
+
e.provide(wt, t), e.provide("FModalService", t);
|
|
1221
1225
|
};
|
|
1222
|
-
const
|
|
1226
|
+
const A = class A {
|
|
1223
1227
|
static show(t) {
|
|
1224
|
-
const n =
|
|
1228
|
+
const n = U({
|
|
1225
1229
|
...t
|
|
1226
|
-
}), a = !1, u = n.type === "error" || n.type === "prompt",
|
|
1230
|
+
}), a = !1, u = n.type === "error" || n.type === "prompt", d = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
|
|
1227
1231
|
}), i = n.rejectCallback || (() => {
|
|
1228
1232
|
});
|
|
1229
|
-
let s = null, m = new
|
|
1230
|
-
const
|
|
1233
|
+
let s = null, m = new xe(A.app);
|
|
1234
|
+
const y = () => {
|
|
1231
1235
|
s && (s == null || s.destroy(), m = null);
|
|
1232
1236
|
};
|
|
1233
1237
|
return s = m == null ? void 0 : m.open({
|
|
1234
1238
|
class: "modal-message modal-message-type-info",
|
|
1235
|
-
title:
|
|
1239
|
+
title: d,
|
|
1236
1240
|
showButtons: a,
|
|
1237
1241
|
showHeader: u,
|
|
1238
1242
|
width: n.width || 400,
|
|
@@ -1240,45 +1244,45 @@ const V = class V {
|
|
|
1240
1244
|
showMaxButton: !1,
|
|
1241
1245
|
draggable: !0,
|
|
1242
1246
|
dragHandle: ".messager-draggable",
|
|
1243
|
-
render: () => v(
|
|
1244
|
-
onAccept:
|
|
1247
|
+
render: () => v(ee, pe(n, {
|
|
1248
|
+
onAccept: r,
|
|
1245
1249
|
onReject: i,
|
|
1246
|
-
onClose:
|
|
1250
|
+
onClose: y
|
|
1247
1251
|
}), null)
|
|
1248
1252
|
}), m == null ? void 0 : m.getCurrentModal();
|
|
1249
1253
|
}
|
|
1250
1254
|
static info(t, n) {
|
|
1251
|
-
const a =
|
|
1255
|
+
const a = U({
|
|
1252
1256
|
type: "info",
|
|
1253
1257
|
title: t,
|
|
1254
1258
|
detail: n,
|
|
1255
1259
|
okButtonText: "知道了",
|
|
1256
1260
|
showCancelButton: !1
|
|
1257
1261
|
});
|
|
1258
|
-
|
|
1262
|
+
A.show(a);
|
|
1259
1263
|
}
|
|
1260
1264
|
static warning(t, n) {
|
|
1261
|
-
const a =
|
|
1265
|
+
const a = U({
|
|
1262
1266
|
type: "warning",
|
|
1263
1267
|
title: t,
|
|
1264
1268
|
detail: n,
|
|
1265
1269
|
okButtonText: "知道了",
|
|
1266
1270
|
showCancelButton: !1
|
|
1267
1271
|
});
|
|
1268
|
-
|
|
1272
|
+
A.show(a);
|
|
1269
1273
|
}
|
|
1270
1274
|
static success(t, n) {
|
|
1271
|
-
const a =
|
|
1275
|
+
const a = U({
|
|
1272
1276
|
type: "success",
|
|
1273
1277
|
title: t,
|
|
1274
1278
|
detail: n,
|
|
1275
1279
|
okButtonText: "关闭",
|
|
1276
1280
|
showCancelButton: !1
|
|
1277
1281
|
});
|
|
1278
|
-
|
|
1282
|
+
A.show(a);
|
|
1279
1283
|
}
|
|
1280
1284
|
static error(t, n, a) {
|
|
1281
|
-
const u =
|
|
1285
|
+
const u = U({
|
|
1282
1286
|
width: 500,
|
|
1283
1287
|
type: "error",
|
|
1284
1288
|
okButtonText: "关闭",
|
|
@@ -1289,20 +1293,20 @@ const V = class V {
|
|
|
1289
1293
|
detail: n
|
|
1290
1294
|
}
|
|
1291
1295
|
});
|
|
1292
|
-
|
|
1296
|
+
A.show(u);
|
|
1293
1297
|
}
|
|
1294
1298
|
static prompt(t, n) {
|
|
1295
|
-
const a =
|
|
1299
|
+
const a = U({
|
|
1296
1300
|
type: "prompt",
|
|
1297
1301
|
title: t,
|
|
1298
1302
|
detail: n,
|
|
1299
1303
|
okButtonText: "确定",
|
|
1300
1304
|
cancelButtonText: "取消"
|
|
1301
1305
|
});
|
|
1302
|
-
|
|
1306
|
+
A.show(a);
|
|
1303
1307
|
}
|
|
1304
1308
|
static question(t, n, a, u) {
|
|
1305
|
-
const
|
|
1309
|
+
const d = U({
|
|
1306
1310
|
type: "question",
|
|
1307
1311
|
title: t,
|
|
1308
1312
|
detail: n,
|
|
@@ -1311,17 +1315,17 @@ const V = class V {
|
|
|
1311
1315
|
acceptCallback: a,
|
|
1312
1316
|
rejectCallback: u
|
|
1313
1317
|
});
|
|
1314
|
-
|
|
1318
|
+
A.show(d);
|
|
1315
1319
|
}
|
|
1316
1320
|
};
|
|
1317
|
-
|
|
1318
|
-
let
|
|
1319
|
-
|
|
1320
|
-
e.component(
|
|
1321
|
+
X(A, "app", null);
|
|
1322
|
+
let te = A;
|
|
1323
|
+
ee.install = (e) => {
|
|
1324
|
+
e.component(ee.name, ee), te.app = e, e.provide("FMessageBoxService", te);
|
|
1321
1325
|
};
|
|
1322
1326
|
export {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
+
ee as FMessageBox,
|
|
1328
|
+
te as FMessageBoxService,
|
|
1329
|
+
ee as default,
|
|
1330
|
+
Qe as messageBoxProps
|
|
1327
1331
|
};
|