@ibiz-template/vue3-util 0.6.1-dev.0 → 0.6.1-dev.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/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 +11 -7
- 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
package/dist/index.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-shell{position:relative;width:100%;height:100%}.ibiz-badge{display:inline-block;padding:3px 6px;line-height:1rem;color:#fff;background-color:var(--ibiz-badge-bg-color);border-radius:10px}.ibiz-badge--danger{--ibiz-badge-bg-color:var(--ibiz-color-danger)}.ibiz-badge--success{--ibiz-badge-bg-color:var(--ibiz-color-success)}.ibiz-badge--warning{--ibiz-badge-bg-color:var(--ibiz-color-warning)}.ibiz-badge--info{--ibiz-badge-bg-color:var(--ibiz-color-info)}.ibiz-badge--primary{--ibiz-badge-bg-color:var(--ibiz-color-primary)}.ibiz-
|
|
1
|
+
.ibiz-control-shell{position:relative;width:100%;height:100%}.ibiz-view-shell{position:relative;width:100%;height:100%}.ibiz-badge{display:inline-block;padding:3px 6px;line-height:1rem;color:#fff;background-color:var(--ibiz-badge-bg-color);border-radius:10px}.ibiz-badge--danger{--ibiz-badge-bg-color:var(--ibiz-color-danger)}.ibiz-badge--success{--ibiz-badge-bg-color:var(--ibiz-color-success)}.ibiz-badge--warning{--ibiz-badge-bg-color:var(--ibiz-color-warning)}.ibiz-badge--info{--ibiz-badge-bg-color:var(--ibiz-color-info)}.ibiz-badge--primary{--ibiz-badge-bg-color:var(--ibiz-color-primary)}.ibiz-code-list{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap}.ibiz-code-list__item{color:var(--ibiz-code-list-item-color);display:flex;align-items:center;justify-content:flex-start}.ibiz-code-list .ibiz-icon{display:inline-flex;padding-right:var(--ibiz-spacing-tight)}.ibiz-panel-ctrl-pos{width:100%;height:100%}.ibiz-panel-ctrl-pos.is-hidden{display:none}.ibiz-panel-container{width:100%;height:100%}.ibiz-panel-container>.ibiz-row{height:100%;overflow-x:hidden;overflow-y:auto}.ibiz-panel-container.is-hidden{display:none}.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}.ibiz-nav-pos{width:100%;height:100%}.ibiz-panel-rawitem{width:100%;height:100%}.ibiz-panel-rawitem .ibiz-panel-rawitem-content{width:100%}.ibiz-multi-data-container{width:100%;height:100%}.ibiz-single-data-container{width:100%;height:100%}.ibiz-scroll-container-item{width:100%;height:100%;overflow:auto}.ibiz-scroll-container-item.is-hidden{display:none}.ibiz-scroll-container{width:100%;height:100%;display:flex;flex-flow:column nowrap}.ibiz-scroll-container.is-hidden{display:none}.ibiz-scroll-container-content{flex-grow:1;overflow:auto;display:flex}.ibiz-scroll-container-content__center{flex-grow:1;overflow:auto}.ibiz-scroll-container-content__left{overflow:auto}.ibiz-scroll-container-content__right{overflow:auto}.ibiz-scroll-container-header{overflow:auto}.ibiz-scroll-container-footer{overflow:auto}.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}.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)}.ibiz-grid-container{--ibiz-grid-container-bg-color:var(--ibiz-bg-color-overlay);--ibiz-grid-container-padding:var(--ibiz-padding);width:100%;height:100%;overflow:auto}.ibiz-grid-container.is-hidden{display:none}.ibiz-view{--ibiz-view-bg-color:var(--ibiz-color-bg-1);--ibiz-view-border-radius:var(--ibiz-border-radius-medium);width:100%;height:100%}.ibiz-view .ibiz-view{background-color:var(--ibiz-view-bg-color);border-radius:var(--ibiz-view-border-radius)}.ibiz-view .ibiz-view-appportalview{background-color:rgba(0,0,0,0)}.ibiz-view.has-top-message,.ibiz-view.has-bottom-message{display:flex;flex-flow:column nowrap}.ibiz-view.has-top-message>.ibiz-view-message,.ibiz-view.has-bottom-message>.ibiz-view-message{flex-grow:0;flex-shrink:0}.ibiz-view.has-top-message>.ibiz-control-viewlayoutpanel,.ibiz-view.has-bottom-message>.ibiz-control-viewlayoutpanel{flex-grow:1;flex-shrink:1}.ibiz-control-viewlayoutpanel{width:100%;height:100%}.ibiz-control-viewlayoutpanel-content{width:100%;height:100%}.ibiz-control-panel{width:100%;height:100%}.ibiz-control-panel-content{width:100%;height:100%}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
+
|
|
5
|
+
function getDefaultExportFromCjs (x) {
|
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
10
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
14
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function getAugmentedNamespace(n) {
|
|
18
|
+
if (n.__esModule) return n;
|
|
19
|
+
var f = n.default;
|
|
20
|
+
if (typeof f == "function") {
|
|
21
|
+
var a = function a () {
|
|
22
|
+
if (this instanceof a) {
|
|
23
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
24
|
+
}
|
|
25
|
+
return f.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
a.prototype = f.prototype;
|
|
28
|
+
} else a = {};
|
|
29
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
30
|
+
Object.keys(n).forEach(function (k) {
|
|
31
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
32
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return n[k];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
return a;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.commonjsGlobal = commonjsGlobal;
|
|
43
|
+
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
44
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
45
|
+
exports.getDefaultExportFromNamespaceIfNotNamed = getDefaultExportFromNamespaceIfNotNamed;
|
|
46
|
+
exports.getDefaultExportFromNamespaceIfPresent = getDefaultExportFromNamespaceIfPresent;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../../use/index.cjs');
|
|
5
|
+
require('./badge.css');
|
|
6
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const IBizBadge = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizBadge",
|
|
11
|
+
props: {
|
|
12
|
+
value: {
|
|
13
|
+
type: Number,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "danger"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup() {
|
|
22
|
+
const ns = namespace.useNamespace("badge");
|
|
23
|
+
return {
|
|
24
|
+
ns
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
render() {
|
|
28
|
+
return vue.createVNode("div", {
|
|
29
|
+
"class": [this.ns.b(), this.ns.m(this.type)]
|
|
30
|
+
}, [this.value]);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
exports.IBizBadge = IBizBadge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-badge{display:inline-block;padding:3px 6px;line-height:1rem;color:#fff;background-color:var(--ibiz-badge-bg-color);border-radius:10px}.ibiz-badge--danger{--ibiz-badge-bg-color:var(--ibiz-color-danger)}.ibiz-badge--success{--ibiz-badge-bg-color:var(--ibiz-color-success)}.ibiz-badge--warning{--ibiz-badge-bg-color:var(--ibiz-color-warning)}.ibiz-badge--info{--ibiz-badge-bg-color:var(--ibiz-color-info)}.ibiz-badge--primary{--ibiz-badge-bg-color:var(--ibiz-color-primary)}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var ramda = require('ramda');
|
|
5
|
+
require('./code-list.css');
|
|
6
|
+
require('../../use/index.cjs');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizCodeList = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
name: "IBizCodeList",
|
|
12
|
+
props: {
|
|
13
|
+
codeListItems: {
|
|
14
|
+
type: Array
|
|
15
|
+
},
|
|
16
|
+
codeList: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
value: {
|
|
21
|
+
type: [String, Number]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: {
|
|
25
|
+
infoTextChange: (_text) => true
|
|
26
|
+
},
|
|
27
|
+
setup(props, {
|
|
28
|
+
emit
|
|
29
|
+
}) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
const ns = namespace.useNamespace("code-list");
|
|
32
|
+
const items = vue.ref([]);
|
|
33
|
+
const textSeparator = ((_a = props.codeList) == null ? void 0 : _a.textSeparator) || "\u3001";
|
|
34
|
+
const valueSeparator = ((_b = props.codeList) == null ? void 0 : _b.valueSeparator) || ",";
|
|
35
|
+
vue.watch(items, (newVal) => {
|
|
36
|
+
let infoText = "";
|
|
37
|
+
if (newVal.length > 0) {
|
|
38
|
+
infoText = newVal.map((item) => item.text).join(textSeparator);
|
|
39
|
+
}
|
|
40
|
+
emit("infoTextChange", infoText);
|
|
41
|
+
});
|
|
42
|
+
const findCodeListItem = (codelist, value) => {
|
|
43
|
+
if (codelist) {
|
|
44
|
+
const findItem = codelist.find((item) => item.value == value);
|
|
45
|
+
if (findItem) {
|
|
46
|
+
return findItem;
|
|
47
|
+
}
|
|
48
|
+
for (let i = 0; i < codelist.length; i++) {
|
|
49
|
+
const childrenItem = findCodeListItem(codelist[i].children, value);
|
|
50
|
+
if (childrenItem) {
|
|
51
|
+
return childrenItem;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
vue.watch(() => props.value, (newVal, oldVal) => {
|
|
57
|
+
if (newVal !== oldVal) {
|
|
58
|
+
if (ramda.isNil(newVal) || newVal === "") {
|
|
59
|
+
items.value = [];
|
|
60
|
+
} else {
|
|
61
|
+
let values;
|
|
62
|
+
if (typeof newVal === "string") {
|
|
63
|
+
values = newVal.split(valueSeparator);
|
|
64
|
+
} else {
|
|
65
|
+
values = [newVal];
|
|
66
|
+
}
|
|
67
|
+
items.value = values.map((val) => {
|
|
68
|
+
const findItem = findCodeListItem(props.codeListItems, val);
|
|
69
|
+
return {
|
|
70
|
+
text: (findItem == null ? void 0 : findItem.text) || val,
|
|
71
|
+
color: findItem == null ? void 0 : findItem.color,
|
|
72
|
+
textCls: findItem == null ? void 0 : findItem.textCls,
|
|
73
|
+
sysImage: findItem == null ? void 0 : findItem.sysImage
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
immediate: true
|
|
80
|
+
});
|
|
81
|
+
const emptyText = props.codeList.emptyText === "\u672A\u5B9A\u4E49" ? "- - -" : props.codeList.emptyText;
|
|
82
|
+
return {
|
|
83
|
+
items,
|
|
84
|
+
ns,
|
|
85
|
+
emptyText,
|
|
86
|
+
textSeparator
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
render() {
|
|
90
|
+
return vue.createVNode("span", {
|
|
91
|
+
"class": this.ns.b()
|
|
92
|
+
}, [this.items.length === 0 ? this.emptyText : this.items.map((item, index) => {
|
|
93
|
+
return [index !== 0 ? this.textSeparator : null, vue.createVNode("span", {
|
|
94
|
+
"class": [this.ns.e("item"), item.textCls ? item.textCls : null],
|
|
95
|
+
"style": item.color ? this.ns.cssVarBlock({
|
|
96
|
+
"item-color": "".concat(item.color)
|
|
97
|
+
}) : null
|
|
98
|
+
}, [item.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
99
|
+
"icon": item.sysImage
|
|
100
|
+
}, null), item.text])];
|
|
101
|
+
})]);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
exports.IBizCodeList = IBizCodeList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-code-list{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap}.ibiz-code-list__item{color:var(--ibiz-code-list-item-color);display:flex;align-items:center;justify-content:flex-start}.ibiz-code-list .ibiz-icon{display:inline-flex;padding-right:var(--ibiz-spacing-tight)}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var ramda = require('ramda');
|
|
5
|
+
require('../../use/index.cjs');
|
|
6
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizControlBase",
|
|
11
|
+
props: {
|
|
12
|
+
controller: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(props) {
|
|
18
|
+
const ns = namespace.useNamespace("control");
|
|
19
|
+
const {
|
|
20
|
+
controlType,
|
|
21
|
+
sysCss,
|
|
22
|
+
codeName
|
|
23
|
+
} = props.controller.model;
|
|
24
|
+
const typeClass = controlType.toLowerCase();
|
|
25
|
+
const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
|
|
26
|
+
const model = props.controller.model;
|
|
27
|
+
const controls = props.controller.model.controls;
|
|
28
|
+
const onLayoutPanelCreated = (controller) => {
|
|
29
|
+
props.controller.setLayoutPanel(controller);
|
|
30
|
+
};
|
|
31
|
+
const inlineStyle = vue.reactive({});
|
|
32
|
+
if (model.controlType.endsWith("EXPBAR") === false) {
|
|
33
|
+
if (!ramda.isNil(model.width)) {
|
|
34
|
+
inlineStyle.width = "".concat(model.width, "px");
|
|
35
|
+
}
|
|
36
|
+
if (!ramda.isNil(model.height)) {
|
|
37
|
+
inlineStyle.height = "".concat(model.height, "px");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
ns,
|
|
42
|
+
typeClass,
|
|
43
|
+
sysCssName,
|
|
44
|
+
inlineStyle,
|
|
45
|
+
codeName,
|
|
46
|
+
controls,
|
|
47
|
+
onLayoutPanelCreated
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
render() {
|
|
51
|
+
var _a, _b, _c;
|
|
52
|
+
const {
|
|
53
|
+
state,
|
|
54
|
+
controlPanel,
|
|
55
|
+
providers
|
|
56
|
+
} = this.controller;
|
|
57
|
+
let layoutPanel = null;
|
|
58
|
+
if (state.isCreated && controlPanel) {
|
|
59
|
+
const slots = {
|
|
60
|
+
...this.$slots
|
|
61
|
+
};
|
|
62
|
+
if ((_a = this.controls) == null ? void 0 : _a.length) {
|
|
63
|
+
this.controls.forEach((ctrl) => {
|
|
64
|
+
const slotKey = ctrl.name;
|
|
65
|
+
const ctrlProps = {
|
|
66
|
+
context: this.controller.context,
|
|
67
|
+
params: this.controller.params
|
|
68
|
+
};
|
|
69
|
+
const outCtrlSlot = slots[slotKey];
|
|
70
|
+
if (outCtrlSlot) {
|
|
71
|
+
slots[slotKey] = () => {
|
|
72
|
+
return outCtrlSlot(ctrlProps);
|
|
73
|
+
};
|
|
74
|
+
} else {
|
|
75
|
+
slots[slotKey] = () => {
|
|
76
|
+
const comp = vue.resolveComponent("IBizControlShell");
|
|
77
|
+
return vue.h(comp, {
|
|
78
|
+
modelData: ctrl,
|
|
79
|
+
...ctrlProps
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
const provider = providers[controlPanel.name];
|
|
86
|
+
layoutPanel = vue.h(vue.resolveComponent(provider.component), {
|
|
87
|
+
modelData: controlPanel,
|
|
88
|
+
context: this.controller.context,
|
|
89
|
+
params: this.controller.params,
|
|
90
|
+
provider,
|
|
91
|
+
container: this.controller,
|
|
92
|
+
onControllerAppear: this.onLayoutPanelCreated
|
|
93
|
+
}, slots);
|
|
94
|
+
}
|
|
95
|
+
return vue.createVNode("div", {
|
|
96
|
+
"class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.codeName), this.sysCssName],
|
|
97
|
+
"style": this.inlineStyle
|
|
98
|
+
}, [layoutPanel || ((_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b))]);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
exports.IBizControlBase = IBizControlBase;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-control{width:100%;height:100%}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const ControlLoadingPlaceholder = /* @__PURE__ */ vue.defineComponent({
|
|
7
|
+
name: "ControlLoadingPlaceholder",
|
|
8
|
+
props: {
|
|
9
|
+
modelData: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
context: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
params: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => ({})
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(props) {
|
|
23
|
+
const ctx = vue.inject("ctx");
|
|
24
|
+
ctx.evt.emit("onForecast", props.modelData.name);
|
|
25
|
+
return {};
|
|
26
|
+
},
|
|
27
|
+
render() {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
exports.ControlLoadingPlaceholder = ControlLoadingPlaceholder;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
5
|
+
require('./control-shell.css');
|
|
6
|
+
require('../../use/index.cjs');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizControlShell = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
name: "IBizControlShell",
|
|
12
|
+
props: {
|
|
13
|
+
modelData: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(props) {
|
|
19
|
+
const ctx = vue.inject("ctx");
|
|
20
|
+
ctx.evt.emit("onForecast", props.modelData.name);
|
|
21
|
+
const isComplete = vue.ref(false);
|
|
22
|
+
const errMsg = vue.ref("");
|
|
23
|
+
const provider = vue.ref();
|
|
24
|
+
runtime.getControlProvider(props.modelData).then((item) => {
|
|
25
|
+
if (!item) {
|
|
26
|
+
errMsg.value = "\u672A\u627E\u5230\u5BF9\u5E94\u90E8\u4EF6\u7684\u9002\u914D\u5668";
|
|
27
|
+
} else {
|
|
28
|
+
provider.value = item;
|
|
29
|
+
}
|
|
30
|
+
isComplete.value = true;
|
|
31
|
+
}).catch((err) => {
|
|
32
|
+
ibiz.log.error(err);
|
|
33
|
+
errMsg.value = err.message;
|
|
34
|
+
isComplete.value = true;
|
|
35
|
+
});
|
|
36
|
+
const ns = namespace.useNamespace("control-shell");
|
|
37
|
+
return {
|
|
38
|
+
ns,
|
|
39
|
+
isComplete,
|
|
40
|
+
errMsg,
|
|
41
|
+
provider
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
render() {
|
|
45
|
+
if (this.isComplete && this.provider) {
|
|
46
|
+
return vue.h(vue.resolveComponent(this.provider.component), {
|
|
47
|
+
provider: this.provider,
|
|
48
|
+
...this.$props,
|
|
49
|
+
...this.$attrs
|
|
50
|
+
}, this.$slots);
|
|
51
|
+
}
|
|
52
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
53
|
+
"class": this.ns.b()
|
|
54
|
+
}, [this.isComplete ? this.errMsg : null]), [[vue.resolveDirective("loading"), !this.isComplete]]);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
exports.IBizControlShell = IBizControlShell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-control-shell{position:relative;width:100%;height:100%}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var core = require('@ibiz-template/core');
|
|
5
|
+
require('../../use/index.cjs');
|
|
6
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const IBizIcon = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizIcon",
|
|
11
|
+
props: {
|
|
12
|
+
icon: {
|
|
13
|
+
type: Object
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
baseDir: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "images"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(props) {
|
|
24
|
+
const ns = namespace.useNamespace("icon");
|
|
25
|
+
const BaseUrl = "".concat(ibiz.env.assetsUrl, "/").concat(props.baseDir, "/");
|
|
26
|
+
function getContent(icon) {
|
|
27
|
+
if (icon) {
|
|
28
|
+
if (icon.htmlStr) {
|
|
29
|
+
return vue.createVNode("span", {
|
|
30
|
+
"class": ns.b(),
|
|
31
|
+
"innerHTML": icon.htmlStr
|
|
32
|
+
}, null);
|
|
33
|
+
}
|
|
34
|
+
if (icon.cssClass) {
|
|
35
|
+
if (icon.cssClass.indexOf("fa-") !== -1) {
|
|
36
|
+
return vue.createVNode("i", {
|
|
37
|
+
"class": [ns.b(), icon.cssClass]
|
|
38
|
+
}, null);
|
|
39
|
+
}
|
|
40
|
+
return vue.createVNode("ion-icon", {
|
|
41
|
+
"class": ns.b(),
|
|
42
|
+
"name": icon.cssClass
|
|
43
|
+
}, null);
|
|
44
|
+
}
|
|
45
|
+
if (icon.imagePath) {
|
|
46
|
+
if (core.isBase64Image(icon.imagePath)) {
|
|
47
|
+
return vue.createVNode("img", {
|
|
48
|
+
"class": ns.b(),
|
|
49
|
+
"src": icon.imagePath
|
|
50
|
+
}, null);
|
|
51
|
+
}
|
|
52
|
+
if (core.isSvg(icon.imagePath)) {
|
|
53
|
+
return vue.createVNode("div", {
|
|
54
|
+
"class": ns.b(),
|
|
55
|
+
"innerHTML": icon.imagePath
|
|
56
|
+
}, null);
|
|
57
|
+
}
|
|
58
|
+
if (icon.imagePath.endsWith("svg")) {
|
|
59
|
+
if (icon.imagePath.startsWith("http")) {
|
|
60
|
+
return vue.createVNode("img", {
|
|
61
|
+
"class": ns.b(),
|
|
62
|
+
"src": icon.imagePath
|
|
63
|
+
}, null);
|
|
64
|
+
}
|
|
65
|
+
return vue.createVNode("ion-icon", {
|
|
66
|
+
"src": BaseUrl + icon.imagePath,
|
|
67
|
+
"class": ns.b()
|
|
68
|
+
}, null);
|
|
69
|
+
}
|
|
70
|
+
if (icon.imagePath.startsWith("http")) {
|
|
71
|
+
return vue.createVNode("img", {
|
|
72
|
+
"class": ns.b(),
|
|
73
|
+
"src": icon.imagePath
|
|
74
|
+
}, null);
|
|
75
|
+
}
|
|
76
|
+
return vue.createVNode("img", {
|
|
77
|
+
"class": ns.b(),
|
|
78
|
+
"src": BaseUrl + icon.imagePath
|
|
79
|
+
}, null);
|
|
80
|
+
}
|
|
81
|
+
if (icon.rawContent) {
|
|
82
|
+
if (core.isSvg(icon.rawContent)) {
|
|
83
|
+
return vue.createVNode("div", {
|
|
84
|
+
"class": ns.b(),
|
|
85
|
+
"innerHTML": icon.rawContent
|
|
86
|
+
}, null);
|
|
87
|
+
}
|
|
88
|
+
return vue.createVNode("img", {
|
|
89
|
+
"class": ns.b(),
|
|
90
|
+
"src": icon.rawContent
|
|
91
|
+
}, null);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
const content = vue.computed(() => {
|
|
97
|
+
return getContent(props.icon);
|
|
98
|
+
});
|
|
99
|
+
return () => content.value;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
exports.IBizIcon = IBizIcon;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var icon = require('./icon/icon.cjs');
|
|
4
|
+
var routerView = require('./router-view/router-view.cjs');
|
|
5
|
+
var controlBase = require('./control-base/control-base.cjs');
|
|
6
|
+
var controlShell = require('./control-shell/control-shell.cjs');
|
|
7
|
+
var viewShell = require('./view-shell/view-shell.cjs');
|
|
8
|
+
var codeList = require('./code-list/code-list.cjs');
|
|
9
|
+
var controlLoadingPlaceholder = require('./control-loading-placeholder/control-loading-placeholder.cjs');
|
|
10
|
+
var badge = require('./badge/badge.cjs');
|
|
11
|
+
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
exports.IBizIcon = icon.IBizIcon;
|
|
15
|
+
exports.IBizRouterView = routerView.IBizRouterView;
|
|
16
|
+
exports.IBizControlBase = controlBase.IBizControlBase;
|
|
17
|
+
exports.IBizControlShell = controlShell.IBizControlShell;
|
|
18
|
+
exports.IBizViewShell = viewShell.IBizViewShell;
|
|
19
|
+
exports.IBizCodeList = codeList.IBizCodeList;
|
|
20
|
+
exports.ControlLoadingPlaceholder = controlLoadingPlaceholder.ControlLoadingPlaceholder;
|
|
21
|
+
exports.IBizBadge = badge.IBizBadge;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var ramda = require('ramda');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const IBizRouterView = /* @__PURE__ */ vue.defineComponent({
|
|
8
|
+
name: "IBizRouterView",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "default"
|
|
14
|
+
},
|
|
15
|
+
route: Object,
|
|
16
|
+
manualKey: {
|
|
17
|
+
type: String
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(props, {
|
|
21
|
+
attrs
|
|
22
|
+
}) {
|
|
23
|
+
const cache = {};
|
|
24
|
+
let isActive = true;
|
|
25
|
+
vue.watch(() => props.manualKey, (newVal, oldVal) => {
|
|
26
|
+
if (ramda.isNotNil(newVal) && newVal !== oldVal) {
|
|
27
|
+
isActive = true;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const renderComp = (Component, _route) => {
|
|
31
|
+
if (!isActive) {
|
|
32
|
+
return cache.vNode;
|
|
33
|
+
}
|
|
34
|
+
isActive = false;
|
|
35
|
+
if (Component) {
|
|
36
|
+
const tempProps = {
|
|
37
|
+
...Component.props
|
|
38
|
+
};
|
|
39
|
+
delete tempProps.onVnodeUnmounted;
|
|
40
|
+
delete tempProps.ref;
|
|
41
|
+
const hNode = vue.h(Component.type, {
|
|
42
|
+
...tempProps,
|
|
43
|
+
...attrs,
|
|
44
|
+
key: props.manualKey
|
|
45
|
+
});
|
|
46
|
+
cache.vNode = hNode;
|
|
47
|
+
return hNode;
|
|
48
|
+
}
|
|
49
|
+
return void 0;
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
renderComp
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
render() {
|
|
56
|
+
return vue.createVNode(vue.resolveComponent("router-view"), {
|
|
57
|
+
"name": this.name,
|
|
58
|
+
"route": this.route
|
|
59
|
+
}, {
|
|
60
|
+
default: ({
|
|
61
|
+
Component,
|
|
62
|
+
route
|
|
63
|
+
}) => {
|
|
64
|
+
const newComp = this.renderComp(Component, route);
|
|
65
|
+
if (this.$slots.default) {
|
|
66
|
+
return this.$slots.default({
|
|
67
|
+
Component: newComp,
|
|
68
|
+
route
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return newComp;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
exports.IBizRouterView = IBizRouterView;
|