@ibiz-template/vue3-util 0.2.11 → 0.2.13
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 -0
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/es/_virtual/_commonjsHelpers.mjs +40 -0
- package/es/common/code-list/code-list.css +1 -0
- package/es/common/code-list/code-list.d.ts +58 -0
- package/es/common/code-list/code-list.d.ts.map +1 -0
- package/es/common/code-list/code-list.mjs +85 -0
- package/es/common/control-base/control-base.css +1 -0
- package/es/common/control-base/control-base.d.ts +2 -0
- package/es/common/control-base/control-base.d.ts.map +1 -0
- package/es/common/control-base/control-base.mjs +99 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +31 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.mjs +30 -0
- package/es/common/control-shell/control-shell.css +1 -0
- package/es/common/control-shell/control-shell.d.ts +21 -0
- package/es/common/control-shell/control-shell.d.ts.map +1 -0
- package/es/common/control-shell/control-shell.mjs +56 -0
- package/es/common/icon/icon.d.ts +29 -0
- package/es/common/icon/icon.d.ts.map +1 -0
- package/es/common/icon/icon.mjs +89 -0
- package/es/common/index.d.ts +9 -0
- package/es/common/index.d.ts.map +1 -0
- package/es/common/index.mjs +9 -0
- package/es/common/router-view/router-view.d.ts +30 -0
- package/es/common/router-view/router-view.d.ts.map +1 -0
- package/es/common/router-view/router-view.mjs +75 -0
- package/es/common/view-shell/view-shell.css +1 -0
- package/es/common/view-shell/view-shell.d.ts +40 -0
- package/es/common/view-shell/view-shell.d.ts.map +1 -0
- package/es/common/view-shell/view-shell.mjs +77 -0
- package/{out → es}/index.d.ts +3 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.mjs +95 -0
- package/es/interface/index.mjs +3 -0
- package/es/interface/util/index.mjs +3 -0
- package/es/interface/util/route/route.mjs +1 -0
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +535 -0
- package/es/panel-component/grid-container/grid-container.controller.d.ts +15 -0
- package/es/panel-component/grid-container/grid-container.controller.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.controller.mjs +12 -0
- package/es/panel-component/grid-container/grid-container.css +1 -0
- package/es/panel-component/grid-container/grid-container.d.ts +38 -0
- package/es/panel-component/grid-container/grid-container.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.mjs +106 -0
- package/es/panel-component/grid-container/grid-container.provider.d.ts +16 -0
- package/es/panel-component/grid-container/grid-container.provider.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.provider.mjs +15 -0
- package/es/panel-component/grid-container/grid-container.state.d.ts +13 -0
- package/es/panel-component/grid-container/grid-container.state.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.state.mjs +7 -0
- package/es/panel-component/grid-container/index.d.ts +38 -0
- package/es/panel-component/grid-container/index.d.ts.map +1 -0
- package/es/panel-component/grid-container/index.mjs +18 -0
- package/es/panel-component/index.d.ts +10 -0
- package/es/panel-component/index.d.ts.map +1 -0
- package/es/panel-component/index.mjs +28 -0
- package/es/panel-component/multi-data-container/index.d.ts +37 -0
- package/es/panel-component/multi-data-container/index.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/index.mjs +21 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts +61 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.mjs +117 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts +20 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.mjs +17 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +107 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +260 -0
- package/es/panel-component/multi-data-container/multi-data-container.css +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +36 -0
- package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.mjs +87 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts +16 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.mjs +15 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +20 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.mjs +17 -0
- package/es/panel-component/nav-pos/index.d.ts +28 -0
- package/es/panel-component/nav-pos/index.d.ts.map +1 -0
- package/es/panel-component/nav-pos/index.mjs +15 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +163 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +283 -0
- package/es/panel-component/nav-pos/nav-pos.css +1 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts +29 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.mjs +105 -0
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts +23 -0
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.provider.mjs +24 -0
- package/es/panel-component/nav-pos/nav-pos.state.d.ts +50 -0
- package/es/panel-component/nav-pos/nav-pos.state.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.state.mjs +47 -0
- package/es/panel-component/panel-container/index.d.ts +27 -0
- package/es/panel-component/panel-container/index.d.ts.map +1 -0
- package/es/panel-component/panel-container/index.mjs +22 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts +15 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.controller.mjs +12 -0
- package/es/panel-component/panel-container/panel-container.css +1 -0
- package/es/panel-component/panel-container/panel-container.d.ts +27 -0
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.mjs +70 -0
- package/es/panel-component/panel-container/panel-container.provider.d.ts +16 -0
- package/es/panel-component/panel-container/panel-container.provider.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.provider.mjs +15 -0
- package/es/panel-component/panel-container/panel-container.state.d.ts +13 -0
- package/es/panel-component/panel-container/panel-container.state.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.state.mjs +7 -0
- package/es/panel-component/panel-ctrl-pos/index.d.ts +25 -0
- package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/index.mjs +14 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +36 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.mjs +23 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +25 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +45 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts +17 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.mjs +15 -0
- package/es/panel-component/panel-field/index.d.ts +26 -0
- package/es/panel-component/panel-field/index.d.ts.map +1 -0
- package/es/panel-component/panel-field/index.mjs +14 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts +75 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.controller.mjs +90 -0
- package/es/panel-component/panel-field/panel-field.css +1 -0
- package/es/panel-component/panel-field/panel-field.d.ts +28 -0
- package/es/panel-component/panel-field/panel-field.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.mjs +73 -0
- package/es/panel-component/panel-field/panel-field.provider.d.ts +15 -0
- package/es/panel-component/panel-field/panel-field.provider.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.provider.mjs +15 -0
- package/es/panel-component/panel-field/panel-field.state.d.ts +13 -0
- package/es/panel-component/panel-field/panel-field.state.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.state.mjs +7 -0
- package/es/panel-component/panel-rawitem/index.d.ts +25 -0
- package/es/panel-component/panel-rawitem/index.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/index.mjs +18 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts +29 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.mjs +28 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.css +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +27 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +50 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts +15 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.mjs +15 -0
- package/es/panel-component/scroll-container/index.d.ts +26 -0
- package/es/panel-component/scroll-container/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/index.mjs +46 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/index.mjs +4 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +23 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +12 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +27 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +112 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.mjs +15 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.mjs +4 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +22 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +7 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +27 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +64 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.mjs +15 -0
- package/es/panel-component/single-data-container/index.d.ts +37 -0
- package/es/panel-component/single-data-container/index.d.ts.map +1 -0
- package/es/panel-component/single-data-container/index.mjs +21 -0
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +122 -0
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +285 -0
- package/es/panel-component/single-data-container/single-data-container.css +1 -0
- package/es/panel-component/single-data-container/single-data-container.d.ts +36 -0
- package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.mjs +77 -0
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts +16 -0
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.provider.mjs +15 -0
- package/es/panel-component/single-data-container/single-data-container.state.d.ts +20 -0
- package/es/panel-component/single-data-container/single-data-container.state.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.state.mjs +17 -0
- package/es/plugin/index.mjs +3 -0
- package/es/plugin/plugin-factory/plugin-factory.mjs +292 -0
- package/es/props/common.mjs +15 -0
- package/es/props/editor/array.mjs +11 -0
- package/es/props/editor/autocomplete.mjs +11 -0
- package/es/props/editor/cascader.mjs +11 -0
- package/es/props/editor/check-box-list.mjs +11 -0
- package/es/props/editor/check-box.mjs +11 -0
- package/es/props/editor/code.mjs +20 -0
- package/es/props/editor/color-picker.mjs +11 -0
- package/es/props/editor/common.mjs +48 -0
- package/es/props/editor/data-picker.mjs +11 -0
- package/es/props/editor/date-picker.mjs +11 -0
- package/es/props/editor/date-range.mjs +11 -0
- package/es/props/editor/dropdown-list.mjs +11 -0
- package/es/props/editor/html.mjs +11 -0
- package/es/props/editor/index.mjs +27 -0
- package/es/props/editor/list-box.mjs +11 -0
- package/es/props/editor/markdown.mjs +19 -0
- package/es/props/editor/number-range.mjs +11 -0
- package/es/props/editor/radio-button-list.mjs +11 -0
- package/es/props/editor/rate.mjs +11 -0
- package/es/props/editor/raw.mjs +11 -0
- package/es/props/editor/slider.mjs +11 -0
- package/{out → es}/props/editor/span.d.ts +2 -2
- package/es/props/editor/span.mjs +11 -0
- package/es/props/editor/stepper.mjs +11 -0
- package/es/props/editor/switch.mjs +11 -0
- package/es/props/editor/text-box.mjs +23 -0
- package/es/props/editor/upload.mjs +11 -0
- package/es/props/index.mjs +29 -0
- package/es/use/click-outside/click-outside.mjs +48 -0
- package/es/use/control/index.mjs +3 -0
- package/es/use/control/use-control-controller/use-control-controller.mjs +74 -0
- package/es/use/event/event.mjs +37 -0
- package/es/use/focus-blur/focus-blur.mjs +46 -0
- package/es/use/index.mjs +13 -0
- package/es/use/namespace/namespace.mjs +8 -0
- package/es/use/route/route.mjs +28 -0
- package/es/use/util/index.mjs +11 -0
- package/{out/use/view/index.js → es/use/view/index.mjs} +3 -1
- package/es/use/view/use-view-controller/use-view-controller.mjs +72 -0
- package/es/use/vue/vue.mjs +55 -0
- package/es/util/control/prepare-control.mjs +22 -0
- package/es/util/index.d.ts +11 -0
- package/es/util/index.d.ts.map +1 -0
- package/es/util/index.mjs +14 -0
- package/es/util/install.mjs +9 -0
- package/es/util/overlay-container/overlay-container.d.ts +93 -0
- package/es/util/overlay-container/overlay-container.d.ts.map +1 -0
- package/es/util/overlay-container/overlay-container.mjs +114 -0
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts +17 -0
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts.map +1 -0
- package/es/util/overlay-popover-container/overlay-popover-container.mjs +10 -0
- package/es/util/overlay-view-util/overlay-view-util.d.ts +9 -0
- package/es/util/overlay-view-util/overlay-view-util.d.ts.map +1 -0
- package/es/util/overlay-view-util/overlay-view-util.mjs +63 -0
- package/es/util/render/render.mjs +20 -0
- package/es/util/route/route-listener.mjs +73 -0
- package/{out → es}/util/route/route.d.ts +20 -20
- package/es/util/route/route.d.ts.map +1 -0
- package/es/util/route/route.mjs +252 -0
- package/es/util/router-callback/router-callback-item.d.ts +62 -0
- package/es/util/router-callback/router-callback-item.d.ts.map +1 -0
- package/es/util/router-callback/router-callback-item.mjs +72 -0
- package/es/util/router-callback/router-callback.d.ts +60 -0
- package/es/util/router-callback/router-callback.d.ts.map +1 -0
- package/es/util/router-callback/router-callback.mjs +86 -0
- package/es/util/store/app-store/app-store.d.ts +10 -0
- package/es/util/store/app-store/app-store.d.ts.map +1 -0
- package/es/util/store/app-store/app-store.mjs +10 -0
- package/es/util/store/index.d.ts +4 -0
- package/es/util/store/index.d.ts.map +1 -0
- package/es/util/store/index.mjs +8 -0
- package/es/util/store/ui-store/ui-store.d.ts +32 -0
- package/es/util/store/ui-store/ui-store.d.ts.map +1 -0
- package/es/util/store/ui-store/ui-store.mjs +15 -0
- package/es/util/store/ui-store/z-index.d.ts +35 -0
- package/es/util/store/ui-store/z-index.d.ts.map +1 -0
- package/es/util/store/ui-store/z-index.mjs +18 -0
- package/es/view/app-redirect-view/app-redirect-view.d.ts +2 -0
- package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -0
- package/es/view/app-redirect-view/app-redirect-view.mjs +27 -0
- package/es/view/common/index.d.ts +49 -0
- package/es/view/common/index.d.ts.map +1 -0
- package/es/view/common/index.mjs +13 -0
- package/es/view/common/view.css +1 -0
- package/es/view/common/view.d.ts +53 -0
- package/es/view/common/view.d.ts.map +1 -0
- package/es/view/common/view.mjs +143 -0
- package/es/view/common/view.provider.d.ts +14 -0
- package/es/view/common/view.provider.d.ts.map +1 -0
- package/es/view/common/view.provider.mjs +8 -0
- package/es/view/index.d.ts +5 -0
- package/es/view/index.d.ts.map +1 -0
- package/es/view/index.mjs +6 -0
- package/es/view/portal-view/index.d.ts +41 -0
- package/es/view/portal-view/index.d.ts.map +1 -0
- package/es/view/portal-view/index.mjs +21 -0
- package/es/view/portal-view/portal-view.d.ts +44 -0
- package/es/view/portal-view/portal-view.d.ts.map +1 -0
- package/es/view/portal-view/portal-view.mjs +93 -0
- package/es/view/portal-view/portal-view.provider.d.ts +14 -0
- package/es/view/portal-view/portal-view.provider.d.ts.map +1 -0
- package/es/view/portal-view/portal-view.provider.mjs +8 -0
- package/es/view/todo-redirect/todo-redirect.d.ts +2 -0
- package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -0
- package/es/view/todo-redirect/todo-redirect.mjs +52 -0
- package/lib/index.cjs +236 -0
- package/package.json +20 -16
- package/src/common/code-list/code-list.scss +5 -0
- package/src/common/code-list/code-list.tsx +108 -0
- package/src/common/control-base/control-base.scss +4 -0
- package/src/common/control-base/control-base.tsx +129 -0
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +22 -0
- package/src/common/control-shell/control-shell.scss +5 -0
- package/src/common/control-shell/control-shell.tsx +70 -0
- package/src/common/icon/icon.tsx +69 -0
- package/src/common/index.ts +8 -0
- package/src/common/router-view/router-view.tsx +74 -0
- package/src/common/view-shell/view-shell.scss +5 -0
- package/src/common/view-shell/view-shell.tsx +70 -0
- package/src/index.ts +3 -0
- package/src/panel-component/grid-container/grid-container.controller.ts +18 -0
- package/src/panel-component/grid-container/grid-container.provider.ts +30 -0
- package/src/panel-component/grid-container/grid-container.scss +17 -0
- package/src/panel-component/grid-container/grid-container.state.ts +12 -0
- package/src/panel-component/grid-container/grid-container.tsx +119 -0
- package/src/panel-component/grid-container/index.ts +19 -0
- package/src/panel-component/index.ts +9 -0
- package/src/panel-component/multi-data-container/index.ts +22 -0
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +166 -0
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +20 -0
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +308 -0
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +30 -0
- package/src/panel-component/multi-data-container/multi-data-container.scss +10 -0
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +20 -0
- package/src/panel-component/multi-data-container/multi-data-container.tsx +109 -0
- package/src/panel-component/nav-pos/index.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos.controller.ts +373 -0
- package/src/panel-component/nav-pos/nav-pos.provider.ts +38 -0
- package/src/panel-component/nav-pos/nav-pos.scss +4 -0
- package/src/panel-component/nav-pos/nav-pos.state.ts +52 -0
- package/src/panel-component/nav-pos/nav-pos.tsx +121 -0
- package/src/panel-component/panel-container/index.ts +27 -0
- package/src/panel-component/panel-container/panel-container.controller.ts +18 -0
- package/src/panel-component/panel-container/panel-container.provider.ts +30 -0
- package/src/panel-component/panel-container/panel-container.scss +15 -0
- package/src/panel-component/panel-container/panel-container.state.ts +12 -0
- package/src/panel-component/panel-container/panel-container.tsx +72 -0
- package/src/panel-component/panel-ctrl-pos/index.ts +14 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +53 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +30 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +8 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +53 -0
- package/src/panel-component/panel-field/index.ts +14 -0
- package/src/panel-component/panel-field/panel-field.controller.ts +130 -0
- package/src/panel-component/panel-field/panel-field.provider.ts +28 -0
- package/src/panel-component/panel-field/panel-field.scss +36 -0
- package/src/panel-component/panel-field/panel-field.state.ts +12 -0
- package/src/panel-component/panel-field/panel-field.tsx +78 -0
- package/src/panel-component/panel-rawitem/index.ts +18 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +34 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +28 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +8 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +51 -0
- package/src/panel-component/scroll-container/index.ts +44 -0
- package/src/panel-component/scroll-container/scroll-container/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +34 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +110 -0
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +9 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +60 -0
- package/src/panel-component/single-data-container/index.ts +22 -0
- package/src/panel-component/single-data-container/single-data-container.controller.ts +345 -0
- package/src/panel-component/single-data-container/single-data-container.provider.ts +30 -0
- package/src/panel-component/single-data-container/single-data-container.scss +10 -0
- package/src/panel-component/single-data-container/single-data-container.state.ts +20 -0
- package/src/panel-component/single-data-container/single-data-container.tsx +95 -0
- package/src/props/editor/span.ts +1 -1
- package/src/util/index.ts +5 -0
- package/src/util/overlay-container/overlay-container.ts +155 -0
- package/src/util/overlay-popover-container/overlay-popover-container.ts +30 -0
- package/src/util/overlay-view-util/overlay-view-util.ts +89 -0
- package/src/util/route/route.ts +142 -142
- package/src/util/router-callback/router-callback-item.ts +98 -0
- package/src/util/router-callback/router-callback.ts +97 -0
- package/src/util/store/app-store/app-store.ts +10 -0
- package/src/util/store/index.ts +6 -0
- package/src/util/store/ui-store/ui-store.ts +27 -0
- package/src/util/store/ui-store/z-index.ts +53 -0
- package/src/view/app-redirect-view/app-redirect-view.tsx +26 -0
- package/src/view/common/index.ts +10 -0
- package/src/view/common/view.provider.ts +14 -0
- package/src/view/common/view.scss +38 -0
- package/src/view/common/view.tsx +180 -0
- package/src/view/index.ts +4 -0
- package/src/view/portal-view/index.ts +18 -0
- package/src/view/portal-view/portal-view.provider.ts +14 -0
- package/src/view/portal-view/portal-view.tsx +79 -0
- package/src/view/todo-redirect/todo-redirect.tsx +51 -0
- package/dist/index.esm.js +0 -1859
- package/out/index.d.ts.map +0 -1
- package/out/index.js +0 -5
- package/out/interface/index.js +0 -1
- package/out/interface/util/index.js +0 -1
- package/out/interface/util/route/route.js +0 -1
- package/out/plugin/index.js +0 -1
- package/out/plugin/plugin-factory/plugin-factory.js +0 -297
- package/out/props/common.js +0 -23
- package/out/props/editor/array.js +0 -25
- package/out/props/editor/autocomplete.js +0 -25
- package/out/props/editor/cascader.js +0 -25
- package/out/props/editor/check-box-list.js +0 -25
- package/out/props/editor/check-box.js +0 -25
- package/out/props/editor/code.js +0 -29
- package/out/props/editor/color-picker.js +0 -25
- package/out/props/editor/common.js +0 -79
- package/out/props/editor/data-picker.js +0 -25
- package/out/props/editor/date-picker.js +0 -25
- package/out/props/editor/date-range.js +0 -21
- package/out/props/editor/dropdown-list.js +0 -25
- package/out/props/editor/html.js +0 -25
- package/out/props/editor/index.js +0 -25
- package/out/props/editor/list-box.js +0 -25
- package/out/props/editor/markdown.js +0 -28
- package/out/props/editor/number-range.js +0 -21
- package/out/props/editor/radio-button-list.js +0 -25
- package/out/props/editor/rate.js +0 -21
- package/out/props/editor/raw.js +0 -21
- package/out/props/editor/slider.js +0 -21
- package/out/props/editor/span.js +0 -25
- package/out/props/editor/stepper.js +0 -21
- package/out/props/editor/switch.js +0 -21
- package/out/props/editor/text-box.js +0 -73
- package/out/props/editor/upload.js +0 -25
- package/out/props/index.js +0 -2
- package/out/use/click-outside/click-outside.js +0 -50
- package/out/use/control/index.js +0 -1
- package/out/use/control/use-control-controller/use-control-controller.js +0 -94
- package/out/use/event/event.js +0 -39
- package/out/use/focus-blur/focus-blur.js +0 -63
- package/out/use/index.js +0 -9
- package/out/use/namespace/namespace.js +0 -13
- package/out/use/route/route.js +0 -41
- package/out/use/util/index.js +0 -23
- package/out/use/view/use-view-controller/use-view-controller.js +0 -94
- package/out/use/vue/vue.js +0 -112
- package/out/util/control/prepare-control.js +0 -25
- package/out/util/index.d.ts +0 -6
- package/out/util/index.d.ts.map +0 -1
- package/out/util/index.js +0 -5
- package/out/util/install.js +0 -6
- package/out/util/render/render.js +0 -28
- package/out/util/route/route-listener.js +0 -76
- package/out/util/route/route.d.ts.map +0 -1
- package/out/util/route/route.js +0 -385
- /package/{out → es}/interface/index.d.ts +0 -0
- /package/{out → es}/interface/index.d.ts.map +0 -0
- /package/{out → es}/interface/util/index.d.ts +0 -0
- /package/{out → es}/interface/util/index.d.ts.map +0 -0
- /package/{out → es}/interface/util/route/route.d.ts +0 -0
- /package/{out → es}/interface/util/route/route.d.ts.map +0 -0
- /package/{out → es}/plugin/index.d.ts +0 -0
- /package/{out → es}/plugin/index.d.ts.map +0 -0
- /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts +0 -0
- /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts.map +0 -0
- /package/{out → es}/props/common.d.ts +0 -0
- /package/{out → es}/props/common.d.ts.map +0 -0
- /package/{out → es}/props/editor/array.d.ts +0 -0
- /package/{out → es}/props/editor/array.d.ts.map +0 -0
- /package/{out → es}/props/editor/autocomplete.d.ts +0 -0
- /package/{out → es}/props/editor/autocomplete.d.ts.map +0 -0
- /package/{out → es}/props/editor/cascader.d.ts +0 -0
- /package/{out → es}/props/editor/cascader.d.ts.map +0 -0
- /package/{out → es}/props/editor/check-box-list.d.ts +0 -0
- /package/{out → es}/props/editor/check-box-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/check-box.d.ts +0 -0
- /package/{out → es}/props/editor/check-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/code.d.ts +0 -0
- /package/{out → es}/props/editor/code.d.ts.map +0 -0
- /package/{out → es}/props/editor/color-picker.d.ts +0 -0
- /package/{out → es}/props/editor/color-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/common.d.ts +0 -0
- /package/{out → es}/props/editor/common.d.ts.map +0 -0
- /package/{out → es}/props/editor/data-picker.d.ts +0 -0
- /package/{out → es}/props/editor/data-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/date-picker.d.ts +0 -0
- /package/{out → es}/props/editor/date-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/date-range.d.ts +0 -0
- /package/{out → es}/props/editor/date-range.d.ts.map +0 -0
- /package/{out → es}/props/editor/dropdown-list.d.ts +0 -0
- /package/{out → es}/props/editor/dropdown-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/html.d.ts +0 -0
- /package/{out → es}/props/editor/html.d.ts.map +0 -0
- /package/{out → es}/props/editor/index.d.ts +0 -0
- /package/{out → es}/props/editor/index.d.ts.map +0 -0
- /package/{out → es}/props/editor/list-box.d.ts +0 -0
- /package/{out → es}/props/editor/list-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/markdown.d.ts +0 -0
- /package/{out → es}/props/editor/markdown.d.ts.map +0 -0
- /package/{out → es}/props/editor/number-range.d.ts +0 -0
- /package/{out → es}/props/editor/number-range.d.ts.map +0 -0
- /package/{out → es}/props/editor/radio-button-list.d.ts +0 -0
- /package/{out → es}/props/editor/radio-button-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/rate.d.ts +0 -0
- /package/{out → es}/props/editor/rate.d.ts.map +0 -0
- /package/{out → es}/props/editor/raw.d.ts +0 -0
- /package/{out → es}/props/editor/raw.d.ts.map +0 -0
- /package/{out → es}/props/editor/slider.d.ts +0 -0
- /package/{out → es}/props/editor/slider.d.ts.map +0 -0
- /package/{out → es}/props/editor/span.d.ts.map +0 -0
- /package/{out → es}/props/editor/stepper.d.ts +0 -0
- /package/{out → es}/props/editor/stepper.d.ts.map +0 -0
- /package/{out → es}/props/editor/switch.d.ts +0 -0
- /package/{out → es}/props/editor/switch.d.ts.map +0 -0
- /package/{out → es}/props/editor/text-box.d.ts +0 -0
- /package/{out → es}/props/editor/text-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/upload.d.ts +0 -0
- /package/{out → es}/props/editor/upload.d.ts.map +0 -0
- /package/{out → es}/props/index.d.ts +0 -0
- /package/{out → es}/props/index.d.ts.map +0 -0
- /package/{out → es}/use/click-outside/click-outside.d.ts +0 -0
- /package/{out → es}/use/click-outside/click-outside.d.ts.map +0 -0
- /package/{out → es}/use/control/index.d.ts +0 -0
- /package/{out → es}/use/control/index.d.ts.map +0 -0
- /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts +0 -0
- /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts.map +0 -0
- /package/{out → es}/use/event/event.d.ts +0 -0
- /package/{out → es}/use/event/event.d.ts.map +0 -0
- /package/{out → es}/use/focus-blur/focus-blur.d.ts +0 -0
- /package/{out → es}/use/focus-blur/focus-blur.d.ts.map +0 -0
- /package/{out → es}/use/index.d.ts +0 -0
- /package/{out → es}/use/index.d.ts.map +0 -0
- /package/{out → es}/use/namespace/namespace.d.ts +0 -0
- /package/{out → es}/use/namespace/namespace.d.ts.map +0 -0
- /package/{out → es}/use/route/route.d.ts +0 -0
- /package/{out → es}/use/route/route.d.ts.map +0 -0
- /package/{out → es}/use/util/index.d.ts +0 -0
- /package/{out → es}/use/util/index.d.ts.map +0 -0
- /package/{out → es}/use/view/index.d.ts +0 -0
- /package/{out → es}/use/view/index.d.ts.map +0 -0
- /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts +0 -0
- /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts.map +0 -0
- /package/{out → es}/use/vue/vue.d.ts +0 -0
- /package/{out → es}/use/vue/vue.d.ts.map +0 -0
- /package/{out → es}/util/control/prepare-control.d.ts +0 -0
- /package/{out → es}/util/control/prepare-control.d.ts.map +0 -0
- /package/{out → es}/util/install.d.ts +0 -0
- /package/{out → es}/util/install.d.ts.map +0 -0
- /package/{out → es}/util/render/render.d.ts +0 -0
- /package/{out → es}/util/render/render.d.ts.map +0 -0
- /package/{out → es}/util/route/route-listener.d.ts +0 -0
- /package/{out → es}/util/route/route-listener.d.ts.map +0 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { RuntimeModelError, RuntimeError } from '@ibiz-template/core';
|
|
2
|
+
import { RemotePluginItem } from '@ibiz-template/runtime';
|
|
3
|
+
import path, { p as pathBrowserify } from '../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PluginFactory {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* 是否为 http || https 开头
|
|
10
|
+
*
|
|
11
|
+
* @author chitanda
|
|
12
|
+
* @date 2022-11-07 14:11:28
|
|
13
|
+
* @protected
|
|
14
|
+
*/
|
|
15
|
+
this.urlReg = /^http[s]?:\/\/[^\s]*/;
|
|
16
|
+
/**
|
|
17
|
+
* 是否已经加载过文件缓存
|
|
18
|
+
*
|
|
19
|
+
* @author chitanda
|
|
20
|
+
* @date 2022-10-31 14:10:17
|
|
21
|
+
* @protected
|
|
22
|
+
* @type {Map<string, boolean>}
|
|
23
|
+
*/
|
|
24
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
25
|
+
/**
|
|
26
|
+
* 本地开发测试包,只在本地开发生效
|
|
27
|
+
*
|
|
28
|
+
* @author chitanda
|
|
29
|
+
* @date 2022-11-02 21:11:41
|
|
30
|
+
* @protected
|
|
31
|
+
*/
|
|
32
|
+
this.devPackages = /* @__PURE__ */ new Map();
|
|
33
|
+
/**
|
|
34
|
+
* 插件缓存
|
|
35
|
+
*
|
|
36
|
+
* @author chitanda
|
|
37
|
+
* @date 2022-10-31 14:10:28
|
|
38
|
+
* @protected
|
|
39
|
+
* @type {Map<string, RemotePluginItem>}
|
|
40
|
+
*/
|
|
41
|
+
this.pluginCache = /* @__PURE__ */ new Map();
|
|
42
|
+
/**
|
|
43
|
+
* 所有的插件
|
|
44
|
+
*
|
|
45
|
+
* @author chitanda
|
|
46
|
+
* @date 2023-02-02 16:02:55
|
|
47
|
+
* @protected
|
|
48
|
+
* @type {Plugin[]}
|
|
49
|
+
*/
|
|
50
|
+
this.pluginCodes = [];
|
|
51
|
+
/**
|
|
52
|
+
* 预定义插件集合
|
|
53
|
+
*
|
|
54
|
+
* @author chitanda
|
|
55
|
+
* @date 2023-03-09 17:03:46
|
|
56
|
+
* @protected
|
|
57
|
+
* @type {Map<string, IPluginItem>}
|
|
58
|
+
*/
|
|
59
|
+
this.predefinedPlugins = /* @__PURE__ */ new Map();
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 注册视图默认插件
|
|
63
|
+
*
|
|
64
|
+
* @author chitanda
|
|
65
|
+
* @date 2023-02-06 21:02:10
|
|
66
|
+
* @param {IPluginItem} plugin
|
|
67
|
+
*/
|
|
68
|
+
registerPredefinedPlugin(plugin) {
|
|
69
|
+
this.predefinedPlugins.set(plugin.name, plugin);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* 给入应用实例,将已经加载的过插件注入。主要用于多实例的情况
|
|
73
|
+
*
|
|
74
|
+
* @author chitanda
|
|
75
|
+
* @date 2023-02-02 16:02:51
|
|
76
|
+
* @param {App} app
|
|
77
|
+
*/
|
|
78
|
+
register(app) {
|
|
79
|
+
this.pluginCodes.forEach((plugin) => {
|
|
80
|
+
app.use(plugin);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 加载预置插件
|
|
85
|
+
*
|
|
86
|
+
* @author chitanda
|
|
87
|
+
* @date 2023-03-09 18:03:48
|
|
88
|
+
* @param {string} name
|
|
89
|
+
* @return {*} {Promise<void>}
|
|
90
|
+
*/
|
|
91
|
+
async loadPredefinedPlugin(name) {
|
|
92
|
+
if (this.predefinedPlugins.has(name)) {
|
|
93
|
+
const plugin = this.predefinedPlugins.get(name);
|
|
94
|
+
if (plugin) {
|
|
95
|
+
await this.loadPluginRef(plugin.name, plugin.path);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* 插件刚加载完成回来,设置到目前所有的 vue 实例当中
|
|
101
|
+
*
|
|
102
|
+
* @author chitanda
|
|
103
|
+
* @date 2023-02-02 17:02:38
|
|
104
|
+
* @protected
|
|
105
|
+
* @param {Plugin} code
|
|
106
|
+
*/
|
|
107
|
+
setPluginCode(code) {
|
|
108
|
+
this.pluginCodes.push(code);
|
|
109
|
+
window.vueInstances.forEach((inst) => {
|
|
110
|
+
inst.use(code);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* 设置开发插件,用于本地调试
|
|
115
|
+
*
|
|
116
|
+
* @author chitanda
|
|
117
|
+
* @date 2022-11-02 21:11:56
|
|
118
|
+
* @param {string} name
|
|
119
|
+
* @param {() => Promise<unknown>} fn
|
|
120
|
+
*/
|
|
121
|
+
setDevPlugin(name, fn) {
|
|
122
|
+
this.devPackages.set(name, fn);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* 加载插件
|
|
126
|
+
*
|
|
127
|
+
* @author chitanda
|
|
128
|
+
* @date 2022-10-31 14:10:13
|
|
129
|
+
* @param {ISysPFPlugin} plugin
|
|
130
|
+
* @return {*} {Promise<boolean>}
|
|
131
|
+
*/
|
|
132
|
+
async loadPlugin(plugin) {
|
|
133
|
+
if (plugin.runtimeObject === true) {
|
|
134
|
+
const pluginRef = plugin;
|
|
135
|
+
if (pluginRef) {
|
|
136
|
+
try {
|
|
137
|
+
await this.loadPluginRef(
|
|
138
|
+
pluginRef.rtobjectName,
|
|
139
|
+
pluginRef.rtobjectRepo
|
|
140
|
+
);
|
|
141
|
+
} catch (error) {
|
|
142
|
+
throw new RuntimeModelError(pluginRef, `\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 加载应用插件
|
|
150
|
+
*
|
|
151
|
+
* @author chitanda
|
|
152
|
+
* @date 2022-10-31 16:10:57
|
|
153
|
+
* @param {IPSAppPFPluginRef} pluginRef
|
|
154
|
+
* @return {*} {Promise<boolean>}
|
|
155
|
+
*/
|
|
156
|
+
async loadPluginRef(rtObjectName, rtObjectRepo) {
|
|
157
|
+
if (this.pluginCache.has(rtObjectName)) {
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
let configData = null;
|
|
161
|
+
const fn = this.devPackages.get(rtObjectName);
|
|
162
|
+
if (fn) {
|
|
163
|
+
configData = await fn();
|
|
164
|
+
} else {
|
|
165
|
+
const pluginPath = rtObjectRepo;
|
|
166
|
+
const configUrl = this.urlReg.test(pluginPath) ? `${pluginPath}/package.json` : `${ibiz.env.pluginBaseUrl}/${pathBrowserify.join(pluginPath, "package.json")}`;
|
|
167
|
+
const res = await ibiz.net.axios({
|
|
168
|
+
method: "get",
|
|
169
|
+
headers: { "Access-Control-Allow-Origin": "*" },
|
|
170
|
+
url: configUrl
|
|
171
|
+
});
|
|
172
|
+
if (res.status !== 200) {
|
|
173
|
+
throw new Error(`\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25`);
|
|
174
|
+
}
|
|
175
|
+
configData = res.data;
|
|
176
|
+
}
|
|
177
|
+
const remotePlugin = new RemotePluginItem(
|
|
178
|
+
rtObjectName,
|
|
179
|
+
rtObjectRepo,
|
|
180
|
+
configData
|
|
181
|
+
);
|
|
182
|
+
if (remotePlugin) {
|
|
183
|
+
try {
|
|
184
|
+
await this.loadScript(remotePlugin);
|
|
185
|
+
this.pluginCache.set(rtObjectName, remotePlugin);
|
|
186
|
+
return true;
|
|
187
|
+
} catch (error) {
|
|
188
|
+
ibiz.log.error(error);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 加载插件
|
|
195
|
+
*
|
|
196
|
+
* @author chitanda
|
|
197
|
+
* @date 2022-11-02 14:11:31
|
|
198
|
+
* @protected
|
|
199
|
+
* @param {RemotePluginItem} remotePlugin
|
|
200
|
+
* @return {*} {Promise<void>}
|
|
201
|
+
*/
|
|
202
|
+
async loadScript(remotePlugin) {
|
|
203
|
+
const pluginPath = remotePlugin.repo;
|
|
204
|
+
const { name, version, system, module, styles } = remotePlugin.config;
|
|
205
|
+
let scriptUrl = "";
|
|
206
|
+
if (this.devPackages.has(name)) {
|
|
207
|
+
scriptUrl = pathBrowserify.join(`${name}@${version}`, module);
|
|
208
|
+
} else if (ibiz.env.dev) {
|
|
209
|
+
scriptUrl = this.urlReg.test(pluginPath) ? `${pluginPath}/${pathBrowserify.join(module)}` : `${ibiz.env.pluginBaseUrl}/${pluginPath}/${pathBrowserify.join(module)}`;
|
|
210
|
+
} else {
|
|
211
|
+
scriptUrl = pathBrowserify.join(pluginPath, system);
|
|
212
|
+
}
|
|
213
|
+
if (scriptUrl) {
|
|
214
|
+
if (this.cache.has(scriptUrl)) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
let data = null;
|
|
218
|
+
const url = this.parseUrl(scriptUrl);
|
|
219
|
+
const styleUrls = (typeof styles === "string" ? [styles] : styles).map(
|
|
220
|
+
(styleUrl) => this.parseUrl(path.join(pluginPath, styleUrl))
|
|
221
|
+
);
|
|
222
|
+
if (this.devPackages.has(name)) {
|
|
223
|
+
const fn = this.devPackages.get(name);
|
|
224
|
+
const pluginModule = await fn();
|
|
225
|
+
this.setPluginCode(pluginModule.default);
|
|
226
|
+
this.cache.set(scriptUrl, true);
|
|
227
|
+
} else if (ibiz.env.dev) {
|
|
228
|
+
data = await import(
|
|
229
|
+
scriptUrl
|
|
230
|
+
/* @vite-ignore */
|
|
231
|
+
);
|
|
232
|
+
} else {
|
|
233
|
+
System.addImportMap({
|
|
234
|
+
imports: {
|
|
235
|
+
[name]: url
|
|
236
|
+
},
|
|
237
|
+
styles: {
|
|
238
|
+
[name]: styleUrls
|
|
239
|
+
}
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
241
|
+
});
|
|
242
|
+
data = await System.import(name);
|
|
243
|
+
}
|
|
244
|
+
if (data) {
|
|
245
|
+
if (data.default) {
|
|
246
|
+
this.setPluginCode(data.default);
|
|
247
|
+
} else {
|
|
248
|
+
throw new RuntimeError(
|
|
249
|
+
`\u8FDC\u7A0B\u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25, \u8FDC\u7A0B\u63D2\u4EF6\u672A\u627E\u5230[default]\u9ED8\u8BA4\u5BFC\u51FA`
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
this.cache.set(scriptUrl, true);
|
|
253
|
+
} else {
|
|
254
|
+
throw new RuntimeError(
|
|
255
|
+
`\u8FDC\u7A0B\u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25, \u672A\u627E\u5230\u6587\u4EF6\u6216\u6587\u4EF6\u5185\u5BB9\u683C\u5F0F\u4E0D\u6B63\u786E`
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* 编译请求文件地址
|
|
262
|
+
*
|
|
263
|
+
* @author chitanda
|
|
264
|
+
* @date 2022-10-31 14:10:19
|
|
265
|
+
* @protected
|
|
266
|
+
* @param {string} script
|
|
267
|
+
* @return {*} {string}
|
|
268
|
+
*/
|
|
269
|
+
parseUrl(script) {
|
|
270
|
+
if (this.urlReg.test(script)) {
|
|
271
|
+
return script;
|
|
272
|
+
}
|
|
273
|
+
let url = "";
|
|
274
|
+
if (this.urlReg.test(ibiz.env.pluginBaseUrl)) {
|
|
275
|
+
if (script.startsWith("/")) {
|
|
276
|
+
url = ibiz.env.pluginBaseUrl + script;
|
|
277
|
+
} else {
|
|
278
|
+
url = `${ibiz.env.pluginBaseUrl}/${script}`;
|
|
279
|
+
}
|
|
280
|
+
} else {
|
|
281
|
+
url = `${pathBrowserify.join(ibiz.env.pluginBaseUrl, script)}`;
|
|
282
|
+
}
|
|
283
|
+
const { origin, pathname } = window.location;
|
|
284
|
+
if (pathname.endsWith("/") && url.startsWith("/")) {
|
|
285
|
+
url = url.substring(1);
|
|
286
|
+
}
|
|
287
|
+
url = `${origin}${pathname}${url}`;
|
|
288
|
+
return url;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export { PluginFactory };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
class RequiredProp {
|
|
3
|
+
constructor(type, _default, validator) {
|
|
4
|
+
this.required = true;
|
|
5
|
+
if (_default) {
|
|
6
|
+
this.default = _default;
|
|
7
|
+
}
|
|
8
|
+
if (validator) {
|
|
9
|
+
this.validator = validator;
|
|
10
|
+
}
|
|
11
|
+
this.type = type;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { RequiredProp };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getArrayProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [Array, Array] };
|
|
6
|
+
}
|
|
7
|
+
function getGridArrayProps() {
|
|
8
|
+
return { ...getArrayProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getArrayProps, getGridArrayProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getAutoCompleteProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridAutoCompleteProps() {
|
|
8
|
+
return { ...getAutoCompleteProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getAutoCompleteProps, getGridAutoCompleteProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getCascaderProps() {
|
|
5
|
+
return { ...getEditorProps(), value: String };
|
|
6
|
+
}
|
|
7
|
+
function getGridCascaderProps() {
|
|
8
|
+
return { ...getCascaderProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getCascaderProps, getGridCascaderProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getCheckboxListProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridCheckboxListProps() {
|
|
8
|
+
return { ...getCheckboxListProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getCheckboxListProps, getGridCheckboxListProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getCheckboxProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridCheckboxProps() {
|
|
8
|
+
return { ...getCheckboxProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getCheckboxProps, getGridCheckboxProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getCodeProps() {
|
|
5
|
+
return {
|
|
6
|
+
...getEditorProps(),
|
|
7
|
+
value: String,
|
|
8
|
+
language: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
theme: {
|
|
12
|
+
type: String
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function getGridCodeProps() {
|
|
17
|
+
return { ...getCodeProps(), ...getGridEditorCommonProps() };
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { getCodeProps, getGridCodeProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getColorPickerProps() {
|
|
5
|
+
return { ...getEditorProps(), value: String };
|
|
6
|
+
}
|
|
7
|
+
function getGridColorPickerProps() {
|
|
8
|
+
return { ...getColorPickerProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getColorPickerProps, getGridColorPickerProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { RequiredProp } from '../common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getEditorProps() {
|
|
5
|
+
return {
|
|
6
|
+
value: String,
|
|
7
|
+
controller: new RequiredProp(Object),
|
|
8
|
+
data: new RequiredProp(Object),
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean
|
|
11
|
+
},
|
|
12
|
+
readonly: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
autoFocus: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function getEditorEmits() {
|
|
23
|
+
return {
|
|
24
|
+
/** 值变更事件 */
|
|
25
|
+
change: (_value, _name) => true,
|
|
26
|
+
/** 失焦事件 */
|
|
27
|
+
blur: () => true,
|
|
28
|
+
/** 聚焦事件 */
|
|
29
|
+
focus: () => true
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function getGridEditorEmits() {
|
|
33
|
+
return {
|
|
34
|
+
/** 值变更事件 */
|
|
35
|
+
change: (_value, _name) => true,
|
|
36
|
+
/** 是否正在操作事件 */
|
|
37
|
+
rowSave: () => true
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function getGridEditorCommonProps() {
|
|
41
|
+
return {
|
|
42
|
+
hasError: {
|
|
43
|
+
type: Boolean
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { getEditorEmits, getEditorProps, getGridEditorCommonProps, getGridEditorEmits };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getDataPickerProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Array, Object, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridDataPickerProps() {
|
|
8
|
+
return { ...getDataPickerProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getDataPickerProps, getGridDataPickerProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getDatePickerProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridDatePickerProps() {
|
|
8
|
+
return { ...getDatePickerProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getDatePickerProps, getGridDatePickerProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getDateRangeProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridDateRangeProps() {
|
|
8
|
+
return { ...getDateRangeProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getDateRangeProps, getGridDateRangeProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getDropdownProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridDropdownProps() {
|
|
8
|
+
return { ...getDropdownProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getDropdownProps, getGridDropdownProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getHtmlProps() {
|
|
5
|
+
return { ...getEditorProps(), value: String };
|
|
6
|
+
}
|
|
7
|
+
function getGridHtmlProps() {
|
|
8
|
+
return { ...getHtmlProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridHtmlProps, getHtmlProps };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { getGridInputIpProps, getGridInputNumberProps, getGridInputProps, getInputIpProps, getInputNumberProps, getInputProps } from './text-box.mjs';
|
|
2
|
+
export { getGridSpanProps, getSpanProps } from './span.mjs';
|
|
3
|
+
export { getEditorEmits, getEditorProps, getGridEditorCommonProps, getGridEditorEmits } from './common.mjs';
|
|
4
|
+
export { getDropdownProps, getGridDropdownProps } from './dropdown-list.mjs';
|
|
5
|
+
export { getCheckboxListProps, getGridCheckboxListProps } from './check-box-list.mjs';
|
|
6
|
+
export { getCheckboxProps, getGridCheckboxProps } from './check-box.mjs';
|
|
7
|
+
export { getDataPickerProps, getGridDataPickerProps } from './data-picker.mjs';
|
|
8
|
+
export { getDatePickerProps, getGridDatePickerProps } from './date-picker.mjs';
|
|
9
|
+
export { getDateRangeProps, getGridDateRangeProps } from './date-range.mjs';
|
|
10
|
+
export { getGridListBoxProps, getListBoxProps } from './list-box.mjs';
|
|
11
|
+
export { getGridNumberRangeProps, getNumberRangeProps } from './number-range.mjs';
|
|
12
|
+
export { getGridRadioProps, getRadioProps } from './radio-button-list.mjs';
|
|
13
|
+
export { getGridRateProps, getRateProps } from './rate.mjs';
|
|
14
|
+
export { getGridRawProps, getRawProps } from './raw.mjs';
|
|
15
|
+
export { getGridSliderProps, getSliderProps } from './slider.mjs';
|
|
16
|
+
export { getGridStepperProps, getStepperProps } from './stepper.mjs';
|
|
17
|
+
export { getGridSwitchProps, getSwitchProps } from './switch.mjs';
|
|
18
|
+
export { getGridUploadProps, getUploadProps } from './upload.mjs';
|
|
19
|
+
export { getAutoCompleteProps, getGridAutoCompleteProps } from './autocomplete.mjs';
|
|
20
|
+
export { getCodeProps, getGridCodeProps } from './code.mjs';
|
|
21
|
+
export { getGridHtmlProps, getHtmlProps } from './html.mjs';
|
|
22
|
+
export { getGridMarkDownProps, getMarkDownProps } from './markdown.mjs';
|
|
23
|
+
export { getArrayProps, getGridArrayProps } from './array.mjs';
|
|
24
|
+
export { getCascaderProps, getGridCascaderProps } from './cascader.mjs';
|
|
25
|
+
export { getColorPickerProps, getGridColorPickerProps } from './color-picker.mjs';
|
|
26
|
+
|
|
27
|
+
"use strict";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getListBoxProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridListBoxProps() {
|
|
8
|
+
return { ...getListBoxProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridListBoxProps, getListBoxProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getMarkDownProps() {
|
|
5
|
+
return {
|
|
6
|
+
...getEditorProps(),
|
|
7
|
+
data: { type: Object, required: false },
|
|
8
|
+
controller: { type: Object, required: false },
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: false
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function getGridMarkDownProps() {
|
|
16
|
+
return { ...getMarkDownProps(), ...getGridEditorCommonProps() };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { getGridMarkDownProps, getMarkDownProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getNumberRangeProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridNumberRangeProps() {
|
|
8
|
+
return { ...getNumberRangeProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridNumberRangeProps, getNumberRangeProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getRadioProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridRadioProps() {
|
|
8
|
+
return { ...getRadioProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridRadioProps, getRadioProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getRateProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridRateProps() {
|
|
8
|
+
return { ...getRateProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridRateProps, getRateProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getRawProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number, Array] };
|
|
6
|
+
}
|
|
7
|
+
function getGridRawProps() {
|
|
8
|
+
return { ...getRawProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridRawProps, getRawProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getSliderProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridSliderProps() {
|
|
8
|
+
return { ...getSliderProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridSliderProps, getSliderProps };
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @returns {*}
|
|
9
9
|
*/
|
|
10
10
|
export declare function getSpanProps<C>(): {
|
|
11
|
-
value: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
value: (ObjectConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
12
12
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
13
13
|
data: import("..").RequiredProp<import("vue").PropType<IData>, undefined, undefined>;
|
|
14
14
|
disabled: {
|
|
@@ -36,7 +36,7 @@ export declare function getGridSpanProps<C>(): {
|
|
|
36
36
|
hasError: {
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
};
|
|
39
|
-
value: (StringConstructor | NumberConstructor)[];
|
|
39
|
+
value: (ObjectConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
40
40
|
controller: import("..").RequiredProp<import("vue").PropType<C>, undefined, undefined>;
|
|
41
41
|
data: import("..").RequiredProp<import("vue").PropType<IData>, undefined, undefined>;
|
|
42
42
|
disabled: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getSpanProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number, Object, Array] };
|
|
6
|
+
}
|
|
7
|
+
function getGridSpanProps() {
|
|
8
|
+
return { ...getSpanProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridSpanProps, getSpanProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getEditorProps, getGridEditorCommonProps } from './common.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function getStepperProps() {
|
|
5
|
+
return { ...getEditorProps(), value: [String, Number] };
|
|
6
|
+
}
|
|
7
|
+
function getGridStepperProps() {
|
|
8
|
+
return { ...getStepperProps(), ...getGridEditorCommonProps() };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getGridStepperProps, getStepperProps };
|