@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ScrollContainerController } from './scroll-container.controller';
|
|
4
|
+
import './scroll-container.scss';
|
|
5
|
+
export declare const ScrollContainer: import("vue").DefineComponent<{
|
|
6
|
+
modelData: {
|
|
7
|
+
type: PropType<IPanelContainer>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
controller: {
|
|
11
|
+
type: typeof ScrollContainerController;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
+
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelData: {
|
|
19
|
+
type: PropType<IPanelContainer>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
controller: {
|
|
23
|
+
type: typeof ScrollContainerController;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}>>, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* @author lxm
|
|
9
|
+
* @date 2022-09-19 22:09:03
|
|
10
|
+
* @export
|
|
11
|
+
* @class ScrollContainerItemProvider
|
|
12
|
+
* @implements {EditorProvider}
|
|
13
|
+
*/
|
|
14
|
+
export declare class ScrollContainerItemProvider implements IPanelItemProvider {
|
|
15
|
+
component: string;
|
|
16
|
+
createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<ScrollContainerItemController>;
|
|
17
|
+
}
|
package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { ScrollContainerItemController } from "./scroll-container-item.controller";
|
|
8
|
+
class ScrollContainerItemProvider {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "component", "ScrollContainerItem");
|
|
11
|
+
}
|
|
12
|
+
async createController(panelItem, panel, parent) {
|
|
13
|
+
const c = new ScrollContainerItemController(panelItem, panel, parent);
|
|
14
|
+
await c.init();
|
|
15
|
+
return c;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
ScrollContainerItemProvider
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
+
import { PanelItemController, ViewLayoutPanelController } from '../../../control';
|
|
3
|
+
/**
|
|
4
|
+
* 面板滚动容器项控制器
|
|
5
|
+
*
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2023-02-07 06:05:23
|
|
8
|
+
* @export
|
|
9
|
+
* @class PanelButtonController
|
|
10
|
+
* @extends {PanelItemController}
|
|
11
|
+
*/
|
|
12
|
+
export declare class ScrollContainerItemController extends PanelItemController<IPanelContainer> {
|
|
13
|
+
/**
|
|
14
|
+
* 面板控制器
|
|
15
|
+
*
|
|
16
|
+
* @author lxm
|
|
17
|
+
* @date 2022-08-24 22:08:59
|
|
18
|
+
* @type {PanelController}
|
|
19
|
+
*/
|
|
20
|
+
panel: ViewLayoutPanelController;
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ScrollContainerItemController } from './scroll-container-item.controller';
|
|
4
|
+
import './scroll-container-item.scss';
|
|
5
|
+
export declare const ScrollContainerItem: import("vue").DefineComponent<{
|
|
6
|
+
modelData: {
|
|
7
|
+
type: PropType<IPanelContainer>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
controller: {
|
|
11
|
+
type: typeof ScrollContainerItemController;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
+
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelData: {
|
|
19
|
+
type: PropType<IPanelContainer>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
controller: {
|
|
23
|
+
type: typeof ScrollContainerItemController;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}>>, {}>;
|
package/es/view/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { withInstall } from "@ibiz-template/vue3-util";
|
|
2
|
+
import { registerViewProvider } from "@ibiz-template/runtime";
|
|
3
|
+
import { ViewProvider } from "./view-provider";
|
|
4
|
+
import { ViewProvider as ViewProvider2 } from "./view-provider";
|
|
5
|
+
import { IBizView as IBizView$1 } from "./ibiz-view";
|
|
6
|
+
const IBizView = withInstall(IBizView$1, function(v) {
|
|
7
|
+
v.component(IBizView.name, IBizView);
|
|
8
|
+
registerViewProvider("DEFAULT", () => new ViewProvider());
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
IBizView,
|
|
12
|
+
ViewProvider2 as ViewProvider
|
|
13
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IViewProvider } from '@ibiz-template/runtime';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* 视图适配器
|
|
4
4
|
*
|
|
5
5
|
* @author lxm
|
|
6
6
|
* @date 2022-10-25 18:10:57
|
|
7
7
|
* @export
|
|
8
|
-
* @class
|
|
8
|
+
* @class ViewProvider
|
|
9
9
|
* @implements {IViewProvider}
|
|
10
10
|
*/
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class ViewProvider implements IViewProvider {
|
|
12
12
|
component: string;
|
|
13
13
|
}
|
|
@@ -4,11 +4,11 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
class
|
|
7
|
+
class ViewProvider {
|
|
8
8
|
constructor() {
|
|
9
|
-
__publicField(this, "component", "
|
|
9
|
+
__publicField(this, "component", "IBizView");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
ViewProvider
|
|
14
14
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IControlController, IGridViewEngine, IUIActionResult, PresetViewEngine, ViewController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppDEGridView } from '@ibiz/model-core';
|
|
3
|
+
import { GridController } from '../control';
|
|
4
|
+
import { SearchFormController } from '../control/form/search-form/search-form.controller';
|
|
5
|
+
export declare class GridViewEngine extends PresetViewEngine implements IGridViewEngine {
|
|
6
|
+
protected view: ViewController<IAppDEGridView>;
|
|
7
|
+
get grid(): GridController;
|
|
8
|
+
get searchForm(): SearchFormController;
|
|
9
|
+
get xdataControl(): IControlController;
|
|
10
|
+
getData(): IData[];
|
|
11
|
+
call(key: string, args: any): Promise<IData | null | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* 打开编辑数据视图
|
|
14
|
+
*
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2022-09-01 18:09:19
|
|
17
|
+
* @param {IData} data
|
|
18
|
+
* @param {MouseEvent} [event]
|
|
19
|
+
* @returns {*}
|
|
20
|
+
*/
|
|
21
|
+
openData(args: {
|
|
22
|
+
data: IData[];
|
|
23
|
+
event?: MouseEvent;
|
|
24
|
+
}): Promise<IUIActionResult>;
|
|
25
|
+
/**
|
|
26
|
+
* 打开编辑数据视图
|
|
27
|
+
*
|
|
28
|
+
* @author lxm
|
|
29
|
+
* @date 2022-09-01 18:09:19
|
|
30
|
+
* @param {IData} data
|
|
31
|
+
* @param {MouseEvent} [event]
|
|
32
|
+
* @returns {*}
|
|
33
|
+
*/
|
|
34
|
+
newData(args: {
|
|
35
|
+
data: IData[];
|
|
36
|
+
event?: MouseEvent;
|
|
37
|
+
}): Promise<IUIActionResult>;
|
|
38
|
+
/**
|
|
39
|
+
* 视图删除方法
|
|
40
|
+
*
|
|
41
|
+
* @author lxm
|
|
42
|
+
* @date 2022-08-30 19:08:59
|
|
43
|
+
* @returns {*} {Promise<void>}
|
|
44
|
+
*/
|
|
45
|
+
remove(): Promise<void>;
|
|
46
|
+
load(): void;
|
|
47
|
+
init(): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { RuntimeModelError } from "@ibiz-template/core";
|
|
2
|
+
import { PresetViewEngine, SysUIActionTag, executeViewLogic } from "@ibiz-template/runtime";
|
|
3
|
+
class GridViewEngine extends PresetViewEngine {
|
|
4
|
+
get grid() {
|
|
5
|
+
return this.view.getController("grid");
|
|
6
|
+
}
|
|
7
|
+
get searchForm() {
|
|
8
|
+
return this.view.getController("searchform");
|
|
9
|
+
}
|
|
10
|
+
get xdataControl() {
|
|
11
|
+
return this.view.getController(
|
|
12
|
+
this.view.model.xdataControlName
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
getData() {
|
|
16
|
+
return this.grid.getData();
|
|
17
|
+
}
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
+
async call(key, args) {
|
|
20
|
+
if (key === SysUIActionTag.TOGGLE_FILTER) {
|
|
21
|
+
this.searchForm.setVisible();
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
if (key === SysUIActionTag.EDIT) {
|
|
25
|
+
this.openData(args);
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
if (key === SysUIActionTag.NEW) {
|
|
29
|
+
this.newData(args);
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
if (key === SysUIActionTag.REMOVE) {
|
|
33
|
+
await this.grid.remove();
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
if (key === SysUIActionTag.IMPORT) {
|
|
37
|
+
await this.grid.importData();
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
if (key === SysUIActionTag.EXPORT_EXCEL) {
|
|
41
|
+
await this.grid.exportData(args);
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return super.call(key, args);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 打开编辑数据视图
|
|
48
|
+
*
|
|
49
|
+
* @author lxm
|
|
50
|
+
* @date 2022-09-01 18:09:19
|
|
51
|
+
* @param {IData} data
|
|
52
|
+
* @param {MouseEvent} [event]
|
|
53
|
+
* @returns {*}
|
|
54
|
+
*/
|
|
55
|
+
async openData(args) {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
const { data, event } = args;
|
|
58
|
+
const openAppViewLogic = (_b = (_a = this.view.model.viewLayoutPanel) == null ? void 0 : _a.appViewLogics) == null ? void 0 : _b.find(
|
|
59
|
+
(item) => item.id === "opendata"
|
|
60
|
+
);
|
|
61
|
+
if (!openAppViewLogic) {
|
|
62
|
+
throw new RuntimeModelError(this.view.model, `缺少opendata的视图逻辑`);
|
|
63
|
+
}
|
|
64
|
+
const _context = this.view.context.clone();
|
|
65
|
+
const { codeName } = await ibiz.hub.getAppDataEntity(
|
|
66
|
+
this.xdataControl.model.appDataEntityId,
|
|
67
|
+
this.view.context.srfappid
|
|
68
|
+
);
|
|
69
|
+
_context[codeName.toLowerCase()] = data[0].srfkey;
|
|
70
|
+
const result = await executeViewLogic(
|
|
71
|
+
openAppViewLogic,
|
|
72
|
+
_context,
|
|
73
|
+
data,
|
|
74
|
+
this.view.params,
|
|
75
|
+
{
|
|
76
|
+
event
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 打开编辑数据视图
|
|
83
|
+
*
|
|
84
|
+
* @author lxm
|
|
85
|
+
* @date 2022-09-01 18:09:19
|
|
86
|
+
* @param {IData} data
|
|
87
|
+
* @param {MouseEvent} [event]
|
|
88
|
+
* @returns {*}
|
|
89
|
+
*/
|
|
90
|
+
async newData(args) {
|
|
91
|
+
var _a, _b;
|
|
92
|
+
const { data, event } = args;
|
|
93
|
+
const openAppViewLogic = (_b = (_a = this.view.model.viewLayoutPanel) == null ? void 0 : _a.appViewLogics) == null ? void 0 : _b.find(
|
|
94
|
+
(item) => item.id === "newdata"
|
|
95
|
+
);
|
|
96
|
+
if (!openAppViewLogic) {
|
|
97
|
+
throw new RuntimeModelError(this.view.model, `缺少newdata的视图逻辑`);
|
|
98
|
+
}
|
|
99
|
+
const _context = this.view.context.clone();
|
|
100
|
+
const result = await executeViewLogic(
|
|
101
|
+
openAppViewLogic,
|
|
102
|
+
_context,
|
|
103
|
+
data,
|
|
104
|
+
this.view.params,
|
|
105
|
+
{
|
|
106
|
+
event
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* 视图删除方法
|
|
113
|
+
*
|
|
114
|
+
* @author lxm
|
|
115
|
+
* @date 2022-08-30 19:08:59
|
|
116
|
+
* @returns {*} {Promise<void>}
|
|
117
|
+
*/
|
|
118
|
+
async remove() {
|
|
119
|
+
await this.grid.remove();
|
|
120
|
+
}
|
|
121
|
+
load() {
|
|
122
|
+
this.grid.load();
|
|
123
|
+
}
|
|
124
|
+
init() {
|
|
125
|
+
super.init();
|
|
126
|
+
const { childNames, evt, model } = this.view;
|
|
127
|
+
childNames.push("grid");
|
|
128
|
+
evt.on("onMounted", () => {
|
|
129
|
+
var _a;
|
|
130
|
+
this.grid.evt.on("onActive", async (event) => {
|
|
131
|
+
await this.openData(event);
|
|
132
|
+
});
|
|
133
|
+
this.grid.evt.on("onSelectionChange", async (event) => {
|
|
134
|
+
this.toolbar.calcButtonState(
|
|
135
|
+
event.data[0],
|
|
136
|
+
this.grid.model.appDataEntityId
|
|
137
|
+
);
|
|
138
|
+
});
|
|
139
|
+
this.grid.evt.on("onBeforeLoad", (event) => {
|
|
140
|
+
const params = {};
|
|
141
|
+
if (this.searchForm) {
|
|
142
|
+
const addParams = this.searchForm.data;
|
|
143
|
+
Object.assign(params, addParams);
|
|
144
|
+
}
|
|
145
|
+
this.grid.state.searchParams = params;
|
|
146
|
+
});
|
|
147
|
+
(_a = this.searchForm) == null ? void 0 : _a.evt.on("onSearch", () => {
|
|
148
|
+
this.grid.load();
|
|
149
|
+
});
|
|
150
|
+
if (model.loadDefault) {
|
|
151
|
+
this.load();
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export {
|
|
157
|
+
GridViewEngine
|
|
158
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IIndexViewEngine, IViewController, PresetViewEngine, IIndexViewState } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppIndexView } from '@ibiz/model-core';
|
|
3
|
+
import { AppMenuController } from '../control';
|
|
4
|
+
export declare class IndexViewEngine extends PresetViewEngine implements IIndexViewEngine {
|
|
5
|
+
protected view: IViewController<IAppIndexView, IIndexViewState>;
|
|
6
|
+
get appmenu(): AppMenuController;
|
|
7
|
+
initViewState(): void;
|
|
8
|
+
init(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PresetViewEngine } from "@ibiz-template/runtime";
|
|
2
|
+
class IndexViewEngine extends PresetViewEngine {
|
|
3
|
+
get appmenu() {
|
|
4
|
+
return this.view.getController("grid");
|
|
5
|
+
}
|
|
6
|
+
initViewState() {
|
|
7
|
+
super.initViewState();
|
|
8
|
+
this.view.state.isCollapse = false;
|
|
9
|
+
}
|
|
10
|
+
init() {
|
|
11
|
+
this.view.childNames.push("appmenu");
|
|
12
|
+
const el = document.querySelector(".app-loading-x");
|
|
13
|
+
if (el) {
|
|
14
|
+
el.style.display = "none";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
IndexViewEngine
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GridViewEngine } from "./grid-view-engine";
|
|
2
|
+
export * from "./grid-view-engine";
|
|
3
|
+
import { IndexViewEngine } from "./index-view-engine";
|
|
4
|
+
export * from "./index-view-engine";
|
|
5
|
+
const IBizViewEngine = {
|
|
6
|
+
install: (_v) => {
|
|
7
|
+
ibiz.engine.register(
|
|
8
|
+
`VIEW_AppIndexView`,
|
|
9
|
+
(c) => new IndexViewEngine(c)
|
|
10
|
+
);
|
|
11
|
+
ibiz.engine.register(
|
|
12
|
+
`VIEW_APPINDEXVIEW`,
|
|
13
|
+
(c) => new IndexViewEngine(c)
|
|
14
|
+
);
|
|
15
|
+
ibiz.engine.register(
|
|
16
|
+
"VIEW_GridView",
|
|
17
|
+
(c) => new GridViewEngine(c)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
IBizViewEngine
|
|
23
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IButtonContainerState } from '@ibiz-template/runtime';
|
|
3
|
+
import { IUIActionGroupDetail } from '@ibiz/model-core';
|
|
4
|
+
import './action-toolbar.scss';
|
|
5
|
+
export declare const ActionToolbar: import("vue").DefineComponent<{
|
|
6
|
+
actionDetails: {
|
|
7
|
+
type: {
|
|
8
|
+
(arrayLength: number): IUIActionGroupDetail[];
|
|
9
|
+
(...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
10
|
+
new (arrayLength: number): IUIActionGroupDetail[];
|
|
11
|
+
new (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
12
|
+
isArray(arg: any): arg is any[];
|
|
13
|
+
readonly prototype: any[];
|
|
14
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
15
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
16
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
17
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
18
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
19
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
20
|
+
};
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
actionsState: {
|
|
24
|
+
type: PropType<IButtonContainerState>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
caption: StringConstructor;
|
|
28
|
+
mode: {
|
|
29
|
+
type: PropType<"dropdown" | "buttons">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
34
|
+
handleClick: (detail: IUIActionGroupDetail, event: MouseEvent) => Promise<void>;
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
actionDetails: {
|
|
37
|
+
type: {
|
|
38
|
+
(arrayLength: number): IUIActionGroupDetail[];
|
|
39
|
+
(...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
40
|
+
new (arrayLength: number): IUIActionGroupDetail[];
|
|
41
|
+
new (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
42
|
+
isArray(arg: any): arg is any[];
|
|
43
|
+
readonly prototype: any[];
|
|
44
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
45
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
46
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
47
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
48
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
49
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
50
|
+
};
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
actionsState: {
|
|
54
|
+
type: PropType<IButtonContainerState>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
caption: StringConstructor;
|
|
58
|
+
mode: {
|
|
59
|
+
type: PropType<"dropdown" | "buttons">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
}>>, {
|
|
63
|
+
mode: "dropdown" | "buttons";
|
|
64
|
+
}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ILayoutPos } from '@ibiz/model-core';
|
|
3
|
+
import { ILayoutController } from '@ibiz-template/runtime';
|
|
4
|
+
export declare const AppCol: import("vue").DefineComponent<{
|
|
5
|
+
layoutPos: PropType<ILayoutPos>;
|
|
6
|
+
controller: {
|
|
7
|
+
type: PropType<ILayoutController>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
+
gridAttrs: import("vue").ComputedRef<{
|
|
13
|
+
xs?: undefined;
|
|
14
|
+
sm?: undefined;
|
|
15
|
+
md?: undefined;
|
|
16
|
+
lg?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
xs: {
|
|
19
|
+
span?: number | undefined;
|
|
20
|
+
offset?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
sm: {
|
|
23
|
+
span?: number | undefined;
|
|
24
|
+
offset?: number | undefined;
|
|
25
|
+
};
|
|
26
|
+
md: {
|
|
27
|
+
span?: number | undefined;
|
|
28
|
+
offset?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
lg: {
|
|
31
|
+
span?: number | undefined;
|
|
32
|
+
offset?: number | undefined;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
cssVars: import("vue").ComputedRef<{
|
|
36
|
+
width: string;
|
|
37
|
+
height: string;
|
|
38
|
+
}>;
|
|
39
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
layoutPos: PropType<ILayoutPos>;
|
|
41
|
+
controller: {
|
|
42
|
+
type: PropType<ILayoutController>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
}>>, {}>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const vue3Util = require("@ibiz-template/vue3-util");
|
|
5
|
+
function calcGridSpanOffset(span, offset, layout) {
|
|
6
|
+
const multiplier = layout === "TABLE_24COL" ? 1 : 2;
|
|
7
|
+
const spanDefault = layout === "TABLE_24COL" ? 24 : 12;
|
|
8
|
+
const _span = !span || span === -1 ? spanDefault : span;
|
|
9
|
+
const _offset = !offset || offset === -1 ? 0 : offset;
|
|
10
|
+
const result = {
|
|
11
|
+
span: _span * multiplier
|
|
12
|
+
};
|
|
13
|
+
if (_offset !== 0) {
|
|
14
|
+
result.offset = _offset;
|
|
15
|
+
}
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
const AppCol = /* @__PURE__ */ vue.defineComponent({
|
|
19
|
+
name: "AppCol",
|
|
20
|
+
props: {
|
|
21
|
+
layoutPos: Object,
|
|
22
|
+
controller: {
|
|
23
|
+
type: Object,
|
|
24
|
+
required: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(props) {
|
|
28
|
+
const ns = vue3Util.useNamespace("col");
|
|
29
|
+
const gridAttrs = vue.computed(() => {
|
|
30
|
+
const gridLayoutPos = props.layoutPos;
|
|
31
|
+
if (gridLayoutPos.layout === "FLEX") {
|
|
32
|
+
return {};
|
|
33
|
+
}
|
|
34
|
+
const {
|
|
35
|
+
colXS,
|
|
36
|
+
colXSOffset,
|
|
37
|
+
colSM,
|
|
38
|
+
colSMOffset,
|
|
39
|
+
colMD,
|
|
40
|
+
colMDOffset,
|
|
41
|
+
colLG,
|
|
42
|
+
colLGOffset
|
|
43
|
+
} = gridLayoutPos;
|
|
44
|
+
return {
|
|
45
|
+
xs: calcGridSpanOffset(colXS, colXSOffset, gridLayoutPos.layout),
|
|
46
|
+
sm: calcGridSpanOffset(colSM, colSMOffset, gridLayoutPos.layout),
|
|
47
|
+
md: calcGridSpanOffset(colMD, colMDOffset, gridLayoutPos.layout),
|
|
48
|
+
lg: calcGridSpanOffset(colLG, colLGOffset, gridLayoutPos.layout)
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
const cssVars = vue.computed(() => {
|
|
52
|
+
const styles = {
|
|
53
|
+
width: props.controller.width,
|
|
54
|
+
height: props.controller.height
|
|
55
|
+
};
|
|
56
|
+
Object.assign(styles, props.controller.extraStyle);
|
|
57
|
+
return styles;
|
|
58
|
+
});
|
|
59
|
+
return {
|
|
60
|
+
ns,
|
|
61
|
+
gridAttrs,
|
|
62
|
+
cssVars
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
render() {
|
|
66
|
+
var _a, _b, _c;
|
|
67
|
+
if (this.controller.visible === false) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
const defaultSlot = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a);
|
|
71
|
+
if (((_c = this.layoutPos) == null ? void 0 : _c.layout) === "FLEX") {
|
|
72
|
+
return vue.createVNode("div", {
|
|
73
|
+
"class": [this.ns.b(), this.ns.m("flex"), this.controller.extraClass],
|
|
74
|
+
"style": {
|
|
75
|
+
flexGrow: this.layoutPos.grow,
|
|
76
|
+
// 修复flex时flex-grow和flex-shrink时高度被内容撑开,没法压缩
|
|
77
|
+
minHeight: 0,
|
|
78
|
+
...this.cssVars
|
|
79
|
+
}
|
|
80
|
+
}, [defaultSlot]);
|
|
81
|
+
}
|
|
82
|
+
return vue.h(vue.resolveComponent("el-col"), {
|
|
83
|
+
class: [this.ns.b(), this.ns.m("grid"), this.controller.extraClass],
|
|
84
|
+
style: this.cssVars,
|
|
85
|
+
...this.gridAttrs
|
|
86
|
+
}, {
|
|
87
|
+
default: () => defaultSlot
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
exports.AppCol = AppCol;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { ISysImage } from '@ibiz/model-core';
|
|
2
3
|
export declare const AppIcon: import("vue").DefineComponent<{
|
|
3
4
|
icon: {
|
|
4
5
|
type: PropType<ISysImage>;
|
|
@@ -16,4 +17,3 @@ export declare const AppIcon: import("vue").DefineComponent<{
|
|
|
16
17
|
type: PropType<"small" | "medium" | "large">;
|
|
17
18
|
};
|
|
18
19
|
}>>, {}>;
|
|
19
|
-
export default AppIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vue3Util = require("@ibiz-template/vue3-util");
|
|
5
5
|
const AppIcon = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -68,4 +68,3 @@ const AppIcon = /* @__PURE__ */ vue.defineComponent({
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
exports.AppIcon = AppIcon;
|
|
71
|
-
exports.default = AppIcon;
|