@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,6 +1,5 @@
|
|
|
1
1
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
2
|
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
-
import { kebabCase } from 'lodash-es';
|
|
4
3
|
import { computed, defineComponent, PropType, ref, VNode } from 'vue';
|
|
5
4
|
import { PanelContainerController } from './panel-container.controller';
|
|
6
5
|
import './panel-container.scss';
|
|
@@ -19,8 +18,7 @@ export const PanelContainer = defineComponent({
|
|
|
19
18
|
},
|
|
20
19
|
setup(props) {
|
|
21
20
|
const ns = useNamespace('panel-container');
|
|
22
|
-
const { showCaption, titleBarCloseMode,
|
|
23
|
-
const modelClass = kebabCase(codeName);
|
|
21
|
+
const { showCaption, titleBarCloseMode, id } = props.modelData;
|
|
24
22
|
const collapsible = titleBarCloseMode !== 0;
|
|
25
23
|
const isCollapse = ref(titleBarCloseMode === 2);
|
|
26
24
|
const changeCollapse = () => {
|
|
@@ -31,7 +29,7 @@ export const PanelContainer = defineComponent({
|
|
|
31
29
|
|
|
32
30
|
// 类名控制
|
|
33
31
|
const classArr = computed(() => {
|
|
34
|
-
let result: Array<string | false> = [ns.b(), ns.m(
|
|
32
|
+
let result: Array<string | false> = [ns.b(), ns.m(id)];
|
|
35
33
|
if (showCaption === true) {
|
|
36
34
|
result = [
|
|
37
35
|
...result,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { withInstall } from '
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
3
4
|
import { PanelCtrlPos } from './panel-ctrl-pos';
|
|
4
5
|
import { PanelCtrlPosProvider } from './panel-ctrl-pos-provider';
|
|
5
6
|
import { PanelCtrlPosController } from './panel-ctrl-pos.controller';
|
|
@@ -7,7 +8,7 @@ import { PanelCtrlPosController } from './panel-ctrl-pos.controller';
|
|
|
7
8
|
export { PanelCtrlPosProvider, PanelCtrlPos, PanelCtrlPosController };
|
|
8
9
|
export const IBizPanelCtrlPos = withInstall(PanelCtrlPos, function (v: App) {
|
|
9
10
|
v.component(PanelCtrlPos.name, PanelCtrlPos);
|
|
10
|
-
|
|
11
|
+
registerPanelItemProvider('CTRLPOS', () => new PanelCtrlPosProvider());
|
|
11
12
|
});
|
|
12
13
|
|
|
13
14
|
export default IBizPanelCtrlPos;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
2
|
import { IPanelCtrlPos } from '@ibiz/model-core';
|
|
3
|
-
import { PanelItemController } from '
|
|
4
|
-
import { PanelController } from '../panel/panel.controller';
|
|
3
|
+
import { PanelController, PanelItemController } from '../../control';
|
|
5
4
|
import { PanelCtrlPosController } from './panel-ctrl-pos.controller';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -20,7 +19,7 @@ export class PanelCtrlPosProvider implements IPanelItemProvider {
|
|
|
20
19
|
panelItem: IPanelCtrlPos,
|
|
21
20
|
panel: PanelController,
|
|
22
21
|
parent: PanelItemController | undefined,
|
|
23
|
-
): Promise<
|
|
22
|
+
): Promise<PanelCtrlPosController> {
|
|
24
23
|
const c = new PanelCtrlPosController(panelItem, panel, parent);
|
|
25
24
|
await c.init();
|
|
26
25
|
return c;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IPanelCtrlPos } from '@ibiz/model-core';
|
|
2
|
-
import { PanelItemController } from '
|
|
3
|
-
import { ViewLayoutPanelController } from '../view-layout-panel/view-layout-panel.controller';
|
|
2
|
+
import { PanelItemController, ViewLayoutPanelController } from '../../control';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* 面板控件占位控制器
|
|
@@ -2,6 +2,7 @@ import { useNamespace } from '@ibiz-template/vue3-util';
|
|
|
2
2
|
import { IPanelCtrlPos } from '@ibiz/model-core';
|
|
3
3
|
import { defineComponent, PropType, VNode } from 'vue';
|
|
4
4
|
import { PanelCtrlPosController } from './panel-ctrl-pos.controller';
|
|
5
|
+
import './panel-ctrl-pos.scss';
|
|
5
6
|
|
|
6
7
|
export const PanelCtrlPos = defineComponent({
|
|
7
8
|
name: 'PanelCtrlPos',
|
|
@@ -31,8 +32,8 @@ export const PanelCtrlPos = defineComponent({
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
return (
|
|
34
|
-
<div class={[this.ns.b()]}>
|
|
35
|
-
{content ||
|
|
35
|
+
<div class={[this.ns.b(), this.ns.m(this.modelData.id)]}>
|
|
36
|
+
{content || `未提供${this.modelData.id}插槽`}
|
|
36
37
|
</div>
|
|
37
38
|
);
|
|
38
39
|
},
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { App } from 'vue';
|
|
4
|
+
import { ScrollContainerItem } from './scroll-container-item/scroll-container-item';
|
|
5
|
+
import { ScrollContainerItemProvider } from './scroll-container-item/scroll-container-item-provider';
|
|
6
|
+
import { ScrollContainer } from './scroll-container/scroll-container';
|
|
7
|
+
import { ScrollContainerProvider } from './scroll-container/scroll-container-provider';
|
|
8
|
+
|
|
9
|
+
export * from './scroll-container';
|
|
10
|
+
export * from './scroll-container-item';
|
|
11
|
+
|
|
12
|
+
export const IBizScrollContainer = withInstall(
|
|
13
|
+
ScrollContainer,
|
|
14
|
+
function (v: App) {
|
|
15
|
+
v.component(ScrollContainer.name, ScrollContainer);
|
|
16
|
+
v.component(ScrollContainerItem.name, ScrollContainerItem);
|
|
17
|
+
registerPanelItemProvider(
|
|
18
|
+
'CONTAINER_BORDER',
|
|
19
|
+
() => new ScrollContainerProvider(),
|
|
20
|
+
);
|
|
21
|
+
registerPanelItemProvider(
|
|
22
|
+
'CONTAINER_BORDER_WEST',
|
|
23
|
+
() => new ScrollContainerItemProvider(),
|
|
24
|
+
);
|
|
25
|
+
registerPanelItemProvider(
|
|
26
|
+
'CONTAINER_BORDER_NORTH',
|
|
27
|
+
() => new ScrollContainerItemProvider(),
|
|
28
|
+
);
|
|
29
|
+
registerPanelItemProvider(
|
|
30
|
+
'CONTAINER_BORDER_EAST',
|
|
31
|
+
() => new ScrollContainerItemProvider(),
|
|
32
|
+
);
|
|
33
|
+
registerPanelItemProvider(
|
|
34
|
+
'CONTAINER_BORDER_SOUTH',
|
|
35
|
+
() => new ScrollContainerItemProvider(),
|
|
36
|
+
);
|
|
37
|
+
registerPanelItemProvider(
|
|
38
|
+
'CONTAINER_BORDER_CENTER',
|
|
39
|
+
() => new ScrollContainerItemProvider(),
|
|
40
|
+
);
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export default IBizScrollContainer;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
+
import { PanelController, PanelItemController } from '../../../control';
|
|
4
|
+
import { ScrollContainerController } from './scroll-container.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 面板滚动条容器适配器
|
|
8
|
+
*
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2022-09-19 22:09:03
|
|
11
|
+
* @export
|
|
12
|
+
* @class ScrollContainerProvider
|
|
13
|
+
* @implements {EditorProvider}
|
|
14
|
+
*/
|
|
15
|
+
export class ScrollContainerProvider implements IPanelItemProvider {
|
|
16
|
+
component: string = 'ScrollContainer';
|
|
17
|
+
|
|
18
|
+
async createController(
|
|
19
|
+
panelItem: IPanelContainer,
|
|
20
|
+
panel: PanelController,
|
|
21
|
+
parent: PanelItemController | undefined,
|
|
22
|
+
): Promise<ScrollContainerController> {
|
|
23
|
+
const c = new ScrollContainerController(panelItem, panel, parent);
|
|
24
|
+
await c.init();
|
|
25
|
+
return c;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
+
import {
|
|
3
|
+
PanelItemController,
|
|
4
|
+
ViewLayoutPanelController,
|
|
5
|
+
} from '../../../control';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 面板滚动容器控制器
|
|
9
|
+
*
|
|
10
|
+
* @author lxm
|
|
11
|
+
* @date 2023-02-07 06:05:23
|
|
12
|
+
* @export
|
|
13
|
+
* @class PanelButtonController
|
|
14
|
+
* @extends {PanelItemController}
|
|
15
|
+
*/
|
|
16
|
+
export class ScrollContainerController extends PanelItemController<IPanelContainer> {
|
|
17
|
+
/**
|
|
18
|
+
* 面板控制器
|
|
19
|
+
*
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2022-08-24 22:08:59
|
|
22
|
+
* @type {PanelController}
|
|
23
|
+
*/
|
|
24
|
+
declare panel: ViewLayoutPanelController;
|
|
25
|
+
|
|
26
|
+
protected async onInit(): Promise<void> {
|
|
27
|
+
await super.onInit();
|
|
28
|
+
// 滚动容器高宽默认占满
|
|
29
|
+
this.state.layoutController.width = '100%';
|
|
30
|
+
this.state.layoutController.height = '100%';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@include b(scroll-container) {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
@include flex(column);
|
|
5
|
+
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@include b(scroll-container-content){
|
|
9
|
+
flex-grow: 1;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
@include flex();
|
|
12
|
+
@include e(center){
|
|
13
|
+
overflow: auto;
|
|
14
|
+
flex-grow: 1;
|
|
15
|
+
}
|
|
16
|
+
@include e(left) {
|
|
17
|
+
overflow: auto;
|
|
18
|
+
}
|
|
19
|
+
@include e(right) {
|
|
20
|
+
overflow: auto;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include b(scroll-container-header){
|
|
25
|
+
overflow: auto;
|
|
26
|
+
}
|
|
27
|
+
@include b(scroll-container-footer){
|
|
28
|
+
overflow: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* eslint-disable no-restricted-syntax */
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
4
|
+
import { computed, defineComponent, PropType, VNode } from 'vue';
|
|
5
|
+
import { ScrollContainerController } from './scroll-container.controller';
|
|
6
|
+
import './scroll-container.scss';
|
|
7
|
+
|
|
8
|
+
export const ScrollContainer = defineComponent({
|
|
9
|
+
name: 'ScrollContainer',
|
|
10
|
+
props: {
|
|
11
|
+
modelData: {
|
|
12
|
+
type: Object as PropType<IPanelContainer>,
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
controller: {
|
|
16
|
+
type: ScrollContainerController,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
setup(props) {
|
|
21
|
+
const ns = useNamespace('scroll-container');
|
|
22
|
+
const { id } = props.modelData;
|
|
23
|
+
|
|
24
|
+
// 类名控制
|
|
25
|
+
const classArr = computed(() => {
|
|
26
|
+
const result: Array<string | false> = [ns.b(), ns.m(id)];
|
|
27
|
+
return result;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
return { ns, classArr };
|
|
31
|
+
},
|
|
32
|
+
render() {
|
|
33
|
+
if (!this.controller.state.visible) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
let left: VNode | null = null;
|
|
37
|
+
let top: VNode | null = null;
|
|
38
|
+
let right: VNode | null = null;
|
|
39
|
+
let bottom: VNode | null = null;
|
|
40
|
+
let center: VNode | null = null;
|
|
41
|
+
|
|
42
|
+
const slotStylle: IData = {};
|
|
43
|
+
|
|
44
|
+
// 内容区默认插槽处理,处理滚动容器项
|
|
45
|
+
const defaultSlots: VNode[] = this.$slots.default?.() || [];
|
|
46
|
+
defaultSlots.forEach(slot => {
|
|
47
|
+
const props = slot.props as IData;
|
|
48
|
+
if (!props || !props.controller) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const layoutController = props.controller.state.layoutController;
|
|
53
|
+
switch (props.modelData.layoutPos.layoutPos) {
|
|
54
|
+
case 'WEST':
|
|
55
|
+
left = slot;
|
|
56
|
+
slotStylle.left = { width: layoutController.width };
|
|
57
|
+
break;
|
|
58
|
+
case 'EAST':
|
|
59
|
+
right = slot;
|
|
60
|
+
slotStylle.right = { width: layoutController.width };
|
|
61
|
+
break;
|
|
62
|
+
case 'NORTH':
|
|
63
|
+
top = slot;
|
|
64
|
+
slotStylle.top = { height: layoutController.height };
|
|
65
|
+
break;
|
|
66
|
+
case 'SOUTH':
|
|
67
|
+
bottom = slot;
|
|
68
|
+
slotStylle.bottom = { height: layoutController.height };
|
|
69
|
+
break;
|
|
70
|
+
case 'CENTER':
|
|
71
|
+
center = slot;
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
ibiz.log.debug(
|
|
75
|
+
`未适配的布局占位${props.modelData.layoutPos.layoutPos}`,
|
|
76
|
+
);
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// 如果配了高宽,默认给压缩比为0
|
|
82
|
+
for (const key in slotStylle) {
|
|
83
|
+
if (slotStylle[key].width || slotStylle[key].height) {
|
|
84
|
+
slotStylle[key].flexShrink = 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<div class={this.classArr}>
|
|
90
|
+
<div class={[this.ns.e('header')]} style={slotStylle.top}>
|
|
91
|
+
{top}
|
|
92
|
+
</div>
|
|
93
|
+
<div class={[this.ns.b('content')]}>
|
|
94
|
+
<div class={this.ns.be('content', 'left')} style={slotStylle.left}>
|
|
95
|
+
{left}
|
|
96
|
+
</div>
|
|
97
|
+
<div class={this.ns.be('content', 'center')}>{center}</div>
|
|
98
|
+
<div class={this.ns.be('content', 'right')} style={slotStylle.right}>
|
|
99
|
+
{right}
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
<div class={[this.ns.e('footer')]} style={slotStylle.bottom}>
|
|
103
|
+
{bottom}
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
},
|
|
108
|
+
});
|
package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
+
import { PanelController, PanelItemController } from '../../../control';
|
|
4
|
+
import { ScrollContainerItemController } from './scroll-container-item.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 面板滚动条容器项适配器
|
|
8
|
+
*
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2022-09-19 22:09:03
|
|
11
|
+
* @export
|
|
12
|
+
* @class ScrollContainerItemProvider
|
|
13
|
+
* @implements {EditorProvider}
|
|
14
|
+
*/
|
|
15
|
+
export class ScrollContainerItemProvider implements IPanelItemProvider {
|
|
16
|
+
component: string = 'ScrollContainerItem';
|
|
17
|
+
|
|
18
|
+
async createController(
|
|
19
|
+
panelItem: IPanelContainer,
|
|
20
|
+
panel: PanelController,
|
|
21
|
+
parent: PanelItemController | undefined,
|
|
22
|
+
): Promise<ScrollContainerItemController> {
|
|
23
|
+
const c = new ScrollContainerItemController(panelItem, panel, parent);
|
|
24
|
+
await c.init();
|
|
25
|
+
return c;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
+
import {
|
|
3
|
+
PanelItemController,
|
|
4
|
+
ViewLayoutPanelController,
|
|
5
|
+
} from '../../../control';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 面板滚动容器项控制器
|
|
9
|
+
*
|
|
10
|
+
* @author lxm
|
|
11
|
+
* @date 2023-02-07 06:05:23
|
|
12
|
+
* @export
|
|
13
|
+
* @class PanelButtonController
|
|
14
|
+
* @extends {PanelItemController}
|
|
15
|
+
*/
|
|
16
|
+
export class ScrollContainerItemController extends PanelItemController<IPanelContainer> {
|
|
17
|
+
/**
|
|
18
|
+
* 面板控制器
|
|
19
|
+
*
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2022-08-24 22:08:59
|
|
22
|
+
* @type {PanelController}
|
|
23
|
+
*/
|
|
24
|
+
declare panel: ViewLayoutPanelController;
|
|
25
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
+
import { computed, defineComponent, PropType, VNode } from 'vue';
|
|
4
|
+
import { ScrollContainerItemController } from './scroll-container-item.controller';
|
|
5
|
+
import './scroll-container-item.scss';
|
|
6
|
+
|
|
7
|
+
export const ScrollContainerItem = defineComponent({
|
|
8
|
+
name: 'ScrollContainerItem',
|
|
9
|
+
props: {
|
|
10
|
+
modelData: {
|
|
11
|
+
type: Object as PropType<IPanelContainer>,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
controller: {
|
|
15
|
+
type: ScrollContainerItemController,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
setup(props) {
|
|
20
|
+
const ns = useNamespace('scroll-container-item');
|
|
21
|
+
const { id } = props.modelData;
|
|
22
|
+
|
|
23
|
+
// 类名控制
|
|
24
|
+
const classArr = computed(() => {
|
|
25
|
+
const result: Array<string | false> = [ns.b(), ns.m(id)];
|
|
26
|
+
return result;
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
return { ns, classArr };
|
|
30
|
+
},
|
|
31
|
+
render() {
|
|
32
|
+
if (!this.controller.state.visible) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
// 内容区默认插槽处理,封装app-col
|
|
36
|
+
const defaultSlots: VNode[] = this.$slots.default?.() || [];
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<app-row class={this.classArr} layout={{ layout: 'FLEX' }}>
|
|
40
|
+
{defaultSlots.map(slot => {
|
|
41
|
+
const props = slot.props as IData;
|
|
42
|
+
if (!props || !props.controller) {
|
|
43
|
+
return slot;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
props.modelData.layoutPos.layout = 'FLEX';
|
|
47
|
+
return (
|
|
48
|
+
<app-col
|
|
49
|
+
layoutPos={props.modelData.layoutPos}
|
|
50
|
+
controller={props.controller.state.layoutController}
|
|
51
|
+
>
|
|
52
|
+
{slot}
|
|
53
|
+
</app-col>
|
|
54
|
+
);
|
|
55
|
+
})}
|
|
56
|
+
</app-row>
|
|
57
|
+
);
|
|
58
|
+
},
|
|
59
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { IModal, ViewController } from '@ibiz-template/runtime';
|
|
2
|
+
import { useNamespace, useViewController } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { IAppView } from '@ibiz/model-core';
|
|
4
|
+
import { defineComponent, h, PropType, resolveComponent } from 'vue';
|
|
5
|
+
import './ibiz-view.scss';
|
|
6
|
+
|
|
7
|
+
export const IBizView = defineComponent({
|
|
8
|
+
name: 'IBizView',
|
|
9
|
+
props: {
|
|
10
|
+
context: Object as PropType<IContext>,
|
|
11
|
+
params: { type: Object as PropType<IParams>, default: () => ({}) },
|
|
12
|
+
modelData: { type: Object as PropType<IAppView>, required: true },
|
|
13
|
+
modal: { type: Object as PropType<IModal> },
|
|
14
|
+
},
|
|
15
|
+
setup() {
|
|
16
|
+
const ns = useNamespace('view');
|
|
17
|
+
const c = useViewController((...args) => new ViewController(...args));
|
|
18
|
+
// 视图部件模型在viewlayoutPanel里面。
|
|
19
|
+
const controls = c.model.viewLayoutPanel?.controls;
|
|
20
|
+
|
|
21
|
+
const { viewType, sysCss, codeName } = c.model;
|
|
22
|
+
const typeClass = viewType!.toLowerCase();
|
|
23
|
+
const sysCssName = sysCss?.cssName;
|
|
24
|
+
const viewClassNames = [
|
|
25
|
+
ns.b(),
|
|
26
|
+
true && ns.b(typeClass),
|
|
27
|
+
true && ns.m(codeName),
|
|
28
|
+
true && sysCssName,
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
return { c, controls, viewClassNames };
|
|
32
|
+
},
|
|
33
|
+
render() {
|
|
34
|
+
let layoutPanel = null;
|
|
35
|
+
if (this.c.state.complete) {
|
|
36
|
+
// 绘制部件插槽,外部插槽优先
|
|
37
|
+
const slots: IData = {
|
|
38
|
+
...this.$slots,
|
|
39
|
+
};
|
|
40
|
+
if (this.controls?.length) {
|
|
41
|
+
this.controls.forEach(ctrl => {
|
|
42
|
+
// 已经有插槽的不用自己绘制了。
|
|
43
|
+
if (slots[ctrl.name!]) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const provider = this.c.providers[ctrl.name!];
|
|
47
|
+
if (provider) {
|
|
48
|
+
slots[ctrl.name!] = () => {
|
|
49
|
+
return h(resolveComponent(provider.component) as string, {
|
|
50
|
+
modelData: ctrl,
|
|
51
|
+
context: this.c.context,
|
|
52
|
+
params: this.params,
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// 绘制视图布局面板
|
|
60
|
+
const viewLayoutPanel = this.c.model.viewLayoutPanel!;
|
|
61
|
+
const provider = this.c.providers[viewLayoutPanel.name!];
|
|
62
|
+
layoutPanel = h(
|
|
63
|
+
resolveComponent(provider.component) as string,
|
|
64
|
+
{
|
|
65
|
+
modelData: viewLayoutPanel,
|
|
66
|
+
context: this.c.context,
|
|
67
|
+
params: this.params,
|
|
68
|
+
},
|
|
69
|
+
slots,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return <div class={this.viewClassNames}>{layoutPanel}</div>;
|
|
74
|
+
},
|
|
75
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { registerViewProvider } from '@ibiz-template/runtime';
|
|
4
4
|
import { ViewProvider } from './view-provider';
|
|
5
5
|
import { IBizView as View } from './ibiz-view';
|
|
6
6
|
|
|
@@ -8,5 +8,5 @@ export { ViewProvider };
|
|
|
8
8
|
|
|
9
9
|
export const IBizView = withInstall(View, function (v: App) {
|
|
10
10
|
v.component(IBizView.name, IBizView);
|
|
11
|
-
|
|
11
|
+
registerViewProvider('DEFAULT', () => new ViewProvider());
|
|
12
12
|
});
|