@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,147 +0,0 @@
|
|
|
1
|
-
import { ViewController } from '@ibiz-template/runtime';
|
|
2
|
-
import { EmptyVNode, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { kebabCase } from 'lodash-es';
|
|
4
|
-
import { defineComponent, PropType } from 'vue';
|
|
5
|
-
import './view-base.scss';
|
|
6
|
-
|
|
7
|
-
export const ViewBase = defineComponent({
|
|
8
|
-
props: {
|
|
9
|
-
controller: {
|
|
10
|
-
type: Object as PropType<ViewController>,
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
setup(props) {
|
|
15
|
-
const ns = useNamespace('view');
|
|
16
|
-
const { viewType, sysCss, codeName } = props.controller.model;
|
|
17
|
-
const typeClass = viewType!.toLowerCase();
|
|
18
|
-
const sysCssName = sysCss?.cssName;
|
|
19
|
-
const modelClass = kebabCase(codeName);
|
|
20
|
-
|
|
21
|
-
return { ns, typeClass, sysCssName, modelClass };
|
|
22
|
-
},
|
|
23
|
-
render() {
|
|
24
|
-
const c = this.controller;
|
|
25
|
-
const state = c.state;
|
|
26
|
-
|
|
27
|
-
const viewClassNames = [
|
|
28
|
-
this.ns.b(),
|
|
29
|
-
true && this.ns.b(this.typeClass),
|
|
30
|
-
true && this.ns.m(this.modelClass),
|
|
31
|
-
true && this.sysCssName,
|
|
32
|
-
];
|
|
33
|
-
|
|
34
|
-
// 默认插槽
|
|
35
|
-
const inheritSlots: IData = {
|
|
36
|
-
caption: () => {
|
|
37
|
-
return (
|
|
38
|
-
<div class={this.ns.b('caption')}>
|
|
39
|
-
{true && c.model.sysImage ? (
|
|
40
|
-
[
|
|
41
|
-
<app-icon
|
|
42
|
-
class={this.ns.be('caption', 'icon')}
|
|
43
|
-
icon={c.model.sysImage}
|
|
44
|
-
></app-icon>,
|
|
45
|
-
<span
|
|
46
|
-
class={this.ns.be('caption', 'text')}
|
|
47
|
-
title={state.caption}
|
|
48
|
-
>
|
|
49
|
-
{state.caption}
|
|
50
|
-
</span>,
|
|
51
|
-
]
|
|
52
|
-
) : (
|
|
53
|
-
<span class={this.ns.be('caption', 'text')} title={state.caption}>
|
|
54
|
-
{state.caption}
|
|
55
|
-
</span>
|
|
56
|
-
)}
|
|
57
|
-
</div>
|
|
58
|
-
);
|
|
59
|
-
},
|
|
60
|
-
toolbar: ({ onNeuronInit }: IParams) => {
|
|
61
|
-
const toolbar = c.model.controls?.find(item => item.name === 'toolbar');
|
|
62
|
-
if (true && toolbar) {
|
|
63
|
-
// 合并面板和视图的神经元初始化
|
|
64
|
-
// const oldOnNeuronInit = c.nerve.onNeuronInit(toolbar.name!);
|
|
65
|
-
// const handleNeuronInit = (neuron: Neuron) => {
|
|
66
|
-
// oldOnNeuronInit(neuron);
|
|
67
|
-
// if (onNeuronInit) {
|
|
68
|
-
// onNeuronInit(neuron);
|
|
69
|
-
// }
|
|
70
|
-
// };
|
|
71
|
-
return (
|
|
72
|
-
<control-shell
|
|
73
|
-
modelData={toolbar}
|
|
74
|
-
context={c.context}
|
|
75
|
-
params={c.params}
|
|
76
|
-
// onNeuronInit={handleNeuronInit}
|
|
77
|
-
viewMode={c.modal.mode}
|
|
78
|
-
></control-shell>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
return EmptyVNode;
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
// 外面的插槽同样传给view-layout
|
|
85
|
-
Object.keys(this.$slots).forEach(key => {
|
|
86
|
-
inheritSlots[key] = (arg: IData) => this.$slots[key]!(arg);
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
// * 适配视图布局面板和默认布局
|
|
90
|
-
if (true) {
|
|
91
|
-
// 非默认布局的情况下使用视图布局面板
|
|
92
|
-
// if (!c.model.useDefaultLayout) {
|
|
93
|
-
// const provider = c.providers.viewLayoutPanel;
|
|
94
|
-
// const component = resolveComponent(
|
|
95
|
-
// provider.component,
|
|
96
|
-
// ) as ConcreteComponent;
|
|
97
|
-
// const ViewLayoutPanel = h(
|
|
98
|
-
// component,
|
|
99
|
-
// {
|
|
100
|
-
// modelData: c.model.viewLayoutPanel,
|
|
101
|
-
// context: c.context,
|
|
102
|
-
// params: c.params,
|
|
103
|
-
// viewController: c,
|
|
104
|
-
// onNeuronInit: c.nerve.onNeuronInit('viewLayoutPanel'),
|
|
105
|
-
// },
|
|
106
|
-
// inheritSlots,
|
|
107
|
-
// );
|
|
108
|
-
// return (
|
|
109
|
-
// <div v-loading={state.isLoading} class={viewClassNames}>
|
|
110
|
-
// {ViewLayoutPanel}
|
|
111
|
-
// </div>
|
|
112
|
-
// );
|
|
113
|
-
// }
|
|
114
|
-
|
|
115
|
-
// 默认布局,主要部件改成默认插槽传给view-layout
|
|
116
|
-
[
|
|
117
|
-
'form',
|
|
118
|
-
'grid',
|
|
119
|
-
'list',
|
|
120
|
-
'kanban',
|
|
121
|
-
'dataview',
|
|
122
|
-
'drtab',
|
|
123
|
-
'dashboard',
|
|
124
|
-
'wizardpanel',
|
|
125
|
-
].find(key => {
|
|
126
|
-
if (inheritSlots[key]) {
|
|
127
|
-
inheritSlots.default = inheritSlots[key];
|
|
128
|
-
delete inheritSlots[key];
|
|
129
|
-
return true;
|
|
130
|
-
}
|
|
131
|
-
return false;
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return (
|
|
136
|
-
<view-layout
|
|
137
|
-
class={viewClassNames}
|
|
138
|
-
isComplete={true}
|
|
139
|
-
modelData={c.model}
|
|
140
|
-
viewMode={c.modal.mode}
|
|
141
|
-
isLoading={state.isLoading}
|
|
142
|
-
>
|
|
143
|
-
{inheritSlots}
|
|
144
|
-
</view-layout>
|
|
145
|
-
);
|
|
146
|
-
},
|
|
147
|
-
});
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
// 通用样式
|
|
2
|
-
@include b(view-layout) {
|
|
3
|
-
@include set-component-css-var('view-layout', $view-layout);
|
|
4
|
-
@include flex(column);
|
|
5
|
-
|
|
6
|
-
position: relative;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
|
|
10
|
-
// 工具栏占位
|
|
11
|
-
@include e(toolbar) {
|
|
12
|
-
@include flex;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// 通用视图头部样式
|
|
17
|
-
@include b(view-layout-header) {
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
width: 100%;
|
|
20
|
-
|
|
21
|
-
@include b(view-layout-header-content) {
|
|
22
|
-
@include flex(row, space-between);
|
|
23
|
-
|
|
24
|
-
@include e(right) {
|
|
25
|
-
@include flex(row, space-between);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// 视图标题样式
|
|
29
|
-
@include e(caption) {
|
|
30
|
-
@include flex(row, flex-start, center);
|
|
31
|
-
|
|
32
|
-
height: 100%;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// 通用视图内容样式
|
|
38
|
-
@include b(view-layout-content) {
|
|
39
|
-
@include flex;
|
|
40
|
-
|
|
41
|
-
flex: 1 1 auto;
|
|
42
|
-
overflow: auto;
|
|
43
|
-
|
|
44
|
-
@include e(body) {
|
|
45
|
-
flex: 1 1 auto;
|
|
46
|
-
overflow: auto;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// 根据变量决定是否把内容输出到根
|
|
51
|
-
@mixin is-root($isRoot) {
|
|
52
|
-
@if $isRoot {
|
|
53
|
-
@at-root {
|
|
54
|
-
@content;
|
|
55
|
-
}
|
|
56
|
-
} @else {
|
|
57
|
-
@content;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// 使用变量的通用样式
|
|
62
|
-
@mixin view-layout-vars($type, $prefix) {
|
|
63
|
-
color: getCssVar($type, 'text-color');
|
|
64
|
-
background-color: getCssVar($type, 'bg-color');
|
|
65
|
-
@include is-root(($prefix == '')) {
|
|
66
|
-
// 通用视图头部样式
|
|
67
|
-
#{$prefix} .#{bem('view-layout-header')} {
|
|
68
|
-
padding: getCssVar($type, 'header-padding');
|
|
69
|
-
background: getCssVar($type, 'header-bg-color');
|
|
70
|
-
border-bottom: getCssVar($type, 'header-border-bottom');
|
|
71
|
-
|
|
72
|
-
// 视图标题样式
|
|
73
|
-
.#{bem('view-layout-header-content','caption')} {
|
|
74
|
-
max-width: getCssVar($type, 'caption-max-width');
|
|
75
|
-
font-size: getCssVar($type, 'caption-font-size');
|
|
76
|
-
font-weight: getCssVar($type, 'caption-font-weight');
|
|
77
|
-
color: getCssVar($type, 'caption-color');
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// 通用视图内容样式
|
|
82
|
-
#{$prefix} .#{bem('view-layout-content')} {
|
|
83
|
-
padding: getCssVar($type, 'content-padding');
|
|
84
|
-
margin: getCssVar($type, 'content-margin');
|
|
85
|
-
background-color: getCssVar($type, 'content-bg-color');
|
|
86
|
-
border-radius: getCssVar($type, 'content-border-radius');
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@include b(view-layout) {
|
|
92
|
-
// 通用视图布局样式变量引入
|
|
93
|
-
@include view-layout-vars('view-layout', '');
|
|
94
|
-
|
|
95
|
-
// 路由打开视图样式
|
|
96
|
-
@include m(route) {
|
|
97
|
-
@include set-component-css-var('view-layout-route', $view-layout-route);
|
|
98
|
-
@include view-layout-vars('view-layout-route', '>');
|
|
99
|
-
|
|
100
|
-
// 路由模式下的多层嵌套视图,去除margin
|
|
101
|
-
.#{bem(view-layout)} {
|
|
102
|
-
.#{bem(view-layout-content)}{
|
|
103
|
-
margin: 0;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
> .#{bem(view-layout-top)} {
|
|
108
|
-
margin: getCssVar('view-layout-route', 'top-margin');
|
|
109
|
-
background-color: getCssVar('view-layout-route', 'top-bg-color');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// 分页关系视图分页放在头部
|
|
113
|
-
&.#{bem('view-deeditview3')},
|
|
114
|
-
&.#{bem('view-dewfdynaeditview3')} {
|
|
115
|
-
> .#{bem('view-layout-content')} {
|
|
116
|
-
padding: 0;
|
|
117
|
-
margin: -1px 0 0;
|
|
118
|
-
> .#{bem('view-layout-content','body')} > .el-tabs {
|
|
119
|
-
>.el-tabs__header {
|
|
120
|
-
padding-left: getCssVar(padding);
|
|
121
|
-
margin: 0;
|
|
122
|
-
background-color: getCssVar('bg-color', 'overlay');
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// 每个分页内容给灰色栅格
|
|
126
|
-
>.el-tabs__content > .el-tab-pane {
|
|
127
|
-
padding: getCssVar('view-layout-route', 'content-padding');
|
|
128
|
-
background-color: getCssVar('bg-color', 'page');
|
|
129
|
-
|
|
130
|
-
// 第一个分页是表单不需要padding
|
|
131
|
-
&:first-child {
|
|
132
|
-
padding: 0;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// 编辑视图表单分页放在头部
|
|
140
|
-
&.#{bem('view-deeditview')} {
|
|
141
|
-
> .#{bem('view-layout-content')} {
|
|
142
|
-
> .#{bem('view-layout-content','body')}
|
|
143
|
-
> .#{bem('control-layout')}
|
|
144
|
-
> .#{bem('form')}
|
|
145
|
-
> .#{bem('form-page')} {
|
|
146
|
-
> .el-tabs__header {
|
|
147
|
-
// padding-left: getCssVar(padding);
|
|
148
|
-
background-color: getCssVar('bg-color', 'overlay');
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
> .el-tabs__content > .#{bem('form-page-tab-item')} {
|
|
152
|
-
padding: 0;
|
|
153
|
-
> .#{bem('form-page-item')} {
|
|
154
|
-
padding: 0;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// 路由下的表单的第一个分组
|
|
162
|
-
@include b(form-page-item) {
|
|
163
|
-
// 表单分页里的第一层表单分组呈现栅格样式
|
|
164
|
-
> .#{bem('form-col','grouppanel')} {
|
|
165
|
-
background-color: getCssVar('bg-color', 'page');
|
|
166
|
-
> .#{bem('form-group')} {
|
|
167
|
-
width: calc(100% - getCssVar(margin) * 2);
|
|
168
|
-
height: calc(100% - getCssVar(margin) * 2);
|
|
169
|
-
margin: getCssVar('margin');
|
|
170
|
-
}
|
|
171
|
-
& + .#{bem('form-col','grouppanel')} {
|
|
172
|
-
> .#{bem('form-group')} {
|
|
173
|
-
height: calc(100% - getCssVar(margin));
|
|
174
|
-
margin-top: 0;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// 抽屉打开视图样式
|
|
182
|
-
@include m(drawer) {
|
|
183
|
-
@include set-component-css-var('view-layout-drawer', $view-layout-drawer);
|
|
184
|
-
@include view-layout-vars('view-layout-drawer', '>');
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// 模态打开视图样式
|
|
188
|
-
@include m(modal) {
|
|
189
|
-
@include set-component-css-var('view-layout-modal', $view-layout-modal);
|
|
190
|
-
@include view-layout-vars('view-layout-modal', '>');
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// 嵌入打开视图样式
|
|
194
|
-
@include m(embed) {
|
|
195
|
-
@include set-component-css-var('view-layout-embed', $view-layout-embed);
|
|
196
|
-
@include view-layout-vars('view-layout-embed', '>');
|
|
197
|
-
}
|
|
198
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { computed, defineComponent, PropType, useSlots } from 'vue';
|
|
2
|
-
import { isEmptyVNode, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import './view-layout.scss';
|
|
4
|
-
import { IAppView } from '@ibiz/model-core';
|
|
5
|
-
|
|
6
|
-
export const ViewLayout = defineComponent({
|
|
7
|
-
name: 'ViewLayout',
|
|
8
|
-
props: {
|
|
9
|
-
modelData: {
|
|
10
|
-
type: Object as PropType<IAppView>,
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
viewMode: {
|
|
14
|
-
type: String, // ViewMode 类型
|
|
15
|
-
default: 'ROUTE',
|
|
16
|
-
},
|
|
17
|
-
// 视图是否完成加载
|
|
18
|
-
isComplete: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false,
|
|
21
|
-
},
|
|
22
|
-
isLoading: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
setup(props) {
|
|
28
|
-
const ns = useNamespace('view-layout');
|
|
29
|
-
|
|
30
|
-
const slots = useSlots();
|
|
31
|
-
|
|
32
|
-
// 是否显示头部
|
|
33
|
-
const isShowHeader = computed(() => {
|
|
34
|
-
return (
|
|
35
|
-
// 显示标题栏
|
|
36
|
-
props.modelData &&
|
|
37
|
-
(props.modelData.showCaptionBar ||
|
|
38
|
-
// toolbar或者quickSearch不为空节点
|
|
39
|
-
(slots &&
|
|
40
|
-
((slots.quickSearch && !isEmptyVNode(slots.quickSearch({}))) ||
|
|
41
|
-
(slots.toolbar && !isEmptyVNode(slots.toolbar({}))))))
|
|
42
|
-
);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
return { ns, isShowHeader };
|
|
46
|
-
},
|
|
47
|
-
render() {
|
|
48
|
-
return !this.isComplete ? (
|
|
49
|
-
<div
|
|
50
|
-
class={[this.ns.b(), this.ns.m(this.viewMode.toLowerCase())]}
|
|
51
|
-
v-loading={this.isLoading}
|
|
52
|
-
></div>
|
|
53
|
-
) : (
|
|
54
|
-
<div
|
|
55
|
-
class={[
|
|
56
|
-
this.ns.b(),
|
|
57
|
-
this.ns.m(this.viewMode.toLowerCase()),
|
|
58
|
-
this.ns.is('no-header', !this.isShowHeader),
|
|
59
|
-
this.ns.is('loading', this.isLoading),
|
|
60
|
-
]}
|
|
61
|
-
v-loading={this.isLoading}
|
|
62
|
-
>
|
|
63
|
-
{this.isShowHeader ? (
|
|
64
|
-
<div key='header' class={this.ns.b('header')}>
|
|
65
|
-
<div class={this.ns.b('header-content')}>
|
|
66
|
-
<div class={this.ns.be('header-content', 'left')}>
|
|
67
|
-
{this.modelData && this.modelData.showCaptionBar ? (
|
|
68
|
-
<div class={this.ns.be('header-content', 'caption')}>
|
|
69
|
-
{this.$slots.caption && this.$slots.caption({})}
|
|
70
|
-
</div>
|
|
71
|
-
) : null}
|
|
72
|
-
</div>
|
|
73
|
-
<div class={this.ns.be('header-content', 'right')}>
|
|
74
|
-
{this.$slots.quickSearch &&
|
|
75
|
-
!isEmptyVNode(this.$slots.quickSearch({})) && (
|
|
76
|
-
<div class={this.ns.e('quick-search')}>
|
|
77
|
-
{this.$slots.quickSearch({})}
|
|
78
|
-
</div>
|
|
79
|
-
)}
|
|
80
|
-
{this.$slots.toolbar &&
|
|
81
|
-
!isEmptyVNode(this.$slots.toolbar({})) && (
|
|
82
|
-
<div class={this.ns.e('toolbar')}>
|
|
83
|
-
{this.$slots.toolbar({})}
|
|
84
|
-
</div>
|
|
85
|
-
)}
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
<div class={this.ns.b('header-exp')}></div>
|
|
89
|
-
</div>
|
|
90
|
-
) : null}
|
|
91
|
-
{this.$slots.searchForm &&
|
|
92
|
-
!isEmptyVNode(this.$slots.searchForm({})) && (
|
|
93
|
-
<div key='top' class={this.ns.b('top')}>
|
|
94
|
-
<div class={this.ns.be('top', 'message')}></div>
|
|
95
|
-
<div class={this.ns.be('top', 'search-form')}>
|
|
96
|
-
{this.$slots.searchForm({})}
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
)}
|
|
100
|
-
<div key='content' class={this.ns.b('content')}>
|
|
101
|
-
<div class={this.ns.be('content', 'left')}></div>
|
|
102
|
-
<div class={this.ns.be('content', 'body')}>
|
|
103
|
-
{this.$slots.default && this.$slots.default({})}
|
|
104
|
-
</div>
|
|
105
|
-
<div class={this.ns.be('content', 'right')}></div>
|
|
106
|
-
</div>
|
|
107
|
-
{this.$slots.footer && (
|
|
108
|
-
<div key='footer' class={this.ns.b('footer')}>
|
|
109
|
-
{this.$slots.footer && this.$slots.footer({})}
|
|
110
|
-
</div>
|
|
111
|
-
)}
|
|
112
|
-
</div>
|
|
113
|
-
);
|
|
114
|
-
},
|
|
115
|
-
});
|
package/src/util/install.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-param-reassign */
|
|
2
|
-
import type { App, Plugin } from 'vue';
|
|
3
|
-
|
|
4
|
-
export type TypeWithInstall<T> = T & Plugin;
|
|
5
|
-
|
|
6
|
-
export const withInstall = <T>(main: T, install: (_v: App) => void) => {
|
|
7
|
-
(main as TypeWithInstall<T>).install = (app): void => {
|
|
8
|
-
install(app);
|
|
9
|
-
};
|
|
10
|
-
return main as TypeWithInstall<T>;
|
|
11
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { PresetViewEngine, ViewController } from '@ibiz-template/runtime';
|
|
2
|
-
import { IAppDEGridView, IAppUIOpenDataLogic } from '@ibiz/model-core';
|
|
3
|
-
import { GridController } from '../../control';
|
|
4
|
-
import { SearchFormController } from '../../control/form/search-form/search-form.controller';
|
|
5
|
-
|
|
6
|
-
export class GridViewEngine extends PresetViewEngine {
|
|
7
|
-
protected declare controller: ViewController<IAppDEGridView>;
|
|
8
|
-
|
|
9
|
-
get grid() {
|
|
10
|
-
return this.controller.getController('grid') as GridController;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
get searchForm() {
|
|
14
|
-
return this.controller.getController('searchform') as SearchFormController;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 打开编辑数据视图
|
|
19
|
-
*
|
|
20
|
-
* @author lxm
|
|
21
|
-
* @date 2022-09-01 18:09:19
|
|
22
|
-
* @param {IData} data
|
|
23
|
-
* @param {MouseEvent} [event]
|
|
24
|
-
* @returns {*}
|
|
25
|
-
*/
|
|
26
|
-
async openData(data: IData, event?: MouseEvent): Promise<void> {
|
|
27
|
-
const openAppViewLogic =
|
|
28
|
-
this.controller.model.viewLayoutPanel?.appViewLogics?.find(
|
|
29
|
-
item => item.id === 'opendata',
|
|
30
|
-
) as IAppUIOpenDataLogic;
|
|
31
|
-
if (openAppViewLogic) {
|
|
32
|
-
await this.executeViewLogic(openAppViewLogic, [data], event);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
load() {
|
|
37
|
-
this.grid.load();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
init() {
|
|
41
|
-
super.init();
|
|
42
|
-
const { childNames, evt, model } = this.controller;
|
|
43
|
-
childNames.push('grid');
|
|
44
|
-
evt.on('onMounted', () => {
|
|
45
|
-
this.grid.evt.on('onActive', event => {
|
|
46
|
-
return this.openData(event);
|
|
47
|
-
});
|
|
48
|
-
this.grid.evt.on('onBeforeLoad', event => {
|
|
49
|
-
const params: IParams = {};
|
|
50
|
-
// 有搜索表单的整合相关参数
|
|
51
|
-
if (this.searchForm) {
|
|
52
|
-
const addParams = this.searchForm.data;
|
|
53
|
-
Object.assign(params, addParams);
|
|
54
|
-
}
|
|
55
|
-
this.grid.state.searchParams = params;
|
|
56
|
-
console.log('beforeload', event);
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
this.searchForm?.evt.on('onSearch', () => {
|
|
60
|
-
this.grid.load();
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
if (model.loadDefault) {
|
|
64
|
-
this.load();
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import { ViewType } from '@ibiz-template/runtime';
|
|
3
|
-
import { withInstall } from '../../util/install';
|
|
4
|
-
import { GridViewEngine } from './grid-view-engine';
|
|
5
|
-
import { ViewProvider } from '../view';
|
|
6
|
-
|
|
7
|
-
export const IBizGridView = withInstall({}, function (_v: App) {
|
|
8
|
-
ibiz.register.view.register(ViewType.DE_GRID_VIEW, new ViewProvider());
|
|
9
|
-
ibiz.engine.registerPreset(ViewType.DE_GRID_VIEW, GridViewEngine);
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export default IBizGridView;
|