@ibiz-template/vue3-components 0.7.31-alpha.0 → 0.7.37-alpha.5
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-IZpj2cdX.js +1 -0
- package/dist/index-2J-iBLG-.js +1 -0
- package/dist/index-Yhyr5LJS.js +1 -0
- package/dist/index-p59-xI3J.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-OUxT4A8O.js → xlsx-util-rAKH_Qlc.js} +1 -1
- package/es/_virtual/_dayjs.mjs +1 -0
- package/es/_virtual/zh-cn.mjs +3 -0
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +2 -2
- package/es/common/coop-alert/coop-alert.d.ts +3 -3
- package/es/common/custom-filter-condition/custom-filter-condition.css +1 -0
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +998 -0
- package/es/common/custom-filter-condition/custom-filter-condition.mjs +286 -0
- package/es/common/custom-theme/custom-theme-model.mjs +62 -0
- package/es/common/custom-theme/custom-theme.controller.mjs +6 -5
- package/es/common/custom-theme/custom-theme.css +1 -1
- package/es/common/emoji-select/emoji-select.d.ts +1 -1
- package/es/common/index.mjs +2 -0
- package/es/common/pagination/pagination.css +1 -1
- package/es/common/pagination/pagination.mjs +1 -1
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -1
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.mjs +4 -1
- package/es/common/pql-editor/pql-editor.d.ts +6 -0
- package/es/common/pql-editor/pql-editor.mjs +229 -130
- package/es/common/pql-editor/utils/index.d.ts +8 -4
- package/es/common/pql-editor/utils/index.mjs +193 -69
- package/es/common/rawitem/rawitem.mjs +16 -0
- package/es/common/split/split.d.ts +1 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +3 -2
- package/es/control/caption-bar/caption-bar.css +1 -1
- package/es/control/caption-bar/caption-bar.d.ts +1 -0
- package/es/control/caption-bar/caption-bar.mjs +12 -3
- package/es/control/caption-bar/index.d.ts +1 -0
- package/es/control/chart/chart.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +21 -3
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +35 -10
- package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -2
- package/es/control/dashboard/dashboard.d.ts +2 -2
- package/es/control/dashboard/dashboard.mjs +41 -7
- package/es/control/dashboard/index.d.ts +1 -1
- package/es/control/dashboard/index.mjs +4 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.d.ts +64 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +341 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.d.ts +0 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.mjs +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.d.ts +41 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.mjs +130 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.d.ts +30 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.mjs +87 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.provider.mjs +21 -0
- package/es/control/dashboard/portlet/filter-portlet/index.d.ts +28 -0
- package/es/control/dashboard/portlet/filter-portlet/index.mjs +14 -0
- package/es/control/dashboard/portlet/index.d.ts +1 -0
- package/es/control/dashboard/portlet/index.mjs +2 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +6 -2
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +8 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +6 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +4 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +6 -12
- package/es/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +8 -1
- package/es/control/grid/grid/grid-control.util.mjs +1 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +5 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +2 -2
- package/es/control/index.mjs +2 -0
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +16 -1
- package/es/control/search-bar/filter-tree/filter-tree.mjs +12 -4
- package/es/control/search-bar/quick-search-select/quick-search-select.css +1 -1
- package/es/control/search-bar/quick-search-select/quick-search-select.mjs +1 -0
- package/es/control/search-bar/search-bar.css +1 -1
- package/es/control/search-bar/search-bar.mjs +2 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +8 -5
- package/es/control/toolbar/export-excel/export-excel.css +1 -1
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +2 -2
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +1 -1
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +35 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +26 -55
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.d.ts +51 -0
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.mjs +335 -0
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.d.ts +65 -0
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.mjs +260 -0
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.d.ts +52 -0
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.mjs +258 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +64 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +339 -0
- package/es/editor/date-range-select/date-range-select.controller.d.ts +328 -0
- package/es/editor/date-range-select/date-range-select.controller.mjs +859 -0
- package/es/editor/date-range-select/date-range-select.provider.d.ts +8 -0
- package/es/editor/date-range-select/date-range-select.provider.mjs +25 -0
- package/es/editor/date-range-select/index.d.ts +3 -0
- package/es/editor/date-range-select/index.mjs +5 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +3 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +48 -22
- package/es/editor/index.mjs +8 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +32 -32
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +17 -2
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +6 -7
- package/es/editor/span/span/span.css +1 -1
- package/es/editor/span/span/span.mjs +2 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +4 -2
- package/es/editor/upload/use/use-iview-upload.d.ts +1 -0
- package/es/editor/upload/use/use-iview-upload.mjs +37 -0
- package/es/index.mjs +2 -0
- package/es/interface/i-field.d.ts +66 -0
- package/es/interface/i-field.mjs +1 -0
- package/es/interface/i-filter-condition.d.ts +52 -0
- package/es/interface/i-filter-condition.mjs +1 -0
- package/es/interface/i-pql-item.d.ts +1 -0
- package/es/interface/i-pql-node-item.d.ts +35 -0
- package/es/interface/i-pql-node-item.mjs +1 -0
- package/es/interface/index.d.ts +3 -0
- package/es/interface/index.mjs +3 -0
- package/es/locale/en/index.d.ts +78 -1
- package/es/locale/en/index.mjs +74 -3
- package/es/locale/zh-CN/index.d.ts +78 -1
- package/es/locale/zh-CN/index.mjs +74 -3
- package/es/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +15 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +17 -4
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +48 -4
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +12 -0
- package/es/panel-component/coop-pos/coop-pos.mjs +20 -4
- package/es/panel-component/coop-pos/coop-pos.state.d.ts +14 -0
- package/es/panel-component/coop-pos/coop-pos.state.mjs +14 -0
- package/es/panel-component/coop-pos/index.d.ts +1 -0
- package/es/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/es/panel-component/panel-app-login-view/panel-app-login-view.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.controller.d.ts +18 -3
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +28 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +46 -3
- package/es/panel-component/panel-button/index.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.d.ts +1 -1
- package/es/panel-component/panel-exp-header/panel-exp-header.css +1 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/short-cut/short-cut.css +1 -1
- package/es/util/app-modal/app-modal-component.css +1 -1
- package/es/util/fullscreen/fullscreen-util.d.ts +7 -0
- package/es/util/fullscreen/fullscreen-util.mjs +9 -0
- package/es/util/open-view-util/open-view-util.d.ts +11 -0
- package/es/util/open-view-util/open-view-util.mjs +21 -0
- package/es/util/wang-editor-util/wang-editor-util.d.ts +1 -0
- package/es/util/wang-editor-util/wang-editor-util.mjs +12 -7
- package/es/view/login-view/login-view.css +1 -1
- package/es/view/share-view/share-view.css +1 -1
- package/es/view-engine/edit-view.engine.d.ts +17 -0
- package/es/view-engine/edit-view.engine.mjs +73 -36
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +1 -1
- package/es/web-app/create-vue-app.mjs +8 -0
- package/lib/_virtual/_dayjs.cjs +9 -0
- package/lib/_virtual/zh-cn.cjs +5 -0
- package/lib/common/action-toolbar/action-toolbar.cjs +2 -2
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/custom-filter-condition/custom-filter-condition.cjs +288 -0
- package/lib/common/custom-filter-condition/custom-filter-condition.css +1 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +62 -0
- package/lib/common/custom-theme/custom-theme.controller.cjs +6 -5
- package/lib/common/custom-theme/custom-theme.css +1 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/pagination/pagination.cjs +1 -1
- package/lib/common/pagination/pagination.css +1 -1
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.cjs +4 -1
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -1
- package/lib/common/pql-editor/pql-editor.cjs +228 -129
- package/lib/common/pql-editor/utils/index.cjs +195 -68
- package/lib/common/rawitem/rawitem.cjs +16 -0
- package/lib/control/app-menu/app-menu.cjs +3 -2
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/caption-bar/caption-bar.cjs +11 -2
- package/lib/control/caption-bar/caption-bar.css +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +34 -9
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -2
- package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard.cjs +40 -6
- package/lib/control/dashboard/index.cjs +5 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +343 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.cjs +3 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.cjs +132 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.cjs +89 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.provider.cjs +23 -0
- package/lib/control/dashboard/portlet/filter-portlet/index.cjs +20 -0
- package/lib/control/dashboard/portlet/index.cjs +4 -0
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +6 -2
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +8 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +3 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +5 -11
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +8 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +5 -1
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +2 -2
- package/lib/control/index.cjs +22 -18
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +12 -4
- package/lib/control/search-bar/quick-search-select/quick-search-select.cjs +1 -0
- package/lib/control/search-bar/quick-search-select/quick-search-select.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +2 -0
- package/lib/control/search-bar/search-bar.css +1 -1
- package/lib/control/search-bar/search-groups/search-groups.cjs +8 -5
- package/lib/control/toolbar/export-excel/export-excel.css +1 -1
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +2 -2
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +26 -55
- package/lib/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.cjs +339 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.cjs +264 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.cjs +262 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +341 -0
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select.controller.cjs +861 -0
- package/lib/editor/date-range-select/date-range-select.provider.cjs +27 -0
- package/lib/editor/date-range-select/index.cjs +11 -0
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +47 -21
- package/lib/editor/index.cjs +8 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +32 -32
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +17 -2
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +6 -7
- package/lib/editor/span/span/span.cjs +2 -0
- package/lib/editor/span/span/span.css +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +4 -2
- package/lib/editor/upload/use/use-iview-upload.cjs +37 -0
- package/lib/index.cjs +52 -48
- package/lib/interface/i-field.cjs +3 -0
- package/lib/interface/i-filter-condition.cjs +3 -0
- package/lib/interface/i-pql-node-item.cjs +3 -0
- package/lib/interface/index.cjs +3 -0
- package/lib/locale/en/index.cjs +74 -3
- package/lib/locale/zh-CN/index.cjs +74 -3
- package/lib/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.cjs +19 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.cjs +19 -3
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +48 -4
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.state.cjs +14 -0
- package/lib/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/lib/panel-component/panel-app-login-view/panel-app-login-view.css +1 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +46 -3
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +28 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-exp-header/panel-exp-header.css +1 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/short-cut/short-cut.css +1 -1
- package/lib/util/app-modal/app-modal-component.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +9 -0
- package/lib/util/open-view-util/open-view-util.cjs +21 -0
- package/lib/util/wang-editor-util/wang-editor-util.cjs +12 -7
- package/lib/view/login-view/login-view.css +1 -1
- package/lib/view/share-view/share-view.css +1 -1
- package/lib/view-engine/edit-view.engine.cjs +72 -35
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +1 -1
- package/lib/web-app/create-vue-app.cjs +8 -0
- package/package.json +9 -8
- package/dist/chart-0UV2FAN6.js +0 -1
- package/dist/index-YQyitjSg.js +0 -1
- package/dist/index-maJGu4b8.js +0 -4
- package/dist/index-trS6uS3E.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.35-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_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.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.35-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-dashboard-design{width:100%;height:100%}.ibiz-dashboard-design .ibiz-dashboard-design-header{height:48px;padding:var(--ibiz-spacing-tight);display:flex;align-items:center;justify-content:space-between}.ibiz-dashboard-design .ibiz-dashboard-design-header .ibiz-dashboard-design-header-utils{display:flex;align-items:center;justify-content:flex-start}.ibiz-dashboard-design-header-utils__col-num{margin-right:var(--ibiz-spacing-tight)}.ibiz-dashboard-design-header-utils__row-h{margin-right:var(--ibiz-spacing-tight)}.ibiz-dashboard-design .ibiz-dashboard-design-content{width:100%;height:calc(100% - 48px);display:flex;align-items:flex-start;justify-content:flex-start}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree{min-width:300px;height:100%;overflow-y:scroll}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-filter{width:100%;height:32px;padding:var(--ibiz-spacing-none) var(--ibiz-spacing-tight)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content{height:calc(100% - 32px);overflow:auto}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu{height:100%;border:none}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item{display:flex;flex-flow:flex nowrap;align-items:center;justify-content:space-between}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item>span{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item ion-icon{font-size:calc(var(--ibiz-width-icon-medium) - 2px);cursor:pointer}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item ion-icon:hover{color:var(--ibiz-color-primary)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-scroll-box{flex-grow:1;height:100%;overflow-y:scroll;background:var(--ibiz-color-fill-1)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel{position:relative}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout-mask{position:absolute;inset:0;height:100%;min-height:1248px;background:linear-gradient(to bottom,var(--ibiz-color-primary) 10px,transparent 10px),linear-gradient(to right,var(--ibiz-color-primary) 10px,transparent 10px)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item{width:100%;height:100%}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item .el-card__body{display:flex;flex-flow:column nowrap;height:100%;background-color:var(--ibiz-color-
|
|
1
|
+
.ibiz-dashboard-design{width:100%;height:100%}.ibiz-dashboard-design .ibiz-dashboard-design-header{height:48px;padding:var(--ibiz-spacing-tight);display:flex;align-items:center;justify-content:space-between}.ibiz-dashboard-design .ibiz-dashboard-design-header .ibiz-dashboard-design-header-utils{display:flex;align-items:center;justify-content:flex-start}.ibiz-dashboard-design-header-utils__col-num{margin-right:var(--ibiz-spacing-tight)}.ibiz-dashboard-design-header-utils__row-h{margin-right:var(--ibiz-spacing-tight)}.ibiz-dashboard-design .ibiz-dashboard-design-content{width:100%;height:calc(100% - 48px);display:flex;align-items:flex-start;justify-content:flex-start}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree{min-width:300px;height:100%;overflow-y:scroll}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-filter{width:100%;height:32px;padding:var(--ibiz-spacing-none) var(--ibiz-spacing-tight)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content{height:calc(100% - 32px);overflow:auto}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu{height:100%;border:none}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item{display:flex;flex-flow:flex nowrap;align-items:center;justify-content:space-between}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item>span{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item ion-icon{font-size:calc(var(--ibiz-width-icon-medium) - 2px);cursor:pointer}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-tree .ibiz-dashboard-design-tree-content>.el-menu .el-menu-item ion-icon:hover{color:var(--ibiz-color-primary)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-scroll-box{flex-grow:1;height:100%;overflow-y:scroll;background:var(--ibiz-color-fill-1)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel{position:relative}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout-mask{position:absolute;inset:0;height:100%;min-height:1248px;background:linear-gradient(to bottom,var(--ibiz-color-primary) 10px,transparent 10px),linear-gradient(to right,var(--ibiz-color-primary) 10px,transparent 10px)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item{width:100%;height:100%}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item .el-card__body{display:flex;flex-flow:column nowrap;height:100%;background-color:var(--ibiz-color-bg-1)}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item .ibiz-dashboard-design-grid-layout-item-header{display:flex;align-items:center;justify-content:space-between}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item .ibiz-dashboard-design-grid-layout-item-header>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item .ibiz-dashboard-design-grid-layout-item-header ion-icon{cursor:pointer}.ibiz-dashboard-design .ibiz-dashboard-design-content .ibiz-dashboard-design-panel .ibiz-dashboard-design-grid-layout .ibiz-dashboard-design-grid-layout-item .ibiz-dashboard-design-grid-layout-item-content{display:flex;align-items:center;justify-content:center;width:100%;height:100%;pointer-events:none}
|
|
@@ -4,12 +4,15 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
require('./dashboard.css');
|
|
6
6
|
var runtime = require('@ibiz-template/runtime');
|
|
7
|
+
var lodashEs = require('lodash-es');
|
|
7
8
|
|
|
8
9
|
"use strict";
|
|
9
10
|
function _isSlot(s) {
|
|
10
11
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
11
12
|
}
|
|
13
|
+
const refreshTagObj = {};
|
|
12
14
|
function renderPortletByType(model, c, opts) {
|
|
15
|
+
var _a;
|
|
13
16
|
const provider = c.providers[model.id];
|
|
14
17
|
const controller = c.portlets[model.id];
|
|
15
18
|
const commonProps = {
|
|
@@ -27,14 +30,14 @@ function renderPortletByType(model, c, opts) {
|
|
|
27
30
|
key: model.id
|
|
28
31
|
}, {
|
|
29
32
|
default: () => {
|
|
30
|
-
var
|
|
31
|
-
return (
|
|
33
|
+
var _a2;
|
|
34
|
+
return (_a2 = container.controls) == null ? void 0 : _a2.map((child) => renderPortletByType(child, c, opts));
|
|
32
35
|
}
|
|
33
36
|
});
|
|
34
37
|
}
|
|
35
38
|
return vue.h(providerComp, {
|
|
36
39
|
...commonProps,
|
|
37
|
-
key: model.id
|
|
40
|
+
key: ((_a = refreshTagObj[model.id]) == null ? void 0 : _a.refreshtag) ? refreshTagObj[model.id].refreshtag : model.id
|
|
38
41
|
});
|
|
39
42
|
}
|
|
40
43
|
const DashboardControl = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -61,13 +64,44 @@ const DashboardControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
61
64
|
const vue$1 = vue.getCurrentInstance().proxy;
|
|
62
65
|
const customModelDatas = vue.ref([]);
|
|
63
66
|
const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
64
|
-
c.evt.on("
|
|
67
|
+
c.evt.on("onInitPortlets", () => {
|
|
65
68
|
Object.values(c.portlets).forEach((portlet) => {
|
|
66
|
-
|
|
69
|
+
if (!vue.isReactive(portlet.state)) {
|
|
70
|
+
portlet.state = vue.reactive(portlet.state);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
c.evt.on("onItemModelReset", async (args) => {
|
|
75
|
+
const {
|
|
76
|
+
name
|
|
77
|
+
} = args;
|
|
78
|
+
const targetIndex = customModelDatas.value.findIndex((item) => {
|
|
79
|
+
return item.id === name;
|
|
67
80
|
});
|
|
81
|
+
if (targetIndex !== -1) {
|
|
82
|
+
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
83
|
+
const model = await c.loadDynaPortletById("".concat(app.model.codeName, ".").concat(name));
|
|
84
|
+
if (model) {
|
|
85
|
+
refreshTagObj[model.id] = {
|
|
86
|
+
refreshtag: lodashEs.uniqueId()
|
|
87
|
+
};
|
|
88
|
+
customModelDatas.value.splice(targetIndex, 1, model);
|
|
89
|
+
vue$1.$forceUpdate();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
68
92
|
});
|
|
69
93
|
const handleCustomModelChange = (args) => {
|
|
70
|
-
|
|
94
|
+
const model = args.model;
|
|
95
|
+
if (args.filter && model && model.length > 0) {
|
|
96
|
+
model.forEach((element) => {
|
|
97
|
+
if (element.portletType === "FILTER") {
|
|
98
|
+
refreshTagObj[element.id] = {
|
|
99
|
+
refreshtag: lodashEs.uniqueId()
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
customModelDatas.value = model;
|
|
71
105
|
vue$1.$forceUpdate();
|
|
72
106
|
};
|
|
73
107
|
return {
|
|
@@ -19,6 +19,7 @@ var index$5 = require('./portlet/list-portlet/index.cjs');
|
|
|
19
19
|
var index$6 = require('./portlet/html-portlet/index.cjs');
|
|
20
20
|
var index$7 = require('./portlet/actionbar-portlet/index.cjs');
|
|
21
21
|
var index$8 = require('./portlet/report-portlet/index.cjs');
|
|
22
|
+
var index$9 = require('./portlet/filter-portlet/index.cjs');
|
|
22
23
|
var containerPortlet = require('./portlet/container-portlet/container-portlet.cjs');
|
|
23
24
|
var viewPortlet = require('./portlet/view-portlet/view-portlet.cjs');
|
|
24
25
|
var menuPortlet = require('./portlet/menu-portlet/menu-portlet.cjs');
|
|
@@ -28,6 +29,7 @@ var listPortlet = require('./portlet/list-portlet/list-portlet.cjs');
|
|
|
28
29
|
var htmlPortlet = require('./portlet/html-portlet/html-portlet.cjs');
|
|
29
30
|
var actionbarPortlet = require('./portlet/actionbar-portlet/actionbar-portlet.cjs');
|
|
30
31
|
var reportPortlet = require('./portlet/report-portlet/report-portlet.cjs');
|
|
32
|
+
var filterPortlet = require('./portlet/filter-portlet/filter-portlet.cjs');
|
|
31
33
|
|
|
32
34
|
"use strict";
|
|
33
35
|
const IBizDashboardControl = vue3Util.withInstall(
|
|
@@ -50,6 +52,7 @@ const IBizDashboardControl = vue3Util.withInstall(
|
|
|
50
52
|
v.use(index$6.IBizHtmlPortlet);
|
|
51
53
|
v.use(index$7.IBizActionBarPortlet);
|
|
52
54
|
v.use(index$8.IBizReportPortlet);
|
|
55
|
+
v.use(index$9.IBizFilterPortlet);
|
|
53
56
|
}
|
|
54
57
|
);
|
|
55
58
|
|
|
@@ -63,6 +66,7 @@ exports.IBizListPortlet = index$5.IBizListPortlet;
|
|
|
63
66
|
exports.IBizHtmlPortlet = index$6.IBizHtmlPortlet;
|
|
64
67
|
exports.IBizActionBarPortlet = index$7.IBizActionBarPortlet;
|
|
65
68
|
exports.IBizReportPortlet = index$8.IBizReportPortlet;
|
|
69
|
+
exports.IBizFilterPortlet = index$9.IBizFilterPortlet;
|
|
66
70
|
exports.ContainerPortlet = containerPortlet.ContainerPortlet;
|
|
67
71
|
exports.ViewPortlet = viewPortlet.ViewPortlet;
|
|
68
72
|
exports.MenuPortlet = menuPortlet.MenuPortlet;
|
|
@@ -72,5 +76,6 @@ exports.ListPortlet = listPortlet.ListPortlet;
|
|
|
72
76
|
exports.HtmlPortlet = htmlPortlet.HtmlPortlet;
|
|
73
77
|
exports.ActionBarPortlet = actionbarPortlet.ActionBarPortlet;
|
|
74
78
|
exports.ReportPortlet = reportPortlet.ReportPortlet;
|
|
79
|
+
exports.FilterPortlet = filterPortlet.FilterPortlet;
|
|
75
80
|
exports.IBizDashboardControl = IBizDashboardControl;
|
|
76
81
|
exports.default = IBizDashboardControl;
|
package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
6
|
+
require('./filter-portlet-design.css');
|
|
7
|
+
var runtime = require('@ibiz-template/runtime');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
12
|
+
}
|
|
13
|
+
const IBizFilterPortletDesign = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
name: "IBizFilterPortletDesign",
|
|
15
|
+
props: {
|
|
16
|
+
context: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
viewParams: {
|
|
21
|
+
type: Object,
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
filter: {
|
|
25
|
+
type: Object
|
|
26
|
+
},
|
|
27
|
+
items: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
dashboardStyle: {
|
|
32
|
+
type: String
|
|
33
|
+
},
|
|
34
|
+
dismiss: {
|
|
35
|
+
type: Function,
|
|
36
|
+
required: true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: ["lisTSelect", "formChange"],
|
|
40
|
+
setup(props) {
|
|
41
|
+
const ns = vue3Util.useNamespace("filter-portlet-design");
|
|
42
|
+
const loaded = vue.ref(false);
|
|
43
|
+
const loadding = vue.ref(false);
|
|
44
|
+
const formRef = vue.ref();
|
|
45
|
+
const rules = vue.reactive({
|
|
46
|
+
title: [{
|
|
47
|
+
required: true,
|
|
48
|
+
message: ibiz.i18n.t("control.dashboard.filterPortletDesign.ctrlTitleError"),
|
|
49
|
+
trigger: "blur"
|
|
50
|
+
}]
|
|
51
|
+
});
|
|
52
|
+
const formData = vue.reactive({
|
|
53
|
+
title: "",
|
|
54
|
+
selectAll: true,
|
|
55
|
+
items: []
|
|
56
|
+
});
|
|
57
|
+
const condition = vue.ref({});
|
|
58
|
+
const titleMaxLength = 32;
|
|
59
|
+
const model = vue.ref();
|
|
60
|
+
let appPortlets = [];
|
|
61
|
+
let allFilters = [];
|
|
62
|
+
const portletParams = vue.ref({});
|
|
63
|
+
const schemaFields = vue.ref([]);
|
|
64
|
+
const jsonSchemaMap = /* @__PURE__ */ new Map();
|
|
65
|
+
const conditionMap = /* @__PURE__ */ new Map();
|
|
66
|
+
const checkBoxList = vue.ref([]);
|
|
67
|
+
const getFilters = () => {
|
|
68
|
+
let result = [];
|
|
69
|
+
const app = ibiz.hub.getApp(props.context.srfappid);
|
|
70
|
+
appPortlets = app.model.appPortlets || [];
|
|
71
|
+
if (appPortlets.length > 0) {
|
|
72
|
+
result = appPortlets.filter((x) => {
|
|
73
|
+
if (x.control) {
|
|
74
|
+
return x.control.controlType === "PORTLET" && x.control.portletType === "FILTER";
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return result;
|
|
79
|
+
};
|
|
80
|
+
const getJsonSchema = async (appDataEntityId) => {
|
|
81
|
+
if (!appDataEntityId) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (!jsonSchemaMap.has(appDataEntityId)) {
|
|
85
|
+
loadding.value = true;
|
|
86
|
+
schemaFields.value = await ibiz.util.jsonSchema.getEntitySchemaFields(appDataEntityId, props.context, props.viewParams);
|
|
87
|
+
loadding.value = false;
|
|
88
|
+
jsonSchemaMap.set(appDataEntityId, schemaFields.value);
|
|
89
|
+
}
|
|
90
|
+
schemaFields.value = jsonSchemaMap.get(appDataEntityId);
|
|
91
|
+
};
|
|
92
|
+
const setCheckBox = () => {
|
|
93
|
+
checkBoxList.value = runtime.filterPortletByID(model.value.id, props.context, props.items, props.dashboardStyle === "BIREPORTDASHBOARD" || props.dashboardStyle === "BIREPORTDASHBOARD2");
|
|
94
|
+
};
|
|
95
|
+
const init = async () => {
|
|
96
|
+
allFilters = getFilters();
|
|
97
|
+
if (props.items) {
|
|
98
|
+
formData.items = props.items.map((x) => x.id);
|
|
99
|
+
}
|
|
100
|
+
if (props.filter) {
|
|
101
|
+
const item = allFilters.find((x) => x.id === props.filter.model.id);
|
|
102
|
+
if (item) {
|
|
103
|
+
model.value = core.clone(item.control);
|
|
104
|
+
formData.title = props.filter.config.srftitle;
|
|
105
|
+
portletParams.value = item.portletParams || {};
|
|
106
|
+
const selectAll = props.filter.filterConfig.scope === "all";
|
|
107
|
+
if (!selectAll) {
|
|
108
|
+
formData.selectAll = false;
|
|
109
|
+
formData.items = props.filter.filterConfig.scopedata.split(",");
|
|
110
|
+
}
|
|
111
|
+
condition.value = props.filter.searchConds;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (!model.value && allFilters.length > 0) {
|
|
115
|
+
model.value = core.clone(allFilters[0].control);
|
|
116
|
+
formData.title = model.value.title || "";
|
|
117
|
+
portletParams.value = allFilters[0].portletParams || {};
|
|
118
|
+
}
|
|
119
|
+
if (model.value) {
|
|
120
|
+
await getJsonSchema(model.value.appDataEntityId);
|
|
121
|
+
setCheckBox();
|
|
122
|
+
}
|
|
123
|
+
loaded.value = true;
|
|
124
|
+
};
|
|
125
|
+
init();
|
|
126
|
+
const calcConfig = () => {
|
|
127
|
+
const result = {};
|
|
128
|
+
if (formData.selectAll) {
|
|
129
|
+
result.scope = "all";
|
|
130
|
+
} else {
|
|
131
|
+
result.scope = "custom";
|
|
132
|
+
const selectKeys = [];
|
|
133
|
+
checkBoxList.value.forEach((item) => {
|
|
134
|
+
if (formData.items.includes(item.id)) {
|
|
135
|
+
selectKeys.push(item.id);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
result.scopedata = selectKeys.join(",");
|
|
139
|
+
}
|
|
140
|
+
if (Object.keys(portletParams.value).length > 0) {
|
|
141
|
+
result.scopetag = portletParams.value.filtergroup;
|
|
142
|
+
}
|
|
143
|
+
return result;
|
|
144
|
+
};
|
|
145
|
+
const handleListItemClick = (item, data, disabled) => {
|
|
146
|
+
if (disabled) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
model.value = core.clone(item);
|
|
150
|
+
formData.title = item.title || "";
|
|
151
|
+
portletParams.value = data;
|
|
152
|
+
getJsonSchema(item.appDataEntityId);
|
|
153
|
+
if (conditionMap.has(item.appDataEntityId)) {
|
|
154
|
+
condition.value = conditionMap.get(item.appDataEntityId);
|
|
155
|
+
} else {
|
|
156
|
+
condition.value = {};
|
|
157
|
+
}
|
|
158
|
+
setCheckBox();
|
|
159
|
+
};
|
|
160
|
+
const handleConditionChange = (group) => {
|
|
161
|
+
condition.value = group;
|
|
162
|
+
conditionMap.set(model.value.appDataEntityId, group);
|
|
163
|
+
};
|
|
164
|
+
const onSwitchChange = (value) => {
|
|
165
|
+
if (value && props.items) {
|
|
166
|
+
formData.items = props.items.map((x) => x.id);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const handleCancel = () => {
|
|
170
|
+
props.dismiss({
|
|
171
|
+
ok: false
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
const handleConfirm = () => {
|
|
175
|
+
if (!formRef.value) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
formRef.value.validate((valid) => {
|
|
179
|
+
if (valid) {
|
|
180
|
+
const config = calcConfig();
|
|
181
|
+
const data = {
|
|
182
|
+
config,
|
|
183
|
+
model: Object.assign(model.value, {
|
|
184
|
+
title: formData.title
|
|
185
|
+
}),
|
|
186
|
+
searchconds: condition.value
|
|
187
|
+
};
|
|
188
|
+
props.dismiss({
|
|
189
|
+
ok: true,
|
|
190
|
+
data: [data]
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
const renderNoData = () => {
|
|
196
|
+
return vue.createVNode(vue.resolveComponent("iBizNoData"), {
|
|
197
|
+
"text": ibiz.i18n.t("control.common.currentNoData")
|
|
198
|
+
}, null);
|
|
199
|
+
};
|
|
200
|
+
const renderLeftList = () => {
|
|
201
|
+
if (!allFilters.length) {
|
|
202
|
+
return renderNoData();
|
|
203
|
+
}
|
|
204
|
+
return vue.createVNode("ul", {
|
|
205
|
+
"class": [ns.b("left-list")]
|
|
206
|
+
}, [allFilters.map((portlet) => {
|
|
207
|
+
var _a;
|
|
208
|
+
const item = portlet.control;
|
|
209
|
+
const data = portlet.portletParams || {};
|
|
210
|
+
let disabled = false;
|
|
211
|
+
if (props.filter && props.filter.id !== item.id) {
|
|
212
|
+
disabled = true;
|
|
213
|
+
}
|
|
214
|
+
return vue.createVNode("li", {
|
|
215
|
+
"class": [ns.be("left-list", "item"), ns.is("disabled", disabled), ns.is("actvie", item.id === ((_a = model.value) == null ? void 0 : _a.id))],
|
|
216
|
+
"title": item.title,
|
|
217
|
+
"onClick": () => handleListItemClick(item, data, disabled)
|
|
218
|
+
}, [item.title]);
|
|
219
|
+
})]);
|
|
220
|
+
};
|
|
221
|
+
const renderCheckBoxGroup = () => {
|
|
222
|
+
let _slot;
|
|
223
|
+
if (!checkBoxList.value) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
const onlyAdd = checkBoxList.value.length > 0 && formData.items.length === 1;
|
|
227
|
+
return vue.createVNode(vue.resolveComponent("el-checkbox-group"), {
|
|
228
|
+
"class": [ns.b("checkbox"), ns.is("only-add", onlyAdd)],
|
|
229
|
+
"modelValue": formData.items,
|
|
230
|
+
"onUpdate:modelValue": ($event) => formData.items = $event,
|
|
231
|
+
"disabled": formData.selectAll
|
|
232
|
+
}, _isSlot(_slot = checkBoxList.value.map((item) => {
|
|
233
|
+
return vue.createVNode(vue.resolveComponent("el-checkbox"), {
|
|
234
|
+
"label": item.id
|
|
235
|
+
}, {
|
|
236
|
+
default: () => [item.title]
|
|
237
|
+
});
|
|
238
|
+
})) ? _slot : {
|
|
239
|
+
default: () => [_slot]
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
const renderForm = () => {
|
|
243
|
+
if (!model.value) {
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
return vue.createVNode(vue.resolveComponent("el-form"), {
|
|
247
|
+
"ref": "formRef",
|
|
248
|
+
"model": formData,
|
|
249
|
+
"rules": rules,
|
|
250
|
+
"label-width": "auto",
|
|
251
|
+
"class": ns.b("right-form")
|
|
252
|
+
}, {
|
|
253
|
+
default: () => [vue.createVNode(vue.resolveComponent("el-form-item"), {
|
|
254
|
+
"required": true,
|
|
255
|
+
"label": ibiz.i18n.t("control.dashboard.filterPortletDesign.ctrlTitle"),
|
|
256
|
+
"prop": "title"
|
|
257
|
+
}, {
|
|
258
|
+
default: () => [vue.createVNode(vue.resolveComponent("el-input"), {
|
|
259
|
+
"modelValue": formData.title,
|
|
260
|
+
"onUpdate:modelValue": ($event) => formData.title = $event,
|
|
261
|
+
"maxlength": titleMaxLength,
|
|
262
|
+
"placeholder": ibiz.i18n.t("control.dashboard.filterPortletDesign.ctrlPlaceholder")
|
|
263
|
+
}, {
|
|
264
|
+
suffix: () => vue.createVNode("div", null, [formData.title.length, vue.createTextVNode(" / "), titleMaxLength])
|
|
265
|
+
})]
|
|
266
|
+
}), vue.createVNode(vue.resolveComponent("el-form-item"), {
|
|
267
|
+
"class": ns.be("right-form", "checks"),
|
|
268
|
+
"label": ibiz.i18n.t("control.dashboard.filterPortletDesign.checkTitle"),
|
|
269
|
+
"required": true,
|
|
270
|
+
"props": "items"
|
|
271
|
+
}, {
|
|
272
|
+
default: () => [vue.createVNode(vue.resolveComponent("el-switch"), {
|
|
273
|
+
"modelValue": formData.selectAll,
|
|
274
|
+
"onUpdate:modelValue": ($event) => formData.selectAll = $event,
|
|
275
|
+
"onChange": onSwitchChange
|
|
276
|
+
}, null), renderCheckBoxGroup()]
|
|
277
|
+
})]
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
const renderRightContent = () => {
|
|
281
|
+
return vue.createVNode("div", {
|
|
282
|
+
"class": [ns.b("right-content")]
|
|
283
|
+
}, [vue.createVNode("div", {
|
|
284
|
+
"class": [ns.be("right-content", "title")]
|
|
285
|
+
}, [ibiz.i18n.t("control.dashboard.filterPortletDesign.baseSet")]), renderForm()]);
|
|
286
|
+
};
|
|
287
|
+
const renderLeftContent = () => {
|
|
288
|
+
const title = props.filter ? ibiz.i18n.t("app.edit") : ibiz.i18n.t("app.newlyBuild");
|
|
289
|
+
return vue.createVNode("div", {
|
|
290
|
+
"class": [ns.b("left-content")]
|
|
291
|
+
}, [vue.createVNode("div", {
|
|
292
|
+
"class": ns.be("left-content", "title")
|
|
293
|
+
}, ["".concat(title, " ").concat(ibiz.i18n.t("control.dashboard.filterPortletDesign.filterTitle"))]), renderLeftList()]);
|
|
294
|
+
};
|
|
295
|
+
const renderCondition = () => {
|
|
296
|
+
return vue.withDirectives(vue.createVNode(vue.resolveComponent("iBizCustomFilterCondition"), {
|
|
297
|
+
"class": ns.b("condition"),
|
|
298
|
+
"context": props.context,
|
|
299
|
+
"params": props.viewParams,
|
|
300
|
+
"value": condition.value,
|
|
301
|
+
"schemaFields": schemaFields.value,
|
|
302
|
+
"onChange": handleConditionChange
|
|
303
|
+
}, null), [[vue.resolveDirective("loading"), loadding.value]]);
|
|
304
|
+
};
|
|
305
|
+
const renderFooter = () => {
|
|
306
|
+
let _slot2, _slot3;
|
|
307
|
+
return vue.createVNode("div", {
|
|
308
|
+
"class": ns.b("footer")
|
|
309
|
+
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
310
|
+
"onClick": handleCancel
|
|
311
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.cancel")) ? _slot2 : {
|
|
312
|
+
default: () => [_slot2]
|
|
313
|
+
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
314
|
+
"onClick": handleConfirm
|
|
315
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("app.confirm")) ? _slot3 : {
|
|
316
|
+
default: () => [_slot3]
|
|
317
|
+
})]);
|
|
318
|
+
};
|
|
319
|
+
return {
|
|
320
|
+
ns,
|
|
321
|
+
loaded,
|
|
322
|
+
formRef,
|
|
323
|
+
renderRightContent,
|
|
324
|
+
renderLeftContent,
|
|
325
|
+
renderCondition,
|
|
326
|
+
renderFooter
|
|
327
|
+
};
|
|
328
|
+
},
|
|
329
|
+
render() {
|
|
330
|
+
if (!this.loaded) {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
return vue.createVNode("div", {
|
|
334
|
+
"class": [this.ns.b()]
|
|
335
|
+
}, [vue.createVNode("div", {
|
|
336
|
+
"class": [this.ns.e("layout-left")]
|
|
337
|
+
}, [this.renderLeftContent()]), vue.createVNode("div", {
|
|
338
|
+
"class": [this.ns.e("layout-right")]
|
|
339
|
+
}, [this.renderRightContent(), this.renderCondition(), this.renderFooter()])]);
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
exports.IBizFilterPortletDesign = IBizFilterPortletDesign;
|
package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-filter-portlet-design{--ibiz-filter-portlet-design-layout-left-width:260px;display:flex;width:100%;height:100%}.ibiz-filter-portlet-design__layout-left{width:var(--ibiz-filter-portlet-design-layout-left-width);background-color:var(--ibiz-color-bg-0);border-right:1px solid var(--ibiz-color-border)}.ibiz-filter-portlet-design__layout-right{display:flex;flex:1;flex-direction:column}.ibiz-filter-portlet-design-left-content__title{height:var(--ibiz-height-control-default);padding:0 var(--ibiz-spacing-extra-loose);margin:var(--ibiz-spacing-extra-tight) 0;font-size:var(--ibiz-font-size-header-6);line-height:var(--ibiz-height-control-default)}.ibiz-filter-portlet-design-left-list{padding:0;padding:0 var(--ibiz-spacing-base-tight);margin:0;margin-top:var(--ibiz-spacing-base-tight);font-size:var(--ibiz-font-size-regular);list-style:none outside none;color-scheme:light;cursor:pointer;visibility:visible;unicode-bidi:isolate}.ibiz-filter-portlet-design-left-list__item{height:var(--ibiz-height-control-default);padding:0 var(--ibiz-spacing-base-loose);margin-bottom:var(--ibiz-spacing-base-tight);overflow:hidden;line-height:var(--ibiz-height-control-default);text-overflow:ellipsis;white-space:nowrap;border-radius:var(--ibiz-border-radius-small);transition:background-color .3s,transform .3s}.ibiz-filter-portlet-design-left-list__item:last-child{margin-bottom:0}.ibiz-filter-portlet-design-left-list__item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-filter-portlet-design-left-list__item.is-actvie{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-primary-light-default)}.ibiz-filter-portlet-design-left-list__item.is-disabled{cursor:no-drop;background-color:transparent}.ibiz-filter-portlet-design-right-content{flex:auto}.ibiz-filter-portlet-design-right-content__title{height:var(--ibiz-height-control-default);padding:0 var(--ibiz-spacing-extra-loose);margin:var(--ibiz-spacing-tight) 0;line-height:var(--ibiz-height-control-default)}.ibiz-filter-portlet-design-right-form{padding:0 var(--ibiz-spacing-extra-loose)}.ibiz-filter-portlet-design-right-form__checks{position:relative}.ibiz-filter-portlet-design-right-form__checks .el-form-item__content{position:static}.ibiz-filter-portlet-design-right-form__checks .el-switch{position:absolute;top:0;right:0}.ibiz-filter-portlet-design-right-form .el-form-item{display:flex;flex-flow:column nowrap;margin-bottom:var(--ibiz-spacing-base)}.ibiz-filter-portlet-design-right-form .el-form-item .el-form-item__label-wrap{margin-left:0!important}.ibiz-filter-portlet-design-right-form .el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label::before,.ibiz-filter-portlet-design-right-form .el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label::before{display:none}.ibiz-filter-portlet-design-right-form .el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label::after,.ibiz-filter-portlet-design-right-form .el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label::after{margin-right:var(--ibiz-spacing-extra-tight);margin-left:var(--ibiz-spacing-extra-tight);color:var(--el-color-danger);content:"*"}.ibiz-filter-portlet-design-right-form .el-select{width:100%}.ibiz-filter-portlet-design-checkbox__label{padding-left:var(--ibiz-spacing-tight)}.ibiz-filter-portlet-design-checkbox.is-only-add .el-checkbox.is-checked{cursor:not-allowed}.ibiz-filter-portlet-design-checkbox.is-only-add .el-checkbox.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.ibiz-filter-portlet-design-checkbox.is-only-add .el-checkbox.is-checked .el-checkbox__inner::after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.ibiz-filter-portlet-design-checkbox.is-only-add .el-checkbox.is-checked .el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.ibiz-filter-portlet-design-checkbox .ibiz-icon{padding-left:var(--ibiz-spacing-tight)}.ibiz-filter-portlet-design-checkbox .el-checkbox__label{display:flex;align-items:center;padding-left:0}.ibiz-filter-portlet-design-checkbox .el-checkbox{--el-checkbox-input-border:var(--el-border-width) var(--el-border-style) var(--ibiz-color-border);--el-checkbox-disabled-checked-input-fill:var(--ibiz-color-border);--el-checkbox-text-color:var(--ibiz-color-disabled-text)}.ibiz-filter-portlet-design-condition{padding:0 var(--ibiz-spacing-extra-loose);overflow:auto}.ibiz-filter-portlet-design-footer{display:flex;justify-content:flex-end;padding:var(--ibiz-spacing-base) var(--ibiz-spacing-extra-loose)}
|
package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.cjs
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
5
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
+
require('./filter-portlet-item.css');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
function _isSlot(s) {
|
|
10
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
11
|
+
}
|
|
12
|
+
const FilterPortletItem = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
name: "IBizFilterPortletItem",
|
|
14
|
+
props: {
|
|
15
|
+
context: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
params: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
field: {
|
|
24
|
+
type: Object,
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
filterNode: {
|
|
28
|
+
type: Object
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
emits: ["change"],
|
|
32
|
+
setup(props, {
|
|
33
|
+
emit
|
|
34
|
+
}) {
|
|
35
|
+
const ns = vue3Util.useNamespace("filter-portlet-item");
|
|
36
|
+
const editorProvider = vue.ref(void 0);
|
|
37
|
+
const editor = vue.ref(void 0);
|
|
38
|
+
const data = vue.ref({
|
|
39
|
+
value: null,
|
|
40
|
+
valueOP: null,
|
|
41
|
+
nodeType: "FIELD",
|
|
42
|
+
field: props.field.appDEFieldId
|
|
43
|
+
});
|
|
44
|
+
const valueOPs = vue.computed(() => {
|
|
45
|
+
return ibiz.util.jsonSchema.getValueOPsByDataType(props.field.type);
|
|
46
|
+
});
|
|
47
|
+
const getEditor = async (valueOP) => {
|
|
48
|
+
const editorModel = ibiz.util.jsonSchema.getMockEditor(props.context, props.field, valueOP);
|
|
49
|
+
if (editorModel) {
|
|
50
|
+
editorProvider.value = await runtime.getEditorProvider(editorModel);
|
|
51
|
+
if (editorProvider.value) {
|
|
52
|
+
editor.value = await editorProvider.value.createController(editorModel, {
|
|
53
|
+
context: props.context,
|
|
54
|
+
params: props.params
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const init = async () => {
|
|
60
|
+
if (props.filterNode) {
|
|
61
|
+
data.value = {
|
|
62
|
+
...props.filterNode
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
getEditor(valueOPs.value[0].valueOP);
|
|
66
|
+
};
|
|
67
|
+
vue.watch(() => props.filterNode, () => {
|
|
68
|
+
init();
|
|
69
|
+
}, {
|
|
70
|
+
immediate: true
|
|
71
|
+
});
|
|
72
|
+
const onValueChange = (value) => {
|
|
73
|
+
data.value.value = value;
|
|
74
|
+
emit("change", data.value);
|
|
75
|
+
};
|
|
76
|
+
const onValueOPSelect = (valueOP) => {
|
|
77
|
+
data.value.valueOP = valueOP;
|
|
78
|
+
onValueChange(null);
|
|
79
|
+
getEditor(valueOP);
|
|
80
|
+
};
|
|
81
|
+
const renderEditor = () => {
|
|
82
|
+
if (editor.value) {
|
|
83
|
+
const component = vue.resolveComponent(editorProvider.value.formEditor);
|
|
84
|
+
return vue.h(component, {
|
|
85
|
+
value: data.value.value,
|
|
86
|
+
controller: editor.value,
|
|
87
|
+
onChange: (val, _name) => {
|
|
88
|
+
onValueChange(val);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const renderContent = () => {
|
|
94
|
+
let _slot;
|
|
95
|
+
return vue.createVNode("div", {
|
|
96
|
+
"class": ns.e("content")
|
|
97
|
+
}, [vue.createVNode("div", {
|
|
98
|
+
"class": ns.em("content", "option")
|
|
99
|
+
}, [vue.createVNode(vue.resolveComponent("el-select"), {
|
|
100
|
+
"model-value": data.value.valueOP,
|
|
101
|
+
"onChange": (valueOP) => {
|
|
102
|
+
onValueOPSelect(valueOP);
|
|
103
|
+
}
|
|
104
|
+
}, _isSlot(_slot = valueOPs.value.map((mode) => {
|
|
105
|
+
return vue.createVNode(vue.resolveComponent("el-option"), {
|
|
106
|
+
"key": mode.valueOP,
|
|
107
|
+
"value": mode.valueOP,
|
|
108
|
+
"label": mode.label
|
|
109
|
+
}, null);
|
|
110
|
+
})) ? _slot : {
|
|
111
|
+
default: () => [_slot]
|
|
112
|
+
})]), vue.createVNode("div", {
|
|
113
|
+
"class": ns.em("content", "editor")
|
|
114
|
+
}, [renderEditor()])]);
|
|
115
|
+
};
|
|
116
|
+
return {
|
|
117
|
+
ns,
|
|
118
|
+
renderContent
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
render() {
|
|
122
|
+
return vue.createVNode("div", {
|
|
123
|
+
"class": this.ns.b()
|
|
124
|
+
}, [vue.createVNode("div", {
|
|
125
|
+
"class": this.ns.e("header")
|
|
126
|
+
}, [vue.createVNode("span", {
|
|
127
|
+
"class": this.ns.em("header", "caption")
|
|
128
|
+
}, [this.field.caption])]), this.renderContent()]);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
exports.FilterPortletItem = FilterPortletItem;
|
package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-filter-portlet-item{padding:var(--ibiz-spacing-base) var(--ibiz-spacing-extra-loose)}.ibiz-filter-portlet-item__header{display:flex;align-items:center;justify-content:space-between}.ibiz-filter-portlet-item__content--option{width:100%;padding:var(--ibiz-spacing-tight) 0}.ibiz-filter-portlet-item__content--option .el-select{width:100%}.ibiz-filter-portlet-item__content--editor{width:100%;padding:var(--ibiz-spacing-tight) 0}
|