@ibiz-template/vue3-components 0.0.1-alpha.1 → 0.0.1-alpha.3
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/es/common/action-toolbar/action-toolbar.d.ts +64 -0
- package/es/common/app-col/app-col.d.ts +45 -0
- package/es/common/app-col/app-col.js +91 -0
- package/es/common/app-icon/app-icon.d.ts +1 -1
- package/es/common/app-icon/app-icon.js +1 -2
- package/es/common/app-router-view/app-router-view.d.ts +1 -0
- package/es/common/app-router-view/app-router-view.js +2 -1
- package/es/common/app-row/app-row.d.ts +9 -0
- package/es/common/app-row/app-row.js +41 -0
- package/es/{layout → common}/control-base/control-base.js +6 -13
- package/es/common/index.d.ts +7 -5
- package/es/common/index.js +24 -5
- package/es/control/app-menu/app-menu-provider.js +1 -1
- package/es/control/app-menu/app-menu-state.d.ts +23 -0
- package/es/control/app-menu/app-menu-state.js +23 -0
- package/es/control/app-menu/app-menu.controller.d.ts +52 -0
- package/es/control/app-menu/app-menu.controller.js +91 -0
- package/es/control/app-menu/app-menu.d.ts +10 -7
- package/es/control/app-menu/app-menu.js +6 -10
- package/es/control/app-menu/index.js +10 -6
- package/es/control/form/form/form-control.d.ts +34 -0
- package/es/control/form/form/form-state.d.ts +36 -0
- package/es/control/form/form/form-state.js +39 -0
- package/es/control/form/form/form.controller.d.ts +129 -0
- package/es/control/form/form/form.controller.js +199 -0
- package/es/control/form/form/index.js +27 -0
- package/es/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
- package/es/control/form/form-detail/form-detail/form-detail-state.js +72 -0
- package/es/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
- package/es/control/form/form-detail/form-detail/form-detail.js +176 -0
- package/es/control/form/form-detail/form-detail/index.d.ts +2 -0
- package/es/control/form/form-detail/form-detail/index.js +2 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
- package/es/control/form/form-detail/form-group-panel/index.d.ts +3 -0
- package/es/control/form/form-detail/form-group-panel/index.js +3 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
- package/es/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
- package/es/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
- package/es/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
- package/es/control/form/form-detail/form-item/form-item.d.ts +28 -0
- package/es/control/form/form-detail/form-item/index.d.ts +3 -0
- package/es/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
- package/es/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
- package/es/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
- package/es/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/es/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
- package/es/control/form/form-detail/index.d.ts +3 -0
- package/es/control/form/form-detail/index.js +3 -0
- package/es/control/form/index.d.ts +8 -0
- package/es/control/form/index.js +12 -0
- package/es/control/form/search-form/index.js +15 -0
- package/es/control/form/search-form/search-form-provider.d.ts +13 -0
- package/es/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
- package/es/control/form/search-form/search-form-state.d.ts +19 -0
- package/es/control/form/search-form/search-form-state.js +22 -0
- package/es/control/form/search-form/search-form.controller.d.ts +86 -0
- package/es/control/form/search-form/search-form.controller.js +128 -0
- package/{lib/layout/view-shell/view-shell.d.ts → es/control/form/search-form/search-form.d.ts} +17 -22
- package/es/control/grid/grid/grid-column.controller.d.ts +76 -0
- package/es/control/grid/grid/grid-column.controller.js +89 -0
- package/{lib/control/grid-control → es/control/grid/grid}/grid-control.util.d.ts +3 -2
- package/es/control/grid/grid/grid-row.controller.d.ts +77 -0
- package/es/control/grid/grid/grid-row.controller.js +85 -0
- package/es/control/grid/grid/grid-state.d.ts +19 -0
- package/es/control/grid/grid/grid-state.js +23 -0
- package/es/control/grid/grid/grid.controller.d.ts +225 -0
- package/es/control/grid/grid/grid.controller.js +386 -0
- package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
- package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +1 -1
- package/es/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
- package/es/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
- package/es/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
- package/es/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
- package/es/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
- package/es/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
- package/es/control/grid/index.js +31 -0
- package/es/control/index.d.ts +4 -2
- package/es/control/index.js +4 -2
- package/es/control/panel/index.js +19 -0
- package/es/control/panel/panel/index.d.ts +4 -0
- package/es/control/panel/panel/index.js +4 -0
- package/es/control/panel/panel/panel-item-state.d.ts +47 -0
- package/es/control/panel/panel/panel-item-state.js +58 -0
- package/es/control/panel/panel/panel-item.controller.d.ts +71 -0
- package/es/control/panel/panel/panel-item.controller.js +135 -0
- package/es/control/panel/panel/panel-state.d.ts +21 -0
- package/es/control/panel/panel/panel-state.js +24 -0
- package/es/control/panel/panel/panel.controller.d.ts +114 -0
- package/es/control/panel/panel/panel.controller.js +187 -0
- package/es/control/panel/view-layout-panel/index.d.ts +3 -0
- package/es/control/panel/view-layout-panel/index.js +3 -0
- package/es/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
- package/es/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
- package/es/control/toolbar/index.js +12 -0
- package/{lib/control/toolbar-control → es/control/toolbar}/toolbar-control.d.ts +4 -10
- package/es/control/toolbar/toolbar-state.d.ts +24 -0
- package/es/control/toolbar/toolbar-state.js +29 -0
- package/es/control/toolbar/toolbar.controllerr.d.ts +33 -0
- package/es/control/toolbar/toolbar.controllerr.js +81 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.js +14 -0
- package/es/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
- package/es/editor/text-box/index.d.ts +1 -0
- package/es/editor/text-box/index.js +4 -0
- package/es/editor/text-box/text-box-provider.d.ts +18 -0
- package/es/editor/text-box/text-box-provider.js +29 -0
- package/es/editor/text-box/text-box.controller.d.ts +20 -0
- package/es/editor/text-box/text-box.controller.js +22 -0
- package/es/index.d.ts +9 -2
- package/es/index.js +30 -3
- package/es/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
- package/es/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
- package/es/panel-component/auth-userinfo/index.js +19 -0
- package/es/panel-component/index.d.ts +10 -0
- package/es/panel-component/index.js +25 -0
- package/es/panel-component/nav-pos/index.js +20 -0
- package/es/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
- package/es/panel-component/nav-pos/nav-pos-provider.js +20 -0
- package/es/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
- package/es/panel-component/nav-pos/nav-pos-state.js +17 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
- package/es/panel-component/nav-pos/nav-pos.controller.js +103 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts +27 -0
- package/es/panel-component/nav-tabs/index.js +16 -0
- package/es/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
- package/es/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
- package/es/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
- package/es/panel-component/nav-tabs/nav-tabs-state.js +18 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
- package/es/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
- package/es/panel-component/panel-container/index.js +23 -0
- package/es/panel-component/panel-container/panel-container-provider.d.ts +16 -0
- package/es/panel-component/panel-container/panel-container-provider.js +20 -0
- package/es/panel-component/panel-container/panel-container-state.d.ts +12 -0
- package/es/panel-component/panel-container/panel-container-state.js +6 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts +14 -0
- package/es/panel-component/panel-container/panel-container.controller.js +11 -0
- package/es/panel-component/panel-container/panel-container.d.ts +28 -0
- package/es/panel-component/panel-ctrl-pos/index.js +18 -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.js +20 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/es/panel-component/scroll-container/index.js +43 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container/index.js +3 -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.js +20 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -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.js +3 -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.js +20 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
- package/es/view/index.js +13 -0
- package/{lib/views/grid-view/grid-view-provider.d.ts → es/view/view-provider.d.ts} +3 -3
- package/es/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/es/view-engine/grid-view-engine.d.ts +48 -0
- package/es/view-engine/grid-view-engine.js +158 -0
- package/es/view-engine/index-view-engine.d.ts +9 -0
- package/es/view-engine/index-view-engine.js +20 -0
- package/es/view-engine/index.d.ts +6 -0
- package/es/view-engine/index.js +23 -0
- package/lib/common/action-toolbar/action-toolbar.d.ts +64 -0
- package/lib/common/app-col/app-col.d.ts +45 -0
- package/lib/common/app-col/app-col.js +91 -0
- package/lib/common/app-icon/app-icon.d.ts +1 -1
- package/lib/common/app-icon/app-icon.js +1 -2
- package/lib/common/app-router-view/app-router-view.d.ts +1 -0
- package/lib/common/app-router-view/app-router-view.js +2 -1
- package/lib/common/app-row/app-row.d.ts +9 -0
- package/lib/common/app-row/app-row.js +41 -0
- package/lib/{layout → common}/control-base/control-base.js +5 -12
- package/lib/common/index.d.ts +7 -5
- package/lib/common/index.js +26 -35
- package/lib/control/app-menu/app-menu-provider.js +1 -1
- package/lib/control/app-menu/app-menu-state.d.ts +23 -0
- package/lib/control/app-menu/app-menu-state.js +23 -0
- package/lib/control/app-menu/app-menu.controller.d.ts +52 -0
- package/lib/control/app-menu/app-menu.controller.js +91 -0
- package/lib/control/app-menu/app-menu.d.ts +10 -7
- package/lib/control/app-menu/app-menu.js +7 -11
- package/lib/control/app-menu/index.js +35 -5
- package/lib/control/form/form/form-control.d.ts +34 -0
- package/lib/control/form/form/form-state.d.ts +36 -0
- package/lib/control/form/form/form-state.js +39 -0
- package/lib/control/form/form/form.controller.d.ts +129 -0
- package/lib/control/form/form/form.controller.js +199 -0
- package/lib/control/form/form/index.js +46 -0
- package/lib/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
- package/lib/control/form/form-detail/form-detail/form-detail-state.js +72 -0
- package/lib/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
- package/lib/control/form/form-detail/form-detail/form-detail.js +176 -0
- package/lib/control/form/form-detail/form-detail/index.d.ts +2 -0
- package/lib/{views → control/form/form-detail/form-detail}/index.js +6 -8
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
- package/lib/control/form/form-detail/form-group-panel/index.d.ts +3 -0
- package/lib/control/form/form-detail/form-group-panel/index.js +26 -0
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
- package/lib/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
- package/lib/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
- package/lib/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
- package/lib/control/form/form-detail/form-item/form-item.d.ts +28 -0
- package/lib/control/form/form-detail/form-item/index.d.ts +3 -0
- package/lib/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
- package/lib/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
- package/lib/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
- package/lib/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/lib/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
- package/lib/control/form/form-detail/index.d.ts +3 -0
- package/lib/control/form/form-detail/index.js +26 -0
- package/lib/control/form/index.d.ts +8 -0
- package/lib/control/form/index.js +32 -0
- package/lib/control/form/search-form/index.js +15 -0
- package/lib/control/form/search-form/search-form-provider.d.ts +13 -0
- package/lib/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
- package/lib/control/form/search-form/search-form-state.d.ts +19 -0
- package/lib/control/form/search-form/search-form-state.js +22 -0
- package/lib/control/form/search-form/search-form.controller.d.ts +86 -0
- package/lib/control/form/search-form/search-form.controller.js +128 -0
- package/{es/layout/view-shell/view-shell.d.ts → lib/control/form/search-form/search-form.d.ts} +17 -22
- package/lib/control/grid/grid/grid-column.controller.d.ts +76 -0
- package/lib/control/grid/grid/grid-column.controller.js +89 -0
- package/{es/control/grid-control → lib/control/grid/grid}/grid-control.util.d.ts +3 -2
- package/lib/control/grid/grid/grid-row.controller.d.ts +77 -0
- package/lib/control/grid/grid/grid-row.controller.js +85 -0
- package/lib/control/grid/grid/grid-state.d.ts +19 -0
- package/lib/control/grid/grid/grid-state.js +23 -0
- package/lib/control/grid/grid/grid.controller.d.ts +225 -0
- package/lib/control/grid/grid/grid.controller.js +386 -0
- package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
- package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +2 -2
- package/lib/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
- package/lib/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
- package/lib/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
- package/lib/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
- package/lib/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
- package/lib/control/grid/index.js +35 -0
- package/lib/control/index.d.ts +4 -2
- package/lib/control/index.js +22 -6
- package/lib/control/panel/index.js +35 -0
- package/lib/control/panel/panel/index.d.ts +4 -0
- package/lib/control/panel/panel/index.js +34 -0
- package/lib/control/panel/panel/panel-item-state.d.ts +47 -0
- package/lib/control/panel/panel/panel-item-state.js +58 -0
- package/lib/control/panel/panel/panel-item.controller.d.ts +71 -0
- package/lib/control/panel/panel/panel-item.controller.js +135 -0
- package/lib/control/panel/panel/panel-state.d.ts +21 -0
- package/lib/control/panel/panel/panel-state.js +24 -0
- package/lib/control/panel/panel/panel.controller.d.ts +114 -0
- package/lib/control/panel/panel/panel.controller.js +187 -0
- package/lib/control/panel/view-layout-panel/index.d.ts +3 -0
- package/lib/control/panel/view-layout-panel/index.js +26 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
- package/lib/control/{toolbar-control → toolbar}/index.js +5 -5
- package/{es/control/toolbar-control → lib/control/toolbar}/toolbar-control.d.ts +4 -10
- package/lib/control/toolbar/toolbar-state.d.ts +24 -0
- package/lib/control/toolbar/toolbar-state.js +29 -0
- package/lib/control/toolbar/toolbar.controllerr.d.ts +33 -0
- package/lib/control/toolbar/toolbar.controllerr.js +81 -0
- package/lib/editor/index.d.ts +5 -0
- package/lib/editor/index.js +14 -0
- package/lib/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
- package/lib/editor/text-box/index.d.ts +1 -0
- package/lib/editor/text-box/index.js +7 -0
- package/lib/editor/text-box/text-box-provider.d.ts +18 -0
- package/lib/editor/text-box/text-box-provider.js +29 -0
- package/lib/editor/text-box/text-box.controller.d.ts +20 -0
- package/lib/editor/text-box/text-box.controller.js +22 -0
- package/lib/index.d.ts +9 -2
- package/lib/index.js +45 -12
- package/lib/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
- package/lib/panel-component/auth-userinfo/index.js +23 -0
- package/lib/panel-component/index.d.ts +10 -0
- package/lib/panel-component/index.js +55 -0
- package/lib/panel-component/nav-pos/index.js +30 -0
- package/lib/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
- package/lib/panel-component/nav-pos/nav-pos-provider.js +20 -0
- package/lib/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
- package/lib/panel-component/nav-pos/nav-pos-state.js +17 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.js +103 -0
- package/lib/panel-component/nav-pos/nav-pos.d.ts +27 -0
- package/lib/panel-component/nav-tabs/index.js +20 -0
- package/lib/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
- package/lib/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
- package/lib/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
- package/lib/panel-component/nav-tabs/nav-tabs-state.js +18 -0
- package/lib/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
- package/lib/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
- package/lib/panel-component/panel-container/index.js +33 -0
- package/lib/panel-component/panel-container/panel-container-provider.d.ts +16 -0
- package/lib/panel-component/panel-container/panel-container-provider.js +20 -0
- package/lib/panel-component/panel-container/panel-container-state.d.ts +12 -0
- package/lib/panel-component/panel-container/panel-container-state.js +6 -0
- package/lib/panel-component/panel-container/panel-container.controller.d.ts +14 -0
- package/lib/panel-component/panel-container/panel-container.controller.js +11 -0
- package/lib/panel-component/panel-container/panel-container.d.ts +28 -0
- package/lib/panel-component/panel-ctrl-pos/index.js +25 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/lib/panel-component/scroll-container/index.js +57 -0
- package/lib/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/lib/panel-component/scroll-container/scroll-container/index.js +26 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.js +26 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
- package/lib/view/index.js +15 -0
- package/{es/views/grid-view/grid-view-provider.d.ts → lib/view/view-provider.d.ts} +3 -3
- package/lib/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/lib/view-engine/grid-view-engine.d.ts +48 -0
- package/lib/view-engine/grid-view-engine.js +158 -0
- package/lib/view-engine/index-view-engine.d.ts +9 -0
- package/lib/view-engine/index-view-engine.js +20 -0
- package/lib/view-engine/index.d.ts +6 -0
- package/lib/view-engine/index.js +35 -0
- package/package.json +16 -16
- package/src/common/action-toolbar/action-toolbar.scss +31 -0
- package/src/common/action-toolbar/action-toolbar.tsx +117 -0
- package/src/common/app-col/app-col.tsx +34 -13
- package/src/common/app-icon/app-icon.tsx +0 -1
- package/src/common/app-router-view/app-router-view.tsx +2 -1
- package/src/common/app-row/app-row.tsx +2 -1
- package/src/{layout/control-layout/control-layout.scss → common/control-base/control-base.scss} +1 -1
- package/src/{layout → common}/control-base/control-base.tsx +4 -7
- package/src/common/index.ts +23 -4
- package/src/control/app-menu/app-menu-provider.ts +1 -1
- package/src/control/app-menu/app-menu.controller.ts +24 -5
- package/src/control/app-menu/app-menu.tsx +4 -13
- package/src/control/app-menu/index.ts +8 -3
- package/src/control/form/form/form-control.tsx +1 -1
- package/src/control/form/form/form.controller.ts +8 -9
- package/src/control/form/form/index.ts +4 -4
- package/src/control/form/form-detail/form-detail/form-detail-state.ts +2 -2
- package/src/control/form/form-detail/form-detail/form-detail.ts +7 -13
- package/src/control/form/form-detail/form-group-panel/form-group-panel.controller.ts +9 -5
- package/src/control/form/form-detail/form-item/form-item.controller.ts +2 -1
- package/src/control/form/form-detail/form-item/form-item.tsx +2 -4
- package/src/control/form/form-detail/form-page/form-page-item.tsx +3 -6
- package/src/control/form/search-form/index.ts +4 -4
- package/src/control/form/search-form/search-form-provider.ts +1 -1
- package/src/control/form/search-form/search-form-state.ts +9 -1
- package/src/control/form/search-form/search-form.controller.ts +21 -1
- package/src/control/form/search-form/search-form.tsx +4 -3
- package/src/control/grid/grid/grid-control.tsx +1 -1
- package/src/control/grid/grid/grid-row.controller.ts +4 -4
- package/src/control/grid/grid/grid.controller.ts +22 -14
- package/src/control/grid/grid/grid.scss +1 -0
- package/src/control/grid/grid-ua-column/grid-ua-column-provider.ts +26 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.controller.ts +80 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.scss +20 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.tsx +75 -0
- package/src/control/grid/index.ts +13 -5
- package/src/control/index.ts +1 -0
- package/src/control/panel/index.ts +6 -10
- package/src/control/panel/panel/index.ts +4 -0
- package/src/control/panel/panel/panel-item-state.ts +2 -2
- package/src/control/panel/panel/panel-item.controller.ts +7 -13
- package/src/control/panel/panel/panel.controller.ts +10 -12
- package/src/control/panel/view-layout-panel/index.ts +3 -0
- package/src/control/panel/view-layout-panel/view-layout-panel-provider.ts +1 -1
- package/src/control/panel/view-layout-panel/view-layout-panel.controller.ts +9 -2
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +6 -0
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +5 -10
- package/src/control/toolbar/index.ts +3 -3
- package/src/control/toolbar/toolbar-control.tsx +1 -2
- package/src/control/toolbar/toolbar.controllerr.ts +30 -36
- package/src/editor/index.ts +2 -2
- package/src/index.ts +14 -37
- package/src/panel-component/auth-userinfo/auth-userinfo-provider.ts +26 -0
- package/src/panel-component/auth-userinfo/auth-userinfo.scss +34 -0
- package/src/{common/app-user/app-user.tsx → panel-component/auth-userinfo/auth-userinfo.tsx} +18 -6
- package/src/panel-component/auth-userinfo/index.ts +17 -0
- package/src/panel-component/index.ts +26 -0
- package/src/panel-component/nav-pos/index.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos-provider.ts +27 -0
- package/src/panel-component/nav-pos/nav-pos-state.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos.controller.ts +117 -0
- package/src/panel-component/nav-pos/nav-pos.scss +4 -0
- package/src/panel-component/nav-pos/nav-pos.tsx +79 -0
- package/src/panel-component/nav-tabs/index.ts +14 -0
- package/src/panel-component/nav-tabs/nav-tabs-provider.ts +27 -0
- package/src/panel-component/nav-tabs/nav-tabs-state.ts +24 -0
- package/src/panel-component/nav-tabs/nav-tabs.controller.ts +146 -0
- package/src/panel-component/nav-tabs/nav-tabs.scss +64 -0
- package/src/panel-component/nav-tabs/nav-tabs.tsx +141 -0
- package/src/{control/panel → panel-component}/panel-container/index.ts +3 -2
- package/src/{control/panel → panel-component}/panel-container/panel-container-provider.ts +1 -2
- package/src/{control/panel → panel-component}/panel-container/panel-container-state.ts +1 -1
- package/src/{control/panel → panel-component}/panel-container/panel-container.controller.ts +1 -1
- package/src/{control/panel → panel-component}/panel-container/panel-container.tsx +2 -4
- package/src/{control/panel → panel-component}/panel-ctrl-pos/index.ts +3 -2
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.ts +2 -3
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.ts +1 -2
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +4 -0
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.tsx +3 -2
- package/src/panel-component/scroll-container/index.ts +44 -0
- package/src/panel-component/scroll-container/scroll-container/index.ts +3 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container-provider.ts +27 -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.scss +30 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +108 -0
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +3 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.ts +27 -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.scss +5 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +59 -0
- package/src/view/ibiz-view.scss +13 -0
- package/src/view/ibiz-view.tsx +75 -0
- package/src/{views/view → view}/index.ts +3 -3
- package/src/view-engine/grid-view-engine.ts +200 -0
- package/src/view-engine/index-view-engine.ts +34 -0
- package/src/view-engine/index.ts +24 -0
- package/es/common/app-user/app-user.d.ts +0 -8
- package/es/common/app-user/app-user.js +0 -60
- package/es/common/grid-pagination/index.d.ts +0 -40
- package/es/common/grid-pagination/index.js +0 -9
- package/es/common/quick-search/quick-search.d.ts +0 -30
- package/es/common/quick-search/quick-search.js +0 -63
- package/es/common/tab-page-exp/tab-page-exp.d.ts +0 -69
- package/es/common/tab-page-exp/tab-page-exp.js +0 -117
- package/es/control/app-menu/index.d.ts +0 -53
- package/es/control/grid-control/grid-control.d.ts +0 -158
- package/es/control/grid-control/index.d.ts +0 -114
- package/es/control/grid-control/index.js +0 -23
- package/es/control/toolbar-control/index.d.ts +0 -43
- package/es/control/toolbar-control/index.js +0 -12
- package/es/layout/app-layout/app-layout.d.ts +0 -32
- package/es/layout/control-base/control-base.d.ts +0 -17
- package/es/layout/control-shell/control-shell.d.ts +0 -18
- package/es/layout/index.d.ts +0 -10
- package/es/layout/index.js +0 -20
- package/es/layout/md-view-base/md-view-base.d.ts +0 -12
- package/es/layout/md-view-base/md-view-base.js +0 -35
- package/es/layout/router-shell/router-shell.d.ts +0 -27
- package/es/layout/router-shell/router-shell.js +0 -96
- package/es/layout/view-base/view-base.d.ts +0 -18
- package/es/layout/view-layout/view-layout.d.ts +0 -44
- package/es/util/install.d.ts +0 -3
- package/es/util/install.js +0 -9
- package/es/views/edit-view/index.d.ts +0 -3
- package/es/views/edit-view/index.js +0 -9
- package/es/views/edit-view/src/edit-view.css +0 -6
- package/es/views/edit-view/src/edit-view.d.ts +0 -3
- package/es/views/edit-view/src/edit-view.js +0 -15
- package/es/views/grid-view/grid-view-engine.d.ts +0 -8
- package/es/views/grid-view/grid-view-engine.js +0 -21
- package/es/views/grid-view/grid-view.d.ts +0 -32
- package/es/views/grid-view/grid-view.js +0 -64
- package/es/views/grid-view/index.d.ts +0 -32
- package/es/views/grid-view/index.js +0 -14
- package/es/views/index-view/index-view-default.d.ts +0 -22
- package/es/views/index-view/index-view-default.js +0 -117
- package/es/views/index-view/index-view-engine.d.ts +0 -6
- package/es/views/index-view/index-view-engine.js +0 -9
- package/es/views/index-view/index-view-exp.d.ts +0 -29
- package/es/views/index-view/index-view-exp.js +0 -177
- package/es/views/index-view/index-view-provider.d.ts +0 -13
- package/es/views/index-view/index-view.d.ts +0 -44
- package/es/views/index-view/index-view.js +0 -155
- package/es/views/index-view/index.d.ts +0 -44
- package/es/views/index-view/index.js +0 -14
- package/es/views/index.d.ts +0 -4
- package/es/views/index.js +0 -6
- package/lib/common/app-user/app-user.d.ts +0 -8
- package/lib/common/app-user/app-user.js +0 -60
- package/lib/common/grid-pagination/index.d.ts +0 -40
- package/lib/common/grid-pagination/index.js +0 -9
- package/lib/common/quick-search/quick-search.d.ts +0 -30
- package/lib/common/quick-search/quick-search.js +0 -63
- package/lib/common/tab-page-exp/tab-page-exp.d.ts +0 -69
- package/lib/common/tab-page-exp/tab-page-exp.js +0 -117
- package/lib/control/app-menu/index.d.ts +0 -53
- package/lib/control/grid-control/grid-control.d.ts +0 -158
- package/lib/control/grid-control/index.d.ts +0 -114
- package/lib/control/grid-control/index.js +0 -24
- package/lib/control/toolbar-control/index.d.ts +0 -43
- package/lib/layout/app-layout/app-layout.d.ts +0 -32
- package/lib/layout/control-base/control-base.d.ts +0 -17
- package/lib/layout/control-shell/control-shell.d.ts +0 -18
- package/lib/layout/index.d.ts +0 -10
- package/lib/layout/index.js +0 -44
- package/lib/layout/md-view-base/md-view-base.d.ts +0 -12
- package/lib/layout/md-view-base/md-view-base.js +0 -35
- package/lib/layout/router-shell/router-shell.d.ts +0 -27
- package/lib/layout/router-shell/router-shell.js +0 -96
- package/lib/layout/view-base/view-base.d.ts +0 -18
- package/lib/layout/view-layout/view-layout.d.ts +0 -44
- package/lib/util/install.d.ts +0 -3
- package/lib/util/install.js +0 -9
- package/lib/views/edit-view/index.d.ts +0 -3
- package/lib/views/edit-view/index.js +0 -8
- package/lib/views/edit-view/src/edit-view.css +0 -6
- package/lib/views/edit-view/src/edit-view.d.ts +0 -3
- package/lib/views/edit-view/src/edit-view.js +0 -14
- package/lib/views/grid-view/grid-view-engine.d.ts +0 -8
- package/lib/views/grid-view/grid-view-engine.js +0 -21
- package/lib/views/grid-view/grid-view.d.ts +0 -32
- package/lib/views/grid-view/grid-view.js +0 -64
- package/lib/views/grid-view/index.d.ts +0 -32
- package/lib/views/grid-view/index.js +0 -14
- package/lib/views/index-view/index-view-default.d.ts +0 -22
- package/lib/views/index-view/index-view-default.js +0 -117
- package/lib/views/index-view/index-view-engine.d.ts +0 -6
- package/lib/views/index-view/index-view-engine.js +0 -9
- package/lib/views/index-view/index-view-exp.d.ts +0 -29
- package/lib/views/index-view/index-view-exp.js +0 -177
- package/lib/views/index-view/index-view-provider.d.ts +0 -13
- package/lib/views/index-view/index-view.d.ts +0 -44
- package/lib/views/index-view/index-view.js +0 -155
- package/lib/views/index-view/index.d.ts +0 -44
- package/lib/views/index-view/index.js +0 -14
- package/lib/views/index.d.ts +0 -4
- package/src/common/app-user/app-user.scss +0 -32
- package/src/common/quick-search/quick-search.scss +0 -15
- package/src/common/quick-search/quick-search.tsx +0 -59
- package/src/common/tab-page-exp/tab-page-exp.scss +0 -43
- package/src/common/tab-page-exp/tab-page-exp.tsx +0 -125
- package/src/control/panel/view-layout-panel.json +0 -141
- package/src/layout/app-layout/app-layout.scss +0 -133
- package/src/layout/app-layout/app-layout.tsx +0 -149
- package/src/layout/control-layout/control-layout.tsx +0 -29
- package/src/layout/index.ts +0 -15
- package/src/layout/md-view-base/md-view-base.tsx +0 -69
- package/src/layout/view-base/view-base.scss +0 -11
- package/src/layout/view-base/view-base.tsx +0 -147
- package/src/layout/view-layout/view-layout.scss +0 -198
- package/src/layout/view-layout/view-layout.tsx +0 -115
- package/src/util/install.ts +0 -11
- package/src/views/grid-view/grid-view-engine.ts +0 -68
- package/src/views/grid-view/index.ts +0 -12
- package/src/views/index-view/index-view-default.ts +0 -168
- package/src/views/index-view/index-view-engine.ts +0 -10
- package/src/views/index-view/index-view-exp.ts +0 -261
- package/src/views/index-view/index-view-provider.ts +0 -14
- package/src/views/index-view/index-view.tsx +0 -249
- package/src/views/index-view/index.ts +0 -14
- package/src/views/index.ts +0 -3
- package/src/views/view/ibiz-view.tsx +0 -49
- /package/es/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
- /package/es/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
- /package/es/control/{grid-control → grid/grid}/grid-provider.js +0 -0
- /package/es/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
- /package/es/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
- /package/es/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-provider.js +0 -0
- /package/lib/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
- /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
- /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
- /package/src/{control/panel → panel-component}/panel-container/panel-container.scss +0 -0
- /package/src/{views/view → view}/view-provider.ts +0 -0
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { ControlType } from '@ibiz-template/runtime';
|
|
1
|
+
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
3
|
import { App } from 'vue';
|
|
3
|
-
import { withInstall } from '../../util/install';
|
|
4
|
-
import IBizPanelContainer from './panel-container';
|
|
5
|
-
import IBizPanelCtrlPos from './panel-ctrl-pos';
|
|
6
4
|
import { ViewLayoutPanel } from './view-layout-panel/view-layout-panel';
|
|
7
5
|
import { ViewLayoutPanelProvider } from './view-layout-panel/view-layout-panel-provider';
|
|
8
6
|
|
|
9
|
-
export * from './panel
|
|
10
|
-
export * from './panel
|
|
7
|
+
export * from './view-layout-panel';
|
|
8
|
+
export * from './panel';
|
|
11
9
|
|
|
12
10
|
export { ViewLayoutPanel };
|
|
13
11
|
export const IBizPanel = withInstall(ViewLayoutPanel, function (v: App) {
|
|
14
12
|
v.component(ViewLayoutPanel.name, ViewLayoutPanel);
|
|
15
|
-
|
|
13
|
+
registerControlProvider(
|
|
16
14
|
ControlType.VIEW_LAYOUT_PANEL,
|
|
17
|
-
new ViewLayoutPanelProvider(),
|
|
15
|
+
() => new ViewLayoutPanelProvider(),
|
|
18
16
|
);
|
|
19
|
-
v.use(IBizPanelContainer);
|
|
20
|
-
v.use(IBizPanelCtrlPos);
|
|
21
17
|
});
|
|
22
18
|
|
|
23
19
|
export default IBizPanel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isOverlap } from '@ibiz-template/core';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
calcLayoutHeightWidth,
|
|
4
4
|
PanelNotifyState,
|
|
5
5
|
verifyPanelGroupLogic,
|
|
6
6
|
} from '@ibiz-template/runtime';
|
|
@@ -47,14 +47,15 @@ export class PanelItemController<T extends IPanelItem = IPanelItem> {
|
|
|
47
47
|
|
|
48
48
|
protected async onInit(): Promise<void> {
|
|
49
49
|
// 初始化布局参数
|
|
50
|
-
const {
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
const { layoutPos, sysCss, itemType } = this.model;
|
|
51
|
+
|
|
52
|
+
// 初始化高宽
|
|
53
|
+
if (layoutPos) {
|
|
54
|
+
const { width, height } = calcLayoutHeightWidth(layoutPos);
|
|
53
55
|
this.state.layoutController.width = `${width}`;
|
|
54
|
-
}
|
|
55
|
-
if (height) {
|
|
56
56
|
this.state.layoutController.height = `${height}`;
|
|
57
57
|
}
|
|
58
|
+
|
|
58
59
|
// 给col添加各自类型的类名
|
|
59
60
|
this.state.layoutController.extraClass = `ibiz-panel-col__${itemType!.toLowerCase()} `;
|
|
60
61
|
if (sysCss?.cssName) {
|
|
@@ -69,13 +70,6 @@ export class PanelItemController<T extends IPanelItem = IPanelItem> {
|
|
|
69
70
|
return this.state.visible;
|
|
70
71
|
},
|
|
71
72
|
});
|
|
72
|
-
|
|
73
|
-
if (this.model.layoutPos) {
|
|
74
|
-
// 设置自身内容样式
|
|
75
|
-
this.state.layoutController.contentStyle = calcLayoutContentStyle(
|
|
76
|
-
this.model.layoutPos!,
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
73
|
}
|
|
80
74
|
|
|
81
75
|
/**
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
import { ModelError, RuntimeError } from '@ibiz-template/core';
|
|
3
3
|
import {
|
|
4
4
|
ControlController,
|
|
5
|
+
getPanelItemProvider,
|
|
5
6
|
IControlProvider,
|
|
7
|
+
IPanelController,
|
|
6
8
|
IPanelItemProvider,
|
|
7
9
|
PanelNotifyState,
|
|
8
10
|
} from '@ibiz-template/runtime';
|
|
9
11
|
import { IPanel, IPanelContainer, IPanelItem } from '@ibiz/model-core';
|
|
10
|
-
import { PanelContainerController } from '
|
|
12
|
+
import { PanelContainerController } from '../../../panel-component';
|
|
11
13
|
import { PanelItemController } from './panel-item.controller';
|
|
12
14
|
import { PanelState } from './panel-state';
|
|
13
15
|
|
|
@@ -20,9 +22,10 @@ import { PanelState } from './panel-state';
|
|
|
20
22
|
* @class PanelController
|
|
21
23
|
* @extends {ControlController<PanelModel>}
|
|
22
24
|
*/
|
|
23
|
-
export class PanelController<
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
export class PanelController<T extends IPanel = IPanel>
|
|
26
|
+
extends ControlController<T>
|
|
27
|
+
implements IPanelController
|
|
28
|
+
{
|
|
26
29
|
state = new PanelState();
|
|
27
30
|
|
|
28
31
|
/**
|
|
@@ -77,11 +80,10 @@ export class PanelController<
|
|
|
77
80
|
// this.evt.on('onMounted', () => {
|
|
78
81
|
// this.load();
|
|
79
82
|
// });
|
|
80
|
-
console.log(this, '布局面板');
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
/**
|
|
84
|
-
*
|
|
86
|
+
* 初始化面板成员控制器
|
|
85
87
|
*
|
|
86
88
|
* @author lxm
|
|
87
89
|
* @date 2022-08-24 21:08:48
|
|
@@ -95,14 +97,10 @@ export class PanelController<
|
|
|
95
97
|
if (!panelItems) {
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
|
-
const { panelItem: register } = ibiz.register;
|
|
99
|
-
if (!register) {
|
|
100
|
-
throw new RuntimeError('panelItem注册器不存在');
|
|
101
|
-
}
|
|
102
100
|
await Promise.all(
|
|
103
101
|
panelItems.map(async panelItem => {
|
|
104
|
-
//
|
|
105
|
-
const panelItemProvider = await
|
|
102
|
+
// 生成面板成员控制器
|
|
103
|
+
const panelItemProvider = await getPanelItemProvider(panelItem);
|
|
106
104
|
if (!panelItemProvider) {
|
|
107
105
|
return;
|
|
108
106
|
}
|
|
@@ -10,5 +10,5 @@ import { IControlProvider } from '@ibiz-template/runtime';
|
|
|
10
10
|
* @implements {IControlProvider}
|
|
11
11
|
*/
|
|
12
12
|
export class ViewLayoutPanelProvider implements IControlProvider {
|
|
13
|
-
component: string = '
|
|
13
|
+
component: string = 'ViewLayoutPanelControl';
|
|
14
14
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EventBase,
|
|
3
|
+
IViewLayoutPanelController,
|
|
4
|
+
ViewLogicDispatcher,
|
|
5
|
+
} from '@ibiz-template/runtime';
|
|
2
6
|
import { IViewLayoutPanel } from '@ibiz/model-core';
|
|
3
7
|
import { PanelController } from '../panel/panel.controller';
|
|
4
8
|
|
|
@@ -11,7 +15,10 @@ import { PanelController } from '../panel/panel.controller';
|
|
|
11
15
|
* @class ViewLayoutPanelController
|
|
12
16
|
* @extends {ControlController<ViewLayoutPanelModel>}
|
|
13
17
|
*/
|
|
14
|
-
export class ViewLayoutPanelController
|
|
18
|
+
export class ViewLayoutPanelController
|
|
19
|
+
extends PanelController<IViewLayoutPanel>
|
|
20
|
+
implements IViewLayoutPanelController
|
|
21
|
+
{
|
|
15
22
|
/**
|
|
16
23
|
* 视图逻辑的事件调度分发器
|
|
17
24
|
* @author lxm
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
IViewLayoutPanel,
|
|
16
16
|
} from '@ibiz/model-core';
|
|
17
17
|
import { ViewLayoutPanelController } from './view-layout-panel.controller';
|
|
18
|
+
import './view-layout-panel.scss';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* 绘制面板成员
|
|
@@ -71,7 +72,7 @@ function renderPanelItem(
|
|
|
71
72
|
* 视图布局面板组件
|
|
72
73
|
*/
|
|
73
74
|
export const ViewLayoutPanel = defineComponent({
|
|
74
|
-
name: '
|
|
75
|
+
name: 'ViewLayoutPanelControl',
|
|
75
76
|
props: {
|
|
76
77
|
modelData: {
|
|
77
78
|
type: Object as PropType<IViewLayoutPanel>,
|
|
@@ -85,8 +86,8 @@ export const ViewLayoutPanel = defineComponent({
|
|
|
85
86
|
const c = useControlController(
|
|
86
87
|
(...args) => new ViewLayoutPanelController(...args),
|
|
87
88
|
);
|
|
89
|
+
const ns = useNamespace(`control-${c.model.controlType!.toLowerCase()}`);
|
|
88
90
|
|
|
89
|
-
const ns = useNamespace('control-viewlayoutpanel');
|
|
90
91
|
c.evt.on('onCreated', () => {
|
|
91
92
|
const keys = Object.keys(c.panelItems);
|
|
92
93
|
keys.forEach(key => {
|
|
@@ -95,19 +96,13 @@ export const ViewLayoutPanel = defineComponent({
|
|
|
95
96
|
});
|
|
96
97
|
});
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
const layout = {
|
|
100
|
-
layout: c.model.layoutMode,
|
|
101
|
-
dir: 'column',
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
return { c, ns, layout };
|
|
99
|
+
return { c, ns };
|
|
105
100
|
},
|
|
106
101
|
render() {
|
|
107
102
|
const { state, model } = this.c;
|
|
108
103
|
return (
|
|
109
104
|
<control-base controller={this.c}>
|
|
110
|
-
<app-row
|
|
105
|
+
<app-row class={this.ns.b('content')} layout={{ layout: 'FLEX' }}>
|
|
111
106
|
{state.complete &&
|
|
112
107
|
model.rootPanelItems?.map(panelItem => {
|
|
113
108
|
const subC = this.c.panelItems[panelItem.id!];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ControlType } from '@ibiz-template/runtime';
|
|
1
|
+
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
-
import { withInstall } from '
|
|
3
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
4
4
|
import { ToolbarControl } from './toolbar-control';
|
|
5
5
|
import { ToolbarProvider } from './toolbar-provider';
|
|
6
6
|
|
|
7
7
|
export const IBizToolbar = withInstall(ToolbarControl, function (v: App) {
|
|
8
8
|
v.component(ToolbarControl.name, ToolbarControl);
|
|
9
|
-
|
|
9
|
+
registerControlProvider(ControlType.TOOLBAR, () => new ToolbarProvider());
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
export default IBizToolbar;
|
|
@@ -27,8 +27,7 @@ export const ToolbarControl = defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
setup() {
|
|
29
29
|
const c = useControlController((...args) => new ToolbarController(...args));
|
|
30
|
-
|
|
31
|
-
const ns = useNamespace('control-toolbar');
|
|
30
|
+
const ns = useNamespace(`control-${c.model.controlType!.toLowerCase()}`);
|
|
32
31
|
|
|
33
32
|
const btnSize = computed(() => {
|
|
34
33
|
return c.state.viewMode === 'EMBED' ? 'small' : 'default';
|
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
ControlController,
|
|
3
3
|
ControllerEvent,
|
|
4
4
|
IToolbarEvent,
|
|
5
|
-
|
|
5
|
+
UIActionButtonState,
|
|
6
6
|
ControlVO,
|
|
7
7
|
recursiveIterate,
|
|
8
|
-
|
|
8
|
+
IToolbarController,
|
|
9
|
+
UIActionUtil,
|
|
9
10
|
} from '@ibiz-template/runtime';
|
|
10
11
|
import {
|
|
11
12
|
IDEToolbar,
|
|
@@ -22,13 +23,31 @@ import { ToolbarState } from './toolbar-state';
|
|
|
22
23
|
* @class ToolbarController
|
|
23
24
|
* @extends {ControlController<ToolbarModel>}
|
|
24
25
|
*/
|
|
25
|
-
export class ToolbarController
|
|
26
|
+
export class ToolbarController
|
|
27
|
+
extends ControlController<IDEToolbar>
|
|
28
|
+
implements IToolbarController
|
|
29
|
+
{
|
|
26
30
|
state = new ToolbarState();
|
|
27
31
|
|
|
28
32
|
declare evt: ControllerEvent<IToolbarEvent>;
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
/**
|
|
35
|
+
* 执行按钮的界面行为(如果按钮存在界面行为的话)
|
|
36
|
+
* @author lxm
|
|
37
|
+
* @date 2023-05-10 09:20:35
|
|
38
|
+
* @return {*} {IData[]}
|
|
39
|
+
*/
|
|
40
|
+
protected async doUIAction(item: IDEToolbarItem): Promise<void> {
|
|
41
|
+
// 执行界面行为
|
|
42
|
+
if (item.itemType === 'DEUIACTION') {
|
|
43
|
+
const actionId = (item as IDETBUIActionItem).uiactionId;
|
|
44
|
+
const res = await this.ctx.view.call('GetData');
|
|
45
|
+
const data = res?.data || [];
|
|
46
|
+
await UIActionUtil.exec(actionId!, {
|
|
47
|
+
...this.getEventArgs(),
|
|
48
|
+
data,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
32
51
|
}
|
|
33
52
|
|
|
34
53
|
protected async doCreated(): Promise<void> {
|
|
@@ -42,23 +61,18 @@ export class ToolbarController extends ControlController<IDEToolbar> {
|
|
|
42
61
|
(item: IDEToolbarItem) => {
|
|
43
62
|
if (item.itemType === 'DEUIACTION') {
|
|
44
63
|
const uiItem = item as IDETBUIActionItem;
|
|
45
|
-
const buttonState = new
|
|
64
|
+
const buttonState = new UIActionButtonState(
|
|
46
65
|
uiItem.id!,
|
|
66
|
+
this.context.srfappid!,
|
|
47
67
|
uiItem.uiactionId!,
|
|
48
|
-
// this.model.appEntity,
|
|
49
68
|
);
|
|
50
|
-
// if (
|
|
51
|
-
// ['Edit', 'Remove'].includes(uiItem.getPSUIAction()!.uIActionTag)
|
|
52
|
-
// ) {
|
|
53
|
-
// buttonState.noPermissionMode = 'DISABLED';
|
|
54
|
-
// }
|
|
55
69
|
|
|
56
70
|
this.state.buttonsState.addState(uiItem.id!, buttonState);
|
|
57
71
|
}
|
|
58
72
|
},
|
|
59
73
|
{ childrenFields: ['detoolbarItems'] },
|
|
60
74
|
);
|
|
61
|
-
this.state.buttonsState.update();
|
|
75
|
+
await this.state.buttonsState.update();
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
/**
|
|
@@ -71,42 +85,22 @@ export class ToolbarController extends ControlController<IDEToolbar> {
|
|
|
71
85
|
*/
|
|
72
86
|
async onItemClick(item: IDEToolbarItem, event: MouseEvent): Promise<void> {
|
|
73
87
|
this.state.buttonsState.setLoading(item.id!);
|
|
74
|
-
if (item.itemType === 'DEUIACTION') {
|
|
75
|
-
// 执行界面行为
|
|
76
|
-
const data = this.getData();
|
|
77
|
-
AppDEUIActionUtil.exec(
|
|
78
|
-
(item as IDETBUIActionItem).uiactionId!,
|
|
79
|
-
this.context,
|
|
80
|
-
data,
|
|
81
|
-
this.params,
|
|
82
|
-
{
|
|
83
|
-
event,
|
|
84
|
-
controller: this,
|
|
85
|
-
},
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
88
|
try {
|
|
90
89
|
await this.evt.emit('onClick', {
|
|
91
90
|
event,
|
|
92
91
|
eventArg: item.id!,
|
|
93
92
|
});
|
|
93
|
+
await this.doUIAction(item);
|
|
94
94
|
} finally {
|
|
95
95
|
this.state.buttonsState.setLoading('');
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
* 根据数据计算工具栏权限和状态
|
|
101
|
-
* @author lxm
|
|
102
|
-
* @date 2023-03-28 07:27:34
|
|
103
|
-
* @param {IDatum} data
|
|
104
|
-
*/
|
|
105
|
-
calcButtonState(data: IDatum | undefined): void {
|
|
99
|
+
calcButtonState(data?: IDatum, appDeId?: string): void {
|
|
106
100
|
let _data = data;
|
|
107
101
|
if (data && data instanceof ControlVO) {
|
|
108
102
|
_data = data.getOrigin();
|
|
109
103
|
}
|
|
110
|
-
this.state.buttonsState.update(_data);
|
|
104
|
+
this.state.buttonsState.update(_data, appDeId);
|
|
111
105
|
}
|
|
112
106
|
}
|
package/src/editor/index.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { registerEditorProvider } from '@ibiz-template/runtime';
|
|
1
2
|
import { App } from 'vue';
|
|
2
3
|
import { IBizInput } from './text-box';
|
|
3
4
|
import { TextBoxEditorProvider } from './text-box/text-box-provider';
|
|
4
5
|
|
|
5
6
|
export const IBizEditor = {
|
|
6
7
|
install: (v: App) => {
|
|
7
|
-
const { editor: editorRegister } = ibiz.register;
|
|
8
8
|
v.component(IBizInput.name, IBizInput);
|
|
9
9
|
const textBoxEditorProvider = new TextBoxEditorProvider();
|
|
10
|
-
|
|
10
|
+
registerEditorProvider('TEXTBOX', () => textBoxEditorProvider);
|
|
11
11
|
},
|
|
12
12
|
};
|
|
13
13
|
|
package/src/index.ts
CHANGED
|
@@ -1,57 +1,34 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
AppIcon,
|
|
5
|
-
AppRow,
|
|
6
|
-
AppCol,
|
|
7
|
-
AppUser,
|
|
8
|
-
AppRouterView,
|
|
9
|
-
TabPageExp,
|
|
10
|
-
QuickSearch,
|
|
11
|
-
} from './common';
|
|
2
|
+
import IBizCommonComponents from './common';
|
|
3
|
+
|
|
12
4
|
import { IBizAppMenu, IBizGrid, IBizToolbar, IBizPanel } from './control';
|
|
13
5
|
import { IBizForm, IBizSearchForm } from './control/form';
|
|
14
6
|
import IBizEditor from './editor';
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
ViewBase,
|
|
19
|
-
MDViewBase,
|
|
20
|
-
ControlLayout,
|
|
21
|
-
ControlBase,
|
|
22
|
-
} from './layout';
|
|
23
|
-
import { IBizIndexView, IBizView, IBizGridView } from './views';
|
|
7
|
+
import IBizPanelComponents from './panel-component';
|
|
8
|
+
import { IBizView } from './view';
|
|
9
|
+
import { IBizViewEngine } from './view-engine';
|
|
24
10
|
|
|
25
|
-
export * from './layout';
|
|
26
|
-
export * from './views';
|
|
27
11
|
export * from './control';
|
|
28
12
|
export * from './common';
|
|
13
|
+
export * from './panel-component';
|
|
14
|
+
export * from './editor';
|
|
15
|
+
export * from './view';
|
|
16
|
+
export * from './view-engine';
|
|
29
17
|
|
|
30
18
|
export default {
|
|
31
19
|
install: (v: App) => {
|
|
32
|
-
v.use(
|
|
20
|
+
v.use(IBizCommonComponents);
|
|
21
|
+
v.use(IBizPanelComponents);
|
|
22
|
+
v.use(IBizViewEngine);
|
|
33
23
|
v.use(IBizView);
|
|
24
|
+
// 部件
|
|
34
25
|
v.use(IBizAppMenu);
|
|
35
|
-
v.use(IBizGridView);
|
|
36
26
|
v.use(IBizGrid);
|
|
37
27
|
v.use(IBizToolbar);
|
|
38
28
|
v.use(IBizPanel);
|
|
39
29
|
v.use(IBizForm);
|
|
40
30
|
v.use(IBizSearchForm);
|
|
31
|
+
// 编辑器
|
|
41
32
|
v.use(IBizEditor);
|
|
42
|
-
v.component('AppLayout', AppLayout);
|
|
43
|
-
v.component('ViewLayout', ViewLayout);
|
|
44
|
-
v.component('ViewBase', ViewBase);
|
|
45
|
-
v.component('MdViewBase', MDViewBase);
|
|
46
|
-
v.component('ControlLayout', ControlLayout);
|
|
47
|
-
v.component('ControlBase', ControlBase);
|
|
48
|
-
v.component('AppKeepAlive', AppKeepAlive);
|
|
49
|
-
v.component('AppIcon', AppIcon);
|
|
50
|
-
v.component('AppRow', AppRow);
|
|
51
|
-
v.component('AppCol', AppCol);
|
|
52
|
-
v.component('AppUser', AppUser);
|
|
53
|
-
v.component('AppRouterView', AppRouterView);
|
|
54
|
-
v.component('TabPageExp', TabPageExp);
|
|
55
|
-
v.component('QuickSearch', QuickSearch);
|
|
56
33
|
},
|
|
57
34
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelController, PanelItemController } from '../../control';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 用户信息适配器
|
|
7
|
+
*
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2022-09-19 22:09:03
|
|
10
|
+
* @export
|
|
11
|
+
* @class AuthUserinfoProvider
|
|
12
|
+
* @implements {EditorProvider}
|
|
13
|
+
*/
|
|
14
|
+
export class AuthUserinfoProvider implements IPanelItemProvider {
|
|
15
|
+
component: string = 'AuthUserinfo';
|
|
16
|
+
|
|
17
|
+
async createController(
|
|
18
|
+
panelItem: IPanelItem,
|
|
19
|
+
panel: PanelController,
|
|
20
|
+
parent: PanelItemController | undefined,
|
|
21
|
+
): Promise<PanelItemController> {
|
|
22
|
+
const c = new PanelItemController(panelItem, panel, parent);
|
|
23
|
+
await c.init();
|
|
24
|
+
return c;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@include b(auth-userinfo) {
|
|
2
|
+
margin-right: 25px;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@include b(auth-userinfo-avatar) {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
@include e(name) {
|
|
10
|
+
margin-left: 12px;
|
|
11
|
+
color: #fff;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include b(auth-userinfo-avatar-wrapper) {
|
|
16
|
+
@include flex-center;
|
|
17
|
+
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
width: auto;
|
|
20
|
+
height: 64px;
|
|
21
|
+
padding: 0 12px;
|
|
22
|
+
text-align: center;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition: all 0.2s ease-in-out;
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background: hsl(0deg 0% 100% / 5%);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include b(auth-userinfo-avater__icon){
|
|
32
|
+
margin: top 2px;
|
|
33
|
+
margin-right: 6px;
|
|
34
|
+
}
|
package/src/{common/app-user/app-user.tsx → panel-component/auth-userinfo/auth-userinfo.tsx}
RENAMED
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import { defineComponent } from 'vue';
|
|
1
|
+
import { defineComponent, PropType } from 'vue';
|
|
2
2
|
import { useRouter } from 'vue-router';
|
|
3
3
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
-
import './
|
|
4
|
+
import './auth-userinfo.scss';
|
|
5
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
6
|
+
import { PanelItemController } from '../../control';
|
|
5
7
|
|
|
6
|
-
export const
|
|
7
|
-
name: '
|
|
8
|
+
export const AuthUserinfo = defineComponent({
|
|
9
|
+
name: 'AuthUserinfo',
|
|
10
|
+
props: {
|
|
11
|
+
modelData: {
|
|
12
|
+
type: Object as PropType<IPanelRawItem>,
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
controller: {
|
|
16
|
+
type: PanelItemController,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
8
20
|
setup() {
|
|
9
|
-
const ns = useNamespace('
|
|
21
|
+
const ns = useNamespace('auth-userinfo');
|
|
10
22
|
const { srfusername = '游客' } = ibiz.appData?.context || {};
|
|
11
23
|
const router = useRouter();
|
|
12
24
|
return { ns, srfusername, router };
|
|
@@ -28,7 +40,7 @@ export const AppUser = defineComponent({
|
|
|
28
40
|
},
|
|
29
41
|
render() {
|
|
30
42
|
return (
|
|
31
|
-
<div class={this.ns.b()}>
|
|
43
|
+
<div class={[this.ns.b(), this.ns.m(this.modelData.id)]}>
|
|
32
44
|
<el-dropdown class={this.ns.b('avatar')}>
|
|
33
45
|
{{
|
|
34
46
|
default: () => (
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { App } from 'vue';
|
|
4
|
+
import { AuthUserinfo } from './auth-userinfo';
|
|
5
|
+
import { AuthUserinfoProvider } from './auth-userinfo-provider';
|
|
6
|
+
|
|
7
|
+
export { AuthUserinfo, AuthUserinfoProvider };
|
|
8
|
+
|
|
9
|
+
export const IBizAuthUserinfo = withInstall(AuthUserinfo, function (v: App) {
|
|
10
|
+
v.component(AuthUserinfo.name, AuthUserinfo);
|
|
11
|
+
registerPanelItemProvider(
|
|
12
|
+
'RAWITEM_AUTH_USERINFO',
|
|
13
|
+
() => new AuthUserinfoProvider(),
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export default IBizAuthUserinfo;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import IBizAuthUserinfo from './auth-userinfo';
|
|
3
|
+
import IBizNavPos from './nav-pos';
|
|
4
|
+
import IBizNavTabs from './nav-tabs';
|
|
5
|
+
import IBizPanelContainer from './panel-container';
|
|
6
|
+
import IBizPanelCtrlPos from './panel-ctrl-pos';
|
|
7
|
+
import IBizScrollContainer from './scroll-container';
|
|
8
|
+
|
|
9
|
+
export * from './panel-container';
|
|
10
|
+
export * from './panel-ctrl-pos';
|
|
11
|
+
export * from './scroll-container';
|
|
12
|
+
export * from './auth-userinfo';
|
|
13
|
+
export * from './nav-pos';
|
|
14
|
+
|
|
15
|
+
export const IBizPanelComponents = {
|
|
16
|
+
install: (v: App) => {
|
|
17
|
+
v.use(IBizPanelContainer);
|
|
18
|
+
v.use(IBizPanelCtrlPos);
|
|
19
|
+
v.use(IBizScrollContainer);
|
|
20
|
+
v.use(IBizAuthUserinfo);
|
|
21
|
+
v.use(IBizNavPos);
|
|
22
|
+
v.use(IBizNavTabs);
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default IBizPanelComponents;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { App } from 'vue';
|
|
4
|
+
import { NavPos } from './nav-pos';
|
|
5
|
+
import { NavPosProvider } from './nav-pos-provider';
|
|
6
|
+
import { NavPosState } from './nav-pos-state';
|
|
7
|
+
import { NavPosController } from './nav-pos.controller';
|
|
8
|
+
|
|
9
|
+
export { NavPos, NavPosProvider, NavPosState, NavPosController };
|
|
10
|
+
|
|
11
|
+
export const IBizNavPos = withInstall(NavPos, function (v: App) {
|
|
12
|
+
v.component(NavPos.name, NavPos);
|
|
13
|
+
registerPanelItemProvider('RAWITEM_NAV_POS', () => new NavPosProvider());
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export default IBizNavPos;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelController, PanelItemController } from '../../control';
|
|
4
|
+
import { NavPosController } from './nav-pos.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 导航占位适配器
|
|
8
|
+
*
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2022-09-19 22:09:03
|
|
11
|
+
* @export
|
|
12
|
+
* @class NavPosProvider
|
|
13
|
+
* @implements {EditorProvider}
|
|
14
|
+
*/
|
|
15
|
+
export class NavPosProvider implements IPanelItemProvider {
|
|
16
|
+
component: string = 'NavPos';
|
|
17
|
+
|
|
18
|
+
async createController(
|
|
19
|
+
panelItem: IPanelItem,
|
|
20
|
+
panel: PanelController,
|
|
21
|
+
parent: PanelItemController | undefined,
|
|
22
|
+
): Promise<NavPosController> {
|
|
23
|
+
const c = new NavPosController(panelItem, panel, parent);
|
|
24
|
+
await c.init();
|
|
25
|
+
return c;
|
|
26
|
+
}
|
|
27
|
+
}
|