@ibiz-template/vue3-util 0.6.0 → 0.6.1-alpha.2
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/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +12 -3
- package/es/util/overlay-container/overlay-container.mjs +1 -1
- package/es/util/router-callback/router-callback.d.ts +1 -1
- package/es/util/router-callback/router-callback.d.ts.map +1 -1
- package/es/util/router-callback/router-callback.mjs +6 -2
- package/lib/_virtual/_commonjsHelpers.cjs +46 -0
- package/lib/common/badge/badge.cjs +34 -0
- package/lib/common/badge/badge.css +1 -0
- package/lib/common/code-list/code-list.cjs +105 -0
- package/lib/common/code-list/code-list.css +1 -0
- package/lib/common/control-base/control-base.cjs +102 -0
- package/lib/common/control-base/control-base.css +1 -0
- package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +32 -0
- package/lib/common/control-shell/control-shell.cjs +58 -0
- package/lib/common/control-shell/control-shell.css +1 -0
- package/lib/common/icon/icon.cjs +103 -0
- package/lib/common/index.cjs +21 -0
- package/lib/common/router-view/router-view.cjs +77 -0
- package/lib/common/view-shell/view-shell.cjs +137 -0
- package/lib/common/view-shell/view-shell.css +1 -0
- package/lib/control/index.cjs +10 -0
- package/lib/control/panel/index.cjs +9 -0
- package/lib/control/panel/panel/index.cjs +18 -0
- package/lib/control/panel/panel/panel.cjs +142 -0
- package/lib/control/panel/panel/panel.css +1 -0
- package/lib/control/panel/panel/panel.provider.cjs +10 -0
- package/lib/control/panel/view-layout-panel/index.cjs +24 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +144 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.css +1 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +10 -0
- package/lib/hooks/app/app.hooks.cjs +26 -0
- package/lib/hooks/index.cjs +7 -0
- package/lib/interface/index.cjs +5 -0
- package/lib/interface/util/index.cjs +5 -0
- package/lib/interface/util/route/route.cjs +3 -0
- package/lib/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.cjs +540 -0
- package/lib/panel-component/grid-container/grid-container.cjs +108 -0
- package/lib/panel-component/grid-container/grid-container.controller.cjs +14 -0
- package/lib/panel-component/grid-container/grid-container.css +1 -0
- package/lib/panel-component/grid-container/grid-container.provider.cjs +17 -0
- package/lib/panel-component/grid-container/grid-container.state.cjs +9 -0
- package/lib/panel-component/grid-container/index.cjs +25 -0
- package/lib/panel-component/index.cjs +73 -0
- package/lib/panel-component/multi-data-container/index.cjs +28 -0
- package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +119 -0
- package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +19 -0
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +89 -0
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +262 -0
- package/lib/panel-component/multi-data-container/multi-data-container.css +1 -0
- package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +17 -0
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +19 -0
- package/lib/panel-component/nav-pos/index.cjs +22 -0
- package/lib/panel-component/nav-pos/nav-pos.cjs +107 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.cjs +312 -0
- package/lib/panel-component/nav-pos/nav-pos.css +1 -0
- package/lib/panel-component/nav-pos/nav-pos.provider.cjs +26 -0
- package/lib/panel-component/nav-pos/nav-pos.state.cjs +49 -0
- package/lib/panel-component/panel-container/index.cjs +29 -0
- package/lib/panel-component/panel-container/panel-container.cjs +72 -0
- package/lib/panel-component/panel-container/panel-container.controller.cjs +14 -0
- package/lib/panel-component/panel-container/panel-container.css +1 -0
- package/lib/panel-component/panel-container/panel-container.provider.cjs +17 -0
- package/lib/panel-component/panel-container/panel-container.state.cjs +9 -0
- package/lib/panel-component/panel-container-group/index.cjs +28 -0
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +110 -0
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +37 -0
- package/lib/panel-component/panel-container-group/panel-container-group.css +1 -0
- package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +17 -0
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +9 -0
- package/lib/panel-component/panel-container-image/index.cjs +28 -0
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +95 -0
- package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +14 -0
- package/lib/panel-component/panel-container-image/panel-container-image.css +1 -0
- package/lib/panel-component/panel-container-image/panel-container-image.provider.cjs +17 -0
- package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +9 -0
- package/lib/panel-component/panel-ctrl-pos/index.cjs +20 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +47 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +25 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +17 -0
- package/lib/panel-component/panel-field/index.cjs +20 -0
- package/lib/panel-component/panel-field/panel-field.cjs +78 -0
- package/lib/panel-component/panel-field/panel-field.controller.cjs +132 -0
- package/lib/panel-component/panel-field/panel-field.css +1 -0
- package/lib/panel-component/panel-field/panel-field.provider.cjs +17 -0
- package/lib/panel-component/panel-field/panel-field.state.cjs +9 -0
- package/lib/panel-component/panel-item-render/index.cjs +24 -0
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +49 -0
- package/lib/panel-component/panel-item-render/panel-item-render.controller.cjs +31 -0
- package/lib/panel-component/panel-item-render/panel-item-render.provider.cjs +17 -0
- package/lib/panel-component/panel-rawitem/index.cjs +32 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +61 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +30 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.css +1 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +17 -0
- package/lib/panel-component/panel-tab-page/index.cjs +18 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +65 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/index.cjs +55 -0
- package/lib/panel-component/scroll-container/scroll-container/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +114 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +14 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +66 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/index.cjs +28 -0
- package/lib/panel-component/single-data-container/single-data-container.cjs +79 -0
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +287 -0
- package/lib/panel-component/single-data-container/single-data-container.css +1 -0
- package/lib/panel-component/single-data-container/single-data-container.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +19 -0
- package/lib/plugin/index.cjs +7 -0
- package/{src/plugin/plugin-factory/plugin-factory.ts → lib/plugin/plugin-factory/plugin-factory.cjs} +137 -182
- package/lib/props/common.cjs +17 -0
- package/lib/props/editor/array.cjs +14 -0
- package/lib/props/editor/autocomplete.cjs +14 -0
- package/lib/props/editor/cascader.cjs +14 -0
- package/lib/props/editor/check-box-list.cjs +14 -0
- package/lib/props/editor/check-box.cjs +14 -0
- package/lib/props/editor/code.cjs +23 -0
- package/lib/props/editor/color-picker.cjs +14 -0
- package/lib/props/editor/common.cjs +62 -0
- package/lib/props/editor/data-picker.cjs +14 -0
- package/lib/props/editor/date-picker.cjs +14 -0
- package/lib/props/editor/date-range.cjs +14 -0
- package/lib/props/editor/dropdown-list.cjs +14 -0
- package/lib/props/editor/html.cjs +14 -0
- package/lib/props/editor/index.cjs +86 -0
- package/lib/props/editor/list-box.cjs +14 -0
- package/lib/props/editor/markdown.cjs +22 -0
- package/lib/props/editor/number-range.cjs +14 -0
- package/lib/props/editor/radio-button-list.cjs +14 -0
- package/lib/props/editor/rate.cjs +14 -0
- package/lib/props/editor/raw.cjs +14 -0
- package/lib/props/editor/slider.cjs +14 -0
- package/lib/props/editor/span.cjs +14 -0
- package/lib/props/editor/stepper.cjs +14 -0
- package/lib/props/editor/switch.cjs +14 -0
- package/lib/props/editor/text-box.cjs +30 -0
- package/lib/props/editor/upload.cjs +14 -0
- package/lib/props/index.cjs +89 -0
- package/lib/use/click-outside/click-outside.cjs +50 -0
- package/lib/use/control/index.cjs +7 -0
- package/lib/use/control/use-control-controller/use-control-controller.cjs +78 -0
- package/lib/use/event/event.cjs +39 -0
- package/lib/use/focus-blur/focus-blur.cjs +48 -0
- package/lib/use/index.cjs +34 -0
- package/lib/use/namespace/namespace.cjs +10 -0
- package/lib/use/route/route.cjs +31 -0
- package/lib/use/util/index.cjs +14 -0
- package/lib/use/view/index.cjs +7 -0
- package/lib/use/view/use-view-controller/use-view-controller.cjs +86 -0
- package/lib/use/vue/vue.cjs +64 -0
- package/lib/util/control/prepare-control.cjs +24 -0
- package/lib/util/index.cjs +43 -0
- package/lib/util/install.cjs +11 -0
- package/lib/util/overlay-container/overlay-container.cjs +116 -0
- package/lib/util/overlay-popover-container/overlay-popover-container.cjs +12 -0
- package/lib/util/overlay-view-util/overlay-view-util.cjs +70 -0
- package/lib/util/render/render.cjs +22 -0
- package/lib/util/route/route-listener.cjs +75 -0
- package/lib/util/route/route.cjs +302 -0
- package/lib/util/router-callback/router-callback-item.cjs +74 -0
- package/{src/util/router-callback/router-callback.ts → lib/util/router-callback/router-callback.cjs} +33 -37
- package/lib/util/store/app-store/app-store.cjs +12 -0
- package/lib/util/store/index.cjs +12 -0
- package/lib/util/store/ui-store/ui-store.cjs +17 -0
- package/lib/util/store/ui-store/z-index.cjs +20 -0
- package/lib/view/app-redirect-view/app-redirect-view.cjs +29 -0
- package/lib/view/common/index.cjs +15 -0
- package/lib/view/common/view.cjs +129 -0
- package/lib/view/common/view.css +1 -0
- package/lib/view/common/view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/de-redirect-view.cjs +64 -0
- package/lib/view/de-redirect-view/de-redirect-view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/index.cjs +22 -0
- package/lib/view/index.cjs +15 -0
- package/lib/view/portal-view/index.cjs +23 -0
- package/lib/view/portal-view/portal-view.cjs +95 -0
- package/lib/view/portal-view/portal-view.provider.cjs +10 -0
- package/lib/view/todo-redirect/todo-redirect.cjs +54 -0
- package/package.json +14 -10
- package/src/common/badge/badge.scss +0 -29
- package/src/common/badge/badge.tsx +0 -26
- package/src/common/code-list/code-list.scss +0 -15
- package/src/common/code-list/code-list.tsx +0 -127
- package/src/common/control-base/control-base.scss +0 -4
- package/src/common/control-base/control-base.tsx +0 -130
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +0 -22
- package/src/common/control-shell/control-shell.scss +0 -5
- package/src/common/control-shell/control-shell.tsx +0 -70
- package/src/common/icon/icon.tsx +0 -82
- package/src/common/index.ts +0 -8
- package/src/common/router-view/router-view.tsx +0 -74
- package/src/common/view-shell/view-shell.scss +0 -5
- package/src/common/view-shell/view-shell.tsx +0 -163
- package/src/control/index.ts +0 -1
- package/src/control/panel/index.ts +0 -2
- package/src/control/panel/panel/index.ts +0 -12
- package/src/control/panel/panel/panel.provider.ts +0 -14
- package/src/control/panel/panel/panel.scss +0 -9
- package/src/control/panel/panel/panel.tsx +0 -166
- package/src/control/panel/view-layout-panel/index.ts +0 -18
- package/src/control/panel/view-layout-panel/view-layout-panel.provider.ts +0 -14
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +0 -9
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +0 -178
- package/src/hooks/app/app.hooks.ts +0 -31
- package/src/hooks/index.ts +0 -1
- package/src/index.ts +0 -18
- package/src/interface/index.ts +0 -1
- package/src/interface/util/index.ts +0 -1
- package/src/interface/util/route/route.ts +0 -116
- package/src/panel-component/grid-container/grid-container.controller.ts +0 -18
- package/src/panel-component/grid-container/grid-container.provider.ts +0 -30
- package/src/panel-component/grid-container/grid-container.scss +0 -17
- package/src/panel-component/grid-container/grid-container.state.ts +0 -12
- package/src/panel-component/grid-container/grid-container.tsx +0 -119
- package/src/panel-component/grid-container/index.ts +0 -19
- package/src/panel-component/index.ts +0 -13
- package/src/panel-component/multi-data-container/index.ts +0 -22
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +0 -166
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +0 -308
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +0 -30
- package/src/panel-component/multi-data-container/multi-data-container.scss +0 -10
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.tsx +0 -109
- package/src/panel-component/nav-pos/index.ts +0 -16
- package/src/panel-component/nav-pos/nav-pos.controller.ts +0 -393
- package/src/panel-component/nav-pos/nav-pos.provider.ts +0 -38
- package/src/panel-component/nav-pos/nav-pos.scss +0 -4
- package/src/panel-component/nav-pos/nav-pos.state.ts +0 -52
- package/src/panel-component/nav-pos/nav-pos.tsx +0 -121
- package/src/panel-component/panel-container/index.ts +0 -27
- package/src/panel-component/panel-container/panel-container.controller.ts +0 -18
- package/src/panel-component/panel-container/panel-container.provider.ts +0 -30
- package/src/panel-component/panel-container/panel-container.scss +0 -15
- package/src/panel-component/panel-container/panel-container.state.ts +0 -12
- package/src/panel-component/panel-container/panel-container.tsx +0 -72
- package/src/panel-component/panel-container-group/index.ts +0 -22
- package/src/panel-component/panel-container-group/panel-container-group.controller.ts +0 -43
- package/src/panel-component/panel-container-group/panel-container-group.provider.ts +0 -30
- package/src/panel-component/panel-container-group/panel-container-group.scss +0 -91
- package/src/panel-component/panel-container-group/panel-container-group.state.ts +0 -12
- package/src/panel-component/panel-container-group/panel-container-group.tsx +0 -112
- package/src/panel-component/panel-container-image/index.ts +0 -22
- package/src/panel-component/panel-container-image/panel-container-image.controller.ts +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.provider.ts +0 -30
- package/src/panel-component/panel-container-image/panel-container-image.scss +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.state.ts +0 -12
- package/src/panel-component/panel-container-image/panel-container-image.tsx +0 -95
- package/src/panel-component/panel-ctrl-pos/index.ts +0 -14
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +0 -53
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +0 -30
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +0 -8
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +0 -53
- package/src/panel-component/panel-field/index.ts +0 -14
- package/src/panel-component/panel-field/panel-field.controller.ts +0 -174
- package/src/panel-component/panel-field/panel-field.provider.ts +0 -28
- package/src/panel-component/panel-field/panel-field.scss +0 -36
- package/src/panel-component/panel-field/panel-field.state.ts +0 -12
- package/src/panel-component/panel-field/panel-field.tsx +0 -81
- package/src/panel-component/panel-item-render/index.ts +0 -18
- package/src/panel-component/panel-item-render/panel-item-render.controller.ts +0 -52
- package/src/panel-component/panel-item-render/panel-item-render.provider.ts +0 -30
- package/src/panel-component/panel-item-render/panel-item-render.tsx +0 -50
- package/src/panel-component/panel-rawitem/index.ts +0 -26
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +0 -34
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +0 -28
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +0 -8
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +0 -61
- package/src/panel-component/panel-tab-page/index.ts +0 -12
- package/src/panel-component/panel-tab-page/panel-tab-page.provider.ts +0 -27
- package/src/panel-component/panel-tab-page/panel-tab-page.tsx +0 -55
- package/src/panel-component/scroll-container/index.ts +0 -44
- package/src/panel-component/scroll-container/scroll-container/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +0 -32
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +0 -34
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +0 -110
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +0 -25
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +0 -9
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +0 -60
- package/src/panel-component/single-data-container/index.ts +0 -22
- package/src/panel-component/single-data-container/single-data-container.controller.ts +0 -345
- package/src/panel-component/single-data-container/single-data-container.provider.ts +0 -30
- package/src/panel-component/single-data-container/single-data-container.scss +0 -10
- package/src/panel-component/single-data-container/single-data-container.state.ts +0 -20
- package/src/panel-component/single-data-container/single-data-container.tsx +0 -95
- package/src/plugin/index.ts +0 -1
- package/src/props/common.ts +0 -30
- package/src/props/editor/array.ts +0 -27
- package/src/props/editor/autocomplete.ts +0 -27
- package/src/props/editor/cascader.ts +0 -27
- package/src/props/editor/check-box-list.ts +0 -27
- package/src/props/editor/check-box.ts +0 -27
- package/src/props/editor/code.ts +0 -36
- package/src/props/editor/color-picker.ts +0 -27
- package/src/props/editor/common.ts +0 -94
- package/src/props/editor/data-picker.ts +0 -27
- package/src/props/editor/date-picker.ts +0 -27
- package/src/props/editor/date-range.ts +0 -23
- package/src/props/editor/dropdown-list.ts +0 -27
- package/src/props/editor/html.ts +0 -27
- package/src/props/editor/index.ts +0 -25
- package/src/props/editor/list-box.ts +0 -27
- package/src/props/editor/markdown.ts +0 -35
- package/src/props/editor/number-range.ts +0 -23
- package/src/props/editor/radio-button-list.ts +0 -27
- package/src/props/editor/rate.ts +0 -23
- package/src/props/editor/raw.ts +0 -23
- package/src/props/editor/slider.ts +0 -23
- package/src/props/editor/span.ts +0 -27
- package/src/props/editor/stepper.ts +0 -23
- package/src/props/editor/switch.ts +0 -23
- package/src/props/editor/text-box.ts +0 -79
- package/src/props/editor/upload.ts +0 -27
- package/src/props/index.ts +0 -2
- package/src/types/index.d.ts +0 -8
- package/src/use/click-outside/click-outside.ts +0 -72
- package/src/use/control/index.ts +0 -1
- package/src/use/control/use-control-controller/use-control-controller.ts +0 -153
- package/src/use/event/event.ts +0 -57
- package/src/use/focus-blur/focus-blur.ts +0 -83
- package/src/use/index.ts +0 -9
- package/src/use/namespace/namespace.ts +0 -14
- package/src/use/route/route.ts +0 -47
- package/src/use/util/index.ts +0 -26
- package/src/use/view/index.ts +0 -1
- package/src/use/view/use-view-controller/use-view-controller.ts +0 -153
- package/src/use/vue/vue.ts +0 -142
- package/src/util/control/prepare-control.ts +0 -33
- package/src/util/index.ts +0 -10
- package/src/util/install.ts +0 -14
- package/src/util/overlay-container/overlay-container.ts +0 -155
- package/src/util/overlay-popover-container/overlay-popover-container.ts +0 -30
- package/src/util/overlay-view-util/overlay-view-util.ts +0 -89
- package/src/util/render/render.ts +0 -28
- package/src/util/route/route-listener.ts +0 -91
- package/src/util/route/route.ts +0 -520
- package/src/util/router-callback/router-callback-item.ts +0 -98
- package/src/util/store/app-store/app-store.ts +0 -10
- package/src/util/store/index.ts +0 -6
- package/src/util/store/ui-store/ui-store.ts +0 -27
- package/src/util/store/ui-store/z-index.ts +0 -53
- package/src/view/app-redirect-view/app-redirect-view.tsx +0 -26
- package/src/view/common/index.ts +0 -10
- package/src/view/common/view.provider.ts +0 -14
- package/src/view/common/view.scss +0 -38
- package/src/view/common/view.tsx +0 -152
- package/src/view/de-redirect-view/de-redirect-view.provider.ts +0 -14
- package/src/view/de-redirect-view/de-redirect-view.tsx +0 -62
- package/src/view/de-redirect-view/index.ts +0 -17
- package/src/view/index.ts +0 -5
- package/src/view/portal-view/index.ts +0 -18
- package/src/view/portal-view/portal-view.provider.ts +0 -14
- package/src/view/portal-view/portal-view.tsx +0 -79
- package/src/view/todo-redirect/todo-redirect.tsx +0 -51
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var panelField_state = require('./panel-field.state.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class PanelFieldController extends runtime.PanelItemController {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.unitName = void 0;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 值格式化
|
|
14
|
+
* @author lxm
|
|
15
|
+
* @date 2023-05-24 05:46:56
|
|
16
|
+
* @readonly
|
|
17
|
+
* @type {(string | undefined)}
|
|
18
|
+
*/
|
|
19
|
+
get valueFormat() {
|
|
20
|
+
return this.model.valueFormat;
|
|
21
|
+
}
|
|
22
|
+
get dataType() {
|
|
23
|
+
return void 0;
|
|
24
|
+
}
|
|
25
|
+
get context() {
|
|
26
|
+
return this.panel.context;
|
|
27
|
+
}
|
|
28
|
+
get params() {
|
|
29
|
+
return this.panel.params;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 父容器数据对象数据
|
|
33
|
+
* @author lxm
|
|
34
|
+
* @date 2023-07-15 01:33:58
|
|
35
|
+
* @readonly
|
|
36
|
+
* @type {IData}
|
|
37
|
+
*/
|
|
38
|
+
get data() {
|
|
39
|
+
return this.dataParent.data;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 面板属性成员的值
|
|
43
|
+
* @author lxm
|
|
44
|
+
* @date 2023-07-14 02:30:58
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
get value() {
|
|
48
|
+
return this.data[this.model.id];
|
|
49
|
+
}
|
|
50
|
+
createState() {
|
|
51
|
+
var _a;
|
|
52
|
+
return new panelField_state.PanelFieldState((_a = this.parent) == null ? void 0 : _a.state);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 初始化
|
|
56
|
+
*
|
|
57
|
+
* @author lxm
|
|
58
|
+
* @date 2022-08-24 20:08:42
|
|
59
|
+
* @protected
|
|
60
|
+
* @returns {*} {Promise<void>}
|
|
61
|
+
*/
|
|
62
|
+
async onInit() {
|
|
63
|
+
await super.onInit();
|
|
64
|
+
this.state.required = !this.model.allowEmpty;
|
|
65
|
+
if (this.model.editor && this.model.editor.editorType !== "HIDDEN") {
|
|
66
|
+
this.editorProvider = await runtime.getEditorProvider(this.model.editor);
|
|
67
|
+
if (this.editorProvider) {
|
|
68
|
+
this.editor = await this.editorProvider.createController(
|
|
69
|
+
this.model.editor,
|
|
70
|
+
this
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 设置面板数据的值
|
|
77
|
+
*
|
|
78
|
+
* @author lxm
|
|
79
|
+
* @date 2022-08-24 10:08:40
|
|
80
|
+
* @param {unknown} value 要设置的值
|
|
81
|
+
* @param {string} name 要设置的面板数据的属性名称
|
|
82
|
+
*/
|
|
83
|
+
async setDataValue(value, name) {
|
|
84
|
+
const { id } = this.model;
|
|
85
|
+
name = name || id;
|
|
86
|
+
if (this.dataParent.setDataValue) {
|
|
87
|
+
await this.dataParent.setDataValue(name, value);
|
|
88
|
+
}
|
|
89
|
+
this.panel.evt.emit("onPanelItemEvent", {
|
|
90
|
+
panelItemName: this.model.id,
|
|
91
|
+
panelItemEventName: runtime.PanelItemEventName.CHANGE
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* 聚焦事件
|
|
96
|
+
* @author lxm
|
|
97
|
+
* @date 2023-10-11 05:03:26
|
|
98
|
+
*/
|
|
99
|
+
onFocus(event) {
|
|
100
|
+
this.panel.evt.emit("onPanelItemEvent", {
|
|
101
|
+
panelItemName: this.model.id,
|
|
102
|
+
panelItemEventName: runtime.PanelItemEventName.FOCUS,
|
|
103
|
+
event
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 失焦事件
|
|
108
|
+
* @author lxm
|
|
109
|
+
* @date 2023-10-11 05:03:26
|
|
110
|
+
*/
|
|
111
|
+
onBlur(event) {
|
|
112
|
+
this.panel.evt.emit("onPanelItemEvent", {
|
|
113
|
+
panelItemName: this.model.id,
|
|
114
|
+
panelItemEventName: runtime.PanelItemEventName.BLUR,
|
|
115
|
+
event
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 回车事件
|
|
120
|
+
* @author lxm
|
|
121
|
+
* @date 2023-10-11 05:03:26
|
|
122
|
+
*/
|
|
123
|
+
onEnter(event) {
|
|
124
|
+
this.panel.evt.emit("onPanelItemEvent", {
|
|
125
|
+
panelItemName: this.model.id,
|
|
126
|
+
panelItemEventName: runtime.PanelItemEventName.ENTER,
|
|
127
|
+
event
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
exports.PanelFieldController = PanelFieldController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-field{--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-text-color:var(--ibiz-color-text-2);--ibiz-form-item-hover-color:var(--ibiz-color-text-0);--ibiz-form-item-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-form-item-readonly-color:var(--ibiz-color-disabled-text);--ibiz-form-item-border-color:transparent;--ibiz-form-item-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-placeholder-color:var(--ibiz-color-text-3);--ibiz-form-item-disabled-color:var(--ibiz-color-disabled-text);--ibiz-form-item-disabled-bg-color:var(--ibiz-color-disabled-fill);--ibiz-form-item-disabled-border-color:var(--ibiz-color-disabled-border);--ibiz-form-item-active-bg:var(--ibiz-color-fill-2);--ibiz-form-item-active-border:var(--ibiz-active-bg);--ibiz-form-item-focus-bg:var(--ibiz-color-fill-0);--ibiz-form-item-focus-border:var(--ibiz-color-focus-border);--ibiz-form-item-line-height:var(--ibiz-editor-default-line-height);--ibiz-form-item-font-weight:var(--ibiz-font-weight-regular);width:100%;height:100%}.ibiz-panel-field .ibiz-panel-field-content{line-height:inherit}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelField_controller = require('./panel-field.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelFieldProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelField";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new panelField_controller.PanelFieldController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelFieldProvider = PanelFieldProvider;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('../../util/index.cjs');
|
|
7
|
+
var panelItemRender = require('./panel-item-render.cjs');
|
|
8
|
+
var panelItemRender_provider = require('./panel-item-render.provider.cjs');
|
|
9
|
+
var install = require('../../util/install.cjs');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const IBizPanelItemRender = install.withInstall(
|
|
13
|
+
panelItemRender.PanelItemRender,
|
|
14
|
+
function(v) {
|
|
15
|
+
v.component(panelItemRender.PanelItemRender.name, panelItemRender.PanelItemRender);
|
|
16
|
+
runtime.registerPanelItemProvider(
|
|
17
|
+
"PREDEFINE_RENDER",
|
|
18
|
+
() => new panelItemRender_provider.PanelItemRenderProvider()
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
exports.IBizPanelItemRender = IBizPanelItemRender;
|
|
24
|
+
exports.default = IBizPanelItemRender;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../../use/index.cjs');
|
|
5
|
+
var panelItemRender_controller = require('./panel-item-render.controller.cjs');
|
|
6
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const PanelItemRender = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizPanelItemRender",
|
|
11
|
+
props: {
|
|
12
|
+
modelData: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
controller: {
|
|
17
|
+
type: panelItemRender_controller.PanelItemRenderController,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(props) {
|
|
22
|
+
var _a;
|
|
23
|
+
const ns = namespace.useNamespace("panel-item-render");
|
|
24
|
+
const nsType = namespace.useNamespace("panel-".concat((_a = props.modelData.itemType) == null ? void 0 : _a.toLowerCase()));
|
|
25
|
+
const {
|
|
26
|
+
id
|
|
27
|
+
} = props.modelData;
|
|
28
|
+
const classArr = vue.computed(() => {
|
|
29
|
+
const result = [ns.b(), ns.m(id), nsType.b(), ns.is("hidden", !props.controller.state.visible)];
|
|
30
|
+
return result;
|
|
31
|
+
});
|
|
32
|
+
const htmlCode = vue.computed(() => {
|
|
33
|
+
return props.controller.getPanelItemCustomHtml(props.modelData.controlRenders, props.controller.data);
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
ns,
|
|
37
|
+
classArr,
|
|
38
|
+
htmlCode
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
render() {
|
|
42
|
+
return vue.createVNode("div", {
|
|
43
|
+
"class": this.classArr,
|
|
44
|
+
"innerHTML": this.htmlCode
|
|
45
|
+
}, null);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
exports.PanelItemRender = PanelItemRender;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelItemRenderController extends runtime.PanelItemController {
|
|
7
|
+
/**
|
|
8
|
+
* 获取面板绘制器自定义html
|
|
9
|
+
*
|
|
10
|
+
* @author zk
|
|
11
|
+
* @date 2024-01-15 01:01:11
|
|
12
|
+
* @export
|
|
13
|
+
* @param {IControlRender[]} controlRenders
|
|
14
|
+
* @return {*} {(string | undefined)}
|
|
15
|
+
*/
|
|
16
|
+
getPanelItemCustomHtml(controlRenders, data) {
|
|
17
|
+
if (controlRenders.length === 0) {
|
|
18
|
+
return void 0;
|
|
19
|
+
}
|
|
20
|
+
const controlRender = controlRenders[0];
|
|
21
|
+
if (controlRender.layoutPanelModel) {
|
|
22
|
+
return runtime.ScriptFactory.execScriptFn(
|
|
23
|
+
{ data: data || {} },
|
|
24
|
+
controlRender.layoutPanelModel,
|
|
25
|
+
{ singleRowReturn: true, isAsync: false }
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.PanelItemRenderController = PanelItemRenderController;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelItemRender_controller = require('./panel-item-render.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelItemRenderProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelItemRender";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new panelItemRender_controller.PanelItemRenderController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelItemRenderProvider = PanelItemRenderProvider;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('../../util/index.cjs');
|
|
7
|
+
var panelRawitem = require('./panel-rawitem.cjs');
|
|
8
|
+
var panelRawitem_provider = require('./panel-rawitem.provider.cjs');
|
|
9
|
+
var panelRawitem_controller = require('./panel-rawitem.controller.cjs');
|
|
10
|
+
var install = require('../../util/install.cjs');
|
|
11
|
+
|
|
12
|
+
"use strict";
|
|
13
|
+
const IBizPanelRawItem = install.withInstall(panelRawitem.PanelRawItem, function(v) {
|
|
14
|
+
v.component(panelRawitem.PanelRawItem.name, panelRawitem.PanelRawItem);
|
|
15
|
+
runtime.registerPanelItemProvider("RAWITEM", () => new panelRawitem_provider.PanelRawItemProvider());
|
|
16
|
+
runtime.registerPanelItemProvider(
|
|
17
|
+
"RAWITEM_STATIC_IMAGE",
|
|
18
|
+
() => new panelRawitem_provider.PanelRawItemProvider()
|
|
19
|
+
);
|
|
20
|
+
runtime.registerPanelItemProvider(
|
|
21
|
+
"RAWITEM_STATIC_LABEL",
|
|
22
|
+
() => new panelRawitem_provider.PanelRawItemProvider()
|
|
23
|
+
);
|
|
24
|
+
runtime.registerPanelItemProvider(
|
|
25
|
+
"RAWITEM_STATIC_TEXT",
|
|
26
|
+
() => new panelRawitem_provider.PanelRawItemProvider()
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
exports.PanelRawItemController = panelRawitem_controller.PanelRawItemController;
|
|
31
|
+
exports.IBizPanelRawItem = IBizPanelRawItem;
|
|
32
|
+
exports.default = IBizPanelRawItem;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../../use/index.cjs');
|
|
5
|
+
var panelRawitem_controller = require('./panel-rawitem.controller.cjs');
|
|
6
|
+
require('./panel-rawitem.css');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const PanelRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
name: "IBizPanelRawItem",
|
|
12
|
+
props: {
|
|
13
|
+
modelData: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
controller: {
|
|
18
|
+
type: panelRawitem_controller.PanelRawItemController,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(props) {
|
|
23
|
+
const ns = namespace.useNamespace("panel-rawitem");
|
|
24
|
+
const tempStyle = vue.ref("");
|
|
25
|
+
const {
|
|
26
|
+
rawItem
|
|
27
|
+
} = props.modelData;
|
|
28
|
+
if (rawItem && rawItem.cssStyle) {
|
|
29
|
+
tempStyle.value = rawItem.cssStyle;
|
|
30
|
+
}
|
|
31
|
+
const classArr = vue.computed(() => {
|
|
32
|
+
const {
|
|
33
|
+
id
|
|
34
|
+
} = props.modelData;
|
|
35
|
+
const result = [ns.b(), ns.m(id)];
|
|
36
|
+
result.push(...props.controller.containerClass);
|
|
37
|
+
return result;
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
ns,
|
|
41
|
+
classArr,
|
|
42
|
+
tempStyle
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
render() {
|
|
46
|
+
if (!this.controller.state.visible) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
return vue.createVNode("div", {
|
|
50
|
+
"class": this.classArr,
|
|
51
|
+
"style": this.tempStyle,
|
|
52
|
+
"onClick": () => {
|
|
53
|
+
this.controller.onClick();
|
|
54
|
+
}
|
|
55
|
+
}, [vue.createVNode(vue.resolveComponent("iBizRawItem"), {
|
|
56
|
+
"rawItem": this.modelData
|
|
57
|
+
}, null)]);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
exports.PanelRawItem = PanelRawItem;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelRawItemController extends runtime.PanelItemController {
|
|
7
|
+
/**
|
|
8
|
+
* 父容器数据对象数据
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2023-07-15 01:33:58
|
|
11
|
+
* @readonly
|
|
12
|
+
* @type {IData}
|
|
13
|
+
*/
|
|
14
|
+
get data() {
|
|
15
|
+
return this.dataParent.data;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 初始化
|
|
19
|
+
*
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2022-08-24 20:08:42
|
|
22
|
+
* @protected
|
|
23
|
+
* @returns {*} {Promise<void>}
|
|
24
|
+
*/
|
|
25
|
+
async onInit() {
|
|
26
|
+
await super.onInit();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
exports.PanelRawItemController = PanelRawItemController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-rawitem{width:100%;height:100%}.ibiz-panel-rawitem .ibiz-panel-rawitem-content{width:100%}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelRawitem_controller = require('./panel-rawitem.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelRawItemProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelRawItem";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new panelRawitem_controller.PanelRawItemController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelRawItemProvider = PanelRawItemProvider;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
var panelTabPage = require('./panel-tab-page.cjs');
|
|
7
|
+
var panelTabPage_provider = require('./panel-tab-page.provider.cjs');
|
|
8
|
+
require('../../util/index.cjs');
|
|
9
|
+
var install = require('../../util/install.cjs');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const IBizPanelTabPage = install.withInstall(panelTabPage.PanelTabPage, function(v) {
|
|
13
|
+
v.component(panelTabPage.PanelTabPage.name, panelTabPage.PanelTabPage);
|
|
14
|
+
runtime.registerPanelItemProvider("TABPAGE", () => new panelTabPage_provider.PanelTabPageProvider());
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
exports.IBizPanelTabPage = IBizPanelTabPage;
|
|
18
|
+
exports.default = IBizPanelTabPage;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
5
|
+
require('../../use/index.cjs');
|
|
6
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
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 PanelTabPage = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
name: "IBizPanelTabPage",
|
|
14
|
+
props: {
|
|
15
|
+
modelData: {
|
|
16
|
+
// IPanelTabPage 不能使用 IPanelTabPage模型 否则会类型报错
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
controller: {
|
|
21
|
+
type: runtime.PanelItemController,
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(props) {
|
|
26
|
+
const ns = namespace.useNamespace("panel-tab-page");
|
|
27
|
+
const classArr = vue.computed(() => {
|
|
28
|
+
const {
|
|
29
|
+
id
|
|
30
|
+
} = props.modelData;
|
|
31
|
+
const result = [ns.b(), ns.m(id)];
|
|
32
|
+
result.push(...props.controller.containerClass);
|
|
33
|
+
return result;
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
ns,
|
|
37
|
+
classArr
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
render() {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
let _slot;
|
|
43
|
+
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
44
|
+
return vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
45
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), this.classArr],
|
|
46
|
+
"layout": this.modelData.layout
|
|
47
|
+
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
48
|
+
const props = slot.props;
|
|
49
|
+
if (!props || !props.controller) {
|
|
50
|
+
return slot;
|
|
51
|
+
}
|
|
52
|
+
const c = props.controller;
|
|
53
|
+
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
54
|
+
"layoutPos": c.model.layoutPos,
|
|
55
|
+
"state": c.state
|
|
56
|
+
}, _isSlot(slot) ? slot : {
|
|
57
|
+
default: () => [slot]
|
|
58
|
+
});
|
|
59
|
+
})) ? _slot : {
|
|
60
|
+
default: () => [_slot]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
exports.PanelTabPage = PanelTabPage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelTabPageProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelTabPage";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new runtime.PanelItemController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelTabPageProvider = PanelTabPageProvider;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('../../util/index.cjs');
|
|
7
|
+
var scrollContainerItem = require('./scroll-container-item/scroll-container-item.cjs');
|
|
8
|
+
var scrollContainerItem_provider = require('./scroll-container-item/scroll-container-item.provider.cjs');
|
|
9
|
+
var scrollContainer = require('./scroll-container/scroll-container.cjs');
|
|
10
|
+
var scrollContainer_provider = require('./scroll-container/scroll-container.provider.cjs');
|
|
11
|
+
require('./scroll-container/index.cjs');
|
|
12
|
+
require('./scroll-container-item/index.cjs');
|
|
13
|
+
var install = require('../../util/install.cjs');
|
|
14
|
+
var scrollContainer_controller = require('./scroll-container/scroll-container.controller.cjs');
|
|
15
|
+
var scrollContainerItem_controller = require('./scroll-container-item/scroll-container-item.controller.cjs');
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
const IBizScrollContainer = install.withInstall(
|
|
19
|
+
scrollContainer.ScrollContainer,
|
|
20
|
+
function(v) {
|
|
21
|
+
v.component(scrollContainer.ScrollContainer.name, scrollContainer.ScrollContainer);
|
|
22
|
+
v.component(scrollContainerItem.ScrollContainerItem.name, scrollContainerItem.ScrollContainerItem);
|
|
23
|
+
runtime.registerPanelItemProvider(
|
|
24
|
+
"CONTAINER_CONTAINER_SCROLL",
|
|
25
|
+
() => new scrollContainer_provider.ScrollContainerProvider()
|
|
26
|
+
);
|
|
27
|
+
runtime.registerPanelItemProvider(
|
|
28
|
+
"CONTAINER_CONTAINER_SCROLL_LEFT",
|
|
29
|
+
() => new scrollContainerItem_provider.ScrollContainerItemProvider()
|
|
30
|
+
);
|
|
31
|
+
runtime.registerPanelItemProvider(
|
|
32
|
+
"CONTAINER_CONTAINER_SCROLL_HEADER",
|
|
33
|
+
() => new scrollContainerItem_provider.ScrollContainerItemProvider()
|
|
34
|
+
);
|
|
35
|
+
runtime.registerPanelItemProvider(
|
|
36
|
+
"CONTAINER_CONTAINER_SCROLL_RIGHT",
|
|
37
|
+
() => new scrollContainerItem_provider.ScrollContainerItemProvider()
|
|
38
|
+
);
|
|
39
|
+
runtime.registerPanelItemProvider(
|
|
40
|
+
"CONTAINER_CONTAINER_SCROLL_BOTTOM",
|
|
41
|
+
() => new scrollContainerItem_provider.ScrollContainerItemProvider()
|
|
42
|
+
);
|
|
43
|
+
runtime.registerPanelItemProvider(
|
|
44
|
+
"CONTAINER_CONTAINER_SCROLL_MAIN",
|
|
45
|
+
() => new scrollContainerItem_provider.ScrollContainerItemProvider()
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
exports.ScrollContainerItem = scrollContainerItem.ScrollContainerItem;
|
|
51
|
+
exports.ScrollContainer = scrollContainer.ScrollContainer;
|
|
52
|
+
exports.ScrollContainerController = scrollContainer_controller.ScrollContainerController;
|
|
53
|
+
exports.ScrollContainerItemController = scrollContainerItem_controller.ScrollContainerItemController;
|
|
54
|
+
exports.IBizScrollContainer = IBizScrollContainer;
|
|
55
|
+
exports.default = IBizScrollContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var scrollContainer_controller = require('./scroll-container.controller.cjs');
|
|
4
|
+
var scrollContainer = require('./scroll-container.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
exports.ScrollContainerController = scrollContainer_controller.ScrollContainerController;
|
|
9
|
+
exports.ScrollContainer = scrollContainer.ScrollContainer;
|