@ibiz-template/vue3-components 0.2.11 → 0.2.13
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/ibiz-markdown-editor-7GWpRewm.js +2 -0
- package/dist/ibiz-markdown-editor-7GWpRewm.js.map +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +5 -5
- package/dist/index.system.min.js.map +1 -1
- package/es/common/index.d.ts +0 -8
- package/es/common/index.mjs +2 -8
- package/es/control/app-menu/index.d.ts +0 -1
- package/es/control/app-menu/index.mjs +1 -1
- package/es/control/app-menu-icon-view/index.d.ts +0 -1
- package/es/control/app-menu-icon-view/index.mjs +1 -1
- package/es/control/calendar/calendar.mjs +1 -2
- package/es/control/calendar/index.d.ts +0 -1
- package/es/control/calendar/index.mjs +1 -1
- package/es/control/caption-bar/index.d.ts +0 -1
- package/es/control/caption-bar/index.mjs +1 -1
- package/es/control/chart/index.mjs +1 -2
- package/es/control/dashboard/index.d.ts +0 -1
- package/es/control/dashboard/index.mjs +1 -9
- package/es/control/dashboard/portlet/actionbar-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/actionbar-portlet/index.mjs +1 -1
- package/es/control/dashboard/portlet/chart-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/chart-portlet/index.mjs +1 -1
- package/es/control/dashboard/portlet/container-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/container-portlet/index.mjs +1 -1
- package/es/control/dashboard/portlet/html-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/html-portlet/index.mjs +1 -1
- package/es/control/dashboard/portlet/index.mjs +0 -8
- package/es/control/dashboard/portlet/list-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/list-portlet/index.mjs +1 -1
- package/es/control/dashboard/portlet/menu-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/menu-portlet/index.mjs +1 -1
- package/es/control/dashboard/portlet/rawitem-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/rawitem-portlet/index.mjs +1 -1
- package/es/control/dashboard/portlet/view-portlet/index.d.ts +0 -1
- package/es/control/dashboard/portlet/view-portlet/index.mjs +1 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +50 -2
- package/es/control/drbar/index.d.ts +0 -1
- package/es/control/drbar/index.mjs +1 -1
- package/es/control/drtab/index.d.ts +0 -1
- package/es/control/drtab/index.mjs +1 -1
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +0 -1
- package/es/control/exp-bar/calendar-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/index.mjs +0 -3
- package/es/control/exp-bar/list-exp-bar/index.d.ts +0 -1
- package/es/control/exp-bar/list-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/render-util.mjs +1 -1
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +0 -1
- package/es/control/exp-bar/tree-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.mjs +1 -0
- package/es/control/form/form-detail/form-button/index.d.ts +0 -1
- package/es/control/form/form-detail/form-button/index.mjs +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-druipart/index.d.ts +0 -1
- package/es/control/form/form-detail/form-druipart/index.mjs +1 -1
- package/es/control/form/form-detail/form-group-panel/index.d.ts +0 -1
- package/es/control/form/form-detail/form-group-panel/index.mjs +1 -1
- package/es/control/form/form-detail/form-item/index.d.ts +0 -1
- package/es/control/form/form-detail/form-item/index.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.mjs +7 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/index.d.ts +0 -1
- package/es/control/form/form-detail/form-mdctrl/index.mjs +1 -1
- package/es/control/form/form-detail/form-page/index.d.ts +0 -1
- package/es/control/form/form-detail/form-page/index.mjs +1 -1
- package/es/control/form/form-detail/form-rawitem/index.d.ts +0 -1
- package/es/control/form/form-detail/form-rawitem/index.mjs +1 -1
- package/es/control/form/form-detail/form-tab-page/index.d.ts +0 -1
- package/es/control/form/form-detail/form-tab-page/index.mjs +1 -1
- package/es/control/form/form-detail/form-tab-panel/index.d.ts +0 -1
- package/es/control/form/form-detail/form-tab-panel/index.mjs +1 -1
- package/es/control/form/form-detail/index.mjs +0 -9
- package/es/control/form/index.mjs +0 -10
- package/es/control/form/search-form/index.d.ts +0 -1
- package/es/control/form/search-form/index.mjs +1 -1
- package/es/control/grid/grid/index.d.ts +0 -1
- package/es/control/grid/grid/index.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +0 -1
- package/es/control/grid/grid-column/grid-field-column/index.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +0 -1
- package/es/control/grid/grid-column/grid-field-edit-column/index.mjs +1 -1
- package/es/control/grid/grid-column/grid-group-column/index.d.ts +0 -1
- package/es/control/grid/grid-column/grid-group-column/index.mjs +1 -1
- package/es/control/grid/grid-column/grid-ua-column/index.d.ts +0 -1
- package/es/control/grid/grid-column/grid-ua-column/index.mjs +1 -1
- package/es/control/grid/grid-column/index.mjs +0 -4
- package/es/control/grid/index.mjs +0 -5
- package/es/control/index.mjs +0 -45
- package/es/control/kanban/index.d.ts +0 -1
- package/es/control/kanban/index.mjs +1 -1
- package/es/control/list/index.d.ts +0 -1
- package/es/control/list/index.mjs +1 -1
- package/es/control/medit-view-panel/index.d.ts +0 -1
- package/es/control/medit-view-panel/index.mjs +1 -1
- package/es/control/panel/index.mjs +0 -2
- package/es/control/panel/panel/index.d.ts +0 -1
- package/es/control/panel/panel/index.mjs +1 -1
- package/es/control/panel/view-layout-panel/index.d.ts +0 -1
- package/es/control/panel/view-layout-panel/index.mjs +1 -1
- package/es/control/pickup-view-panel/index.d.ts +0 -1
- package/es/control/pickup-view-panel/index.mjs +1 -1
- package/es/control/search-bar/index.d.ts +0 -1
- package/es/control/search-bar/index.mjs +1 -1
- package/es/control/tab-exp-panel/index.d.ts +0 -1
- package/es/control/tab-exp-panel/index.mjs +1 -1
- package/es/control/toolbar/toolbar.mjs +2 -2
- package/es/control/tree/el-tree-util.d.ts +2 -1
- package/es/control/tree/el-tree-util.mjs +13 -1
- package/es/control/tree/index.d.ts +10 -2
- package/es/control/tree/index.mjs +1 -1
- package/es/control/tree/tree.d.ts +10 -1
- package/es/control/tree/tree.mjs +14 -1
- package/es/control/tree-grid/index.d.ts +0 -1
- package/es/control/tree-grid/index.mjs +1 -1
- package/es/control/tree-grid-ex/index.d.ts +0 -1
- package/es/control/tree-grid-ex/index.mjs +1 -1
- package/es/control/wizard-panel/index.d.ts +0 -1
- package/es/control/wizard-panel/index.mjs +1 -1
- package/es/devtool/index.mjs +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.mjs +1 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +4 -3
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +25 -5
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +1 -1
- package/es/editor/index.mjs +54 -1
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -3
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -1
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +1 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -1
- package/es/editor/span/span/span.d.ts +3 -3
- package/es/editor/span/span/span.mjs +30 -2
- package/es/editor/span/span-link/span-link.d.ts +3 -3
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -1
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
- package/es/editor/text-box/input/input.d.ts +2 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -1
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -1
- package/es/index.mjs +4 -100
- package/es/node_modules/.pnpm/{element-plus@2.4.1_vue@3.3.7 → element-plus@2.4.2_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.mjs +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +1 -3
- package/es/panel-component/auth-userinfo/index.d.ts +0 -2
- package/es/panel-component/auth-userinfo/index.mjs +1 -1
- package/es/panel-component/index-actions/index-actions.d.ts +1 -1
- package/es/panel-component/index-actions/index-actions.mjs +1 -3
- package/es/panel-component/index-actions/index-actions.provider.mjs +1 -2
- package/es/panel-component/index-actions/index.d.ts +2 -4
- package/es/panel-component/index-actions/index.mjs +1 -1
- package/es/panel-component/index.d.ts +0 -7
- package/es/panel-component/index.mjs +2 -37
- package/es/panel-component/nav-pos-index/index.d.ts +1 -2
- package/es/panel-component/nav-pos-index/index.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +1 -2
- package/es/panel-component/nav-tabs/index.d.ts +0 -1
- package/es/panel-component/nav-tabs/index.mjs +1 -1
- package/es/panel-component/panel-app-header/index.d.ts +0 -2
- package/es/panel-component/panel-app-header/index.mjs +1 -1
- package/es/panel-component/panel-app-login-view/index.d.ts +1 -2
- package/es/panel-component/panel-app-login-view/index.mjs +1 -1
- package/es/panel-component/panel-app-title/index.d.ts +0 -1
- package/es/panel-component/panel-app-title/index.mjs +1 -1
- package/es/panel-component/panel-button/index.d.ts +1 -2
- package/es/panel-component/panel-button/index.mjs +1 -1
- package/es/panel-component/panel-button/panel-button.d.ts +1 -1
- package/es/panel-component/panel-exp-header/index.d.ts +0 -2
- package/es/panel-component/panel-exp-header/index.mjs +1 -1
- package/es/panel-component/panel-index-view-search/index.d.ts +0 -1
- package/es/panel-component/panel-index-view-search/index.mjs +1 -1
- package/es/panel-component/panel-remember-me/index.d.ts +1 -2
- package/es/panel-component/panel-remember-me/index.mjs +1 -1
- package/es/panel-component/panel-tab-page/index.d.ts +0 -1
- package/es/panel-component/panel-tab-page/index.mjs +1 -1
- package/es/panel-component/panel-tab-panel/index.d.ts +0 -1
- package/es/panel-component/panel-tab-panel/index.mjs +1 -1
- package/es/panel-component/panel-view-content/index.d.ts +0 -2
- package/es/panel-component/panel-view-content/index.mjs +1 -1
- package/es/panel-component/panel-view-header/index.d.ts +0 -2
- package/es/panel-component/panel-view-header/index.mjs +1 -1
- package/es/panel-component/split-container/index.d.ts +1 -2
- package/es/panel-component/split-container/index.mjs +1 -1
- package/es/util/app-drawer/app-drawer-component.mjs +1 -4
- package/es/util/app-float-window/app-float-window-component.mjs +1 -4
- package/es/util/app-modal/app-modal-component.mjs +1 -4
- package/es/util/app-popover/app-popover-component.d.ts +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -4
- package/es/util/index.d.ts +0 -4
- package/es/util/index.mjs +0 -6
- package/es/util/open-view-util/open-view-util.mjs +1 -3
- package/es/view/index.d.ts +0 -4
- package/es/view/index.mjs +0 -7
- package/es/view/wf-step-trace-view/index.d.ts +0 -2
- package/es/view/wf-step-trace-view/index.mjs +1 -1
- package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
- package/es/view-engine/tab-exp-view.engine.mjs +15 -0
- package/lib/common/index.cjs +7 -20
- package/lib/control/app-menu/index.cjs +0 -1
- package/lib/control/app-menu-icon-view/index.cjs +0 -1
- package/lib/control/calendar/calendar.cjs +1 -2
- package/lib/control/calendar/index.cjs +0 -1
- package/lib/control/caption-bar/index.cjs +0 -1
- package/lib/control/chart/index.cjs +2 -3
- package/lib/control/dashboard/index.cjs +0 -17
- package/lib/control/dashboard/portlet/actionbar-portlet/index.cjs +0 -1
- package/lib/control/dashboard/portlet/chart-portlet/index.cjs +0 -1
- package/lib/control/dashboard/portlet/container-portlet/index.cjs +0 -1
- package/lib/control/dashboard/portlet/html-portlet/index.cjs +0 -1
- package/lib/control/dashboard/portlet/index.cjs +0 -16
- package/lib/control/dashboard/portlet/list-portlet/index.cjs +0 -1
- package/lib/control/dashboard/portlet/menu-portlet/index.cjs +0 -1
- package/lib/control/dashboard/portlet/rawitem-portlet/index.cjs +0 -1
- package/lib/control/dashboard/portlet/view-portlet/index.cjs +0 -1
- package/lib/control/data-view/data-view.cjs +50 -2
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/index.cjs +0 -1
- package/lib/control/drtab/index.cjs +0 -1
- package/lib/control/exp-bar/calendar-exp-bar/index.cjs +0 -1
- package/lib/control/exp-bar/index.cjs +0 -6
- package/lib/control/exp-bar/list-exp-bar/index.cjs +0 -1
- package/lib/control/exp-bar/render-util.cjs +1 -1
- package/lib/control/exp-bar/tree-exp-bar/index.cjs +0 -1
- package/lib/control/exp-bar/tree-exp-bar/tree-exp-bar.cjs +1 -0
- package/lib/control/form/form-detail/form-button/index.cjs +0 -1
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-druipart/index.cjs +0 -1
- package/lib/control/form/form-detail/form-group-panel/index.cjs +0 -1
- package/lib/control/form/form-detail/form-item/index.cjs +0 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.cjs +6 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/index.cjs +0 -1
- package/lib/control/form/form-detail/form-page/index.cjs +0 -1
- package/lib/control/form/form-detail/form-rawitem/index.cjs +0 -1
- package/lib/control/form/form-detail/form-tab-page/index.cjs +0 -1
- package/lib/control/form/form-detail/form-tab-panel/index.cjs +0 -1
- package/lib/control/form/form-detail/index.cjs +0 -18
- package/lib/control/form/index.cjs +0 -20
- package/lib/control/form/search-form/index.cjs +0 -1
- package/lib/control/grid/grid/index.cjs +0 -1
- package/lib/control/grid/grid-column/grid-field-column/index.cjs +0 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/index.cjs +0 -1
- package/lib/control/grid/grid-column/grid-group-column/index.cjs +0 -1
- package/lib/control/grid/grid-column/grid-ua-column/index.cjs +0 -1
- package/lib/control/grid/grid-column/index.cjs +0 -8
- package/lib/control/grid/index.cjs +0 -10
- package/lib/control/index.cjs +0 -90
- package/lib/control/kanban/index.cjs +0 -1
- package/lib/control/list/index.cjs +0 -1
- package/lib/control/medit-view-panel/index.cjs +0 -1
- package/lib/control/panel/index.cjs +0 -4
- package/lib/control/panel/panel/index.cjs +0 -1
- package/lib/control/panel/view-layout-panel/index.cjs +0 -1
- package/lib/control/pickup-view-panel/index.cjs +0 -1
- package/lib/control/search-bar/index.cjs +0 -1
- package/lib/control/tab-exp-panel/index.cjs +0 -1
- package/lib/control/toolbar/toolbar.cjs +2 -2
- package/lib/control/tree/el-tree-util.cjs +13 -1
- package/lib/control/tree/index.cjs +0 -1
- package/lib/control/tree/tree.cjs +14 -1
- package/lib/control/tree-grid/index.cjs +0 -1
- package/lib/control/tree-grid-ex/index.cjs +0 -1
- package/lib/control/wizard-panel/index.cjs +0 -1
- package/lib/devtool/index.cjs +1 -1
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +1 -3
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +25 -5
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/lib/editor/index.cjs +54 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -3
- package/lib/editor/span/span/span.cjs +30 -2
- package/lib/index.cjs +30 -224
- package/lib/node_modules/.pnpm/{element-plus@2.4.1_vue@3.3.7 → element-plus@2.4.2_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.cjs +1 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +1 -3
- package/lib/panel-component/auth-userinfo/index.cjs +0 -1
- package/lib/panel-component/index-actions/index-actions.cjs +1 -3
- package/lib/panel-component/index-actions/index-actions.provider.cjs +2 -3
- package/lib/panel-component/index-actions/index.cjs +0 -1
- package/lib/panel-component/index.cjs +51 -119
- package/lib/panel-component/nav-pos-index/index.cjs +0 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +3 -4
- package/lib/panel-component/nav-tabs/index.cjs +0 -1
- package/lib/panel-component/panel-app-header/index.cjs +0 -1
- package/lib/panel-component/panel-app-login-view/index.cjs +0 -1
- package/lib/panel-component/panel-app-title/index.cjs +0 -1
- package/lib/panel-component/panel-button/index.cjs +0 -1
- package/lib/panel-component/panel-exp-header/index.cjs +0 -1
- package/lib/panel-component/panel-index-view-search/index.cjs +0 -1
- package/lib/panel-component/panel-remember-me/index.cjs +0 -1
- package/lib/panel-component/panel-tab-page/index.cjs +0 -1
- package/lib/panel-component/panel-tab-panel/index.cjs +0 -1
- package/lib/panel-component/panel-view-content/index.cjs +0 -1
- package/lib/panel-component/panel-view-header/index.cjs +0 -1
- package/lib/panel-component/split-container/index.cjs +0 -1
- package/lib/util/app-drawer/app-drawer-component.cjs +2 -5
- package/lib/util/app-float-window/app-float-window-component.cjs +2 -5
- package/lib/util/app-modal/app-modal-component.cjs +2 -5
- package/lib/util/app-popover/app-popover-component.cjs +2 -5
- package/lib/util/index.cjs +0 -12
- package/lib/util/open-view-util/open-view-util.cjs +6 -8
- package/lib/view/index.cjs +2 -16
- package/lib/view/wf-step-trace-view/index.cjs +0 -1
- package/lib/view-engine/tab-exp-view.engine.cjs +15 -0
- package/package.json +10 -10
- package/dist/ibiz-markdown-editor-ruHo8Z-f.js +0 -2
- package/dist/ibiz-markdown-editor-ruHo8Z-f.js.map +0 -1
- package/es/common/code-list/code-list.css +0 -1
- package/es/common/code-list/code-list.d.ts +0 -57
- package/es/common/code-list/code-list.mjs +0 -84
- package/es/common/control-base/control-base.css +0 -1
- package/es/common/control-base/control-base.d.ts +0 -1
- package/es/common/control-base/control-base.mjs +0 -98
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +0 -30
- package/es/common/control-loading-placeholder/control-loading-placeholder.mjs +0 -30
- package/es/common/control-shell/control-shell.css +0 -1
- package/es/common/control-shell/control-shell.d.ts +0 -20
- package/es/common/control-shell/control-shell.mjs +0 -55
- package/es/common/icon/icon.d.ts +0 -28
- package/es/common/icon/icon.mjs +0 -88
- package/es/common/router-view/router-view.d.ts +0 -29
- package/es/common/router-view/router-view.mjs +0 -75
- package/es/common/view-shell/view-shell.css +0 -1
- package/es/common/view-shell/view-shell.d.ts +0 -39
- package/es/common/view-shell/view-shell.mjs +0 -76
- package/es/panel-component/grid-container/grid-container.controller.d.ts +0 -14
- package/es/panel-component/grid-container/grid-container.controller.mjs +0 -12
- package/es/panel-component/grid-container/grid-container.css +0 -1
- package/es/panel-component/grid-container/grid-container.d.ts +0 -37
- package/es/panel-component/grid-container/grid-container.mjs +0 -105
- package/es/panel-component/grid-container/grid-container.provider.d.ts +0 -15
- package/es/panel-component/grid-container/grid-container.provider.mjs +0 -21
- package/es/panel-component/grid-container/grid-container.state.d.ts +0 -12
- package/es/panel-component/grid-container/grid-container.state.mjs +0 -7
- package/es/panel-component/grid-container/index.d.ts +0 -38
- package/es/panel-component/grid-container/index.mjs +0 -17
- package/es/panel-component/multi-data-container/index.d.ts +0 -37
- package/es/panel-component/multi-data-container/index.mjs +0 -20
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts +0 -60
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.mjs +0 -123
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts +0 -19
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.mjs +0 -23
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +0 -106
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +0 -266
- package/es/panel-component/multi-data-container/multi-data-container.css +0 -1
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +0 -35
- package/es/panel-component/multi-data-container/multi-data-container.mjs +0 -86
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts +0 -15
- package/es/panel-component/multi-data-container/multi-data-container.provider.mjs +0 -21
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +0 -19
- package/es/panel-component/multi-data-container/multi-data-container.state.mjs +0 -23
- package/es/panel-component/nav-pos/index.d.ts +0 -28
- package/es/panel-component/nav-pos/index.mjs +0 -14
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +0 -161
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +0 -281
- package/es/panel-component/nav-pos/nav-pos.css +0 -1
- package/es/panel-component/nav-pos/nav-pos.d.ts +0 -28
- package/es/panel-component/nav-pos/nav-pos.mjs +0 -102
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts +0 -22
- package/es/panel-component/nav-pos/nav-pos.provider.mjs +0 -30
- package/es/panel-component/nav-pos/nav-pos.state.d.ts +0 -49
- package/es/panel-component/nav-pos/nav-pos.state.mjs +0 -53
- package/es/panel-component/panel-container/index.d.ts +0 -27
- package/es/panel-component/panel-container/index.mjs +0 -21
- package/es/panel-component/panel-container/panel-container.controller.d.ts +0 -14
- package/es/panel-component/panel-container/panel-container.controller.mjs +0 -12
- package/es/panel-component/panel-container/panel-container.css +0 -1
- package/es/panel-component/panel-container/panel-container.d.ts +0 -26
- package/es/panel-component/panel-container/panel-container.mjs +0 -69
- package/es/panel-component/panel-container/panel-container.provider.d.ts +0 -15
- package/es/panel-component/panel-container/panel-container.provider.mjs +0 -21
- package/es/panel-component/panel-container/panel-container.state.d.ts +0 -12
- package/es/panel-component/panel-container/panel-container.state.mjs +0 -7
- package/es/panel-component/panel-ctrl-pos/index.d.ts +0 -25
- package/es/panel-component/panel-ctrl-pos/index.mjs +0 -13
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +0 -35
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.mjs +0 -39
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +0 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +0 -24
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +0 -44
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts +0 -16
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.mjs +0 -21
- package/es/panel-component/panel-field/index.d.ts +0 -26
- package/es/panel-component/panel-field/index.mjs +0 -13
- package/es/panel-component/panel-field/panel-field.controller.d.ts +0 -74
- package/es/panel-component/panel-field/panel-field.controller.mjs +0 -111
- package/es/panel-component/panel-field/panel-field.css +0 -1
- package/es/panel-component/panel-field/panel-field.d.ts +0 -27
- package/es/panel-component/panel-field/panel-field.mjs +0 -72
- package/es/panel-component/panel-field/panel-field.provider.d.ts +0 -14
- package/es/panel-component/panel-field/panel-field.provider.mjs +0 -21
- package/es/panel-component/panel-field/panel-field.state.d.ts +0 -12
- package/es/panel-component/panel-field/panel-field.state.mjs +0 -7
- package/es/panel-component/panel-rawitem/index.d.ts +0 -25
- package/es/panel-component/panel-rawitem/index.mjs +0 -17
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts +0 -28
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.mjs +0 -28
- package/es/panel-component/panel-rawitem/panel-rawitem.css +0 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +0 -26
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +0 -49
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts +0 -14
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.mjs +0 -21
- package/es/panel-component/scroll-container/index.d.ts +0 -25
- package/es/panel-component/scroll-container/index.mjs +0 -45
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +0 -3
- package/es/panel-component/scroll-container/scroll-container/index.mjs +0 -5
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +0 -22
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +0 -12
- package/es/panel-component/scroll-container/scroll-container/scroll-container.css +0 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +0 -26
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +0 -111
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts +0 -16
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.mjs +0 -21
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +0 -3
- package/es/panel-component/scroll-container/scroll-container-item/index.mjs +0 -5
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +0 -21
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +0 -7
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +0 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +0 -26
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +0 -63
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts +0 -16
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.mjs +0 -21
- package/es/panel-component/single-data-container/index.d.ts +0 -37
- package/es/panel-component/single-data-container/index.mjs +0 -20
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +0 -121
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +0 -291
- package/es/panel-component/single-data-container/single-data-container.css +0 -1
- package/es/panel-component/single-data-container/single-data-container.d.ts +0 -35
- package/es/panel-component/single-data-container/single-data-container.mjs +0 -76
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts +0 -15
- package/es/panel-component/single-data-container/single-data-container.provider.mjs +0 -21
- package/es/panel-component/single-data-container/single-data-container.state.d.ts +0 -19
- package/es/panel-component/single-data-container/single-data-container.state.mjs +0 -23
- package/es/util/overlay-container/overlay-container.d.ts +0 -92
- package/es/util/overlay-container/overlay-container.mjs +0 -139
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts +0 -16
- package/es/util/overlay-popover-container/overlay-popover-container.mjs +0 -10
- package/es/util/overlay-view-util/overlay-view-util.d.ts +0 -8
- package/es/util/overlay-view-util/overlay-view-util.mjs +0 -63
- package/es/util/router-callback/router-callback-item.d.ts +0 -61
- package/es/util/router-callback/router-callback-item.mjs +0 -88
- package/es/util/router-callback/router-callback.d.ts +0 -59
- package/es/util/router-callback/router-callback.mjs +0 -92
- package/es/util/store/app-store/app-store.d.ts +0 -9
- package/es/util/store/app-store/app-store.mjs +0 -10
- package/es/util/store/index.d.ts +0 -3
- package/es/util/store/index.mjs +0 -8
- package/es/util/store/ui-store/ui-store.d.ts +0 -31
- package/es/util/store/ui-store/ui-store.mjs +0 -15
- package/es/util/store/ui-store/z-index.d.ts +0 -34
- package/es/util/store/ui-store/z-index.mjs +0 -18
- package/es/view/app-redirect-view/app-redirect-view.d.ts +0 -1
- package/es/view/app-redirect-view/app-redirect-view.mjs +0 -27
- package/es/view/common/index.d.ts +0 -50
- package/es/view/common/index.mjs +0 -14
- package/es/view/common/view.css +0 -1
- package/es/view/common/view.d.ts +0 -52
- package/es/view/common/view.mjs +0 -137
- package/es/view/common/view.provider.d.ts +0 -13
- package/es/view/common/view.provider.mjs +0 -14
- package/es/view/portal-view/index.d.ts +0 -42
- package/es/view/portal-view/index.mjs +0 -20
- package/es/view/portal-view/portal-view.d.ts +0 -43
- package/es/view/portal-view/portal-view.mjs +0 -91
- package/es/view/portal-view/portal-view.provider.d.ts +0 -13
- package/es/view/portal-view/portal-view.provider.mjs +0 -14
- package/es/view/todo-redirect/todo-redirect.d.ts +0 -1
- package/es/view/todo-redirect/todo-redirect.mjs +0 -52
- package/lib/common/code-list/code-list.cjs +0 -86
- package/lib/common/code-list/code-list.css +0 -1
- package/lib/common/control-base/control-base.cjs +0 -100
- package/lib/common/control-base/control-base.css +0 -1
- package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +0 -32
- package/lib/common/control-shell/control-shell.cjs +0 -57
- package/lib/common/control-shell/control-shell.css +0 -1
- package/lib/common/icon/icon.cjs +0 -90
- package/lib/common/router-view/router-view.cjs +0 -77
- package/lib/common/view-shell/view-shell.cjs +0 -78
- package/lib/common/view-shell/view-shell.css +0 -1
- package/lib/panel-component/grid-container/grid-container.cjs +0 -107
- package/lib/panel-component/grid-container/grid-container.controller.cjs +0 -14
- package/lib/panel-component/grid-container/grid-container.css +0 -1
- package/lib/panel-component/grid-container/grid-container.provider.cjs +0 -23
- package/lib/panel-component/grid-container/grid-container.state.cjs +0 -9
- package/lib/panel-component/grid-container/index.cjs +0 -25
- package/lib/panel-component/multi-data-container/index.cjs +0 -28
- package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +0 -125
- package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +0 -25
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +0 -88
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +0 -268
- package/lib/panel-component/multi-data-container/multi-data-container.css +0 -1
- package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +0 -23
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +0 -25
- package/lib/panel-component/nav-pos/index.cjs +0 -22
- package/lib/panel-component/nav-pos/nav-pos.cjs +0 -104
- package/lib/panel-component/nav-pos/nav-pos.controller.cjs +0 -283
- package/lib/panel-component/nav-pos/nav-pos.css +0 -1
- package/lib/panel-component/nav-pos/nav-pos.provider.cjs +0 -32
- package/lib/panel-component/nav-pos/nav-pos.state.cjs +0 -55
- package/lib/panel-component/panel-container/index.cjs +0 -29
- package/lib/panel-component/panel-container/panel-container.cjs +0 -71
- package/lib/panel-component/panel-container/panel-container.controller.cjs +0 -14
- package/lib/panel-component/panel-container/panel-container.css +0 -1
- package/lib/panel-component/panel-container/panel-container.provider.cjs +0 -23
- package/lib/panel-component/panel-container/panel-container.state.cjs +0 -9
- package/lib/panel-component/panel-ctrl-pos/index.cjs +0 -20
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +0 -46
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +0 -41
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +0 -1
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +0 -23
- package/lib/panel-component/panel-field/index.cjs +0 -20
- package/lib/panel-component/panel-field/panel-field.cjs +0 -74
- package/lib/panel-component/panel-field/panel-field.controller.cjs +0 -113
- package/lib/panel-component/panel-field/panel-field.css +0 -1
- package/lib/panel-component/panel-field/panel-field.provider.cjs +0 -23
- package/lib/panel-component/panel-field/panel-field.state.cjs +0 -9
- package/lib/panel-component/panel-rawitem/index.cjs +0 -24
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +0 -51
- package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +0 -30
- package/lib/panel-component/panel-rawitem/panel-rawitem.css +0 -1
- package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +0 -23
- package/lib/panel-component/scroll-container/index.cjs +0 -56
- package/lib/panel-component/scroll-container/scroll-container/index.cjs +0 -11
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +0 -113
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +0 -14
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +0 -1
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +0 -23
- package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +0 -11
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +0 -65
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +0 -9
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +0 -1
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +0 -23
- package/lib/panel-component/single-data-container/index.cjs +0 -28
- package/lib/panel-component/single-data-container/single-data-container.cjs +0 -78
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +0 -293
- package/lib/panel-component/single-data-container/single-data-container.css +0 -1
- package/lib/panel-component/single-data-container/single-data-container.provider.cjs +0 -23
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +0 -25
- package/lib/util/overlay-container/overlay-container.cjs +0 -141
- package/lib/util/overlay-popover-container/overlay-popover-container.cjs +0 -12
- package/lib/util/overlay-view-util/overlay-view-util.cjs +0 -70
- package/lib/util/router-callback/router-callback-item.cjs +0 -90
- package/lib/util/router-callback/router-callback.cjs +0 -95
- package/lib/util/store/app-store/app-store.cjs +0 -12
- package/lib/util/store/index.cjs +0 -12
- package/lib/util/store/ui-store/ui-store.cjs +0 -17
- package/lib/util/store/ui-store/z-index.cjs +0 -20
- package/lib/view/app-redirect-view/app-redirect-view.cjs +0 -29
- package/lib/view/common/index.cjs +0 -17
- package/lib/view/common/view.cjs +0 -139
- package/lib/view/common/view.css +0 -1
- package/lib/view/common/view.provider.cjs +0 -16
- package/lib/view/portal-view/index.cjs +0 -23
- package/lib/view/portal-view/portal-view.cjs +0 -93
- package/lib/view/portal-view/portal-view.provider.cjs +0 -16
- package/lib/view/todo-redirect/todo-redirect.cjs +0 -54
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@floating-ui/dom": "^1.5.3",
|
|
27
27
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
28
|
-
"@ibiz-template/core": "^0.2.
|
|
29
|
-
"@ibiz-template/model-helper": "^0.2.
|
|
30
|
-
"@ibiz-template/runtime": "^0.2.
|
|
31
|
-
"@ibiz-template/theme": "^0.2.
|
|
32
|
-
"@ibiz-template/vue3-util": "^0.2.
|
|
28
|
+
"@ibiz-template/core": "^0.2.13",
|
|
29
|
+
"@ibiz-template/model-helper": "^0.2.13",
|
|
30
|
+
"@ibiz-template/runtime": "^0.2.13",
|
|
31
|
+
"@ibiz-template/theme": "^0.2.13",
|
|
32
|
+
"@ibiz-template/vue3-util": "^0.2.13",
|
|
33
33
|
"@ibiz/model-core": "^0.0.20",
|
|
34
34
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
35
35
|
"@monaco-editor/loader": "^1.4.0",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@commitlint/cli": "^17.8.1",
|
|
59
59
|
"@commitlint/config-conventional": "^17.8.1",
|
|
60
60
|
"@ibiz-template/cli": "0.3.2",
|
|
61
|
-
"@types/lodash-es": "^4.17.
|
|
62
|
-
"@types/node": "^20.
|
|
63
|
-
"@types/qs": "^6.9.
|
|
64
|
-
"@types/ramda": "^0.29.
|
|
61
|
+
"@types/lodash-es": "^4.17.11",
|
|
62
|
+
"@types/node": "^20.9.0",
|
|
63
|
+
"@types/qs": "^6.9.10",
|
|
64
|
+
"@types/ramda": "^0.29.8",
|
|
65
65
|
"husky": "^8.0.3",
|
|
66
66
|
"lint-staged": "^15.0.2",
|
|
67
67
|
"stylelint": "^15.11.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown","@ibiz-template/core","element-plus","./index.system.min.js","lodash-es","@floating-ui/dom","@ibiz-template/runtime","interactjs","ramda","dayjs","vue-router","pinia","vuedraggable","qs","vue-i18n"],function(q){"use strict";var p,o,s,k,w,v,C,y,U,M,x,z,D,I,B;return{setters:[function(t){p=t.defineComponent,o=t.ref,s=t.watch,k=t.onMounted,w=t.onUnmounted,v=t.createVNode,C=t.nextTick},function(t){y=t.getMarkDownProps,U=t.getEditorEmits,M=t.useNamespace},function(t){x=t.createUUID,z=t.getCookie},function(t){D=t.default},function(t){I=t.CoreConst},null,function(t){B=t.useUIStore},null,null,null,null,null,null,null,null,null,null,null],execute:function(){const t=q("default",p({name:"IBizMarkDown",props:y(),emits:U(),setup(d,{emit:R}){const f=M("markdown"),i=d.controller,u=o(""),l=o(null),O=x(),j=o({Authorization:`Bearer ${z(I.TOKEN)}`}),E=o(""),S=o(""),{UIStore:N}=B(),c=o(N.theme),m=o("editOnly");let T=null,_=0;const b=o({});s(()=>d.data,e=>{if(e){const n=i.calcBaseUrl(e);E.value=n.uploadUrl,S.value=n.downloadUrl}},{immediate:!0,deep:!0});const h=o(),V=(e,n)=>{const r=new FormData;r.append("file",e),ibiz.net.axios({url:E.value,method:"post",headers:j.value,data:r}).then(a=>{if(a.status===200&&a.data.fileid){const K=S.value.replace("%fileId%",a.data.fileid);n(K)}}).catch(a=>{ibiz.log.error("\u4E0A\u4F20\u51FA\u9519",a)})},A=()=>{var e;return(e=l.value)==null?void 0:e.getHtml()},g=()=>{var e;return(e=l.value)==null?void 0:e.getMarkdown()},$=e=>{var n;(n=l.value)==null||n.setMarkdown(e,!1)};s(()=>d.value,(e,n)=>{e!==n&&(e?u.value=e:u.value="")},{immediate:!0}),s(u,(e,n)=>{const r=g();e!==n&&r!==e&&$(e)});const F=e=>{R("change",g())},P=(e,n)=>({[e]:n}),H=()=>{d.disabled&&(m.value="previewOnly"),C(()=>{l.value=new D({id:O,value:u.value,theme:c.value,fileUpload:V,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:m.value,codemirror:{autofocus:!1}},toolbars:{theme:c.value,toolbar:["bold","italic","underline","strikethrough","|","color","header","|","list","image",{insert:["link","hr","br","code","formula","toc","table","line-table","bar-table"]},"settings","togglePreview"],bubble:["bold","italic","underline","strikethrough","sub","sup","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"],customMenu:[],sidebar:[]},callback:{afterChange:F,beforeImageMounted:P}})})};s(()=>N.theme,e=>{var n;c.value=e,(n=l.value)==null||n.setTheme(c.value)});const W=()=>{if(window.ResizeObserver&&h.value){const e={width:`${h.value.offsetWidth}px`};typeof i.parent.model.height=="number"&&Object.assign(e,{height:`${i.parent.model.height}px`}),b.value=f.cssVarBlock(e),T=new ResizeObserver(n=>{const r=n[0].contentRect.width;if(r!==_){const a={width:`${n[0].contentRect.width}px`};typeof i.parent.model.height=="number"&&Object.assign(a,{height:`${i.parent.model.height}px`}),b.value=f.cssVarBlock(a),_=r}}),T.observe(h.value)}};return k(()=>{H(),W()}),w(()=>{l.value=null}),{ns:f,currentVal:u,id:O,editor:l,markDownBox:h,headers:j,theme:c,defaultModel:m,cssVars:b,getCherryHtml:A,getCherryContent:g,setCherryContent:$}},render(){return v("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled)]},[v("div",{id:this.id,style:this.cssVars,class:this.ns.b("cherry")},null)])}}))}}});
|
|
2
|
-
//# sourceMappingURL=ibiz-markdown-editor-ruHo8Z-f.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ibiz-markdown-editor-ruHo8Z-f.js","sources":["../src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx"],"sourcesContent":["import {\n defineComponent,\n nextTick,\n onMounted,\n onUnmounted,\n Ref,\n ref,\n watch,\n} from 'vue';\nimport {\n getMarkDownProps,\n getEditorEmits,\n useNamespace,\n} from '@ibiz-template/vue3-util';\nimport { getCookie, createUUID } from 'qx-util';\nimport Cherry from 'cherry-markdown';\nimport { CoreConst } from '@ibiz-template/core';\nimport { MarkDownEditorController } from '../markdown-editor.controller';\nimport { useUIStore } from '../../../util';\nimport './ibiz-markdown-editor.scss';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst IBizMarkDown: any = defineComponent({\n name: 'IBizMarkDown',\n props: getMarkDownProps<MarkDownEditorController>(),\n emits: getEditorEmits(),\n setup(props, { emit }) {\n const ns = useNamespace('markdown');\n\n const c = props.controller!;\n\n const currentVal = ref<string>('');\n\n const editor = ref<Cherry | null>(null);\n\n const id = createUUID();\n\n // 请求头\n const headers: Ref<IData> = ref({\n Authorization: `Bearer ${getCookie(CoreConst.TOKEN)}`,\n });\n\n // 上传文件路径\n const uploadUrl: Ref<string> = ref('');\n\n // 下载文件路径\n const downloadUrl: Ref<string> = ref('');\n\n // 编辑器主题\n const { UIStore } = useUIStore();\n const theme = ref(UIStore.theme);\n\n // 编辑器模式\n const defaultModel = ref('editOnly');\n\n // 浏览器ResizeObserver对象\n let resizeObserver: ResizeObserver | null = null;\n\n // 上次监听到的markdown外层宽度,一旦发生变化就重新计算\n let lastMarkDownWidth = 0;\n\n // 样式变量\n const cssVars = ref({});\n\n // data响应式变更基础路径\n watch(\n () => props.data,\n newVal => {\n if (newVal) {\n const urls = c.calcBaseUrl(newVal);\n uploadUrl.value = urls.uploadUrl;\n downloadUrl.value = urls.downloadUrl;\n }\n },\n { immediate: true, deep: true },\n );\n\n // markdown Ref\n const markDownBox = ref();\n\n // 自定义图片上传\n const fileUpload = (file: Blob, callback: (_url: string) => void) => {\n const formData = new FormData();\n formData.append('file', file);\n ibiz.net\n .axios({\n url: uploadUrl.value,\n method: 'post',\n headers: headers.value,\n data: formData,\n })\n .then((res: IData) => {\n if (res.status === 200 && res.data.fileid) {\n const url = downloadUrl.value.replace('%fileId%', res.data.fileid);\n callback(url);\n }\n })\n .catch(error => {\n ibiz.log.error('上传出错', error);\n });\n };\n\n // 获取渲染后html内容\n const getCherryHtml = () => {\n const result = editor.value?.getHtml();\n return result;\n };\n\n // 获取markdown内容\n const getCherryContent = () => {\n const result = editor.value?.getMarkdown();\n return result;\n };\n\n // 设置markdown内容\n const setCherryContent = (val: string) => {\n editor.value?.setMarkdown(val, false);\n };\n\n watch(\n () => props.value,\n (newVal, oldVal) => {\n if (newVal !== oldVal) {\n if (!newVal) {\n currentVal.value = '';\n } else {\n currentVal.value = newVal;\n }\n }\n },\n { immediate: true },\n );\n\n watch(currentVal, (newVal, oldVal) => {\n const content = getCherryContent();\n if (newVal !== oldVal && content !== newVal) {\n setCherryContent(newVal);\n }\n });\n\n // 变更事件回调\n const afterChange = (_e: IData) => {\n emit('change', getCherryContent());\n };\n\n // 图片加载回调\n const beforeImageMounted = (e: string, src: string) => {\n return { [e]: src };\n };\n\n const editorInit = () => {\n if (props.disabled) {\n defaultModel.value = 'previewOnly';\n }\n nextTick(() => {\n editor.value = new Cherry({\n id,\n value: currentVal.value,\n theme: theme.value,\n fileUpload,\n emoji: {\n useUnicode: true,\n },\n header: {\n anchorStyle: 'autonumber',\n },\n editor: {\n // 编辑器的高度,默认100%,如果挂载点存在内联设置的height则以内联样式为主\n height: '100%',\n // defaultModel 编辑器初始化后的默认模式,一共有三种模式:1、双栏编辑预览模式;2、纯编辑模式;3、预览模式\n // edit&preview: 双栏编辑预览模式\n // editOnly: 纯编辑模式(没有预览,可通过toolbar切换成双栏或预览模式)\n // previewOnly: 预览模式(没有编辑框,toolbar只显示“返回编辑”按钮,可通过toolbar切换成编辑模式)\n defaultModel: defaultModel.value,\n codemirror: {\n // 是否自动focus 默认为true\n autofocus: false,\n },\n },\n toolbars: {\n theme: theme.value,\n toolbar: [\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n '|',\n 'color',\n 'header',\n '|',\n 'list',\n 'image',\n {\n insert: [\n 'link',\n 'hr',\n 'br',\n 'code',\n 'formula',\n 'toc',\n 'table',\n 'line-table',\n 'bar-table',\n ],\n },\n 'settings',\n 'togglePreview',\n ],\n bubble: [\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'sub',\n 'sup',\n '|',\n 'size',\n 'color',\n ],\n float: [\n 'h1',\n 'h2',\n 'h3',\n '|',\n 'checklist',\n 'quote',\n 'quickTable',\n 'code',\n ],\n customMenu: [],\n sidebar: [],\n },\n callback: {\n afterChange,\n beforeImageMounted,\n },\n });\n });\n };\n\n watch(\n () => UIStore.theme,\n newVal => {\n theme.value = newVal;\n editor.value?.setTheme(theme.value);\n },\n );\n\n const calcMarkDownStyle = () => {\n if (window.ResizeObserver && markDownBox.value) {\n const tempCssVars = {\n width: `${markDownBox.value.offsetWidth}px`,\n };\n if (typeof c.parent.model.height === 'number') {\n Object.assign(tempCssVars, {\n height: `${c.parent.model.height}px`,\n });\n }\n cssVars.value = ns.cssVarBlock(tempCssVars);\n resizeObserver = new ResizeObserver(entries => {\n // 处理组件高度变化\n const width = entries[0].contentRect.width;\n if (width !== lastMarkDownWidth) {\n const tempCssVars2 = {\n width: `${entries[0].contentRect.width}px`,\n };\n if (typeof c.parent.model.height === 'number') {\n Object.assign(tempCssVars2, {\n height: `${c.parent.model.height}px`,\n });\n }\n cssVars.value = ns.cssVarBlock(tempCssVars2);\n lastMarkDownWidth = width;\n }\n });\n resizeObserver.observe(markDownBox.value);\n }\n };\n\n onMounted(() => {\n editorInit();\n calcMarkDownStyle();\n });\n\n onUnmounted(() => {\n editor.value = null;\n });\n\n return {\n ns,\n currentVal,\n id,\n editor,\n markDownBox,\n headers,\n theme,\n defaultModel,\n cssVars,\n getCherryHtml,\n getCherryContent,\n setCherryContent,\n };\n },\n render() {\n return (\n <div\n ref='markDownBox'\n class={[this.ns.b(), this.ns.is('disabled', this.disabled)]}\n >\n <div\n id={this.id}\n style={this.cssVars}\n class={this.ns.b('cherry')}\n ></div>\n </div>\n );\n },\n});\n\nexport default IBizMarkDown;\n"],"names":["IBizMarkDown","exports","defineComponent","name","getMarkDownProps","props","emits","setup","emit","ns","useNamespace","c","ref","currentVal","editor","createUUID","id","headers","Authorization","getCookie","useUIStore","uploadUrl","resizeObserver","lastMarkDownWidth","watch","newVal","UIStore","urls","downloadUrl","formData","file","res","value","error","immediate","deep","getCherryHtml","_a","getCherryContent","fileUpload","FormData","ibiz","setCherryContent","val","method","data","oldVal","status","callback","result","content","getMarkdown","beforeImageMounted","src","editorInit","Cherry","theme","disabled","nextTick","emoji","useUnicode","header","anchorStyle","height","calcMarkDownStyle","markDownBox","tempCssVars","codemirror","autofocus","toolbars","insert","entries","width","bubble","float","customMenu","sidebar","tempCssVars2","cssVars","onMounted","parent","Object","defaultModel","cssVarBlock","_createVNode"],"mappings":"8tBAqBA,MAAAA,EAAAC,EAAA,UAAAC,EAAA,CACMF,KAAAA,eACJG,MAAoBC,EAAA,EACpBC,MAAOD,EAAgB,EACvBE,MAAKD,EAAgB,CAChBE,KAAAA,CAAUC,EAAAA,CAAQ,MAAAC,EAAAC,EAAA,UAAA,EACfD,EAAEJ,EAAe,WAEjBM,EAAqBC,EAAA,EAAA,EAErBC,EAAUD,EAAGA,IAAY,EAEzBE,EAAMC,IAENC,EAAeJ,EAAA,qCAErB,CAAA,EACMK,EAAsBL,EAAI,EAAA,EAC9BM,EAAyBC,EAAAA,EAAAA,EACzB,UAEF,EAAAC,EAAA,EACMC,EAAsBT,EAAGA,EAAO,KAAA,kBAEtC,IAAAU,EAAA,KACAC,EAAqC,gBAErCC,EAAA,IAAAnB,EAAA,KAAAoB,GAAA,CACM,GAAAA,EAAA,CAAEC,MAAAA,EAAAA,EAAAA,YAAAA,CAAAA,EAAYN,EAAU,MAAEO,EAAA,UAChCC,EAAchB,MAAWe,cAEzB,EAAA,CACA,UAAkB,UAElB,CAAA,EACA,MAAIL,gBAEJ,MAAAO,EAAA,IAAA,SACIN,EAAAA,OAAAA,OAAqBO,CAAA,kBAEzB,IAAAT,EAAA,MACA,8BAEA,KAAAQ,CACAL,CAAAA,EAAK,KACGnB,GAAU,CAEd,KAAU,SAAE,KAAA0B,EAAA,KAAA,OAAA,CACV,QAAcH,EAAY,cAAQ,WAAAG,EAAA,KAAA,MAAA,EAClCV,EAAUW,CAAAA,CACVJ,CACF,CAAA,EAAA,MAAAK,GAAA,CAEF,KAAA,IAAA,MAAA,2BAAAA,CAAA,CAAEC,CAAAA,CAAiBC,EACpBC,EAAA,IAAA,OAGD,OADAC,EAAAvB,EAAA,QAAA,KAAA,OAAAuB,EAAA,WAGAC,EAAA,IAAA,CACA,IAAMC,EAEJV,OADcQ,EAAOG,EAAAA,QAAU,KAAA,OAAAH,EAAA,aAE/BI,EAEOC,EAAiBC,GAAA,CACpBC,IAAAA,KACO9B,EAAS,QAAM,MAAAuB,EAAA,YAAAM,EAAA,EAAA,CACtBE,EACFrB,EACK,MAAiB,MAAA,CAAAC,EAAAqB,IAAA,CAChBf,IAAIgB,IACNtB,EAIEZ,EAAU,MAAAY,EAHZuB,QAAa,KAMpB,aAED,CAAA,EACAxB,EAAMY,EAAAA,CAAaX,EAASqB,IAAA,CAC1B,MAAMG,EAAeX,IACrBb,IAAaqB,GAAAI,IAAAzB,GACdiB,EAAAjB,CAAA,CAED,CAAA,EACA,MAAMa,EAAAA,GAAyB,CAC7B9B,EAAMyC,SAASnC,EAAcqC,CAAAA,CAC7B,EACDC,EAAA,CAAA,EAAAC,MAED,CAAA,CAAA,EAAAA,IAGCC,EAAA,IAAA,CAGCjD,EAAMA,WAEAoB,EAAWqB,MAAQ,iBAET,IAACd,CACblB,EAAO,MAAA,IAAAyC,EAAA,CACL1C,GAAAA,EACF,MAAAA,EAAA,MACF,MAAA2C,EAAA,MAEF,WAAAjB,EAAEL,MAAW,CACd,WAAA,EAEe,EACd,OAAa,aACEY,YACG,EAClB,OAAA,oCAQF,WAAA,CAES,UAAA,EAAOO,CAAK,EACpB,SAAA,CAEKC,MAAAA,EAAmB,MACnBjD,QAAMoD,CAAAA,OAAU,SAAA,YAAA,gBAAA,IAAA,QAAA,SAAA,IAAA,OAAA,QAAA,CACN,OAAM,CAAA,OAAgB,KAAA,KAAA,OAAA,UAAA,MAAA,QAAA,aAAA,WAAA,CACpC,EAAA,WAAA,eAAA,EACAC,OAAe,CAAA,OAAA,SAAA,YAAA,gBAAA,MAAA,MAAA,IAAA,OAAA,OAAA,EACb5C,MAAOkB,CAAK,KAAG,UAAW,IAAA,YAAA,QAAA,aAAA,MAAA,EACtB,WAAA,CAAA,EACG,QAAY,CAAA,CACZ,EACLO,SAAU,CACVoB,YAAAA,EACEC,mBAAAA,CACD,CACDC,CAAAA,CACEC,CAAAA,GAEFhD,EAAAA,IAAMY,EAAE,MAAAD,GAAA,CACN,IAAAY,EACA0B,EAAAA,MAAQtC,GACRY,EAAAvB,EAAA,QAAA,MAAAuB,EAAA,SAAAmB,EAAA,KAAA,CACA,CAAA,EACA,MAAAQ,EAAA,IAAA,CACA,GAAA,OAAA,gBAAAC,EAAA,MAAA,OACYC,EAAc,CAC1BC,MAAAA,GAAAA,EAAY,MAAA,WAAA,IACV,EACAC,OAAAA,EAAAA,OAAW,MAAA,QAAA,UACb,OAAA,OAAAF,EAAA,CACD,OAAA,GAAAvD,EAAA,OAAA,MAAA,MAAA,IACD0D,CAAAA,IAES,MACC5D,EAAA,YAENyD,CAAA,EASEI,EACE,IAAM,eAGNC,GACA,CAMJ,MACAC,EAAAD,EACA,CAAA,EAAA,YACD,MACDE,GAAAA,IACElD,GAUFmD,QAGM,CAONC,MAAAA,GAAYJ,EAAE,CAAA,EAAA,YAAA,KAAA,IACdK,EACD,OAAAjE,EAAA,OAAA,MAAA,QAAA,UACDqC,OAAU,OAAA6B,EAAA,CACG,OAAA,GAAAlE,EAAA,OAAA,MAAA,MAAA,IACXyC,CAAAA,EAEF0B,EAAA,MAAArE,EAAA,YAAAoE,CAAA,EACFtD,EAAAiD,CACH,CAEDhD,CAAK,EAGIF,EAAe,QAAA2C,EAAA,KAAA,CACd,CACR,EAGF,OAAAc,EAAMf,IAAAA,CACJV,IACEU,GACEQ,CAAAA,IACD,IAAA,GACG,MAASQ,IACXC,CAAAA,GAEA,GAAAxE,EACF,WAAAI,OAEAS,OAAAA,EACE,YAAA2C,oBAGE,aAAAiB,+CAIED,iBAAAA,EAEA,EACF,QAAA,gBACmBE,CACnB5D,IAAAA,cACF,MAAA,CAAA,KAAA,GAAA,EAAA,EAAA,KAAA,GAAA,GAAA,WAAA,KAAA,QAAA,CAAA,CACF,EAAA,CAAA6D,EAAE,MAAA,CACF9D,GAAAA,KAAAA,GACF,MAAA,KAAA,QACD,MAAA,KAAA,GAAA,EAAA,QAAA,CAEDyD,EAAAA,IAAAA,CAAAA,CAAS,CACPzB,CACAU,CAAAA,CAAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-code-list__item{color:var(--ibiz-code-list-item-color)}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CodeListItem } from '@ibiz-template/runtime';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
import { IAppCodeList } from '@ibiz/model-core';
|
|
4
|
-
import './code-list.scss';
|
|
5
|
-
export declare const IBizCodeList: import("vue").DefineComponent<{
|
|
6
|
-
codeListItems: {
|
|
7
|
-
type: {
|
|
8
|
-
(arrayLength: number): CodeListItem[];
|
|
9
|
-
(...items: CodeListItem[]): CodeListItem[];
|
|
10
|
-
new (arrayLength: number): CodeListItem[];
|
|
11
|
-
new (...items: CodeListItem[]): CodeListItem[];
|
|
12
|
-
isArray(arg: any): arg is any[];
|
|
13
|
-
readonly prototype: any[];
|
|
14
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
15
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
16
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
17
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
18
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
19
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
codeList: {
|
|
23
|
-
type: PropType<IAppCodeList>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
value: {
|
|
27
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
28
|
-
};
|
|
29
|
-
}, {
|
|
30
|
-
items: import("vue").Ref<IData[]>;
|
|
31
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
32
|
-
emptyText: string | undefined;
|
|
33
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
codeListItems: {
|
|
35
|
-
type: {
|
|
36
|
-
(arrayLength: number): CodeListItem[];
|
|
37
|
-
(...items: CodeListItem[]): CodeListItem[];
|
|
38
|
-
new (arrayLength: number): CodeListItem[];
|
|
39
|
-
new (...items: CodeListItem[]): CodeListItem[];
|
|
40
|
-
isArray(arg: any): arg is any[];
|
|
41
|
-
readonly prototype: any[];
|
|
42
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
43
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
44
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
45
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
46
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
47
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
codeList: {
|
|
51
|
-
type: PropType<IAppCodeList>;
|
|
52
|
-
required: true;
|
|
53
|
-
};
|
|
54
|
-
value: {
|
|
55
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
56
|
-
};
|
|
57
|
-
}>>, {}, {}>;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { ref, watch, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { isNil } from 'ramda';
|
|
4
|
-
import './code-list.css';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
const IBizCodeList = /* @__PURE__ */ defineComponent({
|
|
8
|
-
name: "IBizCodeList",
|
|
9
|
-
props: {
|
|
10
|
-
codeListItems: {
|
|
11
|
-
type: Array
|
|
12
|
-
},
|
|
13
|
-
codeList: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
value: {
|
|
18
|
-
type: [String, Number]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(props) {
|
|
22
|
-
const ns = useNamespace("code-list");
|
|
23
|
-
const items = ref([]);
|
|
24
|
-
const findCodeListItem = (codelist, value) => {
|
|
25
|
-
if (codelist) {
|
|
26
|
-
const findItem = codelist.find((item) => item.value == value);
|
|
27
|
-
if (findItem) {
|
|
28
|
-
return findItem;
|
|
29
|
-
}
|
|
30
|
-
for (let i = 0; i < codelist.length; i++) {
|
|
31
|
-
const childrenItem = findCodeListItem(codelist[i].children, value);
|
|
32
|
-
if (childrenItem) {
|
|
33
|
-
return childrenItem;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
watch(() => props.value, (newVal, oldVal) => {
|
|
39
|
-
if (newVal !== oldVal) {
|
|
40
|
-
if (isNil(newVal) || newVal === "") {
|
|
41
|
-
items.value = [];
|
|
42
|
-
} else {
|
|
43
|
-
let values;
|
|
44
|
-
if (typeof newVal === "string") {
|
|
45
|
-
values = newVal.split(",");
|
|
46
|
-
} else {
|
|
47
|
-
values = [newVal];
|
|
48
|
-
}
|
|
49
|
-
items.value = values.map((val) => {
|
|
50
|
-
const findItem = findCodeListItem(props.codeListItems, val);
|
|
51
|
-
return {
|
|
52
|
-
text: (findItem == null ? void 0 : findItem.text) || val,
|
|
53
|
-
color: findItem == null ? void 0 : findItem.color,
|
|
54
|
-
textCls: findItem == null ? void 0 : findItem.textCls
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}, {
|
|
60
|
-
immediate: true
|
|
61
|
-
});
|
|
62
|
-
const emptyText = props.codeList.emptyText === "\u672A\u5B9A\u4E49" ? "- - -" : props.codeList.emptyText;
|
|
63
|
-
return {
|
|
64
|
-
items,
|
|
65
|
-
ns,
|
|
66
|
-
emptyText
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
render() {
|
|
70
|
-
return createVNode("span", {
|
|
71
|
-
"class": this.ns.b()
|
|
72
|
-
}, [this.items.length === 0 ? this.emptyText : this.items.map((item, index) => {
|
|
73
|
-
var _a;
|
|
74
|
-
return [index !== 0 ? (_a = this.codeList) == null ? void 0 : _a.textSeparator : null, createVNode("span", {
|
|
75
|
-
"class": [this.ns.e("item"), item.textCls ? item.textCls : null],
|
|
76
|
-
"style": this.ns.cssVarBlock({
|
|
77
|
-
"item-color": `${item.color}`
|
|
78
|
-
})
|
|
79
|
-
}, [item.text])];
|
|
80
|
-
})]);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
export { IBizCodeList };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-control{width:100%;height:100%}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IBizControlBase: any;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { reactive, resolveComponent, h, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { isNil } from 'ramda';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
const IBizControlBase = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "IBizControlBase",
|
|
8
|
-
props: {
|
|
9
|
-
controller: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(props) {
|
|
15
|
-
const ns = useNamespace("control");
|
|
16
|
-
const {
|
|
17
|
-
controlType,
|
|
18
|
-
sysCss,
|
|
19
|
-
codeName
|
|
20
|
-
} = props.controller.model;
|
|
21
|
-
const typeClass = controlType.toLowerCase();
|
|
22
|
-
const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
|
|
23
|
-
const model = props.controller.model;
|
|
24
|
-
const controls = props.controller.model.controls;
|
|
25
|
-
const onLayoutPanelCreated = (controller) => {
|
|
26
|
-
props.controller.setLayoutPanel(controller);
|
|
27
|
-
};
|
|
28
|
-
const inlineStyle = reactive({});
|
|
29
|
-
if (model.controlType.endsWith("EXPBAR") === false) {
|
|
30
|
-
if (!isNil(model.width)) {
|
|
31
|
-
inlineStyle.width = `${model.width}px`;
|
|
32
|
-
}
|
|
33
|
-
if (!isNil(model.height)) {
|
|
34
|
-
inlineStyle.height = `${model.height}px`;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
ns,
|
|
39
|
-
typeClass,
|
|
40
|
-
sysCssName,
|
|
41
|
-
inlineStyle,
|
|
42
|
-
codeName,
|
|
43
|
-
controls,
|
|
44
|
-
onLayoutPanelCreated
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
render() {
|
|
48
|
-
var _a, _b, _c;
|
|
49
|
-
const {
|
|
50
|
-
state,
|
|
51
|
-
controlPanel,
|
|
52
|
-
providers
|
|
53
|
-
} = this.controller;
|
|
54
|
-
let layoutPanel = null;
|
|
55
|
-
if (state.isCreated && controlPanel) {
|
|
56
|
-
const slots = {
|
|
57
|
-
...this.$slots
|
|
58
|
-
};
|
|
59
|
-
if ((_a = this.controls) == null ? void 0 : _a.length) {
|
|
60
|
-
this.controls.forEach((ctrl) => {
|
|
61
|
-
const slotKey = ctrl.name;
|
|
62
|
-
const ctrlProps = {
|
|
63
|
-
context: this.controller.context,
|
|
64
|
-
params: this.controller.params
|
|
65
|
-
};
|
|
66
|
-
const outCtrlSlot = slots[slotKey];
|
|
67
|
-
if (outCtrlSlot) {
|
|
68
|
-
slots[slotKey] = () => {
|
|
69
|
-
return outCtrlSlot(ctrlProps);
|
|
70
|
-
};
|
|
71
|
-
} else {
|
|
72
|
-
slots[slotKey] = () => {
|
|
73
|
-
const comp = resolveComponent("IBizControlShell");
|
|
74
|
-
return h(comp, {
|
|
75
|
-
modelData: ctrl,
|
|
76
|
-
...ctrlProps
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
const provider = providers[controlPanel.name];
|
|
83
|
-
layoutPanel = h(resolveComponent(provider.component), {
|
|
84
|
-
modelData: controlPanel,
|
|
85
|
-
context: this.controller.context,
|
|
86
|
-
params: this.controller.params,
|
|
87
|
-
provider,
|
|
88
|
-
onControllerAppear: this.onLayoutPanelCreated
|
|
89
|
-
}, slots);
|
|
90
|
-
}
|
|
91
|
-
return createVNode("div", {
|
|
92
|
-
"class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.codeName), this.sysCssName],
|
|
93
|
-
"style": this.inlineStyle
|
|
94
|
-
}, [layoutPanel || ((_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b))]);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
export { IBizControlBase };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
export declare const ControlLoadingPlaceholder: import("vue").DefineComponent<{
|
|
3
|
-
modelData: {
|
|
4
|
-
type: PropType<IData>;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
context: {
|
|
8
|
-
type: PropType<IContext>;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
params: {
|
|
12
|
-
type: PropType<IParams>;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
modelData: {
|
|
17
|
-
type: PropType<IData>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
context: {
|
|
21
|
-
type: PropType<IContext>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
params: {
|
|
25
|
-
type: PropType<IParams>;
|
|
26
|
-
default: () => {};
|
|
27
|
-
};
|
|
28
|
-
}>>, {
|
|
29
|
-
params: IParams;
|
|
30
|
-
}, {}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { inject, defineComponent } from 'vue';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
const ControlLoadingPlaceholder = /* @__PURE__ */ defineComponent({
|
|
5
|
-
name: "ControlLoadingPlaceholder",
|
|
6
|
-
props: {
|
|
7
|
-
modelData: {
|
|
8
|
-
type: Object,
|
|
9
|
-
required: true
|
|
10
|
-
},
|
|
11
|
-
context: {
|
|
12
|
-
type: Object,
|
|
13
|
-
required: true
|
|
14
|
-
},
|
|
15
|
-
params: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => ({})
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(props) {
|
|
21
|
-
const ctx = inject("ctx");
|
|
22
|
-
ctx.evt.emit("onForecast", props.modelData.name);
|
|
23
|
-
return {};
|
|
24
|
-
},
|
|
25
|
-
render() {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export { ControlLoadingPlaceholder };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-control-shell{position:relative;width:100%;height:100%}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IControlProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
import './control-shell.scss';
|
|
4
|
-
import { IControl } from '@ibiz/model-core';
|
|
5
|
-
export declare const IBizControlShell: import("vue").DefineComponent<{
|
|
6
|
-
modelData: {
|
|
7
|
-
type: PropType<IControl>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
-
isComplete: import("vue").Ref<boolean>;
|
|
13
|
-
errMsg: import("vue").Ref<string>;
|
|
14
|
-
provider: import("vue").Ref<IControlProvider | undefined>;
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
modelData: {
|
|
17
|
-
type: PropType<IControl>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
}>>, {}, {}>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { inject, ref, resolveComponent, h, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
|
-
import { getControlProvider } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
-
import './control-shell.css';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
const IBizControlShell = /* @__PURE__ */ defineComponent({
|
|
8
|
-
name: "IBizControlShell",
|
|
9
|
-
props: {
|
|
10
|
-
modelData: {
|
|
11
|
-
type: Object,
|
|
12
|
-
required: true
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
setup(props) {
|
|
16
|
-
const ctx = inject("ctx");
|
|
17
|
-
ctx.evt.emit("onForecast", props.modelData.name);
|
|
18
|
-
const isComplete = ref(false);
|
|
19
|
-
const errMsg = ref("");
|
|
20
|
-
const provider = ref();
|
|
21
|
-
getControlProvider(props.modelData).then((item) => {
|
|
22
|
-
if (!item) {
|
|
23
|
-
errMsg.value = `\u672A\u627E\u5230\u5BF9\u5E94\u90E8\u4EF6\u7684\u9002\u914D\u5668`;
|
|
24
|
-
} else {
|
|
25
|
-
provider.value = item;
|
|
26
|
-
}
|
|
27
|
-
isComplete.value = true;
|
|
28
|
-
}).catch((err) => {
|
|
29
|
-
ibiz.log.error(err);
|
|
30
|
-
errMsg.value = err.message;
|
|
31
|
-
isComplete.value = true;
|
|
32
|
-
});
|
|
33
|
-
const ns = useNamespace("control-shell");
|
|
34
|
-
return {
|
|
35
|
-
ns,
|
|
36
|
-
isComplete,
|
|
37
|
-
errMsg,
|
|
38
|
-
provider
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
render() {
|
|
42
|
-
if (this.isComplete && this.provider) {
|
|
43
|
-
return h(resolveComponent(this.provider.component), {
|
|
44
|
-
provider: this.provider,
|
|
45
|
-
...this.$props,
|
|
46
|
-
...this.$attrs
|
|
47
|
-
}, this.$slots);
|
|
48
|
-
}
|
|
49
|
-
return withDirectives(createVNode("div", {
|
|
50
|
-
"class": this.ns.b()
|
|
51
|
-
}, [this.isComplete ? this.errMsg : null]), [[resolveDirective("loading"), !this.isComplete]]);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { IBizControlShell };
|
package/es/common/icon/icon.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PropType, VNode } from 'vue';
|
|
2
|
-
import { ISysImage } from '@ibiz/model-core';
|
|
3
|
-
import { IIcon } from '@ibiz-template/runtime';
|
|
4
|
-
export declare const IBizIcon: import("vue").DefineComponent<{
|
|
5
|
-
icon: {
|
|
6
|
-
type: PropType<ISysImage | IIcon>;
|
|
7
|
-
};
|
|
8
|
-
size: {
|
|
9
|
-
type: PropType<"small" | "medium" | "large">;
|
|
10
|
-
};
|
|
11
|
-
baseDir: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
}, () => VNode | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
icon: {
|
|
17
|
-
type: PropType<ISysImage | IIcon>;
|
|
18
|
-
};
|
|
19
|
-
size: {
|
|
20
|
-
type: PropType<"small" | "medium" | "large">;
|
|
21
|
-
};
|
|
22
|
-
baseDir: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
}>>, {
|
|
27
|
-
baseDir: string;
|
|
28
|
-
}, {}>;
|
package/es/common/icon/icon.mjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { createVNode, computed, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { isSvg } from '@ibiz-template/core';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
const IBizIcon = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "IBizIcon",
|
|
8
|
-
props: {
|
|
9
|
-
icon: {
|
|
10
|
-
type: Object
|
|
11
|
-
},
|
|
12
|
-
size: {
|
|
13
|
-
type: String
|
|
14
|
-
},
|
|
15
|
-
baseDir: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "images"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(props) {
|
|
21
|
-
const ns = useNamespace("icon");
|
|
22
|
-
const BaseUrl = `${ibiz.env.assetsUrl}/${props.baseDir}/`;
|
|
23
|
-
function getContent(icon) {
|
|
24
|
-
if (icon) {
|
|
25
|
-
if (icon.htmlStr) {
|
|
26
|
-
return createVNode("span", {
|
|
27
|
-
"class": ns.b(),
|
|
28
|
-
"innerHTML": icon.htmlStr
|
|
29
|
-
}, null);
|
|
30
|
-
}
|
|
31
|
-
if (icon.cssClass) {
|
|
32
|
-
if (icon.cssClass.indexOf("fa-") !== -1) {
|
|
33
|
-
return createVNode("i", {
|
|
34
|
-
"class": [ns.b(), icon.cssClass]
|
|
35
|
-
}, null);
|
|
36
|
-
}
|
|
37
|
-
return createVNode("ion-icon", {
|
|
38
|
-
"class": ns.b(),
|
|
39
|
-
"name": icon.cssClass
|
|
40
|
-
}, null);
|
|
41
|
-
}
|
|
42
|
-
if (icon.imagePath) {
|
|
43
|
-
if (icon.imagePath.endsWith("svg")) {
|
|
44
|
-
if (icon.imagePath.startsWith("http")) {
|
|
45
|
-
return createVNode("img", {
|
|
46
|
-
"class": ns.b(),
|
|
47
|
-
"src": icon.imagePath
|
|
48
|
-
}, null);
|
|
49
|
-
}
|
|
50
|
-
return createVNode("ion-icon", {
|
|
51
|
-
"src": BaseUrl + icon.imagePath,
|
|
52
|
-
"class": ns.b()
|
|
53
|
-
}, null);
|
|
54
|
-
}
|
|
55
|
-
if (icon.imagePath.startsWith("http")) {
|
|
56
|
-
return createVNode("img", {
|
|
57
|
-
"class": ns.b(),
|
|
58
|
-
"src": icon.imagePath
|
|
59
|
-
}, null);
|
|
60
|
-
}
|
|
61
|
-
return createVNode("img", {
|
|
62
|
-
"class": ns.b(),
|
|
63
|
-
"src": BaseUrl + icon.imagePath
|
|
64
|
-
}, null);
|
|
65
|
-
}
|
|
66
|
-
if (icon.rawContent) {
|
|
67
|
-
if (isSvg(icon.rawContent)) {
|
|
68
|
-
return createVNode("div", {
|
|
69
|
-
"class": ns.b(),
|
|
70
|
-
"innerHTML": icon.rawContent
|
|
71
|
-
}, null);
|
|
72
|
-
}
|
|
73
|
-
return createVNode("img", {
|
|
74
|
-
"class": ns.b(),
|
|
75
|
-
"src": icon.rawContent
|
|
76
|
-
}, null);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
const content = computed(() => {
|
|
82
|
-
return getContent(props.icon);
|
|
83
|
-
});
|
|
84
|
-
return () => content.value;
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
export { IBizIcon };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { PropType, VNode } from 'vue';
|
|
2
|
-
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
|
-
/**
|
|
4
|
-
* 只会第一次绘制的时候绘制路由相关的内容,后面路由导致的router-view的回调都屏蔽了。
|
|
5
|
-
* 通过变更manualKey,来强制刷新router-view的slot回调。并且吧manualKey传给Component的key,搭配AppKeepAlive可以缓存组件
|
|
6
|
-
*/
|
|
7
|
-
export declare const IBizRouterView: import("vue").DefineComponent<{
|
|
8
|
-
name: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
route: PropType<RouteLocationNormalizedLoaded>;
|
|
13
|
-
manualKey: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
renderComp: (Component: VNode, _route: any) => VNode | undefined;
|
|
18
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
name: {
|
|
20
|
-
type: PropType<string>;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
route: PropType<RouteLocationNormalizedLoaded>;
|
|
24
|
-
manualKey: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
};
|
|
27
|
-
}>>, {
|
|
28
|
-
name: string;
|
|
29
|
-
}, {}>;
|