@farris/ui-vue 1.7.2 → 1.7.4
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 +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1482 -56
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +129 -128
- package/components/calendar/index.umd.cjs +2 -2
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +134 -133
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +323 -291
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +134 -133
- package/components/comment/index.umd.cjs +2 -2
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +3791 -2760
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +2482 -492
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-view/index.esm.js +1815 -1789
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +2975 -2615
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +397 -387
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +592 -1894
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +250 -248
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +287 -284
- 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.esm.js +1890 -1473
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7371 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -3
- 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 +9044 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +269 -269
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +427 -646
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1634 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1190 -850
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1825 -871
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6075 -3862
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- 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/schema-selector/index.esm.js +2447 -2221
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +134 -133
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9488 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +105 -104
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1125 -634
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5191 -4407
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +576 -567
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1418 -1154
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +12665 -12117
- package/designer/farris-designer.all.umd.cjs +12 -12
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +0 -1
- 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 +9 -9
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +2829 -2540
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +75231 -73700
- package/farris.all.umd.cjs +93 -93
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +14 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +7 -0
- package/types/condition/index.d.ts +55 -0
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -3
- package/types/dynamic-form/index.d.ts +3 -9
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-resolver/index.d.ts +0 -3
- 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 +104 -92
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- 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 +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/query-solution/index.d.ts +2 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-view/src/tree-view.props.d.ts +1 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/layout/designer.d.ts +0 -32
- package/types/list-nav/designer.d.ts +0 -6
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(N,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("vue"),require("../button-edit/index.umd.js"),require("../layout/index.umd.js"),require("../tree-view/index.umd.js"),require("../data-grid/index.umd.js"),require("../loading/index.umd.js"),require("../notify/index.umd.js"),require("../common/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","../button-edit/index.umd.js","../layout/index.umd.js","../tree-view/index.umd.js","../data-grid/index.umd.js","../loading/index.umd.js","../notify/index.umd.js","../common/index.umd.js"],E):(N=typeof globalThis<"u"?globalThis:N||self,E(N["menu-lookup"]={},N.Vue,N.buttonEdit,N.FLayout,N.FTreeView,N.FDataGrid,N.loading,N.notify,N.common))})(this,function(N,E,St,de,Rt,Tt,Ct,Ot,Nt){"use strict";const Ce={targetType:{type:String,default:"menu"},fetchNodeApi:{type:[String,Function],require:!0},modelValue:{type:String,default:""}},At={targetType:{type:String,default:"menu"},useTreeGridCoordinatorComposition:{type:Object,default:{}}};function Oe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E.isVNode(e)}const xt=E.defineComponent({name:"FMenuLookupModalContainer",props:At,emits:[],setup(e){const t=E.ref(),n=E.ref(),{treeData:r,gridData:o,onNavTreeExpandNode:i,onNavTreeSelectionChange:s,onDataGridSelectionChange:c,onDataGridUnSelectItem:f,initialize:l}=e.useTreeGridCoordinatorComposition,u={parentIdField:"parentId",collapseField:"collapse",hasChildrenField:"hasChildren"},p={enableSelectRow:!0,clearSelectionOnEmpty:!0,keepSelectingOnClick:!1,keepSelectingOnPaging:!1,multiSelect:!1,showCheckbox:!1},w=[{field:"code",title:"编号",dataType:"string",resizable:!0},{field:"name",title:"名称",dataType:"string",resizable:!0}],g=[{field:"code",title:"编号",dataType:"string",resizable:!0},{field:"name",title:"名称",dataType:"string",resizable:!0},{field:"appEntrance",title:"入口",dataType:"string",resizable:!0}],d=e.targetType==="app"?g:w;function m(){t.value&&t.value.updateDataSource(r.value)}E.watch(r,m);function h(){n.value&&n.value.updateDataSource(o.value)}E.watch(o,h);function T(){return E.createVNode(Rt,{ref:t,data:r.value,hierarchy:u,virtualized:!1,onSelectionChange:s,onExpandNode:i},null)}function y({cell:R}){return E.createVNode("span",{title:R.data??""},[R.data])}function S(){return E.createVNode(Tt,{ref:n,columns:d,data:o.value,fit:!0,showStripe:!1,columnOption:{fitColumns:!0},rowNumber:{enable:!1},selection:p,virtualized:!0,onSelectionChange:c,onUnSelectItem:f},{cellTemplate:y})}return E.onMounted(()=>{l()}),()=>{let R,O;return E.createVNode(de,{class:"h-100"},{default:()=>[E.createVNode(de.FLayoutPane,{position:"left",width:300,"min-width":200},Oe(R=T())?R:{default:()=>[R]}),E.createVNode(de.FLayoutPane,{position:"center","min-width":400},Oe(O=S())?O:{default:()=>[O]})]})}}});function Ne(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ft}=Object.prototype,{getPrototypeOf:fe}=Object,{iterator:Z,toStringTag:Ae}=Symbol,Y=(e=>t=>{const n=Ft.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>Y(t)===e),ee=e=>t=>typeof t===e,{isArray:$}=Array,v=ee("undefined");function J(e){return e!==null&&!v(e)&&e.constructor!==null&&!v(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xe=D("ArrayBuffer");function Lt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xe(e.buffer),t}const Dt=ee("string"),F=ee("function"),Fe=ee("number"),G=e=>e!==null&&typeof e=="object",Pt=e=>e===!0||e===!1,te=e=>{if(Y(e)!=="object")return!1;const t=fe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ae in e)&&!(Z in e)},_t=e=>{if(!G(e)||J(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ut=D("Date"),kt=D("File"),Bt=D("Blob"),jt=D("FileList"),qt=e=>G(e)&&F(e.pipe),Mt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||F(e.append)&&((t=Y(e))==="formdata"||t==="object"&&F(e.toString)&&e.toString()==="[object FormData]"))},It=D("URLSearchParams"),[Ht,$t,vt,zt]=["ReadableStream","Request","Response","Headers"].map(D),Vt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),$(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(J(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let c;for(r=0;r<s;r++)c=i[r],t.call(null,e[c],c,e)}}function Le(e,t){if(J(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,De=e=>!v(e)&&e!==j;function pe(){const{caseless:e,skipUndefined:t}=De(this)&&this||{},n={},r=(o,i)=>{const s=e&&Le(n,i)||i;te(n[s])&&te(o)?n[s]=pe(n[s],o):te(o)?n[s]=pe({},o):$(o)?n[s]=o.slice():(!t||!v(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&W(arguments[o],r);return n}const Jt=(e,t,n,{allOwnKeys:r}={})=>(W(t,(o,i)=>{n&&F(o)?e[i]=Ne(o,n):e[i]=o},{allOwnKeys:r}),e),Gt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Kt=(e,t,n,r)=>{let o,i,s;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&fe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Qt=e=>{if(!e)return null;if($(e))return e;let t=e.length;if(!Fe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fe(Uint8Array)),Yt=(e,t)=>{const r=(e&&e[Z]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},en=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tn=D("HTMLFormElement"),nn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rn=D("RegExp"),_e=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};W(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},on=e=>{_e(e,(t,n)=>{if(F(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(F(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sn=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return $(e)?r(e):r(String(e).split(t)),n},an=()=>{},cn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function un(e){return!!(e&&F(e.append)&&e[Ae]==="FormData"&&e[Z])}const ln=e=>{const t=new Array(10),n=(r,o)=>{if(G(r)){if(t.indexOf(r)>=0)return;if(J(r))return r;if(!("toJSON"in r)){t[o]=r;const i=$(r)?[]:{};return W(r,(s,c)=>{const f=n(s,o+1);!v(f)&&(i[c]=f)}),t[o]=void 0,i}}return r};return n(e,0)},dn=D("AsyncFunction"),fn=e=>e&&(G(e)||F(e))&&F(e.then)&&F(e.catch),Ue=((e,t)=>e?setImmediate:t?((n,r)=>(j.addEventListener("message",({source:o,data:i})=>{o===j&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),j.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(j.postMessage)),pn=typeof queueMicrotask<"u"?queueMicrotask.bind(j):typeof process<"u"&&process.nextTick||Ue,a={isArray:$,isArrayBuffer:xe,isBuffer:J,isFormData:Mt,isArrayBufferView:Lt,isString:Dt,isNumber:Fe,isBoolean:Pt,isObject:G,isPlainObject:te,isEmptyObject:_t,isReadableStream:Ht,isRequest:$t,isResponse:vt,isHeaders:zt,isUndefined:v,isDate:Ut,isFile:kt,isBlob:Bt,isRegExp:rn,isFunction:F,isStream:qt,isURLSearchParams:It,isTypedArray:Zt,isFileList:jt,forEach:W,merge:pe,extend:Jt,trim:Vt,stripBOM:Gt,inherits:Wt,toFlatObject:Kt,kindOf:Y,kindOfTest:D,endsWith:Xt,toArray:Qt,forEachEntry:Yt,matchAll:en,isHTMLForm:tn,hasOwnProperty:Pe,hasOwnProp:Pe,reduceDescriptors:_e,freezeMethods:on,toObjectSet:sn,toCamelCase:nn,noop:an,toFiniteNumber:cn,findKey:Le,global:j,isContextDefined:De,isSpecCompliantForm:un,toJSONObject:ln,isAsyncFn:dn,isThenable:fn,setImmediate:Ue,asap:pn,isIterable:e=>e!=null&&F(e[Z])};function b(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ke=b.prototype,Be={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Be[e]={value:e}}),Object.defineProperties(b,Be),Object.defineProperty(ke,"isAxiosError",{value:!0}),b.from=(e,t,n,r,o,i)=>{const s=Object.create(ke);a.toFlatObject(e,s,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return b.call(s,c,f,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const hn=null;function he(e){return a.isPlainObject(e)||a.isArray(e)}function je(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,t,n){return e?e.concat(t).map(function(o,i){return o=je(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function mn(e){return a.isArray(e)&&!e.some(he)}const yn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ne(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new b("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,m,h){let T=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&mn(d)||(a.isFileList(d)||a.endsWith(m,"[]"))&&(T=a.toArray(d)))return m=je(m),T.forEach(function(S,R){!(a.isUndefined(S)||S===null)&&t.append(s===!0?qe([m],R,i):s===null?m:m+"[]",l(S))}),!1}return he(d)?!0:(t.append(qe(h,m,i),l(d)),!1)}const p=[],w=Object.assign(yn,{defaultVisitor:u,convertValue:l,isVisitable:he});function g(d,m){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(d),a.forEach(d,function(T,y){(!(a.isUndefined(T)||T===null)&&o.call(t,T,a.isString(y)?y.trim():y,m,w))===!0&&g(T,m?m.concat(y):[y])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Me(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function me(e,t){this._pairs=[],e&&ne(e,this,t)}const Ie=me.prototype;Ie.append=function(t,n){this._pairs.push([t,n])},Ie.toString=function(t){const n=t?function(r){return t.call(this,r,Me)}:Me;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||bn;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=a.isURLSearchParams(t)?t.toString():new me(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class $e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:me,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ye=typeof window<"u"&&typeof document<"u",be=typeof navigator=="object"&&navigator||void 0,gn=ye&&(!be||["ReactNative","NativeScript","NS"].indexOf(be.product)<0),En=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sn=ye&&window.location.href||"http://localhost",A={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ye,hasStandardBrowserEnv:gn,hasStandardBrowserWebWorkerEnv:En,navigator:be,origin:Sn},Symbol.toStringTag,{value:"Module"})),...wn};function Rn(e,t){return ne(e,new A.classes.URLSearchParams,{visitor:function(n,r,o,i){return A.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Tn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cn(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function ze(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),f=i>=n.length;return s=!s&&a.isArray(o)?o.length:s,f?(a.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!c):((!o[s]||!a.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&a.isArray(o[s])&&(o[s]=Cn(o[s])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Tn(r),o,n,0)}),n}return null}function On(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const K={transitional:ve,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(ze(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ne(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),On(t)):t}],transformResponse:[function(t){const n=this.transitional||K.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(c){if(s)throw c.name==="SyntaxError"?b.from(c,b.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:A.classes.FormData,Blob:A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{K.headers[e]={}});const Nn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),An=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
-
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ve]=this[Ve]={accessors:{}}).accessors,o=this.prototype;function i(s){const c=X(s);r[c]||(Dn(o,s),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};L.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(L.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),a.freezeMethods(L);function ge(e,t){const n=this||K,r=t||n,o=L.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Je(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){b.call(this,e??"canceled",b.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,b,{__CANCEL__:!0});function Ge(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Pn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _n(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[i];s||(s=l),n[o]=f,r[o]=l;let p=i,w=0;for(;p!==o;)w+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-s<t)return;const g=u&&l-u;return g?Math.round(w*1e3/g):void 0}}function Un(e,t){let n=0,r=1e3/t,o,i;const s=(l,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-n;p>=r?s(l,u):(o=l,i||(i=setTimeout(()=>{i=null,s(o)},r-p)))},()=>o&&s(o)]}const oe=(e,t,n=3)=>{let r=0;const o=_n(50,250);return Un(i=>{const s=i.loaded,c=i.lengthComputable?i.total:void 0,f=s-r,l=o(f),u=s<=c;r=s;const p={loaded:s,total:c,progress:c?s/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-s)/l:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},We=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ke=e=>(...t)=>a.asap(()=>e(...t)),kn=A.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,A.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(A.origin),A.navigator&&/(msie|trident)/i.test(A.navigator.userAgent)):()=>!0,Bn=A.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(o)&&c.push(`domain=${o}`),i===!0&&c.push("secure"),a.isString(s)&&c.push(`SameSite=${s}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xe(e,t,n){let r=!jn(t);return e&&(r||n==!1)?qn(e,t):t}const Qe=e=>e instanceof L?{...e}:e;function q(e,t){t=t||{};const n={};function r(l,u,p,w){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:w},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(l,u,p,w){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,p,w)}else return r(l,u,p,w)}function i(l,u){if(!a.isUndefined(u))return r(void 0,u)}function s(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,p){if(p in t)return r(l,u);if(p in e)return r(void 0,l)}const f={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(l,u,p)=>o(Qe(l),Qe(u),p,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const p=f[u]||o,w=p(e[u],t[u],u);a.isUndefined(w)&&p!==c||(n[u]=w)}),n}const Ze=e=>{const t=q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:c}=t;if(t.headers=s=L.from(s),t.url=He(Xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(A.hasStandardBrowserEnv||A.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const f=n.getHeaders(),l=["content-type","content-length"];Object.entries(f).forEach(([u,p])=>{l.includes(u.toLowerCase())&&s.set(u,p)})}}if(A.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&kn(t.url))){const f=o&&i&&Bn.read(i);f&&s.set(o,f)}return t},Mn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Ze(e);let i=o.data;const s=L.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=o,u,p,w,g,d;function m(){g&&g(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function T(){if(!h)return;const S=L.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};Ge(function(x){n(x),m()},function(x){r(x),m()},O),h=null}"onloadend"in h?h.onloadend=T:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(T)},h.onabort=function(){h&&(r(new b("Request aborted",b.ECONNABORTED,e,h)),h=null)},h.onerror=function(R){const O=R&&R.message?R.message:"Network Error",U=new b(O,b.ERR_NETWORK,e,h);U.event=R||null,r(U),h=null},h.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||ve;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new b(R,O.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&a.forEach(s.toJSON(),function(R,O){h.setRequestHeader(O,R)}),a.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),l&&([w,d]=oe(l,!0),h.addEventListener("progress",w)),f&&h.upload&&([p,g]=oe(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=S=>{h&&(r(!S||S.type?new z(null,e,h):S),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const y=Pn(o.url);if(y&&A.protocols.indexOf(y)===-1){r(new b("Unsupported protocol "+y+":",b.ERR_BAD_REQUEST,e));return}h.send(i||null)})},In=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(l){if(!o){o=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof b?u:new z(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new b(`timeout ${t} of ms exceeded`,b.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},Hn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},$n=async function*(e,t){for await(const n of vn(e))yield*Hn(n,t)},vn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ye=(e,t,n,r)=>{const o=$n(e,t);let i=0,s,c=f=>{s||(s=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await o.next();if(l){c(),f.close();return}let p=u.byteLength;if(n){let w=i+=p;n(w)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},et=64*1024,{isFunction:se}=a,zn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:tt,TextEncoder:nt}=a.global,rt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vn=e=>{e=a.merge.call({skipUndefined:!0},zn,e);const{fetch:t,Request:n,Response:r}=e,o=t?se(t):typeof fetch=="function",i=se(n),s=se(r);if(!o)return!1;const c=o&&se(tt),f=o&&(typeof nt=="function"?(d=>m=>d.encode(m))(new nt):async d=>new Uint8Array(await new n(d).arrayBuffer())),l=i&&c&&rt(()=>{let d=!1;const m=new n(A.origin,{body:new tt,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),u=s&&c&&rt(()=>a.isReadableStream(new r("").body)),p={stream:u&&(d=>d.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(m,h)=>{let T=m&&m[d];if(T)return T.call(m);throw new b(`Response type '${d}' is not supported`,b.ERR_NOT_SUPPORT,h)})});const w=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new n(A.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(a.isArrayBufferView(d)||a.isArrayBuffer(d))return d.byteLength;if(a.isURLSearchParams(d)&&(d=d+""),a.isString(d))return(await f(d)).byteLength},g=async(d,m)=>{const h=a.toFiniteNumber(d.getContentLength());return h??w(m)};return async d=>{let{url:m,method:h,data:T,signal:y,cancelToken:S,timeout:R,onDownloadProgress:O,onUploadProgress:U,responseType:x,headers:I,withCredentials:ce="same-origin",fetchOptions:ht}=Ze(d),mt=t||fetch;x=x?(x+"").toLowerCase():"text";let ue=In([y,S&&S.toAbortSignal()],R),Q=null;const H=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let yt;try{if(U&&l&&h!=="get"&&h!=="head"&&(yt=await g(I,T))!==0){let B=new n(m,{method:"POST",body:T,duplex:"half"}),V;if(a.isFormData(T)&&(V=B.headers.get("content-type"))&&I.setContentType(V),B.body){const[Te,le]=We(yt,oe(Ke(U)));T=Ye(B.body,et,Te,le)}}a.isString(ce)||(ce=ce?"include":"omit");const _=i&&"credentials"in n.prototype,bt={...ht,signal:ue,method:h.toUpperCase(),headers:I.normalize().toJSON(),body:T,duplex:"half",credentials:_?ce:void 0};Q=i&&new n(m,bt);let k=await(i?mt(Q,ht):mt(m,bt));const wt=u&&(x==="stream"||x==="response");if(u&&(O||wt&&H)){const B={};["status","statusText","headers"].forEach(gt=>{B[gt]=k[gt]});const V=a.toFiniteNumber(k.headers.get("content-length")),[Te,le]=O&&We(V,oe(Ke(O),!0))||[];k=new r(Ye(k.body,et,Te,()=>{le&&le(),H&&H()}),B)}x=x||"text";let ir=await p[a.findKey(p,x)||"text"](k,d);return!wt&&H&&H(),await new Promise((B,V)=>{Ge(B,V,{data:ir,headers:L.from(k.headers),status:k.status,statusText:k.statusText,config:d,request:Q})})}catch(_){throw H&&H(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,d,Q),{cause:_.cause||_}):b.from(_,_&&_.code,d,Q)}}},Jn=new Map,ot=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,c=s,f,l,u=Jn;for(;c--;)f=i[c],l=u.get(f),l===void 0&&u.set(f,l=c?new Map:Vn(t)),u=l;return l};ot();const Ee={http:hn,xhr:Mn,fetch:{get:ot}};a.forEach(Ee,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const st=e=>`- ${e}`,Gn=e=>a.isFunction(e)||e===null||e===!1;function Wn(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let c;if(o=r,!Gn(r)&&(o=Ee[(c=String(r)).toLowerCase()],o===void 0))throw new b(`Unknown adapter '${c}'`);if(o&&(a.isFunction(o)||(o=o.get(t))))break;i[c||"#"+s]=o}if(!o){const s=Object.entries(i).map(([f,l])=>`adapter ${f} `+(l===!1?"is not supported by the environment":"is not available in the build"));let c=n?s.length>1?`since :
|
|
4
|
-
`+s.map(
|
|
5
|
-
`):" "+
|
|
6
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ae.assertOptions(r,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:ae.assertOptions(o,{encode:P.function,serialize:P.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ae.assertOptions(n,{baseUrl:P.spelling("baseURL"),withXsrfToken:P.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=L.concat(s,i);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,p=0,
|
|
1
|
+
(function(N,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("vue"),require("../dynamic-resolver/index.umd.js"),require("../button-edit/index.umd.js"),require("../layout/index.umd.js"),require("../tree-view/index.umd.js"),require("../data-grid/index.umd.js"),require("../loading/index.umd.js"),require("../notify/index.umd.js"),require("../common/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","../dynamic-resolver/index.umd.js","../button-edit/index.umd.js","../layout/index.umd.js","../tree-view/index.umd.js","../data-grid/index.umd.js","../loading/index.umd.js","../notify/index.umd.js","../common/index.umd.js"],E):(N=typeof globalThis<"u"?globalThis:N||self,E(N["menu-lookup"]={},N.Vue,N.dynamicResolver,N.buttonEdit,N.FLayout,N.FTreeView,N.FDataGrid,N.loading,N.notify,N.common))})(this,function(N,E,Rt,Tt,fe,Ct,Ot,Nt,At,xt){"use strict";const Ft={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/menu-lookup.schema.json",title:"menu-lookup",description:"A Farris Component",type:"object",properties:{type:{description:"The type string of menu-lookup",type:"string",default:"menu-lookup"},targetType:{description:"",type:"string",enum:["menu","app"],default:"menu"},fetchNodeApi:{description:"",type:"function"}},required:["type","fetchNodeApi"],ignore:[]},Lt=new Map([]);function Dt(e,t,n){return t}const pe={targetType:{type:String,default:"menu"},fetchNodeApi:{type:[String,Function],require:!0},modelValue:{type:String,default:""}},Ne=Rt.createPropsResolver(pe,Ft,Lt,Dt),Pt={targetType:{type:String,default:"menu"},useTreeGridCoordinatorComposition:{type:Object,default:{}}};function Ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E.isVNode(e)}const _t=E.defineComponent({name:"FMenuLookupModalContainer",props:Pt,emits:[],setup(e){const t=E.ref(),n=E.ref(),{treeData:r,gridData:o,onNavTreeExpandNode:i,onNavTreeSelectionChange:s,onDataGridSelectionChange:c,onDataGridUnSelectItem:f,initialize:l}=e.useTreeGridCoordinatorComposition,u={parentIdField:"parentId",collapseField:"collapse",hasChildrenField:"hasChildren"},p={enableSelectRow:!0,clearSelectionOnEmpty:!0,keepSelectingOnClick:!1,keepSelectingOnPaging:!1,multiSelect:!1,showCheckbox:!1},b=[{field:"code",title:"编号",dataType:"string",resizable:!0},{field:"name",title:"名称",dataType:"string",resizable:!0}],w=[{field:"code",title:"编号",dataType:"string",resizable:!0},{field:"name",title:"名称",dataType:"string",resizable:!0},{field:"appEntrance",title:"入口",dataType:"string",resizable:!0}],d=e.targetType==="app"?w:b;function m(){t.value&&t.value.updateDataSource(r.value)}E.watch(r,m);function h(){n.value&&n.value.updateDataSource(o.value)}E.watch(o,h);function T(){return E.createVNode(Ct,{ref:t,data:r.value,hierarchy:u,virtualized:!1,onSelectionChange:s,onExpandNode:i},null)}function y({cell:R}){return E.createVNode("span",{title:R.data??""},[R.data])}function S(){return E.createVNode(Ot,{ref:n,columns:d,data:o.value,fit:!0,showStripe:!1,columnOption:{fitColumns:!0},rowNumber:{enable:!1},selection:p,virtualized:!0,onSelectionChange:c,onUnSelectItem:f},{cellTemplate:y})}return E.onMounted(()=>{l()}),()=>{let R,O;return E.createVNode(fe,{class:"h-100"},{default:()=>[E.createVNode(fe.FLayoutPane,{position:"left",width:300,"min-width":200},Ae(R=T())?R:{default:()=>[R]}),E.createVNode(fe.FLayoutPane,{position:"center","min-width":400},Ae(O=S())?O:{default:()=>[O]})]})}}});function xe(e,t){return function(){return e.apply(t,arguments)}}const{toString:kt}=Object.prototype,{getPrototypeOf:he}=Object,{iterator:Z,toStringTag:Fe}=Symbol,Y=(e=>t=>{const n=kt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>Y(t)===e),ee=e=>t=>typeof t===e,{isArray:H}=Array,$=ee("undefined");function J(e){return e!==null&&!$(e)&&e.constructor!==null&&!$(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Le=D("ArrayBuffer");function Ut(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Le(e.buffer),t}const jt=ee("string"),F=ee("function"),De=ee("number"),G=e=>e!==null&&typeof e=="object",Bt=e=>e===!0||e===!1,te=e=>{if(Y(e)!=="object")return!1;const t=he(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fe in e)&&!(Z in e)},qt=e=>{if(!G(e)||J(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Mt=D("Date"),It=D("File"),vt=D("Blob"),Ht=D("FileList"),$t=e=>G(e)&&F(e.pipe),zt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||F(e.append)&&((t=Y(e))==="formdata"||t==="object"&&F(e.toString)&&e.toString()==="[object FormData]"))},Vt=D("URLSearchParams"),[Jt,Gt,Wt,Kt]=["ReadableStream","Request","Response","Headers"].map(D),Xt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(J(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let c;for(r=0;r<s;r++)c=i[r],t.call(null,e[c],c,e)}}function Pe(e,t){if(J(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const B=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_e=e=>!$(e)&&e!==B;function me(){const{caseless:e,skipUndefined:t}=_e(this)&&this||{},n={},r=(o,i)=>{const s=e&&Pe(n,i)||i;te(n[s])&&te(o)?n[s]=me(n[s],o):te(o)?n[s]=me({},o):H(o)?n[s]=o.slice():(!t||!$(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&W(arguments[o],r);return n}const Qt=(e,t,n,{allOwnKeys:r}={})=>(W(t,(o,i)=>{n&&F(o)?e[i]=xe(o,n):e[i]=o},{allOwnKeys:r}),e),Zt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},en=(e,t,n,r)=>{let o,i,s;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&he(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!De(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&he(Uint8Array)),on=(e,t)=>{const r=(e&&e[Z]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},sn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},an=D("HTMLFormElement"),cn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ke=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),un=D("RegExp"),Ue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};W(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},ln=e=>{Ue(e,(t,n)=>{if(F(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(F(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dn=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return H(e)?r(e):r(String(e).split(t)),n},fn=()=>{},pn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function hn(e){return!!(e&&F(e.append)&&e[Fe]==="FormData"&&e[Z])}const mn=e=>{const t=new Array(10),n=(r,o)=>{if(G(r)){if(t.indexOf(r)>=0)return;if(J(r))return r;if(!("toJSON"in r)){t[o]=r;const i=H(r)?[]:{};return W(r,(s,c)=>{const f=n(s,o+1);!$(f)&&(i[c]=f)}),t[o]=void 0,i}}return r};return n(e,0)},yn=D("AsyncFunction"),gn=e=>e&&(G(e)||F(e))&&F(e.then)&&F(e.catch),je=((e,t)=>e?setImmediate:t?((n,r)=>(B.addEventListener("message",({source:o,data:i})=>{o===B&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),B.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(B.postMessage)),bn=typeof queueMicrotask<"u"?queueMicrotask.bind(B):typeof process<"u"&&process.nextTick||je,a={isArray:H,isArrayBuffer:Le,isBuffer:J,isFormData:zt,isArrayBufferView:Ut,isString:jt,isNumber:De,isBoolean:Bt,isObject:G,isPlainObject:te,isEmptyObject:qt,isReadableStream:Jt,isRequest:Gt,isResponse:Wt,isHeaders:Kt,isUndefined:$,isDate:Mt,isFile:It,isBlob:vt,isRegExp:un,isFunction:F,isStream:$t,isURLSearchParams:Vt,isTypedArray:rn,isFileList:Ht,forEach:W,merge:me,extend:Qt,trim:Xt,stripBOM:Zt,inherits:Yt,toFlatObject:en,kindOf:Y,kindOfTest:D,endsWith:tn,toArray:nn,forEachEntry:on,matchAll:sn,isHTMLForm:an,hasOwnProperty:ke,hasOwnProp:ke,reduceDescriptors:Ue,freezeMethods:ln,toObjectSet:dn,toCamelCase:cn,noop:fn,toFiniteNumber:pn,findKey:Pe,global:B,isContextDefined:_e,isSpecCompliantForm:hn,toJSONObject:mn,isAsyncFn:yn,isThenable:gn,setImmediate:je,asap:bn,isIterable:e=>e!=null&&F(e[Z])};function g(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Be=g.prototype,qe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qe[e]={value:e}}),Object.defineProperties(g,qe),Object.defineProperty(Be,"isAxiosError",{value:!0}),g.from=(e,t,n,r,o,i)=>{const s=Object.create(Be);a.toFlatObject(e,s,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return g.call(s,c,f,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const wn=null;function ye(e){return a.isPlainObject(e)||a.isArray(e)}function Me(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ie(e,t,n){return e?e.concat(t).map(function(o,i){return o=Me(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function En(e){return a.isArray(e)&&!e.some(ye)}const Sn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ne(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,m,h){let T=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&En(d)||(a.isFileList(d)||a.endsWith(m,"[]"))&&(T=a.toArray(d)))return m=Me(m),T.forEach(function(S,R){!(a.isUndefined(S)||S===null)&&t.append(s===!0?Ie([m],R,i):s===null?m:m+"[]",l(S))}),!1}return ye(d)?!0:(t.append(Ie(h,m,i),l(d)),!1)}const p=[],b=Object.assign(Sn,{defaultVisitor:u,convertValue:l,isVisitable:ye});function w(d,m){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(d),a.forEach(d,function(T,y){(!(a.isUndefined(T)||T===null)&&o.call(t,T,a.isString(y)?y.trim():y,m,b))===!0&&w(T,m?m.concat(y):[y])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ge(e,t){this._pairs=[],e&&ne(e,this,t)}const He=ge.prototype;He.append=function(t,n){this._pairs.push([t,n])},He.toString=function(t){const n=t?function(r){return t.call(this,r,ve)}:ve;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Rn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $e(e,t,n){if(!t)return e;const r=n&&n.encode||Rn;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=a.isURLSearchParams(t)?t.toString():new ge(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ze{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ge,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},be=typeof window<"u"&&typeof document<"u",we=typeof navigator=="object"&&navigator||void 0,Cn=be&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),On=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nn=be&&window.location.href||"http://localhost",A={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:be,hasStandardBrowserEnv:Cn,hasStandardBrowserWebWorkerEnv:On,navigator:we,origin:Nn},Symbol.toStringTag,{value:"Module"})),...Tn};function An(e,t){return ne(e,new A.classes.URLSearchParams,{visitor:function(n,r,o,i){return A.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function xn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fn(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Je(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),f=i>=n.length;return s=!s&&a.isArray(o)?o.length:s,f?(a.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!c):((!o[s]||!a.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&a.isArray(o[s])&&(o[s]=Fn(o[s])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(xn(r),o,n,0)}),n}return null}function Ln(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const K={transitional:Ve,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Je(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return An(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ne(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Ln(t)):t}],transformResponse:[function(t){const n=this.transitional||K.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(c){if(s)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:A.classes.FormData,Blob:A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{K.headers[e]={}});const Dn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pn=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Dn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ge=Symbol("internals");function X(e){return e&&String(e).trim().toLowerCase()}function re(e){return e===!1||e==null?e:a.isArray(e)?e.map(re):String(e)}function _n(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ee(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Un(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function jn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let L=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(c,f,l){const u=X(f);if(!u)throw new Error("header name must be a non-empty string");const p=a.findKey(o,u);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||f]=re(c))}const s=(c,f)=>a.forEach(c,(l,u)=>i(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(a.isString(t)&&(t=t.trim())&&!kn(t))s(Pn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}s(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=X(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _n(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=X(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=X(s),s){const c=a.findKey(r,s);c&&(!n||Ee(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ee(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,i)=>{const s=a.findKey(r,i);if(s){n[s]=re(o),delete n[i];return}const c=t?Un(i):String(i).trim();c!==i&&delete n[i],n[c]=re(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ge]=this[Ge]={accessors:{}}).accessors,o=this.prototype;function i(s){const c=X(s);r[c]||(jn(o,s),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};L.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(L.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),a.freezeMethods(L);function Se(e,t){const n=this||K,r=t||n,o=L.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function We(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,g,{__CANCEL__:!0});function Ke(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Bn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[i];s||(s=l),n[o]=f,r[o]=l;let p=i,b=0;for(;p!==o;)b+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-s<t)return;const w=u&&l-u;return w?Math.round(b*1e3/w):void 0}}function Mn(e,t){let n=0,r=1e3/t,o,i;const s=(l,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-n;p>=r?s(l,u):(o=l,i||(i=setTimeout(()=>{i=null,s(o)},r-p)))},()=>o&&s(o)]}const oe=(e,t,n=3)=>{let r=0;const o=qn(50,250);return Mn(i=>{const s=i.loaded,c=i.lengthComputable?i.total:void 0,f=s-r,l=o(f),u=s<=c;r=s;const p={loaded:s,total:c,progress:c?s/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-s)/l:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},Xe=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>a.asap(()=>e(...t)),In=A.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,A.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(A.origin),A.navigator&&/(msie|trident)/i.test(A.navigator.userAgent)):()=>!0,vn=A.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(o)&&c.push(`domain=${o}`),i===!0&&c.push("secure"),a.isString(s)&&c.push(`SameSite=${s}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Hn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $n(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ze(e,t,n){let r=!Hn(t);return e&&(r||n==!1)?$n(e,t):t}const Ye=e=>e instanceof L?{...e}:e;function q(e,t){t=t||{};const n={};function r(l,u,p,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(l,u,p,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,p,b)}else return r(l,u,p,b)}function i(l,u){if(!a.isUndefined(u))return r(void 0,u)}function s(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,p){if(p in t)return r(l,u);if(p in e)return r(void 0,l)}const f={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(l,u,p)=>o(Ye(l),Ye(u),p,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const p=f[u]||o,b=p(e[u],t[u],u);a.isUndefined(b)&&p!==c||(n[u]=b)}),n}const et=e=>{const t=q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:c}=t;if(t.headers=s=L.from(s),t.url=$e(Ze(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(A.hasStandardBrowserEnv||A.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const f=n.getHeaders(),l=["content-type","content-length"];Object.entries(f).forEach(([u,p])=>{l.includes(u.toLowerCase())&&s.set(u,p)})}}if(A.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&In(t.url))){const f=o&&i&&vn.read(i);f&&s.set(o,f)}return t},zn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=et(e);let i=o.data;const s=L.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=o,u,p,b,w,d;function m(){w&&w(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function T(){if(!h)return;const S=L.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};Ke(function(x){n(x),m()},function(x){r(x),m()},O),h=null}"onloadend"in h?h.onloadend=T:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(T)},h.onabort=function(){h&&(r(new g("Request aborted",g.ECONNABORTED,e,h)),h=null)},h.onerror=function(R){const O=R&&R.message?R.message:"Network Error",k=new g(O,g.ERR_NETWORK,e,h);k.event=R||null,r(k),h=null},h.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||Ve;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new g(R,O.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&a.forEach(s.toJSON(),function(R,O){h.setRequestHeader(O,R)}),a.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),l&&([b,d]=oe(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,w]=oe(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(u=S=>{h&&(r(!S||S.type?new z(null,e,h):S),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const y=Bn(o.url);if(y&&A.protocols.indexOf(y)===-1){r(new g("Unsupported protocol "+y+":",g.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Vn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(l){if(!o){o=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof g?u:new z(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},Jn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Gn=async function*(e,t){for await(const n of Wn(e))yield*Jn(n,t)},Wn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},tt=(e,t,n,r)=>{const o=Gn(e,t);let i=0,s,c=f=>{s||(s=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await o.next();if(l){c(),f.close();return}let p=u.byteLength;if(n){let b=i+=p;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},nt=64*1024,{isFunction:se}=a,Kn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:rt,TextEncoder:ot}=a.global,st=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Xn=e=>{e=a.merge.call({skipUndefined:!0},Kn,e);const{fetch:t,Request:n,Response:r}=e,o=t?se(t):typeof fetch=="function",i=se(n),s=se(r);if(!o)return!1;const c=o&&se(rt),f=o&&(typeof ot=="function"?(d=>m=>d.encode(m))(new ot):async d=>new Uint8Array(await new n(d).arrayBuffer())),l=i&&c&&st(()=>{let d=!1;const m=new n(A.origin,{body:new rt,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),u=s&&c&&st(()=>a.isReadableStream(new r("").body)),p={stream:u&&(d=>d.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(m,h)=>{let T=m&&m[d];if(T)return T.call(m);throw new g(`Response type '${d}' is not supported`,g.ERR_NOT_SUPPORT,h)})});const b=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new n(A.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(a.isArrayBufferView(d)||a.isArrayBuffer(d))return d.byteLength;if(a.isURLSearchParams(d)&&(d=d+""),a.isString(d))return(await f(d)).byteLength},w=async(d,m)=>{const h=a.toFiniteNumber(d.getContentLength());return h??b(m)};return async d=>{let{url:m,method:h,data:T,signal:y,cancelToken:S,timeout:R,onDownloadProgress:O,onUploadProgress:k,responseType:x,headers:I,withCredentials:ue="same-origin",fetchOptions:mt}=et(d),yt=t||fetch;x=x?(x+"").toLowerCase():"text";let le=Vn([y,S&&S.toAbortSignal()],R),Q=null;const v=le&&le.unsubscribe&&(()=>{le.unsubscribe()});let gt;try{if(k&&l&&h!=="get"&&h!=="head"&&(gt=await w(I,T))!==0){let j=new n(m,{method:"POST",body:T,duplex:"half"}),V;if(a.isFormData(T)&&(V=j.headers.get("content-type"))&&I.setContentType(V),j.body){const[Oe,de]=Xe(gt,oe(Qe(k)));T=tt(j.body,nt,Oe,de)}}a.isString(ue)||(ue=ue?"include":"omit");const _=i&&"credentials"in n.prototype,bt={...mt,signal:le,method:h.toUpperCase(),headers:I.normalize().toJSON(),body:T,duplex:"half",credentials:_?ue:void 0};Q=i&&new n(m,bt);let U=await(i?yt(Q,mt):yt(m,bt));const wt=u&&(x==="stream"||x==="response");if(u&&(O||wt&&v)){const j={};["status","statusText","headers"].forEach(Et=>{j[Et]=U[Et]});const V=a.toFiniteNumber(U.headers.get("content-length")),[Oe,de]=O&&Xe(V,oe(Qe(O),!0))||[];U=new r(tt(U.body,nt,Oe,()=>{de&&de(),v&&v()}),j)}x=x||"text";let dr=await p[a.findKey(p,x)||"text"](U,d);return!wt&&v&&v(),await new Promise((j,V)=>{Ke(j,V,{data:dr,headers:L.from(U.headers),status:U.status,statusText:U.statusText,config:d,request:Q})})}catch(_){throw v&&v(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,d,Q),{cause:_.cause||_}):g.from(_,_&&_.code,d,Q)}}},Qn=new Map,it=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,c=s,f,l,u=Qn;for(;c--;)f=i[c],l=u.get(f),l===void 0&&u.set(f,l=c?new Map:Xn(t)),u=l;return l};it();const Re={http:wn,xhr:zn,fetch:{get:it}};a.forEach(Re,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const at=e=>`- ${e}`,Zn=e=>a.isFunction(e)||e===null||e===!1;function Yn(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let c;if(o=r,!Zn(r)&&(o=Re[(c=String(r)).toLowerCase()],o===void 0))throw new g(`Unknown adapter '${c}'`);if(o&&(a.isFunction(o)||(o=o.get(t))))break;i[c||"#"+s]=o}if(!o){const s=Object.entries(i).map(([f,l])=>`adapter ${f} `+(l===!1?"is not supported by the environment":"is not available in the build"));let c=n?s.length>1?`since :
|
|
4
|
+
`+s.map(at).join(`
|
|
5
|
+
`):" "+at(s[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o}const ct={getAdapter:Yn,adapters:Re};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function ut(e){return Te(e),e.headers=L.from(e.headers),e.data=Se.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ct.getAdapter(e.adapter||K.adapter,e)(e).then(function(r){return Te(e),r.data=Se.call(e,e.transformResponse,r),r.headers=L.from(r.headers),r},function(r){return We(r)||(Te(e),r&&r.response&&(r.response.data=Se.call(e,e.transformResponse,r.response),r.response.headers=L.from(r.response.headers))),Promise.reject(r)})}const lt="1.13.2",ie={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ie[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dt={};ie.transitional=function(t,n,r){function o(i,s){return"[Axios v"+lt+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,c)=>{if(t===!1)throw new g(o(s," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!dt[s]&&(dt[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,c):!0}},ie.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function er(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const c=e[i],f=c===void 0||s(c,i,e);if(f!==!0)throw new g("option "+i+" must be "+f,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+i,g.ERR_BAD_OPTION)}}const ae={assertOptions:er,validators:ie},P=ae.validators;let M=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ze,response:new ze}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ae.assertOptions(r,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:ae.assertOptions(o,{encode:P.function,serialize:P.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ae.assertOptions(n,{baseUrl:P.spelling("baseURL"),withXsrfToken:P.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=L.concat(s,i);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,p=0,b;if(!f){const d=[ut.bind(this),void 0];for(d.unshift(...c),d.push(...l),b=d.length,u=Promise.resolve(n);p<b;)u=u.then(d[p++],d[p++]);return u}b=c.length;let w=n;for(;p<b;){const d=c[p++],m=c[p++];try{w=d(w)}catch(h){m.call(this,h);break}}try{u=ut.call(this,w)}catch(d){return Promise.reject(d)}for(p=0,b=l.length;p<b;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=q(this.defaults,t);const n=Ze(t.baseURL,t.url,t.allowAbsoluteUrls);return $e(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){M.prototype[t]=function(n,r){return this.request(q(r||{},{method:t,url:n,data:(r||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,c){return this.request(q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}M.prototype[t]=n(),M.prototype[t+"Form"]=n(!0)});let tr=class St{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(c=>{r.subscribe(c),i=c}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,c){r.reason||(r.reason=new z(i,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new St(function(o){t=o}),cancel:t}}};function nr(e){return function(n){return e.apply(null,n)}}function rr(e){return a.isObject(e)&&e.isAxiosError===!0}const Ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ce).forEach(([e,t])=>{Ce[t]=e});function ft(e){const t=new M(e),n=xe(M.prototype.request,t);return a.extend(n,M.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ft(q(e,o))},n}const C=ft(K);C.Axios=M,C.CanceledError=z,C.CancelToken=tr,C.isCancel=We,C.VERSION=lt,C.toFormData=ne,C.AxiosError=g,C.Cancel=C.CanceledError,C.all=function(t){return Promise.all(t)},C.spread=nr,C.isAxiosError=rr,C.mergeConfig=q,C.AxiosHeaders=L,C.formToJSON=e=>Je(a.isHTMLForm(e)?new FormData(e):e),C.getAdapter=ct.getAdapter,C.HttpStatusCode=Ce,C.default=C;const{Axios:Nr,AxiosError:Ar,CanceledError:xr,isCancel:Fr,CancelToken:Lr,VERSION:Dr,all:Pr,Cancel:_r,isAxiosError:kr,spread:Ur,toFormData:jr,AxiosHeaders:Br,HttpStatusCode:qr,formToJSON:Mr,getAdapter:Ir,mergeConfig:vr}=C;var pt=(e=>(e.KeyApp="1",e.Module="2",e.MenuGroup="3",e.Menu="4",e))(pt||{});function or(e){const t=E.computed(()=>{const f=new Map;return e.value.forEach(l=>{f.set(l.id,l)}),f}),n=E.computed(()=>{const f=new Map;return e.value.forEach(l=>{const{parentId:u}=l;u&&(f.has(u)||f.set(u,[]),f.get(u).push(l))}),f}),r=E.computed(()=>e.value.filter(f=>{const{parentId:l}=f;return!l||!t.value.get(l)})),o=E.ref([]);function i(){const f=[],l=[];for([...r.value].reverse().forEach(u=>l.push(u.id));l.length>0;){const u=l.pop(),p=t.value.get(u);f.push(p),[...n.value.get(u)||[]].reverse().forEach(w=>{l.push(w.id)})}return f}E.watch(e,()=>{o.value=i()});function s(f,l){const u=[],p=[f];for(;p.length>0;){const b=p.shift();if(!b)continue;const w=n.value.get(b.id)||[];for(const d of w)l(d)&&u.push(d),p.push(d)}return u}function c(f){return n.value.get(f==null?void 0:f.id)||[]}return{orderedTreeNodes:o,getLeafDescendants:s,getChildNodes:c}}function sr(e,t){const n=E.ref([]),r=new Set,o=or(n),{orderedTreeNodes:i}=o,s=E.computed(()=>i.value.filter(l));function c(y){return r.has(y)}function f(y){const S=y;return(S==null?void 0:S.funcType)===pt.Menu}function l(y){return!f(y)}function u(y){y&&(y.layer=Number(y.layer)-1,y.collapse=typeof y.collapse=="boolean"?y.collapse:!0)}function p(y){return typeof e.fetchNodeApi=="function"?e.fetchNodeApi(y):!y&&typeof e.fetchNodeApi=="string"?e.fetchNodeApi:""}async function b(y){const S=p(y);if(!S)return Promise.resolve([]);const R={headers:{"Content-Type":"application/json"}},O=Nt.FLoadingService.show({target:t.value}),x=(await C.get(S,R).then(I=>(O.value.close(),I)).catch(I=>(console.error(I),O.value.close(),{data:[]}))).data||[];return x.forEach(u),x}function w(){n.value.forEach(y=>{const O=!!o.getChildNodes(y).find(l);y.hasChildren=O}),n.value=[...n.value]}function d(y){!y||!y.length||(n.value.push(...y),w())}function m(y){const S=(y==null?void 0:y.id)||"";c(S)||b(y).then(R=>{c(S)||(r.add(S),d(R))})}function h(y){return o.getLeafDescendants(y,f)}function T(){n.value=[],r.clear()}return{treeData:s,loadNodesByLevel:m,getLeafDescendants:h,clearCache:T}}function ir(e,t){const n=E.ref([]);function r(s){}function o(s){return[]}function i(){}return{treeData:n,loadNodesByLevel:r,getLeafDescendants:o,clearCache:i}}function ar(e,t){return ht(sr(e,t))}function cr(e,t){return ht(ir())}function ht(e){const{treeData:t,loadNodesByLevel:n,getLeafDescendants:r}=e,o=E.ref([]),i=E.ref();function s(w){const d=w==null?void 0:w[0];if(!d)return;const m=r(d);o.value=[...m]}function c(w){const d=w==null?void 0:w[0];i.value=d}function f(){i.value=void 0}function l(w){var d;return(d=w==null?void 0:w.row)==null?void 0:d.raw}function u(w){const d=l(w);n(d)}function p(){i.value=void 0,o.value=[],e.clearCache()}function b(){p(),n()}return{treeData:t,gridData:o,selectedData:i,onNavTreeSelectionChange:s,onNavTreeExpandNode:u,onDataGridSelectionChange:c,onDataGridUnSelectItem:f,initialize:b,clearCache:p}}function ur(e,t,n){const r=E.inject(At.F_NOTIFY_SERVICE_TOKEN,null),o=e.targetType==="app"?"选择应用":"选择功能菜单",{selectedData:i,clearCache:s}=n;function c(p,b){t.emit("change",p,p,b),t.emit("update:modelValue",p)}function f(){if(!i.value)return r==null||r.warning({message:"请选择数据!",position:"top-center"}),!1;const p=i.value.id,b=i.value;return c(p,b),!0}function l(){c("")}return{modalConfigs:E.reactive({title:o,width:800,height:550,fitContent:!1,showHeader:!0,showCloseButton:!0,showMaxButton:!1,resizeable:!1,draggable:!0,closedCallback:()=>{s()},buttons:[{class:"btn btn-secondary",text:"取消",handle:()=>!0},{class:"btn btn-primary",text:"确定",handle:()=>f()}]}),changeValue:c,onClear:l}}const ce=E.defineComponent({name:"FMenuLookup",props:pe,emits:["change","update:modelValue"],setup(e,t){const n=E.ref(),r=e.targetType==="app"?cr():ar(e,n),{modalConfigs:o,changeValue:i,onClear:s}=ur(e,t,r);return()=>E.createVNode(Tt.FButtonEdit,{modelValue:e.modelValue,enableClear:!0,buttonBehavior:"Modal",modalOptions:o,onClear:s,"onUpdate:modelValue":i},{default:()=>[E.createVNode("div",{ref:n,class:"fv-menu-lookup-container"},[E.createVNode(_t,{targetType:e.targetType,useTreeGridCoordinatorComposition:r},null)])]})}});ce.register=(e,t,n,r)=>{e["menu-lookup"]=ce,t["menu-lookup"]=Ne};const lr=xt.withInstall(ce);N.FMenuLookup=ce,N.default=lr,N.menuLookupProps=pe,N.propsResolver=Ne,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,6 +1,203 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as x, ref as d, computed as c, watch as I, createVNode as l, createTextVNode as F, inject as D, onMounted as T } from "vue";
|
|
2
|
+
import { resolveAppearance as C, createPropsResolver as j } from "../dynamic-resolver/index.esm.js";
|
|
3
|
+
import { useDesignerComponent as z } from "../designer-canvas/index.esm.js";
|
|
4
|
+
const P = /* @__PURE__ */ new Map([
|
|
5
|
+
["appearance", C]
|
|
6
|
+
]);
|
|
7
|
+
function S(t, s, i) {
|
|
8
|
+
return s;
|
|
9
|
+
}
|
|
10
|
+
const $ = "https://json-schema.org/draft/2020-12/schema", A = "https://farris-design.gitee.io/nav.schema.json", M = "nav", R = "A Farris Component", _ = "object", q = {
|
|
11
|
+
id: {
|
|
12
|
+
description: "The unique identifier for a nav",
|
|
13
|
+
type: "string"
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
description: "The type string of nav component",
|
|
17
|
+
type: "string",
|
|
18
|
+
default: "nav"
|
|
19
|
+
},
|
|
20
|
+
appearance: {
|
|
21
|
+
description: "",
|
|
22
|
+
type: "object",
|
|
23
|
+
properties: {
|
|
24
|
+
class: {
|
|
25
|
+
type: "string"
|
|
26
|
+
},
|
|
27
|
+
style: {
|
|
28
|
+
type: "string"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
default: {}
|
|
32
|
+
},
|
|
33
|
+
binding: {
|
|
34
|
+
description: "",
|
|
35
|
+
type: "object",
|
|
36
|
+
default: {}
|
|
37
|
+
},
|
|
38
|
+
editable: {
|
|
39
|
+
description: "",
|
|
40
|
+
type: "boolean",
|
|
41
|
+
default: !0
|
|
42
|
+
},
|
|
43
|
+
enableLinkLabel: {
|
|
44
|
+
description: "",
|
|
45
|
+
type: "boolean",
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
label: {
|
|
49
|
+
description: "",
|
|
50
|
+
type: "string",
|
|
51
|
+
default: ""
|
|
52
|
+
},
|
|
53
|
+
lableWidth: {
|
|
54
|
+
description: "",
|
|
55
|
+
type: "number"
|
|
56
|
+
},
|
|
57
|
+
placeholder: {
|
|
58
|
+
description: "",
|
|
59
|
+
type: "string",
|
|
60
|
+
default: ""
|
|
61
|
+
},
|
|
62
|
+
readonly: {
|
|
63
|
+
description: "",
|
|
64
|
+
type: "boolean",
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
required: {
|
|
68
|
+
description: "",
|
|
69
|
+
type: "boolean",
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
tabindex: {
|
|
73
|
+
description: "",
|
|
74
|
+
type: "number",
|
|
75
|
+
default: -1
|
|
76
|
+
},
|
|
77
|
+
textAlign: {
|
|
78
|
+
description: "",
|
|
79
|
+
type: "string",
|
|
80
|
+
enum: [
|
|
81
|
+
"left",
|
|
82
|
+
"middle",
|
|
83
|
+
"right"
|
|
84
|
+
],
|
|
85
|
+
default: "left"
|
|
86
|
+
},
|
|
87
|
+
visible: {
|
|
88
|
+
description: "",
|
|
89
|
+
type: "boolean",
|
|
90
|
+
default: !0
|
|
91
|
+
},
|
|
92
|
+
onBlur: {
|
|
93
|
+
description: "",
|
|
94
|
+
type: "string",
|
|
95
|
+
default: ""
|
|
96
|
+
},
|
|
97
|
+
onClickLinkLabel: {
|
|
98
|
+
description: "",
|
|
99
|
+
type: "string",
|
|
100
|
+
default: ""
|
|
101
|
+
}
|
|
102
|
+
}, L = [
|
|
103
|
+
"id",
|
|
104
|
+
"type"
|
|
105
|
+
], B = {
|
|
106
|
+
$schema: $,
|
|
107
|
+
$id: A,
|
|
108
|
+
title: M,
|
|
109
|
+
description: R,
|
|
110
|
+
type: _,
|
|
111
|
+
properties: q,
|
|
112
|
+
required: L
|
|
113
|
+
}, w = "nav", O = "A Farris Component", V = "object", W = {
|
|
114
|
+
basic: {
|
|
115
|
+
description: "Basic Infomation",
|
|
116
|
+
title: "基本信息",
|
|
117
|
+
properties: {
|
|
118
|
+
id: {
|
|
119
|
+
description: "组件标识",
|
|
120
|
+
title: "标识",
|
|
121
|
+
type: "string",
|
|
122
|
+
readonly: !0
|
|
123
|
+
},
|
|
124
|
+
type: {
|
|
125
|
+
description: "组件类型",
|
|
126
|
+
title: "控件类型",
|
|
127
|
+
type: "select",
|
|
128
|
+
editor: {
|
|
129
|
+
type: "waiting for modification",
|
|
130
|
+
enum: []
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
behavior: {
|
|
136
|
+
description: "Basic Infomation",
|
|
137
|
+
title: "行为",
|
|
138
|
+
properties: {
|
|
139
|
+
editable: {
|
|
140
|
+
description: "",
|
|
141
|
+
title: "允许编辑",
|
|
142
|
+
type: "boolean"
|
|
143
|
+
},
|
|
144
|
+
readonly: {
|
|
145
|
+
description: "",
|
|
146
|
+
title: "只读",
|
|
147
|
+
type: "string"
|
|
148
|
+
},
|
|
149
|
+
required: {
|
|
150
|
+
description: "",
|
|
151
|
+
title: "必填",
|
|
152
|
+
type: "boolean"
|
|
153
|
+
},
|
|
154
|
+
visible: {
|
|
155
|
+
description: "",
|
|
156
|
+
title: "可见",
|
|
157
|
+
type: "boolean"
|
|
158
|
+
},
|
|
159
|
+
placeholder: {
|
|
160
|
+
description: "",
|
|
161
|
+
title: "提示文本",
|
|
162
|
+
type: "string"
|
|
163
|
+
},
|
|
164
|
+
tabindex: {
|
|
165
|
+
description: "",
|
|
166
|
+
title: "tab索引",
|
|
167
|
+
type: "number"
|
|
168
|
+
},
|
|
169
|
+
textAlign: {
|
|
170
|
+
description: "",
|
|
171
|
+
title: "对齐方式",
|
|
172
|
+
type: "enum",
|
|
173
|
+
editor: {
|
|
174
|
+
type: "combo-list",
|
|
175
|
+
textField: "name",
|
|
176
|
+
valueField: "value",
|
|
177
|
+
data: [
|
|
178
|
+
{
|
|
179
|
+
value: "left",
|
|
180
|
+
name: "左对齐"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
value: "center",
|
|
184
|
+
name: "居中"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
value: "right",
|
|
188
|
+
name: "右对齐"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}, E = {
|
|
196
|
+
title: w,
|
|
197
|
+
description: O,
|
|
198
|
+
type: V,
|
|
199
|
+
categories: W
|
|
200
|
+
}, h = {
|
|
4
201
|
/** 当前激活的id */
|
|
5
202
|
activeNavId: { Type: String, default: "1" },
|
|
6
203
|
/** 导航文本字段 */
|
|
@@ -45,51 +242,51 @@ const T = {
|
|
|
45
242
|
},
|
|
46
243
|
/** 徽标值字段 */
|
|
47
244
|
valueField: { Type: String, default: "num" }
|
|
48
|
-
},
|
|
245
|
+
}, N = j(h, B, P, S, E), b = /* @__PURE__ */ x({
|
|
49
246
|
name: "FNav",
|
|
50
|
-
props:
|
|
247
|
+
props: h,
|
|
51
248
|
emits: ["nav", "update:activeNavId"],
|
|
52
|
-
setup(t,
|
|
53
|
-
const i =
|
|
249
|
+
setup(t, s) {
|
|
250
|
+
const i = d(t.activeNavId), v = d(t.navData), u = d(t.horizontal), p = d(t.navPicking), f = c(() => ({
|
|
54
251
|
paddingTop: "1rem"
|
|
55
252
|
}));
|
|
56
|
-
|
|
253
|
+
I(() => t.activeNavId, (a, e) => {
|
|
57
254
|
a !== e && (i.value = a);
|
|
58
255
|
});
|
|
59
|
-
const
|
|
256
|
+
const r = c({
|
|
60
257
|
get() {
|
|
61
|
-
return
|
|
258
|
+
return v.value;
|
|
62
259
|
},
|
|
63
260
|
set(a) {
|
|
64
|
-
|
|
261
|
+
v.value = a, g();
|
|
65
262
|
}
|
|
66
|
-
}), o =
|
|
263
|
+
}), o = c({
|
|
67
264
|
get() {
|
|
68
265
|
return i.value;
|
|
69
266
|
},
|
|
70
267
|
set(a) {
|
|
71
|
-
if (i.value = a, i.value &&
|
|
72
|
-
const e =
|
|
73
|
-
e &&
|
|
268
|
+
if (i.value = a, i.value && r && r.value.length) {
|
|
269
|
+
const e = r.value.find((n) => n.id === i.value);
|
|
270
|
+
e && s.emit("nav", e);
|
|
74
271
|
}
|
|
75
272
|
}
|
|
76
|
-
}), m =
|
|
273
|
+
}), m = c({
|
|
77
274
|
set(a) {
|
|
78
|
-
|
|
275
|
+
u.value = a;
|
|
79
276
|
},
|
|
80
277
|
get() {
|
|
81
|
-
return
|
|
278
|
+
return u.value;
|
|
82
279
|
}
|
|
83
280
|
});
|
|
84
|
-
function
|
|
85
|
-
if (
|
|
86
|
-
const a =
|
|
281
|
+
function g() {
|
|
282
|
+
if (r.value && r.value.length && !i.value) {
|
|
283
|
+
const a = r.value.find((e) => !e.disable);
|
|
87
284
|
a && (i.value = a.id);
|
|
88
285
|
}
|
|
89
286
|
}
|
|
90
|
-
function
|
|
91
|
-
a.disable || a.id === i.value || Promise.resolve().then(() =>
|
|
92
|
-
e && (i.value = a.id,
|
|
287
|
+
function y(a) {
|
|
288
|
+
a.disable || a.id === i.value || Promise.resolve().then(() => p.value(a)).then((e) => {
|
|
289
|
+
e && (i.value = a.id, s.emit("update:activeNavId", a.id), s.emit("nav", a));
|
|
93
290
|
});
|
|
94
291
|
}
|
|
95
292
|
return () => {
|
|
@@ -98,13 +295,13 @@ const T = {
|
|
|
98
295
|
class: ["farris-nav", {
|
|
99
296
|
"farris-nav-vertical": !m.value
|
|
100
297
|
}]
|
|
101
|
-
}, [(a =
|
|
298
|
+
}, [(a = r.value) == null ? void 0 : a.map((e) => l("div", {
|
|
102
299
|
class: ["farris-nav-item", {
|
|
103
300
|
active: e[t.idField] === o.value
|
|
104
301
|
}, {
|
|
105
302
|
disabled: e[t.disableField]
|
|
106
303
|
}],
|
|
107
|
-
onClick: () =>
|
|
304
|
+
onClick: () => y(e)
|
|
108
305
|
}, [l("div", {
|
|
109
306
|
class: "farris-nav-item-link",
|
|
110
307
|
style: f.value
|
|
@@ -116,14 +313,97 @@ const T = {
|
|
|
116
313
|
class: "tag-text"
|
|
117
314
|
}, [e[t.valueField]]), e[t.valueField] > t.maxNum && l("span", {
|
|
118
315
|
class: "tag-text"
|
|
119
|
-
}, [t.maxNum,
|
|
316
|
+
}, [t.maxNum, F("+")])])]), l("div", {
|
|
120
317
|
class: "farris-nav-item-bottom-line"
|
|
121
318
|
}, null)])]))]);
|
|
122
319
|
};
|
|
123
320
|
}
|
|
124
|
-
}),
|
|
321
|
+
}), G = /* @__PURE__ */ x({
|
|
322
|
+
name: "FNavDesign",
|
|
323
|
+
props: h,
|
|
324
|
+
emits: ["nav"],
|
|
325
|
+
setup(t, s) {
|
|
326
|
+
const i = d(t.activeNavId), v = d(t.navData), u = d(t.horizontal);
|
|
327
|
+
d(t.navPicking);
|
|
328
|
+
const p = d(), f = D("design-item-context"), r = z(p, f);
|
|
329
|
+
T(() => {
|
|
330
|
+
p.value.componentInstance = r;
|
|
331
|
+
}), s.expose(r.value);
|
|
332
|
+
const o = c({
|
|
333
|
+
get() {
|
|
334
|
+
return v.value;
|
|
335
|
+
},
|
|
336
|
+
set(e) {
|
|
337
|
+
v.value = e, y();
|
|
338
|
+
}
|
|
339
|
+
}), m = c({
|
|
340
|
+
get() {
|
|
341
|
+
return i.value;
|
|
342
|
+
},
|
|
343
|
+
set(e) {
|
|
344
|
+
if (i.value = e, i.value && o && o.value.length) {
|
|
345
|
+
const n = o.value.find((k) => k.id === i.value);
|
|
346
|
+
n && s.emit("nav", n);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}), g = c({
|
|
350
|
+
set(e) {
|
|
351
|
+
u.value = e;
|
|
352
|
+
},
|
|
353
|
+
get() {
|
|
354
|
+
return u.value;
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
function y() {
|
|
358
|
+
if (o.value && o.value.length && !i.value) {
|
|
359
|
+
const e = o.value.find((n) => !n.disable);
|
|
360
|
+
e && (i.value = e.id);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
function a(e) {
|
|
364
|
+
e.disable || e.id === i.value || (i.value = e.id, s.emit("nav", e));
|
|
365
|
+
}
|
|
366
|
+
return () => {
|
|
367
|
+
var e;
|
|
368
|
+
return l("div", {
|
|
369
|
+
ref: p,
|
|
370
|
+
class: ["farris-nav", {
|
|
371
|
+
"farris-nav-vertical": !g.value
|
|
372
|
+
}]
|
|
373
|
+
}, [(e = o.value) == null ? void 0 : e.map((n) => l("div", {
|
|
374
|
+
class: ["farris-nav-item", {
|
|
375
|
+
active: n.id === m.value
|
|
376
|
+
}, {
|
|
377
|
+
disabled: n.disable
|
|
378
|
+
}],
|
|
379
|
+
onClick: () => a(n)
|
|
380
|
+
}, [l("div", {
|
|
381
|
+
class: "farris-nav-item-link"
|
|
382
|
+
}, [l("span", {
|
|
383
|
+
class: "farris-nav-item-link-text"
|
|
384
|
+
}, [n.text, n.num && l("div", {
|
|
385
|
+
class: "farris-nav-item-tag"
|
|
386
|
+
}, [n.num <= t.maxNum && l("span", {
|
|
387
|
+
class: "tag-text"
|
|
388
|
+
}, [n.num]), n.num > t.maxNum && l("span", {
|
|
389
|
+
class: "tag-text"
|
|
390
|
+
}, [t.maxNum, F("+")])])])])]))]);
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
}), Q = {
|
|
394
|
+
install(t) {
|
|
395
|
+
t.component(b.name, b);
|
|
396
|
+
},
|
|
397
|
+
register(t, s, i, v) {
|
|
398
|
+
t.nav = b, s.nav = N;
|
|
399
|
+
},
|
|
400
|
+
registerDesigner(t, s, i) {
|
|
401
|
+
t.nav = G, s.nav = N;
|
|
402
|
+
}
|
|
403
|
+
};
|
|
125
404
|
export {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
405
|
+
b as FNav,
|
|
406
|
+
Q as default,
|
|
407
|
+
h as navProps,
|
|
408
|
+
N as propsResolver
|
|
129
409
|
};
|