@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
|
@@ -34,6 +34,9 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
34
|
type: Object,
|
|
35
35
|
required: true
|
|
36
36
|
},
|
|
37
|
+
params: {
|
|
38
|
+
type: Object
|
|
39
|
+
},
|
|
37
40
|
renderItem: {
|
|
38
41
|
type: Function
|
|
39
42
|
}
|
|
@@ -97,20 +100,95 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
};
|
|
103
|
+
const getEntitySuggestionItems = async (field) => {
|
|
104
|
+
if (!field || !field.appDataEntityId) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const service = await ibiz.hub.getAppDEService(props.context.srfappid, field.appDataEntityId, props.context);
|
|
108
|
+
const data = await service.fetchDefault(props.context, props.params);
|
|
109
|
+
if (data && Array.isArray(data.data)) {
|
|
110
|
+
const items = data.data;
|
|
111
|
+
if (items.length) {
|
|
112
|
+
return items.map((item) => {
|
|
113
|
+
return {
|
|
114
|
+
type: "pql-field-value",
|
|
115
|
+
label: item.srfmajortext,
|
|
116
|
+
value: item.srfkey
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return [{
|
|
121
|
+
_msg: ibiz.i18n.t("control.common.currentNoData")
|
|
122
|
+
}];
|
|
123
|
+
}
|
|
124
|
+
};
|
|
100
125
|
const getSuggestionItems = async () => {
|
|
101
|
-
var _a, _b, _c, _d, _e;
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
102
127
|
if (!editor$1) {
|
|
103
128
|
return [];
|
|
104
129
|
}
|
|
105
130
|
const currenNode = getCurrentNode();
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
131
|
+
const {
|
|
132
|
+
selection
|
|
133
|
+
} = editor$1;
|
|
134
|
+
if (!selection) {
|
|
109
135
|
return [];
|
|
110
136
|
}
|
|
137
|
+
if (selection && ((_b = (_a = selection.focus) == null ? void 0 : _a.path) == null ? void 0 : _b[0]) !== 0) {
|
|
138
|
+
return [];
|
|
139
|
+
}
|
|
140
|
+
if (!currenNode) {
|
|
141
|
+
if (selection && ((_c = selection.focus) == null ? void 0 : _c.offset) === 0) {
|
|
142
|
+
const node = editor.SlateEditor.node(editor$1, selection)[0];
|
|
143
|
+
if (node) {
|
|
144
|
+
const el = editor$1.toDOMNode(node);
|
|
145
|
+
if (index.isMove(el)) {
|
|
146
|
+
return [];
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
111
151
|
if (editor$1.selection) {
|
|
112
152
|
const node = editor.SlateEditor.node(editor$1, editor$1.selection);
|
|
113
|
-
if (node && ((
|
|
153
|
+
if (node && ((_d = node[0]) == null ? void 0 : _d.type)) {
|
|
154
|
+
return [];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
const nodeItems = index.generateNodeItems(currenNode, getPreviousNode);
|
|
158
|
+
const nodeItem = nodeItems[nodeItems.length - 1];
|
|
159
|
+
if (nodeItem && nodeItem.type === "condition") {
|
|
160
|
+
if (((_e = nodeItem.operator) == null ? void 0 : _e.value) && index.InOPs.includes(nodeItem.operator.value)) {
|
|
161
|
+
if (nodeItem.value) {
|
|
162
|
+
if (currenNode === nodeItem.value[nodeItem.value.length - 1] && currenNode.text) {
|
|
163
|
+
const text = currenNode.text.slice(0, selection.focus.offset).trim();
|
|
164
|
+
if (text === "," || text === "[") {
|
|
165
|
+
const field = props.fields.find((item) => {
|
|
166
|
+
var _a2;
|
|
167
|
+
return item.appDEFieldId === ((_a2 = nodeItem.key) == null ? void 0 : _a2.value);
|
|
168
|
+
});
|
|
169
|
+
if (field && field.appCodeListId) {
|
|
170
|
+
const items = await getCodeListItems(field.appCodeListId);
|
|
171
|
+
return items.map((item) => {
|
|
172
|
+
return {
|
|
173
|
+
type: "pql-field-value",
|
|
174
|
+
label: item.text,
|
|
175
|
+
value: item.value
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
const entitySuggestionItems = await getEntitySuggestionItems(field);
|
|
180
|
+
if (entitySuggestionItems) {
|
|
181
|
+
return entitySuggestionItems;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (text === "]" || text === "[]") {
|
|
185
|
+
return connectionList;
|
|
186
|
+
}
|
|
187
|
+
if (nodeItem.value.length === 1 && text) {
|
|
188
|
+
return connectionList;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
114
192
|
return [];
|
|
115
193
|
}
|
|
116
194
|
}
|
|
@@ -133,6 +211,9 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
133
211
|
if (currenNode && currenNode.type === "pql-field-operator") {
|
|
134
212
|
const mode = index.FilterModes.find((_mode) => _mode.valueOP === currenNode.value);
|
|
135
213
|
if (mode) {
|
|
214
|
+
if (index.InputOPs.includes(mode.valueOP)) {
|
|
215
|
+
return [];
|
|
216
|
+
}
|
|
136
217
|
if (index.ExcludeOPs.includes(mode.valueOP)) {
|
|
137
218
|
return connectionList;
|
|
138
219
|
}
|
|
@@ -149,6 +230,10 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
149
230
|
};
|
|
150
231
|
});
|
|
151
232
|
}
|
|
233
|
+
const entitySuggestionItems = await getEntitySuggestionItems(field);
|
|
234
|
+
if (entitySuggestionItems) {
|
|
235
|
+
return entitySuggestionItems;
|
|
236
|
+
}
|
|
152
237
|
}
|
|
153
238
|
}
|
|
154
239
|
return [];
|
|
@@ -165,13 +250,13 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
165
250
|
if (currenNode && !currenNode.type) {
|
|
166
251
|
const previousNode = getPreviousNode(currenNode);
|
|
167
252
|
if (previousNode && previousNode.type === "pql-field-operator") {
|
|
168
|
-
if (((
|
|
253
|
+
if (((_f = editor$1.selection) == null ? void 0 : _f.focus.offset) !== 0) {
|
|
169
254
|
return connectionList;
|
|
170
255
|
}
|
|
171
256
|
return [];
|
|
172
257
|
}
|
|
173
258
|
if (previousNode && previousNode.type === "pql-field") {
|
|
174
|
-
if (((
|
|
259
|
+
if (((_g = editor$1.selection) == null ? void 0 : _g.focus.offset) !== 0) {
|
|
175
260
|
return connectionList;
|
|
176
261
|
}
|
|
177
262
|
const field = props.fields.find((item) => item.appDEFieldId === previousNode.value);
|
|
@@ -186,7 +271,7 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
186
271
|
}
|
|
187
272
|
}
|
|
188
273
|
if (previousNode && previousNode.type === "pql-field-connection") {
|
|
189
|
-
if (((
|
|
274
|
+
if (((_h = editor$1.selection) == null ? void 0 : _h.focus.offset) !== 0) {
|
|
190
275
|
return connectionList;
|
|
191
276
|
}
|
|
192
277
|
return props.fields.map((item) => {
|
|
@@ -229,6 +314,10 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
229
314
|
};
|
|
230
315
|
editor$1.insertNode(node);
|
|
231
316
|
editor$1.move(1);
|
|
317
|
+
if (item.type === "pql-field-operator" && index.InOPs.includes(item.value)) {
|
|
318
|
+
editor$1.insertText("[]");
|
|
319
|
+
editor$1.moveReverse(1);
|
|
320
|
+
}
|
|
232
321
|
};
|
|
233
322
|
const showSuggestion = async () => {
|
|
234
323
|
if (!editor$1) {
|
|
@@ -248,6 +337,9 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
248
337
|
return;
|
|
249
338
|
}
|
|
250
339
|
const items = await getSuggestionItems();
|
|
340
|
+
if (overlayPopover || !editor$1.isFocused()) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
251
343
|
if (!items || !items.length) {
|
|
252
344
|
return;
|
|
253
345
|
}
|
|
@@ -270,7 +362,7 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
270
362
|
const errorMsg = vue.ref();
|
|
271
363
|
const errorMsgEl = vue.ref();
|
|
272
364
|
const verifyNode = () => {
|
|
273
|
-
var _a;
|
|
365
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
274
366
|
if (!editor$1) {
|
|
275
367
|
return;
|
|
276
368
|
}
|
|
@@ -279,137 +371,139 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
279
371
|
if (!children.length) {
|
|
280
372
|
return;
|
|
281
373
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
} else if (child.type === "pql-field-operator") {
|
|
291
|
-
return {
|
|
292
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u5DE6\u503C\u3002",
|
|
293
|
-
child
|
|
294
|
-
};
|
|
295
|
-
} else if (child.type === "pql-field-value" || child.text) {
|
|
296
|
-
return {
|
|
297
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u5DE6\u503C\u3002",
|
|
298
|
-
child
|
|
299
|
-
};
|
|
300
|
-
} else if (child.type === "pql-field-connection") {
|
|
301
|
-
return {
|
|
302
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8FDE\u63A5\u7B26\u7F3A\u5931\u8868\u8FBE\u5F0F",
|
|
303
|
-
child
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
} else if (last.type === "pql-field") {
|
|
307
|
-
if (child.type === "pql-field") {
|
|
308
|
-
return {
|
|
309
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u64CD\u4F5C\u7B26\u3002",
|
|
310
|
-
child: children[i - 1] || child
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
if (child.type === "pql-field-operator") {
|
|
314
|
-
last = child;
|
|
315
|
-
} else if (child.type === "pql-field-value" || child.text) {
|
|
316
|
-
return {
|
|
317
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u64CD\u4F5C\u7B26\u3002",
|
|
318
|
-
child
|
|
319
|
-
};
|
|
320
|
-
} else if (child.type === "pql-field-connection") {
|
|
321
|
-
return {
|
|
322
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u64CD\u4F5C\u7B26\u3002",
|
|
323
|
-
child: children[i - 1] || child
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
} else if (last.type === "pql-field-operator") {
|
|
327
|
-
if (last.value && index.ExcludeOPs.includes(last.value)) {
|
|
328
|
-
if (child.type === "pql-field") {
|
|
329
|
-
return {
|
|
330
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u8FDE\u63A5\u7B26\u3002",
|
|
331
|
-
child
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
if (child.type === "pql-field-operator") {
|
|
335
|
-
return {
|
|
336
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u8FDE\u63A5\u7B26\u3002",
|
|
337
|
-
child
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
if (child.type === "pql-field-value" || child.text) {
|
|
341
|
-
return {
|
|
342
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u8FDE\u63A5\u7B26\u3002",
|
|
343
|
-
child
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
if (child.type === "pql-field-connection") {
|
|
347
|
-
last = child;
|
|
348
|
-
}
|
|
349
|
-
} else if (child.type === "pql-field") {
|
|
350
|
-
return {
|
|
351
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u53F3\u503C\u3002",
|
|
352
|
-
child: children[i - 1] || child
|
|
353
|
-
};
|
|
354
|
-
} else if (child.type === "pql-field-operator") {
|
|
355
|
-
return {
|
|
356
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u53F3\u503C\u3002",
|
|
357
|
-
child: children[i - 1] || child
|
|
358
|
-
};
|
|
359
|
-
} else if (child.type === "pql-field-value" || child.text) {
|
|
360
|
-
last = child;
|
|
361
|
-
} else if (child.type === "pql-field-connection") {
|
|
362
|
-
return {
|
|
363
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u53F3\u503C\u3002",
|
|
364
|
-
child: children[i - 1] || child
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
} else if (last.type === "pql-field-value" || last.text) {
|
|
368
|
-
if (child.type === "pql-field") {
|
|
369
|
-
return {
|
|
370
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u8FDE\u63A5\u7B26\u3002",
|
|
371
|
-
child
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
if (child.type === "pql-field-operator") {
|
|
375
|
-
return {
|
|
376
|
-
msg: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u8FDE\u63A5\u7B26\u3002",
|
|
377
|
-
child
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
if (child.type === "pql-field-value" || child.text) {
|
|
374
|
+
const items = index.generateNodeItems(children[children.length - 1], getPreviousNode);
|
|
375
|
+
if (!items.length) {
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
for (let i = 0; i < items.length; i++) {
|
|
379
|
+
const item = items[i];
|
|
380
|
+
if (item.type === "connection") {
|
|
381
|
+
if (((_b = items[i - 1]) == null ? void 0 : _b.type) === "connection" || i === 0 || i === items.length - 1) {
|
|
381
382
|
return {
|
|
382
|
-
msg: "
|
|
383
|
-
child
|
|
383
|
+
msg: ibiz.i18n.t("component.pqlEditor.noExpression"),
|
|
384
|
+
child: (_c = item.value) == null ? void 0 : _c[0]
|
|
384
385
|
};
|
|
385
386
|
}
|
|
386
|
-
|
|
387
|
-
|
|
387
|
+
continue;
|
|
388
|
+
}
|
|
389
|
+
if (item.type === "condition" && ((_d = items[i - 1]) == null ? void 0 : _d.type) === "condition") {
|
|
390
|
+
let child;
|
|
391
|
+
if (item.key) {
|
|
392
|
+
child = item.key;
|
|
393
|
+
} else if (item.operator) {
|
|
394
|
+
child = item.operator;
|
|
395
|
+
} else if (item.value) {
|
|
396
|
+
child = (_e = item.value) == null ? void 0 : _e[0];
|
|
388
397
|
}
|
|
398
|
+
return {
|
|
399
|
+
msg: ibiz.i18n.t("component.pqlEditor.noConnection"),
|
|
400
|
+
child
|
|
401
|
+
};
|
|
389
402
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
403
|
+
if (!item.key) {
|
|
404
|
+
let child;
|
|
405
|
+
if (item.operator) {
|
|
406
|
+
child = item.operator;
|
|
407
|
+
} else if (item.value) {
|
|
408
|
+
child = (_f = item.value) == null ? void 0 : _f[0];
|
|
409
|
+
}
|
|
393
410
|
return {
|
|
394
|
-
msg: "
|
|
395
|
-
child
|
|
411
|
+
msg: ibiz.i18n.t("component.pqlEditor.noKey"),
|
|
412
|
+
child
|
|
396
413
|
};
|
|
397
414
|
}
|
|
398
|
-
if (
|
|
399
|
-
|
|
400
|
-
|
|
415
|
+
if (!item.operator) {
|
|
416
|
+
let child = item.key;
|
|
417
|
+
if (item.value) {
|
|
418
|
+
child = item.value[0];
|
|
419
|
+
} else if (items[i + 1]) {
|
|
420
|
+
if (items[i + 1].type === "connection") {
|
|
421
|
+
child = (_g = items[i + 1].value) == null ? void 0 : _g[0];
|
|
422
|
+
} else if (items[i + 1].key) {
|
|
423
|
+
child = items[i + 1].key;
|
|
424
|
+
} else if (items[i + 1].operator) {
|
|
425
|
+
child = items[i + 1].operator;
|
|
426
|
+
} else if (items[i + 1].value) {
|
|
427
|
+
child = (_h = items[i + 1].value) == null ? void 0 : _h[0];
|
|
428
|
+
}
|
|
401
429
|
}
|
|
402
430
|
return {
|
|
403
|
-
msg: "
|
|
404
|
-
child
|
|
431
|
+
msg: ibiz.i18n.t("component.pqlEditor.noOperator"),
|
|
432
|
+
child
|
|
405
433
|
};
|
|
406
434
|
}
|
|
407
|
-
if (
|
|
435
|
+
if (item.operator.value && !index.ExcludeOPs.includes(item.operator.value) && !item.value) {
|
|
436
|
+
let child = item.operator;
|
|
437
|
+
if (items[i + 1]) {
|
|
438
|
+
if (items[i + 1].type === "connection") {
|
|
439
|
+
child = (_i = items[i + 1].value) == null ? void 0 : _i[0];
|
|
440
|
+
} else if (items[i + 1].key) {
|
|
441
|
+
child = items[i + 1].key;
|
|
442
|
+
} else if (items[i + 1].operator) {
|
|
443
|
+
child = items[i + 1].operator;
|
|
444
|
+
} else if (items[i + 1].value) {
|
|
445
|
+
child = (_j = items[i + 1].value) == null ? void 0 : _j[0];
|
|
446
|
+
}
|
|
447
|
+
}
|
|
408
448
|
return {
|
|
409
|
-
msg: "
|
|
410
|
-
child
|
|
449
|
+
msg: ibiz.i18n.t("component.pqlEditor.noValue"),
|
|
450
|
+
child
|
|
411
451
|
};
|
|
412
452
|
}
|
|
453
|
+
if (item.operator.value && index.InOPs.includes(item.operator.value)) {
|
|
454
|
+
const value = item.value;
|
|
455
|
+
if (Array.isArray(value)) {
|
|
456
|
+
if (value.length > 1 && ((_k = value[0].text) == null ? void 0 : _k.trim()) !== "[") {
|
|
457
|
+
return {
|
|
458
|
+
msg: ibiz.i18n.t("component.pqlEditor.errorCombination"),
|
|
459
|
+
child: value[0]
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
let type = "value";
|
|
463
|
+
for (let j = 1; j < value.length; j++) {
|
|
464
|
+
if (j === value.length - 1) {
|
|
465
|
+
if (((_l = value[value.length - 1].text) == null ? void 0 : _l.trim()) !== "]") {
|
|
466
|
+
let child = value[value.length - 1];
|
|
467
|
+
if (child.type === "pql-field-value") {
|
|
468
|
+
if (items[i + 1]) {
|
|
469
|
+
if (items[i + 1].type === "connection") {
|
|
470
|
+
child = (_m = items[i + 1].value) == null ? void 0 : _m[0];
|
|
471
|
+
} else if (items[i + 1].key) {
|
|
472
|
+
child = items[i + 1].key;
|
|
473
|
+
} else if (items[i + 1].operator) {
|
|
474
|
+
child = items[i + 1].operator;
|
|
475
|
+
} else if (items[i + 1].value) {
|
|
476
|
+
child = (_n = items[i + 1].value) == null ? void 0 : _n[0];
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
msg: ibiz.i18n.t("component.pqlEditor.errorCombination"),
|
|
482
|
+
child
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
if (type === "value") {
|
|
488
|
+
if (value[j].type !== "pql-field-value") {
|
|
489
|
+
return {
|
|
490
|
+
msg: ibiz.i18n.t("component.pqlEditor.errorDelimiter"),
|
|
491
|
+
child: value[j]
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
type = "text";
|
|
495
|
+
} else if (type === "text") {
|
|
496
|
+
if (value[j].type || ((_o = value[j].text) == null ? void 0 : _o.trim()) !== ",") {
|
|
497
|
+
return {
|
|
498
|
+
msg: ibiz.i18n.t("component.pqlEditor.noDelimiter"),
|
|
499
|
+
child: value[j]
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
type = "value";
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
413
507
|
}
|
|
414
508
|
};
|
|
415
509
|
const verify = () => {
|
|
@@ -432,7 +526,7 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
432
526
|
}
|
|
433
527
|
const pqlItems = index.parseCustomCond(props.value);
|
|
434
528
|
if (pqlItems) {
|
|
435
|
-
const nodes = await index.pqlItemsToPqlNodes(pqlItems
|
|
529
|
+
const nodes = await index.pqlItemsToPqlNodes(pqlItems);
|
|
436
530
|
if (nodes && nodes.length) {
|
|
437
531
|
const html = index.pqlNodesToHtml(nodes);
|
|
438
532
|
currentValue.value = props.value;
|
|
@@ -456,7 +550,7 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
456
550
|
}
|
|
457
551
|
const pqlItems = index.parseCustomCond(props.value);
|
|
458
552
|
if (pqlItems) {
|
|
459
|
-
const nodes = await index.pqlItemsToPqlNodes(pqlItems
|
|
553
|
+
const nodes = await index.pqlItemsToPqlNodes(pqlItems);
|
|
460
554
|
if (nodes && nodes.length) {
|
|
461
555
|
const html = index.pqlNodesToHtml(nodes);
|
|
462
556
|
currentValue.value = props.value;
|
|
@@ -498,7 +592,7 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
498
592
|
}
|
|
499
593
|
if (!msg) {
|
|
500
594
|
try {
|
|
501
|
-
const items = index.
|
|
595
|
+
const items = index.generateNodeItems(children[children.length - 1], getPreviousNode);
|
|
502
596
|
const customCond = index.generateCustomCond(items, props.fields);
|
|
503
597
|
currentValue.value = customCond;
|
|
504
598
|
emit("change", customCond);
|
|
@@ -544,6 +638,11 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
544
638
|
editor$1.setHtml(htmlText.value);
|
|
545
639
|
cleanupKeydown = core.listenJSEvent(editorRef.value, "keydown", (event) => {
|
|
546
640
|
setTimeout(() => {
|
|
641
|
+
if ((event.key === "ArrowUp" || event.key === "ArrowDown") && editor$1) {
|
|
642
|
+
setTimeout(() => {
|
|
643
|
+
showSuggestion();
|
|
644
|
+
}, 10);
|
|
645
|
+
}
|
|
547
646
|
if ((event.key === "ArrowLeft" || event.key === "ArrowRight") && editor$1) {
|
|
548
647
|
const {
|
|
549
648
|
selection
|
|
@@ -567,7 +666,7 @@ const IBizPqlEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
567
666
|
}, 10);
|
|
568
667
|
}
|
|
569
668
|
}, 10);
|
|
570
|
-
if (event.key === "Escape") {
|
|
669
|
+
if (event.key === "Escape" || event.key === "Enter") {
|
|
571
670
|
event.stopPropagation();
|
|
572
671
|
overlayPopover == null ? void 0 : overlayPopover.dismiss();
|
|
573
672
|
}
|