@ibiz-template/vue3-util 0.6.0 → 0.6.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +12 -3
- package/es/util/overlay-container/overlay-container.mjs +1 -1
- package/es/util/router-callback/router-callback.d.ts +1 -1
- package/es/util/router-callback/router-callback.d.ts.map +1 -1
- package/es/util/router-callback/router-callback.mjs +6 -2
- package/lib/_virtual/_commonjsHelpers.cjs +46 -0
- package/lib/common/badge/badge.cjs +34 -0
- package/lib/common/badge/badge.css +1 -0
- package/lib/common/code-list/code-list.cjs +105 -0
- package/lib/common/code-list/code-list.css +1 -0
- package/lib/common/control-base/control-base.cjs +102 -0
- package/lib/common/control-base/control-base.css +1 -0
- package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +32 -0
- package/lib/common/control-shell/control-shell.cjs +58 -0
- package/lib/common/control-shell/control-shell.css +1 -0
- package/lib/common/icon/icon.cjs +103 -0
- package/lib/common/index.cjs +21 -0
- package/lib/common/router-view/router-view.cjs +77 -0
- package/lib/common/view-shell/view-shell.cjs +137 -0
- package/lib/common/view-shell/view-shell.css +1 -0
- package/lib/control/index.cjs +10 -0
- package/lib/control/panel/index.cjs +9 -0
- package/lib/control/panel/panel/index.cjs +18 -0
- package/lib/control/panel/panel/panel.cjs +142 -0
- package/lib/control/panel/panel/panel.css +1 -0
- package/lib/control/panel/panel/panel.provider.cjs +10 -0
- package/lib/control/panel/view-layout-panel/index.cjs +24 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +144 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.css +1 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +10 -0
- package/lib/hooks/app/app.hooks.cjs +26 -0
- package/lib/hooks/index.cjs +7 -0
- package/lib/interface/index.cjs +5 -0
- package/lib/interface/util/index.cjs +5 -0
- package/lib/interface/util/route/route.cjs +3 -0
- package/lib/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.cjs +540 -0
- package/lib/panel-component/grid-container/grid-container.cjs +108 -0
- package/lib/panel-component/grid-container/grid-container.controller.cjs +14 -0
- package/lib/panel-component/grid-container/grid-container.css +1 -0
- package/lib/panel-component/grid-container/grid-container.provider.cjs +17 -0
- package/lib/panel-component/grid-container/grid-container.state.cjs +9 -0
- package/lib/panel-component/grid-container/index.cjs +25 -0
- package/lib/panel-component/index.cjs +73 -0
- package/lib/panel-component/multi-data-container/index.cjs +28 -0
- package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +119 -0
- package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +19 -0
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +89 -0
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +262 -0
- package/lib/panel-component/multi-data-container/multi-data-container.css +1 -0
- package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +17 -0
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +19 -0
- package/lib/panel-component/nav-pos/index.cjs +22 -0
- package/lib/panel-component/nav-pos/nav-pos.cjs +107 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.cjs +312 -0
- package/lib/panel-component/nav-pos/nav-pos.css +1 -0
- package/lib/panel-component/nav-pos/nav-pos.provider.cjs +26 -0
- package/lib/panel-component/nav-pos/nav-pos.state.cjs +49 -0
- package/lib/panel-component/panel-container/index.cjs +29 -0
- package/lib/panel-component/panel-container/panel-container.cjs +72 -0
- package/lib/panel-component/panel-container/panel-container.controller.cjs +14 -0
- package/lib/panel-component/panel-container/panel-container.css +1 -0
- package/lib/panel-component/panel-container/panel-container.provider.cjs +17 -0
- package/lib/panel-component/panel-container/panel-container.state.cjs +9 -0
- package/lib/panel-component/panel-container-group/index.cjs +28 -0
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +110 -0
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +37 -0
- package/lib/panel-component/panel-container-group/panel-container-group.css +1 -0
- package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +17 -0
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +9 -0
- package/lib/panel-component/panel-container-image/index.cjs +28 -0
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +95 -0
- package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +14 -0
- package/lib/panel-component/panel-container-image/panel-container-image.css +1 -0
- package/lib/panel-component/panel-container-image/panel-container-image.provider.cjs +17 -0
- package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +9 -0
- package/lib/panel-component/panel-ctrl-pos/index.cjs +20 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +47 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +25 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +17 -0
- package/lib/panel-component/panel-field/index.cjs +20 -0
- package/lib/panel-component/panel-field/panel-field.cjs +78 -0
- package/lib/panel-component/panel-field/panel-field.controller.cjs +132 -0
- package/lib/panel-component/panel-field/panel-field.css +1 -0
- package/lib/panel-component/panel-field/panel-field.provider.cjs +17 -0
- package/lib/panel-component/panel-field/panel-field.state.cjs +9 -0
- package/lib/panel-component/panel-item-render/index.cjs +24 -0
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +49 -0
- package/lib/panel-component/panel-item-render/panel-item-render.controller.cjs +31 -0
- package/lib/panel-component/panel-item-render/panel-item-render.provider.cjs +17 -0
- package/lib/panel-component/panel-rawitem/index.cjs +32 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +61 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +30 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.css +1 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +17 -0
- package/lib/panel-component/panel-tab-page/index.cjs +18 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +65 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/index.cjs +55 -0
- package/lib/panel-component/scroll-container/scroll-container/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +114 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +14 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +66 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/index.cjs +28 -0
- package/lib/panel-component/single-data-container/single-data-container.cjs +79 -0
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +287 -0
- package/lib/panel-component/single-data-container/single-data-container.css +1 -0
- package/lib/panel-component/single-data-container/single-data-container.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +19 -0
- package/lib/plugin/index.cjs +7 -0
- package/{src/plugin/plugin-factory/plugin-factory.ts → lib/plugin/plugin-factory/plugin-factory.cjs} +137 -182
- package/lib/props/common.cjs +17 -0
- package/lib/props/editor/array.cjs +14 -0
- package/lib/props/editor/autocomplete.cjs +14 -0
- package/lib/props/editor/cascader.cjs +14 -0
- package/lib/props/editor/check-box-list.cjs +14 -0
- package/lib/props/editor/check-box.cjs +14 -0
- package/lib/props/editor/code.cjs +23 -0
- package/lib/props/editor/color-picker.cjs +14 -0
- package/lib/props/editor/common.cjs +62 -0
- package/lib/props/editor/data-picker.cjs +14 -0
- package/lib/props/editor/date-picker.cjs +14 -0
- package/lib/props/editor/date-range.cjs +14 -0
- package/lib/props/editor/dropdown-list.cjs +14 -0
- package/lib/props/editor/html.cjs +14 -0
- package/lib/props/editor/index.cjs +86 -0
- package/lib/props/editor/list-box.cjs +14 -0
- package/lib/props/editor/markdown.cjs +22 -0
- package/lib/props/editor/number-range.cjs +14 -0
- package/lib/props/editor/radio-button-list.cjs +14 -0
- package/lib/props/editor/rate.cjs +14 -0
- package/lib/props/editor/raw.cjs +14 -0
- package/lib/props/editor/slider.cjs +14 -0
- package/lib/props/editor/span.cjs +14 -0
- package/lib/props/editor/stepper.cjs +14 -0
- package/lib/props/editor/switch.cjs +14 -0
- package/lib/props/editor/text-box.cjs +30 -0
- package/lib/props/editor/upload.cjs +14 -0
- package/lib/props/index.cjs +89 -0
- package/lib/use/click-outside/click-outside.cjs +50 -0
- package/lib/use/control/index.cjs +7 -0
- package/lib/use/control/use-control-controller/use-control-controller.cjs +78 -0
- package/lib/use/event/event.cjs +39 -0
- package/lib/use/focus-blur/focus-blur.cjs +48 -0
- package/lib/use/index.cjs +34 -0
- package/lib/use/namespace/namespace.cjs +10 -0
- package/lib/use/route/route.cjs +31 -0
- package/lib/use/util/index.cjs +14 -0
- package/lib/use/view/index.cjs +7 -0
- package/lib/use/view/use-view-controller/use-view-controller.cjs +86 -0
- package/lib/use/vue/vue.cjs +64 -0
- package/lib/util/control/prepare-control.cjs +24 -0
- package/lib/util/index.cjs +43 -0
- package/lib/util/install.cjs +11 -0
- package/lib/util/overlay-container/overlay-container.cjs +116 -0
- package/lib/util/overlay-popover-container/overlay-popover-container.cjs +12 -0
- package/lib/util/overlay-view-util/overlay-view-util.cjs +70 -0
- package/lib/util/render/render.cjs +22 -0
- package/lib/util/route/route-listener.cjs +75 -0
- package/lib/util/route/route.cjs +302 -0
- package/lib/util/router-callback/router-callback-item.cjs +74 -0
- package/{src/util/router-callback/router-callback.ts → lib/util/router-callback/router-callback.cjs} +33 -37
- package/lib/util/store/app-store/app-store.cjs +12 -0
- package/lib/util/store/index.cjs +12 -0
- package/lib/util/store/ui-store/ui-store.cjs +17 -0
- package/lib/util/store/ui-store/z-index.cjs +20 -0
- package/lib/view/app-redirect-view/app-redirect-view.cjs +29 -0
- package/lib/view/common/index.cjs +15 -0
- package/lib/view/common/view.cjs +129 -0
- package/lib/view/common/view.css +1 -0
- package/lib/view/common/view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/de-redirect-view.cjs +64 -0
- package/lib/view/de-redirect-view/de-redirect-view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/index.cjs +22 -0
- package/lib/view/index.cjs +15 -0
- package/lib/view/portal-view/index.cjs +23 -0
- package/lib/view/portal-view/portal-view.cjs +95 -0
- package/lib/view/portal-view/portal-view.provider.cjs +10 -0
- package/lib/view/todo-redirect/todo-redirect.cjs +54 -0
- package/package.json +5 -5
- package/src/common/badge/badge.scss +0 -29
- package/src/common/badge/badge.tsx +0 -26
- package/src/common/code-list/code-list.scss +0 -15
- package/src/common/code-list/code-list.tsx +0 -127
- package/src/common/control-base/control-base.scss +0 -4
- package/src/common/control-base/control-base.tsx +0 -130
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +0 -22
- package/src/common/control-shell/control-shell.scss +0 -5
- package/src/common/control-shell/control-shell.tsx +0 -70
- package/src/common/icon/icon.tsx +0 -82
- package/src/common/index.ts +0 -8
- package/src/common/router-view/router-view.tsx +0 -74
- package/src/common/view-shell/view-shell.scss +0 -5
- package/src/common/view-shell/view-shell.tsx +0 -163
- package/src/control/index.ts +0 -1
- package/src/control/panel/index.ts +0 -2
- package/src/control/panel/panel/index.ts +0 -12
- package/src/control/panel/panel/panel.provider.ts +0 -14
- package/src/control/panel/panel/panel.scss +0 -9
- package/src/control/panel/panel/panel.tsx +0 -166
- package/src/control/panel/view-layout-panel/index.ts +0 -18
- package/src/control/panel/view-layout-panel/view-layout-panel.provider.ts +0 -14
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +0 -9
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +0 -178
- package/src/hooks/app/app.hooks.ts +0 -31
- package/src/hooks/index.ts +0 -1
- package/src/index.ts +0 -18
- package/src/interface/index.ts +0 -1
- package/src/interface/util/index.ts +0 -1
- package/src/interface/util/route/route.ts +0 -116
- package/src/panel-component/grid-container/grid-container.controller.ts +0 -18
- package/src/panel-component/grid-container/grid-container.provider.ts +0 -30
- package/src/panel-component/grid-container/grid-container.scss +0 -17
- package/src/panel-component/grid-container/grid-container.state.ts +0 -12
- package/src/panel-component/grid-container/grid-container.tsx +0 -119
- package/src/panel-component/grid-container/index.ts +0 -19
- package/src/panel-component/index.ts +0 -13
- package/src/panel-component/multi-data-container/index.ts +0 -22
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +0 -166
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +0 -308
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +0 -30
- package/src/panel-component/multi-data-container/multi-data-container.scss +0 -10
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.tsx +0 -109
- package/src/panel-component/nav-pos/index.ts +0 -16
- package/src/panel-component/nav-pos/nav-pos.controller.ts +0 -393
- package/src/panel-component/nav-pos/nav-pos.provider.ts +0 -38
- package/src/panel-component/nav-pos/nav-pos.scss +0 -4
- package/src/panel-component/nav-pos/nav-pos.state.ts +0 -52
- package/src/panel-component/nav-pos/nav-pos.tsx +0 -121
- package/src/panel-component/panel-container/index.ts +0 -27
- package/src/panel-component/panel-container/panel-container.controller.ts +0 -18
- package/src/panel-component/panel-container/panel-container.provider.ts +0 -30
- package/src/panel-component/panel-container/panel-container.scss +0 -15
- package/src/panel-component/panel-container/panel-container.state.ts +0 -12
- package/src/panel-component/panel-container/panel-container.tsx +0 -72
- package/src/panel-component/panel-container-group/index.ts +0 -22
- package/src/panel-component/panel-container-group/panel-container-group.controller.ts +0 -43
- package/src/panel-component/panel-container-group/panel-container-group.provider.ts +0 -30
- package/src/panel-component/panel-container-group/panel-container-group.scss +0 -91
- package/src/panel-component/panel-container-group/panel-container-group.state.ts +0 -12
- package/src/panel-component/panel-container-group/panel-container-group.tsx +0 -112
- package/src/panel-component/panel-container-image/index.ts +0 -22
- package/src/panel-component/panel-container-image/panel-container-image.controller.ts +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.provider.ts +0 -30
- package/src/panel-component/panel-container-image/panel-container-image.scss +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.state.ts +0 -12
- package/src/panel-component/panel-container-image/panel-container-image.tsx +0 -95
- package/src/panel-component/panel-ctrl-pos/index.ts +0 -14
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +0 -53
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +0 -30
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +0 -8
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +0 -53
- package/src/panel-component/panel-field/index.ts +0 -14
- package/src/panel-component/panel-field/panel-field.controller.ts +0 -174
- package/src/panel-component/panel-field/panel-field.provider.ts +0 -28
- package/src/panel-component/panel-field/panel-field.scss +0 -36
- package/src/panel-component/panel-field/panel-field.state.ts +0 -12
- package/src/panel-component/panel-field/panel-field.tsx +0 -81
- package/src/panel-component/panel-item-render/index.ts +0 -18
- package/src/panel-component/panel-item-render/panel-item-render.controller.ts +0 -52
- package/src/panel-component/panel-item-render/panel-item-render.provider.ts +0 -30
- package/src/panel-component/panel-item-render/panel-item-render.tsx +0 -50
- package/src/panel-component/panel-rawitem/index.ts +0 -26
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +0 -34
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +0 -28
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +0 -8
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +0 -61
- package/src/panel-component/panel-tab-page/index.ts +0 -12
- package/src/panel-component/panel-tab-page/panel-tab-page.provider.ts +0 -27
- package/src/panel-component/panel-tab-page/panel-tab-page.tsx +0 -55
- package/src/panel-component/scroll-container/index.ts +0 -44
- package/src/panel-component/scroll-container/scroll-container/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +0 -32
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +0 -34
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +0 -110
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +0 -25
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +0 -9
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +0 -60
- package/src/panel-component/single-data-container/index.ts +0 -22
- package/src/panel-component/single-data-container/single-data-container.controller.ts +0 -345
- package/src/panel-component/single-data-container/single-data-container.provider.ts +0 -30
- package/src/panel-component/single-data-container/single-data-container.scss +0 -10
- package/src/panel-component/single-data-container/single-data-container.state.ts +0 -20
- package/src/panel-component/single-data-container/single-data-container.tsx +0 -95
- package/src/plugin/index.ts +0 -1
- package/src/props/common.ts +0 -30
- package/src/props/editor/array.ts +0 -27
- package/src/props/editor/autocomplete.ts +0 -27
- package/src/props/editor/cascader.ts +0 -27
- package/src/props/editor/check-box-list.ts +0 -27
- package/src/props/editor/check-box.ts +0 -27
- package/src/props/editor/code.ts +0 -36
- package/src/props/editor/color-picker.ts +0 -27
- package/src/props/editor/common.ts +0 -94
- package/src/props/editor/data-picker.ts +0 -27
- package/src/props/editor/date-picker.ts +0 -27
- package/src/props/editor/date-range.ts +0 -23
- package/src/props/editor/dropdown-list.ts +0 -27
- package/src/props/editor/html.ts +0 -27
- package/src/props/editor/index.ts +0 -25
- package/src/props/editor/list-box.ts +0 -27
- package/src/props/editor/markdown.ts +0 -35
- package/src/props/editor/number-range.ts +0 -23
- package/src/props/editor/radio-button-list.ts +0 -27
- package/src/props/editor/rate.ts +0 -23
- package/src/props/editor/raw.ts +0 -23
- package/src/props/editor/slider.ts +0 -23
- package/src/props/editor/span.ts +0 -27
- package/src/props/editor/stepper.ts +0 -23
- package/src/props/editor/switch.ts +0 -23
- package/src/props/editor/text-box.ts +0 -79
- package/src/props/editor/upload.ts +0 -27
- package/src/props/index.ts +0 -2
- package/src/types/index.d.ts +0 -8
- package/src/use/click-outside/click-outside.ts +0 -72
- package/src/use/control/index.ts +0 -1
- package/src/use/control/use-control-controller/use-control-controller.ts +0 -153
- package/src/use/event/event.ts +0 -57
- package/src/use/focus-blur/focus-blur.ts +0 -83
- package/src/use/index.ts +0 -9
- package/src/use/namespace/namespace.ts +0 -14
- package/src/use/route/route.ts +0 -47
- package/src/use/util/index.ts +0 -26
- package/src/use/view/index.ts +0 -1
- package/src/use/view/use-view-controller/use-view-controller.ts +0 -153
- package/src/use/vue/vue.ts +0 -142
- package/src/util/control/prepare-control.ts +0 -33
- package/src/util/index.ts +0 -10
- package/src/util/install.ts +0 -14
- package/src/util/overlay-container/overlay-container.ts +0 -155
- package/src/util/overlay-popover-container/overlay-popover-container.ts +0 -30
- package/src/util/overlay-view-util/overlay-view-util.ts +0 -89
- package/src/util/render/render.ts +0 -28
- package/src/util/route/route-listener.ts +0 -91
- package/src/util/route/route.ts +0 -520
- package/src/util/router-callback/router-callback-item.ts +0 -98
- package/src/util/store/app-store/app-store.ts +0 -10
- package/src/util/store/index.ts +0 -6
- package/src/util/store/ui-store/ui-store.ts +0 -27
- package/src/util/store/ui-store/z-index.ts +0 -53
- package/src/view/app-redirect-view/app-redirect-view.tsx +0 -26
- package/src/view/common/index.ts +0 -10
- package/src/view/common/view.provider.ts +0 -14
- package/src/view/common/view.scss +0 -38
- package/src/view/common/view.tsx +0 -152
- package/src/view/de-redirect-view/de-redirect-view.provider.ts +0 -14
- package/src/view/de-redirect-view/de-redirect-view.tsx +0 -62
- package/src/view/de-redirect-view/index.ts +0 -17
- package/src/view/index.ts +0 -5
- package/src/view/portal-view/index.ts +0 -18
- package/src/view/portal-view/portal-view.provider.ts +0 -14
- package/src/view/portal-view/portal-view.tsx +0 -79
- package/src/view/todo-redirect/todo-redirect.tsx +0 -51
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('../../../../../_virtual/_commonjsHelpers.cjs');
|
|
6
|
+
|
|
7
|
+
// 'path' module extracted from Node.js v8.11.1 (only the posix part)
|
|
8
|
+
// transplited with Babel
|
|
9
|
+
|
|
10
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
11
|
+
//
|
|
12
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
13
|
+
// copy of this software and associated documentation files (the
|
|
14
|
+
// "Software"), to deal in the Software without restriction, including
|
|
15
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
16
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
17
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
18
|
+
// following conditions:
|
|
19
|
+
//
|
|
20
|
+
// The above copyright notice and this permission notice shall be included
|
|
21
|
+
// in all copies or substantial portions of the Software.
|
|
22
|
+
//
|
|
23
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
24
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
25
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
26
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
27
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
28
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
29
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
+
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
function assertPath(path) {
|
|
34
|
+
if (typeof path !== 'string') {
|
|
35
|
+
throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Resolves . and .. elements in a path with directory names
|
|
40
|
+
function normalizeStringPosix(path, allowAboveRoot) {
|
|
41
|
+
var res = '';
|
|
42
|
+
var lastSegmentLength = 0;
|
|
43
|
+
var lastSlash = -1;
|
|
44
|
+
var dots = 0;
|
|
45
|
+
var code;
|
|
46
|
+
for (var i = 0; i <= path.length; ++i) {
|
|
47
|
+
if (i < path.length)
|
|
48
|
+
code = path.charCodeAt(i);
|
|
49
|
+
else if (code === 47 /*/*/)
|
|
50
|
+
break;
|
|
51
|
+
else
|
|
52
|
+
code = 47 /*/*/;
|
|
53
|
+
if (code === 47 /*/*/) {
|
|
54
|
+
if (lastSlash === i - 1 || dots === 1) {
|
|
55
|
+
// NOOP
|
|
56
|
+
} else if (lastSlash !== i - 1 && dots === 2) {
|
|
57
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
|
|
58
|
+
if (res.length > 2) {
|
|
59
|
+
var lastSlashIndex = res.lastIndexOf('/');
|
|
60
|
+
if (lastSlashIndex !== res.length - 1) {
|
|
61
|
+
if (lastSlashIndex === -1) {
|
|
62
|
+
res = '';
|
|
63
|
+
lastSegmentLength = 0;
|
|
64
|
+
} else {
|
|
65
|
+
res = res.slice(0, lastSlashIndex);
|
|
66
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
|
|
67
|
+
}
|
|
68
|
+
lastSlash = i;
|
|
69
|
+
dots = 0;
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
} else if (res.length === 2 || res.length === 1) {
|
|
73
|
+
res = '';
|
|
74
|
+
lastSegmentLength = 0;
|
|
75
|
+
lastSlash = i;
|
|
76
|
+
dots = 0;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (allowAboveRoot) {
|
|
81
|
+
if (res.length > 0)
|
|
82
|
+
res += '/..';
|
|
83
|
+
else
|
|
84
|
+
res = '..';
|
|
85
|
+
lastSegmentLength = 2;
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
if (res.length > 0)
|
|
89
|
+
res += '/' + path.slice(lastSlash + 1, i);
|
|
90
|
+
else
|
|
91
|
+
res = path.slice(lastSlash + 1, i);
|
|
92
|
+
lastSegmentLength = i - lastSlash - 1;
|
|
93
|
+
}
|
|
94
|
+
lastSlash = i;
|
|
95
|
+
dots = 0;
|
|
96
|
+
} else if (code === 46 /*.*/ && dots !== -1) {
|
|
97
|
+
++dots;
|
|
98
|
+
} else {
|
|
99
|
+
dots = -1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return res;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function _format(sep, pathObject) {
|
|
106
|
+
var dir = pathObject.dir || pathObject.root;
|
|
107
|
+
var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
|
|
108
|
+
if (!dir) {
|
|
109
|
+
return base;
|
|
110
|
+
}
|
|
111
|
+
if (dir === pathObject.root) {
|
|
112
|
+
return dir + base;
|
|
113
|
+
}
|
|
114
|
+
return dir + sep + base;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
var posix = {
|
|
118
|
+
// path.resolve([from ...], to)
|
|
119
|
+
resolve: function resolve() {
|
|
120
|
+
var resolvedPath = '';
|
|
121
|
+
var resolvedAbsolute = false;
|
|
122
|
+
var cwd;
|
|
123
|
+
|
|
124
|
+
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
125
|
+
var path;
|
|
126
|
+
if (i >= 0)
|
|
127
|
+
path = arguments[i];
|
|
128
|
+
else {
|
|
129
|
+
if (cwd === undefined)
|
|
130
|
+
cwd = process.cwd();
|
|
131
|
+
path = cwd;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
assertPath(path);
|
|
135
|
+
|
|
136
|
+
// Skip empty entries
|
|
137
|
+
if (path.length === 0) {
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
resolvedPath = path + '/' + resolvedPath;
|
|
142
|
+
resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// At this point the path should be resolved to a full absolute path, but
|
|
146
|
+
// handle relative paths to be safe (might happen when process.cwd() fails)
|
|
147
|
+
|
|
148
|
+
// Normalize the path
|
|
149
|
+
resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
|
|
150
|
+
|
|
151
|
+
if (resolvedAbsolute) {
|
|
152
|
+
if (resolvedPath.length > 0)
|
|
153
|
+
return '/' + resolvedPath;
|
|
154
|
+
else
|
|
155
|
+
return '/';
|
|
156
|
+
} else if (resolvedPath.length > 0) {
|
|
157
|
+
return resolvedPath;
|
|
158
|
+
} else {
|
|
159
|
+
return '.';
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
normalize: function normalize(path) {
|
|
164
|
+
assertPath(path);
|
|
165
|
+
|
|
166
|
+
if (path.length === 0) return '.';
|
|
167
|
+
|
|
168
|
+
var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
|
169
|
+
var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;
|
|
170
|
+
|
|
171
|
+
// Normalize the path
|
|
172
|
+
path = normalizeStringPosix(path, !isAbsolute);
|
|
173
|
+
|
|
174
|
+
if (path.length === 0 && !isAbsolute) path = '.';
|
|
175
|
+
if (path.length > 0 && trailingSeparator) path += '/';
|
|
176
|
+
|
|
177
|
+
if (isAbsolute) return '/' + path;
|
|
178
|
+
return path;
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
isAbsolute: function isAbsolute(path) {
|
|
182
|
+
assertPath(path);
|
|
183
|
+
return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
join: function join() {
|
|
187
|
+
if (arguments.length === 0)
|
|
188
|
+
return '.';
|
|
189
|
+
var joined;
|
|
190
|
+
for (var i = 0; i < arguments.length; ++i) {
|
|
191
|
+
var arg = arguments[i];
|
|
192
|
+
assertPath(arg);
|
|
193
|
+
if (arg.length > 0) {
|
|
194
|
+
if (joined === undefined)
|
|
195
|
+
joined = arg;
|
|
196
|
+
else
|
|
197
|
+
joined += '/' + arg;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (joined === undefined)
|
|
201
|
+
return '.';
|
|
202
|
+
return posix.normalize(joined);
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
relative: function relative(from, to) {
|
|
206
|
+
assertPath(from);
|
|
207
|
+
assertPath(to);
|
|
208
|
+
|
|
209
|
+
if (from === to) return '';
|
|
210
|
+
|
|
211
|
+
from = posix.resolve(from);
|
|
212
|
+
to = posix.resolve(to);
|
|
213
|
+
|
|
214
|
+
if (from === to) return '';
|
|
215
|
+
|
|
216
|
+
// Trim any leading backslashes
|
|
217
|
+
var fromStart = 1;
|
|
218
|
+
for (; fromStart < from.length; ++fromStart) {
|
|
219
|
+
if (from.charCodeAt(fromStart) !== 47 /*/*/)
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
var fromEnd = from.length;
|
|
223
|
+
var fromLen = fromEnd - fromStart;
|
|
224
|
+
|
|
225
|
+
// Trim any leading backslashes
|
|
226
|
+
var toStart = 1;
|
|
227
|
+
for (; toStart < to.length; ++toStart) {
|
|
228
|
+
if (to.charCodeAt(toStart) !== 47 /*/*/)
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
var toEnd = to.length;
|
|
232
|
+
var toLen = toEnd - toStart;
|
|
233
|
+
|
|
234
|
+
// Compare paths to find the longest common path from root
|
|
235
|
+
var length = fromLen < toLen ? fromLen : toLen;
|
|
236
|
+
var lastCommonSep = -1;
|
|
237
|
+
var i = 0;
|
|
238
|
+
for (; i <= length; ++i) {
|
|
239
|
+
if (i === length) {
|
|
240
|
+
if (toLen > length) {
|
|
241
|
+
if (to.charCodeAt(toStart + i) === 47 /*/*/) {
|
|
242
|
+
// We get here if `from` is the exact base path for `to`.
|
|
243
|
+
// For example: from='/foo/bar'; to='/foo/bar/baz'
|
|
244
|
+
return to.slice(toStart + i + 1);
|
|
245
|
+
} else if (i === 0) {
|
|
246
|
+
// We get here if `from` is the root
|
|
247
|
+
// For example: from='/'; to='/foo'
|
|
248
|
+
return to.slice(toStart + i);
|
|
249
|
+
}
|
|
250
|
+
} else if (fromLen > length) {
|
|
251
|
+
if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
|
|
252
|
+
// We get here if `to` is the exact base path for `from`.
|
|
253
|
+
// For example: from='/foo/bar/baz'; to='/foo/bar'
|
|
254
|
+
lastCommonSep = i;
|
|
255
|
+
} else if (i === 0) {
|
|
256
|
+
// We get here if `to` is the root.
|
|
257
|
+
// For example: from='/foo'; to='/'
|
|
258
|
+
lastCommonSep = 0;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
var fromCode = from.charCodeAt(fromStart + i);
|
|
264
|
+
var toCode = to.charCodeAt(toStart + i);
|
|
265
|
+
if (fromCode !== toCode)
|
|
266
|
+
break;
|
|
267
|
+
else if (fromCode === 47 /*/*/)
|
|
268
|
+
lastCommonSep = i;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
var out = '';
|
|
272
|
+
// Generate the relative path based on the path difference between `to`
|
|
273
|
+
// and `from`
|
|
274
|
+
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
|
|
275
|
+
if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
|
|
276
|
+
if (out.length === 0)
|
|
277
|
+
out += '..';
|
|
278
|
+
else
|
|
279
|
+
out += '/..';
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Lastly, append the rest of the destination (`to`) path that comes after
|
|
284
|
+
// the common path parts
|
|
285
|
+
if (out.length > 0)
|
|
286
|
+
return out + to.slice(toStart + lastCommonSep);
|
|
287
|
+
else {
|
|
288
|
+
toStart += lastCommonSep;
|
|
289
|
+
if (to.charCodeAt(toStart) === 47 /*/*/)
|
|
290
|
+
++toStart;
|
|
291
|
+
return to.slice(toStart);
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
|
|
295
|
+
_makeLong: function _makeLong(path) {
|
|
296
|
+
return path;
|
|
297
|
+
},
|
|
298
|
+
|
|
299
|
+
dirname: function dirname(path) {
|
|
300
|
+
assertPath(path);
|
|
301
|
+
if (path.length === 0) return '.';
|
|
302
|
+
var code = path.charCodeAt(0);
|
|
303
|
+
var hasRoot = code === 47 /*/*/;
|
|
304
|
+
var end = -1;
|
|
305
|
+
var matchedSlash = true;
|
|
306
|
+
for (var i = path.length - 1; i >= 1; --i) {
|
|
307
|
+
code = path.charCodeAt(i);
|
|
308
|
+
if (code === 47 /*/*/) {
|
|
309
|
+
if (!matchedSlash) {
|
|
310
|
+
end = i;
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
} else {
|
|
314
|
+
// We saw the first non-path separator
|
|
315
|
+
matchedSlash = false;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (end === -1) return hasRoot ? '/' : '.';
|
|
320
|
+
if (hasRoot && end === 1) return '//';
|
|
321
|
+
return path.slice(0, end);
|
|
322
|
+
},
|
|
323
|
+
|
|
324
|
+
basename: function basename(path, ext) {
|
|
325
|
+
if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
|
|
326
|
+
assertPath(path);
|
|
327
|
+
|
|
328
|
+
var start = 0;
|
|
329
|
+
var end = -1;
|
|
330
|
+
var matchedSlash = true;
|
|
331
|
+
var i;
|
|
332
|
+
|
|
333
|
+
if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
|
|
334
|
+
if (ext.length === path.length && ext === path) return '';
|
|
335
|
+
var extIdx = ext.length - 1;
|
|
336
|
+
var firstNonSlashEnd = -1;
|
|
337
|
+
for (i = path.length - 1; i >= 0; --i) {
|
|
338
|
+
var code = path.charCodeAt(i);
|
|
339
|
+
if (code === 47 /*/*/) {
|
|
340
|
+
// If we reached a path separator that was not part of a set of path
|
|
341
|
+
// separators at the end of the string, stop now
|
|
342
|
+
if (!matchedSlash) {
|
|
343
|
+
start = i + 1;
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
} else {
|
|
347
|
+
if (firstNonSlashEnd === -1) {
|
|
348
|
+
// We saw the first non-path separator, remember this index in case
|
|
349
|
+
// we need it if the extension ends up not matching
|
|
350
|
+
matchedSlash = false;
|
|
351
|
+
firstNonSlashEnd = i + 1;
|
|
352
|
+
}
|
|
353
|
+
if (extIdx >= 0) {
|
|
354
|
+
// Try to match the explicit extension
|
|
355
|
+
if (code === ext.charCodeAt(extIdx)) {
|
|
356
|
+
if (--extIdx === -1) {
|
|
357
|
+
// We matched the extension, so mark this as the end of our path
|
|
358
|
+
// component
|
|
359
|
+
end = i;
|
|
360
|
+
}
|
|
361
|
+
} else {
|
|
362
|
+
// Extension does not match, so our result is the entire path
|
|
363
|
+
// component
|
|
364
|
+
extIdx = -1;
|
|
365
|
+
end = firstNonSlashEnd;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
|
|
372
|
+
return path.slice(start, end);
|
|
373
|
+
} else {
|
|
374
|
+
for (i = path.length - 1; i >= 0; --i) {
|
|
375
|
+
if (path.charCodeAt(i) === 47 /*/*/) {
|
|
376
|
+
// If we reached a path separator that was not part of a set of path
|
|
377
|
+
// separators at the end of the string, stop now
|
|
378
|
+
if (!matchedSlash) {
|
|
379
|
+
start = i + 1;
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
} else if (end === -1) {
|
|
383
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
384
|
+
// path component
|
|
385
|
+
matchedSlash = false;
|
|
386
|
+
end = i + 1;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if (end === -1) return '';
|
|
391
|
+
return path.slice(start, end);
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
|
|
395
|
+
extname: function extname(path) {
|
|
396
|
+
assertPath(path);
|
|
397
|
+
var startDot = -1;
|
|
398
|
+
var startPart = 0;
|
|
399
|
+
var end = -1;
|
|
400
|
+
var matchedSlash = true;
|
|
401
|
+
// Track the state of characters (if any) we see before our first dot and
|
|
402
|
+
// after any path separator we find
|
|
403
|
+
var preDotState = 0;
|
|
404
|
+
for (var i = path.length - 1; i >= 0; --i) {
|
|
405
|
+
var code = path.charCodeAt(i);
|
|
406
|
+
if (code === 47 /*/*/) {
|
|
407
|
+
// If we reached a path separator that was not part of a set of path
|
|
408
|
+
// separators at the end of the string, stop now
|
|
409
|
+
if (!matchedSlash) {
|
|
410
|
+
startPart = i + 1;
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
continue;
|
|
414
|
+
}
|
|
415
|
+
if (end === -1) {
|
|
416
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
417
|
+
// extension
|
|
418
|
+
matchedSlash = false;
|
|
419
|
+
end = i + 1;
|
|
420
|
+
}
|
|
421
|
+
if (code === 46 /*.*/) {
|
|
422
|
+
// If this is our first dot, mark it as the start of our extension
|
|
423
|
+
if (startDot === -1)
|
|
424
|
+
startDot = i;
|
|
425
|
+
else if (preDotState !== 1)
|
|
426
|
+
preDotState = 1;
|
|
427
|
+
} else if (startDot !== -1) {
|
|
428
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
|
429
|
+
// have a good chance at having a non-empty extension
|
|
430
|
+
preDotState = -1;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
if (startDot === -1 || end === -1 ||
|
|
435
|
+
// We saw a non-dot character immediately before the dot
|
|
436
|
+
preDotState === 0 ||
|
|
437
|
+
// The (right-most) trimmed path component is exactly '..'
|
|
438
|
+
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
439
|
+
return '';
|
|
440
|
+
}
|
|
441
|
+
return path.slice(startDot, end);
|
|
442
|
+
},
|
|
443
|
+
|
|
444
|
+
format: function format(pathObject) {
|
|
445
|
+
if (pathObject === null || typeof pathObject !== 'object') {
|
|
446
|
+
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
|
|
447
|
+
}
|
|
448
|
+
return _format('/', pathObject);
|
|
449
|
+
},
|
|
450
|
+
|
|
451
|
+
parse: function parse(path) {
|
|
452
|
+
assertPath(path);
|
|
453
|
+
|
|
454
|
+
var ret = { root: '', dir: '', base: '', ext: '', name: '' };
|
|
455
|
+
if (path.length === 0) return ret;
|
|
456
|
+
var code = path.charCodeAt(0);
|
|
457
|
+
var isAbsolute = code === 47 /*/*/;
|
|
458
|
+
var start;
|
|
459
|
+
if (isAbsolute) {
|
|
460
|
+
ret.root = '/';
|
|
461
|
+
start = 1;
|
|
462
|
+
} else {
|
|
463
|
+
start = 0;
|
|
464
|
+
}
|
|
465
|
+
var startDot = -1;
|
|
466
|
+
var startPart = 0;
|
|
467
|
+
var end = -1;
|
|
468
|
+
var matchedSlash = true;
|
|
469
|
+
var i = path.length - 1;
|
|
470
|
+
|
|
471
|
+
// Track the state of characters (if any) we see before our first dot and
|
|
472
|
+
// after any path separator we find
|
|
473
|
+
var preDotState = 0;
|
|
474
|
+
|
|
475
|
+
// Get non-dir info
|
|
476
|
+
for (; i >= start; --i) {
|
|
477
|
+
code = path.charCodeAt(i);
|
|
478
|
+
if (code === 47 /*/*/) {
|
|
479
|
+
// If we reached a path separator that was not part of a set of path
|
|
480
|
+
// separators at the end of the string, stop now
|
|
481
|
+
if (!matchedSlash) {
|
|
482
|
+
startPart = i + 1;
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
if (end === -1) {
|
|
488
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
489
|
+
// extension
|
|
490
|
+
matchedSlash = false;
|
|
491
|
+
end = i + 1;
|
|
492
|
+
}
|
|
493
|
+
if (code === 46 /*.*/) {
|
|
494
|
+
// If this is our first dot, mark it as the start of our extension
|
|
495
|
+
if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
|
|
496
|
+
} else if (startDot !== -1) {
|
|
497
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
|
498
|
+
// have a good chance at having a non-empty extension
|
|
499
|
+
preDotState = -1;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
if (startDot === -1 || end === -1 ||
|
|
504
|
+
// We saw a non-dot character immediately before the dot
|
|
505
|
+
preDotState === 0 ||
|
|
506
|
+
// The (right-most) trimmed path component is exactly '..'
|
|
507
|
+
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
508
|
+
if (end !== -1) {
|
|
509
|
+
if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
|
|
510
|
+
}
|
|
511
|
+
} else {
|
|
512
|
+
if (startPart === 0 && isAbsolute) {
|
|
513
|
+
ret.name = path.slice(1, startDot);
|
|
514
|
+
ret.base = path.slice(1, end);
|
|
515
|
+
} else {
|
|
516
|
+
ret.name = path.slice(startPart, startDot);
|
|
517
|
+
ret.base = path.slice(startPart, end);
|
|
518
|
+
}
|
|
519
|
+
ret.ext = path.slice(startDot, end);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';
|
|
523
|
+
|
|
524
|
+
return ret;
|
|
525
|
+
},
|
|
526
|
+
|
|
527
|
+
sep: '/',
|
|
528
|
+
delimiter: ':',
|
|
529
|
+
win32: null,
|
|
530
|
+
posix: null
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
posix.posix = posix;
|
|
534
|
+
|
|
535
|
+
var pathBrowserify = posix;
|
|
536
|
+
|
|
537
|
+
var path = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(pathBrowserify);
|
|
538
|
+
|
|
539
|
+
exports.default = path;
|
|
540
|
+
exports.pathBrowserify = pathBrowserify;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../../use/index.cjs');
|
|
5
|
+
var gridContainer_controller = require('./grid-container.controller.cjs');
|
|
6
|
+
require('./grid-container.css');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
12
|
+
}
|
|
13
|
+
const GridContainer = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
name: "IBizGridContainer",
|
|
15
|
+
props: {
|
|
16
|
+
modelData: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
controller: {
|
|
21
|
+
type: gridContainer_controller.GridContainerController,
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(props) {
|
|
26
|
+
const ns = namespace.useNamespace("grid-container");
|
|
27
|
+
const {
|
|
28
|
+
id
|
|
29
|
+
} = props.modelData;
|
|
30
|
+
const classArr = vue.computed(() => {
|
|
31
|
+
let result = [ns.b(), ns.m(id)];
|
|
32
|
+
result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
|
|
33
|
+
return result;
|
|
34
|
+
});
|
|
35
|
+
const layoutModel = vue.computed(() => {
|
|
36
|
+
return {
|
|
37
|
+
...props.modelData.layout,
|
|
38
|
+
layout: "TABLE_12COL"
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
const convertLayoutPos = (layoutPos, adaptGrow2) => {
|
|
42
|
+
const result = {
|
|
43
|
+
...layoutPos,
|
|
44
|
+
layout: "TABLE_12COL",
|
|
45
|
+
colXS: layoutPos.grow || adaptGrow2,
|
|
46
|
+
colSM: layoutPos.grow || adaptGrow2,
|
|
47
|
+
colMD: layoutPos.grow || adaptGrow2,
|
|
48
|
+
colLG: layoutPos.grow || adaptGrow2
|
|
49
|
+
};
|
|
50
|
+
delete result.grow;
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
const adaptCols = vue.ref(void 0);
|
|
54
|
+
const adaptGrow = vue.ref(12);
|
|
55
|
+
return {
|
|
56
|
+
ns,
|
|
57
|
+
classArr,
|
|
58
|
+
layoutModel,
|
|
59
|
+
convertLayoutPos,
|
|
60
|
+
adaptGrow,
|
|
61
|
+
adaptCols
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
render() {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
let _slot;
|
|
67
|
+
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
68
|
+
if (this.adaptCols === void 0) {
|
|
69
|
+
let currentGrow = 0;
|
|
70
|
+
let adaptCols = 0;
|
|
71
|
+
defaultSlots.forEach((slot) => {
|
|
72
|
+
const props = slot.props;
|
|
73
|
+
if (props && props.modelData && props.modelData.layoutPos) {
|
|
74
|
+
if (typeof props.modelData.layoutPos.grow === "number") {
|
|
75
|
+
currentGrow += props.modelData.layoutPos.grow;
|
|
76
|
+
} else if (typeof props.modelData.layoutPos.grow === "undefined") {
|
|
77
|
+
adaptCols += 1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
let adaptGrow = 12;
|
|
82
|
+
if (adaptCols > 0) {
|
|
83
|
+
adaptGrow = (12 - currentGrow) / adaptCols;
|
|
84
|
+
}
|
|
85
|
+
this.adaptCols = adaptCols;
|
|
86
|
+
this.adaptGrow = adaptGrow;
|
|
87
|
+
}
|
|
88
|
+
return vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
89
|
+
"class": this.classArr,
|
|
90
|
+
"layout": this.layoutModel
|
|
91
|
+
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
92
|
+
const props = slot.props;
|
|
93
|
+
if (!props || !props.controller) {
|
|
94
|
+
return slot;
|
|
95
|
+
}
|
|
96
|
+
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
97
|
+
"layoutPos": this.convertLayoutPos(props.modelData.layoutPos, this.adaptGrow),
|
|
98
|
+
"state": props.controller.state
|
|
99
|
+
}, _isSlot(slot) ? slot : {
|
|
100
|
+
default: () => [slot]
|
|
101
|
+
});
|
|
102
|
+
})) ? _slot : {
|
|
103
|
+
default: () => [_slot]
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
exports.GridContainer = GridContainer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var gridContainer_state = require('./grid-container.state.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class GridContainerController extends runtime.PanelItemController {
|
|
8
|
+
createState() {
|
|
9
|
+
var _a;
|
|
10
|
+
return new gridContainer_state.GridContainerState((_a = this.parent) == null ? void 0 : _a.state);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.GridContainerController = GridContainerController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.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}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var gridContainer_controller = require('./grid-container.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class GridContainerProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizGridContainer";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new gridContainer_controller.GridContainerController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.GridContainerProvider = GridContainerProvider;
|