@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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import './ibiz-color-mpicker-default.scss';
|
|
3
|
+
export declare const IBizColorMPickerDefault: import("vue").DefineComponent<{
|
|
4
|
+
value: {
|
|
5
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
6
|
+
};
|
|
7
|
+
customColorList: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
type: {
|
|
11
|
+
type: PropType<"ITEM" | "ITEMS">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
readonly: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
24
|
+
curType: import("vue").Ref<string>;
|
|
25
|
+
curTemplateColor: import("vue").Ref<string>;
|
|
26
|
+
showTemplateList: import("vue").Ref<boolean>;
|
|
27
|
+
colorType: IData[];
|
|
28
|
+
templateColorList: import("vue").ComputedRef<any>;
|
|
29
|
+
handleTemplateColorChange: () => void;
|
|
30
|
+
handleSchemeChange: () => void;
|
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
value: {
|
|
33
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
34
|
+
};
|
|
35
|
+
customColorList: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
type: {
|
|
39
|
+
type: PropType<"ITEM" | "ITEMS">;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
readonly: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
disabled: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}>> & {
|
|
51
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
type: "ITEM" | "ITEMS";
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
readonly: boolean;
|
|
56
|
+
}, {}>;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, createVNode, resolveComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './ibiz-color-mpicker-default.css';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const IBizColorMPickerDefault = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "IBizColorMPickerDefault",
|
|
8
|
+
props: {
|
|
9
|
+
value: {
|
|
10
|
+
type: [Array, String]
|
|
11
|
+
},
|
|
12
|
+
customColorList: {
|
|
13
|
+
type: String
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "ITEMS"
|
|
18
|
+
},
|
|
19
|
+
readonly: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["change"],
|
|
29
|
+
setup(props, {
|
|
30
|
+
emit
|
|
31
|
+
}) {
|
|
32
|
+
const ns = useNamespace("color-mpicker-default");
|
|
33
|
+
const curType = ref("default");
|
|
34
|
+
const curTemplateColor = ref("");
|
|
35
|
+
const showTemplateList = ref(false);
|
|
36
|
+
const colorType = [{
|
|
37
|
+
text: ibiz.i18n.t("editor.colorPicker.systemColor"),
|
|
38
|
+
value: "default"
|
|
39
|
+
}, {
|
|
40
|
+
text: ibiz.i18n.t("editor.colorPicker.templateColor"),
|
|
41
|
+
value: "template"
|
|
42
|
+
}];
|
|
43
|
+
const templateColorList = computed(() => {
|
|
44
|
+
if (props.customColorList) {
|
|
45
|
+
return JSON.parse(props.customColorList);
|
|
46
|
+
}
|
|
47
|
+
return [{
|
|
48
|
+
text: ibiz.i18n.t("editor.colorPicker.simpleBlue"),
|
|
49
|
+
value: props.type === "ITEM" ? ["#6698FF"] : ["#6698FF", "#73DEB3", "#7585A2", "#F7BE21", "#EE734A", "#83D0EE"]
|
|
50
|
+
}, {
|
|
51
|
+
text: ibiz.i18n.t("editor.colorPicker.autumnOrange"),
|
|
52
|
+
value: props.type === "ITEM" ? ["#EE734A"] : ["#EE734A", "#7585A2", "#FEC103", "#9EB411", "#CD8050", "#DAD5B5"]
|
|
53
|
+
}, {
|
|
54
|
+
text: ibiz.i18n.t("editor.colorPicker.Macaroon"),
|
|
55
|
+
value: props.type === "ITEM" ? ["#467CE6"] : ["#467CE6", "#CD74CA", "#4997CC", "#BCBFE3", "#666CEB", "#82BC9A"]
|
|
56
|
+
}, {
|
|
57
|
+
text: ibiz.i18n.t("editor.colorPicker.mintGreen"),
|
|
58
|
+
value: props.type === "ITEM" ? ["#118299"] : ["#118299", "#13B3B3", "#73DEB3", "#FEC103", "#9EB411", "#83D0EE"]
|
|
59
|
+
}];
|
|
60
|
+
});
|
|
61
|
+
const handleTemplateColorChange = () => {
|
|
62
|
+
const temmpVal = JSON.parse(curTemplateColor.value);
|
|
63
|
+
emit("change", temmpVal);
|
|
64
|
+
};
|
|
65
|
+
const handleSchemeChange = () => {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
if (curType.value === "default") {
|
|
68
|
+
showTemplateList.value = false;
|
|
69
|
+
emit("change", (_b = (_a = templateColorList.value[0]) == null ? void 0 : _a.value) == null ? void 0 : _b[0]);
|
|
70
|
+
} else {
|
|
71
|
+
showTemplateList.value = true;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
watch(() => props.value, () => {
|
|
75
|
+
if (props.value) {
|
|
76
|
+
if (typeof props.value === "string") {
|
|
77
|
+
curType.value = "default";
|
|
78
|
+
showTemplateList.value = false;
|
|
79
|
+
} else {
|
|
80
|
+
curType.value = "template";
|
|
81
|
+
showTemplateList.value = true;
|
|
82
|
+
if (props.value.length > 0) {
|
|
83
|
+
curTemplateColor.value = JSON.stringify(props.value);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
} else {
|
|
87
|
+
curType.value = "default";
|
|
88
|
+
showTemplateList.value = false;
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
immediate: true,
|
|
92
|
+
deep: true
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
ns,
|
|
96
|
+
curType,
|
|
97
|
+
curTemplateColor,
|
|
98
|
+
showTemplateList,
|
|
99
|
+
colorType,
|
|
100
|
+
templateColorList,
|
|
101
|
+
handleTemplateColorChange,
|
|
102
|
+
handleSchemeChange
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
render() {
|
|
106
|
+
return createVNode("div", {
|
|
107
|
+
"class": this.ns.b()
|
|
108
|
+
}, [createVNode(resolveComponent("el-select"), {
|
|
109
|
+
"class": this.ns.b("picker"),
|
|
110
|
+
"popper-class": this.ns.b("popper"),
|
|
111
|
+
"modelValue": this.curType,
|
|
112
|
+
"onUpdate:modelValue": ($event) => this.curType = $event,
|
|
113
|
+
"onChange": this.handleSchemeChange
|
|
114
|
+
}, {
|
|
115
|
+
default: () => {
|
|
116
|
+
return this.colorType.map((scheme) => {
|
|
117
|
+
return createVNode(resolveComponent("el-option"), {
|
|
118
|
+
"key": scheme.value,
|
|
119
|
+
"label": scheme.text,
|
|
120
|
+
"value": scheme.value
|
|
121
|
+
}, null);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}), this.showTemplateList && createVNode(resolveComponent("el-select"), {
|
|
125
|
+
"class": this.ns.b("template-color-picker"),
|
|
126
|
+
"popper-class": this.ns.b("popper"),
|
|
127
|
+
"modelValue": this.curTemplateColor,
|
|
128
|
+
"onUpdate:modelValue": ($event) => this.curTemplateColor = $event,
|
|
129
|
+
"onChange": this.handleTemplateColorChange
|
|
130
|
+
}, {
|
|
131
|
+
default: () => {
|
|
132
|
+
return this.templateColorList.map((color) => {
|
|
133
|
+
return createVNode(resolveComponent("el-option"), {
|
|
134
|
+
"key": color.key,
|
|
135
|
+
"label": color.text,
|
|
136
|
+
"value": JSON.stringify(color.value)
|
|
137
|
+
}, {
|
|
138
|
+
default: () => {
|
|
139
|
+
return createVNode("div", {
|
|
140
|
+
"class": this.ns.b("template-color-picker-option")
|
|
141
|
+
}, [Array.isArray(color.value) ? color.value.map((item) => createVNode("div", {
|
|
142
|
+
"class": this.ns.be("template-color-picker", "icon"),
|
|
143
|
+
"style": {
|
|
144
|
+
background: item
|
|
145
|
+
}
|
|
146
|
+
}, null)) : createVNode("div", {
|
|
147
|
+
"class": this.ns.be("template-color-picker", "icon"),
|
|
148
|
+
"style": {
|
|
149
|
+
background: color.value
|
|
150
|
+
}
|
|
151
|
+
}, null), createVNode("div", {
|
|
152
|
+
"class": this.ns.be("template-color-picker", "text")
|
|
153
|
+
}, [color.text])]);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
prefix: () => {
|
|
159
|
+
if (this.curTemplateColor) {
|
|
160
|
+
const colors = JSON.parse(this.curTemplateColor);
|
|
161
|
+
return Array.isArray(colors) ? colors.map((item) => createVNode("div", {
|
|
162
|
+
"class": this.ns.be("template-color-picker", "icon"),
|
|
163
|
+
"style": {
|
|
164
|
+
background: item
|
|
165
|
+
}
|
|
166
|
+
}, null)) : createVNode("div", {
|
|
167
|
+
"class": this.ns.be("template-color-picker", "icon"),
|
|
168
|
+
"style": {
|
|
169
|
+
background: colors[0]
|
|
170
|
+
}
|
|
171
|
+
}, [colors[0]]);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
})]);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export { IBizColorMPickerDefault };
|
|
@@ -26,19 +26,28 @@ export declare const IBizColorPicker: import("vue").DefineComponent<{
|
|
|
26
26
|
}, {
|
|
27
27
|
ns: import("@ibiz-template/core").Namespace;
|
|
28
28
|
c: ColorPickerEditorController;
|
|
29
|
-
currentVal: Ref<string | null>;
|
|
29
|
+
currentVal: Ref<string | string[] | null>;
|
|
30
30
|
predefineColors: Ref<string[]>;
|
|
31
31
|
contentStyle: import("vue").ComputedRef<IData | null>;
|
|
32
32
|
colorPicker: Ref<IData | null>;
|
|
33
|
+
multiple: boolean;
|
|
34
|
+
isCustom: boolean;
|
|
35
|
+
customColorList: any;
|
|
36
|
+
type: any;
|
|
33
37
|
handleChange: (e: string | null) => void;
|
|
34
38
|
showPicker: (_e: Event) => void;
|
|
35
39
|
onFocus: (e: IData) => void;
|
|
36
40
|
onBlur: (e: IData) => void;
|
|
37
41
|
showFormDefaultContent: import("vue").ComputedRef<boolean>;
|
|
42
|
+
onChange: (value: string | string[]) => void;
|
|
38
43
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
44
|
change: (_value: unknown, _name?: string | undefined) => boolean;
|
|
40
45
|
blur: (_event?: IData | undefined) => boolean;
|
|
41
46
|
focus: (_event?: IData | undefined) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 配置示例:
|
|
49
|
+
* CUSTOMCOLORLIST = [{"text":"颜色名字","value":["#123123","#111222","#333322","#11ff33"]}]
|
|
50
|
+
*/
|
|
42
51
|
enter: (_event?: IData | undefined) => boolean;
|
|
43
52
|
infoTextChange: (_text: string) => boolean;
|
|
44
53
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, createVNode, resolveComponent, mergeProps } from 'vue';
|
|
2
2
|
import { getColorPickerProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-color-picker.css';
|
|
4
|
+
import { IBizColorMPickerCustom } from '../ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs';
|
|
5
|
+
import { IBizColorMPickerDefault } from '../ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs';
|
|
4
6
|
|
|
5
7
|
"use strict";
|
|
6
8
|
const IBizColorPicker = /* @__PURE__ */ defineComponent({
|
|
@@ -10,10 +12,15 @@ const IBizColorPicker = /* @__PURE__ */ defineComponent({
|
|
|
10
12
|
setup(props, {
|
|
11
13
|
emit
|
|
12
14
|
}) {
|
|
15
|
+
var _a, _b, _c, _d;
|
|
13
16
|
const ns = useNamespace("color-picker");
|
|
14
17
|
const c = props.controller;
|
|
15
18
|
const currentVal = ref("");
|
|
16
19
|
const colorPicker = ref(null);
|
|
20
|
+
const multiple = ((_a = c.editorParams) == null ? void 0 : _a.MULTIPLE) === "true";
|
|
21
|
+
const isCustom = ((_b = c.editorParams) == null ? void 0 : _b.CUSTOM) === "true";
|
|
22
|
+
const type = (_c = c.editorParams) == null ? void 0 : _c.TYPE;
|
|
23
|
+
const customColorList = ((_d = c.editorParams) == null ? void 0 : _d.CUSTOMCOLORLIST) || "";
|
|
17
24
|
const predefineColors = ref(["#000000", "#2C2C2C", "#50555C", "#ACB3BF", "#D0D3D9", "#C4C4C4", "#DADADA", "#E5E5E5", "#F0F0F0", "#F24E1E", "#E99C58", "#FFC700", "#FF4D00", "#FF00D6", "#D82E57", "#8E1DE8", "#0ACF83", "#18A0FB", "#A259FF", "#907CFF"]);
|
|
18
25
|
const showFormDefaultContent = computed(() => {
|
|
19
26
|
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
@@ -23,7 +30,17 @@ const IBizColorPicker = /* @__PURE__ */ defineComponent({
|
|
|
23
30
|
});
|
|
24
31
|
watch(() => props.value, (newVal, oldVal) => {
|
|
25
32
|
if (newVal !== oldVal) {
|
|
26
|
-
if (
|
|
33
|
+
if (multiple) {
|
|
34
|
+
if (!newVal) {
|
|
35
|
+
if (isCustom) {
|
|
36
|
+
currentVal.value = [];
|
|
37
|
+
} else {
|
|
38
|
+
currentVal.value = "";
|
|
39
|
+
}
|
|
40
|
+
} else {
|
|
41
|
+
currentVal.value = newVal;
|
|
42
|
+
}
|
|
43
|
+
} else if (!newVal) {
|
|
27
44
|
currentVal.value = "";
|
|
28
45
|
} else {
|
|
29
46
|
currentVal.value = newVal;
|
|
@@ -54,6 +71,9 @@ const IBizColorPicker = /* @__PURE__ */ defineComponent({
|
|
|
54
71
|
const onBlur = (e) => {
|
|
55
72
|
emit("blur", e);
|
|
56
73
|
};
|
|
74
|
+
const onChange = (value) => {
|
|
75
|
+
emit("change", value);
|
|
76
|
+
};
|
|
57
77
|
return {
|
|
58
78
|
ns,
|
|
59
79
|
c,
|
|
@@ -61,17 +81,41 @@ const IBizColorPicker = /* @__PURE__ */ defineComponent({
|
|
|
61
81
|
predefineColors,
|
|
62
82
|
contentStyle,
|
|
63
83
|
colorPicker,
|
|
84
|
+
multiple,
|
|
85
|
+
isCustom,
|
|
86
|
+
customColorList,
|
|
87
|
+
type,
|
|
64
88
|
handleChange,
|
|
65
89
|
showPicker,
|
|
66
90
|
onFocus,
|
|
67
91
|
onBlur,
|
|
68
|
-
showFormDefaultContent
|
|
92
|
+
showFormDefaultContent,
|
|
93
|
+
onChange
|
|
69
94
|
};
|
|
70
95
|
},
|
|
71
96
|
render() {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
if (this.multiple) {
|
|
99
|
+
if (this.isCustom) {
|
|
100
|
+
return createVNode(IBizColorMPickerCustom, {
|
|
101
|
+
"value": this.currentVal || [],
|
|
102
|
+
"onChange": this.onChange,
|
|
103
|
+
"readonly": this.readonly,
|
|
104
|
+
"disabled": this.disabled
|
|
105
|
+
}, null);
|
|
106
|
+
}
|
|
107
|
+
return createVNode(IBizColorMPickerDefault, {
|
|
108
|
+
"value": this.currentVal || "",
|
|
109
|
+
"type": this.type,
|
|
110
|
+
"customColorList": this.customColorList,
|
|
111
|
+
"readonly": this.readonly,
|
|
112
|
+
"disabled": this.disabled,
|
|
113
|
+
"onChange": this.onChange
|
|
114
|
+
}, null);
|
|
115
|
+
}
|
|
72
116
|
let content = null;
|
|
73
117
|
if (this.readonly) {
|
|
74
|
-
content = "".concat(this.currentVal);
|
|
118
|
+
content = "".concat((_a = this.currentVal) == null ? void 0 : _a.toString());
|
|
75
119
|
} else {
|
|
76
120
|
content = createVNode("span", {
|
|
77
121
|
"class": this.ns.b("content"),
|
|
@@ -88,7 +132,7 @@ const IBizColorPicker = /* @__PURE__ */ defineComponent({
|
|
|
88
132
|
"size": "small",
|
|
89
133
|
"predefine": this.predefineColors,
|
|
90
134
|
"show-alpha": true
|
|
91
|
-
}, this.$attrs), null), createVNode("span", {
|
|
135
|
+
}, this.$attrs), null), ((_b = this.c.editorParams) == null ? void 0 : _b.isHiddenText) === "true" ? null : createVNode("span", {
|
|
92
136
|
"class": this.ns.b("text")
|
|
93
137
|
}, [this.currentVal])]);
|
|
94
138
|
}
|
|
@@ -316,6 +316,7 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
|
|
|
316
316
|
"label": item[this.c.textName]
|
|
317
317
|
}, {
|
|
318
318
|
default: () => {
|
|
319
|
+
var _a;
|
|
319
320
|
if (this.c.acItemProvider) {
|
|
320
321
|
const component = resolveComponent(this.c.acItemProvider.component);
|
|
321
322
|
return h(component, {
|
|
@@ -323,6 +324,15 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
|
|
|
323
324
|
controller: this.c
|
|
324
325
|
});
|
|
325
326
|
}
|
|
327
|
+
const panel = (_a = this.c.deACMode) == null ? void 0 : _a.itemLayoutPanel;
|
|
328
|
+
if (panel) {
|
|
329
|
+
return createVNode(resolveComponent("iBizControlShell"), {
|
|
330
|
+
"data": item,
|
|
331
|
+
"modelData": panel,
|
|
332
|
+
"context": this.c.context,
|
|
333
|
+
"params": this.c.params
|
|
334
|
+
}, null);
|
|
335
|
+
}
|
|
326
336
|
return createVNode("span", null, [item[this.c.textName] != null ? item[this.c.textName] : ""]);
|
|
327
337
|
}
|
|
328
338
|
});
|
|
@@ -160,7 +160,7 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
160
160
|
onMounted(() => {
|
|
161
161
|
watch(() => props.data[c.valueItem], async (newVal, oldVal) => {
|
|
162
162
|
if (newVal !== oldVal) {
|
|
163
|
-
if (!isLoaded.value && editorRef.value && isNil(props.value)) {
|
|
163
|
+
if (!isLoaded.value && editorRef.value && isNil(props.value) && !isNil(newVal)) {
|
|
164
164
|
await onSearch("");
|
|
165
165
|
}
|
|
166
166
|
const curItem = items.value.find((item) => Object.is(item[c.keyName], newVal));
|
|
@@ -206,11 +206,17 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
206
206
|
context,
|
|
207
207
|
params
|
|
208
208
|
} = this.c;
|
|
209
|
+
let selected = item[this.c.textName] || item.srfmajortext === this.curValue;
|
|
210
|
+
if (this.c.valueItem) {
|
|
211
|
+
selected = (item[this.c.keyName] || item.srfkey) === this.data[this.c.valueItem];
|
|
212
|
+
}
|
|
213
|
+
const className = [this.ns.is("active", selected), this.ns.e("transfer-item")];
|
|
209
214
|
if (this.c.acItemProvider) {
|
|
210
215
|
const component = resolveComponent(this.c.acItemProvider.component);
|
|
211
216
|
return h(component, {
|
|
212
217
|
item,
|
|
213
218
|
controller: this.c,
|
|
219
|
+
class: className,
|
|
214
220
|
onClick: () => {
|
|
215
221
|
this.onACSelect(item);
|
|
216
222
|
}
|
|
@@ -218,6 +224,7 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
218
224
|
}
|
|
219
225
|
return panel ? createVNode(resolveComponent("iBizControlShell"), {
|
|
220
226
|
"data": item,
|
|
227
|
+
"class": className,
|
|
221
228
|
"modelData": panel,
|
|
222
229
|
"context": context,
|
|
223
230
|
"params": params,
|
|
@@ -225,7 +232,7 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
225
232
|
this.onACSelect(item);
|
|
226
233
|
}
|
|
227
234
|
}, null) : createVNode("div", {
|
|
228
|
-
"class": [this.ns.
|
|
235
|
+
"class": [this.ns.is("ellipsis", isEllipsis), ...className],
|
|
229
236
|
"title": showTitle(isEllipsis ? item[this.c.textName] : ""),
|
|
230
237
|
"onClick": () => {
|
|
231
238
|
this.onACSelect(item);
|
|
@@ -42,8 +42,8 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
if (newVal === null) {
|
|
43
43
|
curValue.value = "";
|
|
44
44
|
}
|
|
45
|
-
refValue.value = curValue.value;
|
|
46
45
|
const value = props.data[c.valueItem];
|
|
46
|
+
refValue.value = value || curValue.value;
|
|
47
47
|
const index = items.value.findIndex((item) => Object.is(item[c.keyName], value));
|
|
48
48
|
if (index !== -1) {
|
|
49
49
|
return;
|
|
@@ -95,8 +95,7 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
onMounted(() => {
|
|
96
96
|
watch(() => props.data[c.valueItem], async (newVal, oldVal) => {
|
|
97
97
|
if (newVal !== oldVal) {
|
|
98
|
-
if (!isLoaded.value && editorRef.value && isNil(props.value)) {
|
|
99
|
-
shouldLoad.value = true;
|
|
98
|
+
if (!isLoaded.value && editorRef.value && isNil(props.value) && !isNil(newVal)) {
|
|
100
99
|
await onSearch("");
|
|
101
100
|
}
|
|
102
101
|
refValue.value = newVal;
|
|
@@ -248,6 +247,7 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
|
|
|
248
247
|
"label": item[this.c.textName]
|
|
249
248
|
}, {
|
|
250
249
|
default: () => {
|
|
250
|
+
var _a;
|
|
251
251
|
if (this.c.acItemProvider) {
|
|
252
252
|
const component = resolveComponent(this.c.acItemProvider.component);
|
|
253
253
|
return h(component, {
|
|
@@ -255,6 +255,15 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
|
|
|
255
255
|
controller: this.c
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
+
const panel = (_a = this.c.deACMode) == null ? void 0 : _a.itemLayoutPanel;
|
|
259
|
+
if (panel) {
|
|
260
|
+
return createVNode(resolveComponent("iBizControlShell"), {
|
|
261
|
+
"data": item,
|
|
262
|
+
"modelData": panel,
|
|
263
|
+
"context": this.c.context,
|
|
264
|
+
"params": this.c.params
|
|
265
|
+
}, null);
|
|
266
|
+
}
|
|
258
267
|
return createVNode("span", null, [item[this.c.textName] != null ? item[this.c.textName] : ""]);
|
|
259
268
|
}
|
|
260
269
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-picker-embed-view--disabled{cursor:not-allowed}.ibiz-picker-embed-view--disabled *{pointer-events:none;cursor:not-allowed}.ibiz-picker-embed-view--disabled .el-tree-node__expand-icon{pointer-events:all;cursor:pointer}.ibiz-picker-embed-view--show-value{height:calc(100% - var(--ibiz-form-item-line-height))}.ibiz-picker-embed-view .ibiz-picker-embed-view-view{height:100%}.ibiz-picker-embed-view .ibiz-picker-embed-view-value{height:var(--ibiz-form-item-line-height)
|
|
1
|
+
.ibiz-picker-embed-view{width:100%;height:100%}.ibiz-picker-embed-view--disabled{cursor:not-allowed}.ibiz-picker-embed-view--disabled *{pointer-events:none;cursor:not-allowed}.ibiz-picker-embed-view--disabled .el-tree-node__expand-icon{pointer-events:all;cursor:pointer}.ibiz-picker-embed-view--show-value .ibiz-picker-embed-view-view{height:calc(100% - var(--ibiz-form-item-line-height))!important}.ibiz-picker-embed-view .ibiz-picker-embed-view-view{height:100%}.ibiz-picker-embed-view .ibiz-picker-embed-view-value{height:var(--ibiz-form-item-line-height)}
|
|
@@ -15,6 +15,7 @@ const IBizPickerLink = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
const c = props.controller;
|
|
16
16
|
const curValue = ref("");
|
|
17
17
|
const items = ref([]);
|
|
18
|
+
const isLoaded = ref(false);
|
|
18
19
|
const {
|
|
19
20
|
useInFocusAndBlur,
|
|
20
21
|
useInValueChange
|
|
@@ -27,6 +28,7 @@ const IBizPickerLink = /* @__PURE__ */ defineComponent({
|
|
|
27
28
|
}
|
|
28
29
|
const res = await c.getServiceData(trimQuery, props.data);
|
|
29
30
|
if (res) {
|
|
31
|
+
isLoaded.value = true;
|
|
30
32
|
items.value = res.data;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
@@ -51,7 +53,7 @@ const IBizPickerLink = /* @__PURE__ */ defineComponent({
|
|
|
51
53
|
onMounted(() => {
|
|
52
54
|
watch(() => props.data[c.valueItem], async (newVal, oldVal) => {
|
|
53
55
|
if (newVal !== oldVal) {
|
|
54
|
-
if (isNil(props.value)) {
|
|
56
|
+
if (!isLoaded.value && isNil(props.value) && !isNil(newVal)) {
|
|
55
57
|
await onSearch("");
|
|
56
58
|
}
|
|
57
59
|
const curItem = items.value.find((item) => Object.is(item[c.keyName], newVal));
|
|
@@ -21,6 +21,12 @@ export declare class DropDownListEditorController extends CodeListEditorControll
|
|
|
21
21
|
* @Date: 2024-03-12 14:33:14
|
|
22
22
|
*/
|
|
23
23
|
forceSelection: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 默认选中第一个
|
|
26
|
+
*
|
|
27
|
+
* @memberof CustomTagSelectController
|
|
28
|
+
*/
|
|
29
|
+
defaultFirstOption: boolean;
|
|
24
30
|
/**
|
|
25
31
|
* 预置项空白项名称
|
|
26
32
|
*
|
|
@@ -24,6 +24,12 @@ class DropDownListEditorController extends CodeListEditorController {
|
|
|
24
24
|
* @Date: 2024-03-12 14:33:14
|
|
25
25
|
*/
|
|
26
26
|
__publicField(this, "forceSelection", true);
|
|
27
|
+
/**
|
|
28
|
+
* 默认选中第一个
|
|
29
|
+
*
|
|
30
|
+
* @memberof CustomTagSelectController
|
|
31
|
+
*/
|
|
32
|
+
__publicField(this, "defaultFirstOption", false);
|
|
27
33
|
/**
|
|
28
34
|
* 预置项空白项名称
|
|
29
35
|
*
|
|
@@ -32,7 +38,7 @@ class DropDownListEditorController extends CodeListEditorController {
|
|
|
32
38
|
__publicField(this, "blankItemName", "");
|
|
33
39
|
}
|
|
34
40
|
async onInit() {
|
|
35
|
-
var _a, _b;
|
|
41
|
+
var _a, _b, _c;
|
|
36
42
|
super.onInit();
|
|
37
43
|
if (this.model.editorType === "MDROPDOWNLIST") {
|
|
38
44
|
this.multiple = true;
|
|
@@ -40,7 +46,12 @@ class DropDownListEditorController extends CodeListEditorController {
|
|
|
40
46
|
if ((_a = this.editorParams) == null ? void 0 : _a.forceSelection) {
|
|
41
47
|
this.forceSelection = this.toBoolean(this.editorParams.forceSelection);
|
|
42
48
|
}
|
|
43
|
-
if ((_b = this.editorParams) == null ? void 0 : _b.
|
|
49
|
+
if ((_b = this.editorParams) == null ? void 0 : _b.defaultFirstOption) {
|
|
50
|
+
this.defaultFirstOption = this.toBoolean(
|
|
51
|
+
this.editorParams.defaultFirstOption
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
if ((_c = this.editorParams) == null ? void 0 : _c.blankItemName) {
|
|
44
55
|
this.blankItemName = this.editorParams.blankItemName;
|
|
45
56
|
}
|
|
46
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-dropdown{width:var(--ibiz-dropdown-width);--ibiz-dropdown-width:100%;--ibiz-dropdown-readonly-text-item-color:var(--ibiz-form-item-text-color)}.ibiz-dropdown__branch-node>.el-tree-node__content{--ibiz-color-disabled-text:var(--ibiz-color-text-0)}.ibiz-dropdown .el-select{width:100%}.ibiz-dropdown .el-input__wrapper{width:100%}.ibiz-dropdown .el-input__wrapper .el-input__prefix{max-width:calc(100% - 22px);overflow:hidden}.ibiz-dropdown-readonly-text-item{margin-right:var(--ibiz-spacing-tight);font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-dropdown-readonly-text-item-color)}.ibiz-dropdown-readonly-text-item .ibiz-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);margin-right:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-dropdown-content-item{color:var(--ibiz-dropdown-select-option-item-color)}.el-select-dropdown__item{width:100%;background-color:var(--ibiz-dropdown-select-option-item-bkcolor)}.ibiz-dropdown-select-option-content{display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%;color:var(--ibiz-dropdown-select-option-item-color)}.ibiz-dropdown-select-option-content__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-dropdown-select-option-content .ibiz-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);margin-right:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default:hover .ibiz-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default:hover .ibiz-dropdown-select{display:block}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-form-default-content.is-multiple{height:var(--ibiz-editor-default-line-height)}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-form-default-content.is-multiple .ibiz-dropdown-content-item{height:calc(var(--ibiz-editor-default-line-height) - var(--ibiz-spacing-tight));padding:0 var(--ibiz-spacing-tight);margin:2px 6px 2px 0;font-size:var(--ibiz-font-size-small);line-height:calc(var(--ibiz-editor-default-line-height) - var(--ibiz-spacing-tight));color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border:1px solid transparent;border-radius:var(--ibiz-border-radius-small)}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-select{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-select .el-input__prefix-inner>:last-child{margin-right:var(--ibiz-spacing-none)}.ibiz-form-item .ibiz-dropdown.is-show-default.is-editable .ibiz-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default.is-editable .ibiz-dropdown-select{display:block}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-form-default-content{display:flex;align-items:center;width:100%;height:var(--el-component-size)}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-form-default-content.is-multiple{height:var(--el-component-size)}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-form-default-content.is-multiple .ibiz-dropdown-content-item{height:auto;padding:var(--ibiz-spacing-none) var(--ibiz-spacing-base);margin:var(--ibiz-spacing-none);margin-right:var(--ibiz-spacing-extra-tight);font-size:inherit;line-height:var(--ibiz-spacing-loose);color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border:none;border-radius:var(--ibiz-spacing-base)}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-select .el-select__tags{display:none}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-content-item{flex:0 0 auto;padding-right:var(--ibiz-spacing-base);padding-left:var(--ibiz-spacing-base);margin-right:var(--ibiz-spacing-extra-tight);line-height:var(--ibiz-spacing-loose);color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border-radius:var(--ibiz-spacing-base)}.ibiz-dropdown--round .ibiz-dropdown-readonly-text-item{display:inline-flex;align-items:center;
|
|
1
|
+
.ibiz-dropdown{width:var(--ibiz-dropdown-width);--ibiz-dropdown-width:100%;--ibiz-dropdown-readonly-text-item-color:var(--ibiz-form-item-text-color)}.ibiz-dropdown__branch-node>.el-tree-node__content{--ibiz-color-disabled-text:var(--ibiz-color-text-0)}.ibiz-dropdown .el-select{width:100%}.ibiz-dropdown .el-input__wrapper{width:100%}.ibiz-dropdown .el-input__wrapper .el-input__prefix{max-width:calc(100% - 22px);overflow:hidden}.ibiz-dropdown-readonly-text-item{margin-right:var(--ibiz-spacing-tight);font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-dropdown-readonly-text-item-color)}.ibiz-dropdown-readonly-text-item .ibiz-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);margin-right:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-dropdown-content-item{color:var(--ibiz-dropdown-select-option-item-color)}.el-select-dropdown__item{width:100%;background-color:var(--ibiz-dropdown-select-option-item-bkcolor)}.ibiz-dropdown-select-option-content{display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%;color:var(--ibiz-dropdown-select-option-item-color)}.ibiz-dropdown-select-option-content__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-dropdown-select-option-content .ibiz-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);margin-right:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default:hover .ibiz-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default:hover .ibiz-dropdown-select{display:block}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-form-default-content.is-multiple{height:var(--ibiz-editor-default-line-height)}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-form-default-content.is-multiple .ibiz-dropdown-content-item{height:calc(var(--ibiz-editor-default-line-height) - var(--ibiz-spacing-tight));padding:0 var(--ibiz-spacing-tight);margin:2px 6px 2px 0;font-size:var(--ibiz-font-size-small);line-height:calc(var(--ibiz-editor-default-line-height) - var(--ibiz-spacing-tight));color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border:1px solid transparent;border-radius:var(--ibiz-border-radius-small)}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-select{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default .ibiz-dropdown-select .el-input__prefix-inner>:last-child{margin-right:var(--ibiz-spacing-none)}.ibiz-form-item .ibiz-dropdown.is-show-default.is-editable .ibiz-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-dropdown.is-show-default.is-editable .ibiz-dropdown-select{display:block}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-form-default-content{display:flex;align-items:center;width:100%;height:var(--el-component-size)}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-form-default-content.is-multiple{height:var(--el-component-size)}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-form-default-content.is-multiple .ibiz-dropdown-content-item{height:auto;padding:var(--ibiz-spacing-none) var(--ibiz-spacing-base);margin:var(--ibiz-spacing-none);margin-right:var(--ibiz-spacing-extra-tight);font-size:inherit;line-height:var(--ibiz-spacing-loose);color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border:none;border-radius:var(--ibiz-spacing-base)}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-select .el-select__tags{display:none}.ibiz-form-item .ibiz-dropdown--round.is-show-default .ibiz-dropdown-content-item{flex:0 0 auto;padding-right:var(--ibiz-spacing-base);padding-left:var(--ibiz-spacing-base);margin-right:var(--ibiz-spacing-extra-tight);line-height:var(--ibiz-spacing-loose);color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border-radius:var(--ibiz-spacing-base)}.ibiz-dropdown--round .ibiz-dropdown-readonly-text-item{display:inline-flex;align-items:center;margin-right:var(--ibiz-spacing-extra-tight);line-height:var(--ibiz-spacing-loose);color:var(--ibiz-dropdown-select-option-item-color)}.ibiz-dropdown--round .ibiz-dropdown-readonly-text-item:first-child{margin-left:calc(var(--ibiz-spacing-base-tight) - var(--ibiz-spacing-super-tight)/ 2)}.ibiz-dropdown--round .ibiz-dropdown-readonly-text-item .ibiz-dropdown-readonly-text-item__label{padding-right:var(--ibiz-spacing-base);padding-left:var(--ibiz-spacing-base);color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border-radius:var(--ibiz-spacing-base)}.ibiz-dropdown--round .ibiz-dropdown-select .el-select__tags{display:none}.ibiz-dropdown--round .ibiz-dropdown-select .el-input__prefix-inner>:last-child{gap:var(--ibiz-spacing-extra-tight);margin:0}.ibiz-dropdown--round .ibiz-dropdown-select .el-input__inner{flex:1 1 0;color:transparent}.ibiz-dropdown--round .ibiz-dropdown-select .el-input__inner[aria-expanded=true]::-moz-placeholder{color:transparent}.ibiz-dropdown--round .ibiz-dropdown-select .el-input__inner[aria-expanded=true]::placeholder{color:transparent}.ibiz-dropdown--round .ibiz-dropdown-select-option-text{display:inline-flex;align-items:center;padding:var(--ibiz-dropdown-select-option-item-padding);line-height:var(--ibiz-spacing-loose);color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border-radius:var(--ibiz-spacing-base)}.ibiz-dropdown-popper--round .el-select-dropdown__item{display:flex;align-items:center;height:calc(var(--ibiz-spacing-extra-loose) + var(--ibiz-spacing-extra-tight));line-height:calc(var(--ibiz-spacing-extra-loose) + var(--ibiz-spacing-extra-tight));background-color:transparent}.ibiz-dropdown-popper--round .ibiz-dropdown-select-option-content{flex:0 0 auto;width:auto;min-width:0;height:auto;padding-right:var(--ibiz-spacing-base);padding-left:var(--ibiz-spacing-base);line-height:var(--ibiz-spacing-loose);color:var(--ibiz-dropdown-select-option-item-color);background-color:var(--ibiz-dropdown-select-option-item-bkcolor);border-radius:var(--ibiz-spacing-base)}.ibiz-dropdown-popper.is-allow-create .el-tree__empty-block{display:none}.ibiz-dropdown-popper.is-allow-create .el-select-dropdown__item{padding-left:var(--ibiz-spacing-base-tight)}
|
|
@@ -47,7 +47,12 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
const list = [];
|
|
48
48
|
nodes.forEach((codeItem) => {
|
|
49
49
|
var _a;
|
|
50
|
-
codeListItems.value.
|
|
50
|
+
const index = codeListItems.value.findIndex((_item) => {
|
|
51
|
+
return _item.value === codeItem.value;
|
|
52
|
+
});
|
|
53
|
+
if (index === -1) {
|
|
54
|
+
codeListItems.value.push(codeItem);
|
|
55
|
+
}
|
|
51
56
|
const tempObj = {
|
|
52
57
|
label: codeItem.text,
|
|
53
58
|
value: (_a = codeItem.value) == null ? void 0 : _a.toString(),
|
|
@@ -299,7 +304,8 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
299
304
|
"class": [ns.b("select-option-text"), codeListItem == null ? void 0 : codeListItem.textCls],
|
|
300
305
|
"style": (codeListItem == null ? void 0 : codeListItem.color) || (codeListItem == null ? void 0 : codeListItem.bkcolor) ? ns.cssVarBlock({
|
|
301
306
|
"select-option-item-color": "".concat(codeListItem.color || ""),
|
|
302
|
-
"select-option-item-bkcolor": "".concat(codeListItem.bkcolor || "")
|
|
307
|
+
"select-option-item-bkcolor": "".concat(codeListItem.bkcolor || ""),
|
|
308
|
+
"select-option-item-padding": "0 var(".concat(ns.cssVarName("spacing-base"), ")")
|
|
303
309
|
}) : ""
|
|
304
310
|
}, [(codeListItem == null ? void 0 : codeListItem.sysImage) && createVNode(resolveComponent("iBizIcon"), {
|
|
305
311
|
"icon": codeListItem == null ? void 0 : codeListItem.sysImage
|
|
@@ -343,6 +349,8 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
343
349
|
"filterable": true,
|
|
344
350
|
"teleported": !this.showFormDefaultContent,
|
|
345
351
|
"data": this.treeNodes,
|
|
352
|
+
"allow-create": !this.c.forceSelection,
|
|
353
|
+
"default-first-option": this.c.defaultFirstOption,
|
|
346
354
|
"check-strictly": true,
|
|
347
355
|
"render-after-expand": true,
|
|
348
356
|
"multiple": this.c.multiple,
|
|
@@ -354,6 +362,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
354
362
|
"onFocus": this.onFocus,
|
|
355
363
|
"onKeyup": this.handleKeyUp,
|
|
356
364
|
"onVisibleChange": this.onVisibleChange,
|
|
365
|
+
"popper-class": "".concat(this.ns.b("popper"), " ").concat(this.ns.is("allow-create", !this.c.forceSelection)),
|
|
357
366
|
"props": {
|
|
358
367
|
class: this.customNodeClass
|
|
359
368
|
}
|