@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
|
@@ -4,23 +4,7 @@ var core = require('@ibiz-template/core');
|
|
|
4
4
|
var runtime = require('@ibiz-template/runtime');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
|
-
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __publicField = (obj, key, value) => {
|
|
10
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
-
return value;
|
|
12
|
-
};
|
|
13
|
-
class EditViewEngine extends runtime.ViewEngineBase {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
/**
|
|
17
|
-
* 实体名称
|
|
18
|
-
* @author lxm
|
|
19
|
-
* @date 2024-01-31 11:05:49
|
|
20
|
-
* @type {string}
|
|
21
|
-
*/
|
|
22
|
-
__publicField(this, "deName");
|
|
23
|
-
}
|
|
7
|
+
class EditViewEngine extends runtime.DEMainViewEngine {
|
|
24
8
|
get form() {
|
|
25
9
|
return this.view.getController("form");
|
|
26
10
|
}
|
|
@@ -88,7 +72,6 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
88
72
|
this.formDataStateChange = this.formDataStateChange.bind(this);
|
|
89
73
|
const { childNames, modal } = this.view;
|
|
90
74
|
childNames.push("form");
|
|
91
|
-
this.deName = runtime.calcDeCodeNameById(this.view.model.appDataEntityId);
|
|
92
75
|
if (!this.view.slotProps.form) {
|
|
93
76
|
this.view.slotProps.form = {};
|
|
94
77
|
}
|
|
@@ -122,37 +105,52 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
122
105
|
}
|
|
123
106
|
async onMounted() {
|
|
124
107
|
await super.onMounted();
|
|
125
|
-
this.initMarkOpenData();
|
|
126
108
|
const { model, evt } = this.view;
|
|
127
|
-
this.form
|
|
128
|
-
this.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
this.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
this.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
this.view.context[deName]
|
|
109
|
+
if (this.form) {
|
|
110
|
+
this.form.evt.on("onLoadSuccess", (event) => {
|
|
111
|
+
this.formDataStateChange(event);
|
|
112
|
+
const data = event.data[0];
|
|
113
|
+
this.view.state.srfactiveviewdata = data;
|
|
114
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
115
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
116
|
+
}
|
|
117
|
+
evt.emit("onDataChange", { ...event, actionType: "LOAD" });
|
|
118
|
+
});
|
|
119
|
+
this.form.evt.on("onLoadDraftSuccess", (event) => {
|
|
120
|
+
this.formDataStateChange(event);
|
|
121
|
+
evt.emit("onDataChange", { ...event, actionType: "LOADDRAFT" });
|
|
122
|
+
});
|
|
123
|
+
this.form.evt.on("onSaveSuccess", (event) => {
|
|
124
|
+
this.view.state.closeOK = true;
|
|
125
|
+
const deName = runtime.calcDeCodeNameById(this.view.model.appDataEntityId);
|
|
126
|
+
const formData = event.data[0];
|
|
127
|
+
if (this.view.context[deName] !== formData.srfkey) {
|
|
128
|
+
this.view.context[deName] = formData.srfkey;
|
|
129
|
+
}
|
|
130
|
+
this.formDataStateChange(event);
|
|
131
|
+
evt.emit("onDataChange", { ...event, actionType: "SAVE" });
|
|
132
|
+
});
|
|
133
|
+
this.form.evt.on("onRemoveSuccess", (event) => {
|
|
134
|
+
this.formDataStateChange(event);
|
|
135
|
+
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
136
|
+
});
|
|
137
|
+
const appDe = await ibiz.hub.getAppDataEntity(
|
|
138
|
+
this.view.model.appDataEntityId,
|
|
139
|
+
this.view.model.appId
|
|
140
|
+
);
|
|
141
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
142
|
+
const { name, value } = event;
|
|
143
|
+
if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
|
|
144
|
+
this.view.redrawView({
|
|
145
|
+
context: this.view.context,
|
|
146
|
+
params: { srfdatatype: value, [name]: value },
|
|
147
|
+
isReloadModel: true
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
152
|
+
this.load();
|
|
146
153
|
}
|
|
147
|
-
this.formDataStateChange(event);
|
|
148
|
-
evt.emit("onDataChange", { ...event, actionType: "SAVE" });
|
|
149
|
-
});
|
|
150
|
-
this.form.evt.on("onRemoveSuccess", (event) => {
|
|
151
|
-
this.formDataStateChange(event);
|
|
152
|
-
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
153
|
-
});
|
|
154
|
-
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
155
|
-
this.load();
|
|
156
154
|
}
|
|
157
155
|
}
|
|
158
156
|
getData() {
|
|
@@ -340,128 +338,60 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
340
338
|
);
|
|
341
339
|
}
|
|
342
340
|
/**
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
* @
|
|
346
|
-
* @return {*} {void}
|
|
341
|
+
* 执行数据标记行为
|
|
342
|
+
*
|
|
343
|
+
* @memberof EditViewEngine
|
|
347
344
|
*/
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
let hasOpenConfirm = false;
|
|
355
|
-
(_a = this.coopPos) == null ? void 0 : _a.initMessageModes(modes);
|
|
356
|
-
const callback = async (data) => {
|
|
357
|
-
if (!this.view.state.activated) {
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
const dataInfo = this.form.getData()[0].srfmajortext;
|
|
361
|
-
let actionMsg = "";
|
|
362
|
-
switch (data.action) {
|
|
363
|
-
case "VIEW":
|
|
364
|
-
actionMsg = ibiz.i18n.t("viewEngine.browseMsg");
|
|
365
|
-
break;
|
|
366
|
-
case "EDIT":
|
|
367
|
-
actionMsg = ibiz.i18n.t("viewEngine.editMsg");
|
|
368
|
-
break;
|
|
369
|
-
case "UPDATE":
|
|
370
|
-
actionMsg = ibiz.i18n.t("viewEngine.updateMsg");
|
|
371
|
-
break;
|
|
372
|
-
default:
|
|
373
|
-
break;
|
|
374
|
-
}
|
|
375
|
-
const message = "".concat(data.username, " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo);
|
|
376
|
-
if (this.coopPos) {
|
|
377
|
-
this.coopPos.updateMessage({
|
|
378
|
-
title: message,
|
|
379
|
-
data
|
|
380
|
-
});
|
|
381
|
-
} else {
|
|
382
|
-
ibiz.message.notice({
|
|
383
|
-
message,
|
|
384
|
-
showClose: true,
|
|
385
|
-
duration: 3,
|
|
386
|
-
styleType: "alert"
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
if (hasOpenConfirm === false && data.action === "UPDATE" && modes.includes("NOTICERELOAD")) {
|
|
390
|
-
hasOpenConfirm = true;
|
|
391
|
-
const isReload = await this.reloadConfirm();
|
|
392
|
-
if (isReload) {
|
|
393
|
-
this.refresh();
|
|
394
|
-
}
|
|
395
|
-
hasOpenConfirm = false;
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
const doActions = [];
|
|
399
|
-
if (modes.includes("EDITDATA") || modes.includes("DISPLAYOPPERSON") || modes.includes("NOTICERELOAD")) {
|
|
400
|
-
doActions.push("EDIT", "VIEW", "UPDATE", "CLOSE");
|
|
401
|
-
} else if (modes.includes("OPENDATA")) {
|
|
402
|
-
doActions.push("VIEW", "CLOSE");
|
|
403
|
-
}
|
|
404
|
-
if (doActions.length === 0) {
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
let srfkey;
|
|
408
|
-
let hasSubscribe = false;
|
|
409
|
-
if (doActions.includes("VIEW")) {
|
|
345
|
+
doMarkDataAction() {
|
|
346
|
+
if (this.doActions.includes("VIEW")) {
|
|
347
|
+
const callback = async (data) => {
|
|
348
|
+
const dataInfo = this.form.getData()[0].srfmajortext;
|
|
349
|
+
this.markOpenDataCallback(data, dataInfo);
|
|
350
|
+
};
|
|
410
351
|
this.form.evt.on("onLoadSuccess", async (event) => {
|
|
411
|
-
const
|
|
412
|
-
|
|
413
|
-
const result = await ibiz.markOpenData.action(
|
|
414
|
-
this.deName,
|
|
415
|
-
srfkey,
|
|
416
|
-
"VIEW"
|
|
417
|
-
);
|
|
352
|
+
const data = event.data[0];
|
|
353
|
+
const result = await this.sendMarkDataAction("VIEW", data.srfkey);
|
|
418
354
|
if (result.ok && result.data.length > 0) {
|
|
419
355
|
result.data.forEach((item) => {
|
|
420
|
-
var
|
|
356
|
+
var _a;
|
|
421
357
|
if (item.data) {
|
|
422
|
-
(
|
|
358
|
+
(_a = this.coopPos) == null ? void 0 : _a.updateMessage({
|
|
423
359
|
data: item.data
|
|
424
360
|
});
|
|
425
361
|
}
|
|
426
362
|
});
|
|
427
363
|
}
|
|
428
|
-
|
|
429
|
-
ibiz.markOpenData.subscribe(this.deName, srfkey, callback);
|
|
430
|
-
this.view.evt.on("onDestroyed", () => {
|
|
431
|
-
ibiz.markOpenData.unsubscribe(this.deName, srfkey, callback);
|
|
432
|
-
});
|
|
433
|
-
hasSubscribe = true;
|
|
434
|
-
}
|
|
364
|
+
this.subscribeMarkDataAction(data.srfkey, callback);
|
|
435
365
|
});
|
|
436
366
|
}
|
|
437
|
-
if (doActions.includes("EDIT")) {
|
|
367
|
+
if (this.doActions.includes("EDIT")) {
|
|
438
368
|
let isWait = false;
|
|
439
|
-
|
|
440
|
-
|
|
369
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
370
|
+
const data = event.data[0];
|
|
371
|
+
if (isWait) {
|
|
441
372
|
return;
|
|
442
373
|
}
|
|
443
374
|
isWait = true;
|
|
444
|
-
|
|
375
|
+
this.sendMarkDataAction("EDIT", data.srfkey);
|
|
445
376
|
setTimeout(
|
|
446
377
|
() => {
|
|
447
378
|
isWait = false;
|
|
448
379
|
},
|
|
449
380
|
1e3 * 60 * 5
|
|
450
381
|
);
|
|
451
|
-
};
|
|
452
|
-
this.form.evt.on("onFormDataChange", actionEdit);
|
|
382
|
+
});
|
|
453
383
|
}
|
|
454
|
-
if (doActions.includes("UPDATE")) {
|
|
455
|
-
this.form.evt.on("onSaveSuccess", () => {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
384
|
+
if (this.doActions.includes("UPDATE")) {
|
|
385
|
+
this.form.evt.on("onSaveSuccess", (event) => {
|
|
386
|
+
const data = event.data[0];
|
|
387
|
+
this.sendMarkDataAction("UPDATE", data.srfkey);
|
|
459
388
|
});
|
|
460
389
|
}
|
|
461
|
-
if (doActions.includes("CLOSE")) {
|
|
390
|
+
if (this.doActions.includes("CLOSE")) {
|
|
462
391
|
this.view.evt.on("onCloseView", () => {
|
|
463
|
-
|
|
464
|
-
|
|
392
|
+
const data = this.form.getData()[0];
|
|
393
|
+
if (data == null ? void 0 : data.srfkey) {
|
|
394
|
+
this.sendMarkDataAction("CLOSE", data.srfkey);
|
|
465
395
|
}
|
|
466
396
|
});
|
|
467
397
|
}
|
|
@@ -473,10 +403,7 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
473
403
|
* @return {*} {Promise<boolean>}
|
|
474
404
|
*/
|
|
475
405
|
async reloadConfirm() {
|
|
476
|
-
const result = await
|
|
477
|
-
title: ibiz.i18n.t("viewEngine.refreshPrompt"),
|
|
478
|
-
desc: ibiz.i18n.t("viewEngine.refreshPagePrompt")
|
|
479
|
-
});
|
|
406
|
+
const result = await super.reloadConfirm();
|
|
480
407
|
if (result && this.form.state.modified) {
|
|
481
408
|
return ibiz.confirm.warning({
|
|
482
409
|
title: ibiz.i18n.t("viewEngine.refreshRemind"),
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var vueRouter = require('vue-router');
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __publicField = (obj, key, value) => {
|
|
10
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
+
return value;
|
|
12
|
+
};
|
|
6
13
|
class IndexViewEngine extends runtime.ViewEngineBase {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* @description 路由对象
|
|
18
|
+
* @type {RouteLocationNormalizedLoaded}
|
|
19
|
+
* @memberof IndexViewEngine
|
|
20
|
+
*/
|
|
21
|
+
__publicField(this, "route", vueRouter.useRoute());
|
|
22
|
+
}
|
|
7
23
|
get appmenu() {
|
|
8
24
|
return this.view.getController("appmenu");
|
|
9
25
|
}
|
|
@@ -32,7 +48,7 @@ class IndexViewEngine extends runtime.ViewEngineBase {
|
|
|
32
48
|
}
|
|
33
49
|
async onMounted() {
|
|
34
50
|
await super.onMounted();
|
|
35
|
-
if (!this.isExistAndInLayout("appmenu")) {
|
|
51
|
+
if (!this.isExistAndInLayout("appmenu") && !this.route.params.view2) {
|
|
36
52
|
const { model, context, params } = this.view;
|
|
37
53
|
const { defAppViewId } = model;
|
|
38
54
|
if (defAppViewId) {
|
|
@@ -97,8 +97,18 @@ class LoginViewEngine extends runtime.ViewEngineBase {
|
|
|
97
97
|
);
|
|
98
98
|
this.view.evt.emit("onAfterLogin", { ok: bol, panelDataParent });
|
|
99
99
|
if (bol === true) {
|
|
100
|
+
const loginFailed = window.location.href.indexOf("srfthird_auth_success=false") >= 0;
|
|
100
101
|
window.location.hash = this.route.query.ru || "/";
|
|
101
|
-
window.
|
|
102
|
+
window.history.pushState({}, "");
|
|
103
|
+
if (loginFailed) {
|
|
104
|
+
const path = window.location.href.replace(
|
|
105
|
+
"?srfthird_auth_success=false",
|
|
106
|
+
""
|
|
107
|
+
);
|
|
108
|
+
window.location.href = path;
|
|
109
|
+
} else {
|
|
110
|
+
window.location.reload();
|
|
111
|
+
}
|
|
102
112
|
}
|
|
103
113
|
}
|
|
104
114
|
async cancelChanges() {
|
|
@@ -13,6 +13,27 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
13
13
|
get form() {
|
|
14
14
|
return this.view.getController("form");
|
|
15
15
|
}
|
|
16
|
+
init() {
|
|
17
|
+
super.init();
|
|
18
|
+
if (this.view.model.multiFormMode === 1 && this.view.params.srfdatatype) {
|
|
19
|
+
const model = runtime.getControl(
|
|
20
|
+
this.view.model,
|
|
21
|
+
"_form_".concat(this.view.params.srfdatatype)
|
|
22
|
+
);
|
|
23
|
+
if (model) {
|
|
24
|
+
const controls = runtime.getControlsByView(this.view.model).filter((item) => {
|
|
25
|
+
return item.controlType !== "FORM";
|
|
26
|
+
});
|
|
27
|
+
model.name = "form";
|
|
28
|
+
controls.push(model);
|
|
29
|
+
if (this.view.model.viewLayoutPanel) {
|
|
30
|
+
this.view.model.viewLayoutPanel.controls = controls;
|
|
31
|
+
} else {
|
|
32
|
+
this.view.model.controls = controls;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
16
37
|
/**
|
|
17
38
|
* 视图created生命周期执行逻辑
|
|
18
39
|
*
|
|
@@ -66,6 +87,25 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
66
87
|
this.form.evt.on("onSaveSuccess", (event) => {
|
|
67
88
|
formDataStateChange(event);
|
|
68
89
|
});
|
|
90
|
+
const appDe = await ibiz.hub.getAppDataEntity(
|
|
91
|
+
this.view.model.appDataEntityId,
|
|
92
|
+
this.view.model.appId
|
|
93
|
+
);
|
|
94
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
95
|
+
const { name, value } = event;
|
|
96
|
+
if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
|
|
97
|
+
this.view.redrawView({
|
|
98
|
+
context: this.view.context,
|
|
99
|
+
params: {
|
|
100
|
+
...this.view.params,
|
|
101
|
+
srfdatatype: value,
|
|
102
|
+
srfdefdata: event.data[0],
|
|
103
|
+
[name]: value
|
|
104
|
+
},
|
|
105
|
+
isReloadModel: true
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
});
|
|
69
109
|
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
70
110
|
this.load();
|
|
71
111
|
}
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
-
class PortalViewEngine extends runtime.
|
|
6
|
+
class PortalViewEngine extends runtime.DEMainViewEngine {
|
|
7
|
+
/**
|
|
8
|
+
* 视图created生命周期执行逻辑
|
|
9
|
+
*
|
|
10
|
+
* @return {*} {Promise<void>}
|
|
11
|
+
* @memberof PortalViewEngine
|
|
12
|
+
*/
|
|
7
13
|
async onCreated() {
|
|
8
14
|
await super.onCreated();
|
|
9
15
|
const { childNames } = this.view;
|
|
@@ -18,12 +24,98 @@ class PortalViewEngine extends runtime.ViewEngineBase {
|
|
|
18
24
|
get dashboard() {
|
|
19
25
|
return this.view.getController("dashboard");
|
|
20
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* 视图刷新
|
|
29
|
+
*
|
|
30
|
+
* @return {*} {Promise<void>}
|
|
31
|
+
* @memberof PortalViewEngine
|
|
32
|
+
*/
|
|
33
|
+
async refresh() {
|
|
34
|
+
await this.dashboard.refresh();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 执行视图预置界面行为能力
|
|
38
|
+
*
|
|
39
|
+
* @param {string} key
|
|
40
|
+
* @param {*} args
|
|
41
|
+
* @return {*} {(Promise<IData | null | undefined>)}
|
|
42
|
+
* @memberof PortalViewEngine
|
|
43
|
+
*/
|
|
44
|
+
async call(key, args) {
|
|
45
|
+
if (key === runtime.SysUIActionTag.REFRESH) {
|
|
46
|
+
if (args.ctrl) {
|
|
47
|
+
await args.ctrl.refresh();
|
|
48
|
+
} else {
|
|
49
|
+
await this.refresh();
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return super.call(key, args);
|
|
54
|
+
}
|
|
21
55
|
async onMounted() {
|
|
22
56
|
await super.onMounted();
|
|
23
57
|
if (this.view.model.appDataEntityId) {
|
|
24
58
|
await this.loadEntityData();
|
|
25
59
|
}
|
|
26
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* 执行标记数据行为
|
|
63
|
+
*
|
|
64
|
+
* @memberof PortalViewEngine
|
|
65
|
+
*/
|
|
66
|
+
doMarkDataAction() {
|
|
67
|
+
let data;
|
|
68
|
+
if (this.doActions.includes("VIEW")) {
|
|
69
|
+
const callback = async (_data) => {
|
|
70
|
+
this.markOpenDataCallback(_data, data == null ? void 0 : data.srfmajortext);
|
|
71
|
+
};
|
|
72
|
+
this.view.evt.on("onDataChange", async (event) => {
|
|
73
|
+
data = event.data[0];
|
|
74
|
+
const result = await this.sendMarkDataAction("VIEW", data.srfkey);
|
|
75
|
+
if (result.ok && result.data.length > 0) {
|
|
76
|
+
result.data.forEach((item) => {
|
|
77
|
+
var _a;
|
|
78
|
+
if (item.data) {
|
|
79
|
+
(_a = this.coopPos) == null ? void 0 : _a.updateMessage({
|
|
80
|
+
data: item.data
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
this.subscribeMarkDataAction(data.srfkey, callback);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
if (this.doActions.includes("EDIT")) {
|
|
89
|
+
let isWait = false;
|
|
90
|
+
this.dashboard.evt.on("onConfigChange", () => {
|
|
91
|
+
if (!(data == null ? void 0 : data.srfkey) || isWait) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
isWait = true;
|
|
95
|
+
this.sendMarkDataAction("EDIT", data.srfkey);
|
|
96
|
+
setTimeout(
|
|
97
|
+
() => {
|
|
98
|
+
isWait = false;
|
|
99
|
+
},
|
|
100
|
+
1e3 * 60 * 5
|
|
101
|
+
);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (this.doActions.includes("UPDATE")) {
|
|
105
|
+
this.dashboard.evt.on("onSavePortlet", () => {
|
|
106
|
+
if (data == null ? void 0 : data.srfkey) {
|
|
107
|
+
this.sendMarkDataAction("UPDATE", data == null ? void 0 : data.srfkey);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
if (this.doActions.includes("CLOSE")) {
|
|
112
|
+
this.view.evt.on("onCloseView", () => {
|
|
113
|
+
if (data == null ? void 0 : data.srfkey) {
|
|
114
|
+
this.sendMarkDataAction("CLOSE", data.srfkey);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
27
119
|
}
|
|
28
120
|
|
|
29
121
|
exports.PortalViewEngine = PortalViewEngine;
|
|
@@ -63,10 +63,60 @@ class TabSearchViewEngine extends tabExpView_engine.TabExpViewEngine {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
if (this.tabExpPanel) {
|
|
66
|
-
this.tabExpPanel.evt.on(
|
|
67
|
-
|
|
66
|
+
this.tabExpPanel.evt.on(
|
|
67
|
+
"onTabChange",
|
|
68
|
+
({ tab }) => {
|
|
69
|
+
this.calcViewParams();
|
|
70
|
+
this.onQuickSearchPlaceHolder(tab);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
const { activeTabViewPanelModel } = this.tabExpPanel;
|
|
74
|
+
if (activeTabViewPanelModel) {
|
|
75
|
+
this.onQuickSearchPlaceHolder(activeTabViewPanelModel);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 给快捷搜索赋默认提示值
|
|
81
|
+
* @author ljx
|
|
82
|
+
* @date 2024-11-12 10:56:25
|
|
83
|
+
* @return {*} {Promise<void>}
|
|
84
|
+
* @memberof TabSearchViewEngine
|
|
85
|
+
*/
|
|
86
|
+
async onQuickSearchPlaceHolder(tab) {
|
|
87
|
+
let { caption } = tab;
|
|
88
|
+
const viewConfig = await ibiz.hub.config.view.get(
|
|
89
|
+
tab.embeddedAppDEViewId || ""
|
|
90
|
+
);
|
|
91
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
92
|
+
viewConfig.appDataEntityId,
|
|
93
|
+
viewConfig.appId
|
|
94
|
+
);
|
|
95
|
+
if (appDataEntity) {
|
|
96
|
+
const searchFields = appDataEntity.appDEFields.filter((field) => {
|
|
97
|
+
return field.enableQuickSearch;
|
|
68
98
|
});
|
|
99
|
+
if (searchFields.length) {
|
|
100
|
+
const placeHolders = [];
|
|
101
|
+
searchFields.forEach((searchField) => {
|
|
102
|
+
if (searchField.lnlanguageRes && searchField.lnlanguageRes.lanResTag) {
|
|
103
|
+
placeHolders.push(
|
|
104
|
+
ibiz.i18n.t(
|
|
105
|
+
searchField.lnlanguageRes.lanResTag,
|
|
106
|
+
searchField.logicName
|
|
107
|
+
)
|
|
108
|
+
);
|
|
109
|
+
} else if (searchField.logicName) {
|
|
110
|
+
placeHolders.push(searchField.logicName);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
if (placeHolders.length > 0) {
|
|
114
|
+
caption = placeHolders.join("\u3001");
|
|
115
|
+
}
|
|
116
|
+
}
|
|
69
117
|
}
|
|
118
|
+
this.searchBar.placeHolder = caption || "";
|
|
119
|
+
this.searchBar.state.quickSearchPlaceHolder = caption || "";
|
|
70
120
|
}
|
|
71
121
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
72
122
|
async call(key, args) {
|
|
@@ -81,6 +81,29 @@ class TreeExpViewEngine extends expView_engine.ExpViewEngine {
|
|
|
81
81
|
}
|
|
82
82
|
return super.call(key, args);
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* 视图mounted生命周期执行逻辑
|
|
86
|
+
*
|
|
87
|
+
* @return {*} {Promise<void>}
|
|
88
|
+
* @memberof TreeExpViewEngine
|
|
89
|
+
*/
|
|
90
|
+
async onMounted() {
|
|
91
|
+
await super.onMounted();
|
|
92
|
+
await this.loadEntityData();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* 加载实体主数据
|
|
96
|
+
*
|
|
97
|
+
* @return {*} {Promise<void>}
|
|
98
|
+
* @memberof TreeExpViewEngine
|
|
99
|
+
*/
|
|
100
|
+
async loadEntityData() {
|
|
101
|
+
const deName = runtime.calcDeCodeNameById(this.view.model.appDataEntityId);
|
|
102
|
+
if (!this.view.context[deName] || !this.view.model.showDataInfoBar) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
return super.loadEntityData();
|
|
106
|
+
}
|
|
84
107
|
}
|
|
85
108
|
|
|
86
109
|
exports.TreeExpViewEngine = TreeExpViewEngine;
|
|
@@ -17,7 +17,11 @@ async function attachEnvironmentConfig() {
|
|
|
17
17
|
Object.keys(ibiz.env).forEach((key) => {
|
|
18
18
|
const key2 = envMap.has(key) ? envMap.get(key) : key;
|
|
19
19
|
if (env[key2] != null) {
|
|
20
|
-
|
|
20
|
+
if (key2 === "customParams") {
|
|
21
|
+
ibiz.env[key] = JSON.parse(env[key2]);
|
|
22
|
+
} else {
|
|
23
|
+
ibiz.env[key] = env[key2];
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
});
|
|
23
27
|
if (query) {
|
|
@@ -107,6 +107,10 @@ const ModalRouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
107
|
const result = await overlay.onWillDismiss();
|
|
108
108
|
overlay = null;
|
|
109
109
|
if (isDestroyed.value === false) {
|
|
110
|
+
const historyIndex = pathHistory.indexOf(route.fullPath);
|
|
111
|
+
if (historyIndex !== -1) {
|
|
112
|
+
pathHistory.splice(historyIndex, 1);
|
|
113
|
+
}
|
|
110
114
|
if ((_a = window.history.state) == null ? void 0 : _a.back) {
|
|
111
115
|
router.back();
|
|
112
116
|
} else {
|