@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,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var jt = (e,
|
|
3
|
-
var
|
|
4
|
-
import { getCustomClass as
|
|
5
|
-
import { resolveAppearance as
|
|
6
|
-
import { responseToolbarProps as
|
|
7
|
-
import { computed as
|
|
8
|
-
import { LocaleService as
|
|
9
|
-
import { canvasChanged as
|
|
10
|
-
import { BaseControlProperty as
|
|
11
|
-
import { isPlainObject as
|
|
12
|
-
import { TabToolbarItemProperty as
|
|
13
|
-
const
|
|
1
|
+
var Bt = Object.defineProperty;
|
|
2
|
+
var jt = (e, m, t) => m in e ? Bt(e, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[m] = t;
|
|
3
|
+
var J = (e, m, t) => jt(e, typeof m != "symbol" ? m + "" : m, t);
|
|
4
|
+
import { getCustomClass as re, isMobilePhone as At, useGuid as _t, withInstall as $t } from "../../components/common/index.esm.js";
|
|
5
|
+
import { resolveAppearance as Lt, createPropsResolver as lt, createResponseToolbarEventHandlerResolver as Nt, getSchemaByType as at } from "../../components/dynamic-resolver/index.esm.js";
|
|
6
|
+
import { responseToolbarProps as ct } from "../../components/response-toolbar/index.esm.js";
|
|
7
|
+
import { computed as fe, createVNode as L, Teleport as Ft, getCurrentInstance as Wt, reactive as Pe, withDirectives as Ee, resolveDirective as Me, ref as oe, defineComponent as ze, watch as ke, onMounted as Ge, onUnmounted as ut, nextTick as Te, inject as xe, provide as qt, createTextVNode as zt } from "vue";
|
|
8
|
+
import { LocaleService as Gt } from "../../components/locale/index.esm.js";
|
|
9
|
+
import { canvasChanged as Fe, useDesignerInnerComponent as Ut, FDesignerInnerItem as Yt, useDesignerComponent as Xt, setPositionForSelectedElement as Ht } from "../../components/designer-canvas/index.esm.js";
|
|
10
|
+
import { BaseControlProperty as dt } from "../../components/property-panel/index.esm.js";
|
|
11
|
+
import { isPlainObject as nt, cloneDeep as Ce } from "lodash-es";
|
|
12
|
+
import { TabToolbarItemProperty as Vt } from "../tabs/index.esm.js";
|
|
13
|
+
const Qt = /* @__PURE__ */ new Map([
|
|
14
14
|
["buttons", "items"],
|
|
15
|
-
["appearance",
|
|
15
|
+
["appearance", Lt]
|
|
16
16
|
]);
|
|
17
|
-
function
|
|
18
|
-
return
|
|
17
|
+
function ft(e, m, t) {
|
|
18
|
+
return m;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const Zt = "https://json-schema.org/draft/2020-12/schema", Jt = "https://farris-design.gitee.io/response-toolbar.schema.json", Kt = "response-toolbar", en = "A Farris Toolbar Component", tn = "object", nn = {
|
|
21
21
|
id: {
|
|
22
22
|
description: "The unique identifier for a Response Toolbar",
|
|
23
23
|
type: "string"
|
|
@@ -56,22 +56,22 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
|
|
|
56
56
|
type: "boolean",
|
|
57
57
|
default: !0
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, on = [
|
|
60
60
|
"id",
|
|
61
61
|
"type",
|
|
62
62
|
"buttons"
|
|
63
|
-
],
|
|
63
|
+
], rn = {
|
|
64
64
|
onClick: "点击事件"
|
|
65
|
-
},
|
|
66
|
-
$schema:
|
|
67
|
-
$id:
|
|
68
|
-
title:
|
|
69
|
-
description:
|
|
70
|
-
type:
|
|
71
|
-
properties:
|
|
72
|
-
required:
|
|
73
|
-
events:
|
|
74
|
-
},
|
|
65
|
+
}, sn = {
|
|
66
|
+
$schema: Zt,
|
|
67
|
+
$id: Jt,
|
|
68
|
+
title: Kt,
|
|
69
|
+
description: en,
|
|
70
|
+
type: tn,
|
|
71
|
+
properties: nn,
|
|
72
|
+
required: on,
|
|
73
|
+
events: rn
|
|
74
|
+
}, ln = "https://json-schema.org/draft/2020-12/schema", an = "https://farris-design.gitee.io/response-toolbar-item.schema.json", cn = "response-toolbar-item", un = "A Farris Toolbar Item Component", dn = "object", fn = {
|
|
75
75
|
id: {
|
|
76
76
|
description: "The unique identifier for a Response Toolbar",
|
|
77
77
|
type: "string"
|
|
@@ -141,33 +141,33 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
|
|
|
141
141
|
type: "boolean",
|
|
142
142
|
default: !1
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, pn = [
|
|
145
145
|
"id",
|
|
146
146
|
"type",
|
|
147
147
|
"text"
|
|
148
|
-
],
|
|
148
|
+
], hn = {
|
|
149
149
|
onClick: "点击事件"
|
|
150
|
-
},
|
|
151
|
-
$schema:
|
|
152
|
-
$id:
|
|
153
|
-
title:
|
|
154
|
-
description:
|
|
155
|
-
type:
|
|
156
|
-
properties:
|
|
157
|
-
required:
|
|
158
|
-
events:
|
|
159
|
-
},
|
|
150
|
+
}, gn = {
|
|
151
|
+
$schema: ln,
|
|
152
|
+
$id: an,
|
|
153
|
+
title: cn,
|
|
154
|
+
description: un,
|
|
155
|
+
type: dn,
|
|
156
|
+
properties: fn,
|
|
157
|
+
required: pn,
|
|
158
|
+
events: hn
|
|
159
|
+
}, bn = Object.assign({}, ct, {
|
|
160
160
|
componentId: { type: String, default: "" }
|
|
161
|
-
}),
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
),
|
|
161
|
+
}), Ue = lt(
|
|
162
|
+
ct,
|
|
163
|
+
sn,
|
|
164
|
+
Qt,
|
|
165
|
+
ft
|
|
166
|
+
), vn = {
|
|
167
167
|
id: { type: String, default: "" },
|
|
168
168
|
item: { type: Object, default: {} },
|
|
169
169
|
items: { type: Object, default: {} },
|
|
170
|
-
class: { type: String, default: "
|
|
170
|
+
class: { type: String, default: "" },
|
|
171
171
|
text: { type: String, default: "" },
|
|
172
172
|
disabled: { type: Boolean, default: !1 },
|
|
173
173
|
icon: { type: String, default: "" },
|
|
@@ -175,18 +175,22 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
|
|
|
175
175
|
// 是否展开子级
|
|
176
176
|
expanded: { type: Boolean, default: !1 },
|
|
177
177
|
alignment: { Type: String, default: "right" },
|
|
178
|
-
// 下拉按钮分离
|
|
179
178
|
split: { type: Boolean, default: !1 },
|
|
180
179
|
// 是否下拉
|
|
181
180
|
isDP: { type: Boolean, default: !1 },
|
|
182
181
|
// 是否下拉项
|
|
183
182
|
isDPItem: { type: Boolean, default: !1 }
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
}, pt = Object.assign({}, vn, {
|
|
184
|
+
item: { type: Object, default: {} },
|
|
185
|
+
items: { type: Object, default: {} },
|
|
186
|
+
class: { type: String, default: "btn-secondary" },
|
|
187
|
+
alignment: { Type: String, default: "right" }
|
|
188
|
+
}), mn = lt(
|
|
189
|
+
pt,
|
|
190
|
+
gn,
|
|
187
191
|
void 0,
|
|
188
|
-
|
|
189
|
-
),
|
|
192
|
+
ft
|
|
193
|
+
), yn = Nt(), wn = {
|
|
190
194
|
id: { type: String, default: "" },
|
|
191
195
|
/** 组件自定义样式 */
|
|
192
196
|
customClass: { type: String, default: "" },
|
|
@@ -198,40 +202,40 @@ const Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-
|
|
|
198
202
|
/** 控制是否可见 */
|
|
199
203
|
visible: { type: Boolean, default: !0 }
|
|
200
204
|
};
|
|
201
|
-
class
|
|
202
|
-
constructor(
|
|
205
|
+
class ht {
|
|
206
|
+
constructor(m) {
|
|
203
207
|
/** 工具栏项标识 */
|
|
204
|
-
|
|
208
|
+
J(this, "id", "");
|
|
205
209
|
/** 工具栏项自定义样式 */
|
|
206
|
-
|
|
210
|
+
J(this, "class", "btn-secondary");
|
|
207
211
|
/** 图标 */
|
|
208
|
-
|
|
212
|
+
J(this, "icon", "");
|
|
209
213
|
/** 所属分组 */
|
|
210
|
-
|
|
214
|
+
J(this, "groupId", "");
|
|
211
215
|
/** 收藏顺序 */
|
|
212
|
-
|
|
216
|
+
J(this, "order", -1);
|
|
213
217
|
/** 是否作为下拉菜单的顶层按钮 */
|
|
214
|
-
|
|
218
|
+
J(this, "asDropDownTop", !1);
|
|
215
219
|
/** 文本 */
|
|
216
|
-
|
|
220
|
+
J(this, "text", "");
|
|
217
221
|
/** 是否可见原值 */
|
|
218
|
-
|
|
222
|
+
J(this, "visible", !0);
|
|
219
223
|
/** 控制界面是否显示 */
|
|
220
|
-
|
|
221
|
-
|
|
224
|
+
J(this, "shown", !0);
|
|
225
|
+
J(this, "responsed", !1);
|
|
222
226
|
/** 是否启用提示消息 */
|
|
223
|
-
|
|
227
|
+
J(this, "tipsEnable", !1);
|
|
224
228
|
/** 提示消息内容 */
|
|
225
|
-
|
|
229
|
+
J(this, "tipsText", "");
|
|
226
230
|
/** 记录宽度 */
|
|
227
|
-
|
|
231
|
+
J(this, "width", 0);
|
|
228
232
|
/** 下拉时的样式名 */
|
|
229
|
-
|
|
230
|
-
|
|
233
|
+
J(this, "dropdownClass", "");
|
|
234
|
+
J(this, "onClick", () => {
|
|
231
235
|
});
|
|
232
|
-
|
|
236
|
+
J(this, "options");
|
|
233
237
|
var h, c;
|
|
234
|
-
this.options =
|
|
238
|
+
this.options = m;
|
|
235
239
|
const t = [
|
|
236
240
|
"id",
|
|
237
241
|
"class",
|
|
@@ -249,238 +253,239 @@ class pt {
|
|
|
249
253
|
"dropdownClass",
|
|
250
254
|
"onClick"
|
|
251
255
|
];
|
|
252
|
-
Object.keys(
|
|
253
|
-
r === "visible" ? this[r] =
|
|
254
|
-
}), this.shown = this.visible, (h =
|
|
256
|
+
Object.keys(m).filter((r) => t.indexOf(r) > -1).forEach((r) => {
|
|
257
|
+
r === "visible" ? this[r] = m[r] === void 0 ? !0 : m[r] : this[r] = m[r];
|
|
258
|
+
}), this.shown = this.visible, (h = m.appearance) != null && h.class && (this.class = (c = m.appearance) == null ? void 0 : c.class);
|
|
255
259
|
}
|
|
256
260
|
/** 是否可用 */
|
|
257
261
|
get enable() {
|
|
258
|
-
return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled :
|
|
262
|
+
return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled : fe(() => !0);
|
|
259
263
|
}
|
|
260
264
|
/** 设置宽度 */
|
|
261
|
-
setWidth(
|
|
262
|
-
this.width = parseInt(
|
|
265
|
+
setWidth(m) {
|
|
266
|
+
this.width = parseInt(m, 10);
|
|
263
267
|
}
|
|
264
268
|
/** 获取宽度 */
|
|
265
269
|
getWidth() {
|
|
266
270
|
return this.visible ? this.width : !1;
|
|
267
271
|
}
|
|
268
272
|
}
|
|
269
|
-
class
|
|
270
|
-
constructor(
|
|
271
|
-
super(
|
|
273
|
+
class xn extends ht {
|
|
274
|
+
constructor(m) {
|
|
275
|
+
super(m);
|
|
272
276
|
}
|
|
273
277
|
}
|
|
274
|
-
function
|
|
275
|
-
function e(
|
|
278
|
+
function gt() {
|
|
279
|
+
function e(m) {
|
|
276
280
|
const t = [];
|
|
277
|
-
return
|
|
281
|
+
return m.reduce((h, c) => (c.children && c.children.length > 0 ? h.push(new Ie(c)) : h.push(new xn(c)), h), t), t;
|
|
278
282
|
}
|
|
279
283
|
return { buildResponseToolbarItems: e };
|
|
280
284
|
}
|
|
281
|
-
const { buildResponseToolbarItems:
|
|
282
|
-
class Ie extends
|
|
285
|
+
const { buildResponseToolbarItems: Cn } = gt();
|
|
286
|
+
class Ie extends ht {
|
|
283
287
|
constructor(t) {
|
|
284
288
|
super(t);
|
|
285
|
-
|
|
289
|
+
J(this, "placement", "");
|
|
286
290
|
// 下拉位置
|
|
287
291
|
/** 是否可见 */
|
|
288
|
-
|
|
292
|
+
J(this, "visible", !0);
|
|
289
293
|
/** 下拉class */
|
|
290
|
-
|
|
294
|
+
J(this, "dropdownClass", "");
|
|
291
295
|
/** 下拉菜单class */
|
|
292
|
-
|
|
296
|
+
J(this, "menuClass", "");
|
|
293
297
|
/** 是否用分开的下拉按钮 */
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
J(this, "split", !1);
|
|
299
|
+
J(this, "children", []);
|
|
300
|
+
J(this, "expanded", !1);
|
|
301
|
+
J(this, "shown", !0);
|
|
298
302
|
const h = ["visible", "icon", "isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
|
|
299
303
|
Object.keys(t).filter((c) => h.indexOf(c) > -1).forEach((c) => {
|
|
300
304
|
c === "visible" ? this[c] = t[c] === void 0 ? !0 : t[c] : this[c] = t[c];
|
|
301
|
-
}), this.shown = this.visible, t.children && t.children.length && (this.children =
|
|
305
|
+
}), this.shown = this.visible, t.children && t.children.length && (this.children = Cn(t.children));
|
|
302
306
|
}
|
|
303
307
|
}
|
|
304
|
-
function
|
|
308
|
+
function Ye() {
|
|
305
309
|
function e(t) {
|
|
306
310
|
const h = {
|
|
307
311
|
"f-icon": !0
|
|
308
312
|
};
|
|
309
313
|
if (t.icon) {
|
|
310
314
|
const c = t.icon.trim().split(" ");
|
|
311
|
-
c && c.length && c.reduce((r,
|
|
315
|
+
c && c.length && c.reduce((r, T) => (r[T] = !0, r), h);
|
|
312
316
|
}
|
|
313
317
|
return h;
|
|
314
318
|
}
|
|
315
|
-
function
|
|
319
|
+
function m(t) {
|
|
316
320
|
return !!(t.icon && t.icon.trim());
|
|
317
321
|
}
|
|
318
|
-
return { iconClass: e, shouldShowIcon:
|
|
322
|
+
return { iconClass: e, shouldShowIcon: m };
|
|
319
323
|
}
|
|
320
|
-
function
|
|
321
|
-
function t(
|
|
322
|
-
return
|
|
324
|
+
function Tn(e, m) {
|
|
325
|
+
function t(p) {
|
|
326
|
+
return re({
|
|
323
327
|
"dropdown-menu": !0
|
|
324
|
-
},
|
|
328
|
+
}, p.menuClass);
|
|
325
329
|
}
|
|
326
|
-
function h(
|
|
330
|
+
function h(p) {
|
|
327
331
|
const o = {
|
|
328
|
-
disabled: !
|
|
332
|
+
disabled: !p.enable,
|
|
329
333
|
"dropdown-submenu": !0,
|
|
330
334
|
"f-rt-dropdown": !0,
|
|
331
335
|
"text-truncate": !0
|
|
332
336
|
};
|
|
333
|
-
return
|
|
337
|
+
return re(o, p.dropdownClass);
|
|
334
338
|
}
|
|
335
|
-
function c(
|
|
339
|
+
function c(p) {
|
|
336
340
|
const o = {
|
|
337
|
-
disabled: !
|
|
341
|
+
disabled: !p.enable,
|
|
338
342
|
"dropdown-item": !0,
|
|
339
343
|
"f-rt-btn": !0,
|
|
340
344
|
"text-truncate": !0
|
|
341
345
|
};
|
|
342
|
-
return
|
|
346
|
+
return re(o, p.dropdownClass);
|
|
343
347
|
}
|
|
344
|
-
function r(
|
|
348
|
+
function r(p) {
|
|
345
349
|
const o = {
|
|
346
|
-
disabled: !
|
|
350
|
+
disabled: !p.enable,
|
|
347
351
|
"dropdown-item": !0,
|
|
348
352
|
"f-rt-btn": !0,
|
|
349
353
|
"text-truncate": !0,
|
|
350
|
-
"f-rt-toggle": !
|
|
351
|
-
"btn-icontext": !!(
|
|
352
|
-
"dropdown-toggle": !
|
|
354
|
+
"f-rt-toggle": !p.split,
|
|
355
|
+
"btn-icontext": !!(p.icon && p.icon.trim()),
|
|
356
|
+
"dropdown-toggle": !p.split,
|
|
357
|
+
"btn-secondary": !0
|
|
353
358
|
};
|
|
354
|
-
return
|
|
359
|
+
return re(o, p.dropdownClass);
|
|
355
360
|
}
|
|
356
|
-
function
|
|
361
|
+
function T(p) {
|
|
357
362
|
const o = {
|
|
358
363
|
"f-rt-btn": !0,
|
|
359
364
|
"text-truncate": !0,
|
|
360
|
-
"btn-icontext": !!(
|
|
365
|
+
"btn-icontext": !!(p.icon && p.icon.trim()),
|
|
361
366
|
"d-block": !0
|
|
362
367
|
};
|
|
363
|
-
return
|
|
368
|
+
return re(o, p.dropdownClass);
|
|
364
369
|
}
|
|
365
|
-
let
|
|
366
|
-
const
|
|
367
|
-
let
|
|
368
|
-
function P(
|
|
369
|
-
|
|
370
|
-
}
|
|
371
|
-
function
|
|
372
|
-
|
|
373
|
-
const
|
|
370
|
+
let x;
|
|
371
|
+
const g = /* @__PURE__ */ new Map();
|
|
372
|
+
let E = "";
|
|
373
|
+
function P(p) {
|
|
374
|
+
E = "#" + p;
|
|
375
|
+
}
|
|
376
|
+
function u(p, o, F) {
|
|
377
|
+
p.stopPropagation();
|
|
378
|
+
const I = F ? F.id : "__top_item__";
|
|
374
379
|
if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded)) {
|
|
375
|
-
if (
|
|
376
|
-
const f =
|
|
377
|
-
f && (f.expanded = !1,
|
|
380
|
+
if (g.has(I) && g.get(I) !== o) {
|
|
381
|
+
const f = g.get(I);
|
|
382
|
+
f && (f.expanded = !1, g.delete(I));
|
|
378
383
|
}
|
|
379
|
-
|
|
384
|
+
g.set(I, o);
|
|
380
385
|
}
|
|
381
386
|
}
|
|
382
|
-
function l(
|
|
383
|
-
document.body.click(), o.enable && (
|
|
387
|
+
function l(p, o) {
|
|
388
|
+
document.body.click(), o.enable && (p.stopPropagation(), typeof o.onClick == "function" && o.onClick(p, o.id), e.emit("click", p, o.id));
|
|
384
389
|
}
|
|
385
|
-
function
|
|
386
|
-
const
|
|
387
|
-
|
|
390
|
+
function d(p, o) {
|
|
391
|
+
const F = p.target;
|
|
392
|
+
F.className.indexOf("dropdown-item") < 0 || (F.title = F.scrollWidth > F.clientWidth ? o : "");
|
|
388
393
|
}
|
|
389
|
-
function i(
|
|
394
|
+
function i(p, o, F) {
|
|
390
395
|
if (o.tipsEnable && o.tipsText) {
|
|
391
|
-
const
|
|
396
|
+
const I = Pe({
|
|
392
397
|
content: o.tipsText,
|
|
393
398
|
enable: o.tipsEnable
|
|
394
399
|
});
|
|
395
|
-
return
|
|
400
|
+
return Ee(L("li", {
|
|
396
401
|
class: c(o),
|
|
397
402
|
id: o.id,
|
|
398
|
-
key: o.id + "_" +
|
|
403
|
+
key: o.id + "_" + F,
|
|
399
404
|
onClick: (f) => l(f, o)
|
|
400
|
-
}, [
|
|
401
|
-
class:
|
|
402
|
-
}, [
|
|
403
|
-
class:
|
|
404
|
-
}, null), o.text])]), [[
|
|
405
|
+
}, [L("span", {
|
|
406
|
+
class: T(o)
|
|
407
|
+
}, [m.shouldShowIcon(o) && L("i", {
|
|
408
|
+
class: m.iconClass(o)
|
|
409
|
+
}, null), o.text])]), [[Me("tooltip"), I]]);
|
|
405
410
|
}
|
|
406
|
-
return
|
|
411
|
+
return L("li", {
|
|
407
412
|
class: c(o),
|
|
408
413
|
id: o.id,
|
|
409
|
-
onClick: (
|
|
410
|
-
}, [
|
|
411
|
-
class:
|
|
412
|
-
onMouseenter: (
|
|
413
|
-
}, [
|
|
414
|
-
class:
|
|
414
|
+
onClick: (I) => l(I, o)
|
|
415
|
+
}, [L("span", {
|
|
416
|
+
class: T(o),
|
|
417
|
+
onMouseenter: (I) => d(I, o.text)
|
|
418
|
+
}, [m.shouldShowIcon(o) && L("i", {
|
|
419
|
+
class: m.iconClass(o)
|
|
415
420
|
}, null), o.text])]);
|
|
416
421
|
}
|
|
417
|
-
function n(
|
|
418
|
-
o.enable && (typeof o.onClick == "function" &&
|
|
422
|
+
function n(p, o, F) {
|
|
423
|
+
o.enable && (typeof o.onClick == "function" && F.onClick(p, o.id), e.emit("click", p, o.id), F.split || u(p, o, F));
|
|
419
424
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
425
|
+
function S(p, o, F) {
|
|
426
|
+
p && p.stopPropagation(), u(p, o, F);
|
|
422
427
|
}
|
|
423
|
-
function B(
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
if (o.children && o.children.length && o.expanded &&
|
|
427
|
-
const
|
|
428
|
-
|
|
428
|
+
function B(p, o) {
|
|
429
|
+
p.stopPropagation();
|
|
430
|
+
const F = o.id;
|
|
431
|
+
if (o.children && o.children.length && o.expanded && g.has(F)) {
|
|
432
|
+
const I = g.get(F);
|
|
433
|
+
I && (I.expanded = !1, g.delete(F));
|
|
429
434
|
}
|
|
430
435
|
}
|
|
431
|
-
function
|
|
436
|
+
function G(p, o, F) {
|
|
432
437
|
if (o.tipsEnable && o.tipsText) {
|
|
433
|
-
const
|
|
438
|
+
const I = Pe({
|
|
434
439
|
content: o.tipsText,
|
|
435
440
|
enable: o.tipsEnable
|
|
436
441
|
});
|
|
437
|
-
return
|
|
442
|
+
return L("li", {
|
|
438
443
|
class: h(o),
|
|
439
444
|
id: o.id,
|
|
440
|
-
key: o.id + "_" +
|
|
441
|
-
onClick: (f) => n(f, o,
|
|
442
|
-
}, [
|
|
445
|
+
key: o.id + "_" + F,
|
|
446
|
+
onClick: (f) => n(f, o, p)
|
|
447
|
+
}, [Ee(L("span", {
|
|
443
448
|
class: r(o)
|
|
444
|
-
}, [
|
|
445
|
-
class:
|
|
446
|
-
}, null), o.text]), [[
|
|
449
|
+
}, [m.shouldShowIcon(o) && L("i", {
|
|
450
|
+
class: m.iconClass(o)
|
|
451
|
+
}, null), o.text]), [[Me("tooltip"), I]]), o.split && L("span", {
|
|
447
452
|
class: "dropdown-toggle dropdown-toggle-split f-rt-toggle",
|
|
448
|
-
onClick: (f) =>
|
|
449
|
-
}, null),
|
|
453
|
+
onClick: (f) => S(f, o, p)
|
|
454
|
+
}, null), x(o, o)]);
|
|
450
455
|
}
|
|
451
|
-
return
|
|
456
|
+
return L("li", {
|
|
452
457
|
class: h(o),
|
|
453
458
|
id: o.id,
|
|
454
|
-
onClick: (
|
|
455
|
-
onMouseenter: (
|
|
456
|
-
}, [
|
|
459
|
+
onClick: (I) => n(I, o, p),
|
|
460
|
+
onMouseenter: (I) => d(I, o.text)
|
|
461
|
+
}, [L("span", {
|
|
457
462
|
class: r(o)
|
|
458
|
-
}, [
|
|
459
|
-
class:
|
|
460
|
-
}, null), o.text]), o.split &&
|
|
463
|
+
}, [m.shouldShowIcon(o) && L("i", {
|
|
464
|
+
class: m.iconClass(o)
|
|
465
|
+
}, null), o.text]), o.split && L("span", {
|
|
461
466
|
class: "dropdown-toggle dropdown-toggle-split f-rt-toggle",
|
|
462
|
-
onClick: (
|
|
463
|
-
}, null),
|
|
467
|
+
onClick: (I) => S(I, o, p)
|
|
468
|
+
}, null), x(o, o)]);
|
|
464
469
|
}
|
|
465
|
-
function j(
|
|
466
|
-
return
|
|
470
|
+
function j(p) {
|
|
471
|
+
return p.children.filter((o) => o.visible).map((o, F) => o.children && o.children.length ? G(p, o, F) : i(p, o, F));
|
|
467
472
|
}
|
|
468
|
-
function
|
|
469
|
-
if (!
|
|
473
|
+
function D(p, o) {
|
|
474
|
+
if (!p)
|
|
470
475
|
return 1080;
|
|
471
|
-
let
|
|
472
|
-
const
|
|
473
|
-
for (let f = 0; f <
|
|
474
|
-
if (
|
|
475
|
-
|
|
476
|
+
let F = -1;
|
|
477
|
+
const I = p.children.length;
|
|
478
|
+
for (let f = 0; f < I; f++)
|
|
479
|
+
if (p.children[f].id === o) {
|
|
480
|
+
F = f;
|
|
476
481
|
break;
|
|
477
482
|
}
|
|
478
|
-
return 1080 +
|
|
483
|
+
return 1080 + I - F;
|
|
479
484
|
}
|
|
480
|
-
function
|
|
481
|
-
var
|
|
482
|
-
const
|
|
483
|
-
display:
|
|
485
|
+
function b(p, o, F) {
|
|
486
|
+
var W, Y;
|
|
487
|
+
const I = {
|
|
488
|
+
display: p.expanded ? "block" : "none",
|
|
484
489
|
position: "fixed",
|
|
485
490
|
maxWidth: "300px",
|
|
486
491
|
minWidth: "120px",
|
|
@@ -488,92 +493,95 @@ function xn(e, b) {
|
|
|
488
493
|
// 先用固定zIndex,后期会统一调用动态的zIndex
|
|
489
494
|
overflowY: "auto",
|
|
490
495
|
maxHeight: "none"
|
|
491
|
-
}, f = document.querySelector(
|
|
496
|
+
}, f = document.querySelector(E);
|
|
492
497
|
if (!f)
|
|
493
|
-
return
|
|
494
|
-
const
|
|
495
|
-
let s = (
|
|
498
|
+
return I;
|
|
499
|
+
const y = Wt();
|
|
500
|
+
let s = (Y = (W = y == null ? void 0 : y.exposed) == null ? void 0 : W.elementRef.value) == null ? void 0 : Y.querySelector("#" + o);
|
|
496
501
|
if (s || (s = f == null ? void 0 : f.querySelector("#" + o)), !s)
|
|
497
|
-
return
|
|
498
|
-
const
|
|
499
|
-
if (s &&
|
|
502
|
+
return I;
|
|
503
|
+
const v = window.innerWidth, k = window.innerHeight, M = s == null ? void 0 : s.getClientRects();
|
|
504
|
+
if (s && M && M.length) {
|
|
500
505
|
const {
|
|
501
|
-
top:
|
|
502
|
-
width:
|
|
503
|
-
left:
|
|
504
|
-
right:
|
|
505
|
-
height:
|
|
506
|
-
} =
|
|
507
|
-
|
|
508
|
-
const
|
|
509
|
-
if (
|
|
510
|
-
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
if (
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
|
|
506
|
+
top: X,
|
|
507
|
+
width: $,
|
|
508
|
+
left: N,
|
|
509
|
+
right: V,
|
|
510
|
+
height: U
|
|
511
|
+
} = M[0], H = Math.ceil(U + X);
|
|
512
|
+
I.top = `${H}px`, I.left = `${N}px`;
|
|
513
|
+
const q = p.id + "_menu", te = (s == null ? void 0 : s.querySelector("#" + q)) || (f == null ? void 0 : f.querySelector("#" + q)) || null;
|
|
514
|
+
if (te) {
|
|
515
|
+
te.style.visibility = "hidden", te.style.display = "block";
|
|
516
|
+
const ae = te.offsetHeight;
|
|
517
|
+
I.zIndex = p.expanded ? D(f, q) : 1080, I.display === "block" && (te.style.display = "block");
|
|
518
|
+
const w = te.getBoundingClientRect();
|
|
519
|
+
if (F) {
|
|
520
|
+
I.top = `${X - 6}px`;
|
|
521
|
+
const C = Math.ceil($ + N);
|
|
522
|
+
I.left = `${C}px`;
|
|
518
523
|
}
|
|
519
|
-
|
|
524
|
+
v - N - $ < w.width && (I.left = `${(F ? N : V) - w.width}px`), k - X - U < ae ? X > ae ? (I.top = `${X - ae - 6}px`, I.maxHeight = `${X - 16}px`) : (I.maxHeight = `${k - H}px`, X > k - X - U && (I.top = "10px", I.maxHeight = `${X - 16}px`)) : I.maxHeight = `${k - H}px`, te.style.visibility = "visible";
|
|
520
525
|
}
|
|
521
526
|
}
|
|
522
|
-
return
|
|
527
|
+
return I;
|
|
523
528
|
}
|
|
524
|
-
|
|
525
|
-
const
|
|
526
|
-
return
|
|
527
|
-
to:
|
|
528
|
-
disabled: !
|
|
529
|
+
x = function(p, o) {
|
|
530
|
+
const F = o ? o.id : p.id;
|
|
531
|
+
return L(Ft, {
|
|
532
|
+
to: E,
|
|
533
|
+
disabled: !p.expanded
|
|
529
534
|
}, {
|
|
530
|
-
default: () => [
|
|
531
|
-
class: t(
|
|
532
|
-
style:
|
|
533
|
-
id:
|
|
534
|
-
onWheel: (
|
|
535
|
-
}, [j(
|
|
535
|
+
default: () => [L("ul", {
|
|
536
|
+
class: t(p),
|
|
537
|
+
style: b(p, F, o),
|
|
538
|
+
id: p.id + "_menu",
|
|
539
|
+
onWheel: (I) => B(I, p)
|
|
540
|
+
}, [j(p)])]
|
|
536
541
|
});
|
|
537
542
|
};
|
|
538
|
-
function
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}),
|
|
543
|
+
function O() {
|
|
544
|
+
g.forEach((p) => {
|
|
545
|
+
p.expanded = !1;
|
|
546
|
+
}), g.clear();
|
|
542
547
|
}
|
|
543
548
|
return {
|
|
544
|
-
renderDropdownMenu:
|
|
545
|
-
clearAllDropDownMenu:
|
|
549
|
+
renderDropdownMenu: x,
|
|
550
|
+
clearAllDropDownMenu: O,
|
|
546
551
|
updateContainerId: P
|
|
547
552
|
};
|
|
548
553
|
}
|
|
549
|
-
function
|
|
550
|
-
const h =
|
|
554
|
+
function Dn(e, m, t) {
|
|
555
|
+
const h = oe(e.alignment), {
|
|
551
556
|
renderDropdownMenu: c,
|
|
552
557
|
clearAllDropDownMenu: r,
|
|
553
|
-
updateContainerId:
|
|
554
|
-
} =
|
|
555
|
-
function
|
|
556
|
-
const
|
|
558
|
+
updateContainerId: T
|
|
559
|
+
} = Tn(m, t);
|
|
560
|
+
function x(n) {
|
|
561
|
+
const S = {
|
|
557
562
|
"btn-group": !0,
|
|
558
563
|
"f-rt-dropdown": !0,
|
|
559
564
|
"f-btn-ml": h.value === "right" || h.value === "center",
|
|
560
565
|
"f-btn-mr": h.value === "left"
|
|
561
566
|
};
|
|
562
|
-
return
|
|
567
|
+
return re(S, n.dropdownClass);
|
|
563
568
|
}
|
|
564
|
-
function
|
|
565
|
-
const
|
|
569
|
+
function g(n) {
|
|
570
|
+
const S = {
|
|
566
571
|
btn: !0,
|
|
567
572
|
disabled: !n.enable,
|
|
568
573
|
"f-rt-btn": !0,
|
|
569
|
-
"btn-icontext": !!(n.icon && n.icon.trim()),
|
|
574
|
+
"btn-icontext": !!(n.icon && n.icon.trim()) && n.text,
|
|
575
|
+
// 图标+文本
|
|
570
576
|
"f-rt-toggle": !n.split,
|
|
571
|
-
"dropdown-toggle": !n.split
|
|
577
|
+
"dropdown-toggle": !n.split,
|
|
578
|
+
"f-btn-icon": n.icon && !n.text
|
|
579
|
+
// 只有图标
|
|
572
580
|
};
|
|
573
|
-
return
|
|
581
|
+
return re(S, n.class);
|
|
574
582
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
583
|
+
function E(n) {
|
|
584
|
+
return re({
|
|
577
585
|
btn: !0,
|
|
578
586
|
"dropdown-toggle": !0,
|
|
579
587
|
"dropdown-toggle-split": !0
|
|
@@ -587,98 +595,98 @@ function Cn(e, b, t) {
|
|
|
587
595
|
"border-radius": "6px"
|
|
588
596
|
};
|
|
589
597
|
}
|
|
590
|
-
function
|
|
598
|
+
function u(n, S) {
|
|
591
599
|
n.stopPropagation();
|
|
592
|
-
const B =
|
|
593
|
-
document.body.click(), typeof
|
|
600
|
+
const B = S.expanded;
|
|
601
|
+
document.body.click(), typeof S.onClick == "function" && S.onClick(n, S.id), m.emit("click", n, S.id), S.split || (S.expanded = !B);
|
|
594
602
|
}
|
|
595
|
-
function l(n,
|
|
603
|
+
function l(n, S) {
|
|
596
604
|
n.stopPropagation();
|
|
597
|
-
const B =
|
|
598
|
-
document.body.click(),
|
|
605
|
+
const B = S.expanded;
|
|
606
|
+
document.body.click(), S.expanded = !B;
|
|
599
607
|
}
|
|
600
|
-
function
|
|
608
|
+
function d(n, S = !0) {
|
|
601
609
|
if (n.tipsEnable && n.tipsText) {
|
|
602
|
-
const B =
|
|
610
|
+
const B = Pe({
|
|
603
611
|
content: n.tipsText,
|
|
604
612
|
enable: n.tipsEnable
|
|
605
613
|
});
|
|
606
|
-
return
|
|
614
|
+
return L("div", {
|
|
607
615
|
id: n.id,
|
|
608
|
-
class:
|
|
609
|
-
}, [
|
|
610
|
-
class:
|
|
616
|
+
class: x(n)
|
|
617
|
+
}, [Ee(L("div", {
|
|
618
|
+
class: g(n),
|
|
611
619
|
style: P(n),
|
|
612
|
-
onClick: (
|
|
613
|
-
}, [t.shouldShowIcon(n) &&
|
|
620
|
+
onClick: (G) => n.enable && u(G, n)
|
|
621
|
+
}, [t.shouldShowIcon(n) && L("i", {
|
|
614
622
|
class: t.iconClass(n)
|
|
615
|
-
}, null),
|
|
616
|
-
class:
|
|
623
|
+
}, null), n.text && L("span", null, [n.text])]), [[Me("tooltip"), B]]), n.split && L("button", {
|
|
624
|
+
class: E(n),
|
|
617
625
|
style: "border-radius:0 6px 6px 0;",
|
|
618
|
-
onClick: (
|
|
619
|
-
}, null),
|
|
626
|
+
onClick: (G) => l(G, n)
|
|
627
|
+
}, null), S && c(n)]);
|
|
620
628
|
}
|
|
621
|
-
return
|
|
629
|
+
return L("div", {
|
|
622
630
|
id: n.id,
|
|
623
|
-
class:
|
|
624
|
-
}, [
|
|
625
|
-
class:
|
|
631
|
+
class: x(n)
|
|
632
|
+
}, [L("div", {
|
|
633
|
+
class: g(n),
|
|
626
634
|
style: P(n),
|
|
627
|
-
onClick: (B) => n.enable &&
|
|
628
|
-
}, [t.shouldShowIcon(n) &&
|
|
635
|
+
onClick: (B) => n.enable && u(B, n)
|
|
636
|
+
}, [t.shouldShowIcon(n) && L("i", {
|
|
629
637
|
class: t.iconClass(n)
|
|
630
|
-
}, null),
|
|
631
|
-
class:
|
|
638
|
+
}, null), n.text && L("span", null, [n.text])]), n.split && L("button", {
|
|
639
|
+
class: E(n),
|
|
632
640
|
style: "border-radius:0 6px 6px 0;",
|
|
633
641
|
onClick: (B) => l(B, n)
|
|
634
|
-
}, null),
|
|
642
|
+
}, null), S && c(n)]);
|
|
635
643
|
}
|
|
636
644
|
function i() {
|
|
637
645
|
r();
|
|
638
646
|
}
|
|
639
647
|
return {
|
|
640
|
-
renderToolbarDropdown:
|
|
648
|
+
renderToolbarDropdown: d,
|
|
641
649
|
clearAllDropDown: i,
|
|
642
|
-
updateContainerId:
|
|
650
|
+
updateContainerId: T
|
|
643
651
|
};
|
|
644
652
|
}
|
|
645
653
|
const {
|
|
646
|
-
buildResponseToolbarItems:
|
|
647
|
-
} =
|
|
654
|
+
buildResponseToolbarItems: ot
|
|
655
|
+
} = gt(), Sn = /* @__PURE__ */ ze({
|
|
648
656
|
name: "FResponseToolbar",
|
|
649
|
-
props:
|
|
657
|
+
props: wn,
|
|
650
658
|
emits: ["click"],
|
|
651
|
-
setup(e,
|
|
652
|
-
const t =
|
|
659
|
+
setup(e, m) {
|
|
660
|
+
const t = oe(ot(e.items)), h = oe(), c = oe(), r = oe(), T = At(), x = {
|
|
653
661
|
id: "__more_buttons__",
|
|
654
|
-
text:
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
},
|
|
659
|
-
let
|
|
662
|
+
text: T ? "" : Gt.getLocaleValue("responseToolbar.more"),
|
|
663
|
+
icon: T ? "f-icon-more-horizontal" : ""
|
|
664
|
+
}, g = oe(new Ie(x)), E = Object.assign({}, x, {
|
|
665
|
+
id: x.id + "width"
|
|
666
|
+
}), P = oe(-1), u = Ye();
|
|
667
|
+
let l = !1;
|
|
660
668
|
const {
|
|
661
|
-
guid:
|
|
662
|
-
uuid:
|
|
663
|
-
} =
|
|
664
|
-
renderToolbarDropdown:
|
|
665
|
-
clearAllDropDown:
|
|
666
|
-
updateContainerId:
|
|
667
|
-
} =
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
function
|
|
671
|
-
e.visible && !
|
|
669
|
+
guid: d,
|
|
670
|
+
uuid: i
|
|
671
|
+
} = _t(), n = e.id ? e.id : "toolbar-" + d(), S = oe(), B = "dropdown-container-" + n + "-" + i(4), {
|
|
672
|
+
renderToolbarDropdown: G,
|
|
673
|
+
clearAllDropDown: j,
|
|
674
|
+
updateContainerId: D
|
|
675
|
+
} = Dn(e, m, u);
|
|
676
|
+
D(B);
|
|
677
|
+
const b = fe(() => g.value.children.length > 0), O = fe(() => e.visible ? g.value.children.length > 0 ? !0 : t.value.findIndex((w) => w.shown && w.children && w.children.length > 0) > -1 : !1);
|
|
678
|
+
function p() {
|
|
679
|
+
e.visible && !S.value && document && (S.value = document.createElement("div"), S.value.id = B, document.body.appendChild(S.value));
|
|
672
680
|
}
|
|
673
|
-
|
|
674
|
-
function
|
|
675
|
-
|
|
681
|
+
p();
|
|
682
|
+
function o() {
|
|
683
|
+
S.value && document.body.contains(S.value) && (document.body.removeChild(S.value), S.value = null);
|
|
676
684
|
}
|
|
677
|
-
|
|
678
|
-
|
|
685
|
+
ke(O, (w, C) => {
|
|
686
|
+
w ? p() : o();
|
|
679
687
|
});
|
|
680
|
-
const
|
|
681
|
-
const
|
|
688
|
+
const F = fe(() => {
|
|
689
|
+
const w = {
|
|
682
690
|
"f-toolbar": !0,
|
|
683
691
|
"f-response-toolbar": !0,
|
|
684
692
|
"position-relative": !0,
|
|
@@ -686,8 +694,8 @@ const {
|
|
|
686
694
|
"f-response-toolbar-lg": e.buttonSize === "lg",
|
|
687
695
|
"d-none": !e.visible
|
|
688
696
|
};
|
|
689
|
-
return
|
|
690
|
-
}),
|
|
697
|
+
return re(w, e.customClass);
|
|
698
|
+
}), I = fe(() => ({
|
|
691
699
|
"w-100": !0,
|
|
692
700
|
"d-flex": !0,
|
|
693
701
|
"flex-nowrap": !0,
|
|
@@ -695,196 +703,211 @@ const {
|
|
|
695
703
|
"justify-content-start": e.alignment === "left",
|
|
696
704
|
"justify-content-center": e.alignment === "center"
|
|
697
705
|
}));
|
|
698
|
-
function
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
}),
|
|
706
|
+
function f(w) {
|
|
707
|
+
w && w.target.closest("ul.dropdown-menu") && w.type === "wheel" || (t.value.filter((C) => C.children && C.children.length > 0).forEach((C) => {
|
|
708
|
+
C.expanded = !1;
|
|
709
|
+
}), g.value.expanded = !1, j());
|
|
702
710
|
}
|
|
703
|
-
function
|
|
704
|
-
var
|
|
705
|
-
const
|
|
711
|
+
function y(w, C) {
|
|
712
|
+
var ee;
|
|
713
|
+
const _ = {
|
|
706
714
|
btn: !0,
|
|
707
715
|
"f-rt-btn": !0,
|
|
708
|
-
"f-btn-ml": e.alignment === "right" ||
|
|
716
|
+
"f-btn-ml": e.alignment === "right" || C > 0 && e.alignment === "center",
|
|
709
717
|
"f-btn-mr": e.alignment === "left",
|
|
710
|
-
"btn-icontext": !!(
|
|
711
|
-
},
|
|
712
|
-
return
|
|
718
|
+
"btn-icontext": !!(w.icon && w.icon.trim())
|
|
719
|
+
}, K = ((ee = w == null ? void 0 : w.appearance) == null ? void 0 : ee.class) || w.class || "btn-secondary";
|
|
720
|
+
return re(_, K);
|
|
713
721
|
}
|
|
714
|
-
function
|
|
715
|
-
document.body.click(), typeof
|
|
722
|
+
function s(w, C) {
|
|
723
|
+
document.body.click(), typeof C.onClick == "function" && C.onClick(w, C.id), m.emit("click", w, C.id);
|
|
716
724
|
}
|
|
717
|
-
function
|
|
718
|
-
if (
|
|
719
|
-
const
|
|
720
|
-
content:
|
|
721
|
-
enable:
|
|
725
|
+
function v(w, C) {
|
|
726
|
+
if (w.tipsEnable && w.tipsText) {
|
|
727
|
+
const _ = Pe({
|
|
728
|
+
content: w.tipsText,
|
|
729
|
+
enable: w.tipsEnable
|
|
722
730
|
});
|
|
723
|
-
return
|
|
731
|
+
return Ee(L("button", {
|
|
724
732
|
type: "button",
|
|
725
|
-
class:
|
|
726
|
-
id:
|
|
727
|
-
disabled: !
|
|
728
|
-
onClick: (
|
|
729
|
-
}, [
|
|
730
|
-
class:
|
|
731
|
-
}, null),
|
|
733
|
+
class: y(w, C),
|
|
734
|
+
id: w.id,
|
|
735
|
+
disabled: !w.enable,
|
|
736
|
+
onClick: (K) => s(K, w)
|
|
737
|
+
}, [u.shouldShowIcon(w) && L("i", {
|
|
738
|
+
class: u.iconClass(w)
|
|
739
|
+
}, null), w.text]), [[Me("tooltip"), _]]);
|
|
732
740
|
}
|
|
733
|
-
return
|
|
741
|
+
return L("button", {
|
|
734
742
|
type: "button",
|
|
735
|
-
class:
|
|
736
|
-
id:
|
|
737
|
-
disabled: !
|
|
738
|
-
onClick: (
|
|
739
|
-
}, [
|
|
740
|
-
class:
|
|
741
|
-
}, null),
|
|
743
|
+
class: y(w, C),
|
|
744
|
+
id: w.id,
|
|
745
|
+
disabled: !w.enable,
|
|
746
|
+
onClick: (_) => s(_, w)
|
|
747
|
+
}, [u.shouldShowIcon(w) && L("i", {
|
|
748
|
+
class: u.iconClass(w)
|
|
749
|
+
}, null), w.text]);
|
|
742
750
|
}
|
|
743
|
-
let
|
|
744
|
-
function
|
|
745
|
-
const
|
|
746
|
-
return (
|
|
751
|
+
let k = /* @__PURE__ */ new Map(), M = [];
|
|
752
|
+
function W(w) {
|
|
753
|
+
const C = Math.ceil(parseFloat(getComputedStyle(w).getPropertyValue("margin-left"))), _ = Math.ceil(parseFloat(getComputedStyle(w).getPropertyValue("margin-right")));
|
|
754
|
+
return (C || 0) + w.getBoundingClientRect().width + (_ || 0);
|
|
747
755
|
}
|
|
748
|
-
function
|
|
749
|
-
if (
|
|
750
|
-
let
|
|
751
|
-
for (;
|
|
752
|
-
const
|
|
753
|
-
if (
|
|
756
|
+
function Y(w, C, _) {
|
|
757
|
+
if (C < P.value) {
|
|
758
|
+
let K = _ - 1;
|
|
759
|
+
for (; K >= 0; K--) {
|
|
760
|
+
const ee = w[K], ne = W(ee);
|
|
761
|
+
if (C += ne, C >= P.value)
|
|
754
762
|
break;
|
|
755
763
|
}
|
|
756
|
-
|
|
764
|
+
_ = K;
|
|
757
765
|
}
|
|
758
|
-
return
|
|
759
|
-
start:
|
|
760
|
-
space:
|
|
766
|
+
return C -= P.value, _ = _ < 0 ? 0 : _, {
|
|
767
|
+
start: _,
|
|
768
|
+
space: C
|
|
761
769
|
};
|
|
762
770
|
}
|
|
763
|
-
function
|
|
764
|
-
const
|
|
765
|
-
let
|
|
766
|
-
const
|
|
767
|
-
let
|
|
768
|
-
for (;
|
|
769
|
-
const
|
|
770
|
-
if (
|
|
771
|
-
|
|
771
|
+
function X(w) {
|
|
772
|
+
const C = r.value;
|
|
773
|
+
let _ = w;
|
|
774
|
+
const ee = Array.from(C.children).filter((ce) => ce.id !== "__more_buttons__"), ne = ee.length;
|
|
775
|
+
let ye = !1, se = 0;
|
|
776
|
+
for (; se < ne; se++) {
|
|
777
|
+
const ce = ee[se], we = W(ce);
|
|
778
|
+
if (we <= _)
|
|
779
|
+
_ -= we;
|
|
772
780
|
else {
|
|
773
|
-
const
|
|
774
|
-
|
|
781
|
+
const he = Y(ee, _, se);
|
|
782
|
+
se = he.start, _ = he.space, ye = !0;
|
|
775
783
|
break;
|
|
776
784
|
}
|
|
777
785
|
}
|
|
778
|
-
if (!
|
|
779
|
-
const
|
|
780
|
-
|
|
786
|
+
if (!ye && M.length > 0) {
|
|
787
|
+
const ce = Y(ee, _, se);
|
|
788
|
+
se = ce.start, _ = ce.space;
|
|
781
789
|
}
|
|
782
|
-
const
|
|
783
|
-
for (;
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
const
|
|
787
|
-
|
|
788
|
-
id:
|
|
789
|
-
width:
|
|
790
|
+
const De = M.length > 0;
|
|
791
|
+
for (; se < ne; se++) {
|
|
792
|
+
const ce = ee[se], we = W(ce);
|
|
793
|
+
k.set(ce.id, !0);
|
|
794
|
+
const he = M.find((Oe) => Oe.id === ce.id);
|
|
795
|
+
he ? he.width = we : M[De ? "unshift" : "push"]({
|
|
796
|
+
id: ce.id,
|
|
797
|
+
width: we
|
|
790
798
|
});
|
|
791
799
|
}
|
|
792
|
-
return
|
|
800
|
+
return _;
|
|
801
|
+
}
|
|
802
|
+
function $() {
|
|
803
|
+
k = /* @__PURE__ */ new Map(), M = [];
|
|
793
804
|
}
|
|
794
|
-
function
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
805
|
+
function N(w = !1) {
|
|
806
|
+
const C = Object.assign({}, g.value);
|
|
807
|
+
C.children = [];
|
|
808
|
+
const _ = new Ie(C), K = t.value.reduce((ee, ne) => {
|
|
809
|
+
const ye = e.items.find((se) => se.id === ne.id);
|
|
810
|
+
return w ? (_.children.push(ne), ne.shown = !1, ee) : (k.has(ne.id) ? (_.children.push(ne), ne.shown = !1) : ne.shown = ye.visible !== !1, ee.push(ne), ee);
|
|
811
|
+
}, []);
|
|
812
|
+
g.value = _, t.value = K;
|
|
813
|
+
}
|
|
814
|
+
function V(w) {
|
|
815
|
+
if (T) {
|
|
816
|
+
$(), N(!0);
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
let C = X(w);
|
|
820
|
+
if (M.length) {
|
|
821
|
+
let _ = 0;
|
|
822
|
+
for (; _ < M.length; _++) {
|
|
823
|
+
const K = e.items.find((ee) => ee.id === M[_].id);
|
|
824
|
+
if (K && K.visible !== !1) {
|
|
825
|
+
const ee = M[_].width;
|
|
826
|
+
if (C >= ee || _ === M.length - 1 && C + P.value >= ee)
|
|
827
|
+
C -= ee;
|
|
804
828
|
else
|
|
805
829
|
break;
|
|
806
830
|
}
|
|
807
831
|
}
|
|
808
|
-
for (let
|
|
809
|
-
|
|
810
|
-
|
|
832
|
+
for (let K = 0; K < _; K++)
|
|
833
|
+
k.delete(M[K].id);
|
|
834
|
+
M.splice(0, _ - 1);
|
|
811
835
|
}
|
|
812
|
-
|
|
813
|
-
G.children = [];
|
|
814
|
-
const O = new Ie(G), X = t.value.reduce((ne, oe) => {
|
|
815
|
-
const te = e.items.find((ye) => ye.id === oe.id);
|
|
816
|
-
return p.has(oe.id) ? (O.children.push(oe), oe.shown = !1) : oe.shown = te.visible !== !1, ne.push(oe), ne;
|
|
817
|
-
}, []);
|
|
818
|
-
m.value = O, t.value = X;
|
|
836
|
+
N();
|
|
819
837
|
}
|
|
820
|
-
function
|
|
821
|
-
if (
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
function F() {
|
|
828
|
-
return S.value < 0 && N("div", {
|
|
829
|
-
style: "position:absolute;top:-30px;visibility:hidden;"
|
|
830
|
-
}, [B(new Ie(v))]);
|
|
838
|
+
function U() {
|
|
839
|
+
if (h.value && P.value < 0) {
|
|
840
|
+
const w = h.value.querySelector("#" + E.id);
|
|
841
|
+
if (!w)
|
|
842
|
+
return;
|
|
843
|
+
w.getBoundingClientRect().width === 0 ? P.value = -1 : P.value = W(w);
|
|
844
|
+
}
|
|
831
845
|
}
|
|
832
|
-
|
|
833
|
-
if (
|
|
834
|
-
|
|
835
|
-
|
|
846
|
+
function H(w = -1) {
|
|
847
|
+
if (w === 0 || !r.value || !c.value)
|
|
848
|
+
return;
|
|
849
|
+
w < 0 && (w = c.value.getBoundingClientRect().width);
|
|
850
|
+
const C = r.value.getBoundingClientRect().width;
|
|
851
|
+
if (T) {
|
|
852
|
+
V(w), f();
|
|
853
|
+
return;
|
|
836
854
|
}
|
|
837
|
-
|
|
838
|
-
function V() {
|
|
839
|
-
p = /* @__PURE__ */ new Map(), C = [];
|
|
855
|
+
(w >= 0 && w < C || M.length) && (U(), V(w), f());
|
|
840
856
|
}
|
|
841
|
-
function
|
|
842
|
-
|
|
857
|
+
function q() {
|
|
858
|
+
return P.value < 0 && L("div", {
|
|
859
|
+
style: "position:fixed;top:-40px;visibility:hidden;"
|
|
860
|
+
}, [G(new Ie(E))]);
|
|
843
861
|
}
|
|
844
|
-
|
|
845
|
-
if (
|
|
846
|
-
|
|
847
|
-
|
|
862
|
+
const te = new ResizeObserver((w) => {
|
|
863
|
+
if (w.length) {
|
|
864
|
+
if (T)
|
|
865
|
+
return;
|
|
866
|
+
const _ = w[0].contentRect.width;
|
|
867
|
+
H(_);
|
|
848
868
|
}
|
|
869
|
+
});
|
|
870
|
+
function ae() {
|
|
871
|
+
c.value && !l && (te.observe(c.value), l = !0);
|
|
849
872
|
}
|
|
850
|
-
return
|
|
851
|
-
|
|
852
|
-
}),
|
|
853
|
-
|
|
854
|
-
}),
|
|
855
|
-
t.value =
|
|
856
|
-
|
|
873
|
+
return Ge(() => {
|
|
874
|
+
U(), H(), ae(), document.body.addEventListener("click", f), document.body.addEventListener("wheel", f);
|
|
875
|
+
}), ut(() => {
|
|
876
|
+
te.disconnect(), o(), document.body.removeEventListener("click", f), document.body.removeEventListener("wheel", f);
|
|
877
|
+
}), ke(() => e.items, () => {
|
|
878
|
+
t.value = ot(e.items), g.value.children = [], Te(() => {
|
|
879
|
+
U(), $(), H();
|
|
857
880
|
});
|
|
858
881
|
}, {
|
|
859
882
|
deep: !0
|
|
860
|
-
}),
|
|
861
|
-
|
|
862
|
-
|
|
883
|
+
}), ke(() => e.visible, (w) => {
|
|
884
|
+
w && Te(() => {
|
|
885
|
+
U(), H(), ae();
|
|
863
886
|
});
|
|
864
|
-
}),
|
|
887
|
+
}), m.expose({
|
|
865
888
|
elementRef: h
|
|
866
|
-
}), () =>
|
|
867
|
-
class:
|
|
868
|
-
id:
|
|
889
|
+
}), () => L("div", {
|
|
890
|
+
class: F.value,
|
|
891
|
+
id: n,
|
|
869
892
|
ref: h,
|
|
870
893
|
style: {
|
|
871
|
-
"overflow-y":
|
|
894
|
+
"overflow-y": P.value < 0 ? "hidden" : "initial"
|
|
872
895
|
}
|
|
873
|
-
}, [e.visible &&
|
|
896
|
+
}, [e.visible && q(), e.visible && L("div", {
|
|
874
897
|
ref: c,
|
|
875
|
-
class:
|
|
876
|
-
}, [
|
|
898
|
+
class: I.value
|
|
899
|
+
}, [L("div", {
|
|
877
900
|
ref: r,
|
|
878
901
|
class: "d-inline-block f-response-content",
|
|
879
902
|
style: "white-space: nowrap;"
|
|
880
|
-
}, [t.value.filter((
|
|
903
|
+
}, [t.value.filter((w) => w.shown).map((w, C) => w.children && w.children.length > 0 ? G(w) : v(w, C)), b.value && G(g.value)])])]);
|
|
881
904
|
}
|
|
882
905
|
});
|
|
883
|
-
class
|
|
906
|
+
class kn extends dt {
|
|
884
907
|
constructor(t, h, c = "response-toolbar") {
|
|
885
908
|
super(t, h);
|
|
886
909
|
// 有三类值 response-toolbar、section-toolbar、tab-toolbar
|
|
887
|
-
|
|
910
|
+
J(this, "toolbarType", "response-toolbar");
|
|
888
911
|
this.toolbarType = c;
|
|
889
912
|
}
|
|
890
913
|
getPropertyConfig(t) {
|
|
@@ -938,51 +961,61 @@ class Dn extends ut {
|
|
|
938
961
|
};
|
|
939
962
|
}
|
|
940
963
|
}
|
|
941
|
-
function In(e,
|
|
964
|
+
function In(e, m, t) {
|
|
942
965
|
const h = e.schema;
|
|
943
966
|
function c() {
|
|
944
|
-
var n;
|
|
967
|
+
var n, S, B;
|
|
945
968
|
let i = ((n = e.parent) == null ? void 0 : n.schema.type) || "";
|
|
946
|
-
["page-header", "tabs", "section"].findIndex((
|
|
969
|
+
i === "drawer" && (((S = e.parent) == null ? void 0 : S.schema.headerToolbar.id) === h.id ? i = "drawer-header-toolbar" : ((B = e.parent) == null ? void 0 : B.schema.footerToolbar.id) === h.id && (i = "drawer-footer-toolbar")), ["page-header", "tabs", "section", "drawer-header-toolbar", "drawer-footer-toolbar"].findIndex((G) => G === i) === -1 && (i = ""), t.toolbarPosition = i;
|
|
947
970
|
}
|
|
948
971
|
c();
|
|
949
972
|
function r(i) {
|
|
950
973
|
return !1;
|
|
951
974
|
}
|
|
952
|
-
function
|
|
975
|
+
function T(i, n) {
|
|
953
976
|
return n.text = i.label, n;
|
|
954
977
|
}
|
|
955
|
-
function
|
|
978
|
+
function x() {
|
|
956
979
|
return !1;
|
|
957
980
|
}
|
|
958
|
-
function
|
|
981
|
+
function g() {
|
|
959
982
|
return !1;
|
|
960
983
|
}
|
|
961
|
-
function
|
|
984
|
+
function E() {
|
|
962
985
|
return !1;
|
|
963
986
|
}
|
|
964
987
|
function P() {
|
|
965
988
|
return !0;
|
|
966
989
|
}
|
|
967
|
-
function
|
|
968
|
-
return new
|
|
990
|
+
function u(i) {
|
|
991
|
+
return new kn(i, m, h.type).getPropertyConfig(h);
|
|
969
992
|
}
|
|
970
993
|
function l(i) {
|
|
971
|
-
var
|
|
994
|
+
var G;
|
|
972
995
|
i && (i.stopPropagation(), i.preventDefault());
|
|
973
996
|
const { schema: n } = e;
|
|
974
997
|
n.buttons || (n.buttons = []);
|
|
975
|
-
let
|
|
998
|
+
let S = "";
|
|
976
999
|
if (n.type)
|
|
977
|
-
|
|
978
|
-
else
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1000
|
+
S = n.type + "-item";
|
|
1001
|
+
else
|
|
1002
|
+
switch ((G = e.parent) == null ? void 0 : G.schema.type) {
|
|
1003
|
+
case "tabs":
|
|
1004
|
+
S = "tab-toolbar-item";
|
|
1005
|
+
break;
|
|
1006
|
+
case "section":
|
|
1007
|
+
S = "section-toolbar-item";
|
|
1008
|
+
break;
|
|
1009
|
+
case "drawer":
|
|
1010
|
+
S = "drawer-toolbar-item";
|
|
1011
|
+
break;
|
|
1012
|
+
default:
|
|
1013
|
+
S = "response-toolbar-item";
|
|
1014
|
+
}
|
|
1015
|
+
const B = at(S);
|
|
983
1016
|
B.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, n.buttons.push(B), t.updateToolbarItems(), t.changeSelectedId("");
|
|
984
1017
|
}
|
|
985
|
-
function
|
|
1018
|
+
function d() {
|
|
986
1019
|
return [
|
|
987
1020
|
{
|
|
988
1021
|
id: "appendItem",
|
|
@@ -995,292 +1028,292 @@ function In(e, b, t) {
|
|
|
995
1028
|
}
|
|
996
1029
|
return {
|
|
997
1030
|
canAccepts: r,
|
|
998
|
-
checkCanAddComponent:
|
|
999
|
-
checkCanDeleteComponent:
|
|
1000
|
-
checkCanMoveComponent:
|
|
1031
|
+
checkCanAddComponent: E,
|
|
1032
|
+
checkCanDeleteComponent: g,
|
|
1033
|
+
checkCanMoveComponent: x,
|
|
1001
1034
|
hideNestedPaddingInDesginerView: P,
|
|
1002
|
-
onResolveNewComponentSchema:
|
|
1003
|
-
getPropsConfig:
|
|
1004
|
-
getCustomButtons:
|
|
1035
|
+
onResolveNewComponentSchema: T,
|
|
1036
|
+
getPropsConfig: u,
|
|
1037
|
+
getCustomButtons: d
|
|
1005
1038
|
};
|
|
1006
1039
|
}
|
|
1007
|
-
var
|
|
1008
|
-
function
|
|
1040
|
+
var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1041
|
+
function Pn(e) {
|
|
1009
1042
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1010
1043
|
}
|
|
1011
|
-
function
|
|
1044
|
+
function Se(e) {
|
|
1012
1045
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1013
1046
|
}
|
|
1014
|
-
var
|
|
1015
|
-
(function(e,
|
|
1047
|
+
var bt = { exports: {} };
|
|
1048
|
+
(function(e, m) {
|
|
1016
1049
|
(function(t) {
|
|
1017
1050
|
e.exports = t();
|
|
1018
1051
|
})(function() {
|
|
1019
1052
|
return (/* @__PURE__ */ function() {
|
|
1020
1053
|
function t(h, c, r) {
|
|
1021
|
-
function
|
|
1022
|
-
if (!c[
|
|
1023
|
-
if (!h[
|
|
1024
|
-
var
|
|
1025
|
-
if (!P &&
|
|
1026
|
-
if (
|
|
1027
|
-
var l = new Error("Cannot find module '" +
|
|
1054
|
+
function T(E, P) {
|
|
1055
|
+
if (!c[E]) {
|
|
1056
|
+
if (!h[E]) {
|
|
1057
|
+
var u = typeof Se == "function" && Se;
|
|
1058
|
+
if (!P && u) return u(E, !0);
|
|
1059
|
+
if (x) return x(E, !0);
|
|
1060
|
+
var l = new Error("Cannot find module '" + E + "'");
|
|
1028
1061
|
throw l.code = "MODULE_NOT_FOUND", l;
|
|
1029
1062
|
}
|
|
1030
|
-
var
|
|
1031
|
-
h[
|
|
1032
|
-
var n = h[
|
|
1033
|
-
return
|
|
1034
|
-
},
|
|
1063
|
+
var d = c[E] = { exports: {} };
|
|
1064
|
+
h[E][0].call(d.exports, function(i) {
|
|
1065
|
+
var n = h[E][1][i];
|
|
1066
|
+
return T(n || i);
|
|
1067
|
+
}, d, d.exports, t, h, c, r);
|
|
1035
1068
|
}
|
|
1036
|
-
return c[
|
|
1069
|
+
return c[E].exports;
|
|
1037
1070
|
}
|
|
1038
|
-
for (var
|
|
1039
|
-
return
|
|
1071
|
+
for (var x = typeof Se == "function" && Se, g = 0; g < r.length; g++) T(r[g]);
|
|
1072
|
+
return T;
|
|
1040
1073
|
}
|
|
1041
1074
|
return t;
|
|
1042
1075
|
}())({
|
|
1043
1076
|
1: [function(t, h, c) {
|
|
1044
|
-
var r = {},
|
|
1045
|
-
function
|
|
1046
|
-
var l = r[
|
|
1047
|
-
return l ? l.lastIndex = 0 : r[
|
|
1077
|
+
var r = {}, T = "(?:^|\\s)", x = "(?:\\s|$)";
|
|
1078
|
+
function g(u) {
|
|
1079
|
+
var l = r[u];
|
|
1080
|
+
return l ? l.lastIndex = 0 : r[u] = l = new RegExp(T + u + x, "g"), l;
|
|
1048
1081
|
}
|
|
1049
|
-
function
|
|
1050
|
-
var
|
|
1051
|
-
|
|
1082
|
+
function E(u, l) {
|
|
1083
|
+
var d = u.className;
|
|
1084
|
+
d.length ? g(l).test(d) || (u.className += " " + l) : u.className = l;
|
|
1052
1085
|
}
|
|
1053
|
-
function P(
|
|
1054
|
-
|
|
1086
|
+
function P(u, l) {
|
|
1087
|
+
u.className = u.className.replace(g(l), " ").trim();
|
|
1055
1088
|
}
|
|
1056
1089
|
h.exports = {
|
|
1057
|
-
add:
|
|
1090
|
+
add: E,
|
|
1058
1091
|
rm: P
|
|
1059
1092
|
};
|
|
1060
1093
|
}, {}],
|
|
1061
1094
|
2: [function(t, h, c) {
|
|
1062
1095
|
(function(r) {
|
|
1063
|
-
var
|
|
1064
|
-
function
|
|
1096
|
+
var T = t("contra/emitter"), x = t("crossvent"), g = t("./classes"), E = document, P = E.documentElement;
|
|
1097
|
+
function u(f, y) {
|
|
1065
1098
|
var s = arguments.length;
|
|
1066
|
-
s === 1 && Array.isArray(f) === !1 && (
|
|
1067
|
-
var
|
|
1068
|
-
|
|
1069
|
-
var
|
|
1070
|
-
containers:
|
|
1099
|
+
s === 1 && Array.isArray(f) === !1 && (y = f, f = []);
|
|
1100
|
+
var v, k, M, W, Y, X, $, N, V, U = null, H, q, te = !1, ae = 0, w, C = y || {};
|
|
1101
|
+
C.moves === void 0 && (C.moves = G), C.accepts === void 0 && (C.accepts = G), C.invalid === void 0 && (C.invalid = yt), C.containers === void 0 && (C.containers = f || []), C.isContainer === void 0 && (C.isContainer = B), C.copy === void 0 && (C.copy = !1), C.copySortSource === void 0 && (C.copySortSource = !1), C.revertOnSpill === void 0 && (C.revertOnSpill = !1), C.removeOnSpill === void 0 && (C.removeOnSpill = !1), C.direction === void 0 && (C.direction = "vertical"), C.ignoreInputTextSelection === void 0 && (C.ignoreInputTextSelection = !0), C.mirrorContainer === void 0 && (C.mirrorContainer = E.body);
|
|
1102
|
+
var _ = T({
|
|
1103
|
+
containers: C.containers,
|
|
1071
1104
|
start: mt,
|
|
1072
|
-
end:
|
|
1073
|
-
cancel:
|
|
1074
|
-
remove:
|
|
1075
|
-
destroy:
|
|
1076
|
-
canMove:
|
|
1105
|
+
end: He,
|
|
1106
|
+
cancel: Je,
|
|
1107
|
+
remove: Ze,
|
|
1108
|
+
destroy: se,
|
|
1109
|
+
canMove: Oe,
|
|
1077
1110
|
dragging: !1
|
|
1078
1111
|
});
|
|
1079
|
-
return
|
|
1080
|
-
function
|
|
1081
|
-
return
|
|
1112
|
+
return C.removeOnSpill === !0 && _.on("over", xt).on("out", Ct), ee(), _;
|
|
1113
|
+
function K(a) {
|
|
1114
|
+
return _.containers.indexOf(a) !== -1 || C.isContainer(a);
|
|
1082
1115
|
}
|
|
1083
|
-
function
|
|
1084
|
-
var
|
|
1085
|
-
i(P,
|
|
1116
|
+
function ee(a) {
|
|
1117
|
+
var R = a ? "remove" : "add";
|
|
1118
|
+
i(P, R, "mousedown", ce), i(P, R, "mouseup", Be);
|
|
1086
1119
|
}
|
|
1087
|
-
function
|
|
1088
|
-
var
|
|
1089
|
-
i(P,
|
|
1120
|
+
function ne(a) {
|
|
1121
|
+
var R = a ? "remove" : "add";
|
|
1122
|
+
i(P, R, "mousemove", we);
|
|
1090
1123
|
}
|
|
1091
1124
|
function ye(a) {
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1125
|
+
var R = a ? "remove" : "add";
|
|
1126
|
+
x[R](P, "selectstart", De), x[R](P, "click", De);
|
|
1094
1127
|
}
|
|
1095
|
-
function
|
|
1096
|
-
|
|
1128
|
+
function se() {
|
|
1129
|
+
ee(!0), Be({});
|
|
1097
1130
|
}
|
|
1098
|
-
function
|
|
1099
|
-
|
|
1131
|
+
function De(a) {
|
|
1132
|
+
H && a.preventDefault();
|
|
1100
1133
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1103
|
-
var
|
|
1104
|
-
if (!
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1134
|
+
function ce(a) {
|
|
1135
|
+
W = a.clientX, Y = a.clientY;
|
|
1136
|
+
var R = n(a) !== 1 || a.metaKey || a.ctrlKey;
|
|
1137
|
+
if (!R) {
|
|
1138
|
+
var A = a.target, z = he(A);
|
|
1139
|
+
z && (H = z, ne(), a.type === "mousedown" && (O(A) ? A.focus() : a.preventDefault()));
|
|
1107
1140
|
}
|
|
1108
1141
|
}
|
|
1109
|
-
function
|
|
1110
|
-
if (
|
|
1142
|
+
function we(a) {
|
|
1143
|
+
if (H) {
|
|
1111
1144
|
if (n(a) === 0) {
|
|
1112
1145
|
Be({});
|
|
1113
1146
|
return;
|
|
1114
1147
|
}
|
|
1115
|
-
if (!(a.clientX !== void 0 && Math.abs(a.clientX -
|
|
1116
|
-
if (
|
|
1117
|
-
var
|
|
1118
|
-
if (
|
|
1148
|
+
if (!(a.clientX !== void 0 && Math.abs(a.clientX - W) <= (C.slideFactorX || 0) && a.clientY !== void 0 && Math.abs(a.clientY - Y) <= (C.slideFactorY || 0))) {
|
|
1149
|
+
if (C.ignoreInputTextSelection) {
|
|
1150
|
+
var R = I("clientX", a) || 0, A = I("clientY", a) || 0, z = E.elementFromPoint(R, A);
|
|
1151
|
+
if (O(z))
|
|
1119
1152
|
return;
|
|
1120
1153
|
}
|
|
1121
|
-
var
|
|
1122
|
-
|
|
1154
|
+
var Q = H;
|
|
1155
|
+
ne(!0), ye(), He(), Xe(Q), g.add(N || M, "gu-transit"), Dt(), Tt(), ae = 0, _e(a);
|
|
1123
1156
|
}
|
|
1124
1157
|
}
|
|
1125
1158
|
}
|
|
1126
|
-
function
|
|
1127
|
-
if (!(
|
|
1128
|
-
for (var
|
|
1129
|
-
if (
|
|
1159
|
+
function he(a) {
|
|
1160
|
+
if (!(_.dragging && v) && !K(a)) {
|
|
1161
|
+
for (var R = a; b(a) && K(b(a)) === !1; )
|
|
1162
|
+
if (C.invalid(a, R) || (a = b(a), !a))
|
|
1130
1163
|
return;
|
|
1131
|
-
var
|
|
1132
|
-
if (
|
|
1133
|
-
var
|
|
1134
|
-
if (
|
|
1164
|
+
var A = b(a);
|
|
1165
|
+
if (A && !C.invalid(a, R)) {
|
|
1166
|
+
var z = C.moves(a, A, R, o(a));
|
|
1167
|
+
if (z)
|
|
1135
1168
|
return {
|
|
1136
1169
|
item: a,
|
|
1137
|
-
source:
|
|
1170
|
+
source: A
|
|
1138
1171
|
};
|
|
1139
1172
|
}
|
|
1140
1173
|
}
|
|
1141
1174
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return !!
|
|
1175
|
+
function Oe(a) {
|
|
1176
|
+
return !!he(a);
|
|
1144
1177
|
}
|
|
1145
1178
|
function mt(a) {
|
|
1146
|
-
var
|
|
1147
|
-
|
|
1179
|
+
var R = he(a);
|
|
1180
|
+
R && Xe(R);
|
|
1148
1181
|
}
|
|
1149
|
-
function
|
|
1150
|
-
|
|
1182
|
+
function Xe(a) {
|
|
1183
|
+
Ot(a.item, a.source) && (N = a.item.cloneNode(!0), _.emit("cloned", N, a.item, "copy")), k = a.source, M = a.item, X = $ = o(a.item), _.dragging = !0, _.emit("drag", M, k);
|
|
1151
1184
|
}
|
|
1152
1185
|
function yt() {
|
|
1153
1186
|
return !1;
|
|
1154
1187
|
}
|
|
1155
|
-
function
|
|
1156
|
-
if (
|
|
1157
|
-
var a =
|
|
1158
|
-
|
|
1188
|
+
function He() {
|
|
1189
|
+
if (_.dragging) {
|
|
1190
|
+
var a = N || M;
|
|
1191
|
+
Qe(a, b(a));
|
|
1159
1192
|
}
|
|
1160
1193
|
}
|
|
1161
|
-
function
|
|
1162
|
-
|
|
1194
|
+
function Ve() {
|
|
1195
|
+
H = !1, ne(!0), ye(!0);
|
|
1163
1196
|
}
|
|
1164
1197
|
function Be(a) {
|
|
1165
|
-
if (
|
|
1166
|
-
var
|
|
1167
|
-
|
|
1198
|
+
if (Ve(), !!_.dragging) {
|
|
1199
|
+
var R = N || M, A = I("clientX", a) || 0, z = I("clientY", a) || 0, Q = S(v, A, z), Z = Ke(Q, A, z);
|
|
1200
|
+
Z && (N && C.copySortSource || !N || Z !== k) ? Qe(R, Z) : C.removeOnSpill ? Ze() : Je();
|
|
1168
1201
|
}
|
|
1169
1202
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var
|
|
1172
|
-
|
|
1203
|
+
function Qe(a, R) {
|
|
1204
|
+
var A = b(a);
|
|
1205
|
+
N && C.copySortSource && R === k && A.removeChild(M), Ae(R) ? _.emit("cancel", a, k) : _.emit("drop", a, R, k, $), je();
|
|
1173
1206
|
}
|
|
1174
|
-
function
|
|
1175
|
-
if (
|
|
1176
|
-
var a =
|
|
1177
|
-
|
|
1207
|
+
function Ze() {
|
|
1208
|
+
if (_.dragging) {
|
|
1209
|
+
var a = N || M, R = b(a);
|
|
1210
|
+
R && R.removeChild(a), _.emit(N ? "cancel" : "remove", a, R, k), je();
|
|
1178
1211
|
}
|
|
1179
1212
|
}
|
|
1180
|
-
function
|
|
1181
|
-
if (
|
|
1182
|
-
var
|
|
1183
|
-
|
|
1213
|
+
function Je(a) {
|
|
1214
|
+
if (_.dragging) {
|
|
1215
|
+
var R = arguments.length > 0 ? a : C.revertOnSpill, A = N || M, z = b(A), Q = Ae(z);
|
|
1216
|
+
Q === !1 && R && (N ? z && z.removeChild(N) : k.insertBefore(A, X)), Q || R ? _.emit("cancel", A, k, k) : _.emit("drop", A, z, k, $), je();
|
|
1184
1217
|
}
|
|
1185
1218
|
}
|
|
1186
|
-
function
|
|
1187
|
-
var a =
|
|
1188
|
-
|
|
1219
|
+
function je() {
|
|
1220
|
+
var a = N || M;
|
|
1221
|
+
Ve(), St(), kt(), a && g.rm(a, "gu-transit"), V && clearTimeout(V), _.dragging = !1, U && _.emit("out", a, U, k), _.emit("dragend", a, ae), k = M = N = X = $ = V = U = null;
|
|
1189
1222
|
}
|
|
1190
|
-
function
|
|
1191
|
-
var
|
|
1192
|
-
return
|
|
1223
|
+
function Ae(a, R) {
|
|
1224
|
+
var A;
|
|
1225
|
+
return R !== void 0 ? A = R : v ? A = $ : A = o(N || M), a === k && A === X;
|
|
1193
1226
|
}
|
|
1194
|
-
function
|
|
1195
|
-
for (var
|
|
1196
|
-
|
|
1197
|
-
return
|
|
1198
|
-
function
|
|
1199
|
-
var
|
|
1200
|
-
if (
|
|
1227
|
+
function Ke(a, R, A) {
|
|
1228
|
+
for (var z = a; z && !Q(); )
|
|
1229
|
+
z = b(z);
|
|
1230
|
+
return z;
|
|
1231
|
+
function Q() {
|
|
1232
|
+
var Z = K(z);
|
|
1233
|
+
if (Z === !1)
|
|
1201
1234
|
return !1;
|
|
1202
|
-
var
|
|
1203
|
-
return
|
|
1235
|
+
var ge = et(z, a), ue = tt(z, ge, R, A), pe = Ae(z, ue);
|
|
1236
|
+
return pe ? !0 : C.accepts(M, z, k, ue);
|
|
1204
1237
|
}
|
|
1205
1238
|
}
|
|
1206
|
-
function
|
|
1207
|
-
if (!
|
|
1239
|
+
function _e(a) {
|
|
1240
|
+
if (!v)
|
|
1208
1241
|
return;
|
|
1209
1242
|
a.preventDefault();
|
|
1210
|
-
var
|
|
1211
|
-
|
|
1212
|
-
var
|
|
1213
|
-
(
|
|
1214
|
-
var
|
|
1215
|
-
if (
|
|
1216
|
-
|
|
1243
|
+
var R = I("clientX", a) || 0, A = I("clientY", a) || 0;
|
|
1244
|
+
v.style.left = R - 2 + "px", v.style.top = A - 2 + "px";
|
|
1245
|
+
var z = N || M, Q = S(v, R, A), Z = Ke(Q, R, A), ge = Z !== null && Z !== U;
|
|
1246
|
+
(ge || Z === null) && (de(), U = Z, ve()), Rt(Q, A);
|
|
1247
|
+
var ue = b(z);
|
|
1248
|
+
if (Z === k && N && !C.copySortSource) {
|
|
1249
|
+
ue && ue.removeChild(z);
|
|
1217
1250
|
return;
|
|
1218
1251
|
}
|
|
1219
|
-
var
|
|
1220
|
-
if (
|
|
1221
|
-
|
|
1222
|
-
else if (
|
|
1223
|
-
|
|
1252
|
+
var pe, be = et(Z, Q);
|
|
1253
|
+
if (te = It(be, Z), be !== null)
|
|
1254
|
+
pe = tt(Z, be, R, A);
|
|
1255
|
+
else if (C.revertOnSpill === !0 && !N)
|
|
1256
|
+
pe = X, Z = k;
|
|
1224
1257
|
else {
|
|
1225
|
-
|
|
1258
|
+
N && ue && ue.removeChild(z), N && q && (q.style.display = "none");
|
|
1226
1259
|
return;
|
|
1227
1260
|
}
|
|
1228
|
-
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1261
|
+
q.style.display = "block", wt(pe, z, ge), pe ? Et(be, pe) : Mt(Z);
|
|
1262
|
+
function ie(le) {
|
|
1263
|
+
_.emit(le, z, U, k);
|
|
1231
1264
|
}
|
|
1232
|
-
function
|
|
1233
|
-
|
|
1265
|
+
function ve() {
|
|
1266
|
+
ge && ie("over");
|
|
1234
1267
|
}
|
|
1235
|
-
function
|
|
1236
|
-
|
|
1268
|
+
function de() {
|
|
1269
|
+
U && ie("out");
|
|
1237
1270
|
}
|
|
1238
1271
|
}
|
|
1239
|
-
function wt(a,
|
|
1240
|
-
(a ===
|
|
1272
|
+
function wt(a, R, A) {
|
|
1273
|
+
(a === R || a === o(R)) && ($ = o(R)), (a === null && A || a !== R && a !== o(R)) && ($ = a);
|
|
1241
1274
|
}
|
|
1242
1275
|
function xt(a) {
|
|
1243
|
-
|
|
1276
|
+
g.rm(a, "gu-hide");
|
|
1244
1277
|
}
|
|
1245
1278
|
function Ct(a) {
|
|
1246
|
-
|
|
1279
|
+
_.dragging && g.add(a, "gu-hide");
|
|
1247
1280
|
}
|
|
1248
1281
|
function Tt() {
|
|
1249
|
-
|
|
1282
|
+
v || (v = document.createElement("div"), v.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", v.innerHTML = C.getMirrorText && C.getMirrorText(M) || "控件", g.add(v, "gu-mirror"), C.mirrorContainer.appendChild(v), i(P, "add", "mousemove", _e), g.add(C.mirrorContainer, "gu-unselectable"), _.emit("cloned", v, M, "mirror"));
|
|
1250
1283
|
}
|
|
1251
1284
|
function Dt() {
|
|
1252
|
-
if (
|
|
1253
|
-
var a =
|
|
1254
|
-
|
|
1285
|
+
if (q = document.createElement("div"), g.add(q, "gu-insertion"), M) {
|
|
1286
|
+
var a = M.getBoundingClientRect();
|
|
1287
|
+
q.style.left = a.left + "px", q.style.top = a.top + "px";
|
|
1255
1288
|
}
|
|
1256
|
-
|
|
1257
|
-
}
|
|
1258
|
-
function It() {
|
|
1259
|
-
p && (v.rm(O.mirrorContainer, "gu-unselectable"), i(P, "remove", "mousemove", Ae), y(p).removeChild(p), p = null);
|
|
1289
|
+
te = !1, C.mirrorContainer.appendChild(q);
|
|
1260
1290
|
}
|
|
1261
1291
|
function St() {
|
|
1262
|
-
|
|
1292
|
+
v && (g.rm(C.mirrorContainer, "gu-unselectable"), i(P, "remove", "mousemove", _e), b(v).removeChild(v), v = null);
|
|
1293
|
+
}
|
|
1294
|
+
function kt() {
|
|
1295
|
+
q && (b(q).removeChild(q), q = null);
|
|
1263
1296
|
}
|
|
1264
|
-
function
|
|
1265
|
-
for (var
|
|
1266
|
-
|
|
1267
|
-
return
|
|
1297
|
+
function et(a, R) {
|
|
1298
|
+
for (var A = R; A !== a && b(A) !== a; )
|
|
1299
|
+
A = b(A);
|
|
1300
|
+
return A === P ? null : A;
|
|
1268
1301
|
}
|
|
1269
|
-
function
|
|
1270
|
-
if (!E)
|
|
1271
|
-
return I;
|
|
1272
|
-
var R = a || E && E.lastElementChild;
|
|
1302
|
+
function It(a, R) {
|
|
1273
1303
|
if (!R)
|
|
1304
|
+
return te;
|
|
1305
|
+
var A = a || R && R.lastElementChild;
|
|
1306
|
+
if (!A)
|
|
1274
1307
|
return !0;
|
|
1275
|
-
var
|
|
1276
|
-
if (
|
|
1308
|
+
var z = getComputedStyle(a), Q = /^inline/.test(z.getPropertyValue("display")) || /^(left|right)$/.test(z.getPropertyValue("float"));
|
|
1309
|
+
if (Q)
|
|
1277
1310
|
return !0;
|
|
1278
|
-
if (
|
|
1279
|
-
var
|
|
1280
|
-
if (/flex$/.test(
|
|
1281
|
-
var
|
|
1282
|
-
if (
|
|
1283
|
-
return !Pt(
|
|
1311
|
+
if (R) {
|
|
1312
|
+
var Z = getComputedStyle(R), ge = Z.getPropertyValue("display");
|
|
1313
|
+
if (/flex$/.test(ge)) {
|
|
1314
|
+
var ue = Z.getPropertyValue("flex-direction") || "row";
|
|
1315
|
+
if (ue === "row" || ue === "row-reverse")
|
|
1316
|
+
return !Pt(R);
|
|
1284
1317
|
}
|
|
1285
1318
|
return !1;
|
|
1286
1319
|
}
|
|
@@ -1289,114 +1322,114 @@ var gt = { exports: {} };
|
|
|
1289
1322
|
function Pt(a) {
|
|
1290
1323
|
if (!a.children || !a.children.length)
|
|
1291
1324
|
return !1;
|
|
1292
|
-
for (const
|
|
1293
|
-
const
|
|
1294
|
-
if (!
|
|
1325
|
+
for (const R of Array.from(a.children)) {
|
|
1326
|
+
const z = (R.className && R.className.split(" ") || []).filter((Q) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Q));
|
|
1327
|
+
if (!z.length)
|
|
1295
1328
|
return !1;
|
|
1296
|
-
for (const
|
|
1297
|
-
const
|
|
1298
|
-
if (parseInt(
|
|
1329
|
+
for (const Q of z) {
|
|
1330
|
+
const Z = Q.slice(Q.lastIndexOf("-") + 1);
|
|
1331
|
+
if (parseInt(Z, 10) !== 12)
|
|
1299
1332
|
return !1;
|
|
1300
1333
|
}
|
|
1301
1334
|
}
|
|
1302
1335
|
return !0;
|
|
1303
1336
|
}
|
|
1304
|
-
function Et(a,
|
|
1305
|
-
const
|
|
1306
|
-
if (
|
|
1307
|
-
if (
|
|
1308
|
-
const
|
|
1309
|
-
|
|
1337
|
+
function Et(a, R) {
|
|
1338
|
+
const A = R.getBoundingClientRect();
|
|
1339
|
+
if (q.style.left = A.left + "px", q.style.top = A.top + "px", te) {
|
|
1340
|
+
if (q.style.height = A.height + "px", q.style.width = "4px", a) {
|
|
1341
|
+
const z = a.getBoundingClientRect();
|
|
1342
|
+
z.top !== A.top && (q.style.left = z.right + "px", q.style.top = z.top + "px", q.style.height = z.height + "px");
|
|
1310
1343
|
}
|
|
1311
|
-
} else if (
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1344
|
+
} else if (q.style.height = "4px", q.style.width = A.width + "px", w) {
|
|
1345
|
+
const z = w.getBoundingClientRect();
|
|
1346
|
+
A.top < z.top && (q.style.display = "none");
|
|
1314
1347
|
}
|
|
1315
|
-
|
|
1348
|
+
R === M && M && (q.style.display = "none");
|
|
1316
1349
|
}
|
|
1317
1350
|
function Mt(a) {
|
|
1318
|
-
|
|
1319
|
-
var
|
|
1320
|
-
if (
|
|
1321
|
-
var
|
|
1322
|
-
|
|
1351
|
+
$ = null;
|
|
1352
|
+
var R = a.lastElementChild;
|
|
1353
|
+
if (R) {
|
|
1354
|
+
var A = R.getBoundingClientRect();
|
|
1355
|
+
te ? (q.style.left = A.right + "px", q.style.top = A.top + "px", q.style.height = A.height + "px", q.style.width = "4px") : (q.style.left = A.left + "px", q.style.top = A.bottom + "px", q.style.height = "4px", q.style.width = A.width + "px"), R === M && M && (q.style.display = "none");
|
|
1323
1356
|
} else
|
|
1324
|
-
|
|
1357
|
+
q.style.display = "none";
|
|
1325
1358
|
}
|
|
1326
|
-
function Rt(a,
|
|
1327
|
-
if (!
|
|
1359
|
+
function Rt(a, R) {
|
|
1360
|
+
if (!C.mirrorContainer.contains(a) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (w = l(a), !w || !w.contains(a)))
|
|
1328
1361
|
return;
|
|
1329
|
-
const
|
|
1330
|
-
if (
|
|
1331
|
-
let
|
|
1332
|
-
|
|
1362
|
+
const A = document.querySelector(".dgComponentSelected"), z = w.getBoundingClientRect();
|
|
1363
|
+
if (R - 30 < z.top && w.scrollTop > 0) {
|
|
1364
|
+
let Q = w.scrollTop < 10 ? w.scrollTop : 10;
|
|
1365
|
+
w.scrollBy(0, -1 * Q), A && w.contains(A) && (ae = ae + -1 * Q);
|
|
1333
1366
|
}
|
|
1334
|
-
if (
|
|
1335
|
-
const
|
|
1336
|
-
let
|
|
1337
|
-
|
|
1367
|
+
if (R + 30 > z.bottom && w.scrollTop < w.scrollHeight - w.clientHeight) {
|
|
1368
|
+
const Q = w.scrollHeight - w.clientHeight - w.scrollTop;
|
|
1369
|
+
let Z = Q < 10 ? Q : 10;
|
|
1370
|
+
w.scrollBy(0, Z), A && w.contains(A) && (ae = ae + Z);
|
|
1338
1371
|
}
|
|
1339
1372
|
}
|
|
1340
|
-
function
|
|
1341
|
-
var
|
|
1342
|
-
return
|
|
1343
|
-
function
|
|
1344
|
-
var
|
|
1345
|
-
for (
|
|
1346
|
-
if (
|
|
1347
|
-
return
|
|
1373
|
+
function tt(a, R, A, z) {
|
|
1374
|
+
var Q = C.direction === "horizontal", Z = C.direction === "mixed", ge = R !== a ? pe() : ue();
|
|
1375
|
+
return ge;
|
|
1376
|
+
function ue() {
|
|
1377
|
+
var ie = a.children.length, ve, de, le;
|
|
1378
|
+
for (ve = 0; ve < ie; ve++)
|
|
1379
|
+
if (de = a.children[ve], le = de.getBoundingClientRect(), Q && le.left + le.width / 2 > A || !Z && !Q && le.top + le.height / 2 > z || Z && le.left + le.width > A && le.top + le.height > z)
|
|
1380
|
+
return de;
|
|
1348
1381
|
return null;
|
|
1349
1382
|
}
|
|
1350
|
-
function
|
|
1351
|
-
var
|
|
1352
|
-
if (
|
|
1353
|
-
var
|
|
1354
|
-
return
|
|
1383
|
+
function pe() {
|
|
1384
|
+
var ie = R.getBoundingClientRect();
|
|
1385
|
+
if (Z) {
|
|
1386
|
+
var ve = z - ie.top, de = A - ie.left, le = ie.bottom - z, $e = ie.right - A, Le = Math.min(de, $e, ve, le), Ne;
|
|
1387
|
+
return te ? Ne = $e < de : Ne = le === Le || $e === Le || de === Le, be(Ne);
|
|
1355
1388
|
}
|
|
1356
|
-
return
|
|
1389
|
+
return be(Q ? A > ie.left + j(ie) / 2 : z > ie.top + D(ie) / 2);
|
|
1357
1390
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1391
|
+
function be(ie) {
|
|
1392
|
+
return ie ? o(R) : R;
|
|
1360
1393
|
}
|
|
1361
1394
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return typeof
|
|
1395
|
+
function Ot(a, R) {
|
|
1396
|
+
return typeof C.copy == "boolean" ? C.copy : C.copy(a, R);
|
|
1364
1397
|
}
|
|
1365
1398
|
}
|
|
1366
1399
|
function l(f) {
|
|
1367
|
-
const
|
|
1368
|
-
if (
|
|
1369
|
-
const
|
|
1370
|
-
return document.getElementById(
|
|
1400
|
+
const y = Array.from(window.scrollContainerList);
|
|
1401
|
+
if (y.length === 1) {
|
|
1402
|
+
const v = Array.from(window.scrollContainerList)[0];
|
|
1403
|
+
return document.getElementById(v);
|
|
1371
1404
|
}
|
|
1372
|
-
const s =
|
|
1373
|
-
for (const
|
|
1374
|
-
if (
|
|
1375
|
-
return
|
|
1405
|
+
const s = d(y);
|
|
1406
|
+
for (const v of s)
|
|
1407
|
+
if (v.contains(f))
|
|
1408
|
+
return v;
|
|
1376
1409
|
return null;
|
|
1377
1410
|
}
|
|
1378
|
-
function
|
|
1379
|
-
const
|
|
1411
|
+
function d(f) {
|
|
1412
|
+
const y = [];
|
|
1380
1413
|
return f.forEach((s) => {
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
}),
|
|
1414
|
+
const v = document.getElementById(s);
|
|
1415
|
+
v && y.push(v);
|
|
1416
|
+
}), y.sort((s, v) => s.contains(v) ? 1 : v.contains(s) ? -1 : 0), y;
|
|
1384
1417
|
}
|
|
1385
|
-
function i(f,
|
|
1386
|
-
var
|
|
1418
|
+
function i(f, y, s, v) {
|
|
1419
|
+
var k = {
|
|
1387
1420
|
mouseup: "touchend",
|
|
1388
1421
|
mousedown: "touchstart",
|
|
1389
1422
|
mousemove: "touchmove"
|
|
1390
|
-
},
|
|
1423
|
+
}, M = {
|
|
1391
1424
|
mouseup: "pointerup",
|
|
1392
1425
|
mousedown: "pointerdown",
|
|
1393
1426
|
mousemove: "pointermove"
|
|
1394
|
-
},
|
|
1427
|
+
}, W = {
|
|
1395
1428
|
mouseup: "MSPointerUp",
|
|
1396
1429
|
mousedown: "MSPointerDown",
|
|
1397
1430
|
mousemove: "MSPointerMove"
|
|
1398
1431
|
};
|
|
1399
|
-
r.navigator.pointerEnabled ?
|
|
1432
|
+
r.navigator.pointerEnabled ? x[y](f, M[s], v) : r.navigator.msPointerEnabled ? x[y](f, W[s], v) : (x[y](f, k[s], v), x[y](f, s, v));
|
|
1400
1433
|
}
|
|
1401
1434
|
function n(f) {
|
|
1402
1435
|
if (f.touches !== void 0)
|
|
@@ -1405,39 +1438,39 @@ var gt = { exports: {} };
|
|
|
1405
1438
|
return f.which;
|
|
1406
1439
|
if (f.buttons !== void 0)
|
|
1407
1440
|
return f.buttons;
|
|
1408
|
-
var
|
|
1409
|
-
if (
|
|
1410
|
-
return
|
|
1441
|
+
var y = f.button;
|
|
1442
|
+
if (y !== void 0)
|
|
1443
|
+
return y & 1 ? 1 : y & 2 ? 3 : y & 4 ? 2 : 0;
|
|
1411
1444
|
}
|
|
1412
|
-
function
|
|
1445
|
+
function S(f, y, s) {
|
|
1413
1446
|
f = f || {};
|
|
1414
|
-
var
|
|
1415
|
-
return f.className += " gu-hide",
|
|
1447
|
+
var v = f.className || "", k;
|
|
1448
|
+
return f.className += " gu-hide", k = E.elementFromPoint(y, s), f.className = v, k;
|
|
1416
1449
|
}
|
|
1417
1450
|
function B() {
|
|
1418
1451
|
return !1;
|
|
1419
1452
|
}
|
|
1420
|
-
function
|
|
1453
|
+
function G() {
|
|
1421
1454
|
return !0;
|
|
1422
1455
|
}
|
|
1423
1456
|
function j(f) {
|
|
1424
1457
|
return f.width || f.right - f.left;
|
|
1425
1458
|
}
|
|
1426
|
-
function
|
|
1459
|
+
function D(f) {
|
|
1427
1460
|
return f.height || f.bottom - f.top;
|
|
1428
1461
|
}
|
|
1429
|
-
function
|
|
1430
|
-
return f.parentNode ===
|
|
1462
|
+
function b(f) {
|
|
1463
|
+
return f.parentNode === E ? null : f.parentNode;
|
|
1431
1464
|
}
|
|
1432
|
-
function
|
|
1433
|
-
return f.tagName === "INPUT" || f.tagName === "TEXTAREA" || f.tagName === "SELECT" ||
|
|
1465
|
+
function O(f) {
|
|
1466
|
+
return f.tagName === "INPUT" || f.tagName === "TEXTAREA" || f.tagName === "SELECT" || p(f);
|
|
1434
1467
|
}
|
|
1435
|
-
function
|
|
1436
|
-
return !f || f.contentEditable === "false" ? !1 : f.contentEditable === "true" ? !0 :
|
|
1468
|
+
function p(f) {
|
|
1469
|
+
return !f || f.contentEditable === "false" ? !1 : f.contentEditable === "true" ? !0 : p(b(f));
|
|
1437
1470
|
}
|
|
1438
1471
|
function o(f) {
|
|
1439
|
-
return f.nextElementSibling ||
|
|
1440
|
-
function
|
|
1472
|
+
return f.nextElementSibling || y();
|
|
1473
|
+
function y() {
|
|
1441
1474
|
var s = f;
|
|
1442
1475
|
do
|
|
1443
1476
|
s = s.nextSibling;
|
|
@@ -1445,260 +1478,260 @@ var gt = { exports: {} };
|
|
|
1445
1478
|
return s;
|
|
1446
1479
|
}
|
|
1447
1480
|
}
|
|
1448
|
-
function
|
|
1481
|
+
function F(f) {
|
|
1449
1482
|
return f.targetTouches && f.targetTouches.length ? f.targetTouches[0] : f.changedTouches && f.changedTouches.length ? f.changedTouches[0] : f;
|
|
1450
1483
|
}
|
|
1451
|
-
function
|
|
1452
|
-
var s =
|
|
1484
|
+
function I(f, y) {
|
|
1485
|
+
var s = F(y), v = {
|
|
1453
1486
|
pageX: "clientX",
|
|
1454
1487
|
// IE8
|
|
1455
1488
|
pageY: "clientY"
|
|
1456
1489
|
// IE8
|
|
1457
1490
|
};
|
|
1458
|
-
return f in
|
|
1491
|
+
return f in v && !(f in s) && v[f] in s && (f = v[f]), s[f];
|
|
1459
1492
|
}
|
|
1460
|
-
h.exports =
|
|
1461
|
-
}).call(this, typeof
|
|
1493
|
+
h.exports = u;
|
|
1494
|
+
}).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1462
1495
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
1463
1496
|
3: [function(t, h, c) {
|
|
1464
|
-
h.exports = function(
|
|
1465
|
-
return Array.prototype.slice.call(
|
|
1497
|
+
h.exports = function(T, x) {
|
|
1498
|
+
return Array.prototype.slice.call(T, x);
|
|
1466
1499
|
};
|
|
1467
1500
|
}, {}],
|
|
1468
1501
|
4: [function(t, h, c) {
|
|
1469
1502
|
var r = t("ticky");
|
|
1470
|
-
h.exports = function(
|
|
1471
|
-
|
|
1472
|
-
|
|
1503
|
+
h.exports = function(x, g, E) {
|
|
1504
|
+
x && r(function() {
|
|
1505
|
+
x.apply(E || null, g || []);
|
|
1473
1506
|
});
|
|
1474
1507
|
};
|
|
1475
1508
|
}, { ticky: 10 }],
|
|
1476
1509
|
5: [function(t, h, c) {
|
|
1477
|
-
var r = t("atoa"),
|
|
1478
|
-
h.exports = function(
|
|
1479
|
-
var P =
|
|
1480
|
-
return
|
|
1481
|
-
return
|
|
1482
|
-
},
|
|
1483
|
-
return
|
|
1484
|
-
},
|
|
1510
|
+
var r = t("atoa"), T = t("./debounce");
|
|
1511
|
+
h.exports = function(g, E) {
|
|
1512
|
+
var P = E || {}, u = {};
|
|
1513
|
+
return g === void 0 && (g = {}), g.on = function(l, d) {
|
|
1514
|
+
return u[l] ? u[l].push(d) : u[l] = [d], g;
|
|
1515
|
+
}, g.once = function(l, d) {
|
|
1516
|
+
return d._once = !0, g.on(l, d), g;
|
|
1517
|
+
}, g.off = function(l, d) {
|
|
1485
1518
|
var i = arguments.length;
|
|
1486
1519
|
if (i === 1)
|
|
1487
|
-
delete
|
|
1520
|
+
delete u[l];
|
|
1488
1521
|
else if (i === 0)
|
|
1489
|
-
|
|
1522
|
+
u = {};
|
|
1490
1523
|
else {
|
|
1491
|
-
var n =
|
|
1524
|
+
var n = u[l];
|
|
1492
1525
|
if (!n)
|
|
1493
|
-
return
|
|
1494
|
-
n.splice(n.indexOf(
|
|
1526
|
+
return g;
|
|
1527
|
+
n.splice(n.indexOf(d), 1);
|
|
1495
1528
|
}
|
|
1496
|
-
return
|
|
1497
|
-
},
|
|
1529
|
+
return g;
|
|
1530
|
+
}, g.emit = function() {
|
|
1498
1531
|
var l = r(arguments);
|
|
1499
|
-
return
|
|
1500
|
-
},
|
|
1501
|
-
var
|
|
1532
|
+
return g.emitterSnapshot(l.shift()).apply(this, l);
|
|
1533
|
+
}, g.emitterSnapshot = function(l) {
|
|
1534
|
+
var d = (u[l] || []).slice(0);
|
|
1502
1535
|
return function() {
|
|
1503
|
-
var i = r(arguments), n = this ||
|
|
1504
|
-
if (l === "error" && P.throws !== !1 && !
|
|
1536
|
+
var i = r(arguments), n = this || g;
|
|
1537
|
+
if (l === "error" && P.throws !== !1 && !d.length)
|
|
1505
1538
|
throw i.length === 1 ? i[0] : i;
|
|
1506
|
-
return
|
|
1507
|
-
P.async ?
|
|
1508
|
-
}),
|
|
1539
|
+
return d.forEach(function(B) {
|
|
1540
|
+
P.async ? T(B, i, n) : B.apply(n, i), B._once && g.off(l, B);
|
|
1541
|
+
}), g;
|
|
1509
1542
|
};
|
|
1510
|
-
},
|
|
1543
|
+
}, g;
|
|
1511
1544
|
};
|
|
1512
1545
|
}, { "./debounce": 4, atoa: 3 }],
|
|
1513
1546
|
6: [function(t, h, c) {
|
|
1514
1547
|
(function(r) {
|
|
1515
|
-
var
|
|
1516
|
-
r.addEventListener || (
|
|
1517
|
-
add:
|
|
1548
|
+
var T = t("custom-event"), x = t("./eventmap"), g = r.document, E = l, P = i, u = [];
|
|
1549
|
+
r.addEventListener || (E = d, P = n), h.exports = {
|
|
1550
|
+
add: E,
|
|
1518
1551
|
remove: P,
|
|
1519
|
-
fabricate:
|
|
1552
|
+
fabricate: S
|
|
1520
1553
|
};
|
|
1521
|
-
function l(
|
|
1522
|
-
return
|
|
1554
|
+
function l(b, O, p, o) {
|
|
1555
|
+
return b.addEventListener(O, p, o);
|
|
1523
1556
|
}
|
|
1524
|
-
function
|
|
1525
|
-
return
|
|
1557
|
+
function d(b, O, p) {
|
|
1558
|
+
return b.attachEvent("on" + O, G(b, O, p));
|
|
1526
1559
|
}
|
|
1527
|
-
function i(
|
|
1528
|
-
return
|
|
1560
|
+
function i(b, O, p, o) {
|
|
1561
|
+
return b.removeEventListener(O, p, o);
|
|
1529
1562
|
}
|
|
1530
|
-
function n(
|
|
1531
|
-
var o = j(
|
|
1563
|
+
function n(b, O, p) {
|
|
1564
|
+
var o = j(b, O, p);
|
|
1532
1565
|
if (o)
|
|
1533
|
-
return
|
|
1566
|
+
return b.detachEvent("on" + O, o);
|
|
1534
1567
|
}
|
|
1535
|
-
function
|
|
1536
|
-
var o =
|
|
1537
|
-
|
|
1538
|
-
function
|
|
1568
|
+
function S(b, O, p) {
|
|
1569
|
+
var o = x.indexOf(O) === -1 ? I() : F();
|
|
1570
|
+
b.dispatchEvent ? b.dispatchEvent(o) : b.fireEvent("on" + O, o);
|
|
1571
|
+
function F() {
|
|
1539
1572
|
var f;
|
|
1540
|
-
return
|
|
1573
|
+
return g.createEvent ? (f = g.createEvent("Event"), f.initEvent(O, !0, !0)) : g.createEventObject && (f = g.createEventObject()), f;
|
|
1541
1574
|
}
|
|
1542
|
-
function
|
|
1543
|
-
return new
|
|
1575
|
+
function I() {
|
|
1576
|
+
return new T(O, { detail: p });
|
|
1544
1577
|
}
|
|
1545
1578
|
}
|
|
1546
|
-
function B(
|
|
1547
|
-
return function(
|
|
1548
|
-
var
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
},
|
|
1552
|
-
|
|
1553
|
-
},
|
|
1579
|
+
function B(b, O, p) {
|
|
1580
|
+
return function(F) {
|
|
1581
|
+
var I = F || r.event;
|
|
1582
|
+
I.target = I.target || I.srcElement, I.preventDefault = I.preventDefault || function() {
|
|
1583
|
+
I.returnValue = !1;
|
|
1584
|
+
}, I.stopPropagation = I.stopPropagation || function() {
|
|
1585
|
+
I.cancelBubble = !0;
|
|
1586
|
+
}, I.which = I.which || I.keyCode, p.call(b, I);
|
|
1554
1587
|
};
|
|
1555
1588
|
}
|
|
1556
|
-
function
|
|
1557
|
-
var o = j(
|
|
1558
|
-
return
|
|
1589
|
+
function G(b, O, p) {
|
|
1590
|
+
var o = j(b, O, p) || B(b, O, p);
|
|
1591
|
+
return u.push({
|
|
1559
1592
|
wrapper: o,
|
|
1560
|
-
element:
|
|
1561
|
-
type:
|
|
1562
|
-
fn:
|
|
1593
|
+
element: b,
|
|
1594
|
+
type: O,
|
|
1595
|
+
fn: p
|
|
1563
1596
|
}), o;
|
|
1564
1597
|
}
|
|
1565
|
-
function j(
|
|
1566
|
-
var o =
|
|
1598
|
+
function j(b, O, p) {
|
|
1599
|
+
var o = D(b, O, p);
|
|
1567
1600
|
if (o) {
|
|
1568
|
-
var
|
|
1569
|
-
return
|
|
1601
|
+
var F = u[o].wrapper;
|
|
1602
|
+
return u.splice(o, 1), F;
|
|
1570
1603
|
}
|
|
1571
1604
|
}
|
|
1572
|
-
function
|
|
1573
|
-
var o,
|
|
1574
|
-
for (o = 0; o <
|
|
1575
|
-
if (
|
|
1605
|
+
function D(b, O, p) {
|
|
1606
|
+
var o, F;
|
|
1607
|
+
for (o = 0; o < u.length; o++)
|
|
1608
|
+
if (F = u[o], F.element === b && F.type === O && F.fn === p)
|
|
1576
1609
|
return o;
|
|
1577
1610
|
}
|
|
1578
|
-
}).call(this, typeof
|
|
1611
|
+
}).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1579
1612
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
1580
1613
|
7: [function(t, h, c) {
|
|
1581
1614
|
(function(r) {
|
|
1582
|
-
var
|
|
1583
|
-
for (
|
|
1584
|
-
|
|
1585
|
-
h.exports =
|
|
1586
|
-
}).call(this, typeof
|
|
1615
|
+
var T = [], x = "", g = /^on/;
|
|
1616
|
+
for (x in r)
|
|
1617
|
+
g.test(x) && T.push(x.slice(2));
|
|
1618
|
+
h.exports = T;
|
|
1619
|
+
}).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1587
1620
|
}, {}],
|
|
1588
1621
|
8: [function(t, h, c) {
|
|
1589
1622
|
(function(r) {
|
|
1590
|
-
var
|
|
1591
|
-
function
|
|
1623
|
+
var T = r.CustomEvent;
|
|
1624
|
+
function x() {
|
|
1592
1625
|
try {
|
|
1593
|
-
var
|
|
1594
|
-
return
|
|
1626
|
+
var g = new T("cat", { detail: { foo: "bar" } });
|
|
1627
|
+
return g.type === "cat" && g.detail.foo === "bar";
|
|
1595
1628
|
} catch {
|
|
1596
1629
|
}
|
|
1597
1630
|
return !1;
|
|
1598
1631
|
}
|
|
1599
|
-
h.exports =
|
|
1632
|
+
h.exports = x() ? T : (
|
|
1600
1633
|
// IE >= 9
|
|
1601
|
-
typeof document < "u" && typeof document.createEvent == "function" ? function(
|
|
1602
|
-
var
|
|
1603
|
-
return P ?
|
|
1634
|
+
typeof document < "u" && typeof document.createEvent == "function" ? function(E, P) {
|
|
1635
|
+
var u = document.createEvent("CustomEvent");
|
|
1636
|
+
return P ? u.initCustomEvent(E, P.bubbles, P.cancelable, P.detail) : u.initCustomEvent(E, !1, !1, void 0), u;
|
|
1604
1637
|
} : (
|
|
1605
1638
|
// IE <= 8
|
|
1606
|
-
function(
|
|
1607
|
-
var
|
|
1608
|
-
return
|
|
1639
|
+
function(E, P) {
|
|
1640
|
+
var u = document.createEventObject();
|
|
1641
|
+
return u.type = E, P ? (u.bubbles = !!P.bubbles, u.cancelable = !!P.cancelable, u.detail = P.detail) : (u.bubbles = !1, u.cancelable = !1, u.detail = void 0), u;
|
|
1609
1642
|
}
|
|
1610
1643
|
)
|
|
1611
1644
|
);
|
|
1612
|
-
}).call(this, typeof
|
|
1645
|
+
}).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1613
1646
|
}, {}],
|
|
1614
1647
|
9: [function(t, h, c) {
|
|
1615
|
-
var r = h.exports = {},
|
|
1616
|
-
function
|
|
1648
|
+
var r = h.exports = {}, T, x;
|
|
1649
|
+
function g() {
|
|
1617
1650
|
throw new Error("setTimeout has not been defined");
|
|
1618
1651
|
}
|
|
1619
|
-
function
|
|
1652
|
+
function E() {
|
|
1620
1653
|
throw new Error("clearTimeout has not been defined");
|
|
1621
1654
|
}
|
|
1622
1655
|
(function() {
|
|
1623
1656
|
try {
|
|
1624
|
-
typeof setTimeout == "function" ?
|
|
1657
|
+
typeof setTimeout == "function" ? T = setTimeout : T = g;
|
|
1625
1658
|
} catch {
|
|
1626
|
-
|
|
1659
|
+
T = g;
|
|
1627
1660
|
}
|
|
1628
1661
|
try {
|
|
1629
|
-
typeof clearTimeout == "function" ?
|
|
1662
|
+
typeof clearTimeout == "function" ? x = clearTimeout : x = E;
|
|
1630
1663
|
} catch {
|
|
1631
|
-
|
|
1664
|
+
x = E;
|
|
1632
1665
|
}
|
|
1633
1666
|
})();
|
|
1634
|
-
function P(
|
|
1635
|
-
if (
|
|
1636
|
-
return setTimeout(
|
|
1637
|
-
if ((
|
|
1638
|
-
return
|
|
1667
|
+
function P(D) {
|
|
1668
|
+
if (T === setTimeout)
|
|
1669
|
+
return setTimeout(D, 0);
|
|
1670
|
+
if ((T === g || !T) && setTimeout)
|
|
1671
|
+
return T = setTimeout, setTimeout(D, 0);
|
|
1639
1672
|
try {
|
|
1640
|
-
return D
|
|
1673
|
+
return T(D, 0);
|
|
1641
1674
|
} catch {
|
|
1642
1675
|
try {
|
|
1643
|
-
return
|
|
1676
|
+
return T.call(null, D, 0);
|
|
1644
1677
|
} catch {
|
|
1645
|
-
return
|
|
1678
|
+
return T.call(this, D, 0);
|
|
1646
1679
|
}
|
|
1647
1680
|
}
|
|
1648
1681
|
}
|
|
1649
|
-
function
|
|
1650
|
-
if (
|
|
1651
|
-
return clearTimeout(
|
|
1652
|
-
if ((
|
|
1653
|
-
return
|
|
1682
|
+
function u(D) {
|
|
1683
|
+
if (x === clearTimeout)
|
|
1684
|
+
return clearTimeout(D);
|
|
1685
|
+
if ((x === E || !x) && clearTimeout)
|
|
1686
|
+
return x = clearTimeout, clearTimeout(D);
|
|
1654
1687
|
try {
|
|
1655
|
-
return
|
|
1688
|
+
return x(D);
|
|
1656
1689
|
} catch {
|
|
1657
1690
|
try {
|
|
1658
|
-
return
|
|
1691
|
+
return x.call(null, D);
|
|
1659
1692
|
} catch {
|
|
1660
|
-
return
|
|
1693
|
+
return x.call(this, D);
|
|
1661
1694
|
}
|
|
1662
1695
|
}
|
|
1663
1696
|
}
|
|
1664
|
-
var l = [],
|
|
1665
|
-
function
|
|
1666
|
-
!
|
|
1697
|
+
var l = [], d = !1, i, n = -1;
|
|
1698
|
+
function S() {
|
|
1699
|
+
!d || !i || (d = !1, i.length ? l = i.concat(l) : n = -1, l.length && B());
|
|
1667
1700
|
}
|
|
1668
1701
|
function B() {
|
|
1669
|
-
if (!
|
|
1670
|
-
var
|
|
1671
|
-
|
|
1672
|
-
for (var
|
|
1673
|
-
for (i = l, l = []; ++n <
|
|
1702
|
+
if (!d) {
|
|
1703
|
+
var D = P(S);
|
|
1704
|
+
d = !0;
|
|
1705
|
+
for (var b = l.length; b; ) {
|
|
1706
|
+
for (i = l, l = []; ++n < b; )
|
|
1674
1707
|
i && i[n].run();
|
|
1675
|
-
n = -1,
|
|
1708
|
+
n = -1, b = l.length;
|
|
1676
1709
|
}
|
|
1677
|
-
i = null,
|
|
1710
|
+
i = null, d = !1, u(D);
|
|
1678
1711
|
}
|
|
1679
1712
|
}
|
|
1680
|
-
r.nextTick = function(
|
|
1681
|
-
var
|
|
1713
|
+
r.nextTick = function(D) {
|
|
1714
|
+
var b = new Array(arguments.length - 1);
|
|
1682
1715
|
if (arguments.length > 1)
|
|
1683
|
-
for (var
|
|
1684
|
-
|
|
1685
|
-
l.push(new
|
|
1716
|
+
for (var O = 1; O < arguments.length; O++)
|
|
1717
|
+
b[O - 1] = arguments[O];
|
|
1718
|
+
l.push(new G(D, b)), l.length === 1 && !d && P(B);
|
|
1686
1719
|
};
|
|
1687
|
-
function
|
|
1688
|
-
this.fun =
|
|
1720
|
+
function G(D, b) {
|
|
1721
|
+
this.fun = D, this.array = b;
|
|
1689
1722
|
}
|
|
1690
|
-
|
|
1723
|
+
G.prototype.run = function() {
|
|
1691
1724
|
this.fun.apply(null, this.array);
|
|
1692
1725
|
}, r.title = "browser", r.browser = !0, r.env = {}, r.argv = [], r.version = "", r.versions = {};
|
|
1693
1726
|
function j() {
|
|
1694
1727
|
}
|
|
1695
|
-
r.on = j, r.addListener = j, r.once = j, r.off = j, r.removeListener = j, r.removeAllListeners = j, r.emit = j, r.prependListener = j, r.prependOnceListener = j, r.listeners = function(
|
|
1728
|
+
r.on = j, r.addListener = j, r.once = j, r.off = j, r.removeListener = j, r.removeAllListeners = j, r.emit = j, r.prependListener = j, r.prependOnceListener = j, r.listeners = function(D) {
|
|
1696
1729
|
return [];
|
|
1697
|
-
}, r.binding = function(
|
|
1730
|
+
}, r.binding = function(D) {
|
|
1698
1731
|
throw new Error("process.binding is not supported");
|
|
1699
1732
|
}, r.cwd = function() {
|
|
1700
1733
|
return "/";
|
|
1701
|
-
}, r.chdir = function(
|
|
1734
|
+
}, r.chdir = function(D) {
|
|
1702
1735
|
throw new Error("process.chdir is not supported");
|
|
1703
1736
|
}, r.umask = function() {
|
|
1704
1737
|
return 0;
|
|
@@ -1706,274 +1739,281 @@ var gt = { exports: {} };
|
|
|
1706
1739
|
}, {}],
|
|
1707
1740
|
10: [function(t, h, c) {
|
|
1708
1741
|
(function(r) {
|
|
1709
|
-
var
|
|
1710
|
-
|
|
1711
|
-
r(
|
|
1712
|
-
} :
|
|
1713
|
-
setTimeout(
|
|
1714
|
-
}, h.exports =
|
|
1742
|
+
var T = typeof r == "function", x;
|
|
1743
|
+
T ? x = function(g) {
|
|
1744
|
+
r(g);
|
|
1745
|
+
} : x = function(g) {
|
|
1746
|
+
setTimeout(g, 0);
|
|
1747
|
+
}, h.exports = x;
|
|
1715
1748
|
}).call(this, t("timers").setImmediate);
|
|
1716
1749
|
}, { timers: 11 }],
|
|
1717
1750
|
11: [function(t, h, c) {
|
|
1718
|
-
(function(r,
|
|
1719
|
-
var
|
|
1751
|
+
(function(r, T) {
|
|
1752
|
+
var x = t("process/browser.js").nextTick, g = Function.prototype.apply, E = Array.prototype.slice, P = {}, u = 0;
|
|
1720
1753
|
c.setTimeout = function() {
|
|
1721
|
-
return new l(
|
|
1754
|
+
return new l(g.call(setTimeout, window, arguments), clearTimeout);
|
|
1722
1755
|
}, c.setInterval = function() {
|
|
1723
|
-
return new l(
|
|
1724
|
-
}, c.clearTimeout = c.clearInterval = function(
|
|
1725
|
-
|
|
1756
|
+
return new l(g.call(setInterval, window, arguments), clearInterval);
|
|
1757
|
+
}, c.clearTimeout = c.clearInterval = function(d) {
|
|
1758
|
+
d.close();
|
|
1726
1759
|
};
|
|
1727
|
-
function l(
|
|
1728
|
-
this._id =
|
|
1760
|
+
function l(d, i) {
|
|
1761
|
+
this._id = d, this._clearFn = i;
|
|
1729
1762
|
}
|
|
1730
1763
|
l.prototype.unref = l.prototype.ref = function() {
|
|
1731
1764
|
}, l.prototype.close = function() {
|
|
1732
1765
|
this._clearFn.call(window, this._id);
|
|
1733
|
-
}, c.enroll = function(
|
|
1734
|
-
clearTimeout(
|
|
1735
|
-
}, c.unenroll = function(
|
|
1736
|
-
clearTimeout(
|
|
1737
|
-
}, c._unrefActive = c.active = function(
|
|
1738
|
-
clearTimeout(
|
|
1739
|
-
var i =
|
|
1740
|
-
i >= 0 && (
|
|
1741
|
-
|
|
1766
|
+
}, c.enroll = function(d, i) {
|
|
1767
|
+
clearTimeout(d._idleTimeoutId), d._idleTimeout = i;
|
|
1768
|
+
}, c.unenroll = function(d) {
|
|
1769
|
+
clearTimeout(d._idleTimeoutId), d._idleTimeout = -1;
|
|
1770
|
+
}, c._unrefActive = c.active = function(d) {
|
|
1771
|
+
clearTimeout(d._idleTimeoutId);
|
|
1772
|
+
var i = d._idleTimeout;
|
|
1773
|
+
i >= 0 && (d._idleTimeoutId = setTimeout(function() {
|
|
1774
|
+
d._onTimeout && d._onTimeout();
|
|
1742
1775
|
}, i));
|
|
1743
|
-
}, c.setImmediate = typeof r == "function" ? r : function(
|
|
1744
|
-
var i =
|
|
1745
|
-
return P[i] = !0,
|
|
1746
|
-
P[i] && (n ?
|
|
1776
|
+
}, c.setImmediate = typeof r == "function" ? r : function(d) {
|
|
1777
|
+
var i = u++, n = arguments.length < 2 ? !1 : E.call(arguments, 1);
|
|
1778
|
+
return P[i] = !0, x(function() {
|
|
1779
|
+
P[i] && (n ? d.apply(null, n) : d.call(null), c.clearImmediate(i));
|
|
1747
1780
|
}), i;
|
|
1748
|
-
}, c.clearImmediate = typeof
|
|
1749
|
-
delete P[
|
|
1781
|
+
}, c.clearImmediate = typeof T == "function" ? T : function(d) {
|
|
1782
|
+
delete P[d];
|
|
1750
1783
|
};
|
|
1751
1784
|
}).call(this, t("timers").setImmediate, t("timers").clearImmediate);
|
|
1752
1785
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
1753
1786
|
}, {}, [2])(2);
|
|
1754
1787
|
});
|
|
1755
|
-
})(
|
|
1756
|
-
var
|
|
1757
|
-
const
|
|
1758
|
-
function
|
|
1759
|
-
let
|
|
1760
|
-
function t(c, r,
|
|
1761
|
-
const
|
|
1762
|
-
if (!(
|
|
1788
|
+
})(bt);
|
|
1789
|
+
var En = bt.exports;
|
|
1790
|
+
const rt = /* @__PURE__ */ Pn(En);
|
|
1791
|
+
function Mn(e) {
|
|
1792
|
+
let m;
|
|
1793
|
+
function t(c, r, T, x) {
|
|
1794
|
+
const g = e.schema;
|
|
1795
|
+
if (!(g != null && g.buttons))
|
|
1763
1796
|
return;
|
|
1764
|
-
let
|
|
1765
|
-
if (
|
|
1766
|
-
const
|
|
1767
|
-
|
|
1797
|
+
let E;
|
|
1798
|
+
if (T) {
|
|
1799
|
+
const d = T.getAttribute("id");
|
|
1800
|
+
E = Array.from(r.children).findIndex((i) => i.getAttribute("id") === d);
|
|
1768
1801
|
} else
|
|
1769
|
-
|
|
1770
|
-
const P = c.getAttribute("id"),
|
|
1771
|
-
|
|
1772
|
-
const
|
|
1773
|
-
|
|
1802
|
+
E = Array.from(r.children).length;
|
|
1803
|
+
const P = c.getAttribute("id"), u = Array.from(r.children).findIndex((d) => d.getAttribute("id") === P), l = g.buttons[u];
|
|
1804
|
+
u !== E && u > -1 && E > -1 && (u < E && (E = E - 1), g.buttons.splice(u, 1), g.buttons.splice(E, 0, l), x(), Te(() => {
|
|
1805
|
+
const d = r.querySelector(".dgComponentSelected");
|
|
1806
|
+
d != null && d.className.includes("dgComponentSelected") && (d.classList.remove("dgComponentSelected"), d.classList.remove("dgComponentFocused"), d.click()), Fe.value++;
|
|
1774
1807
|
}));
|
|
1775
1808
|
}
|
|
1776
|
-
function h(c, r,
|
|
1777
|
-
|
|
1809
|
+
function h(c, r, T) {
|
|
1810
|
+
m && m.destroy(), !(!rt || !c || !r) && (m = rt([c], {
|
|
1778
1811
|
mirrorContainer: r,
|
|
1779
1812
|
direction: "horizontal",
|
|
1780
|
-
getMirrorText(
|
|
1781
|
-
return
|
|
1813
|
+
getMirrorText(x) {
|
|
1814
|
+
return x.innerText;
|
|
1782
1815
|
},
|
|
1783
1816
|
// 判断是否可移动
|
|
1784
|
-
moves(
|
|
1817
|
+
moves(x, g, E) {
|
|
1785
1818
|
let P = !0;
|
|
1786
|
-
return
|
|
1819
|
+
return E.classList.contains("dropdown-item") ? (P = !1, P) : (x.classList.contains("no-drag") && (P = !1), P);
|
|
1787
1820
|
}
|
|
1788
|
-
}).on("drop", (
|
|
1821
|
+
}).on("drop", (x, g, E, P) => t(x, g, P, T)));
|
|
1789
1822
|
}
|
|
1790
1823
|
return {
|
|
1791
|
-
dragulaInstance:
|
|
1824
|
+
dragulaInstance: m,
|
|
1792
1825
|
initDragula: h
|
|
1793
1826
|
};
|
|
1794
1827
|
}
|
|
1795
|
-
function
|
|
1828
|
+
function Rn(e, m, t) {
|
|
1796
1829
|
const {
|
|
1797
1830
|
renderToolbarItemDesigner: h,
|
|
1798
1831
|
actionHandlers: c
|
|
1799
1832
|
} = t;
|
|
1800
1833
|
let r;
|
|
1801
|
-
function
|
|
1802
|
-
r =
|
|
1803
|
-
}
|
|
1804
|
-
function
|
|
1805
|
-
const
|
|
1806
|
-
if (
|
|
1807
|
-
if (document.body.click(), typeof
|
|
1808
|
-
|
|
1834
|
+
function T(j) {
|
|
1835
|
+
r = j;
|
|
1836
|
+
}
|
|
1837
|
+
function x(j, D = null) {
|
|
1838
|
+
const b = m.value.find((O) => O.id === j.id);
|
|
1839
|
+
if (b.isDP)
|
|
1840
|
+
if (document.body.click(), typeof D == "boolean")
|
|
1841
|
+
b.expanded = D;
|
|
1809
1842
|
else {
|
|
1810
|
-
const
|
|
1811
|
-
|
|
1843
|
+
const O = j.expanded;
|
|
1844
|
+
b.expanded = !O;
|
|
1812
1845
|
}
|
|
1813
1846
|
}
|
|
1814
|
-
c.toggleDropdownMenu =
|
|
1815
|
-
function
|
|
1816
|
-
var
|
|
1817
|
-
const
|
|
1847
|
+
c.toggleDropdownMenu = x;
|
|
1848
|
+
function g(j) {
|
|
1849
|
+
var b;
|
|
1850
|
+
const D = {
|
|
1818
1851
|
"dropdown-menu": !0
|
|
1819
1852
|
};
|
|
1820
|
-
if (
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1853
|
+
if (j.class) {
|
|
1854
|
+
const O = (b = j.menuClass) == null ? void 0 : b.split(" ");
|
|
1855
|
+
O && O.length && O.reduce((p, o) => (p[o] = !0, p), D);
|
|
1823
1856
|
}
|
|
1824
|
-
return
|
|
1857
|
+
return D;
|
|
1825
1858
|
}
|
|
1826
|
-
function
|
|
1827
|
-
var
|
|
1828
|
-
const
|
|
1829
|
-
disabled:
|
|
1859
|
+
function E(j) {
|
|
1860
|
+
var O;
|
|
1861
|
+
const D = {
|
|
1862
|
+
disabled: j.disabled === !1,
|
|
1830
1863
|
"dropdown-submenu": !0,
|
|
1831
1864
|
"f-rt-dropdown": !0,
|
|
1832
1865
|
"text-truncate": !0
|
|
1833
|
-
},
|
|
1834
|
-
return
|
|
1866
|
+
}, b = (O = j.dropdownClass) == null ? void 0 : O.split(" ");
|
|
1867
|
+
return b && b.length && b.reduce((p, o) => (p[o] = !0, p), D), D;
|
|
1835
1868
|
}
|
|
1836
|
-
function P(
|
|
1837
|
-
const
|
|
1869
|
+
function P(j) {
|
|
1870
|
+
const D = {
|
|
1838
1871
|
disabled: !1,
|
|
1839
1872
|
"dropdown-item": !0,
|
|
1840
1873
|
"f-rt-btn": !0,
|
|
1841
1874
|
"position-relative": !0,
|
|
1842
1875
|
"farris-component": !0,
|
|
1843
1876
|
"text-truncate": !0
|
|
1844
|
-
},
|
|
1845
|
-
return
|
|
1877
|
+
}, b = (j.class || "").split(" ");
|
|
1878
|
+
return b && b.length && b.reduce((O, p) => (O[p] = !0, O), D), D;
|
|
1846
1879
|
}
|
|
1847
|
-
let
|
|
1880
|
+
let u;
|
|
1848
1881
|
const l = /* @__PURE__ */ new Map();
|
|
1849
|
-
function
|
|
1850
|
-
|
|
1851
|
-
const
|
|
1852
|
-
if (
|
|
1853
|
-
if (l.has(
|
|
1854
|
-
const
|
|
1855
|
-
|
|
1882
|
+
function d(j, D, b) {
|
|
1883
|
+
j.stopPropagation();
|
|
1884
|
+
const O = b ? b.id : "__top_item__";
|
|
1885
|
+
if (D.children && D.children.length && (D.expanded = !D.expanded, D.expanded)) {
|
|
1886
|
+
if (l.has(O) && l.get(O) !== D) {
|
|
1887
|
+
const p = l.get(O);
|
|
1888
|
+
p && (p.expanded = !1, l.delete(O));
|
|
1856
1889
|
}
|
|
1857
|
-
l.set(
|
|
1890
|
+
l.set(O, D);
|
|
1858
1891
|
}
|
|
1859
1892
|
}
|
|
1860
|
-
function i(
|
|
1861
|
-
var
|
|
1862
|
-
return (
|
|
1863
|
-
class:
|
|
1864
|
-
id:
|
|
1865
|
-
}, [
|
|
1866
|
-
class: P(
|
|
1867
|
-
onClick: (
|
|
1868
|
-
}, [
|
|
1893
|
+
function i(j) {
|
|
1894
|
+
var D;
|
|
1895
|
+
return (D = j.children) == null ? void 0 : D.map((b, O) => b.children && b.children.length ? L("li", {
|
|
1896
|
+
class: E(b),
|
|
1897
|
+
id: b.id
|
|
1898
|
+
}, [L("span", {
|
|
1899
|
+
class: P(b),
|
|
1900
|
+
onClick: (p) => d(p, b, j)
|
|
1901
|
+
}, [b.text, L("i", {
|
|
1869
1902
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1870
1903
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1871
|
-
}, null)]),
|
|
1904
|
+
}, null)]), u(b, b)]) : h(b, O, !0));
|
|
1872
1905
|
}
|
|
1873
|
-
function n(
|
|
1906
|
+
function n(j) {
|
|
1907
|
+
return j === "page-header" || j === "drawer-header-toolbar";
|
|
1908
|
+
}
|
|
1909
|
+
function S(j, D, b, O) {
|
|
1874
1910
|
const {
|
|
1875
|
-
height:
|
|
1876
|
-
left:
|
|
1877
|
-
top:
|
|
1878
|
-
} =
|
|
1879
|
-
width:
|
|
1880
|
-
height:
|
|
1881
|
-
} =
|
|
1882
|
-
marginTop:
|
|
1883
|
-
marginBottom:
|
|
1884
|
-
} = getComputedStyle(
|
|
1885
|
-
function
|
|
1886
|
-
let
|
|
1887
|
-
const
|
|
1888
|
-
return
|
|
1889
|
-
hposition:
|
|
1890
|
-
maxWidth: Math.min(
|
|
1911
|
+
height: F,
|
|
1912
|
+
left: I,
|
|
1913
|
+
top: f
|
|
1914
|
+
} = O[0], {
|
|
1915
|
+
width: y,
|
|
1916
|
+
height: s
|
|
1917
|
+
} = b.getBoundingClientRect(), {
|
|
1918
|
+
marginTop: v,
|
|
1919
|
+
marginBottom: k
|
|
1920
|
+
} = getComputedStyle(b), M = Math.ceil(parseFloat(v)) + Math.ceil(parseFloat(k)), W = f + F, Y = D == null ? void 0 : D.getBoundingClientRect();
|
|
1921
|
+
function X() {
|
|
1922
|
+
let U = 0, H = "left";
|
|
1923
|
+
const q = Y ? Y.right : window.innerWidth, te = Y ? Y.left : 0;
|
|
1924
|
+
return U = q - I - 10, q - I < y && I - te > q - I && (H = "right", U = I - te - 10), {
|
|
1925
|
+
hposition: H,
|
|
1926
|
+
maxWidth: Math.min(U, 300)
|
|
1891
1927
|
};
|
|
1892
1928
|
}
|
|
1893
|
-
let
|
|
1894
|
-
if (
|
|
1895
|
-
|
|
1929
|
+
let $ = 0, N = "bottom";
|
|
1930
|
+
if (j === "tabs" || j === "section")
|
|
1931
|
+
$ = D.getBoundingClientRect().bottom - W - M - 10;
|
|
1896
1932
|
else {
|
|
1897
|
-
const
|
|
1898
|
-
|
|
1933
|
+
const U = Y ? Y.bottom : window.innerHeight;
|
|
1934
|
+
$ = n(j) ? U - W : f, $ = $ - M - 10, N = n(j) ? "bottom" : "top";
|
|
1899
1935
|
}
|
|
1900
|
-
const
|
|
1936
|
+
const V = X();
|
|
1901
1937
|
return {
|
|
1902
|
-
position:
|
|
1903
|
-
maxWidth:
|
|
1904
|
-
maxHeight:
|
|
1938
|
+
position: N + "-" + V.hposition,
|
|
1939
|
+
maxWidth: V.maxWidth,
|
|
1940
|
+
maxHeight: $
|
|
1905
1941
|
};
|
|
1906
1942
|
}
|
|
1907
|
-
function
|
|
1908
|
-
var
|
|
1909
|
-
const
|
|
1910
|
-
display:
|
|
1943
|
+
function B(j) {
|
|
1944
|
+
var o, F, I, f;
|
|
1945
|
+
const D = "300px", b = {
|
|
1946
|
+
display: j.expanded === !0 ? "block" : "none",
|
|
1911
1947
|
position: "absolute",
|
|
1912
|
-
maxWidth:
|
|
1948
|
+
maxWidth: D,
|
|
1913
1949
|
minWidth: "120px"
|
|
1914
1950
|
};
|
|
1915
1951
|
if (!(r != null && r.value))
|
|
1916
|
-
return
|
|
1917
|
-
const
|
|
1918
|
-
if (
|
|
1919
|
-
const
|
|
1920
|
-
if (!
|
|
1921
|
-
return
|
|
1922
|
-
|
|
1923
|
-
let
|
|
1952
|
+
return b;
|
|
1953
|
+
const O = r.value.querySelector("#" + j.id), p = O == null ? void 0 : O.getClientRects();
|
|
1954
|
+
if (O && p && p.length > 0) {
|
|
1955
|
+
const y = O ? O.querySelector("#" + j.id + "_menu") : null;
|
|
1956
|
+
if (!y || j.expanded !== !0)
|
|
1957
|
+
return b;
|
|
1958
|
+
y.style.visibility = "hidden", y.style.display = "block", y.style.maxHeight = "auto", y.style.maxWidth = D;
|
|
1959
|
+
let s;
|
|
1924
1960
|
switch (c.toolbarPosition) {
|
|
1925
1961
|
case "tabs":
|
|
1926
|
-
|
|
1962
|
+
s = (o = r.value) == null ? void 0 : o.closest(".farris-tabs");
|
|
1927
1963
|
break;
|
|
1928
1964
|
case "section":
|
|
1929
|
-
|
|
1965
|
+
s = (F = r.value) == null ? void 0 : F.closest(".f-section");
|
|
1966
|
+
break;
|
|
1967
|
+
case "drawer-header-toolbar":
|
|
1968
|
+
case "drawer-footer-toolbar":
|
|
1969
|
+
s = (I = r.value) == null ? void 0 : I.closest(".f-drawer-container");
|
|
1930
1970
|
break;
|
|
1931
1971
|
default:
|
|
1932
|
-
|
|
1972
|
+
s = (f = r.value) == null ? void 0 : f.closest(".f-page");
|
|
1933
1973
|
}
|
|
1934
|
-
const
|
|
1935
|
-
position:
|
|
1936
|
-
maxHeight:
|
|
1937
|
-
maxWidth:
|
|
1938
|
-
} =
|
|
1939
|
-
|
|
1940
|
-
const
|
|
1941
|
-
left:
|
|
1942
|
-
right:
|
|
1943
|
-
bottom:
|
|
1944
|
-
top:
|
|
1945
|
-
maxWidth:
|
|
1946
|
-
maxHeight:
|
|
1947
|
-
overflowY:
|
|
1974
|
+
const v = S(c.toolbarPosition, s, y, p), {
|
|
1975
|
+
position: k,
|
|
1976
|
+
maxHeight: M,
|
|
1977
|
+
maxWidth: W
|
|
1978
|
+
} = v;
|
|
1979
|
+
y.style.visibility = "visible";
|
|
1980
|
+
const Y = {
|
|
1981
|
+
left: k.indexOf("left") > -1 ? 0 : "unset",
|
|
1982
|
+
right: k.indexOf("left") > -1 ? "unset" : 0,
|
|
1983
|
+
bottom: k.indexOf("bottom") > -1 ? "unset" : "100%",
|
|
1984
|
+
top: k.indexOf("bottom") > -1 ? "!00%" : "unset",
|
|
1985
|
+
maxWidth: W ? W + "px" : "300px",
|
|
1986
|
+
maxHeight: M ? M + "px" : "auto",
|
|
1987
|
+
overflowY: M ? "auto" : "unset"
|
|
1948
1988
|
};
|
|
1949
|
-
Object.assign(
|
|
1989
|
+
Object.assign(b, Y);
|
|
1950
1990
|
}
|
|
1951
|
-
return
|
|
1952
|
-
}
|
|
1953
|
-
c.changeMenuPosition =
|
|
1954
|
-
return
|
|
1955
|
-
class:
|
|
1956
|
-
style:
|
|
1957
|
-
id:
|
|
1958
|
-
}, [i(
|
|
1991
|
+
return b;
|
|
1992
|
+
}
|
|
1993
|
+
c.changeMenuPosition = B, u = function(j, D) {
|
|
1994
|
+
return L("ul", {
|
|
1995
|
+
class: g(j),
|
|
1996
|
+
style: B(j),
|
|
1997
|
+
id: j.id + "_menu"
|
|
1998
|
+
}, [i(j)]);
|
|
1959
1999
|
};
|
|
1960
|
-
function
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
}) : (l.forEach((
|
|
1964
|
-
|
|
2000
|
+
function G(j = "") {
|
|
2001
|
+
j && l.has(j) ? l.forEach((D, b) => {
|
|
2002
|
+
b !== j && (D.expanded = !1, l.delete(b));
|
|
2003
|
+
}) : (l.forEach((D) => {
|
|
2004
|
+
D.expanded = !1;
|
|
1965
2005
|
}), l.clear());
|
|
1966
2006
|
}
|
|
1967
2007
|
return {
|
|
1968
|
-
renderDropdownMenu:
|
|
1969
|
-
clearAllDropDownMenu:
|
|
1970
|
-
setResponseToolbarRef:
|
|
2008
|
+
renderDropdownMenu: u,
|
|
2009
|
+
clearAllDropDownMenu: G,
|
|
2010
|
+
setResponseToolbarRef: T
|
|
1971
2011
|
};
|
|
1972
2012
|
}
|
|
1973
|
-
class
|
|
2013
|
+
class On extends dt {
|
|
1974
2014
|
constructor(t, h, c = "response-toolbar-item") {
|
|
1975
2015
|
super(t, h);
|
|
1976
|
-
|
|
2016
|
+
J(this, "toolbarType", "response-toolbar-item");
|
|
1977
2017
|
this.toolbarType = c;
|
|
1978
2018
|
}
|
|
1979
2019
|
/**
|
|
@@ -2059,133 +2099,133 @@ class Mn extends ut {
|
|
|
2059
2099
|
label: "onClick",
|
|
2060
2100
|
name: "点击事件"
|
|
2061
2101
|
}
|
|
2062
|
-
], c = this, r = c.eventsEditorUtils.formProperties(t, c.viewModelId, h),
|
|
2102
|
+
], c = this, r = c.eventsEditorUtils.formProperties(t, c.viewModelId, h), T = c.createBaseEventProperty(r);
|
|
2063
2103
|
this.propertyConfig.categories.eventsEditor = {
|
|
2064
2104
|
title: "事件",
|
|
2065
2105
|
hideTitle: !0,
|
|
2066
|
-
properties:
|
|
2106
|
+
properties: T,
|
|
2067
2107
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2068
2108
|
refreshPanelAfterChanged: !0,
|
|
2069
2109
|
tabId: "commands",
|
|
2070
2110
|
tabName: "交互",
|
|
2071
|
-
setPropertyRelates(
|
|
2072
|
-
const
|
|
2073
|
-
delete t[c.viewModelId],
|
|
2111
|
+
setPropertyRelates(x, g) {
|
|
2112
|
+
const E = x.propertyValue;
|
|
2113
|
+
delete t[c.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, c.eventsEditorUtils.saveRelatedParameters(t, c.viewModelId, E.events, E));
|
|
2074
2114
|
}
|
|
2075
2115
|
};
|
|
2076
2116
|
}
|
|
2077
2117
|
}
|
|
2078
|
-
function
|
|
2118
|
+
function We(e, m) {
|
|
2079
2119
|
if (!e)
|
|
2080
2120
|
return !1;
|
|
2081
|
-
const t =
|
|
2121
|
+
const t = m || [];
|
|
2082
2122
|
return (t == null ? void 0 : t.findIndex((c) => c.id === e)) === -1;
|
|
2083
2123
|
}
|
|
2084
|
-
function
|
|
2085
|
-
const t =
|
|
2124
|
+
function it(e, m) {
|
|
2125
|
+
const t = m || [];
|
|
2086
2126
|
let h = { parentIndex: -1, itemIndex: -1 };
|
|
2087
2127
|
return t.some((c, r) => {
|
|
2088
2128
|
if (c.children && c.children.length > 0) {
|
|
2089
|
-
const
|
|
2090
|
-
return
|
|
2129
|
+
const T = c.children.findIndex((x) => x.id === e);
|
|
2130
|
+
return T > -1 ? (h = { parentIndex: r, itemIndex: T }, !0) : !1;
|
|
2091
2131
|
}
|
|
2092
2132
|
}), h;
|
|
2093
2133
|
}
|
|
2094
|
-
function
|
|
2095
|
-
const t =
|
|
2134
|
+
function st(e, m) {
|
|
2135
|
+
const t = m || [];
|
|
2096
2136
|
let h = { parentIndex: -1, itemIndex: -1 };
|
|
2097
2137
|
const c = t == null ? void 0 : t.findIndex((r) => r.id === e);
|
|
2098
|
-
return c > -1 ? { parent: null, item: t[c] } : (t.some((r,
|
|
2138
|
+
return c > -1 ? { parent: null, item: t[c] } : (t.some((r, T) => {
|
|
2099
2139
|
if (r.children && r.children.length > 0) {
|
|
2100
|
-
const
|
|
2101
|
-
return
|
|
2140
|
+
const x = r.children.findIndex((g) => g.id === e);
|
|
2141
|
+
return x > -1 ? (h = { parentIndex: T, itemIndex: x }, !0) : !1;
|
|
2102
2142
|
}
|
|
2103
2143
|
}), h.parentIndex < 0 ? { parent: null, item: null } : { parent: t[h.parentIndex], item: t[h.parentIndex].children[h.itemIndex] });
|
|
2104
2144
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const t =
|
|
2145
|
+
function Bn(e, m) {
|
|
2146
|
+
const t = m || [], h = t == null ? void 0 : t.findIndex((c) => c.id === e);
|
|
2107
2147
|
return h > -1 && t[h].children && t[h].children.length > 0 ? t[h].expanded === !0 : !1;
|
|
2108
2148
|
}
|
|
2109
|
-
function
|
|
2149
|
+
function jn(e, m) {
|
|
2110
2150
|
let t;
|
|
2111
|
-
function h(
|
|
2112
|
-
const { properties: l, title:
|
|
2113
|
-
if (
|
|
2114
|
-
const B =
|
|
2115
|
-
|
|
2151
|
+
function h(u) {
|
|
2152
|
+
const { properties: l, title: d, ignore: i } = u, n = i && Array.isArray(i), S = Object.keys(l).reduce((B, G) => ((!n || !i.find((j) => j === G)) && (B[G] = l[G].type === "object" && l[G].properties ? h(l[G]) : Ce(l[G].default)), B), {});
|
|
2153
|
+
if (d && (!n || !i.find((B) => B === "id"))) {
|
|
2154
|
+
const B = d.toLowerCase().replace(/-/g, "_");
|
|
2155
|
+
S.id = `${B}_${Math.random().toString().slice(2, 6)}`;
|
|
2116
2156
|
}
|
|
2117
|
-
return
|
|
2157
|
+
return S;
|
|
2118
2158
|
}
|
|
2119
|
-
function c(
|
|
2120
|
-
const { properties: l, title:
|
|
2159
|
+
function c(u) {
|
|
2160
|
+
const { properties: l, title: d, required: i } = u;
|
|
2121
2161
|
if (i && Array.isArray(i)) {
|
|
2122
|
-
const n = i.reduce((
|
|
2123
|
-
if (
|
|
2124
|
-
const
|
|
2125
|
-
n.id = `${
|
|
2162
|
+
const n = i.reduce((S, B) => (S[B] = l[B].type === "object" && l[B].properties ? h(l[B]) : Ce(l[B].default), S), {});
|
|
2163
|
+
if (d && i.find((S) => S === "id")) {
|
|
2164
|
+
const S = d.toLowerCase().replace(/-/g, "_");
|
|
2165
|
+
n.id = `${S}_${Math.random().toString().slice(2, 6)}`;
|
|
2126
2166
|
}
|
|
2127
2167
|
return n;
|
|
2128
2168
|
}
|
|
2129
2169
|
return {
|
|
2130
|
-
type:
|
|
2170
|
+
type: d
|
|
2131
2171
|
};
|
|
2132
2172
|
}
|
|
2133
|
-
function r(
|
|
2134
|
-
const i = e[
|
|
2173
|
+
function r(u, l = {}, d) {
|
|
2174
|
+
const i = e[u];
|
|
2135
2175
|
if (i) {
|
|
2136
2176
|
let n = c(i);
|
|
2137
|
-
const
|
|
2138
|
-
return n =
|
|
2177
|
+
const S = m[u];
|
|
2178
|
+
return n = S ? S({ getSchemaByType: r }, n, l, d) : n, t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(n), n;
|
|
2139
2179
|
}
|
|
2140
2180
|
return null;
|
|
2141
2181
|
}
|
|
2142
|
-
function
|
|
2143
|
-
const
|
|
2144
|
-
return Object.keys(
|
|
2182
|
+
function T(u, l) {
|
|
2183
|
+
const d = h(l);
|
|
2184
|
+
return Object.keys(d).reduce((i, n) => (Object.prototype.hasOwnProperty.call(u, n) && (i[n] && nt(i[n]) && nt(u[n] || !u[n]) ? Object.assign(i[n], u[n] || {}) : i[n] = u[n]), i), d), d;
|
|
2145
2185
|
}
|
|
2146
|
-
function
|
|
2147
|
-
return Object.keys(
|
|
2186
|
+
function x(u, l) {
|
|
2187
|
+
return Object.keys(u).filter((i) => u[i] != null).reduce((i, n) => {
|
|
2148
2188
|
if (l.has(n)) {
|
|
2149
|
-
const
|
|
2150
|
-
if (typeof
|
|
2151
|
-
i[
|
|
2189
|
+
const S = l.get(n);
|
|
2190
|
+
if (typeof S == "string")
|
|
2191
|
+
i[S] = u[n];
|
|
2152
2192
|
else {
|
|
2153
|
-
const B =
|
|
2193
|
+
const B = S(n, u[n], u);
|
|
2154
2194
|
Object.assign(i, B);
|
|
2155
2195
|
}
|
|
2156
2196
|
} else
|
|
2157
|
-
i[n] =
|
|
2197
|
+
i[n] = u[n];
|
|
2158
2198
|
return i;
|
|
2159
2199
|
}, {});
|
|
2160
2200
|
}
|
|
2161
|
-
function
|
|
2162
|
-
const i =
|
|
2163
|
-
return
|
|
2201
|
+
function g(u, l, d = /* @__PURE__ */ new Map()) {
|
|
2202
|
+
const i = T(u, l);
|
|
2203
|
+
return x(i, d);
|
|
2164
2204
|
}
|
|
2165
|
-
function
|
|
2166
|
-
var
|
|
2167
|
-
const l =
|
|
2205
|
+
function E(u) {
|
|
2206
|
+
var d;
|
|
2207
|
+
const l = u.type;
|
|
2168
2208
|
if (l) {
|
|
2169
2209
|
const i = e[l];
|
|
2170
2210
|
if (!i)
|
|
2171
|
-
return
|
|
2172
|
-
const n =
|
|
2173
|
-
if (
|
|
2174
|
-
const B = e[
|
|
2175
|
-
n.editor =
|
|
2211
|
+
return u;
|
|
2212
|
+
const n = T(u, i), S = ((d = u.editor) == null ? void 0 : d.type) || "";
|
|
2213
|
+
if (S) {
|
|
2214
|
+
const B = e[S], G = T(u.editor, B);
|
|
2215
|
+
n.editor = G;
|
|
2176
2216
|
}
|
|
2177
2217
|
return n;
|
|
2178
2218
|
}
|
|
2179
|
-
return
|
|
2219
|
+
return u;
|
|
2180
2220
|
}
|
|
2181
|
-
function P(
|
|
2182
|
-
t =
|
|
2221
|
+
function P(u) {
|
|
2222
|
+
t = u;
|
|
2183
2223
|
}
|
|
2184
|
-
return { getSchemaByType: r, resolveSchemaWithDefaultValue:
|
|
2224
|
+
return { getSchemaByType: r, resolveSchemaWithDefaultValue: E, resolveSchemaToProps: g, mappingSchemaToProps: x, setDesignerContext: P };
|
|
2185
2225
|
}
|
|
2186
|
-
const
|
|
2187
|
-
function
|
|
2188
|
-
function h(
|
|
2226
|
+
const An = {}, _n = {}, { getSchemaByType: $n } = jn(An, _n);
|
|
2227
|
+
function Ln(e, m, t) {
|
|
2228
|
+
function h(y) {
|
|
2189
2229
|
return !1;
|
|
2190
2230
|
}
|
|
2191
2231
|
function c() {
|
|
@@ -2194,160 +2234,160 @@ function _n(e, b, t) {
|
|
|
2194
2234
|
function r() {
|
|
2195
2235
|
return !1;
|
|
2196
2236
|
}
|
|
2197
|
-
function
|
|
2237
|
+
function T() {
|
|
2198
2238
|
return !1;
|
|
2199
2239
|
}
|
|
2200
|
-
function
|
|
2240
|
+
function x() {
|
|
2201
2241
|
return t.toolbarContext.schema.buttons || [];
|
|
2202
2242
|
}
|
|
2203
|
-
function
|
|
2243
|
+
function g(y, s = "") {
|
|
2204
2244
|
setTimeout(() => {
|
|
2205
|
-
var
|
|
2206
|
-
const
|
|
2207
|
-
let
|
|
2208
|
-
s && (
|
|
2209
|
-
const
|
|
2210
|
-
|
|
2245
|
+
var W, Y;
|
|
2246
|
+
const v = (W = e.parent) == null ? void 0 : W.designerItemElementRef.value;
|
|
2247
|
+
let k;
|
|
2248
|
+
s && (k = v == null ? void 0 : v.querySelector("#" + s));
|
|
2249
|
+
const M = (Y = k || v) == null ? void 0 : Y.querySelector("#" + y);
|
|
2250
|
+
M == null || M.click();
|
|
2211
2251
|
}, 0);
|
|
2212
2252
|
}
|
|
2213
|
-
function
|
|
2253
|
+
function E(y, s) {
|
|
2214
2254
|
s.disabled && s.disabled.expressionId && (s.disabled.expressionId = `${s.id}_disabled`), s.visible && s.visible.expressionId && (s.visible.expressionId = `${s.id}_visible`);
|
|
2215
|
-
const
|
|
2216
|
-
if (!
|
|
2255
|
+
const v = m.formSchemaUtils.getExpressions(), k = v.find((W) => W.target === y.id);
|
|
2256
|
+
if (!k || !k.rules || !k.rules.length)
|
|
2217
2257
|
return;
|
|
2218
|
-
const
|
|
2258
|
+
const M = {
|
|
2219
2259
|
target: s.id,
|
|
2220
2260
|
rules: [],
|
|
2221
2261
|
targetType: "Button"
|
|
2222
2262
|
};
|
|
2223
|
-
|
|
2224
|
-
const
|
|
2225
|
-
id: `${s.id}_${
|
|
2263
|
+
k.rules.forEach((W) => {
|
|
2264
|
+
const Y = Object.assign(Ce(W), {
|
|
2265
|
+
id: `${s.id}_${W.type}`
|
|
2226
2266
|
});
|
|
2227
|
-
|
|
2228
|
-
}),
|
|
2267
|
+
M.rules.push(Y);
|
|
2268
|
+
}), v.push(M);
|
|
2229
2269
|
}
|
|
2230
2270
|
function P() {
|
|
2231
|
-
var
|
|
2232
|
-
const
|
|
2233
|
-
|
|
2271
|
+
var k;
|
|
2272
|
+
const y = e.schema, s = Object.assign(
|
|
2273
|
+
Ce(y),
|
|
2234
2274
|
{
|
|
2235
2275
|
id: `${e.schema.type}-cloned-${Math.random().toString(36).slice(2, 6)}`,
|
|
2236
2276
|
onClick: null
|
|
2237
2277
|
}
|
|
2238
2278
|
);
|
|
2239
|
-
(
|
|
2240
|
-
let
|
|
2241
|
-
return s.children && s.children.length && (
|
|
2242
|
-
var
|
|
2243
|
-
const
|
|
2279
|
+
(k = m == null ? void 0 : m.designerContext) != null && k.appendIdentifyForNewControl && m.designerContext.appendIdentifyForNewControl(s);
|
|
2280
|
+
let v = [];
|
|
2281
|
+
return s.children && s.children.length && (v = s.children.map((M) => {
|
|
2282
|
+
var Y;
|
|
2283
|
+
const W = Ce(M);
|
|
2244
2284
|
return Object.assign(
|
|
2245
|
-
|
|
2285
|
+
W,
|
|
2246
2286
|
{
|
|
2247
2287
|
id: `${e.schema.type}-cloned-${Math.random().toString(36).slice(2, 6)}`,
|
|
2248
2288
|
onClick: null
|
|
2249
2289
|
}
|
|
2250
|
-
), (
|
|
2251
|
-
}), s.children =
|
|
2290
|
+
), (Y = m == null ? void 0 : m.designerContext) != null && Y.appendIdentifyForNewControl && m.designerContext.appendIdentifyForNewControl(W), E(M, W), W;
|
|
2291
|
+
}), s.children = v), E(y, s), s;
|
|
2252
2292
|
}
|
|
2253
|
-
function
|
|
2254
|
-
const
|
|
2255
|
-
return s && !s.id && s.type ===
|
|
2293
|
+
function u() {
|
|
2294
|
+
const y = e.schema.type || "response-toolbar-item", s = $n(y), v = y.toLowerCase().replace("-", "_");
|
|
2295
|
+
return s && !s.id && s.type === y && (s.id = `${v}_${Math.random().toString().slice(2, 6)}`, s.text = "按钮"), s;
|
|
2256
2296
|
}
|
|
2257
|
-
function l(
|
|
2258
|
-
const s =
|
|
2259
|
-
return { index:
|
|
2297
|
+
function l(y) {
|
|
2298
|
+
const s = x(), v = s == null ? void 0 : s.findIndex((M) => M.id === y), k = v === -1 ? null : s[v];
|
|
2299
|
+
return { index: v, toolbarItem: k };
|
|
2260
2300
|
}
|
|
2261
|
-
function
|
|
2262
|
-
const
|
|
2263
|
-
return
|
|
2301
|
+
function d() {
|
|
2302
|
+
const y = e.schema.id, s = x();
|
|
2303
|
+
return We(y, s);
|
|
2264
2304
|
}
|
|
2265
|
-
function i(
|
|
2266
|
-
const s =
|
|
2305
|
+
function i(y) {
|
|
2306
|
+
const s = m.formSchemaUtils.getExpressions();
|
|
2267
2307
|
if (!s || !s.length)
|
|
2268
2308
|
return;
|
|
2269
|
-
const
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2309
|
+
const v = (k) => {
|
|
2310
|
+
const M = s && s.findIndex((W) => W.target === k.id);
|
|
2311
|
+
M > -1 && s.splice(M, 1);
|
|
2272
2312
|
};
|
|
2273
|
-
|
|
2274
|
-
|
|
2313
|
+
v(y), y.children && y.children.length && y.children.forEach((k) => {
|
|
2314
|
+
v(k);
|
|
2275
2315
|
});
|
|
2276
2316
|
}
|
|
2277
|
-
function n(
|
|
2278
|
-
t.changeSelectedId(
|
|
2317
|
+
function n(y) {
|
|
2318
|
+
t.changeSelectedId(y);
|
|
2279
2319
|
}
|
|
2280
|
-
function
|
|
2281
|
-
|
|
2282
|
-
|
|
2320
|
+
function S(y) {
|
|
2321
|
+
m.formSchemaUtils.removeCommunicationInComponent(y), y.children && y.children.length && y.children.forEach((s) => {
|
|
2322
|
+
m.formSchemaUtils.removeCommunicationInComponent(s);
|
|
2283
2323
|
});
|
|
2284
2324
|
}
|
|
2285
2325
|
function B() {
|
|
2286
|
-
var
|
|
2287
|
-
if ((
|
|
2326
|
+
var k, M, W;
|
|
2327
|
+
if ((k = m == null ? void 0 : m.designerContext) != null && k.checkCanDeleteControl && !m.designerContext.checkCanDeleteControl(e.schema))
|
|
2288
2328
|
return;
|
|
2289
|
-
const
|
|
2290
|
-
s === -1 ||
|
|
2329
|
+
const y = x(), { parentIndex: s, itemIndex: v } = it(e.schema.id, y);
|
|
2330
|
+
s === -1 || v === -1 || (i(e.schema), S(e.schema), y[s].children.splice(v, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (W = e.setupContext) == null || W.emit("selectionChange"), Fe.value++);
|
|
2291
2331
|
}
|
|
2292
|
-
function
|
|
2293
|
-
var
|
|
2294
|
-
if ((
|
|
2332
|
+
function G() {
|
|
2333
|
+
var k, M, W;
|
|
2334
|
+
if ((k = m == null ? void 0 : m.designerContext) != null && k.checkCanDeleteControl && !m.designerContext.checkCanDeleteControl(e.schema))
|
|
2295
2335
|
return;
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2336
|
+
const y = e.schema.id, s = x(), v = s == null ? void 0 : s.findIndex((Y) => Y.id === y);
|
|
2337
|
+
v !== -1 && (i(s[v]), S(s[v]), s == null || s.splice(v, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (W = e.setupContext) == null || W.emit("selectionChange"), Fe.value++);
|
|
2298
2338
|
}
|
|
2299
|
-
function j(
|
|
2300
|
-
var
|
|
2301
|
-
const s =
|
|
2302
|
-
if (
|
|
2339
|
+
function j(y = "Append") {
|
|
2340
|
+
var Y;
|
|
2341
|
+
const s = x(), { parentIndex: v, itemIndex: k } = it(e.schema.id, s);
|
|
2342
|
+
if (v === -1 || k === -1)
|
|
2303
2343
|
return;
|
|
2304
|
-
const
|
|
2305
|
-
s[
|
|
2306
|
-
}
|
|
2307
|
-
function
|
|
2308
|
-
const { index:
|
|
2309
|
-
if (
|
|
2310
|
-
return { index:
|
|
2311
|
-
const
|
|
2312
|
-
return { index:
|
|
2313
|
-
}
|
|
2314
|
-
function
|
|
2315
|
-
var
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2318
|
-
}
|
|
2319
|
-
function
|
|
2320
|
-
var
|
|
2321
|
-
const
|
|
2322
|
-
if (
|
|
2323
|
-
const
|
|
2324
|
-
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2344
|
+
const M = u(), W = y === "Copy" ? P() : Object.assign({}, M);
|
|
2345
|
+
s[v].children.splice(k + 1, 0, W), t.updateToolbarItems(), n(W.id), (Y = e.setupContext) == null || Y.emit("addComponent");
|
|
2346
|
+
}
|
|
2347
|
+
function D(y, s) {
|
|
2348
|
+
const { index: v } = l(s);
|
|
2349
|
+
if (v === -1)
|
|
2350
|
+
return { index: v, schema: null };
|
|
2351
|
+
const k = u(), M = y === "Copy" ? P() : Object.assign({}, k);
|
|
2352
|
+
return { index: v, schema: M };
|
|
2353
|
+
}
|
|
2354
|
+
function b() {
|
|
2355
|
+
var k;
|
|
2356
|
+
const y = e.schema.id, { index: s, schema: v } = D("Copy", y);
|
|
2357
|
+
v && (x().splice(s + 1, 0, v), t.updateToolbarItems(), g(v.id), (k = e.setupContext) == null || k.emit("addComponent"));
|
|
2358
|
+
}
|
|
2359
|
+
function O() {
|
|
2360
|
+
var k;
|
|
2361
|
+
const y = e.schema.id, { index: s, schema: v } = D("Append", y);
|
|
2362
|
+
if (v && e.parent) {
|
|
2363
|
+
const W = x()[s].children || [];
|
|
2364
|
+
W.push(v);
|
|
2365
|
+
const Y = x();
|
|
2366
|
+
Y[s].children = W, t.updateToolbarItems(), n(v.id), (k = e.setupContext) == null || k.emit("addComponent");
|
|
2327
2367
|
}
|
|
2328
2368
|
}
|
|
2329
|
-
function
|
|
2369
|
+
function p(y) {
|
|
2330
2370
|
let s;
|
|
2331
2371
|
switch (e.schema.type) {
|
|
2332
2372
|
case "tab-toolbar-item":
|
|
2333
|
-
s = new
|
|
2373
|
+
s = new Vt(y, m);
|
|
2334
2374
|
break;
|
|
2335
2375
|
default:
|
|
2336
|
-
s = new
|
|
2376
|
+
s = new On(y, m, e.schema.type);
|
|
2337
2377
|
}
|
|
2338
|
-
return s.getPropertyConfig(e.schema,
|
|
2378
|
+
return s.getPropertyConfig(e.schema, d());
|
|
2339
2379
|
}
|
|
2340
|
-
function o(
|
|
2341
|
-
|
|
2380
|
+
function o(y) {
|
|
2381
|
+
y.stopPropagation(), y.stopImmediatePropagation();
|
|
2342
2382
|
}
|
|
2343
|
-
function
|
|
2344
|
-
const
|
|
2383
|
+
function F() {
|
|
2384
|
+
const y = [{
|
|
2345
2385
|
id: "delete",
|
|
2346
2386
|
title: "删除",
|
|
2347
2387
|
text: "",
|
|
2348
2388
|
icon: "f-icon-yxs_delete",
|
|
2349
2389
|
onClick: (s) => {
|
|
2350
|
-
o(s),
|
|
2390
|
+
o(s), d() ? B() : G();
|
|
2351
2391
|
}
|
|
2352
2392
|
}, {
|
|
2353
2393
|
id: "copy",
|
|
@@ -2355,13 +2395,13 @@ function _n(e, b, t) {
|
|
|
2355
2395
|
icon: "f-icon-yxs_copy",
|
|
2356
2396
|
onClick: (s) => {
|
|
2357
2397
|
o(s);
|
|
2358
|
-
const { activeElement:
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
})) :
|
|
2398
|
+
const { activeElement: v } = document, k = v ? v.tagName.toLowerCase() : "";
|
|
2399
|
+
k && k === "input" || k === "textarea" ? (v == null || v.blur(), Te(() => {
|
|
2400
|
+
d() ? j("Copy") : b();
|
|
2401
|
+
})) : d() ? j("Copy") : b();
|
|
2362
2402
|
}
|
|
2363
2403
|
}];
|
|
2364
|
-
return
|
|
2404
|
+
return y.push(d() ? {
|
|
2365
2405
|
id: "appendSiblingButton",
|
|
2366
2406
|
title: "",
|
|
2367
2407
|
text: "新增同级",
|
|
@@ -2375,31 +2415,32 @@ function _n(e, b, t) {
|
|
|
2375
2415
|
text: "新增子级",
|
|
2376
2416
|
icon: "f-icon-plus-circle",
|
|
2377
2417
|
onClick: (s) => {
|
|
2378
|
-
o(s),
|
|
2418
|
+
o(s), O();
|
|
2379
2419
|
}
|
|
2380
|
-
}),
|
|
2420
|
+
}), y;
|
|
2381
2421
|
}
|
|
2382
|
-
function
|
|
2383
|
-
const { schema:
|
|
2384
|
-
i(
|
|
2422
|
+
function I() {
|
|
2423
|
+
const { schema: y } = e;
|
|
2424
|
+
i(y);
|
|
2385
2425
|
}
|
|
2386
2426
|
function f() {
|
|
2387
|
-
var
|
|
2388
|
-
if (e &&
|
|
2389
|
-
const { formSchemaUtils:
|
|
2390
|
-
switch (
|
|
2427
|
+
var y, s, v, k;
|
|
2428
|
+
if (e && m) {
|
|
2429
|
+
const { formSchemaUtils: M } = m, { schema: W } = e;
|
|
2430
|
+
switch (W.type) {
|
|
2391
2431
|
case "response-toolbar-item": {
|
|
2392
|
-
|
|
2393
|
-
componentTitle:
|
|
2394
|
-
parentPathName:
|
|
2432
|
+
M.getControlBasicInfoMap().set(W.id, {
|
|
2433
|
+
componentTitle: W.text,
|
|
2434
|
+
parentPathName: W.text
|
|
2395
2435
|
});
|
|
2396
2436
|
break;
|
|
2397
2437
|
}
|
|
2398
2438
|
case "tab-toolbar-item":
|
|
2399
|
-
case "section-toolbar-item":
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2439
|
+
case "section-toolbar-item":
|
|
2440
|
+
case "drawer-toolbar-item": {
|
|
2441
|
+
let Y;
|
|
2442
|
+
const X = (y = e.parent) == null ? void 0 : y.parent;
|
|
2443
|
+
(X == null ? void 0 : X.schema.type) === "tabs" || (X == null ? void 0 : X.schema.type) === "section" || (X == null ? void 0 : X.schema.type) === "drawer" ? Y = (s = X.componentInstance) == null ? void 0 : s.value : Y = (k = (v = X == null ? void 0 : X.parent) == null ? void 0 : v.componentInstance) == null ? void 0 : k.value, Y != null && Y.setComponentBasicInfoMap && Y.setComponentBasicInfoMap();
|
|
2403
2444
|
}
|
|
2404
2445
|
}
|
|
2405
2446
|
}
|
|
@@ -2408,33 +2449,33 @@ function _n(e, b, t) {
|
|
|
2408
2449
|
canAccepts: h,
|
|
2409
2450
|
checkCanMoveComponent: c,
|
|
2410
2451
|
checkCanDeleteComponent: r,
|
|
2411
|
-
checkCanAddComponent:
|
|
2412
|
-
getPropsConfig:
|
|
2413
|
-
getCustomButtons:
|
|
2414
|
-
onRemoveComponent:
|
|
2452
|
+
checkCanAddComponent: T,
|
|
2453
|
+
getPropsConfig: p,
|
|
2454
|
+
getCustomButtons: F,
|
|
2455
|
+
onRemoveComponent: I,
|
|
2415
2456
|
setComponentBasicInfoMap: f
|
|
2416
2457
|
};
|
|
2417
2458
|
}
|
|
2418
|
-
const
|
|
2459
|
+
const vt = /* @__PURE__ */ ze({
|
|
2419
2460
|
name: "FResponseToolbarItemDesign",
|
|
2420
|
-
props:
|
|
2461
|
+
props: pt,
|
|
2421
2462
|
emits: ["Click", "dropdown", "clearAll"],
|
|
2422
|
-
setup(e,
|
|
2423
|
-
const t =
|
|
2424
|
-
|
|
2425
|
-
c.value.componentInstance =
|
|
2426
|
-
}),
|
|
2463
|
+
setup(e, m) {
|
|
2464
|
+
const t = oe(e.alignment), h = Ye(), c = oe(), r = xe("designer-host-service"), T = xe("design-item-context"), x = xe("toolbar-item-action"), g = Ln(T, r, x), E = Ut(c, T, g);
|
|
2465
|
+
Ge(() => {
|
|
2466
|
+
c.value.componentInstance = E;
|
|
2467
|
+
}), m.expose(E.value);
|
|
2427
2468
|
function P() {
|
|
2428
|
-
const
|
|
2469
|
+
const D = {
|
|
2429
2470
|
"f-icon": !0
|
|
2430
|
-
},
|
|
2431
|
-
return
|
|
2471
|
+
}, b = e.icon ? e.icon.trim() : "";
|
|
2472
|
+
return re(D, b);
|
|
2432
2473
|
}
|
|
2433
|
-
function
|
|
2474
|
+
function u() {
|
|
2434
2475
|
return !!(e.icon && e.icon.trim());
|
|
2435
2476
|
}
|
|
2436
|
-
const l =
|
|
2437
|
-
const
|
|
2477
|
+
const l = fe(() => {
|
|
2478
|
+
const D = {
|
|
2438
2479
|
btn: !0,
|
|
2439
2480
|
"f-rt-btn": !0,
|
|
2440
2481
|
"f-btn-ml": !e.isDP && (t.value === "right" || t.value === "center"),
|
|
@@ -2445,8 +2486,8 @@ const bt = /* @__PURE__ */ qe({
|
|
|
2445
2486
|
"text-truncate": !0
|
|
2446
2487
|
// 'f-rt-toggle':props.isDP&&!props.split
|
|
2447
2488
|
};
|
|
2448
|
-
return
|
|
2449
|
-
}),
|
|
2489
|
+
return re(D, e.class);
|
|
2490
|
+
}), d = fe(() => e.split ? {
|
|
2450
2491
|
display: "flex",
|
|
2451
2492
|
"align-items": "center"
|
|
2452
2493
|
} : {
|
|
@@ -2456,17 +2497,17 @@ const bt = /* @__PURE__ */ qe({
|
|
|
2456
2497
|
"padding-right": "0.1rem",
|
|
2457
2498
|
"border-top-right-radius": "6px",
|
|
2458
2499
|
"border-bottom-right-radius": "6px"
|
|
2459
|
-
}), i =
|
|
2460
|
-
const
|
|
2500
|
+
}), i = fe(() => {
|
|
2501
|
+
const D = {
|
|
2461
2502
|
btn: !0,
|
|
2462
2503
|
"dropdown-toggle": !0,
|
|
2463
2504
|
"f-btn-mr": t.value === "left",
|
|
2464
2505
|
"dropdown-toggle-split": !0,
|
|
2465
2506
|
"no-drag": !0
|
|
2466
2507
|
};
|
|
2467
|
-
return
|
|
2468
|
-
}), n =
|
|
2469
|
-
let
|
|
2508
|
+
return re(D, e.class);
|
|
2509
|
+
}), n = fe(() => {
|
|
2510
|
+
let D = {
|
|
2470
2511
|
btn: !e.isDPItem,
|
|
2471
2512
|
// 不是下拉按钮,不是下拉项
|
|
2472
2513
|
disabled: e.disabled === !0,
|
|
@@ -2478,10 +2519,10 @@ const bt = /* @__PURE__ */ qe({
|
|
|
2478
2519
|
// 保证内部层级不被拖拽
|
|
2479
2520
|
"no-drag": !0
|
|
2480
2521
|
};
|
|
2481
|
-
return e.isDPItem || (
|
|
2522
|
+
return e.isDPItem || (D = re(D, e.class || "")), e.isDP && (D = re(D, e.dropdownClass || "")), D;
|
|
2482
2523
|
});
|
|
2483
|
-
function
|
|
2484
|
-
|
|
2524
|
+
function S(D, b) {
|
|
2525
|
+
b && b.stopPropagation(), m.emit(D, {
|
|
2485
2526
|
id: e.id,
|
|
2486
2527
|
isDP: e.isDP
|
|
2487
2528
|
});
|
|
@@ -2495,92 +2536,92 @@ const bt = /* @__PURE__ */ qe({
|
|
|
2495
2536
|
"f-btn-mr": t.value === "left"
|
|
2496
2537
|
};
|
|
2497
2538
|
}
|
|
2498
|
-
function
|
|
2499
|
-
return
|
|
2539
|
+
function G() {
|
|
2540
|
+
return L("div", {
|
|
2500
2541
|
ref: c,
|
|
2501
|
-
"data-dragref": `${
|
|
2542
|
+
"data-dragref": `${T.schema.id}-container`,
|
|
2502
2543
|
class: "farris-component position-relative",
|
|
2503
2544
|
style: "display:inline-block!important;"
|
|
2504
|
-
}, [
|
|
2545
|
+
}, [L("div", {
|
|
2505
2546
|
class: B(),
|
|
2506
2547
|
id: e.id
|
|
2507
|
-
}, [
|
|
2548
|
+
}, [L("div", {
|
|
2508
2549
|
class: l.value,
|
|
2509
|
-
style:
|
|
2510
|
-
onClick: () =>
|
|
2511
|
-
}, [h.shouldShowIcon(e) &&
|
|
2550
|
+
style: d.value,
|
|
2551
|
+
onClick: () => S("clearAll")
|
|
2552
|
+
}, [h.shouldShowIcon(e) && L("i", {
|
|
2512
2553
|
class: h.iconClass(e)
|
|
2513
|
-
}, null),
|
|
2554
|
+
}, null), L("span", null, [e.text]), !e.split && L("span", {
|
|
2514
2555
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
2515
2556
|
style: "margin:0 0.5rem 0 0.25rem;",
|
|
2516
|
-
onClick: (
|
|
2517
|
-
}, null)]), e.split &&
|
|
2557
|
+
onClick: (D) => S("dropdown", D)
|
|
2558
|
+
}, null)]), e.split && L("button", {
|
|
2518
2559
|
class: i.value,
|
|
2519
2560
|
style: "border-radius:0 6px 6px 0;",
|
|
2520
|
-
onClick: (
|
|
2521
|
-
}, null),
|
|
2561
|
+
onClick: (D) => S("dropdown", D)
|
|
2562
|
+
}, null), x.renderDropdownMenu(e.item, e.item)])]);
|
|
2522
2563
|
}
|
|
2523
2564
|
function j() {
|
|
2524
|
-
return
|
|
2565
|
+
return L("li", {
|
|
2525
2566
|
ref: c,
|
|
2526
|
-
"data-dragref": `${
|
|
2567
|
+
"data-dragref": `${T.schema.id}-container`,
|
|
2527
2568
|
id: e.id,
|
|
2528
2569
|
class: n.value
|
|
2529
|
-
}, [h.shouldShowIcon(e) &&
|
|
2570
|
+
}, [h.shouldShowIcon(e) && L("i", {
|
|
2530
2571
|
class: h.iconClass(e)
|
|
2531
2572
|
}, null), e.text]);
|
|
2532
2573
|
}
|
|
2533
|
-
return () => e.isDP ?
|
|
2574
|
+
return () => e.isDP ? G() : e.isDPItem ? j() : L("div", {
|
|
2534
2575
|
ref: c,
|
|
2535
|
-
"data-dragref": `${
|
|
2576
|
+
"data-dragref": `${T.schema.id}-container`,
|
|
2536
2577
|
class: "farris-component position-relative",
|
|
2537
2578
|
style: "display:inline-block!important;"
|
|
2538
|
-
}, [
|
|
2579
|
+
}, [L("button", {
|
|
2539
2580
|
type: "button",
|
|
2540
2581
|
class: l.value,
|
|
2541
2582
|
id: e.id,
|
|
2542
|
-
onClick: () =>
|
|
2543
|
-
}, [
|
|
2583
|
+
onClick: () => S("clearAll")
|
|
2584
|
+
}, [u() && L("i", {
|
|
2544
2585
|
class: P()
|
|
2545
2586
|
}, null), e.text])]);
|
|
2546
2587
|
}
|
|
2547
2588
|
});
|
|
2548
|
-
function
|
|
2549
|
-
function c(l,
|
|
2550
|
-
h.changeSelectedId((
|
|
2589
|
+
function Nn(e, m, t, h) {
|
|
2590
|
+
function c(l, d, i, n) {
|
|
2591
|
+
h.changeSelectedId((d == null ? void 0 : d.id) || ""), t && t.setupContext && t.setupContext.emit("selectionChange", l, d, i, n);
|
|
2551
2592
|
}
|
|
2552
2593
|
function r() {
|
|
2553
2594
|
}
|
|
2554
|
-
function
|
|
2555
|
-
const
|
|
2556
|
-
h.clearAllDropdown(), h.toggleDropdownMenu(l, !
|
|
2595
|
+
function T(l) {
|
|
2596
|
+
const d = l.expanded;
|
|
2597
|
+
h.clearAllDropdown(), h.toggleDropdownMenu(l, !d);
|
|
2557
2598
|
}
|
|
2558
|
-
function
|
|
2599
|
+
function x(l) {
|
|
2559
2600
|
h.clearAllDropdown(l.isDP ? l.id : "");
|
|
2560
2601
|
}
|
|
2561
|
-
function
|
|
2562
|
-
const i = e.items || [], n =
|
|
2563
|
-
return
|
|
2602
|
+
function g(l, d = "") {
|
|
2603
|
+
const i = e.items || [], n = d || l, S = i.find((B) => B.id === n);
|
|
2604
|
+
return d ? S.children.find((B) => B.id === l) : S;
|
|
2564
2605
|
}
|
|
2565
|
-
function
|
|
2566
|
-
if (!
|
|
2606
|
+
function E(l, d = !1) {
|
|
2607
|
+
if (!d)
|
|
2567
2608
|
return;
|
|
2568
2609
|
const i = l.target;
|
|
2569
2610
|
i != null && i.classList.contains("dgComponentFocused") && (i == null || i.classList.add("dgComponentSelected"));
|
|
2570
2611
|
}
|
|
2571
|
-
function P(l,
|
|
2572
|
-
if (!
|
|
2612
|
+
function P(l, d = !1) {
|
|
2613
|
+
if (!d)
|
|
2573
2614
|
return;
|
|
2574
2615
|
const i = l.target;
|
|
2575
2616
|
i != null && i.classList.contains("dgComponentFocused") && (i == null || i.classList.remove("dgComponentSelected"));
|
|
2576
2617
|
}
|
|
2577
|
-
function
|
|
2578
|
-
const n =
|
|
2579
|
-
return
|
|
2618
|
+
function u(l, d, i = !1) {
|
|
2619
|
+
const n = g(l.id, l.parent), S = oe(n);
|
|
2620
|
+
return L(Yt, {
|
|
2580
2621
|
key: n.id,
|
|
2581
2622
|
class: ["p-0", i ? "d-block no-drag" : "d-inline-block"],
|
|
2582
|
-
modelValue:
|
|
2583
|
-
"onUpdate:modelValue": (B) =>
|
|
2623
|
+
modelValue: S.value,
|
|
2624
|
+
"onUpdate:modelValue": (B) => S.value = B,
|
|
2584
2625
|
canMove: !1,
|
|
2585
2626
|
childType: "response-toolbar-item",
|
|
2586
2627
|
childLabel: "按钮",
|
|
@@ -2589,12 +2630,12 @@ function $n(e, b, t, h) {
|
|
|
2589
2630
|
id: n.id,
|
|
2590
2631
|
onSelectionChange: c,
|
|
2591
2632
|
onRemoveComponent: r,
|
|
2592
|
-
onMouseenter: (B) =>
|
|
2633
|
+
onMouseenter: (B) => E(B, i),
|
|
2593
2634
|
onMouseleave: (B) => P(B, i)
|
|
2594
2635
|
}, {
|
|
2595
2636
|
default: () => {
|
|
2596
2637
|
var B;
|
|
2597
|
-
return [
|
|
2638
|
+
return [L(vt, {
|
|
2598
2639
|
id: n.id,
|
|
2599
2640
|
disabled: n.disabled,
|
|
2600
2641
|
text: n.text,
|
|
@@ -2605,25 +2646,25 @@ function $n(e, b, t, h) {
|
|
|
2605
2646
|
isDPItem: l.isDPItem,
|
|
2606
2647
|
class: ((B = l.appearance) == null ? void 0 : B.class) || "btn-secondary",
|
|
2607
2648
|
alignment: e.alignment || "right",
|
|
2608
|
-
onDropdown: () =>
|
|
2609
|
-
onClearAll: (
|
|
2649
|
+
onDropdown: () => T(l),
|
|
2650
|
+
onClearAll: (G) => x(G),
|
|
2610
2651
|
componentId: e.componentId
|
|
2611
2652
|
}, null)];
|
|
2612
2653
|
}
|
|
2613
2654
|
});
|
|
2614
2655
|
}
|
|
2615
2656
|
return {
|
|
2616
|
-
renderToolbarItemDesigner:
|
|
2657
|
+
renderToolbarItemDesigner: u,
|
|
2617
2658
|
actionHandlers: h
|
|
2618
2659
|
};
|
|
2619
2660
|
}
|
|
2620
|
-
function
|
|
2661
|
+
function qe(e, m = !1, t = "") {
|
|
2621
2662
|
const h = [];
|
|
2622
2663
|
return e.reduce((c, r) => {
|
|
2623
2664
|
if (r.children && r.children.length > 0) {
|
|
2624
|
-
const
|
|
2665
|
+
const T = qe(r.children, !0, r.id);
|
|
2625
2666
|
c.push(Object.assign({}, r, {
|
|
2626
|
-
children:
|
|
2667
|
+
children: T,
|
|
2627
2668
|
isDPItem: !1,
|
|
2628
2669
|
isDP: !0,
|
|
2629
2670
|
parent: "",
|
|
@@ -2631,134 +2672,134 @@ function We(e, b = !1, t = "") {
|
|
|
2631
2672
|
}));
|
|
2632
2673
|
} else
|
|
2633
2674
|
c.push(Object.assign({}, r, {
|
|
2634
|
-
isDPItem:
|
|
2675
|
+
isDPItem: m,
|
|
2635
2676
|
isDP: !1,
|
|
2636
2677
|
parent: t
|
|
2637
2678
|
}));
|
|
2638
2679
|
return c;
|
|
2639
2680
|
}, h), h;
|
|
2640
2681
|
}
|
|
2641
|
-
const
|
|
2682
|
+
const Re = /* @__PURE__ */ ze({
|
|
2642
2683
|
name: "FResponseToolbarDesign",
|
|
2643
|
-
props:
|
|
2684
|
+
props: bn,
|
|
2644
2685
|
emits: ["Click"],
|
|
2645
|
-
setup(e,
|
|
2646
|
-
const t =
|
|
2647
|
-
let
|
|
2648
|
-
const
|
|
2649
|
-
clearAllDropdown: (
|
|
2686
|
+
setup(e, m) {
|
|
2687
|
+
const t = oe(qe(e.items)), h = oe(), c = oe(), r = oe(), T = oe("");
|
|
2688
|
+
let x = 0;
|
|
2689
|
+
const g = 15, E = xe("designer-host-service"), P = xe("design-item-context"), u = {
|
|
2690
|
+
clearAllDropdown: ($) => {
|
|
2650
2691
|
},
|
|
2651
|
-
toggleDropdownMenu: (
|
|
2692
|
+
toggleDropdownMenu: ($) => {
|
|
2652
2693
|
},
|
|
2653
2694
|
updateToolbarItems: () => {
|
|
2654
2695
|
},
|
|
2655
|
-
changeSelectedId: (
|
|
2656
|
-
|
|
2696
|
+
changeSelectedId: ($) => {
|
|
2697
|
+
T.value = $;
|
|
2657
2698
|
},
|
|
2658
|
-
renderDropdownMenu: (
|
|
2699
|
+
renderDropdownMenu: ($, N) => {
|
|
2659
2700
|
},
|
|
2660
2701
|
toolbarContext: P,
|
|
2661
|
-
changeMenuPosition: (
|
|
2702
|
+
changeMenuPosition: ($, N, V) => ({}),
|
|
2662
2703
|
toolbarPosition: ""
|
|
2663
|
-
}, l = In(P,
|
|
2704
|
+
}, l = In(P, E, u), d = Xt(r, P, l), i = xe("toolbar-item-handler"), {
|
|
2664
2705
|
initDragula: n,
|
|
2665
|
-
dragulaInstance:
|
|
2666
|
-
} =
|
|
2667
|
-
renderToolbarItemDesigner:
|
|
2668
|
-
} =
|
|
2669
|
-
clearAllDropDownMenu:
|
|
2670
|
-
renderDropdownMenu:
|
|
2671
|
-
setResponseToolbarRef:
|
|
2706
|
+
dragulaInstance: S
|
|
2707
|
+
} = Mn(P), B = Ye(), G = Nn(e, c, P, u), j = Rn(B, t, G), {
|
|
2708
|
+
renderToolbarItemDesigner: D
|
|
2709
|
+
} = G, {
|
|
2710
|
+
clearAllDropDownMenu: b,
|
|
2711
|
+
renderDropdownMenu: O,
|
|
2712
|
+
setResponseToolbarRef: p
|
|
2672
2713
|
} = j;
|
|
2673
|
-
|
|
2674
|
-
|
|
2714
|
+
qt("toolbar-item-action", u), u.renderDropdownMenu = O, p(r), i && (i.changeSelectedId = function($) {
|
|
2715
|
+
T.value = $;
|
|
2675
2716
|
});
|
|
2676
2717
|
function o() {
|
|
2677
|
-
const
|
|
2678
|
-
|
|
2718
|
+
const $ = c.value.querySelector(".dgComponentSelected");
|
|
2719
|
+
$ && Ht($);
|
|
2679
2720
|
}
|
|
2680
|
-
function
|
|
2681
|
-
if (
|
|
2682
|
-
if (
|
|
2721
|
+
function F() {
|
|
2722
|
+
if (T.value)
|
|
2723
|
+
if (We(T.value, t.value)) {
|
|
2683
2724
|
const {
|
|
2684
|
-
parent:
|
|
2685
|
-
item:
|
|
2686
|
-
} =
|
|
2687
|
-
|
|
2688
|
-
var
|
|
2689
|
-
const
|
|
2690
|
-
(((
|
|
2725
|
+
parent: $,
|
|
2726
|
+
item: N
|
|
2727
|
+
} = st(T.value, t.value);
|
|
2728
|
+
$ && (u.toggleDropdownMenu($, !0), setTimeout(() => {
|
|
2729
|
+
var H;
|
|
2730
|
+
const V = r.value.querySelector("#" + $.id), U = V == null ? void 0 : V.querySelector("#" + N.id);
|
|
2731
|
+
(((H = U == null ? void 0 : U.parentElement) == null ? void 0 : H.className) || "").indexOf("dgComponentFocused") < 0 && (U == null || U.click());
|
|
2691
2732
|
}, 0));
|
|
2692
2733
|
} else
|
|
2693
2734
|
o();
|
|
2694
2735
|
}
|
|
2695
|
-
function
|
|
2696
|
-
t.value.filter((
|
|
2697
|
-
|
|
2698
|
-
}),
|
|
2736
|
+
function I($ = "") {
|
|
2737
|
+
t.value.filter((N) => N.id !== $ && N.children && N.children.length > 0).forEach((N) => {
|
|
2738
|
+
N.expanded = !1;
|
|
2739
|
+
}), b($);
|
|
2699
2740
|
}
|
|
2700
|
-
|
|
2741
|
+
u.clearAllDropdown = I;
|
|
2701
2742
|
function f() {
|
|
2702
2743
|
i && i.updateToolbarItems && i.updateToolbarItems();
|
|
2703
2744
|
}
|
|
2704
|
-
|
|
2705
|
-
function
|
|
2706
|
-
if (
|
|
2707
|
-
const
|
|
2708
|
-
Object.keys(
|
|
2709
|
-
|
|
2745
|
+
u.updateToolbarItems = f;
|
|
2746
|
+
function y($) {
|
|
2747
|
+
if ($) {
|
|
2748
|
+
const N = r.value.querySelector("#" + $.id), V = N.querySelector("#" + $.id + "_menu"), U = u.changeMenuPosition($, N);
|
|
2749
|
+
Object.keys(U).forEach((H) => {
|
|
2750
|
+
V.style[H] = U[H];
|
|
2710
2751
|
});
|
|
2711
2752
|
}
|
|
2712
2753
|
}
|
|
2713
2754
|
function s() {
|
|
2714
|
-
const
|
|
2715
|
-
|
|
2716
|
-
|
|
2755
|
+
const V = c.value.clientWidth, U = c.value.querySelectorAll(".farris-component>.f-rt-btn");
|
|
2756
|
+
U && U.forEach((q) => {
|
|
2757
|
+
q.style.maxWidth = V - 12 + "px";
|
|
2717
2758
|
});
|
|
2718
|
-
const
|
|
2719
|
-
|
|
2720
|
-
|
|
2759
|
+
const H = c.value.querySelectorAll(".farris-component>.f-rt-dropdown");
|
|
2760
|
+
H && H.forEach((q) => {
|
|
2761
|
+
q.querySelector(".dropdown-toggle-split") ? q.querySelector(".f-rt-btn").style.maxWidth = V - 38 + "px" : q.style.maxWidth = V - 12 + "px";
|
|
2721
2762
|
});
|
|
2722
2763
|
}
|
|
2723
|
-
const
|
|
2724
|
-
var
|
|
2725
|
-
if (
|
|
2726
|
-
const
|
|
2727
|
-
if (
|
|
2728
|
-
|
|
2764
|
+
const v = new ResizeObserver(($) => {
|
|
2765
|
+
var N;
|
|
2766
|
+
if ($.length) {
|
|
2767
|
+
const U = $[0].contentRect.width;
|
|
2768
|
+
if (U === 0) {
|
|
2769
|
+
x = 0;
|
|
2729
2770
|
return;
|
|
2730
2771
|
}
|
|
2731
|
-
if (Math.abs(
|
|
2732
|
-
if (
|
|
2772
|
+
if (Math.abs(U - x) > g) {
|
|
2773
|
+
if (x = U, We(T.value, t.value)) {
|
|
2733
2774
|
const {
|
|
2734
|
-
parent:
|
|
2735
|
-
item:
|
|
2736
|
-
} =
|
|
2737
|
-
|
|
2738
|
-
} else if (
|
|
2739
|
-
const
|
|
2740
|
-
|
|
2775
|
+
parent: H,
|
|
2776
|
+
item: q
|
|
2777
|
+
} = st(T.value, t.value);
|
|
2778
|
+
y(H);
|
|
2779
|
+
} else if (Bn(T.value, t.value)) {
|
|
2780
|
+
const H = (N = t.value) == null ? void 0 : N.find((q) => q.id === T.value);
|
|
2781
|
+
y(H);
|
|
2741
2782
|
} else
|
|
2742
|
-
|
|
2783
|
+
I();
|
|
2743
2784
|
s();
|
|
2744
2785
|
}
|
|
2745
2786
|
}
|
|
2746
2787
|
});
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
}),
|
|
2750
|
-
|
|
2751
|
-
}),
|
|
2752
|
-
const
|
|
2753
|
-
const
|
|
2788
|
+
Ge(() => {
|
|
2789
|
+
v.observe(r.value), x = r.value.clientWidth, r.value.componentInstance = d, n(c.value, h.value, f);
|
|
2790
|
+
}), ut(() => {
|
|
2791
|
+
v.disconnect(), S && S.destroy && S.destroy();
|
|
2792
|
+
}), m.expose(d.value);
|
|
2793
|
+
const k = fe(() => {
|
|
2794
|
+
const $ = {
|
|
2754
2795
|
"f-toolbar": !0,
|
|
2755
2796
|
"f-response-toolbar": !0,
|
|
2756
2797
|
"position-relative": !0,
|
|
2757
2798
|
"f-response-toolbar-sm": e.buttonSize === "sm",
|
|
2758
2799
|
"f-response-toolbar-lg": e.buttonSize === "lg"
|
|
2759
2800
|
};
|
|
2760
|
-
return
|
|
2761
|
-
}),
|
|
2801
|
+
return re($, e.customClass);
|
|
2802
|
+
}), M = fe(() => ({
|
|
2762
2803
|
"text-left": e.alignment === "left",
|
|
2763
2804
|
"text-right": e.alignment === "right",
|
|
2764
2805
|
"justify-content-end": e.alignment === "right",
|
|
@@ -2767,67 +2808,81 @@ const Ee = /* @__PURE__ */ qe({
|
|
|
2767
2808
|
"no-drag": !0,
|
|
2768
2809
|
"w-100": !0
|
|
2769
2810
|
}));
|
|
2770
|
-
|
|
2771
|
-
t.value =
|
|
2772
|
-
|
|
2811
|
+
ke(() => e.items, () => {
|
|
2812
|
+
t.value = qe(e.items), Te(() => {
|
|
2813
|
+
F(), s();
|
|
2773
2814
|
});
|
|
2774
2815
|
}, {
|
|
2775
2816
|
deep: !0
|
|
2776
2817
|
});
|
|
2777
|
-
function
|
|
2778
|
-
|
|
2818
|
+
function W($) {
|
|
2819
|
+
$ && ($.stopPropagation(), $.preventDefault());
|
|
2779
2820
|
const {
|
|
2780
|
-
schema:
|
|
2821
|
+
schema: N
|
|
2781
2822
|
} = P;
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2823
|
+
N.buttons || (N.buttons = []);
|
|
2824
|
+
let V = "";
|
|
2825
|
+
switch (u.toolbarPosition) {
|
|
2826
|
+
case "drawer-header-toolbar":
|
|
2827
|
+
case "drawer-footer-toolbar":
|
|
2828
|
+
V = "drawer-toolbar-item";
|
|
2829
|
+
break;
|
|
2830
|
+
case "tabs":
|
|
2831
|
+
V = "tab-toolbar-item";
|
|
2832
|
+
break;
|
|
2833
|
+
case "section":
|
|
2834
|
+
V = "section-toolbar-item";
|
|
2835
|
+
break;
|
|
2836
|
+
default:
|
|
2837
|
+
V = "response-toolbar-item";
|
|
2838
|
+
}
|
|
2839
|
+
const U = at(V);
|
|
2840
|
+
U.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, N.buttons.push(U);
|
|
2787
2841
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return
|
|
2842
|
+
function Y() {
|
|
2843
|
+
return L("li", {
|
|
2790
2844
|
style: "border-width: 1px;border-style: dashed;display: inline-block;padding: 0 8px;line-height: 24px; border-radius: 3px; cursor: default;color: #B4BCCC;",
|
|
2791
|
-
onClick:
|
|
2792
|
-
}, [
|
|
2845
|
+
onClick: W
|
|
2846
|
+
}, [L("span", {
|
|
2793
2847
|
class: "f-icon f-icon-amplification mr-1",
|
|
2794
2848
|
style: "font-size: 12px;"
|
|
2795
|
-
}, null),
|
|
2849
|
+
}, null), L("span", {
|
|
2796
2850
|
class: "farris-tag-add-text"
|
|
2797
|
-
}, [
|
|
2851
|
+
}, [zt("添加按钮")])]);
|
|
2798
2852
|
}
|
|
2799
|
-
function
|
|
2800
|
-
return t.value.map((
|
|
2853
|
+
function X() {
|
|
2854
|
+
return t.value.map(($, N) => D($, N));
|
|
2801
2855
|
}
|
|
2802
2856
|
return () => {
|
|
2803
|
-
var
|
|
2804
|
-
return
|
|
2857
|
+
var $;
|
|
2858
|
+
return L("div", {
|
|
2805
2859
|
ref: r,
|
|
2806
2860
|
"data-dragref": `${P.schema.id}-container`,
|
|
2807
|
-
class:
|
|
2861
|
+
class: k.value,
|
|
2808
2862
|
id: e.id
|
|
2809
|
-
}, [
|
|
2863
|
+
}, [L("div", {
|
|
2810
2864
|
ref: h,
|
|
2811
|
-
class:
|
|
2812
|
-
onClick: (
|
|
2813
|
-
}, [
|
|
2865
|
+
class: M.value,
|
|
2866
|
+
onClick: (N) => I(N)
|
|
2867
|
+
}, [L("div", {
|
|
2814
2868
|
ref: c,
|
|
2815
2869
|
class: "d-block f-response-content"
|
|
2816
|
-
}, [(
|
|
2870
|
+
}, [($ = t.value) != null && $.length ? X() : Y()])])]);
|
|
2817
2871
|
};
|
|
2818
2872
|
}
|
|
2819
|
-
}),
|
|
2820
|
-
|
|
2821
|
-
e["response-toolbar"] =
|
|
2873
|
+
}), Qn = Ue;
|
|
2874
|
+
Re.register = (e, m, t, h) => {
|
|
2875
|
+
e["response-toolbar"] = Sn, m["response-toolbar"] = Ue, h["response-toolbar"] = { eventHandlerResolver: yn };
|
|
2822
2876
|
};
|
|
2823
|
-
|
|
2824
|
-
e["response-toolbar"] =
|
|
2877
|
+
Re.registerDesigner = (e, m, t) => {
|
|
2878
|
+
e["response-toolbar"] = Re, m["response-toolbar"] = Ue, e["response-toolbar-item"] = vt, m["response-toolbar-item"] = mn;
|
|
2825
2879
|
};
|
|
2826
|
-
const
|
|
2880
|
+
const Zn = $t(Re);
|
|
2827
2881
|
export {
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2882
|
+
Re as FResponseToolbarDesign,
|
|
2883
|
+
vt as FResponseToolbarItemDesign,
|
|
2884
|
+
vn as commonToolbarItemDesignProps,
|
|
2885
|
+
Zn as default,
|
|
2886
|
+
Qn as responseToolbarResolver,
|
|
2887
|
+
ft as schemaResolver
|
|
2833
2888
|
};
|