@ibiz-template/vue3-components 0.2.11 → 0.2.12
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/chart/index.mjs +1 -2
- package/es/control/form/form-detail/form-druipart/form-druipart.css +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/toolbar/toolbar.mjs +2 -2
- package/es/control/tree/el-tree-util.d.ts +1 -1
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +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 -45
- 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/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 -2
- package/es/panel-component/index.d.ts +0 -7
- package/es/panel-component/index.mjs +2 -28
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +1 -2
- 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/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 -6
- package/lib/common/index.cjs +7 -20
- package/lib/control/chart/index.cjs +2 -3
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -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/toolbar/toolbar.cjs +2 -2
- 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 -114
- 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/index-actions/index-actions.cjs +1 -3
- package/lib/panel-component/index-actions/index-actions.provider.cjs +2 -3
- package/lib/panel-component/index.cjs +51 -101
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +3 -4
- 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 -14
- package/package.json +4 -4
- 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/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
|
-
}, {}>;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { watch, h, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { isNotNil } from 'ramda';
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
const IBizRouterView = /* @__PURE__ */ defineComponent({
|
|
6
|
-
name: "IBizRouterView",
|
|
7
|
-
inheritAttrs: false,
|
|
8
|
-
props: {
|
|
9
|
-
name: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "default"
|
|
12
|
-
},
|
|
13
|
-
route: Object,
|
|
14
|
-
manualKey: {
|
|
15
|
-
type: String
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(props, {
|
|
19
|
-
attrs
|
|
20
|
-
}) {
|
|
21
|
-
const cache = {};
|
|
22
|
-
let isActive = true;
|
|
23
|
-
watch(() => props.manualKey, (newVal, oldVal) => {
|
|
24
|
-
if (isNotNil(newVal) && newVal !== oldVal) {
|
|
25
|
-
isActive = true;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const renderComp = (Component, _route) => {
|
|
29
|
-
if (!isActive) {
|
|
30
|
-
return cache.vNode;
|
|
31
|
-
}
|
|
32
|
-
isActive = false;
|
|
33
|
-
if (Component) {
|
|
34
|
-
const tempProps = {
|
|
35
|
-
...Component.props
|
|
36
|
-
};
|
|
37
|
-
delete tempProps.onVnodeUnmounted;
|
|
38
|
-
delete tempProps.ref;
|
|
39
|
-
const hNode = h(Component.type, {
|
|
40
|
-
...tempProps,
|
|
41
|
-
...attrs,
|
|
42
|
-
key: props.manualKey
|
|
43
|
-
});
|
|
44
|
-
cache.vNode = hNode;
|
|
45
|
-
return hNode;
|
|
46
|
-
}
|
|
47
|
-
return void 0;
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
renderComp
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
render() {
|
|
54
|
-
return createVNode(resolveComponent("router-view"), {
|
|
55
|
-
"name": this.name,
|
|
56
|
-
"route": this.route
|
|
57
|
-
}, {
|
|
58
|
-
default: ({
|
|
59
|
-
Component,
|
|
60
|
-
route
|
|
61
|
-
}) => {
|
|
62
|
-
const newComp = this.renderComp(Component, route);
|
|
63
|
-
if (this.$slots.default) {
|
|
64
|
-
return this.$slots.default({
|
|
65
|
-
Component: newComp,
|
|
66
|
-
route
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
return newComp;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export { IBizRouterView };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-view-shell{position:relative;width:100%;height:100%}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { IViewProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
import './view-shell.scss';
|
|
4
|
-
import { IAppView } from '@ibiz/model-core';
|
|
5
|
-
export declare const IBizViewShell: import("vue").DefineComponent<{
|
|
6
|
-
context: {
|
|
7
|
-
type: PropType<IContext>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
params: {
|
|
11
|
-
type: PropType<IParams>;
|
|
12
|
-
};
|
|
13
|
-
modelData: {
|
|
14
|
-
type: PropType<IAppView>;
|
|
15
|
-
};
|
|
16
|
-
viewId: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
};
|
|
19
|
-
}, {
|
|
20
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
21
|
-
isComplete: import("vue").Ref<boolean>;
|
|
22
|
-
errMsg: import("vue").Ref<string>;
|
|
23
|
-
viewModelData: import("vue").Ref<IAppView | undefined>;
|
|
24
|
-
provider: import("vue").Ref<IViewProvider | undefined>;
|
|
25
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
context: {
|
|
27
|
-
type: PropType<IContext>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
params: {
|
|
31
|
-
type: PropType<IParams>;
|
|
32
|
-
};
|
|
33
|
-
modelData: {
|
|
34
|
-
type: PropType<IAppView>;
|
|
35
|
-
};
|
|
36
|
-
viewId: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
};
|
|
39
|
-
}>>, {}, {}>;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { ref, resolveComponent, h, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
|
-
import { getViewProvider } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
-
import './view-shell.css';
|
|
5
|
-
import { RuntimeError } from '@ibiz-template/core';
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
const IBizViewShell = /* @__PURE__ */ defineComponent({
|
|
9
|
-
name: "IBizViewShell",
|
|
10
|
-
props: {
|
|
11
|
-
context: {
|
|
12
|
-
type: Object,
|
|
13
|
-
required: true
|
|
14
|
-
},
|
|
15
|
-
params: {
|
|
16
|
-
type: Object
|
|
17
|
-
},
|
|
18
|
-
modelData: {
|
|
19
|
-
type: Object
|
|
20
|
-
},
|
|
21
|
-
viewId: {
|
|
22
|
-
type: String
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(props) {
|
|
26
|
-
const ns = useNamespace("view-shell");
|
|
27
|
-
const isComplete = ref(false);
|
|
28
|
-
const errMsg = ref("");
|
|
29
|
-
const provider = ref();
|
|
30
|
-
const viewModelData = ref();
|
|
31
|
-
const init = async () => {
|
|
32
|
-
let viewModel;
|
|
33
|
-
if (props.modelData) {
|
|
34
|
-
viewModel = props.modelData;
|
|
35
|
-
} else {
|
|
36
|
-
viewModel = await ibiz.hub.getAppView(props.viewId);
|
|
37
|
-
}
|
|
38
|
-
if (!viewModel) {
|
|
39
|
-
throw new RuntimeError("\u672A\u627E\u5230\u89C6\u56FE\u6A21\u578B");
|
|
40
|
-
}
|
|
41
|
-
viewModelData.value = viewModel;
|
|
42
|
-
try {
|
|
43
|
-
provider.value = await getViewProvider(viewModel);
|
|
44
|
-
} catch (error) {
|
|
45
|
-
ibiz.log.error(error);
|
|
46
|
-
errMsg.value = error.message;
|
|
47
|
-
} finally {
|
|
48
|
-
isComplete.value = true;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
init();
|
|
52
|
-
return {
|
|
53
|
-
ns,
|
|
54
|
-
isComplete,
|
|
55
|
-
errMsg,
|
|
56
|
-
viewModelData,
|
|
57
|
-
provider
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
render() {
|
|
61
|
-
if (this.isComplete && this.provider) {
|
|
62
|
-
return h(resolveComponent(this.provider.component), {
|
|
63
|
-
context: this.$props.context,
|
|
64
|
-
params: this.$props.params,
|
|
65
|
-
modelData: this.viewModelData,
|
|
66
|
-
...this.$attrs,
|
|
67
|
-
provider: this.provider
|
|
68
|
-
}, this.$slots);
|
|
69
|
-
}
|
|
70
|
-
return withDirectives(createVNode("div", {
|
|
71
|
-
"class": this.ns.b()
|
|
72
|
-
}, [this.isComplete ? this.errMsg : null]), [[resolveDirective("loading"), !this.isComplete]]);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
export { IBizViewShell };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
-
import { GridContainerState } from './grid-container.state';
|
|
4
|
-
/**
|
|
5
|
-
* 面板栅格容器控制器
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
|
-
* @class GridContainerController
|
|
9
|
-
* @extends {PanelItemController}
|
|
10
|
-
*/
|
|
11
|
-
export declare class GridContainerController extends PanelItemController<IPanelContainer> {
|
|
12
|
-
state: GridContainerState;
|
|
13
|
-
protected createState(): GridContainerState;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
-
import { GridContainerState } from './grid-container.state.mjs';
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
class GridContainerController extends PanelItemController {
|
|
6
|
-
createState() {
|
|
7
|
-
var _a;
|
|
8
|
-
return new GridContainerState((_a = this.parent) == null ? void 0 : _a.state);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { GridContainerController };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-grid-container{--ibiz-grid-container-bg-color:var(--ibiz-bg-color-overlay);--ibiz-grid-container-padding:var(--ibiz-padding);width:100%;height:100%;overflow:auto}.ibiz-grid-container.is-hidden{display:none}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IFlexLayoutPos, IPanelContainer } from '@ibiz/model-core';
|
|
2
|
-
import { PropType, Ref } from 'vue';
|
|
3
|
-
import { GridContainerController } from './grid-container.controller';
|
|
4
|
-
import './grid-container.scss';
|
|
5
|
-
export declare const GridContainer: import("vue").DefineComponent<{
|
|
6
|
-
modelData: {
|
|
7
|
-
type: PropType<IPanelContainer>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
controller: {
|
|
11
|
-
type: typeof GridContainerController;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
-
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
17
|
-
layoutModel: import("vue").ComputedRef<{
|
|
18
|
-
layout: string;
|
|
19
|
-
appId?: string | undefined;
|
|
20
|
-
id?: string | undefined;
|
|
21
|
-
name?: string | undefined;
|
|
22
|
-
codeName?: string | undefined;
|
|
23
|
-
userParam?: Record<string, string> | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
convertLayoutPos: (layoutPos: IFlexLayoutPos, adaptGrow: number) => IFlexLayoutPos;
|
|
26
|
-
adaptGrow: Ref<number>;
|
|
27
|
-
adaptCols: Ref<number | undefined>;
|
|
28
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
-
modelData: {
|
|
30
|
-
type: PropType<IPanelContainer>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
controller: {
|
|
34
|
-
type: typeof GridContainerController;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
}>>, {}, {}>;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { isVNode, computed, ref, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { GridContainerController } from './grid-container.controller.mjs';
|
|
4
|
-
import './grid-container.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 GridContainer = /* @__PURE__ */ defineComponent({
|
|
11
|
-
name: "IBizGridContainer",
|
|
12
|
-
props: {
|
|
13
|
-
modelData: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
controller: {
|
|
18
|
-
type: GridContainerController,
|
|
19
|
-
required: true
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(props) {
|
|
23
|
-
const ns = useNamespace("grid-container");
|
|
24
|
-
const {
|
|
25
|
-
id
|
|
26
|
-
} = props.modelData;
|
|
27
|
-
const classArr = computed(() => {
|
|
28
|
-
let result = [ns.b(), ns.m(id)];
|
|
29
|
-
result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
|
|
30
|
-
return result;
|
|
31
|
-
});
|
|
32
|
-
const layoutModel = computed(() => {
|
|
33
|
-
return {
|
|
34
|
-
...props.modelData.layout,
|
|
35
|
-
layout: "TABLE_12COL"
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
const convertLayoutPos = (layoutPos, adaptGrow2) => {
|
|
39
|
-
const result = {
|
|
40
|
-
...layoutPos,
|
|
41
|
-
layout: "TABLE_12COL",
|
|
42
|
-
colXS: layoutPos.grow || adaptGrow2,
|
|
43
|
-
colSM: layoutPos.grow || adaptGrow2,
|
|
44
|
-
colMD: layoutPos.grow || adaptGrow2,
|
|
45
|
-
colLG: layoutPos.grow || adaptGrow2
|
|
46
|
-
};
|
|
47
|
-
delete result.grow;
|
|
48
|
-
return result;
|
|
49
|
-
};
|
|
50
|
-
const adaptCols = ref(void 0);
|
|
51
|
-
const adaptGrow = ref(12);
|
|
52
|
-
return {
|
|
53
|
-
ns,
|
|
54
|
-
classArr,
|
|
55
|
-
layoutModel,
|
|
56
|
-
convertLayoutPos,
|
|
57
|
-
adaptGrow,
|
|
58
|
-
adaptCols
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
render() {
|
|
62
|
-
var _a, _b;
|
|
63
|
-
let _slot;
|
|
64
|
-
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
65
|
-
if (this.adaptCols === void 0) {
|
|
66
|
-
let currentGrow = 0;
|
|
67
|
-
let adaptCols = 0;
|
|
68
|
-
defaultSlots.forEach((slot) => {
|
|
69
|
-
const props = slot.props;
|
|
70
|
-
if (props && props.modelData && props.modelData.layoutPos) {
|
|
71
|
-
if (typeof props.modelData.layoutPos.grow === "number") {
|
|
72
|
-
currentGrow += props.modelData.layoutPos.grow;
|
|
73
|
-
} else if (typeof props.modelData.layoutPos.grow === "undefined") {
|
|
74
|
-
adaptCols += 1;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
let adaptGrow = 12;
|
|
79
|
-
if (adaptCols > 0) {
|
|
80
|
-
adaptGrow = (12 - currentGrow) / adaptCols;
|
|
81
|
-
}
|
|
82
|
-
this.adaptCols = adaptCols;
|
|
83
|
-
this.adaptGrow = adaptGrow;
|
|
84
|
-
}
|
|
85
|
-
return createVNode(resolveComponent("iBizRow"), {
|
|
86
|
-
"class": this.classArr,
|
|
87
|
-
"layout": this.layoutModel
|
|
88
|
-
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
89
|
-
const props = slot.props;
|
|
90
|
-
if (!props || !props.controller) {
|
|
91
|
-
return slot;
|
|
92
|
-
}
|
|
93
|
-
return createVNode(resolveComponent("iBizCol"), {
|
|
94
|
-
"layoutPos": this.convertLayoutPos(props.modelData.layoutPos, this.adaptGrow),
|
|
95
|
-
"state": props.controller.state
|
|
96
|
-
}, _isSlot(slot) ? slot : {
|
|
97
|
-
default: () => [slot]
|
|
98
|
-
});
|
|
99
|
-
})) ? _slot : {
|
|
100
|
-
default: () => [_slot]
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
export { GridContainer };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
-
/**
|
|
4
|
-
* 面板容器适配器
|
|
5
|
-
*
|
|
6
|
-
* @author lxm
|
|
7
|
-
* @date 2022-09-19 22:09:03
|
|
8
|
-
* @export
|
|
9
|
-
* @class GridContainerProvider
|
|
10
|
-
* @implements {EditorProvider}
|
|
11
|
-
*/
|
|
12
|
-
export declare class GridContainerProvider implements IPanelItemProvider {
|
|
13
|
-
component: string;
|
|
14
|
-
createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { GridContainerController } from './grid-container.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 GridContainerProvider {
|
|
11
|
-
constructor() {
|
|
12
|
-
__publicField(this, "component", "IBizGridContainer");
|
|
13
|
-
}
|
|
14
|
-
async createController(panelItem, panel, parent) {
|
|
15
|
-
const c = new GridContainerController(panelItem, panel, parent);
|
|
16
|
-
await c.init();
|
|
17
|
-
return c;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { GridContainerProvider };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PanelItemState } from '@ibiz-template/runtime';
|
|
2
|
-
/**
|
|
3
|
-
* 面板栅格容器状态
|
|
4
|
-
*
|
|
5
|
-
* @author lxm
|
|
6
|
-
* @date 2023-02-07 06:04:27
|
|
7
|
-
* @export
|
|
8
|
-
* @class GridContainerState
|
|
9
|
-
* @extends {PanelItemState}
|
|
10
|
-
*/
|
|
11
|
-
export declare class GridContainerState extends PanelItemState {
|
|
12
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { GridContainerProvider } from './grid-container.provider';
|
|
2
|
-
import { GridContainerState } from './grid-container.state';
|
|
3
|
-
import { GridContainerController } from './grid-container.controller';
|
|
4
|
-
export { GridContainerProvider, GridContainerState, GridContainerController };
|
|
5
|
-
export declare const IBizGridContainer: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
6
|
-
modelData: {
|
|
7
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
controller: {
|
|
11
|
-
type: typeof GridContainerController;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
-
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
17
|
-
layoutModel: import("vue").ComputedRef<{
|
|
18
|
-
layout: string;
|
|
19
|
-
appId?: string | undefined;
|
|
20
|
-
id?: string | undefined;
|
|
21
|
-
name?: string | undefined;
|
|
22
|
-
codeName?: string | undefined;
|
|
23
|
-
userParam?: Record<string, string> | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
convertLayoutPos: (layoutPos: import("@ibiz/model-core").IFlexLayoutPos, adaptGrow: number) => import("@ibiz/model-core").IFlexLayoutPos;
|
|
26
|
-
adaptGrow: import("vue").Ref<number>;
|
|
27
|
-
adaptCols: import("vue").Ref<number | undefined>;
|
|
28
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
-
modelData: {
|
|
30
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
controller: {
|
|
34
|
-
type: typeof GridContainerController;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
}>>, {}, {}>>;
|
|
38
|
-
export default IBizGridContainer;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
|
-
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
3
|
-
import { GridContainer } from './grid-container.mjs';
|
|
4
|
-
import { GridContainerProvider } from './grid-container.provider.mjs';
|
|
5
|
-
export { GridContainerState } from './grid-container.state.mjs';
|
|
6
|
-
export { GridContainerController } from './grid-container.controller.mjs';
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
const IBizGridContainer = withInstall(GridContainer, function(v) {
|
|
10
|
-
v.component(GridContainer.name, GridContainer);
|
|
11
|
-
registerPanelItemProvider(
|
|
12
|
-
"CONTAINER_CONTAINER_GRID",
|
|
13
|
-
() => new GridContainerProvider()
|
|
14
|
-
);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export { GridContainerProvider, IBizGridContainer, IBizGridContainer as default };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { MultiDataContainerProvider } from './multi-data-container.provider';
|
|
2
|
-
import { MultiDataContainerState } from './multi-data-container.state';
|
|
3
|
-
import { MultiDataContainerController } from './multi-data-container.controller';
|
|
4
|
-
export { MultiDataContainerProvider, MultiDataContainerState, MultiDataContainerController, };
|
|
5
|
-
export declare const IBizMultiDataContainer: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
6
|
-
modelData: {
|
|
7
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
controller: {
|
|
11
|
-
type: typeof MultiDataContainerController;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
-
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
17
|
-
renderPanelItem: (panelItem: import("@ibiz/model-core").IPanelItem, options?: {
|
|
18
|
-
providers: {
|
|
19
|
-
[key: string]: import("@ibiz-template/runtime").IPanelItemProvider;
|
|
20
|
-
};
|
|
21
|
-
panelItems: {
|
|
22
|
-
[key: string]: import("@ibiz-template/runtime").IPanelItemController;
|
|
23
|
-
};
|
|
24
|
-
} | undefined) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}> | null;
|
|
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: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
controller: {
|
|
33
|
-
type: typeof MultiDataContainerController;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
}>>, {}, {}>>;
|
|
37
|
-
export default IBizMultiDataContainer;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
|
-
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
3
|
-
import { MultiDataContainer } from './multi-data-container.mjs';
|
|
4
|
-
import { MultiDataContainerProvider } from './multi-data-container.provider.mjs';
|
|
5
|
-
export { MultiDataContainerState } from './multi-data-container.state.mjs';
|
|
6
|
-
export { MultiDataContainerController } from './multi-data-container.controller.mjs';
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
const IBizMultiDataContainer = withInstall(
|
|
10
|
-
MultiDataContainer,
|
|
11
|
-
function(v) {
|
|
12
|
-
v.component(MultiDataContainer.name, MultiDataContainer);
|
|
13
|
-
registerPanelItemProvider(
|
|
14
|
-
"CONTAINER_CONTAINER_MULTIDATA",
|
|
15
|
-
() => new MultiDataContainerProvider()
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
export { IBizMultiDataContainer, MultiDataContainerProvider, IBizMultiDataContainer as default };
|