@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
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
-
var runtime = require('@ibiz-template/runtime');
|
|
7
|
-
var gridContainer = require('./grid-container.cjs');
|
|
8
|
-
var gridContainer_provider = require('./grid-container.provider.cjs');
|
|
9
|
-
var gridContainer_state = require('./grid-container.state.cjs');
|
|
10
|
-
var gridContainer_controller = require('./grid-container.controller.cjs');
|
|
11
|
-
|
|
12
|
-
"use strict";
|
|
13
|
-
const IBizGridContainer = vue3Util.withInstall(gridContainer.GridContainer, function(v) {
|
|
14
|
-
v.component(gridContainer.GridContainer.name, gridContainer.GridContainer);
|
|
15
|
-
runtime.registerPanelItemProvider(
|
|
16
|
-
"CONTAINER_CONTAINER_GRID",
|
|
17
|
-
() => new gridContainer_provider.GridContainerProvider()
|
|
18
|
-
);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
exports.GridContainerProvider = gridContainer_provider.GridContainerProvider;
|
|
22
|
-
exports.GridContainerState = gridContainer_state.GridContainerState;
|
|
23
|
-
exports.GridContainerController = gridContainer_controller.GridContainerController;
|
|
24
|
-
exports.IBizGridContainer = IBizGridContainer;
|
|
25
|
-
exports.default = IBizGridContainer;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
-
var runtime = require('@ibiz-template/runtime');
|
|
7
|
-
var multiDataContainer = require('./multi-data-container.cjs');
|
|
8
|
-
var multiDataContainer_provider = require('./multi-data-container.provider.cjs');
|
|
9
|
-
var multiDataContainer_state = require('./multi-data-container.state.cjs');
|
|
10
|
-
var multiDataContainer_controller = require('./multi-data-container.controller.cjs');
|
|
11
|
-
|
|
12
|
-
"use strict";
|
|
13
|
-
const IBizMultiDataContainer = vue3Util.withInstall(
|
|
14
|
-
multiDataContainer.MultiDataContainer,
|
|
15
|
-
function(v) {
|
|
16
|
-
v.component(multiDataContainer.MultiDataContainer.name, multiDataContainer.MultiDataContainer);
|
|
17
|
-
runtime.registerPanelItemProvider(
|
|
18
|
-
"CONTAINER_CONTAINER_MULTIDATA",
|
|
19
|
-
() => new multiDataContainer_provider.MultiDataContainerProvider()
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
exports.MultiDataContainerProvider = multiDataContainer_provider.MultiDataContainerProvider;
|
|
25
|
-
exports.MultiDataContainerState = multiDataContainer_state.MultiDataContainerState;
|
|
26
|
-
exports.MultiDataContainerController = multiDataContainer_controller.MultiDataContainerController;
|
|
27
|
-
exports.IBizMultiDataContainer = IBizMultiDataContainer;
|
|
28
|
-
exports.default = IBizMultiDataContainer;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var runtime = require('@ibiz-template/runtime');
|
|
4
|
-
var multiDataContainerItm_state = require('./multi-data-container-itm.state.cjs');
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __publicField = (obj, key, value) => {
|
|
10
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
-
return value;
|
|
12
|
-
};
|
|
13
|
-
class MultiDataContainerItemController {
|
|
14
|
-
/**
|
|
15
|
-
* Creates an instance of PanelItemController.
|
|
16
|
-
* @author lxm
|
|
17
|
-
* @date 2023-04-27 06:37:12
|
|
18
|
-
* @param {T} model 面板成员模型
|
|
19
|
-
* @param {PanelController} panel 面板控制器
|
|
20
|
-
* @param {PanelItemController} [parent] 父容器控制器
|
|
21
|
-
*/
|
|
22
|
-
constructor(model, panel, parent, data) {
|
|
23
|
-
this.model = model;
|
|
24
|
-
this.panel = panel;
|
|
25
|
-
this.parent = parent;
|
|
26
|
-
__publicField(this, "state", new multiDataContainerItm_state.MultiDataContainerItemState());
|
|
27
|
-
__publicField(this, "isDataContainer", true);
|
|
28
|
-
/**
|
|
29
|
-
* 所有面板成员的控制器
|
|
30
|
-
*
|
|
31
|
-
* @author lxm
|
|
32
|
-
* @date 2022-08-24 20:08:07
|
|
33
|
-
* @type {{ [key: string]: IPanelItemController }}
|
|
34
|
-
*/
|
|
35
|
-
__publicField(this, "panelItems", {});
|
|
36
|
-
this.state.data = data;
|
|
37
|
-
const fields = runtime.getAllPanelField(this.model);
|
|
38
|
-
const fieldKeys = fields.map((item) => item.id);
|
|
39
|
-
data._evt.on("change", (key) => {
|
|
40
|
-
if (fieldKeys.includes(key)) {
|
|
41
|
-
this.childDataChangeNotify([key]);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
get data() {
|
|
46
|
-
return this.state.data;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* 初始化方法
|
|
50
|
-
* @author lxm
|
|
51
|
-
* @date 2023-09-05 05:48:53
|
|
52
|
-
* @return {*} {Promise<void>}
|
|
53
|
-
*/
|
|
54
|
-
async init() {
|
|
55
|
-
await this.initChildrenController();
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* 初始化面板成员控制器
|
|
59
|
-
*
|
|
60
|
-
* @author lxm
|
|
61
|
-
* @date 2022-08-24 21:08:48
|
|
62
|
-
* @protected
|
|
63
|
-
*/
|
|
64
|
-
async initChildrenController(panelItems = this.model.panelItems, panel = this.panel, parent = this) {
|
|
65
|
-
if (!panelItems) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
await Promise.all(
|
|
69
|
-
panelItems.map(async (panelItem) => {
|
|
70
|
-
var _a, _b;
|
|
71
|
-
const panelItemProvider = this.parent.providers[panelItem.id];
|
|
72
|
-
if (!panelItemProvider) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const panelItemController = await panelItemProvider.createController(
|
|
76
|
-
panelItem,
|
|
77
|
-
panel,
|
|
78
|
-
parent
|
|
79
|
-
);
|
|
80
|
-
this.panelItems[panelItem.id] = panelItemController;
|
|
81
|
-
if (((_a = panelItem.panelItems) == null ? void 0 : _a.length) && !runtime.isDataContainer(panelItem)) {
|
|
82
|
-
await this.initChildrenController(
|
|
83
|
-
panelItem.panelItems,
|
|
84
|
-
panel,
|
|
85
|
-
panelItemController
|
|
86
|
-
);
|
|
87
|
-
} else if ((_b = panelItem.panelTabPages) == null ? void 0 : _b.length) {
|
|
88
|
-
await this.initChildrenController(
|
|
89
|
-
panelItem.panelTabPages,
|
|
90
|
-
panel,
|
|
91
|
-
panelItemController
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
async dataChangeNotify(_names) {
|
|
98
|
-
}
|
|
99
|
-
async childDataChangeNotify(names) {
|
|
100
|
-
Object.values(this.panelItems).forEach((panelItem) => {
|
|
101
|
-
panelItem.dataChangeNotify(names);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
async panelStateNotify(state) {
|
|
105
|
-
Object.values(this.panelItems).forEach((panelItem) => {
|
|
106
|
-
panelItem.panelStateNotify(state);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
async setDataValue(name, value) {
|
|
110
|
-
if (Object.prototype.hasOwnProperty.call(this.state.data, name) && this.state.data[name] === value) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
this.state.data[name] = value;
|
|
114
|
-
this.childDataChangeNotify([name]);
|
|
115
|
-
}
|
|
116
|
-
destroy() {
|
|
117
|
-
var _a, _b;
|
|
118
|
-
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
119
|
-
Object.values(this.panelItems).forEach((item) => {
|
|
120
|
-
item.destroy();
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
exports.MultiDataContainerItemController = MultiDataContainerItemController;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var runtime = require('@ibiz-template/runtime');
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __publicField = (obj, key, value) => {
|
|
9
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
-
return value;
|
|
11
|
-
};
|
|
12
|
-
class MultiDataContainerItemState extends runtime.PanelItemState {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
/**
|
|
16
|
-
* 多项数据容器数据
|
|
17
|
-
* @author lxm
|
|
18
|
-
* @date 2023-07-14 12:07:45
|
|
19
|
-
* @type {(IData | IData[])}
|
|
20
|
-
*/
|
|
21
|
-
__publicField(this, "data", {});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
exports.MultiDataContainerItemState = MultiDataContainerItemState;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var vue = require('vue');
|
|
4
|
-
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
var multiDataContainer_controller = require('./multi-data-container.controller.cjs');
|
|
6
|
-
require('./multi-data-container.css');
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
function _isSlot(s) {
|
|
10
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
11
|
-
}
|
|
12
|
-
const MultiDataContainer = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
-
name: "IBizMultiDataContainer",
|
|
14
|
-
props: {
|
|
15
|
-
modelData: {
|
|
16
|
-
type: Object,
|
|
17
|
-
required: true
|
|
18
|
-
},
|
|
19
|
-
controller: {
|
|
20
|
-
type: multiDataContainer_controller.MultiDataContainerController,
|
|
21
|
-
required: true
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(props) {
|
|
25
|
-
const ns = vue3Util.useNamespace("multi-data-container");
|
|
26
|
-
const {
|
|
27
|
-
id
|
|
28
|
-
} = props.modelData;
|
|
29
|
-
vue.watch(() => props.controller.state.items, () => {
|
|
30
|
-
props.controller.dataItems.forEach((item) => {
|
|
31
|
-
item.state = vue.reactive(item.state);
|
|
32
|
-
const keys = Object.keys(item.panelItems);
|
|
33
|
-
keys.forEach((key) => {
|
|
34
|
-
const panelItem = item.panelItems[key];
|
|
35
|
-
panelItem.state = vue.reactive(panelItem.state);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
}, {
|
|
39
|
-
immediate: true
|
|
40
|
-
});
|
|
41
|
-
const renderPanelItem = vue.inject("renderPanelItem");
|
|
42
|
-
const classArr = vue.computed(() => {
|
|
43
|
-
const result = [ns.b(), ns.m(id), ...props.controller.containerClass];
|
|
44
|
-
return result;
|
|
45
|
-
});
|
|
46
|
-
return {
|
|
47
|
-
ns,
|
|
48
|
-
classArr,
|
|
49
|
-
renderPanelItem
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
render() {
|
|
53
|
-
let content;
|
|
54
|
-
if (this.$slots.default) {
|
|
55
|
-
content = this.$slots.default();
|
|
56
|
-
} else {
|
|
57
|
-
content = this.controller.state.items.map((_item, index) => {
|
|
58
|
-
const itemController = this.controller.dataItems[index];
|
|
59
|
-
return vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
60
|
-
"class": this.ns.b("content"),
|
|
61
|
-
"layout": this.modelData.layout
|
|
62
|
-
}, {
|
|
63
|
-
default: () => {
|
|
64
|
-
var _a;
|
|
65
|
-
return [(_a = this.modelData.panelItems) == null ? void 0 : _a.map((panelItem) => {
|
|
66
|
-
let _slot;
|
|
67
|
-
const childController = itemController.panelItems[panelItem.id];
|
|
68
|
-
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
69
|
-
"layoutPos": panelItem.layoutPos,
|
|
70
|
-
"state": childController.state
|
|
71
|
-
}, _isSlot(_slot = this.renderPanelItem(panelItem, {
|
|
72
|
-
providers: this.controller.providers,
|
|
73
|
-
panelItems: itemController.panelItems
|
|
74
|
-
})) ? _slot : {
|
|
75
|
-
default: () => [_slot]
|
|
76
|
-
});
|
|
77
|
-
})];
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return vue.createVNode("div", {
|
|
83
|
-
"class": this.classArr
|
|
84
|
-
}, [content]);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
exports.MultiDataContainer = MultiDataContainer;
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var core = require('@ibiz-template/core');
|
|
4
|
-
var runtime = require('@ibiz-template/runtime');
|
|
5
|
-
var multiDataContainerItem_controller = require('./multi-data-container-item.controller.cjs');
|
|
6
|
-
var multiDataContainer_state = require('./multi-data-container.state.cjs');
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __publicField = (obj, key, value) => {
|
|
12
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
13
|
-
return value;
|
|
14
|
-
};
|
|
15
|
-
class MultiDataContainerController extends runtime.PanelItemController {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
__publicField(this, "isDataContainer", true);
|
|
19
|
-
/**
|
|
20
|
-
* 数据项的控制器
|
|
21
|
-
*
|
|
22
|
-
* @author lxm
|
|
23
|
-
* @date 2023-09-05 05:35:25
|
|
24
|
-
* @type {MultiDataContainerItemController[]}
|
|
25
|
-
*/
|
|
26
|
-
__publicField(this, "dataItems", []);
|
|
27
|
-
/**
|
|
28
|
-
* 所有面板成员的适配器
|
|
29
|
-
*
|
|
30
|
-
* @author lxm
|
|
31
|
-
* @date 2022-08-24 20:08:07
|
|
32
|
-
* @type {{ [key: string]: IPanelItemProvider }}
|
|
33
|
-
*/
|
|
34
|
-
__publicField(this, "providers", {});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 多项数据容器,根据数据模式
|
|
38
|
-
* @author lxm
|
|
39
|
-
* @date 2023-07-14 10:59:02
|
|
40
|
-
* @readonly
|
|
41
|
-
* @type {IData}
|
|
42
|
-
*/
|
|
43
|
-
get data() {
|
|
44
|
-
return this.state.items;
|
|
45
|
-
}
|
|
46
|
-
createState() {
|
|
47
|
-
var _a;
|
|
48
|
-
return new multiDataContainer_state.MultiDataContainerState((_a = this.parent) == null ? void 0 : _a.state);
|
|
49
|
-
}
|
|
50
|
-
async onInit() {
|
|
51
|
-
await super.onInit();
|
|
52
|
-
await this.initPanelItemProviders();
|
|
53
|
-
this.initContainerData();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* 初始化面板成员控制器
|
|
57
|
-
*
|
|
58
|
-
* @author lxm
|
|
59
|
-
* @date 2022-08-24 21:08:48
|
|
60
|
-
* @protected
|
|
61
|
-
*/
|
|
62
|
-
async initPanelItemProviders(panelItems = this.model.panelItems) {
|
|
63
|
-
if (!panelItems) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
await Promise.all(
|
|
67
|
-
panelItems.map(async (panelItem) => {
|
|
68
|
-
var _a, _b;
|
|
69
|
-
const panelItemProvider = await runtime.getPanelItemProvider(panelItem);
|
|
70
|
-
if (!panelItemProvider) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
this.providers[panelItem.id] = panelItemProvider;
|
|
74
|
-
if (((_a = panelItem.panelItems) == null ? void 0 : _a.length) && !runtime.isDataContainer(panelItem)) {
|
|
75
|
-
await this.initPanelItemProviders(
|
|
76
|
-
panelItem.panelItems
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
if ((_b = panelItem.panelTabPages) == null ? void 0 : _b.length) {
|
|
80
|
-
await this.initPanelItemProviders(
|
|
81
|
-
panelItem.panelTabPages
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* 根据来源类型初始化容器数据
|
|
89
|
-
* @author lxm
|
|
90
|
-
* @date 2023-08-04 03:05:59
|
|
91
|
-
* @protected
|
|
92
|
-
*/
|
|
93
|
-
initContainerData() {
|
|
94
|
-
const { dataSourceType, dataName } = this.model;
|
|
95
|
-
switch (dataSourceType) {
|
|
96
|
-
case "DEACTION":
|
|
97
|
-
case "DEDATASET":
|
|
98
|
-
this.setDataByDeMethod();
|
|
99
|
-
break;
|
|
100
|
-
case "APPGLOBALPARAM":
|
|
101
|
-
this.setDataByAppGlobalParam();
|
|
102
|
-
break;
|
|
103
|
-
case "DELOGIC":
|
|
104
|
-
this.setDataByDeLogic();
|
|
105
|
-
break;
|
|
106
|
-
case "TOPVIEWSESSIONPARAM": {
|
|
107
|
-
if (!dataName) {
|
|
108
|
-
throw new core.RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u6570\u636E\u5BF9\u8C61\u540D\u79F0");
|
|
109
|
-
}
|
|
110
|
-
this.bindViewData(this.panel.getTopView(), dataName);
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
case "VIEWSESSIONPARAM": {
|
|
114
|
-
if (!dataName) {
|
|
115
|
-
throw new core.RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u6570\u636E\u5BF9\u8C61\u540D\u79F0");
|
|
116
|
-
}
|
|
117
|
-
this.bindViewData(this.panel.view, dataName);
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
default:
|
|
121
|
-
throw new core.ModelError(this.model, `\u6570\u636E\u6E90\u7C7B\u578B${dataSourceType}\u6682\u672A\u652F\u6301`);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* 面板状态变更通知
|
|
126
|
-
*
|
|
127
|
-
* @author lxm
|
|
128
|
-
* @date 2022-09-20 18:09:07
|
|
129
|
-
*/
|
|
130
|
-
childrenStateNotify(state) {
|
|
131
|
-
this.dataItems.forEach((dataItem) => {
|
|
132
|
-
dataItem.panelStateNotify(state);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* 设置数据集合
|
|
137
|
-
* @author lxm
|
|
138
|
-
* @date 2023-09-05 05:42:09
|
|
139
|
-
* @param {IData[]} items
|
|
140
|
-
*/
|
|
141
|
-
async setData(items) {
|
|
142
|
-
const fields = runtime.getAllPanelField(this.model);
|
|
143
|
-
const _items = items.map((item) => new runtime.PanelData(fields, item));
|
|
144
|
-
this.dataItems = _items.map((item) => {
|
|
145
|
-
return new multiDataContainerItem_controller.MultiDataContainerItemController(
|
|
146
|
-
this.model,
|
|
147
|
-
this.panel,
|
|
148
|
-
this,
|
|
149
|
-
item
|
|
150
|
-
);
|
|
151
|
-
});
|
|
152
|
-
if (this.dataItems.length) {
|
|
153
|
-
await Promise.all(
|
|
154
|
-
this.dataItems.map((controller) => {
|
|
155
|
-
return controller.init();
|
|
156
|
-
})
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
this.state.items = _items;
|
|
160
|
-
this.childrenStateNotify(runtime.PanelNotifyState.LOAD);
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* 通过实体设置视图逻辑
|
|
164
|
-
* @author lxm
|
|
165
|
-
* @date 2023-08-04 03:00:31
|
|
166
|
-
* @protected
|
|
167
|
-
* @return {*} {Promise<void>}
|
|
168
|
-
*/
|
|
169
|
-
async setDataByDeLogic() {
|
|
170
|
-
const { appDataEntityId, appDELogicId } = this.model;
|
|
171
|
-
if (!appDELogicId) {
|
|
172
|
-
throw new core.RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
|
|
173
|
-
}
|
|
174
|
-
if (!appDataEntityId) {
|
|
175
|
-
throw new core.RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
|
|
176
|
-
}
|
|
177
|
-
const data = await runtime.execDELogicById(
|
|
178
|
-
appDELogicId,
|
|
179
|
-
appDataEntityId,
|
|
180
|
-
this.panel.context,
|
|
181
|
-
[],
|
|
182
|
-
this.panel.params
|
|
183
|
-
);
|
|
184
|
-
if (!data) {
|
|
185
|
-
throw new core.RuntimeError(`\u5B9E\u4F53\u903B\u8F91${appDELogicId}\u6CA1\u6709\u8FD4\u56DE\u503C`);
|
|
186
|
-
}
|
|
187
|
-
this.setData(data);
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* 设置全局变量为当前容器数据
|
|
191
|
-
* @author lxm
|
|
192
|
-
* @date 2023-08-04 01:55:07
|
|
193
|
-
* @protected
|
|
194
|
-
*/
|
|
195
|
-
setDataByAppGlobalParam() {
|
|
196
|
-
const { dataName } = this.model;
|
|
197
|
-
const originData = dataName ? ibiz.appData[dataName] : ibiz.appData;
|
|
198
|
-
if (originData) {
|
|
199
|
-
this.setData(originData);
|
|
200
|
-
} else {
|
|
201
|
-
ibiz.log.error(`\u5168\u5C40\u53D8\u91CF\u91CC\u6CA1\u6709${dataName}\u5C5E\u6027`);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* 请求实体行为并把返回值设置为当前容器的数据
|
|
206
|
-
* @author lxm
|
|
207
|
-
* @date 2023-08-04 11:47:17
|
|
208
|
-
* @protected
|
|
209
|
-
* @return {*} {Promise<void>}
|
|
210
|
-
*/
|
|
211
|
-
async setDataByDeMethod() {
|
|
212
|
-
const { appDEMethodId, appDataEntityId } = this.model;
|
|
213
|
-
if (!appDEMethodId) {
|
|
214
|
-
throw new core.RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u884C\u4E3A");
|
|
215
|
-
}
|
|
216
|
-
if (!appDataEntityId) {
|
|
217
|
-
throw new core.RuntimeModelError(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
|
|
218
|
-
}
|
|
219
|
-
const app = ibiz.hub.getApp(this.panel.context.srfappid);
|
|
220
|
-
const res = await app.deService.exec(
|
|
221
|
-
appDataEntityId,
|
|
222
|
-
appDEMethodId,
|
|
223
|
-
this.panel.context,
|
|
224
|
-
[],
|
|
225
|
-
this.panel.params
|
|
226
|
-
);
|
|
227
|
-
if (res.ok && res.data) {
|
|
228
|
-
this.setData(res.data);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* 绑定指定视图会话的变量
|
|
233
|
-
* @author lxm
|
|
234
|
-
* @date 2023-07-14 02:03:56
|
|
235
|
-
* @protected
|
|
236
|
-
* @param {IViewController} view 绑定视图控制器
|
|
237
|
-
* @param {string} dataName 变量名称
|
|
238
|
-
*/
|
|
239
|
-
bindViewData(view, dataName) {
|
|
240
|
-
if (!Object.prototype.hasOwnProperty.call(view.state, dataName)) {
|
|
241
|
-
ibiz.log.error(`\u7ED1\u5B9A\u89C6\u56FE\u7684\u4F1A\u8BDD\u4E0D\u5B58\u5728${dataName}`);
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
const updateData = () => {
|
|
245
|
-
const originData = view.state[dataName];
|
|
246
|
-
if (originData) {
|
|
247
|
-
this.setData(originData);
|
|
248
|
-
} else {
|
|
249
|
-
ibiz.log.error(`\u89C6\u56FEstate\u91CC\u6CA1\u6709${dataName}\u5C5E\u6027`);
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
updateData();
|
|
253
|
-
view.evt.on("onDataChange", () => {
|
|
254
|
-
updateData();
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
setDataValue(_name, _value) {
|
|
258
|
-
throw new Error("Method not implemented.");
|
|
259
|
-
}
|
|
260
|
-
destroy() {
|
|
261
|
-
super.destroy();
|
|
262
|
-
this.dataItems.forEach((item) => {
|
|
263
|
-
item.destroy();
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
exports.MultiDataContainerController = MultiDataContainerController;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-multi-data-container{width:100%;height:100%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var multiDataContainer_controller = require('./multi-data-container.controller.cjs');
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __publicField = (obj, key, value) => {
|
|
9
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
-
return value;
|
|
11
|
-
};
|
|
12
|
-
class MultiDataContainerProvider {
|
|
13
|
-
constructor() {
|
|
14
|
-
__publicField(this, "component", "IBizMultiDataContainer");
|
|
15
|
-
}
|
|
16
|
-
async createController(panelItem, panel, parent) {
|
|
17
|
-
const c = new multiDataContainer_controller.MultiDataContainerController(panelItem, panel, parent);
|
|
18
|
-
await c.init();
|
|
19
|
-
return c;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
exports.MultiDataContainerProvider = MultiDataContainerProvider;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var runtime = require('@ibiz-template/runtime');
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __publicField = (obj, key, value) => {
|
|
9
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
-
return value;
|
|
11
|
-
};
|
|
12
|
-
class MultiDataContainerState extends runtime.PanelItemState {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
/**
|
|
16
|
-
* 多项数据容器数据
|
|
17
|
-
* @author lxm
|
|
18
|
-
* @date 2023-07-14 12:07:45
|
|
19
|
-
* @type {(IData | IData[])}
|
|
20
|
-
*/
|
|
21
|
-
__publicField(this, "items", []);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
exports.MultiDataContainerState = MultiDataContainerState;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('@ibiz-template/runtime');
|
|
6
|
-
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
-
var navPos = require('./nav-pos.cjs');
|
|
8
|
-
var navPos_provider = require('./nav-pos.provider.cjs');
|
|
9
|
-
var navPos_state = require('./nav-pos.state.cjs');
|
|
10
|
-
var navPos_controller = require('./nav-pos.controller.cjs');
|
|
11
|
-
|
|
12
|
-
"use strict";
|
|
13
|
-
const IBizNavPos = vue3Util.withInstall(navPos.NavPos, function(v) {
|
|
14
|
-
v.component(navPos.NavPos.name, navPos.NavPos);
|
|
15
|
-
runtime.registerPanelItemProvider("RAWITEM_NAV_POS", () => new navPos_provider.NavPosProvider());
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
exports.NavPosProvider = navPos_provider.NavPosProvider;
|
|
19
|
-
exports.NavPosState = navPos_state.NavPosState;
|
|
20
|
-
exports.NavPosController = navPos_controller.NavPosController;
|
|
21
|
-
exports.IBizNavPos = IBizNavPos;
|
|
22
|
-
exports.default = IBizNavPos;
|