@ibiz-template/vue3-components 0.7.38-alpha.21 → 0.7.38-alpha.43
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-NHocZH22.js +1 -0
- package/dist/ibiz-markdown-editor-BZ8j-yda.js +1 -0
- package/dist/index-BLHbMaxB.js +1 -0
- package/dist/index-D22WGUVe.js +1 -0
- package/dist/index-b76YR_Js.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Btv6GIhJ.js +1 -0
- package/dist/{xlsx-util-BlkeQIMu.js → xlsx-util-BoMFhSd9.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +5 -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-import2/data-import2.mjs +1 -1
- package/es/common/gantt-setting/gantt-setting.css +1 -1
- package/es/common/gantt-setting/gantt-setting.d.ts +10 -0
- package/es/common/gantt-setting/gantt-setting.mjs +23 -3
- package/es/common/grid-setting/grid-setting.d.ts +1 -0
- package/es/common/grid-setting/grid-setting.mjs +1 -1
- 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 +7 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +8 -6
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +1 -0
- 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 +2 -0
- package/es/control/calendar/calendar.mjs +94 -25
- 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 +2 -0
- 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 +12 -5
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +136 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +1 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +38 -17
- 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/dashboard.mjs +13 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +7 -3
- 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.mjs +8 -1
- package/es/control/drbar/drbar.controller.mjs +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +19 -7
- package/es/control/drtab/drtab.controller.mjs +36 -9
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- 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.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +68 -33
- package/es/control/form/form-detail/form-item/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +171 -0
- package/es/control/form/search-form/index.d.ts +9 -0
- package/es/control/form/search-form/search-form.d.ts +9 -0
- package/es/control/form/search-form/search-form.mjs +4 -0
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +1 -0
- package/es/control/gantt/gantt.mjs +79 -30
- package/es/control/gantt/index.d.ts +1 -0
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +38 -2
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +14 -4
- 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 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- 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-ua-column/grid-ua-column.css +1 -1
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.mjs +9 -2
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.d.ts +2 -2
- package/es/control/toolbar/toolbar.mjs +24 -11
- package/es/control/tree/index.d.ts +2 -0
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +2 -0
- package/es/control/tree/tree.mjs +87 -6
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +17 -1
- package/es/control/wizard-panel/wizard-panel.mjs +3 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +3 -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 +66 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs +139 -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 +10 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +48 -4
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +10 -0
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +9 -2
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +12 -3
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +3 -1
- package/es/editor/data-picker/picker-editor.provider.mjs +0 -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.mjs +11 -2
- 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.mjs +1 -1
- package/es/editor/index.mjs +10 -0
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/span/span/span.mjs +8 -2
- package/es/editor/span/span-editor.controller.d.ts +7 -0
- package/es/editor/span/span-editor.controller.mjs +10 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +24 -6
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.mjs +32 -5
- package/es/editor/text-box/text-box-editor.controller.d.ts +7 -0
- package/es/editor/text-box/text-box-editor.controller.mjs +10 -0
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +2 -0
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +18 -5
- package/es/editor/upload/use/use-iview-upload.mjs +1 -1
- package/es/locale/en/index.d.ts +102 -26
- package/es/locale/en/index.mjs +79 -30
- package/es/locale/zh-CN/index.d.ts +103 -26
- package/es/locale/zh-CN/index.mjs +79 -30
- package/es/panel-component/auth-sso/auth-sso.css +1 -0
- package/es/panel-component/auth-sso/auth-sso.d.ts +26 -0
- package/es/panel-component/auth-sso/auth-sso.mjs +100 -0
- package/es/panel-component/auth-sso/auth-sso.provider.d.ts +6 -0
- package/es/panel-component/auth-sso/auth-sso.provider.mjs +21 -0
- package/es/panel-component/auth-sso/index.d.ts +23 -0
- package/es/panel-component/auth-sso/index.mjs +12 -0
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +46 -1
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +92 -1
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +4 -1
- package/es/panel-component/coop-pos/coop-pos.mjs +23 -3
- package/es/panel-component/coop-pos/index.d.ts +3 -0
- package/es/panel-component/index.mjs +4 -1
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -3
- package/es/panel-component/panel-app-header/panel-app-header.css +1 -1
- 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/searchform-buttons/searchform-buttons.mjs +1 -1
- package/es/panel-component/user-action/user-action.css +1 -1
- package/es/panel-component/user-action/user-action.mjs +1 -5
- package/es/util/app-popover/app-popover-component.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +2 -2
- package/es/util/notification-util/upload-manager/upload-manager.mjs +1 -1
- package/es/view/login-view/login-view.mjs +28 -3
- 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 +6 -14
- package/es/view-engine/edit-view.engine.mjs +75 -148
- 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/login-view.engine.mjs +11 -1
- package/es/view-engine/opt-view.engine.d.ts +1 -0
- package/es/view-engine/opt-view.engine.mjs +41 -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/tab-search-view.engine.d.ts +9 -1
- package/es/view-engine/tab-search-view.engine.mjs +52 -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/web-app/attach-environment-config.mjs +5 -1
- 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 +25 -17
- package/es/web-app/guard/auth-guard/auth-guard.mjs +52 -27
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +1 -1
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +2 -1
- package/es/web-app/main.mjs +3 -1
- package/es/web-app/router/index.d.ts +3 -2
- package/es/web-app/router/index.mjs +15 -4
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +9 -0
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +21 -0
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/lib/common/button-list/button-list.css +1 -1
- 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-import2/data-import2.cjs +1 -1
- package/lib/common/gantt-setting/gantt-setting.cjs +23 -3
- package/lib/common/gantt-setting/gantt-setting.css +1 -1
- package/lib/common/grid-setting/grid-setting.cjs +1 -1
- 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 +8 -6
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -0
- package/lib/control/calendar/calendar-util.cjs +24 -0
- package/lib/control/calendar/calendar.cjs +94 -25
- 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 +12 -5
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +10 -3
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +37 -16
- package/lib/control/dashboard/dashboard-design/dashboard-design.util.cjs +248 -0
- package/lib/control/dashboard/dashboard.cjs +13 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +7 -3
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
- package/lib/control/data-view/data-view.cjs +8 -1
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +36 -9
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +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.cjs +67 -32
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/search-form/search-form.cjs +4 -0
- package/lib/control/gantt/gantt.cjs +78 -29
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +37 -1
- package/lib/control/grid/grid/grid.cjs +14 -4
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
- 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/grid-edit-item/grid-edit-item.css +1 -1
- package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/lib/control/list/list.cjs +9 -2
- package/lib/control/list/list.css +1 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +24 -11
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +87 -6
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +17 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +3 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +3 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.cjs +141 -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 +48 -4
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +10 -0
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +9 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +12 -3
- 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 +3 -1
- package/lib/editor/data-picker/picker-editor.provider.cjs +0 -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 +11 -2
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +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 +10 -0
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/span/span/span.cjs +8 -2
- package/lib/editor/span/span-editor.controller.cjs +10 -0
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +24 -6
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/editor/text-box/input/input.cjs +32 -5
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/text-box-editor.controller.cjs +10 -0
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +18 -5
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
- package/lib/locale/en/index.cjs +79 -30
- package/lib/locale/zh-CN/index.cjs +79 -30
- package/lib/panel-component/auth-sso/auth-sso.cjs +102 -0
- package/lib/panel-component/auth-sso/auth-sso.css +1 -0
- package/lib/panel-component/auth-sso/auth-sso.provider.cjs +23 -0
- package/lib/panel-component/auth-sso/index.cjs +17 -0
- package/lib/panel-component/coop-pos/coop-pos.cjs +22 -2
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +91 -0
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/index.cjs +39 -36
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -3
- package/lib/panel-component/panel-app-header/panel-app-header.css +1 -1
- 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/searchform-buttons/searchform-buttons.cjs +1 -1
- package/lib/panel-component/user-action/user-action.cjs +1 -5
- package/lib/panel-component/user-action/user-action.css +1 -1
- package/lib/util/app-popover/app-popover-component.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +2 -2
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +1 -1
- package/lib/view/login-view/login-view.cjs +26 -1
- 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 +74 -147
- package/lib/view-engine/index-view.engine.cjs +17 -1
- package/lib/view-engine/login-view.engine.cjs +11 -1
- package/lib/view-engine/opt-view.engine.cjs +40 -0
- package/lib/view-engine/portal-view-engine.cjs +93 -1
- package/lib/view-engine/tab-search-view.engine.cjs +52 -2
- package/lib/view-engine/tree-exp-view.engine.cjs +23 -0
- package/lib/web-app/attach-environment-config.cjs +5 -1
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -0
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +52 -27
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +2 -1
- package/lib/web-app/main.cjs +3 -1
- package/lib/web-app/router/index.cjs +15 -4
- package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +21 -0
- package/package.json +10 -10
- package/dist/chart-DPS_XpZp.js +0 -1
- package/dist/ibiz-markdown-editor-B4c6yGAW.js +0 -1
- package/dist/index-3cxXHoLs.js +0 -4
- package/dist/index-CiEIUSX9.js +0 -1
- package/dist/index-HW5stxcy.js +0 -1
- package/dist/wang-editor-BUIAd4uJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.16_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.43_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.16_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.43_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
|
@@ -36,40 +36,44 @@ class AuthGuard {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* 总的入口校验
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
41
|
-
* @
|
|
39
|
+
*
|
|
40
|
+
* @author tony001
|
|
41
|
+
* @date 2024-11-12 14:11:32
|
|
42
|
+
* @param {IParams} context
|
|
43
|
+
* @param {boolean} [notLogin=true]
|
|
42
44
|
* @return {*} {Promise<boolean>}
|
|
43
45
|
*/
|
|
44
|
-
async verify(notLogin = true) {
|
|
46
|
+
async verify(context, notLogin = true) {
|
|
45
47
|
if (notLogin) {
|
|
46
48
|
let result = true;
|
|
47
49
|
try {
|
|
48
50
|
if (ibiz.env.enableAnonymous) {
|
|
49
|
-
await this.anonymousValidate();
|
|
51
|
+
await this.anonymousValidate(context);
|
|
50
52
|
}
|
|
51
|
-
await this.appInit();
|
|
53
|
+
await this.appInit(context);
|
|
52
54
|
} catch (error) {
|
|
53
55
|
result = false;
|
|
54
56
|
ibiz.util.error.handle(error);
|
|
55
57
|
}
|
|
56
58
|
return result;
|
|
57
59
|
}
|
|
58
|
-
await this.initModel(false);
|
|
60
|
+
await this.initModel(context, false);
|
|
59
61
|
return true;
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
64
|
* 匿名登录相关校验逻辑,不通过会抛异常
|
|
63
|
-
*
|
|
64
|
-
* @
|
|
65
|
+
*
|
|
66
|
+
* @author tony001
|
|
67
|
+
* @date 2024-11-12 14:11:27
|
|
68
|
+
* @param {IParams} context
|
|
65
69
|
* @return {*} {Promise<void>}
|
|
66
70
|
*/
|
|
67
|
-
async anonymousValidate() {
|
|
71
|
+
async anonymousValidate(context) {
|
|
68
72
|
const authInfo = ibiz.auth.getAuthInfo();
|
|
69
73
|
if (authInfo && !authInfo.isAnonymous) {
|
|
70
74
|
return;
|
|
71
75
|
}
|
|
72
|
-
await this.initModel(false);
|
|
76
|
+
await this.initModel(context, false);
|
|
73
77
|
const urlPaths = window.location.hash.split("/");
|
|
74
78
|
const viewName = urlPaths[urlPaths.length - 2];
|
|
75
79
|
let viewModel;
|
|
@@ -102,16 +106,17 @@ class AuthGuard {
|
|
|
102
106
|
/**
|
|
103
107
|
* 应用参数初始化
|
|
104
108
|
*
|
|
105
|
-
* @author
|
|
106
|
-
* @date
|
|
109
|
+
* @author tony001
|
|
110
|
+
* @date 2024-11-12 14:11:06
|
|
111
|
+
* @param {IParams} context
|
|
107
112
|
* @return {*} {Promise<void>}
|
|
108
113
|
*/
|
|
109
|
-
async appInit() {
|
|
114
|
+
async appInit(context) {
|
|
110
115
|
try {
|
|
111
116
|
if (ibiz.env.isSaaSMode === true) {
|
|
112
117
|
await this.loadOrgData();
|
|
113
118
|
}
|
|
114
|
-
await this.loadAppData();
|
|
119
|
+
await this.loadAppData(context);
|
|
115
120
|
} catch (error) {
|
|
116
121
|
const responseStatus = error.status;
|
|
117
122
|
const remember = qxUtil.getCookie(core.CoreConst.TOKEN_REMEMBER);
|
|
@@ -122,7 +127,7 @@ class AuthGuard {
|
|
|
122
127
|
if (ibiz.env.isSaaSMode === true) {
|
|
123
128
|
await this.loadOrgData();
|
|
124
129
|
}
|
|
125
|
-
await this.loadAppData();
|
|
130
|
+
await this.loadAppData(context);
|
|
126
131
|
} catch (refreshTokenError) {
|
|
127
132
|
throw error;
|
|
128
133
|
}
|
|
@@ -130,29 +135,37 @@ class AuthGuard {
|
|
|
130
135
|
throw error;
|
|
131
136
|
}
|
|
132
137
|
}
|
|
133
|
-
await this.initModel();
|
|
138
|
+
await this.initModel(context);
|
|
134
139
|
await ibiz.auth.extendLogin();
|
|
135
140
|
await ibiz.hub.notice.init();
|
|
136
141
|
await ibiz.util.theme.initCustomTheme();
|
|
137
142
|
}
|
|
138
143
|
/**
|
|
139
144
|
* 初始化模型
|
|
140
|
-
*
|
|
141
|
-
* @
|
|
142
|
-
* @
|
|
145
|
+
*
|
|
146
|
+
* @author tony001
|
|
147
|
+
* @date 2024-11-12 14:11:43
|
|
148
|
+
* @param {IParams} context
|
|
149
|
+
* @param {boolean} [_permission=true]
|
|
143
150
|
* @return {*} {Promise<void>}
|
|
144
151
|
*/
|
|
145
|
-
async initModel(_permission = true) {
|
|
152
|
+
async initModel(context, _permission = true) {
|
|
146
153
|
}
|
|
147
154
|
/**
|
|
148
155
|
* 加载应用数据
|
|
149
156
|
*
|
|
150
|
-
* @author
|
|
151
|
-
* @date
|
|
157
|
+
* @author tony001
|
|
158
|
+
* @date 2024-12-19 20:12:01
|
|
159
|
+
* @param {IParams} [context]
|
|
152
160
|
* @return {*} {Promise<void>}
|
|
153
161
|
*/
|
|
154
|
-
async loadAppData() {
|
|
155
|
-
|
|
162
|
+
async loadAppData(context) {
|
|
163
|
+
let res;
|
|
164
|
+
if (context && Object.keys(context).length > 0) {
|
|
165
|
+
res = await ibiz.net.get("/appdata", context);
|
|
166
|
+
} else {
|
|
167
|
+
res = await ibiz.net.get("/appdata");
|
|
168
|
+
}
|
|
156
169
|
if (res.ok) {
|
|
157
170
|
ibiz.appData = res.data;
|
|
158
171
|
}
|
|
@@ -194,8 +207,20 @@ class AuthGuard {
|
|
|
194
207
|
const app = ibiz.hub.getApp();
|
|
195
208
|
const uiThemes = app.model.appUIThemes || [];
|
|
196
209
|
if (uiThemes.length > 0) {
|
|
197
|
-
const
|
|
198
|
-
|
|
210
|
+
const colorThemes = uiThemes.filter((uiTheme) => {
|
|
211
|
+
return uiTheme.themeParams && uiTheme.themeParams["icon-theme"] !== "true";
|
|
212
|
+
});
|
|
213
|
+
if (colorThemes.length > 0) {
|
|
214
|
+
const colorTheme = colorThemes[0];
|
|
215
|
+
await ibiz.util.theme.loadTheme(colorTheme);
|
|
216
|
+
}
|
|
217
|
+
const iconThemes = uiThemes.filter((uiTheme) => {
|
|
218
|
+
return uiTheme.themeParams && uiTheme.themeParams["icon-theme"] === "true";
|
|
219
|
+
});
|
|
220
|
+
if (iconThemes.length > 0) {
|
|
221
|
+
const iconTheme = iconThemes[0];
|
|
222
|
+
await ibiz.util.theme.loadTheme(iconTheme, "ICON");
|
|
223
|
+
}
|
|
199
224
|
}
|
|
200
225
|
}
|
|
201
226
|
/**
|
|
@@ -18,7 +18,7 @@ class DynaAuthGuard extends authGuard.AuthGuard {
|
|
|
18
18
|
__publicField(this, "hasModelInit", false);
|
|
19
19
|
__publicField(this, "noPermissionModel", false);
|
|
20
20
|
}
|
|
21
|
-
async initModel(permission = true) {
|
|
21
|
+
async initModel(context, permission = true) {
|
|
22
22
|
if (!this.hasModelInit || this.hasModelInit && this.noPermissionModel !== permission) {
|
|
23
23
|
ibiz.hub.reset();
|
|
24
24
|
const helper = new modelHelper.ModelHelper(
|
|
@@ -31,6 +31,7 @@ class DynaAuthGuard extends authGuard.AuthGuard {
|
|
|
31
31
|
return res.data;
|
|
32
32
|
},
|
|
33
33
|
ibiz.env.appId,
|
|
34
|
+
context,
|
|
34
35
|
permission
|
|
35
36
|
);
|
|
36
37
|
const tempApp = await helper.getAppModel();
|
package/lib/web-app/main.cjs
CHANGED
|
@@ -64,7 +64,9 @@ async function runApp(plugins, opts) {
|
|
|
64
64
|
} else {
|
|
65
65
|
authGuard = new dynaAuthGuard.DynaAuthGuard();
|
|
66
66
|
}
|
|
67
|
-
index.AppRouter.setAuthGuard(
|
|
67
|
+
index.AppRouter.setAuthGuard(
|
|
68
|
+
(context, notLogin) => authGuard.verify(context, notLogin)
|
|
69
|
+
);
|
|
68
70
|
app.use(index.AppRouter.getRouter());
|
|
69
71
|
ibiz.appUtil = new appUtil.AppUtil(index.AppRouter.getRouter());
|
|
70
72
|
ibiz.openView = new openViewUtil.OpenViewUtil(index.AppRouter.getRouter());
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vueRouter = require('vue-router');
|
|
4
|
+
var qs = require('qs');
|
|
4
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
6
|
var runtime = require('@ibiz-template/runtime');
|
|
6
7
|
var nprogress = require('../../node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress/nprogress.cjs');
|
|
@@ -24,6 +25,16 @@ class AppRouter {
|
|
|
24
25
|
static setAuthGuard(authGuard) {
|
|
25
26
|
this.authGuard = authGuard;
|
|
26
27
|
}
|
|
28
|
+
static getAppContext(route) {
|
|
29
|
+
let appContext = {};
|
|
30
|
+
if (route.params.appContext && route.params.appContext !== ibiz.env.routePlaceholder) {
|
|
31
|
+
appContext = qs.parse(route.params.appContext, {
|
|
32
|
+
strictNullHandling: true,
|
|
33
|
+
delimiter: ";"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return appContext;
|
|
37
|
+
}
|
|
27
38
|
static getRouter() {
|
|
28
39
|
const placeholder = ibiz.env.routePlaceholder;
|
|
29
40
|
const paramReg = "[^/]+=[^/]+|".concat(placeholder);
|
|
@@ -41,7 +52,7 @@ class AppRouter {
|
|
|
41
52
|
path: "/login",
|
|
42
53
|
name: "loginView",
|
|
43
54
|
beforeEnter: async (_to, _from, next) => {
|
|
44
|
-
await this.authGuard(false);
|
|
55
|
+
await this.authGuard(this.getAppContext(_to), false);
|
|
45
56
|
next();
|
|
46
57
|
},
|
|
47
58
|
component: loginView.LoginView
|
|
@@ -50,7 +61,7 @@ class AppRouter {
|
|
|
50
61
|
path: "/share",
|
|
51
62
|
name: "shareView",
|
|
52
63
|
beforeEnter: async (_to, _from, next) => {
|
|
53
|
-
const authority = await this.authGuard();
|
|
64
|
+
const authority = await this.authGuard(this.getAppContext(_to));
|
|
54
65
|
if (authority) {
|
|
55
66
|
next();
|
|
56
67
|
} else {
|
|
@@ -68,7 +79,7 @@ class AppRouter {
|
|
|
68
79
|
path: "/appredirectview",
|
|
69
80
|
name: "appRedirectView",
|
|
70
81
|
beforeEnter: async (_to, _from, next) => {
|
|
71
|
-
const authority = await this.authGuard();
|
|
82
|
+
const authority = await this.authGuard(this.getAppContext(_to));
|
|
72
83
|
if (authority) {
|
|
73
84
|
next();
|
|
74
85
|
} else {
|
|
@@ -80,7 +91,7 @@ class AppRouter {
|
|
|
80
91
|
{
|
|
81
92
|
path: "/:appContext(".concat(paramReg, ")/:view1(").concat(viewReg, ")/:params1(").concat(paramReg, ")"),
|
|
82
93
|
beforeEnter: async (_to, _from, next) => {
|
|
83
|
-
const authority = await this.authGuard();
|
|
94
|
+
const authority = await this.authGuard(this.getAppContext(_to));
|
|
84
95
|
if (authority) {
|
|
85
96
|
next();
|
|
86
97
|
} else {
|
|
@@ -8,6 +8,25 @@ class UnauthorizedHandler {
|
|
|
8
8
|
match(error) {
|
|
9
9
|
return error instanceof core.HttpError && (error.status === 401 || error.status === 403);
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* oauth登录处理
|
|
13
|
+
*
|
|
14
|
+
* @author tony001
|
|
15
|
+
* @date 2024-12-22 10:12:48
|
|
16
|
+
* @protected
|
|
17
|
+
* @return {*} {Promise<void>}
|
|
18
|
+
*/
|
|
19
|
+
async oauthLogin() {
|
|
20
|
+
if (window.location.href.indexOf("srfthird_auth_success=false") >= 0) {
|
|
21
|
+
ibiz.log.debug("\u83B7\u53D6OAUTH\u7684token\u5931\u8D25\uFF0C\u8DF3\u8F6C\u6B63\u5E38\u767B\u5F55\u9875");
|
|
22
|
+
this.normalLogin();
|
|
23
|
+
}
|
|
24
|
+
const res = await ibiz.thirdAuth.auth("OAUTH", "THIRD");
|
|
25
|
+
if (!res.ok) {
|
|
26
|
+
ibiz.log.debug("\u83B7\u53D6OAUTH\u91CD\u5B9A\u5411\u5730\u5740\u5931\u8D25\uFF0C\u8DF3\u8F6C\u6B63\u5E38\u767B\u5F55\u9875");
|
|
27
|
+
this.normalLogin();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
11
30
|
/**
|
|
12
31
|
* cas登录处理
|
|
13
32
|
*
|
|
@@ -86,6 +105,8 @@ class UnauthorizedHandler {
|
|
|
86
105
|
});
|
|
87
106
|
} else if (ibiz.env.loginMode === core.LoginMode.CAS) {
|
|
88
107
|
this.casLogin();
|
|
108
|
+
} else if (ibiz.env.loginMode === core.LoginMode.OAUTH) {
|
|
109
|
+
this.oauthLogin();
|
|
89
110
|
} else {
|
|
90
111
|
this.normalLogin();
|
|
91
112
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.38-alpha.
|
|
3
|
+
"version": "0.7.38-alpha.43",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@floating-ui/dom": "^1.5.3",
|
|
32
32
|
"@ibiz-template-plugin/ai-chat": "^0.0.5",
|
|
33
|
-
"@ibiz-template-plugin/gantt": "0.1.8-alpha.
|
|
34
|
-
"@ibiz-template-plugin/bi-report": "0.0.
|
|
33
|
+
"@ibiz-template-plugin/gantt": "0.1.8-alpha.92",
|
|
34
|
+
"@ibiz-template-plugin/bi-report": "0.0.25",
|
|
35
35
|
"@ibiz-template-plugin/data-view": "0.0.3",
|
|
36
|
-
"@ibiz-template/core": "0.7.38-alpha.
|
|
36
|
+
"@ibiz-template/core": "0.7.38-alpha.43",
|
|
37
37
|
"@ibiz-template/devtool": "0.0.2",
|
|
38
|
-
"@ibiz-template/model-helper": "0.7.38-alpha.
|
|
39
|
-
"@ibiz-template/runtime": "0.7.38-alpha.
|
|
38
|
+
"@ibiz-template/model-helper": "0.7.38-alpha.45",
|
|
39
|
+
"@ibiz-template/runtime": "0.7.38-alpha.45",
|
|
40
40
|
"@ibiz-template/theme": "^0.7.0",
|
|
41
|
-
"@ibiz-template/vue3-util": "0.7.38-alpha.
|
|
42
|
-
"@ibiz-template/web-theme": "
|
|
43
|
-
"@ibiz/model-core": "^0.1.
|
|
41
|
+
"@ibiz-template/vue3-util": "0.7.38-alpha.45",
|
|
42
|
+
"@ibiz-template/web-theme": "1.1.28-alpha.1",
|
|
43
|
+
"@ibiz/model-core": "^0.1.64",
|
|
44
44
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
45
45
|
"@monaco-editor/loader": "^1.4.0",
|
|
46
46
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@ibiz-template/runtime": "^0.7.0",
|
|
106
106
|
"@ibiz-template/theme": "^0.7.0",
|
|
107
107
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
108
|
-
"@ibiz/model-core": "^0.1.
|
|
108
|
+
"@ibiz/model-core": "^0.1.64",
|
|
109
109
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
110
110
|
"@monaco-editor/loader": "^1.3.3",
|
|
111
111
|
"@wangeditor/editor": "^5.1.23",
|
package/dist/chart-DPS_XpZp.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","echarts","qx-util","@ibiz-template/runtime"],(function(e){"use strict";var t,i,l,a,s,n,o,r,d,c,h,u,m,p,v;return{setters:[function(e){t=e.defineComponent,i=e.ref,l=e.watch,a=e.onMounted,s=e.onBeforeUnmount,n=e.createVNode,o=e.resolveComponent,r=e.nextTick,d=e.isVNode},function(e){c=e.useControlController,h=e.useNamespace},function(e){u=e.init},function(e){m=e.createUUID},function(e){p=e.ChartController,v=e.ControlVO}],execute:function(){e("default",t({name:"IBizChartControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!0},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1}},emits:["drillDetail"],setup(e,{emit:t}){const f=c(((...e)=>new p(...e))),w=h("control-".concat(f.model.controlType.toLowerCase())),g=i(),b=i(0),D=m(),y=i(!1),z=i({}),C=i();let L;const x=()=>{e.data&&(f.state.items=e.data.map((e=>new v(e))),f.afterLoad({},f.state.items))};f.evt.on("onCreated",(async()=>{e.isSimple&&(x(),f.state.isSimple=!0,f.state.isLoaded=!0)})),l((()=>e.data),(()=>{e.isSimple&&x()}),{deep:!0});const P=async()=>{await r();const e=document.getElementById(D);e&&("bottom"===f.state.gridPosition||"top"===f.state.gridPosition?b.value=e.offsetHeight/2-8:b.value=e.offsetHeight-16)},S=()=>{y.value=!1},E=()=>{y.value||f.changeTooltipState(!0)};let B;a((()=>{var t,i;const l=u(g.value);f.initChart(l),window.addEventListener("resize",P),window.addEventListener("pointerdown",S),window.addEventListener("click",E),g.value&&ResizeObserver&&(B=new ResizeObserver((()=>{f.resizeChart()})),B.observe(g.value)),P();const a=null==(i=null==(t=e.modelData.controlParam)?void 0:t.ctrlParams)?void 0:i.ENABLEDRILLDETAIL;(null==a?void 0:a.length)&&l.on("click",(e=>{const t=f.computedClickSerieModel(e);if(!t||ibiz.fullscreenUtil.isFullScreen)return;const i=a.find((e=>e.name===t.valueField));i&&i.isDrill&&(L=e,(e=>{if(e.event){const t=e.event.event,{offsetX:i,offsetY:l}=e.event,{clientWidth:a}=t.target;z.value=i+160>a?{top:"".concat(l-20,"px"),left:"".concat(i-160,"px")}:{top:"".concat(l,"px"),left:"".concat(i+16,"px")}}})(e),l.dispatchAction({type:"hideTip"}),f.changeTooltipState(!1),y.value=!0)}))}));l((()=>f.state.showGrid),(()=>{P()}),{immediate:!0});return s((()=>{window.removeEventListener("resize",P),window.removeEventListener("pointerdown",S),window.removeEventListener("click",E),null==B||B.disconnect()})),{c:f,ns:w,chartRef:g,uuid:D,showCheck:y,drillDetailPos:z,drillDetailRef:C,openDrillDetail:e=>{e.stopPropagation(),e.preventDefault(),y.value=!1,f.changeTooltipState(!0);const i=f.computedDrillDetailParam(L);t("drillDetail",i)},renderGrid:()=>{let e;return n(o("el-table"),{ref:"tableRef",data:f.state.gridData||[],border:!0,style:{width:"100%"},"max-height":b.value,"header-row-class-name":w.e("grid-header")},"function"==typeof(t=e=f.state.gridHeaders.map((e=>n(o("el-table-column"),{prop:e.id,align:"center",label:e.name},null))))||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:()=>[e]});var t}}},render(){return n(o("iBizControlBase"),{controller:this.c},{default:()=>[n("div",{id:this.uuid,class:this.ns.b("chart-container")},[n(o("el-empty"),{class:[this.ns.e("empty"),this.ns.is("no-data",0===this.c.state.items.length)],description:ibiz.i18n.t("control.common.currentNoData")},null),n("div",{class:[this.ns.e("chart-grid"),this.ns.is("no-data",0===this.c.state.items.length),this.ns.is("show-grid",this.c.state.showGrid),{[this.ns.em("chart-grid",this.c.state.gridPosition)]:this.c.state.showGrid}]},[n("div",{class:[this.ns.e("chart-grid-container"),this.ns.is(this.c.state.gridPosition,this.c.state.showGrid),this.ns.is("no-grid",!this.c.state.showGrid)]},[n("div",{ref:"chartRef",class:[this.ns.e("chart")]},[ibiz.i18n.t("control.chart.chartPlaceholder")]),this.showCheck?n("div",{ref:"drillDetailRef",class:this.ns.e("drill-detail"),style:this.drillDetailPos,onPointerdown:this.openDrillDetail},[n("div",{class:this.ns.em("drill-detail","item")},[n("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[n("g",{id:"aspnormal/preview","stroke-width":"1","fill-rule":"evenodd"},[n("path",{d:"M11.626 0c1.057 0 1.923.818 2 1.855l.005.15v3.411a.6.6 0 0 1-1.192.097l-.008-.097.001-1.348V2.005c0-.41-.31-.749-.705-.799l-.101-.006h-9.62c-.41 0-.75.308-.8.704l-.006.101v11.989c0 .41.308.75.705.8l.101.006h5.906l.017-.004.016-.003h2.074a.598.598 0 1 1 .107 1.187l-.095.01V16H2.006a2.006 2.006 0 0 1-2-1.856L0 13.994V2.005C0 .948.818.082 1.856.005L2.006 0h9.62zm-1.595 6.328a3.669 3.669 0 0 1 3.665 3.665c0 .79-.251 1.523-.678 2.123l2.412 2.412a.6.6 0 1 1-.848.85l-2.41-2.412a3.646 3.646 0 0 1-2.14.692 3.67 3.67 0 0 1-3.667-3.665 3.67 3.67 0 0 1 3.666-3.665zm-5.106 5.29a.6.6 0 0 1 .097 1.191l-.097.008H2.85a.6.6 0 0 1-.097-1.192l.097-.008h2.074zm5.106-4.09a2.468 2.468 0 0 0-2.466 2.465 2.468 2.468 0 0 0 2.466 2.466 2.47 2.47 0 0 0 2.466-2.466 2.469 2.469 0 0 0-2.466-2.465zm-4.815-.126a.6.6 0 0 1 .097 1.193l-.097.007h-2.35A.6.6 0 0 1 2.77 7.41l.098-.008h2.349zm5.58-4a.6.6 0 0 1 .097 1.192l-.097.008H2.867A.6.6 0 0 1 2.77 3.41l.097-.008h7.929z",id:"asp合并形状"},null)])]),n("div",{class:this.ns.em("drill-detail","item-text")},[ibiz.i18n.t("control.chart.drillDetail")])])]):null]),this.c.state.showGrid?n("div",{class:this.ns.e("grid")},[this.renderGrid()]):null])])]})}}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown","@ibiz-template/core"],(function(e){"use strict";var t,a,l,o,n,i,r,s,u,c,d,h,v,m,b;return{setters:[function(e){t=e.defineComponent,a=e.ref,l=e.watch,o=e.onMounted,n=e.onUnmounted,i=e.createVNode,r=e.nextTick},function(e){s=e.getMarkDownProps,u=e.getEditorEmits,c=e.useNamespace,d=e.useUIStore},function(e){h=e.createUUID,v=e.getCookie},function(e){m=e.default},function(e){b=e.CoreConst}],execute:function(){e("default",t({name:"IBizMarkDown",props:s(),emits:u(),setup(e,{emit:t}){const i=c("markdown"),s=e.controller,u=a(""),f=a(null),p=h(),g=a({Authorization:"Bearer ".concat(v(b.TOKEN))}),w=a(""),k=a(""),{UIStore:y}=d(),U=a(y.theme),x=a("editOnly");let C=null,z=0;const M=a({});l((()=>e.data),(e=>{if(e&&s){const t=ibiz.util.file.calcFileUpDownUrl(s.context,s.params,e,s.editorParams);w.value=t.uploadUrl,k.value=t.downloadUrl}}),{immediate:!0,deep:!0});const O=a(),B=async(e,t)=>{const a=await ibiz.util.file.fileUpload(w.value,e,g.value);t(k.value.replace("%fileId%",a.fileid))},D=()=>{var e;return null==(e=f.value)?void 0:e.getMarkdown()},I=e=>{var t;null==(t=f.value)||t.setMarkdown(e,!1)};l((()=>e.value),((e,t)=>{e!==t&&(u.value=e||"")}),{immediate:!0}),l(u,((e,t)=>{const a=D();e!==t&&a!==e&&I(e)}));const V=e=>{t("change",D())},R=(e,t)=>({[e]:t});l((()=>y.theme),(e=>{var t;U.value=e,null==(t=f.value)||t.setTheme(U.value)}));return o((()=>{e.disabled&&(x.value="previewOnly"),r((()=>{f.value=new m({id:p,value:u.value,theme:U.value,fileUpload:B,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:x.value,codemirror:{autofocus:!1}},toolbars:{theme:U.value,toolbar:["bold","italic","underline","strikethrough","|","color","header","|","list","image",{insert:["link","hr","br","code","formula","toc","table","line-table","bar-table"]},"settings","togglePreview"],bubble:["bold","italic","underline","strikethrough","sub","sup","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"],customMenu:[],sidebar:[]},callback:{afterChange:V,beforeImageMounted:R}})})),(()=>{if(window.ResizeObserver&&O.value){const e={width:"".concat(O.value.offsetWidth,"px")};s&&"number"==typeof s.parent.model.height&&Object.assign(e,{height:"".concat(s.parent.model.height,"px")}),M.value=i.cssVarBlock(e),C=new ResizeObserver((e=>{const t=e[0].contentRect.width;if(t!==z){const a={width:"".concat(e[0].contentRect.width,"px")};s&&"number"==typeof s.parent.model.height&&Object.assign(a,{height:"".concat(s.parent.model.height,"px")}),M.value=i.cssVarBlock(a),z=t}})),C.observe(O.value)}})()})),n((()=>{f.value=null,C&&C.disconnect()})),{ns:i,currentVal:u,id:p,editor:f,markDownBox:O,headers:g,theme:U,defaultModel:x,cssVars:M,getCherryHtml:()=>{var e;return null==(e=f.value)?void 0:e.getHtml()},getCherryContent:D,setCherryContent:I}},render(){return i("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled)]},[i("div",{id:this.id,style:this.cssVars,class:this.ns.b("cherry")},null)])}}))}}}));
|