@ibiz-template/vue3-components 0.7.38-alpha.56 → 0.7.40-alpha.9
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/LICENSE +1 -1
- package/README.md +321 -0
- package/dist/ibiz-markdown-editor-D4ESf3bP.js +1 -0
- package/dist/index--C432Qzt.js +4 -0
- package/dist/index-CmaF1QyJ.js +1 -0
- package/dist/index-frsL8WmS.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-user-CILGy9I4.js +1 -0
- package/dist/wang-editor-ZtYMqlXx.js +1 -0
- package/dist/{xlsx-util-BApCDhEk.js → xlsx-util-CKS7oyKo.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +14 -8
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.d.ts +9 -9
- package/es/common/anchor-container/anchor-container.d.ts +12 -12
- package/es/common/button-list/button-list.d.ts +5 -5
- package/es/common/button-list/button-list.mjs +53 -41
- package/es/common/carousel/carousel.d.ts +1 -1
- package/es/common/carousel-card/carousel-card.d.ts +3 -3
- package/es/common/control-navigation/control-navigation.mjs +7 -1
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +5 -2
- package/es/common/cropping/cropping.d.ts +3 -3
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +12 -12
- package/es/common/data-import/data-import.d.ts +4 -4
- package/es/common/data-import2/data-import2.d.ts +5 -5
- package/es/common/data-import2-select/data-import2-select.d.ts +2 -2
- package/es/common/data-import2-table/data-import2-table.d.ts +2 -2
- package/es/common/emoji-select/components/categories/categories.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-item/emoji-item.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-list/emoji-list.d.ts +7 -7
- package/es/common/emoji-select/emoji-select.d.ts +3 -3
- package/es/common/extend-action-timeline/extend-action-timeline.d.ts +3 -3
- package/es/common/map-chart-user/map-user-manager.d.ts +1 -1
- package/es/common/map-chart-user/map-user-manager.mjs +1 -1
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.d.ts +4 -4
- package/es/common/pql-editor/pql-editor.d.ts +4 -4
- package/es/common/quick-edit/quick-edit.d.ts +15 -5
- package/es/common/quick-edit/quick-edit.mjs +27 -7
- package/es/common/rawitem/rawitem.css +1 -1
- package/es/common/rawitem/rawitem.d.ts +2 -2
- package/es/common/rawitem/rawitem.mjs +4 -3
- package/es/common/view-message/view-message.d.ts +6 -6
- package/es/common/view-message/view-message.mjs +6 -4
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +8 -8
- package/es/control/app-menu/app-menu.mjs +8 -4
- package/es/control/app-menu/custom-menu-design/custom-menu-design.d.ts +3 -3
- package/es/control/app-menu/index.d.ts +9 -9
- package/es/control/app-menu-icon-view/app-menu-icon-view.d.ts +5 -5
- package/es/control/app-menu-icon-view/index.d.ts +5 -5
- package/es/control/calendar/calendar.d.ts +7 -7
- package/es/control/calendar/components/calendar-daily/calendar-daily.d.ts +6 -6
- package/es/control/calendar/components/calendar-daily/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.d.ts +6 -6
- package/es/control/calendar/components/calendar-user/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/calendar-week.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +4 -4
- package/es/control/calendar/components/custom-calendar/custom-calendar.d.ts +6 -6
- package/es/control/calendar/components/custom-calendar/index.d.ts +6 -6
- package/es/control/calendar/components/interface/calendar-daily.d.ts +3 -3
- package/es/control/calendar/components/interface/calendar-user.d.ts +3 -3
- package/es/control/calendar/components/interface/calendar-week.d.ts +3 -3
- package/es/control/calendar/components/interface/custom-calendar.d.ts +3 -3
- package/es/control/calendar/components/util/util.d.ts +2 -2
- package/es/control/calendar/index.d.ts +8 -8
- package/es/control/caption-bar/caption-bar.d.ts +5 -5
- package/es/control/caption-bar/index.d.ts +5 -5
- package/es/control/chart/chart.d.ts +13 -13
- package/es/control/context-menu/context-menu.css +1 -1
- package/es/control/context-menu/context-menu.d.ts +8 -6
- package/es/control/context-menu/context-menu.mjs +24 -9
- package/es/control/context-menu/index.d.ts +8 -6
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +2 -21357
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +2 -2
- package/es/control/dashboard/dashboard.d.ts +6 -6
- package/es/control/dashboard/index.d.ts +7 -7
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.d.ts +6 -6
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.d.ts +6 -6
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.d.ts +5 -5
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +14 -14
- package/es/control/data-view/data-view.mjs +73 -87
- package/es/control/data-view/index.d.ts +14 -14
- package/es/control/drbar/drbar.d.ts +5 -5
- package/es/control/drbar/index.d.ts +5 -5
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.d.ts +8 -8
- package/es/control/drtab/index.d.ts +8 -8
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/chart-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/data-view-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/grid-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/list-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.d.ts +5 -5
- package/es/control/form/edit-form/edit-form.css +1 -0
- package/es/control/form/edit-form/edit-form.d.ts +3 -76
- package/es/control/form/edit-form/edit-form.mjs +27 -5
- package/es/control/form/edit-form/index.d.ts +2 -73
- package/es/control/form/form/form.css +1 -1
- package/es/control/form/form/form.d.ts +1 -1
- package/es/control/form/form/form.mjs +1 -1
- package/es/control/form/form/index.d.ts +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +4 -1
- package/es/control/form/form-detail/form-button-list/form-button-list.d.ts +1 -1
- package/es/control/form/form-detail/form-button-list/form-button-list.mjs +7 -3
- package/es/control/form/form-detail/form-button-list/index.d.ts +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.d.ts +1 -0
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +11 -1
- package/es/control/form/form-detail/form-druipart/index.d.ts +1 -0
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.d.ts +2 -2
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.mjs +12 -13
- 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-container/form-item-container.d.ts +7 -101
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +65 -92
- package/es/control/form/form-detail/form-item/form-item.d.ts +5 -5
- package/es/control/form/form-detail/form-item/form-item.mjs +32 -44
- package/es/control/form/form-detail/form-item/index.d.ts +4 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +12 -14
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +20890 -10610
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +3 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +10 -0
- package/es/control/form/form-detail/form-mdctrl/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +3 -3
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.d.ts +4 -4
- package/es/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/es/control/form/form-detail/form-rawitem/form-rawitem.d.ts +2 -0
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +134 -2
- package/es/control/form/form-detail/form-rawitem/index.d.ts +2 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.d.ts +1 -1
- package/es/control/form/form-detail/form-tab-panel/index.d.ts +2 -2
- package/es/control/form/search-form/index.d.ts +13 -5
- package/es/control/form/search-form/search-form.d.ts +13 -5
- package/es/control/form/search-form/search-form.mjs +22 -2
- package/es/control/gantt/gantt.d.ts +7 -7
- package/es/control/gantt/index.d.ts +8 -8
- package/es/control/grid/grid/grid-control.util.mjs +18 -11
- package/es/control/grid/grid/grid.d.ts +29 -29
- package/es/control/grid/grid/grid.mjs +9 -1
- package/es/control/grid/grid/index.d.ts +29 -29
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.d.ts +4 -4
- package/es/control/grid/grid-column/auto-grid-field-edit-column/index.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +2 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +4 -4
- package/es/control/kanban/index.d.ts +5 -5
- package/es/control/kanban/kanban.d.ts +5 -5
- package/es/control/list/index.d.ts +14 -14
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +14 -14
- package/es/control/list/list.mjs +64 -58
- package/es/control/map/map.d.ts +5 -5
- package/es/control/medit-view-panel/index.d.ts +5 -5
- package/es/control/medit-view-panel/medit-view-panel.d.ts +5 -5
- package/es/control/pickup-view-panel/index.d.ts +5 -5
- package/es/control/pickup-view-panel/pickup-view-panel.d.ts +5 -5
- package/es/control/report-panel/report-panel.d.ts +5 -5
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +4 -4
- package/es/control/search-bar/index.d.ts +5 -5
- package/es/control/search-bar/search-bar.d.ts +5 -5
- package/es/control/search-bar/search-groups/search-groups.d.ts +6 -6
- package/es/control/tab-exp-panel/index.d.ts +5 -5
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +5 -5
- package/es/control/toolbar/export-excel/export-excel.mjs +9 -5
- package/es/control/toolbar/index.d.ts +6 -6
- package/es/control/toolbar/short-cut-button/short-cut-button.mjs +4 -3
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.d.ts +5 -5
- package/es/control/toolbar/toolbar.mjs +23 -19
- package/es/control/tree/index.d.ts +14 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +26 -26
- package/es/control/tree/tree.mjs +5 -0
- package/es/control/tree-grid/index.d.ts +24 -24
- package/es/control/tree-grid/tree-grid.d.ts +23 -23
- package/es/control/tree-grid-ex/index.d.ts +11 -11
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.d.ts +2 -2
- package/es/control/tree-grid-ex/tree-grid-ex.d.ts +7 -7
- package/es/control/wizard-panel/index.d.ts +5 -5
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.d.ts +5 -5
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +9 -9
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +3 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +9 -9
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +8 -8
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +14 -14
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +1 -2
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +8 -8
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +9 -9
- package/es/editor/code/code-editor.controller.d.ts +16 -1
- package/es/editor/code/code-editor.controller.mjs +34 -1
- package/es/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +10 -9
- package/es/editor/code/monaco-editor/monaco-editor.mjs +310 -13
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +14 -10
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +10 -10
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +9 -9
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +3 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +10 -9
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +9 -3
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +9 -9
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +8 -8
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +12 -12
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +5 -1
- package/es/editor/data-picker/picker-editor.controller.mjs +5 -1
- package/es/editor/data-picker/picker-editor.provider.mjs +2 -0
- package/es/editor/date-picker/date-picker-editor.controller.mjs +7 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +8 -8
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +7 -0
- package/es/editor/date-range/date-range-editor.controller.mjs +2 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +8 -8
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +2 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +4 -4
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +11 -11
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +9 -7
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +8 -8
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +11 -11
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +2 -4
- package/es/editor/html/html-editor.controller.mjs +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +8 -8
- package/es/editor/html/wang-editor/wang-editor.mjs +192 -58
- package/es/editor/index.mjs +80 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +9 -9
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +132 -16
- package/es/editor/not-supported-editor/not-supported-editor.css +1 -1
- package/es/editor/not-supported-editor/not-supported-editor.d.ts +7 -0
- package/es/editor/not-supported-editor/not-supported-editor.mjs +15 -2
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +8 -8
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +8 -8
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +9 -9
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +9 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +10 -10
- package/es/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +9 -8
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +5 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +8 -8
- package/es/editor/span/span/span.d.ts +3 -3
- package/es/editor/span/span-link/span-link.d.ts +8 -8
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +8 -8
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +9 -9
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +8 -8
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +8 -8
- package/es/editor/text-box/input/input.d.ts +10 -10
- package/es/editor/text-box/input/input.mjs +194 -61
- package/es/editor/text-box/text-box-editor.controller.mjs +2 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +13 -13
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +15 -15
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +8 -8
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +13 -13
- package/es/editor/upload/upload-editor.controller.mjs +7 -3
- package/es/editor/upload/upload-editor.provider.mjs +3 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +8 -8
- package/es/index.mjs +45 -0
- package/es/locale/en/index.d.ts +32 -0
- package/es/locale/en/index.mjs +28 -4
- package/es/locale/zh-CN/index.d.ts +32 -0
- package/es/locale/zh-CN/index.mjs +28 -4
- package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.40-alpha.7_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +53 -81
- package/es/panel-component/coop-pos/coop-pos.d.ts +1 -1
- package/es/panel-component/coop-pos/index.d.ts +2 -2
- package/es/panel-component/global-search/global-search.controller.d.ts +113 -0
- package/es/panel-component/global-search/global-search.controller.mjs +221 -0
- package/es/panel-component/global-search/global-search.css +1 -0
- package/es/panel-component/global-search/global-search.d.ts +36 -0
- package/es/panel-component/global-search/global-search.mjs +194 -0
- package/es/panel-component/global-search/global-search.provider.d.ts +14 -0
- package/es/panel-component/global-search/global-search.provider.mjs +21 -0
- package/es/panel-component/global-search/global-search.state.d.ts +61 -0
- package/es/panel-component/global-search/global-search.state.mjs +37 -0
- package/es/panel-component/global-search/index.d.ts +33 -0
- package/es/panel-component/global-search/index.mjs +15 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.d.ts +54 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.mjs +78 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.css +1 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.d.ts +26 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.mjs +74 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.provider.d.ts +14 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.provider.mjs +21 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.state.d.ts +10 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.state.mjs +7 -0
- package/es/panel-component/index-blank-placeholder/index.d.ts +25 -0
- package/es/panel-component/index-blank-placeholder/index.mjs +19 -0
- package/es/panel-component/index.mjs +4 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +5 -1
- package/es/panel-component/panel-app-title/index.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.mjs +45 -21
- 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-button/panel-button.mjs +7 -20
- package/es/panel-component/panel-button-list/index.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.controller.d.ts +13 -4
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +27 -7
- package/es/panel-component/panel-button-list/panel-button-list.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.mjs +3 -3
- package/es/panel-component/panel-tab-panel/index.d.ts +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +5 -0
- package/es/panel-component/short-cut/index.d.ts +2 -2
- package/es/panel-component/short-cut/short-cut.d.ts +1 -1
- package/es/panel-component/user-message/addin-changed/addin-changed.d.ts +2 -2
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.d.ts +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.d.ts +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.d.ts +1 -1
- package/es/panel-component/user-message/user-message.css +1 -1
- package/es/panel-component/user-message/user-message.mjs +3 -1
- package/es/util/ai-util/ai-util.d.ts +25 -0
- package/es/util/ai-util/ai-util.mjs +44 -0
- package/es/util/app-modal/app-modal-component.d.ts +1 -1
- package/es/util/app-util/app-util.d.ts +10 -1
- package/es/util/app-util/app-util.mjs +281 -0
- package/es/util/button-util/button-util.d.ts +7 -0
- package/es/util/button-util/button-util.mjs +11 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/index.d.ts +2 -0
- package/es/util/index.mjs +2 -0
- package/es/util/notice-util/notice-util.mjs +2 -1
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +1 -1
- package/es/util/open-view-util/open-view-util.d.ts +41 -14
- package/es/util/open-view-util/open-view-util.mjs +69 -15
- package/es/view/403-view/403-view.css +1 -1
- package/es/view/404-view/404-view.css +1 -1
- package/es/view/share-view/share-view.d.ts +1 -1
- package/es/view/sub-app-ref-view/index.d.ts +7 -7
- package/es/view/sub-app-ref-view/sub-app-ref-view.d.ts +7 -7
- package/es/view/wf-step-trace-view/index.d.ts +7 -7
- package/es/view/wf-step-trace-view/wf-step-trace-view.d.ts +7 -7
- package/es/view-engine/custom-view.engine.d.ts +31 -2
- package/es/view-engine/custom-view.engine.mjs +75 -1
- package/es/view-engine/edit-view.engine.d.ts +1 -2
- package/es/view-engine/edit-view.engine.mjs +6 -27
- package/es/view-engine/index.d.ts +43 -0
- package/es/view-engine/index.mjs +2 -1
- package/es/view-engine/portal-view-engine.d.ts +8 -0
- package/es/view-engine/portal-view-engine.mjs +14 -26
- package/es/web-app/App.mjs +2 -0
- package/es/web-app/attach-environment-config.mjs +1 -1
- package/es/web-app/components/router-shell/router-shell.d.ts +3 -3
- package/es/web-app/guard/auth-guard/auth-guard.mjs +5 -0
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +3 -0
- package/es/web-app/main.mjs +1 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +13 -7
- package/lib/common/button-list/button-list.cjs +53 -41
- package/lib/common/control-navigation/control-navigation.cjs +7 -1
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +5 -2
- package/lib/common/map-chart-user/map-user-manager.cjs +1 -1
- package/lib/common/quick-edit/quick-edit.cjs +26 -6
- package/lib/common/rawitem/rawitem.cjs +4 -3
- package/lib/common/rawitem/rawitem.css +1 -1
- package/lib/common/view-message/view-message.cjs +6 -4
- package/lib/control/app-menu/app-menu.cjs +8 -4
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/context-menu/context-menu.cjs +23 -8
- package/lib/control/context-menu/context-menu.css +1 -1
- package/lib/control/data-view/data-view.cjs +73 -87
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/edit-form/edit-form.cjs +27 -5
- package/lib/control/form/edit-form/edit-form.css +1 -0
- package/lib/control/form/form/form.cjs +1 -1
- package/lib/control/form/form/form.css +1 -1
- package/lib/control/form/form-detail/form-button/form-button.cjs +4 -1
- package/lib/control/form/form-detail/form-button-list/form-button-list.cjs +7 -3
- package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +10 -0
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-item/composite-form-item/composite-form-item.cjs +12 -13
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +64 -91
- 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 +32 -44
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +12 -14
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +10 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +133 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/lib/control/form/search-form/search-form.cjs +21 -1
- package/lib/control/grid/grid/grid-control.util.cjs +18 -11
- package/lib/control/grid/grid/grid.cjs +9 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/list/list.cjs +64 -58
- package/lib/control/list/list.css +1 -1
- package/lib/control/toolbar/export-excel/export-excel.cjs +9 -5
- package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +4 -3
- package/lib/control/toolbar/toolbar.cjs +23 -19
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +5 -0
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +3 -0
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -0
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +1 -2
- package/lib/editor/code/code-editor.controller.cjs +33 -0
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +309 -12
- package/lib/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +3 -0
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +8 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +5 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +5 -1
- package/lib/editor/data-picker/picker-editor.provider.cjs +2 -0
- package/lib/editor/date-picker/date-picker-editor.controller.cjs +7 -0
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +7 -0
- package/lib/editor/date-range/date-range-editor.controller.cjs +2 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +2 -0
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +9 -7
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +2 -4
- package/lib/editor/html/html-editor.controller.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +190 -56
- package/lib/editor/index.cjs +80 -0
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +131 -15
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/lib/editor/not-supported-editor/not-supported-editor.cjs +15 -2
- package/lib/editor/not-supported-editor/not-supported-editor.css +1 -1
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +9 -3
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +5 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
- package/lib/editor/text-box/input/input.cjs +192 -59
- package/lib/editor/text-box/text-box-editor.controller.cjs +2 -2
- package/lib/editor/upload/upload-editor.controller.cjs +7 -3
- package/lib/editor/upload/upload-editor.provider.cjs +3 -0
- package/lib/index.cjs +90 -0
- package/lib/locale/en/index.cjs +28 -4
- package/lib/locale/zh-CN/index.cjs +28 -4
- package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.40-alpha.7_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +53 -81
- package/lib/panel-component/global-search/global-search.cjs +196 -0
- package/lib/panel-component/global-search/global-search.controller.cjs +223 -0
- package/lib/panel-component/global-search/global-search.css +1 -0
- package/lib/panel-component/global-search/global-search.provider.cjs +23 -0
- package/lib/panel-component/global-search/global-search.state.cjs +39 -0
- package/lib/panel-component/global-search/index.cjs +20 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.cjs +76 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.controller.cjs +80 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.css +1 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.provider.cjs +23 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.state.cjs +9 -0
- package/lib/panel-component/index-blank-placeholder/index.cjs +25 -0
- package/lib/panel-component/index.cjs +42 -38
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +5 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +45 -21
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-button/panel-button.cjs +7 -20
- package/lib/panel-component/panel-button-list/panel-button-list.cjs +3 -3
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +27 -7
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +5 -0
- package/lib/panel-component/user-message/user-message.cjs +3 -1
- package/lib/panel-component/user-message/user-message.css +1 -1
- package/lib/util/ai-util/ai-util.cjs +46 -0
- package/lib/util/app-util/app-util.cjs +281 -0
- package/lib/util/button-util/button-util.cjs +13 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/index.cjs +4 -0
- package/lib/util/notice-util/notice-util.cjs +2 -1
- package/lib/util/open-view-util/open-view-util.cjs +69 -15
- package/lib/view/403-view/403-view.css +1 -1
- package/lib/view/404-view/404-view.css +1 -1
- package/lib/view-engine/custom-view.engine.cjs +74 -0
- package/lib/view-engine/edit-view.engine.cjs +6 -27
- package/lib/view-engine/index.cjs +44 -0
- package/lib/view-engine/portal-view-engine.cjs +14 -26
- package/lib/web-app/App.cjs +2 -0
- package/lib/web-app/attach-environment-config.cjs +1 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +5 -0
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +3 -0
- package/lib/web-app/main.cjs +1 -1
- package/package.json +16 -16
- package/dist/ibiz-markdown-editor-CKuF8KOI.js +0 -1
- package/dist/index-B79xJqXz.js +0 -1
- package/dist/index-BsxW9vZO.js +0 -1
- package/dist/index-CIQ8bnG_.js +0 -4
- package/dist/map-chart-user-BaQWHpFu.js +0 -1
- package/dist/wang-editor-Vd0LVyWx.js +0 -1
|
@@ -13,8 +13,8 @@ export declare const IBizCoopPos: import("@ibiz-template/vue3-util").TypeWithIns
|
|
|
13
13
|
}, {
|
|
14
14
|
ns: import("@ibiz-template/core").Namespace;
|
|
15
15
|
c: CoopPosController;
|
|
16
|
-
messages: import("vue").ComputedRef<
|
|
17
|
-
renderItem: (message:
|
|
16
|
+
messages: import("vue").ComputedRef<import("@ibiz-template/core").IApiData[]>;
|
|
17
|
+
renderItem: (message: import("@ibiz-template/core").IApiData) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}> | null;
|
|
20
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { IModalData, PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
+
import { GlobalSearchState, ISearchItem } from './global-search.state';
|
|
4
|
+
/**
|
|
5
|
+
* 全局搜索控制器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class GlobalSearchController
|
|
9
|
+
* @extends {PanelItemController<IPanelContainer>}
|
|
10
|
+
*/
|
|
11
|
+
export declare class GlobalSearchController extends PanelItemController<IPanelContainer> {
|
|
12
|
+
state: GlobalSearchState;
|
|
13
|
+
/**
|
|
14
|
+
* 主键属性名称
|
|
15
|
+
*
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof GlobalSearchController
|
|
18
|
+
*/
|
|
19
|
+
keyName: string;
|
|
20
|
+
/**
|
|
21
|
+
* 主文本属性名称
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof GlobalSearchController
|
|
25
|
+
*/
|
|
26
|
+
textName: string;
|
|
27
|
+
/**
|
|
28
|
+
* 搜索历史缓存标识
|
|
29
|
+
*
|
|
30
|
+
* @protected
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GlobalSearchController
|
|
33
|
+
*/
|
|
34
|
+
protected historyCache: string;
|
|
35
|
+
/**
|
|
36
|
+
* 创建全局搜索状态对象
|
|
37
|
+
*
|
|
38
|
+
* @protected
|
|
39
|
+
* @return {*} {GlobalSearchState}
|
|
40
|
+
* @memberof GlobalSearchController
|
|
41
|
+
*/
|
|
42
|
+
protected createState(): GlobalSearchState;
|
|
43
|
+
/**
|
|
44
|
+
* 初始化
|
|
45
|
+
*
|
|
46
|
+
* @protected
|
|
47
|
+
* @return {*} {Promise<void>}
|
|
48
|
+
* @memberof GlobalSearchController
|
|
49
|
+
*/
|
|
50
|
+
protected onInit(): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* 初始化全局搜索项
|
|
53
|
+
*
|
|
54
|
+
* @protected
|
|
55
|
+
* @memberof GlobalSearchController
|
|
56
|
+
*/
|
|
57
|
+
protected initGlobalSearchItem(): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* 初始化历史记录
|
|
60
|
+
*
|
|
61
|
+
* @private
|
|
62
|
+
* @memberof GlobalSearchController
|
|
63
|
+
*/
|
|
64
|
+
private initHistory;
|
|
65
|
+
/**
|
|
66
|
+
* 添加历史
|
|
67
|
+
* - 最多5条记录
|
|
68
|
+
* @private
|
|
69
|
+
* @param {string} query
|
|
70
|
+
* @memberof GlobalSearchController
|
|
71
|
+
*/
|
|
72
|
+
private addToHistory;
|
|
73
|
+
/**
|
|
74
|
+
* 清除历史
|
|
75
|
+
*
|
|
76
|
+
* @memberof GlobalSearchController
|
|
77
|
+
*/
|
|
78
|
+
clearHistory(): void;
|
|
79
|
+
/**
|
|
80
|
+
* 搜索
|
|
81
|
+
*
|
|
82
|
+
* @param {string} query
|
|
83
|
+
* @return {*} {Promise<IData[]>}
|
|
84
|
+
* @memberof GlobalSearchController
|
|
85
|
+
*/
|
|
86
|
+
search(query: string): Promise<IData[]>;
|
|
87
|
+
/**
|
|
88
|
+
* 通过AC模式加载数据
|
|
89
|
+
*
|
|
90
|
+
* @param {ISearchItem} item
|
|
91
|
+
* @param {string} [query]
|
|
92
|
+
* @return {*} {Promise<void>}
|
|
93
|
+
* @memberof GlobalSearchController
|
|
94
|
+
*/
|
|
95
|
+
loadByACMode(item: ISearchItem, query?: string): Promise<IData[]>;
|
|
96
|
+
/**
|
|
97
|
+
* 打开链接视图
|
|
98
|
+
*
|
|
99
|
+
* @param {IData} data
|
|
100
|
+
* @param {ISearchItem} [item]
|
|
101
|
+
* @return {*} {(Promise<IModalData | undefined>)}
|
|
102
|
+
* @memberof GlobalSearchController
|
|
103
|
+
*/
|
|
104
|
+
openLinkView(data: IData, item?: ISearchItem): Promise<IModalData | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* 根据实体获取搜索项
|
|
107
|
+
*
|
|
108
|
+
* @param {string} appDataEntityId 实体标识
|
|
109
|
+
* @return {*} {(ISearchItem | undefined)}
|
|
110
|
+
* @memberof GlobalSearchController
|
|
111
|
+
*/
|
|
112
|
+
getSearchItemByEntity(appDataEntityId: string): ISearchItem | undefined;
|
|
113
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { PanelItemController, getDeACMode, getAcItemProvider, calcDeCodeNameById, OpenAppViewCommand } from '@ibiz-template/runtime';
|
|
2
|
+
import { GlobalSearchState } from './global-search.state.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => {
|
|
8
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
|
+
return value;
|
|
10
|
+
};
|
|
11
|
+
class GlobalSearchController extends PanelItemController {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
/**
|
|
15
|
+
* 主键属性名称
|
|
16
|
+
*
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof GlobalSearchController
|
|
19
|
+
*/
|
|
20
|
+
__publicField(this, "keyName", "srfkey");
|
|
21
|
+
/**
|
|
22
|
+
* 主文本属性名称
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GlobalSearchController
|
|
26
|
+
*/
|
|
27
|
+
__publicField(this, "textName", "srfmajortext");
|
|
28
|
+
/**
|
|
29
|
+
* 搜索历史缓存标识
|
|
30
|
+
*
|
|
31
|
+
* @protected
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GlobalSearchController
|
|
34
|
+
*/
|
|
35
|
+
__publicField(this, "historyCache", "global-search-history");
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 创建全局搜索状态对象
|
|
39
|
+
*
|
|
40
|
+
* @protected
|
|
41
|
+
* @return {*} {GlobalSearchState}
|
|
42
|
+
* @memberof GlobalSearchController
|
|
43
|
+
*/
|
|
44
|
+
createState() {
|
|
45
|
+
var _a;
|
|
46
|
+
return new GlobalSearchState((_a = this.parent) == null ? void 0 : _a.state);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 初始化
|
|
50
|
+
*
|
|
51
|
+
* @protected
|
|
52
|
+
* @return {*} {Promise<void>}
|
|
53
|
+
* @memberof GlobalSearchController
|
|
54
|
+
*/
|
|
55
|
+
async onInit() {
|
|
56
|
+
await super.onInit();
|
|
57
|
+
this.initHistory();
|
|
58
|
+
await this.initGlobalSearchItem();
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 初始化全局搜索项
|
|
62
|
+
*
|
|
63
|
+
* @protected
|
|
64
|
+
* @memberof GlobalSearchController
|
|
65
|
+
*/
|
|
66
|
+
async initGlobalSearchItem() {
|
|
67
|
+
var _a;
|
|
68
|
+
const appFuncs = ((_a = ibiz.hub.getApp(this.model.appId).model.appFuncs) == null ? void 0 : _a.filter(
|
|
69
|
+
(func) => func.appFuncType === "SEARCH" && func.appDEACModeId && func.appDataEntityId
|
|
70
|
+
)) || [];
|
|
71
|
+
await Promise.all(
|
|
72
|
+
appFuncs.map(async (func) => {
|
|
73
|
+
const deACMode = await getDeACMode(
|
|
74
|
+
func.appDEACModeId,
|
|
75
|
+
func.appDataEntityId,
|
|
76
|
+
func.appId
|
|
77
|
+
);
|
|
78
|
+
if (deACMode) {
|
|
79
|
+
let acItemProvider;
|
|
80
|
+
if (deACMode.itemSysPFPluginId) {
|
|
81
|
+
acItemProvider = await getAcItemProvider(deACMode);
|
|
82
|
+
}
|
|
83
|
+
this.state.items.push({
|
|
84
|
+
deACMode,
|
|
85
|
+
acItemProvider,
|
|
86
|
+
appDataEntityId: func.appDataEntityId
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 初始化历史记录
|
|
94
|
+
*
|
|
95
|
+
* @private
|
|
96
|
+
* @memberof GlobalSearchController
|
|
97
|
+
*/
|
|
98
|
+
initHistory() {
|
|
99
|
+
const cache = localStorage.getItem(this.historyCache);
|
|
100
|
+
if (cache)
|
|
101
|
+
this.state.histories = JSON.parse(cache);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 添加历史
|
|
105
|
+
* - 最多5条记录
|
|
106
|
+
* @private
|
|
107
|
+
* @param {string} query
|
|
108
|
+
* @memberof GlobalSearchController
|
|
109
|
+
*/
|
|
110
|
+
addToHistory(query) {
|
|
111
|
+
const histories = this.state.histories.filter((history) => history !== query);
|
|
112
|
+
histories.push(query);
|
|
113
|
+
if (histories.length > 5)
|
|
114
|
+
histories.shift();
|
|
115
|
+
this.state.histories = histories;
|
|
116
|
+
localStorage.setItem(
|
|
117
|
+
this.historyCache,
|
|
118
|
+
JSON.stringify(this.state.histories)
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 清除历史
|
|
123
|
+
*
|
|
124
|
+
* @memberof GlobalSearchController
|
|
125
|
+
*/
|
|
126
|
+
clearHistory() {
|
|
127
|
+
this.state.histories = [];
|
|
128
|
+
localStorage.setItem(
|
|
129
|
+
this.historyCache,
|
|
130
|
+
JSON.stringify(this.state.histories)
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* 搜索
|
|
135
|
+
*
|
|
136
|
+
* @param {string} query
|
|
137
|
+
* @return {*} {Promise<IData[]>}
|
|
138
|
+
* @memberof GlobalSearchController
|
|
139
|
+
*/
|
|
140
|
+
async search(query) {
|
|
141
|
+
const result = [];
|
|
142
|
+
await Promise.all(
|
|
143
|
+
this.state.items.map(async (item) => {
|
|
144
|
+
const list = await this.loadByACMode(item, query);
|
|
145
|
+
result.push(...list);
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
this.addToHistory(query);
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* 通过AC模式加载数据
|
|
153
|
+
*
|
|
154
|
+
* @param {ISearchItem} item
|
|
155
|
+
* @param {string} [query]
|
|
156
|
+
* @return {*} {Promise<void>}
|
|
157
|
+
* @memberof GlobalSearchController
|
|
158
|
+
*/
|
|
159
|
+
async loadByACMode(item, query) {
|
|
160
|
+
const { appDataEntityId, deACMode } = item;
|
|
161
|
+
const { minorSortDir, minorSortAppDEFieldId, appDEDataSetId } = deACMode;
|
|
162
|
+
if (!appDEDataSetId)
|
|
163
|
+
return [];
|
|
164
|
+
const params = {};
|
|
165
|
+
if (minorSortDir && minorSortAppDEFieldId)
|
|
166
|
+
Object.assign(params, {
|
|
167
|
+
sort: "".concat(minorSortAppDEFieldId.toLowerCase(), ",").concat(minorSortDir.toLowerCase())
|
|
168
|
+
});
|
|
169
|
+
if (query)
|
|
170
|
+
Object.assign(params, { query });
|
|
171
|
+
const app = ibiz.hub.getApp(deACMode.appId);
|
|
172
|
+
const response = await app.deService.exec(
|
|
173
|
+
appDataEntityId,
|
|
174
|
+
appDEDataSetId,
|
|
175
|
+
this.panel.context,
|
|
176
|
+
params
|
|
177
|
+
);
|
|
178
|
+
if (response.ok && response.data)
|
|
179
|
+
return response.data;
|
|
180
|
+
return [];
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* 打开链接视图
|
|
184
|
+
*
|
|
185
|
+
* @param {IData} data
|
|
186
|
+
* @param {ISearchItem} [item]
|
|
187
|
+
* @return {*} {(Promise<IModalData | undefined>)}
|
|
188
|
+
* @memberof GlobalSearchController
|
|
189
|
+
*/
|
|
190
|
+
async openLinkView(data, item) {
|
|
191
|
+
if (!item)
|
|
192
|
+
return;
|
|
193
|
+
const { appDataEntityId, deACMode } = item;
|
|
194
|
+
const { linkAppViewId } = deACMode;
|
|
195
|
+
if (!linkAppViewId)
|
|
196
|
+
return;
|
|
197
|
+
const context = this.panel.context.clone();
|
|
198
|
+
const deName = calcDeCodeNameById(appDataEntityId);
|
|
199
|
+
Object.assign(context, { [deName]: data[this.keyName] });
|
|
200
|
+
return ibiz.commands.execute(
|
|
201
|
+
OpenAppViewCommand.TAG,
|
|
202
|
+
linkAppViewId,
|
|
203
|
+
context,
|
|
204
|
+
{}
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* 根据实体获取搜索项
|
|
209
|
+
*
|
|
210
|
+
* @param {string} appDataEntityId 实体标识
|
|
211
|
+
* @return {*} {(ISearchItem | undefined)}
|
|
212
|
+
* @memberof GlobalSearchController
|
|
213
|
+
*/
|
|
214
|
+
getSearchItemByEntity(appDataEntityId) {
|
|
215
|
+
return this.state.items.find(
|
|
216
|
+
(item) => calcDeCodeNameById(item.appDataEntityId) === appDataEntityId.toLowerCase()
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export { GlobalSearchController };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-global-search{width:100%}.ibiz-global-search__search .el-input__wrapper{width:240px}.ibiz-global-search__search .el-input__wrapper.is-focus{width:320px}.ibiz-global-search__search.is-search .el-input__wrapper{width:320px}.ibiz-global-search__content{display:flex;align-items:center;flex-direction:column}.ibiz-global-search__content--action-item{width:100%}.ibiz-global-search__content--action-item .el-button{width:100%}.ibiz-global-search__list{width:100%;max-height:280px;display:flex;overflow-y:auto;align-items:center;flex-direction:column}.ibiz-global-search__list--item{margin:0;width:100%;padding:0 20px;cursor:pointer;text-align:left;overflow:hidden;min-height:34px;line-height:34px;white-space:nowrap;text-overflow:ellipsis;color:var(--ibiz-color-text-0);font-size:var(--ibiz-font-size-regular)}.ibiz-global-search__list--item:hover{background-color:var(--ibiz-color-fill-1)}.ibiz-global-search__popper{min-width:320px!important;max-width:700px}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
3
|
+
import { GlobalSearchController } from './global-search.controller';
|
|
4
|
+
import './global-search.scss';
|
|
5
|
+
export declare const GlobalSearch: import("vue").DefineComponent<{
|
|
6
|
+
modelData: {
|
|
7
|
+
type: PropType<IPanelRawItem>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
controller: {
|
|
11
|
+
type: PropType<GlobalSearchController>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
c: GlobalSearchController;
|
|
16
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
17
|
+
list: import("vue").Ref<import("@ibiz-template/core").IApiData[]>;
|
|
18
|
+
visible: import("vue").Ref<boolean>;
|
|
19
|
+
editorRef: import("vue").Ref<any>;
|
|
20
|
+
handleClear: () => void;
|
|
21
|
+
handleEnter: (event: KeyboardEvent) => void;
|
|
22
|
+
renderAction: () => JSX.Element | undefined;
|
|
23
|
+
renderSearchList: () => JSX.Element;
|
|
24
|
+
renderHistoryList: () => JSX.Element;
|
|
25
|
+
handleInputClick: (event: MouseEvent) => void;
|
|
26
|
+
renderBlankPlaceholder: () => JSX.Element | undefined;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
modelData: {
|
|
29
|
+
type: PropType<IPanelRawItem>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
controller: {
|
|
33
|
+
type: PropType<GlobalSearchController>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
}>>, {}, {}>;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { isVNode, defineComponent, ref, onMounted, onUnmounted, withDirectives, createVNode, resolveDirective, resolveComponent, h } from 'vue';
|
|
2
|
+
import { showTitle } from '@ibiz-template/core';
|
|
3
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
+
import './global-search.css';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
function _isSlot(s) {
|
|
8
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9
|
+
}
|
|
10
|
+
const GlobalSearch = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "IBizGlobalSearch",
|
|
12
|
+
props: {
|
|
13
|
+
modelData: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
controller: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(props) {
|
|
23
|
+
const c = props.controller;
|
|
24
|
+
const ns = useNamespace("global-search");
|
|
25
|
+
const loading = ref(false);
|
|
26
|
+
const list = ref([]);
|
|
27
|
+
const visible = ref(false);
|
|
28
|
+
const editorRef = ref();
|
|
29
|
+
const onSearch = async () => {
|
|
30
|
+
visible.value = true;
|
|
31
|
+
loading.value = true;
|
|
32
|
+
try {
|
|
33
|
+
list.value = c.state.query ? await c.search(c.state.query) : [];
|
|
34
|
+
} catch (error) {
|
|
35
|
+
ibiz.log.error(error);
|
|
36
|
+
} finally {
|
|
37
|
+
loading.value = false;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const handleEnter = (event) => {
|
|
41
|
+
if (event.key === "Enter")
|
|
42
|
+
onSearch();
|
|
43
|
+
};
|
|
44
|
+
const handleClear = () => {
|
|
45
|
+
list.value = [];
|
|
46
|
+
};
|
|
47
|
+
const handleHistoryItemClick = async (event, value) => {
|
|
48
|
+
event.stopPropagation();
|
|
49
|
+
c.state.query = value;
|
|
50
|
+
await onSearch();
|
|
51
|
+
};
|
|
52
|
+
const handleSearchItemClick = async (event, data, item) => {
|
|
53
|
+
event.stopPropagation();
|
|
54
|
+
c.state.query = data[c.textName];
|
|
55
|
+
visible.value = false;
|
|
56
|
+
handleClear();
|
|
57
|
+
await c.openLinkView(data, item);
|
|
58
|
+
};
|
|
59
|
+
const handleClickOutside = (event) => {
|
|
60
|
+
if (!event.target.closest(".".concat(ns.b())) && !event.target.closest(".el-input__suffix")) {
|
|
61
|
+
visible.value = false;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const handleInputClick = (event) => {
|
|
65
|
+
event.stopPropagation();
|
|
66
|
+
visible.value = true;
|
|
67
|
+
};
|
|
68
|
+
const handleClearHistory = (event) => {
|
|
69
|
+
event.stopPropagation();
|
|
70
|
+
visible.value = false;
|
|
71
|
+
handleClear();
|
|
72
|
+
c.clearHistory();
|
|
73
|
+
};
|
|
74
|
+
const handleKeyup = (event) => {
|
|
75
|
+
var _a;
|
|
76
|
+
if (event.key === "\\")
|
|
77
|
+
(_a = editorRef.value) == null ? void 0 : _a.focus();
|
|
78
|
+
};
|
|
79
|
+
onMounted(() => {
|
|
80
|
+
document.addEventListener("click", handleClickOutside);
|
|
81
|
+
document.addEventListener("keyup", handleKeyup);
|
|
82
|
+
});
|
|
83
|
+
onUnmounted(() => {
|
|
84
|
+
document.removeEventListener("click", handleClickOutside);
|
|
85
|
+
document.removeEventListener("keyup", handleKeyup);
|
|
86
|
+
});
|
|
87
|
+
const renderBlankPlaceholder = () => {
|
|
88
|
+
if (!c.state.query && !c.state.histories.length || c.state.query && !list.value.length)
|
|
89
|
+
return withDirectives(createVNode("div", {
|
|
90
|
+
"class": ns.e("empty")
|
|
91
|
+
}, [loading.value ? ibiz.i18n.t("panelComponent.globalSearch.loading") : ibiz.i18n.t("panelComponent.globalSearch.empty")]), [[resolveDirective("loading"), loading.value]]);
|
|
92
|
+
};
|
|
93
|
+
const renderAction = () => {
|
|
94
|
+
let _slot;
|
|
95
|
+
if (!c.state.query && c.state.histories.length)
|
|
96
|
+
return createVNode("div", {
|
|
97
|
+
"class": ns.em("content", "action-item")
|
|
98
|
+
}, [createVNode(resolveComponent("el-button"), {
|
|
99
|
+
"text": true,
|
|
100
|
+
"onClick": handleClearHistory
|
|
101
|
+
}, _isSlot(_slot = ibiz.i18n.t("panelComponent.globalSearch.clearHistory")) ? _slot : {
|
|
102
|
+
default: () => [_slot]
|
|
103
|
+
})]);
|
|
104
|
+
};
|
|
105
|
+
const renderHistoryList = () => {
|
|
106
|
+
return createVNode("div", {
|
|
107
|
+
"class": ns.e("list")
|
|
108
|
+
}, [c.state.histories.map((history) => {
|
|
109
|
+
return createVNode("div", {
|
|
110
|
+
"onClick": (event) => handleHistoryItemClick(event, history),
|
|
111
|
+
"class": [ns.em("list", "item"), ns.em("list", "history-item")]
|
|
112
|
+
}, [history]);
|
|
113
|
+
})]);
|
|
114
|
+
};
|
|
115
|
+
const renderSearchList = () => {
|
|
116
|
+
return createVNode("div", {
|
|
117
|
+
"class": ns.e("list")
|
|
118
|
+
}, [list.value.map((item) => {
|
|
119
|
+
const searchItem = c.getSearchItemByEntity(item.srfdecodename);
|
|
120
|
+
let content = item[c.textName];
|
|
121
|
+
if (searchItem == null ? void 0 : searchItem.acItemProvider) {
|
|
122
|
+
content = h(resolveComponent(searchItem.acItemProvider.component), {
|
|
123
|
+
item,
|
|
124
|
+
controller: c
|
|
125
|
+
});
|
|
126
|
+
} else if (searchItem == null ? void 0 : searchItem.deACMode.itemLayoutPanel) {
|
|
127
|
+
content = createVNode(resolveComponent("iBizControlShell"), {
|
|
128
|
+
"data": item,
|
|
129
|
+
"modelData": searchItem.deACMode.itemLayoutPanel,
|
|
130
|
+
"context": c.panel.context,
|
|
131
|
+
"params": c.panel.params
|
|
132
|
+
}, null);
|
|
133
|
+
}
|
|
134
|
+
return createVNode("div", {
|
|
135
|
+
"class": [ns.em("list", "item"), ns.em("list", "srearch-item")],
|
|
136
|
+
"onClick": (event) => handleSearchItemClick(event, item, searchItem),
|
|
137
|
+
"title": showTitle(item[c.textName])
|
|
138
|
+
}, [content]);
|
|
139
|
+
})]);
|
|
140
|
+
};
|
|
141
|
+
return {
|
|
142
|
+
c,
|
|
143
|
+
ns,
|
|
144
|
+
list,
|
|
145
|
+
visible,
|
|
146
|
+
editorRef,
|
|
147
|
+
handleClear,
|
|
148
|
+
handleEnter,
|
|
149
|
+
renderAction,
|
|
150
|
+
renderSearchList,
|
|
151
|
+
renderHistoryList,
|
|
152
|
+
handleInputClick,
|
|
153
|
+
renderBlankPlaceholder
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
render() {
|
|
157
|
+
return createVNode("div", {
|
|
158
|
+
"class": this.ns.b()
|
|
159
|
+
}, [createVNode(resolveComponent("el-popover"), {
|
|
160
|
+
"width": "auto",
|
|
161
|
+
"visible": this.visible,
|
|
162
|
+
"placement": "bottom-start",
|
|
163
|
+
"popper-class": this.ns.e("popper")
|
|
164
|
+
}, {
|
|
165
|
+
reference: () => {
|
|
166
|
+
return createVNode(resolveComponent("el-input"), {
|
|
167
|
+
"clearable": true,
|
|
168
|
+
"ref": "editorRef",
|
|
169
|
+
"onKeyup": this.handleEnter,
|
|
170
|
+
"modelValue": this.c.state.query,
|
|
171
|
+
"onUpdate:modelValue": ($event) => this.c.state.query = $event,
|
|
172
|
+
"placeholder": ibiz.i18n.t("panelComponent.globalSearch.placeholder"),
|
|
173
|
+
"class": [this.ns.e("search"), this.ns.is("search", this.visible)],
|
|
174
|
+
"onClick": this.handleInputClick,
|
|
175
|
+
"onClear": this.handleClear
|
|
176
|
+
}, {
|
|
177
|
+
prefix: () => {
|
|
178
|
+
return createVNode("ion-icon", {
|
|
179
|
+
"name": "search",
|
|
180
|
+
"class": this.ns.em("search", "icon")
|
|
181
|
+
}, null);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
},
|
|
185
|
+
default: () => {
|
|
186
|
+
return createVNode("div", {
|
|
187
|
+
"class": this.ns.e("content")
|
|
188
|
+
}, [this.c.state.query ? this.renderSearchList() : this.renderHistoryList(), this.renderBlankPlaceholder(), this.renderAction()]);
|
|
189
|
+
}
|
|
190
|
+
})]);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
export { GlobalSearch };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
2
|
+
import { PanelController, IPanelItemProvider, PanelItemController } from '@ibiz-template/runtime';
|
|
3
|
+
import { GlobalSearchController } from './global-search.controller';
|
|
4
|
+
/**
|
|
5
|
+
* 全局搜索适配器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class GlobalSearchProvider
|
|
9
|
+
* @implements {IPanelItemProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class GlobalSearchProvider implements IPanelItemProvider {
|
|
12
|
+
component: string;
|
|
13
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<GlobalSearchController>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GlobalSearchController } from './global-search.controller.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class GlobalSearchProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
__publicField(this, "component", "IBizGlobalSearch");
|
|
13
|
+
}
|
|
14
|
+
async createController(panelItem, panel, parent) {
|
|
15
|
+
const c = new GlobalSearchController(panelItem, panel, parent);
|
|
16
|
+
await c.init();
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { GlobalSearchProvider };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IAcItemProvider, PanelItemState } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppDEACMode } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* 全局搜索项
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @interface ISearchItem
|
|
8
|
+
*/
|
|
9
|
+
export interface ISearchItem {
|
|
10
|
+
/**
|
|
11
|
+
* 实体标识
|
|
12
|
+
*
|
|
13
|
+
* @type {string}
|
|
14
|
+
* @memberof ISearchItem
|
|
15
|
+
*/
|
|
16
|
+
appDataEntityId: string;
|
|
17
|
+
/**
|
|
18
|
+
* 实体自填模式
|
|
19
|
+
*
|
|
20
|
+
* @type {IAppDEACMode}
|
|
21
|
+
* @memberof ISearchItem
|
|
22
|
+
*/
|
|
23
|
+
deACMode: IAppDEACMode;
|
|
24
|
+
/**
|
|
25
|
+
* 自填列表项适配器
|
|
26
|
+
*
|
|
27
|
+
* @type {IAcItemProvider}
|
|
28
|
+
* @memberof ISearchItem
|
|
29
|
+
*/
|
|
30
|
+
acItemProvider?: IAcItemProvider;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 全局搜索状态
|
|
34
|
+
*
|
|
35
|
+
* @export
|
|
36
|
+
* @class GlobalSearchState
|
|
37
|
+
* @extends {PanelItemState}
|
|
38
|
+
*/
|
|
39
|
+
export declare class GlobalSearchState extends PanelItemState {
|
|
40
|
+
/**
|
|
41
|
+
* 当前快速搜索值
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GlobalSearchState
|
|
45
|
+
*/
|
|
46
|
+
query: string;
|
|
47
|
+
/**
|
|
48
|
+
* 自填模式全局搜索项
|
|
49
|
+
*
|
|
50
|
+
* @type {ISearchItem[]}
|
|
51
|
+
* @memberof GlobalSearchState
|
|
52
|
+
*/
|
|
53
|
+
items: ISearchItem[];
|
|
54
|
+
/**
|
|
55
|
+
* 搜索历史记录
|
|
56
|
+
*
|
|
57
|
+
* @type {string[]}
|
|
58
|
+
* @memberof GlobalSearchState
|
|
59
|
+
*/
|
|
60
|
+
histories: string[];
|
|
61
|
+
}
|