@ibiz-template/vue3-util 0.6.1-dev.0 → 0.6.1-dev.1
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/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} +28 -40
- 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 +5 -5
- 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 -401
- 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,110 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var panelContainerGroup_controller = require('./panel-container-group.controller.cjs');
|
|
5
|
+
require('./panel-container-group.css');
|
|
6
|
+
require('../../use/index.cjs');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
12
|
+
}
|
|
13
|
+
const PanelContainerGroup = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
name: "IBizPanelContainerGroup",
|
|
15
|
+
props: {
|
|
16
|
+
modelData: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
controller: {
|
|
21
|
+
type: panelContainerGroup_controller.PanelContainerGroupController,
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(props) {
|
|
26
|
+
const ns = namespace.useNamespace("panel-container-group");
|
|
27
|
+
const isCollapse = vue.ref(!props.controller.defaultExpansion);
|
|
28
|
+
const changeCollapse = () => {
|
|
29
|
+
if (!props.controller.disableClose) {
|
|
30
|
+
isCollapse.value = !isCollapse.value;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const captionText = vue.computed(() => {
|
|
34
|
+
const {
|
|
35
|
+
captionItemName,
|
|
36
|
+
caption,
|
|
37
|
+
capLanguageRes
|
|
38
|
+
} = props.modelData;
|
|
39
|
+
if (captionItemName) {
|
|
40
|
+
return props.controller.data[captionItemName];
|
|
41
|
+
}
|
|
42
|
+
let text = caption;
|
|
43
|
+
if (capLanguageRes) {
|
|
44
|
+
text = ibiz.i18n.t(capLanguageRes.lanResTag, caption);
|
|
45
|
+
}
|
|
46
|
+
return text;
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
ns,
|
|
50
|
+
captionText,
|
|
51
|
+
changeCollapse,
|
|
52
|
+
isCollapse
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
render() {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
let _slot;
|
|
58
|
+
const classArr = [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass, this.ns.is("hidden", !this.controller.state.visible)];
|
|
59
|
+
if (this.modelData.showCaption === true) {
|
|
60
|
+
classArr.push(this.ns.m("show-header"));
|
|
61
|
+
classArr.push(this.ns.b("collapse"));
|
|
62
|
+
classArr.push(this.ns.is("collapse", this.isCollapse));
|
|
63
|
+
if (this.controller.disableClose) {
|
|
64
|
+
classArr.push(this.ns.bm("collapse", "disable-close"));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
68
|
+
const content = vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
69
|
+
"slot": "content",
|
|
70
|
+
"layout": this.modelData.layout
|
|
71
|
+
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
72
|
+
const props = slot.props;
|
|
73
|
+
if (!props || !props.controller) {
|
|
74
|
+
return slot;
|
|
75
|
+
}
|
|
76
|
+
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
77
|
+
"layoutPos": props.modelData.layoutPos,
|
|
78
|
+
"state": props.controller.state
|
|
79
|
+
}, _isSlot(slot) ? slot : {
|
|
80
|
+
default: () => [slot]
|
|
81
|
+
});
|
|
82
|
+
})) ? _slot : {
|
|
83
|
+
default: () => [_slot]
|
|
84
|
+
});
|
|
85
|
+
let header = null;
|
|
86
|
+
if (this.modelData.showCaption) {
|
|
87
|
+
header = vue.createVNode("div", {
|
|
88
|
+
"class": [this.ns.b("header")],
|
|
89
|
+
"onClick": this.changeCollapse
|
|
90
|
+
}, [vue.createVNode("div", {
|
|
91
|
+
"class": [this.ns.be("header", "left")]
|
|
92
|
+
}, [vue.createVNode("div", {
|
|
93
|
+
"class": [this.ns.e("caption"), ...this.controller.labelClass]
|
|
94
|
+
}, [this.captionText])]), vue.createVNode("div", {
|
|
95
|
+
"class": [this.ns.be("header", "right")]
|
|
96
|
+
}, [this.modelData.titleBarCloseMode !== void 0 && this.modelData.titleBarCloseMode !== 0 && (this.isCollapse ? vue.createVNode("ion-icon", {
|
|
97
|
+
"name": "caret-forward-sharp"
|
|
98
|
+
}, null) : vue.createVNode("ion-icon", {
|
|
99
|
+
"name": "caret-down-sharp"
|
|
100
|
+
}, null))])]);
|
|
101
|
+
}
|
|
102
|
+
return vue.createVNode("div", {
|
|
103
|
+
"class": classArr
|
|
104
|
+
}, [header, vue.createVNode("div", {
|
|
105
|
+
"class": [this.ns.b("content")]
|
|
106
|
+
}, [content])]);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
exports.PanelContainerGroup = PanelContainerGroup;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var panelContainerGroup_state = require('./panel-container-group.state.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class PanelContainerGroupController extends runtime.PanelItemController {
|
|
8
|
+
createState() {
|
|
9
|
+
var _a;
|
|
10
|
+
return new panelContainerGroup_state.PanelContainerGroupState((_a = this.parent) == null ? void 0 : _a.state);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 禁用关闭
|
|
14
|
+
*
|
|
15
|
+
* @author chitanda
|
|
16
|
+
* @date 2022-09-14 14:09:51
|
|
17
|
+
* @readonly
|
|
18
|
+
* @type {boolean}
|
|
19
|
+
*/
|
|
20
|
+
get disableClose() {
|
|
21
|
+
const { titleBarCloseMode: mode } = this.model;
|
|
22
|
+
return mode === 0 || mode === void 0;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 是否默认展开分组
|
|
26
|
+
*
|
|
27
|
+
* @author chitanda
|
|
28
|
+
* @date 2022-09-14 14:09:09
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
get defaultExpansion() {
|
|
32
|
+
const { titleBarCloseMode: mode } = this.model;
|
|
33
|
+
return this.disableClose || mode === 1;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.PanelContainerGroupController = PanelContainerGroupController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-container-group{--ibiz-panel-container-group-bg-color:transparent;--ibiz-panel-container-group-header-bg-color:transparent;--ibiz-panel-container-group-header-padding:var(--ibiz-spacing-base-tight);--ibiz-panel-container-group-header-border-color:var(--ibiz-color-border);--ibiz-panel-container-group-header-height:49px;--ibiz-panel-container-group-caption-text-color:var(--ibiz-color-text-0);--ibiz-panel-container-group-caption-font-size:var(--ibiz-font-size-header-5);--ibiz-panel-container-group-caption-font-weight:var(--ibiz-font-weight-bold);--ibiz-panel-container-group-content-bg-color:transparent;--ibiz-panel-container-group-content-padding:var(--ibiz-spacing-tight)}.ibiz-panel-container-group{height:100%;background-color:var(--ibiz-panel-container-group-bg-color);border-radius:var(--ibiz-border-radius-base)}.ibiz-panel-container-group__caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ibiz-panel-container-group-caption-font-size);font-weight:var(--ibiz-panel-container-group-caption-font-weight);color:var(--ibiz-panel-container-group-caption-text-color)}.ibiz-panel-container-group-collapse>.ibiz-panel-container-group-content{display:block}.ibiz-panel-container-group-collapse.is-collapse>.ibiz-panel-container-group-content{display:none}.ibiz-panel-container-group-header{display:flex;height:var(--ibiz-panel-container-group-header-height);padding:var(--ibiz-panel-container-group-header-padding);margin:var(--ibiz-panel-container-group-header-margin);border-bottom:1px solid var(--ibiz-panel-container-group-header-border-color)}.ibiz-panel-container-group-header__left,.ibiz-panel-container-group-header__right{display:inline-block;width:50%}.ibiz-panel-container-group-header__right{text-align:right;display:flex;align-items:center;justify-content:flex-end}.ibiz-panel-container-group-content{width:100%;height:100%}.ibiz-panel-container-group-content>.ibiz-row{width:100%;height:100%}.ibiz-panel-container-group--show-header>.ibiz-panel-container-group-content{height:calc(100% - var(--ibiz-panel-container-group-header-height));padding:var(--ibiz-panel-container-group-content-padding);background-color:var(--ibiz-panel-container-group-content-bg-color)}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelContainerGroup_controller = require('./panel-container-group.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelContainerGroupProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelContainerGroup";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new panelContainerGroup_controller.PanelContainerGroupController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelContainerGroupProvider = PanelContainerGroupProvider;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 panelContainerImage = require('./panel-container-image.cjs');
|
|
8
|
+
var panelContainerImage_provider = require('./panel-container-image.provider.cjs');
|
|
9
|
+
var panelContainerImage_state = require('./panel-container-image.state.cjs');
|
|
10
|
+
var panelContainerImage_controller = require('./panel-container-image.controller.cjs');
|
|
11
|
+
var install = require('../../util/install.cjs');
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
const IBizPanelContainerImage = install.withInstall(
|
|
15
|
+
panelContainerImage.PanelContainerImage,
|
|
16
|
+
function(v) {
|
|
17
|
+
v.component(panelContainerImage.PanelContainerImage.name, panelContainerImage.PanelContainerImage);
|
|
18
|
+
runtime.registerPanelItemProvider(
|
|
19
|
+
"CONTAINER_CONTAINER_IMAGE",
|
|
20
|
+
() => new panelContainerImage_provider.PanelContainerImageProvider()
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
exports.PanelContainerImageState = panelContainerImage_state.PanelContainerImageState;
|
|
26
|
+
exports.PanelContainerImageController = panelContainerImage_controller.PanelContainerImageController;
|
|
27
|
+
exports.IBizPanelContainerImage = IBizPanelContainerImage;
|
|
28
|
+
exports.default = IBizPanelContainerImage;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var core = require('@ibiz-template/core');
|
|
5
|
+
require('../../use/index.cjs');
|
|
6
|
+
var panelContainerImage_controller = require('./panel-container-image.controller.cjs');
|
|
7
|
+
require('./panel-container-image.css');
|
|
8
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
function _isSlot(s) {
|
|
12
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
13
|
+
}
|
|
14
|
+
const PanelContainerImage = /* @__PURE__ */ vue.defineComponent({
|
|
15
|
+
name: "IBizPanelContainerImage",
|
|
16
|
+
props: {
|
|
17
|
+
modelData: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
controller: {
|
|
22
|
+
type: panelContainerImage_controller.PanelContainerImageController,
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(props) {
|
|
27
|
+
const ns = namespace.useNamespace("panel-container-image");
|
|
28
|
+
const {
|
|
29
|
+
id
|
|
30
|
+
} = props.modelData;
|
|
31
|
+
const classArr = vue.computed(() => {
|
|
32
|
+
let result = [ns.b(), ns.m(id)];
|
|
33
|
+
result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
|
|
34
|
+
return result;
|
|
35
|
+
});
|
|
36
|
+
const backgroundStyle = vue.computed(() => {
|
|
37
|
+
const image = props.controller.model.sysImage;
|
|
38
|
+
const styles = {};
|
|
39
|
+
let imgStr = "";
|
|
40
|
+
if (image == null ? void 0 : image.rawContent) {
|
|
41
|
+
if (core.isSvg(image.rawContent)) {
|
|
42
|
+
imgStr = "url(data:image/svg+xml;base64,".concat(btoa(image.rawContent), ")");
|
|
43
|
+
} else {
|
|
44
|
+
imgStr = "url(".concat(image.rawContent, ")");
|
|
45
|
+
}
|
|
46
|
+
} else if (image == null ? void 0 : image.imagePath) {
|
|
47
|
+
imgStr = "url(".concat(image.imagePath, ")");
|
|
48
|
+
}
|
|
49
|
+
if (imgStr) {
|
|
50
|
+
Object.assign(styles, {
|
|
51
|
+
backgroundImage: imgStr
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return styles;
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
ns,
|
|
58
|
+
classArr,
|
|
59
|
+
backgroundStyle
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
render() {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
let _slot;
|
|
65
|
+
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
66
|
+
const content = vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
67
|
+
"slot": "content",
|
|
68
|
+
"layout": this.modelData.layout
|
|
69
|
+
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
70
|
+
const props = slot.props;
|
|
71
|
+
if (!props || !props.controller) {
|
|
72
|
+
return slot;
|
|
73
|
+
}
|
|
74
|
+
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
75
|
+
"layoutPos": props.modelData.layoutPos,
|
|
76
|
+
"state": props.controller.state
|
|
77
|
+
}, _isSlot(slot) ? slot : {
|
|
78
|
+
default: () => [slot]
|
|
79
|
+
});
|
|
80
|
+
})) ? _slot : {
|
|
81
|
+
default: () => [_slot]
|
|
82
|
+
});
|
|
83
|
+
return vue.createVNode("div", {
|
|
84
|
+
"class": this.classArr,
|
|
85
|
+
"onClick": () => {
|
|
86
|
+
this.controller.onClick();
|
|
87
|
+
},
|
|
88
|
+
"style": this.backgroundStyle
|
|
89
|
+
}, [this.controller.model.cssStyle ? vue.createVNode("style", {
|
|
90
|
+
"type": "text/css"
|
|
91
|
+
}, [this.controller.model.cssStyle]) : null, content]);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
exports.PanelContainerImage = PanelContainerImage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var panelContainerImage_state = require('./panel-container-image.state.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class PanelContainerImageController extends runtime.PanelItemController {
|
|
8
|
+
createState() {
|
|
9
|
+
var _a;
|
|
10
|
+
return new panelContainerImage_state.PanelContainerImageState((_a = this.parent) == null ? void 0 : _a.state);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.PanelContainerImageController = PanelContainerImageController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-container-image{position:relative;width:100%;height:100%;background-repeat:no-repeat;background-position:center center}.ibiz-panel-container-image>.ibiz-row{height:100%;overflow-x:hidden;overflow-y:auto}.ibiz-panel-container-image.is-hidden{display:none}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelContainerImage_controller = require('./panel-container-image.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelContainerImageProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelContainerImage";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new panelContainerImage_controller.PanelContainerImageController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelContainerImageProvider = PanelContainerImageProvider;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 panelCtrlPos = require('./panel-ctrl-pos.cjs');
|
|
8
|
+
var panelCtrlPos_provider = require('./panel-ctrl-pos.provider.cjs');
|
|
9
|
+
var panelCtrlPos_controller = require('./panel-ctrl-pos.controller.cjs');
|
|
10
|
+
var install = require('../../util/install.cjs');
|
|
11
|
+
|
|
12
|
+
"use strict";
|
|
13
|
+
const IBizPanelCtrlPos = install.withInstall(panelCtrlPos.PanelCtrlPos, function(v) {
|
|
14
|
+
v.component(panelCtrlPos.PanelCtrlPos.name, panelCtrlPos.PanelCtrlPos);
|
|
15
|
+
runtime.registerPanelItemProvider("CTRLPOS", () => new panelCtrlPos_provider.PanelCtrlPosProvider());
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
exports.PanelCtrlPosController = panelCtrlPos_controller.PanelCtrlPosController;
|
|
19
|
+
exports.IBizPanelCtrlPos = IBizPanelCtrlPos;
|
|
20
|
+
exports.default = IBizPanelCtrlPos;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../../use/index.cjs');
|
|
5
|
+
require('./panel-ctrl-pos.css');
|
|
6
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const PanelCtrlPos = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizPanelCtrlPos",
|
|
11
|
+
props: {
|
|
12
|
+
modelData: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
controller: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(props) {
|
|
22
|
+
const ctx = vue.inject("ctx");
|
|
23
|
+
ctx.evt.on("onRegister", (name, c) => {
|
|
24
|
+
if (name === props.modelData.id) {
|
|
25
|
+
props.controller.bindControl(c);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const ns = namespace.useNamespace("panel-ctrl-pos");
|
|
29
|
+
return {
|
|
30
|
+
ns
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
render() {
|
|
34
|
+
const {
|
|
35
|
+
state
|
|
36
|
+
} = this.controller;
|
|
37
|
+
let content;
|
|
38
|
+
if (this.$slots.default) {
|
|
39
|
+
content = this.$slots.default();
|
|
40
|
+
}
|
|
41
|
+
return vue.createVNode("div", {
|
|
42
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass, this.ns.is("hidden", !state.visible)]
|
|
43
|
+
}, [content || (ibiz.env.dev ? "\u672A\u63D0\u4F9B".concat(this.modelData.id, "\u63D2\u69FD") : "")]);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
exports.PanelCtrlPos = PanelCtrlPos;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelCtrlPosController extends runtime.PanelItemController {
|
|
7
|
+
/**
|
|
8
|
+
* 绑定部件控制器
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2023-08-09 10:42:30
|
|
11
|
+
* @param {IControlController} controller
|
|
12
|
+
*/
|
|
13
|
+
bindControl(controller) {
|
|
14
|
+
this.control = controller;
|
|
15
|
+
controller.evt.onAll((eventName, event) => {
|
|
16
|
+
this.panel.evt.emit("onControlEvent", {
|
|
17
|
+
triggerControlName: this.model.id,
|
|
18
|
+
triggerEventName: eventName,
|
|
19
|
+
triggerEvent: event
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.PanelCtrlPosController = PanelCtrlPosController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-ctrl-pos{width:100%;height:100%}.ibiz-panel-ctrl-pos.is-hidden{display:none}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelCtrlPos_controller = require('./panel-ctrl-pos.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelCtrlPosProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelCtrlPos";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new panelCtrlPos_controller.PanelCtrlPosController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelCtrlPosProvider = PanelCtrlPosProvider;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 panelField = require('./panel-field.cjs');
|
|
8
|
+
var panelField_provider = require('./panel-field.provider.cjs');
|
|
9
|
+
var panelField_controller = require('./panel-field.controller.cjs');
|
|
10
|
+
var install = require('../../util/install.cjs');
|
|
11
|
+
|
|
12
|
+
"use strict";
|
|
13
|
+
const IBizPanelField = install.withInstall(panelField.PanelField, function(v) {
|
|
14
|
+
v.component(panelField.PanelField.name, panelField.PanelField);
|
|
15
|
+
runtime.registerPanelItemProvider("FIELD", () => new panelField_provider.PanelFieldProvider());
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
exports.PanelFieldController = panelField_controller.PanelFieldController;
|
|
19
|
+
exports.IBizPanelField = IBizPanelField;
|
|
20
|
+
exports.default = IBizPanelField;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../../use/index.cjs');
|
|
5
|
+
var panelField_controller = require('./panel-field.controller.cjs');
|
|
6
|
+
require('./panel-field.css');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const PanelField = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
name: "IBizPanelField",
|
|
12
|
+
props: {
|
|
13
|
+
modelData: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
controller: {
|
|
18
|
+
type: panelField_controller.PanelFieldController,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(props) {
|
|
23
|
+
const ns = namespace.useNamespace("panel-field");
|
|
24
|
+
const classArr = vue.computed(() => {
|
|
25
|
+
const {
|
|
26
|
+
id
|
|
27
|
+
} = props.modelData;
|
|
28
|
+
const result = [ns.b(), ns.m(id)];
|
|
29
|
+
result.push(...props.controller.containerClass);
|
|
30
|
+
return result;
|
|
31
|
+
});
|
|
32
|
+
const onValueChange = (val, name) => {
|
|
33
|
+
props.controller.setDataValue(val, name);
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
ns,
|
|
37
|
+
classArr,
|
|
38
|
+
onValueChange
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
render() {
|
|
42
|
+
let editor = null;
|
|
43
|
+
if (this.controller.data) {
|
|
44
|
+
const editorProps = {
|
|
45
|
+
value: this.controller.value,
|
|
46
|
+
data: this.controller.data,
|
|
47
|
+
controller: this.controller.editor,
|
|
48
|
+
disabled: this.controller.state.disabled,
|
|
49
|
+
class: this.ns.b("content"),
|
|
50
|
+
readonly: this.controller.model.editor.readOnly,
|
|
51
|
+
onChange: this.onValueChange,
|
|
52
|
+
onFocus: (event) => this.controller.onFocus(event),
|
|
53
|
+
onBlur: (event) => this.controller.onBlur(event),
|
|
54
|
+
onEnter: (event) => this.controller.onEnter(event)
|
|
55
|
+
};
|
|
56
|
+
if (this.$slots.default) {
|
|
57
|
+
editor = this.$slots.default(editorProps);
|
|
58
|
+
} else if (this.controller.editorProvider) {
|
|
59
|
+
const component = vue.resolveComponent(this.controller.editorProvider.formEditor);
|
|
60
|
+
editor = vue.h(component, {
|
|
61
|
+
...editorProps
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
editor = vue.createVNode(vue.resolveComponent("not-supported-editor"), {
|
|
65
|
+
"modelData": this.modelData.editor
|
|
66
|
+
}, null);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return vue.createVNode("div", {
|
|
70
|
+
"class": this.classArr,
|
|
71
|
+
"onClick": () => {
|
|
72
|
+
this.controller.onClick();
|
|
73
|
+
}
|
|
74
|
+
}, [editor]);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
exports.PanelField = PanelField;
|