@ibiz-template/vue3-components 0.7.38-alpha.31 → 0.7.38-alpha.56
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/dist/chart-C4Y8Daxm.js +1 -0
- package/dist/ibiz-markdown-editor-CKuF8KOI.js +1 -0
- package/dist/index-B79xJqXz.js +1 -0
- package/dist/index-BsxW9vZO.js +1 -0
- package/dist/index-CIQ8bnG_.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-Byqjtna-.js +1 -0
- package/dist/map-chart-user-BaQWHpFu.js +1 -0
- package/dist/wang-editor-Vd0LVyWx.js +1 -0
- package/dist/{xlsx-util-DbA3TyD9.js → xlsx-util-BApCDhEk.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +6 -0
- package/es/common/action-toolbar/action-toolbar.mjs +12 -2
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/button-list/button-list.d.ts +3 -2
- package/es/common/button-list/button-list.mjs +102 -27
- package/es/common/control-navigation/control-navigation.mjs +2 -0
- package/es/common/cropping/cropping.css +1 -0
- package/es/common/cropping/cropping.d.ts +54 -0
- package/es/common/cropping/cropping.mjs +291 -0
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +3 -0
- package/es/common/custom-theme/custom-theme-model.mjs +168 -47
- package/es/common/custom-theme/custom-theme.controller.d.ts +87 -1
- package/es/common/custom-theme/custom-theme.controller.mjs +235 -5
- package/es/common/custom-theme/custom-theme.css +1 -1
- package/es/common/custom-theme/custom-theme.d.ts +5 -3
- package/es/common/custom-theme/custom-theme.mjs +190 -26
- package/es/common/data-import/data-import.mjs +3 -2
- package/es/common/data-import2/data-import2.mjs +2 -3
- package/es/common/grid-setting/grid-setting.d.ts +0 -1
- package/es/common/grid-setting/grid-setting.mjs +4 -8
- package/es/common/index.mjs +8 -0
- package/es/common/map-chart/map-manager.mjs +16 -4
- package/es/common/map-chart-user/map-chart-user.css +1 -0
- package/es/common/map-chart-user/map-chart-user.d.ts +136 -0
- package/es/common/map-chart-user/map-chart-user.mjs +104 -0
- package/es/common/map-chart-user/map-chart-user.util.d.ts +39 -0
- package/es/common/map-chart-user/map-chart-user.util.mjs +206 -0
- package/es/common/map-chart-user/map-user-manager.d.ts +21 -0
- package/es/common/map-chart-user/map-user-manager.mjs +155 -0
- package/es/common/nav-split/nav-split.mjs +0 -1
- package/es/common/no-data/no-data.css +1 -1
- package/es/common/no-data/no-data.d.ts +3 -3
- package/es/common/no-data/no-data.mjs +2 -2
- package/es/common/view-message/view-message.d.ts +5 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +3 -3
- package/es/control/calendar/calendar-util.d.ts +24 -0
- package/es/control/calendar/calendar-util.mjs +21 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +3 -1
- package/es/control/calendar/calendar.mjs +253 -35
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -0
- package/es/control/calendar/components/calendar-user/calendar-user.d.ts +15 -0
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +133 -0
- package/es/control/calendar/components/calendar-user/index.d.ts +15 -0
- package/es/control/calendar/components/calendar-user/index.mjs +9 -0
- package/es/control/calendar/components/calendar-user/use-calendar-user.d.ts +17 -0
- package/es/control/calendar/components/calendar-user/use-calendar-user.mjs +59 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +3 -2
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +11 -0
- package/es/control/calendar/components/interface/calendar-user.d.ts +10 -0
- package/es/control/calendar/components/interface/calendar-user.mjs +20 -0
- package/es/control/calendar/components/interface/index.d.ts +1 -0
- package/es/control/calendar/components/interface/index.mjs +1 -0
- package/es/control/calendar/index.d.ts +3 -1
- package/es/control/caption-bar/caption-bar.css +1 -1
- package/es/control/chart/chart.css +1 -1
- package/es/control/chart/chart.d.ts +1 -0
- package/es/control/chart/chart.mjs +23 -6
- package/es/control/context-menu/context-menu.d.ts +7 -1
- package/es/control/context-menu/context-menu.mjs +15 -4
- package/es/control/context-menu/index.d.ts +7 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +85 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +3 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +1 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +41 -21
- package/es/control/dashboard/dashboard-design/dashboard-design.util.d.ts +10 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.util.mjs +246 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +1 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +0 -1
- package/es/control/data-view/data-view.mjs +23 -10
- package/es/control/data-view/index.d.ts +0 -1
- package/es/control/drbar/drbar.controller.mjs +2 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +2 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +24 -11
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.d.ts +35 -0
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.mjs +93 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +6 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +12 -3
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +52 -35
- package/es/control/form/form-detail/form-item/index.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +71 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/gantt/gantt.mjs +16 -3
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +84 -4
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +2 -1
- package/es/control/grid/grid/grid.mjs +146 -12
- package/es/control/grid/grid/index.mjs +2 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.d.ts +39 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.mjs +102 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.provider.d.ts +13 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.provider.mjs +21 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/index.d.ts +37 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/index.mjs +18 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/row-edit.d.ts +13 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/row-edit.mjs +36 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +6 -14
- package/es/control/grid/grid-column/grid-field-edit-column/all-edit.mjs +3 -1
- package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.mjs +17 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +19 -6
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +1 -1
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/es/control/grid/grid-column/index.d.ts +1 -0
- package/es/control/grid/grid-column/index.mjs +1 -0
- package/es/control/grid/index.mjs +1 -0
- package/es/control/grid/row-edit-popover/use-row-edit-popover.mjs +1 -1
- package/es/control/index.mjs +1 -0
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +15 -3
- package/es/control/list/index.d.ts +0 -1
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +0 -1
- package/es/control/list/list.mjs +25 -13
- package/es/control/map/map.d.ts +1 -0
- package/es/control/map/map.mjs +13 -2
- package/es/control/search-bar/filter-tree/filter-tree.mjs +3 -0
- package/es/control/toolbar/index.d.ts +13 -2
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.d.ts +15 -4
- package/es/control/toolbar/toolbar.mjs +55 -23
- package/es/control/tree/el-tree-util.mjs +7 -5
- package/es/control/tree/index.d.ts +4 -5
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +4 -5
- package/es/control/tree/tree.mjs +103 -30
- package/es/control/tree-grid/tree-grid.mjs +16 -3
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/cell-edit.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +5 -5
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +1 -8
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +16 -3
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.mjs +3 -1
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +2 -2
- package/es/editor/autocomplete/autocomplete-editor.controller.d.ts +21 -3
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +67 -2
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +6 -2
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +90 -6
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -2
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +2 -2
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +1 -1
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +2 -2
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +3 -3
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +2 -3
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +2 -2
- package/es/editor/color-picker/color-picker-editor.controller.d.ts +7 -0
- package/es/editor/color-picker/color-picker-editor.controller.mjs +22 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +101 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs +154 -0
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.d.ts +56 -0
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +178 -0
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +8 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +49 -4
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +3 -2
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +87 -61
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +6 -2
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +98 -32
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +4 -2
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +135 -65
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +6 -2
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +8 -2
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.css +1 -1
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +2 -2
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +21 -6
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +2 -2
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -1
- package/es/editor/data-picker/picker-editor.controller.d.ts +20 -2
- package/es/editor/data-picker/picker-editor.controller.mjs +66 -1
- package/es/editor/data-picker/picker-editor.provider.mjs +0 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +2 -2
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +2 -2
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +1 -1
- package/es/editor/dropdown-list/dropdown-list-editor.controller.d.ts +6 -0
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +13 -2
- package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +3 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +2 -2
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +34 -23
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +2 -2
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +83 -0
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +382 -0
- package/es/editor/dropdown-list/index.d.ts +1 -0
- package/es/editor/dropdown-list/index.mjs +1 -0
- package/es/editor/html/wang-editor/wang-editor.d.ts +2 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +3 -3
- package/es/editor/index.mjs +16 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +3 -3
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +4 -4
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +2 -2
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +1 -1
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +2 -2
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +3 -3
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +2 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +2 -2
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +2 -2
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +2 -2
- package/es/editor/span/span/span.mjs +1 -1
- package/es/editor/span/span-link/span-link.d.ts +2 -2
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +2 -2
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +2 -2
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +2 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +2 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +1 -1
- package/es/editor/text-box/input/input.d.ts +3 -3
- package/es/editor/text-box/input/input.mjs +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +2 -2
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.css +1 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +96 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +233 -0
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +4 -2
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +18 -5
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +2 -2
- package/es/editor/upload/index.d.ts +1 -0
- package/es/editor/upload/index.mjs +1 -0
- package/es/editor/upload/upload-editor.provider.mjs +3 -0
- package/es/editor/upload/use/use-iview-upload.mjs +2 -3
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +2 -2
- package/es/index.mjs +2 -0
- package/es/locale/en/index.d.ts +103 -26
- package/es/locale/en/index.mjs +85 -32
- package/es/locale/zh-CN/index.d.ts +104 -26
- package/es/locale/zh-CN/index.mjs +85 -32
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/index.mjs +2 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +4 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.mjs +3 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +3 -2
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.mjs +6 -1
- package/es/panel-component/nav-tabs/nav-tabs.state.d.ts +2 -0
- package/es/panel-component/panel-app-header/panel-app-header.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +4 -2
- package/es/panel-component/panel-app-title/panel-app-title.mjs +2 -0
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/panel-view-content/panel-view-content.mjs +1 -0
- package/es/panel-component/user-action/user-action.css +1 -1
- package/es/panel-component/user-action/user-action.mjs +36 -21
- package/es/panel-component/user-message/addin-changed/addin-changed.css +1 -0
- package/es/panel-component/user-message/addin-changed/addin-changed.d.ts +20 -0
- package/es/panel-component/user-message/addin-changed/addin-changed.mjs +47 -0
- package/es/panel-component/user-message/addin-changed/index.d.ts +1 -0
- package/es/panel-component/user-message/addin-changed/index.mjs +3 -0
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.css +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.d.ts +2 -5
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.mjs +20 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.d.ts +2 -5
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/util/keydown-util/keydown-util.d.ts +21 -0
- package/es/util/keydown-util/keydown-util.mjs +35 -0
- package/es/util/notice-util/notice-util.d.ts +1 -0
- package/es/util/notice-util/notice-util.mjs +14 -0
- package/es/util/notification-util/upload-manager/upload-manager.mjs +2 -3
- package/es/util/open-view-util/open-view-util.mjs +4 -0
- package/es/view/403-view/403-view.css +1 -1
- package/es/view/403-view/403-view.mjs +1 -1
- package/es/view/404-view/404-view.css +1 -1
- package/es/view/login-view/login-view.mjs +35 -21
- package/es/view/share-view/share-view.mjs +1 -6
- package/es/view-engine/custom-view.engine.d.ts +9 -0
- package/es/view-engine/custom-view.engine.mjs +17 -1
- package/es/view-engine/edit-view.engine.d.ts +7 -15
- package/es/view-engine/edit-view.engine.mjs +80 -166
- package/es/view-engine/grid-view.engine.mjs +1 -5
- package/es/view-engine/index-view.engine.d.ts +7 -0
- package/es/view-engine/index-view.engine.mjs +17 -1
- package/es/view-engine/index.mjs +5 -0
- package/es/view-engine/login-view.engine.mjs +15 -5
- package/es/view-engine/opt-view.engine.mjs +3 -1
- package/es/view-engine/portal-view-engine.d.ts +31 -3
- package/es/view-engine/portal-view-engine.mjs +94 -2
- package/es/view-engine/tree-exp-view.engine.d.ts +14 -0
- package/es/view-engine/tree-exp-view.engine.mjs +24 -1
- package/es/view-engine/wf-dyna-action-view.engine.mjs +1 -1
- package/es/view-engine/wf-dyna-edit-view.engine.mjs +9 -3
- package/es/view-engine/wf-dyna-start-view.engine.mjs +1 -1
- package/es/view-engine/wf-step-data-view.engine.d.ts +10 -0
- package/es/view-engine/wf-step-data-view.engine.mjs +7 -0
- package/es/web-app/App.mjs +0 -10
- package/es/web-app/attach-environment-config.mjs +2 -2
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +4 -0
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +4 -3
- package/es/web-app/guard/auth-guard/auth-guard.mjs +30 -12
- package/es/web-app/main.mjs +4 -0
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +11 -1
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +35 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +12 -2
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/button-list/button-list.cjs +101 -26
- package/lib/common/button-list/button-list.css +1 -1
- package/lib/common/control-navigation/control-navigation.cjs +2 -0
- package/lib/common/cropping/cropping.cjs +293 -0
- package/lib/common/cropping/cropping.css +1 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +168 -47
- package/lib/common/custom-theme/custom-theme.cjs +188 -24
- package/lib/common/custom-theme/custom-theme.controller.cjs +235 -5
- package/lib/common/custom-theme/custom-theme.css +1 -1
- package/lib/common/data-import/data-import.cjs +3 -2
- package/lib/common/data-import2/data-import2.cjs +1 -2
- package/lib/common/grid-setting/grid-setting.cjs +4 -8
- package/lib/common/index.cjs +8 -0
- package/lib/common/map-chart/map-manager.cjs +15 -3
- package/lib/common/map-chart-user/map-chart-user.cjs +109 -0
- package/lib/common/map-chart-user/map-chart-user.css +1 -0
- package/lib/common/map-chart-user/map-chart-user.util.cjs +218 -0
- package/lib/common/map-chart-user/map-user-manager.cjs +157 -0
- package/lib/common/nav-split/nav-split.cjs +0 -1
- package/lib/common/no-data/no-data.cjs +2 -2
- package/lib/common/no-data/no-data.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +2 -2
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/calendar/calendar-util.cjs +24 -0
- package/lib/control/calendar/calendar.cjs +251 -33
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +135 -0
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -0
- package/lib/control/calendar/components/calendar-user/index.cjs +14 -0
- package/lib/control/calendar/components/calendar-user/use-calendar-user.cjs +63 -0
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +3 -2
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +11 -0
- package/lib/control/calendar/components/interface/calendar-user.cjs +23 -0
- package/lib/control/calendar/components/interface/index.cjs +3 -0
- package/lib/control/caption-bar/caption-bar.css +1 -1
- package/lib/control/chart/chart.cjs +22 -5
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/context-menu/context-menu.cjs +15 -4
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +2 -2
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +40 -20
- package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard-design/dashboard-design.util.cjs +248 -0
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
- package/lib/control/data-view/data-view.cjs +22 -9
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +2 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +2 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +24 -11
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-item/composite-form-item/composite-form-item.cjs +98 -0
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +11 -2
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +51 -34
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
- package/lib/control/gantt/gantt.cjs +14 -1
- package/lib/control/grid/grid/grid-control.util.cjs +83 -3
- package/lib/control/grid/grid/grid.cjs +143 -8
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid/index.cjs +2 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.cjs +107 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.provider.cjs +23 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/index.cjs +23 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/row-edit.cjs +38 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +6 -14
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/all-edit.cjs +3 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/cell-edit.cjs +16 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +18 -5
- package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/lib/control/grid/grid-column/index.cjs +2 -0
- package/lib/control/grid/index.cjs +2 -0
- package/lib/control/grid/row-edit-popover/use-row-edit-popover.cjs +1 -1
- package/lib/control/index.cjs +104 -102
- package/lib/control/kanban/kanban.cjs +14 -2
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/list/list.cjs +24 -12
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +13 -2
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +3 -0
- package/lib/control/toolbar/toolbar.cjs +55 -23
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/el-tree-util.cjs +7 -5
- package/lib/control/tree/tree.cjs +102 -29
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid/tree-grid.cjs +14 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/cell-edit.cjs +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +5 -5
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +1 -8
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +14 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +3 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +66 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +90 -6
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +1 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -3
- package/lib/editor/color-picker/color-picker-editor.controller.cjs +22 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.cjs +156 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +180 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +49 -4
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +86 -60
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +97 -31
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +134 -64
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +7 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +21 -6
- package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +65 -0
- package/lib/editor/data-picker/picker-editor.provider.cjs +0 -1
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +13 -2
- package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +3 -0
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +34 -23
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +384 -0
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
- package/lib/editor/dropdown-list/index.cjs +2 -0
- package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
- package/lib/editor/index.cjs +16 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +2 -2
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +1 -1
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -3
- package/lib/editor/span/span/span.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +1 -1
- package/lib/editor/text-box/input/input.cjs +1 -1
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +235 -0
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.css +1 -0
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +18 -5
- package/lib/editor/upload/index.cjs +2 -0
- package/lib/editor/upload/upload-editor.provider.cjs +3 -0
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -2
- package/lib/index.cjs +136 -132
- package/lib/locale/en/index.cjs +85 -32
- package/lib/locale/zh-CN/index.cjs +85 -32
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/index.cjs +1 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.cjs +3 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +4 -1
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +6 -1
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +1 -1
- package/lib/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/lib/panel-component/panel-app-header/panel-app-header.css +1 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +2 -0
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +4 -2
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/panel-view-content/panel-view-content.cjs +1 -0
- package/lib/panel-component/user-action/user-action.cjs +36 -21
- package/lib/panel-component/user-action/user-action.css +1 -1
- package/lib/panel-component/user-message/addin-changed/addin-changed.cjs +49 -0
- package/lib/panel-component/user-message/addin-changed/addin-changed.css +1 -0
- package/lib/panel-component/user-message/addin-changed/index.cjs +7 -0
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.cjs +20 -1
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/keydown-util/keydown-util.cjs +37 -0
- package/lib/util/notice-util/notice-util.cjs +14 -0
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +1 -2
- package/lib/util/open-view-util/open-view-util.cjs +4 -0
- package/lib/view/403-view/403-view.cjs +1 -1
- package/lib/view/403-view/403-view.css +1 -1
- package/lib/view/404-view/404-view.css +1 -1
- package/lib/view/login-view/login-view.cjs +33 -19
- package/lib/view/share-view/share-view.cjs +0 -5
- package/lib/view-engine/custom-view.engine.cjs +16 -0
- package/lib/view-engine/edit-view.engine.cjs +79 -165
- package/lib/view-engine/grid-view.engine.cjs +1 -5
- package/lib/view-engine/index-view.engine.cjs +17 -1
- package/lib/view-engine/index.cjs +5 -0
- package/lib/view-engine/login-view.engine.cjs +15 -5
- package/lib/view-engine/opt-view.engine.cjs +3 -1
- package/lib/view-engine/portal-view-engine.cjs +93 -1
- package/lib/view-engine/tree-exp-view.engine.cjs +23 -0
- package/lib/view-engine/wf-dyna-action-view.engine.cjs +1 -1
- package/lib/view-engine/wf-dyna-edit-view.engine.cjs +9 -3
- package/lib/view-engine/wf-dyna-start-view.engine.cjs +1 -1
- package/lib/view-engine/wf-step-data-view.engine.cjs +9 -0
- package/lib/web-app/App.cjs +0 -10
- package/lib/web-app/attach-environment-config.cjs +2 -2
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -0
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +29 -11
- package/lib/web-app/main.cjs +4 -0
- package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +35 -1
- package/package.json +9 -9
- package/dist/chart-DPS_XpZp.js +0 -1
- package/dist/ibiz-markdown-editor-BZ8j-yda.js +0 -1
- package/dist/index-CnCC-cC2.js +0 -1
- package/dist/index-Q4QqDXYJ.js +0 -4
- package/dist/index-X3QXftIl.js +0 -1
- package/dist/map-chart-BsStf5eZ.js +0 -1
- package/dist/wang-editor-Btv6GIhJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -49,17 +49,13 @@ const IBizGridSetting = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
c.changeColumnStateSort(movedDragColumnState.key, newIndex, oldIndex);
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
const onShowNavView = () => {
|
|
53
|
-
c.state.showNavView = !c.state.showNavView;
|
|
54
|
-
};
|
|
55
52
|
return {
|
|
56
53
|
ns,
|
|
57
54
|
c,
|
|
58
55
|
dragColumnStates,
|
|
59
56
|
isDraggable,
|
|
60
57
|
handleClick,
|
|
61
|
-
onDragChange
|
|
62
|
-
onShowNavView
|
|
58
|
+
onDragChange
|
|
63
59
|
};
|
|
64
60
|
},
|
|
65
61
|
render() {
|
|
@@ -121,16 +117,16 @@ const IBizGridSetting = /* @__PURE__ */ defineComponent({
|
|
|
121
117
|
}
|
|
122
118
|
});
|
|
123
119
|
}
|
|
124
|
-
}), this.c.state.enableNavView ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
120
|
+
}), this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
125
121
|
"class": this.ns.e("nav-icon"),
|
|
126
122
|
"title": ibiz.i18n.t("component.controlNavigation.showNav"),
|
|
127
123
|
"name": "eye-outline",
|
|
128
|
-
"onClick": this.
|
|
124
|
+
"onClick": () => this.c.onShowNavViewChange()
|
|
129
125
|
}, null) : createVNode("ion-icon", {
|
|
130
126
|
"class": this.ns.e("nav-icon"),
|
|
131
127
|
"title": ibiz.i18n.t("component.controlNavigation.hiddenNav"),
|
|
132
128
|
"name": "eye-off-outline",
|
|
133
|
-
"onClick": this.
|
|
129
|
+
"onClick": () => this.c.onShowNavViewChange()
|
|
134
130
|
}, null) : null]);
|
|
135
131
|
}
|
|
136
132
|
});
|
package/es/common/index.mjs
CHANGED
|
@@ -31,10 +31,12 @@ import { IBizButtonList } from './button-list/button-list.mjs';
|
|
|
31
31
|
import { IBizControlNavigation } from './control-navigation/control-navigation.mjs';
|
|
32
32
|
import { IBizGanttSetting } from './gantt-setting/gantt-setting.mjs';
|
|
33
33
|
import { IBizNavSplit } from './nav-split/nav-split.mjs';
|
|
34
|
+
import { IBizCropping } from './cropping/cropping.mjs';
|
|
34
35
|
|
|
35
36
|
"use strict";
|
|
36
37
|
const IBizCommonComponents = {
|
|
37
38
|
install: (v) => {
|
|
39
|
+
v.component(IBizCropping.name, IBizCropping);
|
|
38
40
|
v.component(IBizControlBase.name, IBizControlBase);
|
|
39
41
|
v.component(IBizQuickEdit.name, IBizQuickEdit);
|
|
40
42
|
v.component(IBizEmojiSelect.name, IBizEmojiSelect);
|
|
@@ -66,6 +68,12 @@ const IBizCommonComponents = {
|
|
|
66
68
|
loader: () => import('./map-chart/map-chart.mjs')
|
|
67
69
|
})
|
|
68
70
|
);
|
|
71
|
+
v.component(
|
|
72
|
+
"IBizMapChartUser",
|
|
73
|
+
defineAsyncComponent({
|
|
74
|
+
loader: () => import('./map-chart-user/map-chart-user.mjs')
|
|
75
|
+
})
|
|
76
|
+
);
|
|
69
77
|
v.component(IBizBadge.name, IBizBadge);
|
|
70
78
|
v.component(IBizCarouselComponent.name, IBizCarouselComponent);
|
|
71
79
|
v.component(IBizCoopAlert.name, IBizCoopAlert);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { registerMap, init } from 'echarts';
|
|
2
|
-
import { ref, onMounted } from 'vue';
|
|
2
|
+
import { ref, onMounted, onUnmounted } from 'vue';
|
|
3
3
|
import { getJsonUrl } from './map-json.mjs';
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
@@ -9,6 +9,7 @@ function useMapManager(opts, calcEchartsOpts, emit) {
|
|
|
9
9
|
const historyNames = ref([]);
|
|
10
10
|
let chart;
|
|
11
11
|
const chartRef = ref();
|
|
12
|
+
let resizeObserver;
|
|
12
13
|
const parseJson = (json) => {
|
|
13
14
|
const info = {
|
|
14
15
|
cityNames: {},
|
|
@@ -62,11 +63,18 @@ function useMapManager(opts, calcEchartsOpts, emit) {
|
|
|
62
63
|
changeMap(name);
|
|
63
64
|
}
|
|
64
65
|
};
|
|
66
|
+
const resize = () => {
|
|
67
|
+
chart == null ? void 0 : chart.resize();
|
|
68
|
+
};
|
|
65
69
|
onMounted(() => {
|
|
66
70
|
chart = init(chartRef.value);
|
|
67
|
-
window.addEventListener("resize",
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
window.addEventListener("resize", resize);
|
|
72
|
+
if (chartRef.value && ResizeObserver) {
|
|
73
|
+
resizeObserver = new ResizeObserver(() => {
|
|
74
|
+
resize();
|
|
75
|
+
});
|
|
76
|
+
resizeObserver.observe(chartRef.value);
|
|
77
|
+
}
|
|
70
78
|
chart.on("click", (params) => {
|
|
71
79
|
if (params.componentType === "series") {
|
|
72
80
|
if (params.seriesType === "scatter") {
|
|
@@ -107,6 +115,10 @@ function useMapManager(opts, calcEchartsOpts, emit) {
|
|
|
107
115
|
}
|
|
108
116
|
});
|
|
109
117
|
});
|
|
118
|
+
onUnmounted(() => {
|
|
119
|
+
window.removeEventListener("resize", resize);
|
|
120
|
+
resizeObserver == null ? void 0 : resizeObserver.disconnect();
|
|
121
|
+
});
|
|
110
122
|
return {
|
|
111
123
|
chartRef,
|
|
112
124
|
historyNames,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-map-chart-user{position:relative;min-width:300px;min-height:300px}.ibiz-map-chart-user__chart{width:100%;height:100%}.ibiz-map-chart-user__goback{position:absolute;top:60px;right:0;width:100px;height:100px;font-size:var(--ibiz-font-size-header-4);color:var(--ibiz-color-link);text-decoration:underline;letter-spacing:6px;cursor:pointer}.ibiz-map-chart-user__popper{padding:var(--ibiz-spacing-base)}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IMapData, MapController } from '@ibiz-template/runtime';
|
|
3
|
+
import './map-chart-user.scss';
|
|
4
|
+
export declare const IBizMapChartUser: import("vue").DefineComponent<{
|
|
5
|
+
areaData: {
|
|
6
|
+
type: {
|
|
7
|
+
(arrayLength: number): IMapData[];
|
|
8
|
+
(...items: IMapData[]): IMapData[];
|
|
9
|
+
new (arrayLength: number): IMapData[];
|
|
10
|
+
new (...items: IMapData[]): IMapData[];
|
|
11
|
+
isArray(arg: any): arg is any[];
|
|
12
|
+
readonly prototype: any[];
|
|
13
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
14
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
15
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
16
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
17
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
18
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
pointData: {
|
|
22
|
+
type: {
|
|
23
|
+
(arrayLength: number): IMapData[];
|
|
24
|
+
(...items: IMapData[]): IMapData[];
|
|
25
|
+
new (arrayLength: number): IMapData[];
|
|
26
|
+
new (...items: IMapData[]): IMapData[];
|
|
27
|
+
isArray(arg: any): arg is any[];
|
|
28
|
+
readonly prototype: any[];
|
|
29
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
30
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
31
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
32
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
33
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
34
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
options: {
|
|
38
|
+
type: PropType<Partial<{
|
|
39
|
+
strAreaCode: boolean;
|
|
40
|
+
visualMap: {
|
|
41
|
+
text: string[];
|
|
42
|
+
min: number;
|
|
43
|
+
max: number;
|
|
44
|
+
rangeColor: string[];
|
|
45
|
+
};
|
|
46
|
+
areaColor: string;
|
|
47
|
+
areaBorderColor: string;
|
|
48
|
+
hoverAreaColor: string;
|
|
49
|
+
pointSymbol: string;
|
|
50
|
+
jsonBaseUrl: string;
|
|
51
|
+
defaultAreaCode: string | number;
|
|
52
|
+
}>>;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
|
+
controller: {
|
|
56
|
+
type: typeof MapController;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
61
|
+
chartRef: import("vue").Ref<any>;
|
|
62
|
+
historyNames: import("vue").Ref<string[]>;
|
|
63
|
+
goBack: () => Promise<void>;
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
areaData: {
|
|
66
|
+
type: {
|
|
67
|
+
(arrayLength: number): IMapData[];
|
|
68
|
+
(...items: IMapData[]): IMapData[];
|
|
69
|
+
new (arrayLength: number): IMapData[];
|
|
70
|
+
new (...items: IMapData[]): IMapData[];
|
|
71
|
+
isArray(arg: any): arg is any[];
|
|
72
|
+
readonly prototype: any[];
|
|
73
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
74
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
75
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
76
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
77
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
78
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
pointData: {
|
|
82
|
+
type: {
|
|
83
|
+
(arrayLength: number): IMapData[];
|
|
84
|
+
(...items: IMapData[]): IMapData[];
|
|
85
|
+
new (arrayLength: number): IMapData[];
|
|
86
|
+
new (...items: IMapData[]): IMapData[];
|
|
87
|
+
isArray(arg: any): arg is any[];
|
|
88
|
+
readonly prototype: any[];
|
|
89
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
90
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
91
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
92
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
93
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
94
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
options: {
|
|
98
|
+
type: PropType<Partial<{
|
|
99
|
+
strAreaCode: boolean;
|
|
100
|
+
visualMap: {
|
|
101
|
+
text: string[];
|
|
102
|
+
min: number;
|
|
103
|
+
max: number;
|
|
104
|
+
rangeColor: string[];
|
|
105
|
+
};
|
|
106
|
+
areaColor: string;
|
|
107
|
+
areaBorderColor: string;
|
|
108
|
+
hoverAreaColor: string;
|
|
109
|
+
pointSymbol: string;
|
|
110
|
+
jsonBaseUrl: string;
|
|
111
|
+
defaultAreaCode: string | number;
|
|
112
|
+
}>>;
|
|
113
|
+
default: () => {};
|
|
114
|
+
};
|
|
115
|
+
controller: {
|
|
116
|
+
type: typeof MapController;
|
|
117
|
+
required: true;
|
|
118
|
+
};
|
|
119
|
+
}>>, {
|
|
120
|
+
options: Partial<{
|
|
121
|
+
strAreaCode: boolean;
|
|
122
|
+
visualMap: {
|
|
123
|
+
text: string[];
|
|
124
|
+
min: number;
|
|
125
|
+
max: number;
|
|
126
|
+
rangeColor: string[];
|
|
127
|
+
};
|
|
128
|
+
areaColor: string;
|
|
129
|
+
areaBorderColor: string;
|
|
130
|
+
hoverAreaColor: string;
|
|
131
|
+
pointSymbol: string;
|
|
132
|
+
jsonBaseUrl: string;
|
|
133
|
+
defaultAreaCode: string | number;
|
|
134
|
+
}>;
|
|
135
|
+
}, {}>;
|
|
136
|
+
export default IBizMapChartUser;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent, computed, onMounted, createVNode } from 'vue';
|
|
2
|
+
import { mergeDeepLeft, mergeDeepWithKey, isNil } from 'ramda';
|
|
3
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
+
import { MapController } from '@ibiz-template/runtime';
|
|
5
|
+
import { defaultOpts, getTooltip, getVisualMap, getPointStaticOption, getPointOption, getAreaStaticOption, getAreaOption } from './map-chart-user.util.mjs';
|
|
6
|
+
import { useMapManager } from './map-user-manager.mjs';
|
|
7
|
+
import './map-chart-user.css';
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizMapChartUser = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "IBizMapChartUser",
|
|
12
|
+
props: {
|
|
13
|
+
areaData: {
|
|
14
|
+
type: Array
|
|
15
|
+
},
|
|
16
|
+
pointData: {
|
|
17
|
+
type: Array
|
|
18
|
+
},
|
|
19
|
+
options: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({})
|
|
22
|
+
},
|
|
23
|
+
controller: {
|
|
24
|
+
type: MapController,
|
|
25
|
+
required: true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
setup(props) {
|
|
29
|
+
const ns = useNamespace("map-chart-user");
|
|
30
|
+
const c = props.controller;
|
|
31
|
+
let option = defaultOpts;
|
|
32
|
+
if (c.controlParams.defaultopts) {
|
|
33
|
+
const data = JSON.parse(c.controlParams.defaultopts);
|
|
34
|
+
option = mergeDeepLeft(data, option);
|
|
35
|
+
}
|
|
36
|
+
const options = computed(() => {
|
|
37
|
+
return mergeDeepWithKey((_key, x, z) => {
|
|
38
|
+
return isNil(z) ? x : z;
|
|
39
|
+
}, option, props.options);
|
|
40
|
+
});
|
|
41
|
+
const {
|
|
42
|
+
chartRef,
|
|
43
|
+
historyNames,
|
|
44
|
+
changeMap,
|
|
45
|
+
getCityInfo,
|
|
46
|
+
goBack
|
|
47
|
+
} = useMapManager(props.controller, options, (mapName) => {
|
|
48
|
+
const areaData = props.areaData || [];
|
|
49
|
+
const pointData = props.pointData || [];
|
|
50
|
+
const tooltip = getTooltip();
|
|
51
|
+
const visualMap = getVisualMap(options.value);
|
|
52
|
+
const cityInfo = getCityInfo();
|
|
53
|
+
const pointOption = {
|
|
54
|
+
...getPointStaticOption(options.value),
|
|
55
|
+
...getPointOption(pointData, areaData)
|
|
56
|
+
};
|
|
57
|
+
const areaOption = {
|
|
58
|
+
...getAreaStaticOption(options.value),
|
|
59
|
+
...getAreaOption(mapName, pointData, areaData, cityInfo)
|
|
60
|
+
};
|
|
61
|
+
const result = {
|
|
62
|
+
geo: {
|
|
63
|
+
map: mapName
|
|
64
|
+
},
|
|
65
|
+
tooltip,
|
|
66
|
+
visualMap,
|
|
67
|
+
series: [
|
|
68
|
+
// 地图区块序列
|
|
69
|
+
areaOption,
|
|
70
|
+
// 地图散点序列
|
|
71
|
+
pointOption
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
|
+
return result;
|
|
75
|
+
});
|
|
76
|
+
onMounted(() => {
|
|
77
|
+
const name = options.value.defaultAreaCode;
|
|
78
|
+
const areaCode = c.state.strAreaCode ? "".concat(name) : Number(name);
|
|
79
|
+
c.state.areaCode = areaCode;
|
|
80
|
+
changeMap(name, areaCode, true);
|
|
81
|
+
});
|
|
82
|
+
return {
|
|
83
|
+
ns,
|
|
84
|
+
chartRef,
|
|
85
|
+
historyNames,
|
|
86
|
+
goBack
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
render() {
|
|
90
|
+
return createVNode("div", {
|
|
91
|
+
"class": this.ns.b()
|
|
92
|
+
}, [createVNode("div", {
|
|
93
|
+
"class": this.ns.e("chart"),
|
|
94
|
+
"ref": "chartRef"
|
|
95
|
+
}, null), this.historyNames.length > 1 && createVNode("div", {
|
|
96
|
+
"class": this.ns.e("goback"),
|
|
97
|
+
"onClick": () => {
|
|
98
|
+
this.goBack();
|
|
99
|
+
}
|
|
100
|
+
}, [ibiz.i18n.t("app.return")])]);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export { IBizMapChartUser, IBizMapChartUser as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare function getJsonUrl(baseUrl: string, code: string | number): Promise<any>;
|
|
2
|
+
/** 渐变颜色集合 */
|
|
3
|
+
export declare const GradientColors: string[];
|
|
4
|
+
export declare const defaultOpts: {
|
|
5
|
+
/** true地图code标识使用字符串,false使用数字 */
|
|
6
|
+
strAreaCode: boolean;
|
|
7
|
+
/** 热力图配置 */
|
|
8
|
+
visualMap: {
|
|
9
|
+
/** 两端的文本,如 ['高', '低'] */
|
|
10
|
+
text: string[];
|
|
11
|
+
/** 底部代表的值 */
|
|
12
|
+
min: number;
|
|
13
|
+
/** 顶部代表的值 */
|
|
14
|
+
max: number;
|
|
15
|
+
/** 热力图渐变颜色数组 */
|
|
16
|
+
rangeColor: string[];
|
|
17
|
+
};
|
|
18
|
+
/** 区块颜色 */
|
|
19
|
+
areaColor: string;
|
|
20
|
+
/** 区块边界颜色 */
|
|
21
|
+
areaBorderColor: string;
|
|
22
|
+
/** 悬浮时区块颜色 */
|
|
23
|
+
hoverAreaColor: string;
|
|
24
|
+
/** 点图标 */
|
|
25
|
+
pointSymbol: string;
|
|
26
|
+
/** 地图json数据基础路径 */
|
|
27
|
+
jsonBaseUrl: string;
|
|
28
|
+
/** 默认打开的区域编码 */
|
|
29
|
+
defaultAreaCode: string | number;
|
|
30
|
+
};
|
|
31
|
+
export type MapOptions = typeof defaultOpts;
|
|
32
|
+
export declare const findData: (id: string, type: 'area' | 'point', pointData?: IData[], areaData?: IData[]) => IData | undefined;
|
|
33
|
+
export declare const getCssVarByName: (name: string) => string;
|
|
34
|
+
export declare const getPointStaticOption: (params: IData) => IData;
|
|
35
|
+
export declare const getPointOption: (pointData: IData[], areaData: IData[]) => IData;
|
|
36
|
+
export declare const getAreaStaticOption: (params: IData) => IData;
|
|
37
|
+
export declare const getAreaOption: (mapName: string, pointData: IData[], areaData: IData[], cityInfo?: IData) => IData;
|
|
38
|
+
export declare const getTooltip: () => IData;
|
|
39
|
+
export declare const getVisualMap: (options: IData) => IData;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
async function getJsonUrl(baseUrl, code) {
|
|
5
|
+
const res = await ibiz.net.axios({
|
|
6
|
+
url: "".concat(baseUrl, "/").concat(code, ".json")
|
|
7
|
+
});
|
|
8
|
+
return res.data;
|
|
9
|
+
}
|
|
10
|
+
const GradientColors = ["#90d1e7", "#fff600", "#ff5200"];
|
|
11
|
+
const defaultOpts = {
|
|
12
|
+
/** true地图code标识使用字符串,false使用数字 */
|
|
13
|
+
strAreaCode: false,
|
|
14
|
+
/** 热力图配置 */
|
|
15
|
+
visualMap: {
|
|
16
|
+
/** 两端的文本,如 ['高', '低'] */
|
|
17
|
+
text: [
|
|
18
|
+
ibiz.i18n.t("component.mapChart.high"),
|
|
19
|
+
ibiz.i18n.t("component.mapChart.low")
|
|
20
|
+
],
|
|
21
|
+
/** 底部代表的值 */
|
|
22
|
+
min: 0,
|
|
23
|
+
/** 顶部代表的值 */
|
|
24
|
+
max: 100,
|
|
25
|
+
/** 热力图渐变颜色数组 */
|
|
26
|
+
rangeColor: GradientColors
|
|
27
|
+
},
|
|
28
|
+
/** 区块颜色 */
|
|
29
|
+
areaColor: "#87cefa",
|
|
30
|
+
/** 区块边界颜色 */
|
|
31
|
+
areaBorderColor: "#FFF",
|
|
32
|
+
/** 悬浮时区块颜色 */
|
|
33
|
+
hoverAreaColor: "#fbdb2f",
|
|
34
|
+
/** 点图标 */
|
|
35
|
+
pointSymbol: "pin",
|
|
36
|
+
/** 地图json数据基础路径 */
|
|
37
|
+
jsonBaseUrl: "./assets/json/map",
|
|
38
|
+
/** 默认打开的区域编码 */
|
|
39
|
+
defaultAreaCode: 1e5
|
|
40
|
+
};
|
|
41
|
+
const findData = (id, type, pointData = [], areaData = []) => {
|
|
42
|
+
if (type === "area") {
|
|
43
|
+
return areaData.find((item) => item._id === id);
|
|
44
|
+
}
|
|
45
|
+
if (type === "point") {
|
|
46
|
+
return pointData.find((item) => item._id === id);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const getCssVarByName = (name) => {
|
|
50
|
+
let result = name;
|
|
51
|
+
const styles = window.getComputedStyle(document.documentElement);
|
|
52
|
+
if (styles) {
|
|
53
|
+
result = styles.getPropertyValue(name) || result;
|
|
54
|
+
}
|
|
55
|
+
return result;
|
|
56
|
+
};
|
|
57
|
+
const getPointStaticOption = (params) => {
|
|
58
|
+
const { pointSymbol } = params;
|
|
59
|
+
const ns = useNamespace("map-chart-user");
|
|
60
|
+
const textColor = getCssVarByName(ns.cssVarName("color-text-1"));
|
|
61
|
+
const fontSize = getCssVarByName(ns.cssVarName("font-size-header-4"));
|
|
62
|
+
const options = {
|
|
63
|
+
type: "scatter",
|
|
64
|
+
coordinateSystem: "geo",
|
|
65
|
+
symbol: pointSymbol,
|
|
66
|
+
symbolSize: Number(fontSize.slice(0, 2)),
|
|
67
|
+
visualMap: false,
|
|
68
|
+
itemStyle: {
|
|
69
|
+
color: textColor
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return options;
|
|
73
|
+
};
|
|
74
|
+
const getPointOption = (pointData, areaData) => {
|
|
75
|
+
const options = {};
|
|
76
|
+
const ns = useNamespace("map-chart-user");
|
|
77
|
+
const textColor = getCssVarByName(ns.cssVarName("color-text-1"));
|
|
78
|
+
const fontSize = getCssVarByName(ns.cssVarName("font-size-regular"));
|
|
79
|
+
options.label = {
|
|
80
|
+
show: true,
|
|
81
|
+
color: textColor,
|
|
82
|
+
fontSize: Number(fontSize.slice(0, 2)),
|
|
83
|
+
textShadowBlur: 0,
|
|
84
|
+
formatter: (params) => {
|
|
85
|
+
if (!params.data) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const find = findData(params.data._id, "point", pointData, areaData);
|
|
89
|
+
return find == null ? void 0 : find._text;
|
|
90
|
+
},
|
|
91
|
+
// 偏移
|
|
92
|
+
position: "left",
|
|
93
|
+
offset: [10, -15]
|
|
94
|
+
};
|
|
95
|
+
options.tooltip = {
|
|
96
|
+
formatter: (params) => {
|
|
97
|
+
if (!params.data) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const find = findData(params.data._id, "point", pointData, areaData);
|
|
101
|
+
return '<div style="color:'.concat(find._color, ";background: ").concat(find._bgcolor, '" class="').concat(find._className, " ").concat(ns.e("popper"), '">').concat(find == null ? void 0 : find._tooltip, "</div>");
|
|
102
|
+
},
|
|
103
|
+
padding: 0
|
|
104
|
+
};
|
|
105
|
+
options.data = pointData.map((item) => {
|
|
106
|
+
let symbol;
|
|
107
|
+
if (item._symbol) {
|
|
108
|
+
symbol = "image://".concat(item._symbol);
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
_id: item._id,
|
|
112
|
+
symbol,
|
|
113
|
+
value: [Number(item._longitude), Number(item._latitude)],
|
|
114
|
+
// 每个点逃离visualMap
|
|
115
|
+
visualMap: false
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
return options;
|
|
119
|
+
};
|
|
120
|
+
const getAreaStaticOption = (params) => {
|
|
121
|
+
const { areaColor, areaBorderColor, hoverAreaColor } = params;
|
|
122
|
+
const options = {
|
|
123
|
+
type: "map",
|
|
124
|
+
nameProperty: "adcodeStr",
|
|
125
|
+
itemStyle: {
|
|
126
|
+
// 默认区域颜色
|
|
127
|
+
areaColor,
|
|
128
|
+
borderColor: areaBorderColor,
|
|
129
|
+
borderWidth: 2
|
|
130
|
+
},
|
|
131
|
+
// 悬浮样式
|
|
132
|
+
emphasis: {
|
|
133
|
+
itemStyle: {
|
|
134
|
+
areaColor: hoverAreaColor
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
return options;
|
|
139
|
+
};
|
|
140
|
+
const getAreaOption = (mapName, pointData, areaData, cityInfo = []) => {
|
|
141
|
+
const options = {};
|
|
142
|
+
const ns = useNamespace("map-chart-user");
|
|
143
|
+
const textColor = getCssVarByName(ns.cssVarName("color-text-1"));
|
|
144
|
+
const fontSize = getCssVarByName(ns.cssVarName("font-size-regular"));
|
|
145
|
+
options.map = mapName;
|
|
146
|
+
options.label = {
|
|
147
|
+
show: true,
|
|
148
|
+
color: textColor,
|
|
149
|
+
fontSize: Number(fontSize.slice(0, 2)),
|
|
150
|
+
formatter: (params) => {
|
|
151
|
+
return cityInfo.cityNames[params.name];
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
options.tooltip = {
|
|
155
|
+
formatter: (params) => {
|
|
156
|
+
if (!params.data) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const find = findData(params.data._id, "area", pointData, areaData);
|
|
160
|
+
return '<div style="color:'.concat(find._color, ";background: ").concat(find._bgcolor, '" class="').concat(find._className, " ").concat(ns.e("popper"), '">').concat(find == null ? void 0 : find._tooltip, "</div>");
|
|
161
|
+
},
|
|
162
|
+
padding: 0
|
|
163
|
+
};
|
|
164
|
+
options.data = areaData.map((item) => {
|
|
165
|
+
return {
|
|
166
|
+
name: "".concat(item._areaCode),
|
|
167
|
+
value: item._value,
|
|
168
|
+
_id: item._id
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
options.select = {
|
|
172
|
+
disabled: true
|
|
173
|
+
};
|
|
174
|
+
return options;
|
|
175
|
+
};
|
|
176
|
+
const getTooltip = () => {
|
|
177
|
+
const ns = useNamespace("map-chart-user");
|
|
178
|
+
const textColor = getCssVarByName(ns.cssVarName("color-text-1"));
|
|
179
|
+
const fontSize = getCssVarByName(ns.cssVarName("font-size-regular"));
|
|
180
|
+
const backgroundColor = getCssVarByName(ns.cssVarName("color-bg-0"));
|
|
181
|
+
return {
|
|
182
|
+
trigger: "item",
|
|
183
|
+
textStyle: {
|
|
184
|
+
color: textColor,
|
|
185
|
+
fontSize: Number(fontSize.slice(0, 2))
|
|
186
|
+
},
|
|
187
|
+
backgroundColor,
|
|
188
|
+
borderWidth: 0,
|
|
189
|
+
extraCssText: "backdrop-filter: blur(3px);"
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
const getVisualMap = (options) => {
|
|
193
|
+
const { visualMap } = options;
|
|
194
|
+
return {
|
|
195
|
+
min: visualMap.min,
|
|
196
|
+
max: visualMap.max,
|
|
197
|
+
text: visualMap.text,
|
|
198
|
+
realtime: false,
|
|
199
|
+
hoverLink: false,
|
|
200
|
+
inRange: {
|
|
201
|
+
color: visualMap.rangeColor
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export { GradientColors, defaultOpts, findData, getAreaOption, getAreaStaticOption, getCssVarByName, getJsonUrl, getPointOption, getPointStaticOption, getTooltip, getVisualMap };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { MapController } from '@ibiz-template/runtime';
|
|
3
|
+
import { MapOptions } from './map-chart-user.util';
|
|
4
|
+
/**
|
|
5
|
+
* 使用echarts地图
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2023-04-06 12:00:07
|
|
8
|
+
* @export
|
|
9
|
+
* @param {(name: string) => IData} calcEchartsOpts 计算echarts的Options
|
|
10
|
+
* @param {(name: string, e: IData) => void} emit 事件回调
|
|
11
|
+
* @return {*}
|
|
12
|
+
*/
|
|
13
|
+
export declare function useMapManager(controller: MapController, opts: ComputedRef<MapOptions>, calcEchartsOpts: (name: string) => IData): {
|
|
14
|
+
chartRef: import("vue").Ref<any>;
|
|
15
|
+
historyNames: import("vue").Ref<string[]>;
|
|
16
|
+
currentName: import("vue").Ref<string>;
|
|
17
|
+
changeMap: (name: string | number, areaCode: string | number, isInit?: boolean) => Promise<void>;
|
|
18
|
+
getCityInfo: () => IData | undefined;
|
|
19
|
+
goBack: () => Promise<void>;
|
|
20
|
+
refresh: () => void;
|
|
21
|
+
};
|