@ibiz-template/vue3-components 0.0.1-alpha.1 → 0.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/action-toolbar/action-toolbar.d.ts +64 -0
- package/es/common/app-col/app-col.d.ts +45 -0
- package/es/common/app-col/app-col.js +91 -0
- package/es/common/app-icon/app-icon.d.ts +1 -1
- package/es/common/app-icon/app-icon.js +1 -2
- package/es/common/app-router-view/app-router-view.d.ts +1 -0
- package/es/common/app-router-view/app-router-view.js +2 -1
- package/es/common/app-row/app-row.d.ts +9 -0
- package/es/common/app-row/app-row.js +41 -0
- package/es/{layout → common}/control-base/control-base.js +6 -13
- package/es/common/index.d.ts +7 -5
- package/es/common/index.js +24 -5
- package/es/control/app-menu/app-menu-provider.js +1 -1
- package/es/control/app-menu/app-menu-state.d.ts +23 -0
- package/es/control/app-menu/app-menu-state.js +23 -0
- package/es/control/app-menu/app-menu.controller.d.ts +52 -0
- package/es/control/app-menu/app-menu.controller.js +91 -0
- package/es/control/app-menu/app-menu.d.ts +10 -7
- package/es/control/app-menu/app-menu.js +6 -10
- package/es/control/app-menu/index.js +10 -6
- package/es/control/form/form/form-control.d.ts +34 -0
- package/es/control/form/form/form-state.d.ts +36 -0
- package/es/control/form/form/form-state.js +39 -0
- package/es/control/form/form/form.controller.d.ts +129 -0
- package/es/control/form/form/form.controller.js +199 -0
- package/es/control/form/form/index.js +27 -0
- package/es/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
- package/es/control/form/form-detail/form-detail/form-detail-state.js +72 -0
- package/es/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
- package/es/control/form/form-detail/form-detail/form-detail.js +176 -0
- package/es/control/form/form-detail/form-detail/index.d.ts +2 -0
- package/es/control/form/form-detail/form-detail/index.js +2 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
- package/es/control/form/form-detail/form-group-panel/index.d.ts +3 -0
- package/es/control/form/form-detail/form-group-panel/index.js +3 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
- package/es/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
- package/es/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
- package/es/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
- package/es/control/form/form-detail/form-item/form-item.d.ts +28 -0
- package/es/control/form/form-detail/form-item/index.d.ts +3 -0
- package/es/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
- package/es/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
- package/es/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
- package/es/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/es/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
- package/es/control/form/form-detail/index.d.ts +3 -0
- package/es/control/form/form-detail/index.js +3 -0
- package/es/control/form/index.d.ts +8 -0
- package/es/control/form/index.js +12 -0
- package/es/control/form/search-form/index.js +15 -0
- package/es/control/form/search-form/search-form-provider.d.ts +13 -0
- package/es/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
- package/es/control/form/search-form/search-form-state.d.ts +19 -0
- package/es/control/form/search-form/search-form-state.js +22 -0
- package/es/control/form/search-form/search-form.controller.d.ts +86 -0
- package/es/control/form/search-form/search-form.controller.js +128 -0
- package/{lib/layout/view-shell/view-shell.d.ts → es/control/form/search-form/search-form.d.ts} +17 -22
- package/es/control/grid/grid/grid-column.controller.d.ts +76 -0
- package/es/control/grid/grid/grid-column.controller.js +89 -0
- package/{lib/control/grid-control → es/control/grid/grid}/grid-control.util.d.ts +3 -2
- package/es/control/grid/grid/grid-row.controller.d.ts +77 -0
- package/es/control/grid/grid/grid-row.controller.js +85 -0
- package/es/control/grid/grid/grid-state.d.ts +19 -0
- package/es/control/grid/grid/grid-state.js +23 -0
- package/es/control/grid/grid/grid.controller.d.ts +225 -0
- package/es/control/grid/grid/grid.controller.js +386 -0
- package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
- package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +1 -1
- package/es/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
- package/es/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
- package/es/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
- package/es/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
- package/es/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
- package/es/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
- package/es/control/grid/index.js +31 -0
- package/es/control/index.d.ts +4 -2
- package/es/control/index.js +4 -2
- package/es/control/panel/index.js +19 -0
- package/es/control/panel/panel/index.d.ts +4 -0
- package/es/control/panel/panel/index.js +4 -0
- package/es/control/panel/panel/panel-item-state.d.ts +47 -0
- package/es/control/panel/panel/panel-item-state.js +58 -0
- package/es/control/panel/panel/panel-item.controller.d.ts +71 -0
- package/es/control/panel/panel/panel-item.controller.js +135 -0
- package/es/control/panel/panel/panel-state.d.ts +21 -0
- package/es/control/panel/panel/panel-state.js +24 -0
- package/es/control/panel/panel/panel.controller.d.ts +114 -0
- package/es/control/panel/panel/panel.controller.js +187 -0
- package/es/control/panel/view-layout-panel/index.d.ts +3 -0
- package/es/control/panel/view-layout-panel/index.js +3 -0
- package/es/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
- package/es/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
- package/es/control/toolbar/index.js +12 -0
- package/{lib/control/toolbar-control → es/control/toolbar}/toolbar-control.d.ts +4 -10
- package/es/control/toolbar/toolbar-state.d.ts +24 -0
- package/es/control/toolbar/toolbar-state.js +29 -0
- package/es/control/toolbar/toolbar.controllerr.d.ts +33 -0
- package/es/control/toolbar/toolbar.controllerr.js +81 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.js +14 -0
- package/es/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
- package/es/editor/text-box/index.d.ts +1 -0
- package/es/editor/text-box/index.js +4 -0
- package/es/editor/text-box/text-box-provider.d.ts +18 -0
- package/es/editor/text-box/text-box-provider.js +29 -0
- package/es/editor/text-box/text-box.controller.d.ts +20 -0
- package/es/editor/text-box/text-box.controller.js +22 -0
- package/es/index.d.ts +9 -2
- package/es/index.js +30 -3
- package/es/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
- package/es/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
- package/es/panel-component/auth-userinfo/index.js +19 -0
- package/es/panel-component/index.d.ts +10 -0
- package/es/panel-component/index.js +25 -0
- package/es/panel-component/nav-pos/index.js +20 -0
- package/es/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
- package/es/panel-component/nav-pos/nav-pos-provider.js +20 -0
- package/es/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
- package/es/panel-component/nav-pos/nav-pos-state.js +17 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
- package/es/panel-component/nav-pos/nav-pos.controller.js +103 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts +27 -0
- package/es/panel-component/nav-tabs/index.js +16 -0
- package/es/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
- package/es/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
- package/es/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
- package/es/panel-component/nav-tabs/nav-tabs-state.js +18 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
- package/es/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
- package/es/panel-component/panel-container/index.js +23 -0
- package/es/panel-component/panel-container/panel-container-provider.d.ts +16 -0
- package/es/panel-component/panel-container/panel-container-provider.js +20 -0
- package/es/panel-component/panel-container/panel-container-state.d.ts +12 -0
- package/es/panel-component/panel-container/panel-container-state.js +6 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts +14 -0
- package/es/panel-component/panel-container/panel-container.controller.js +11 -0
- package/es/panel-component/panel-container/panel-container.d.ts +28 -0
- package/es/panel-component/panel-ctrl-pos/index.js +18 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/es/panel-component/scroll-container/index.js +43 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container/index.js +3 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.js +3 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
- package/es/view/index.js +13 -0
- package/{lib/views/grid-view/grid-view-provider.d.ts → es/view/view-provider.d.ts} +3 -3
- package/es/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/es/view-engine/grid-view-engine.d.ts +48 -0
- package/es/view-engine/grid-view-engine.js +158 -0
- package/es/view-engine/index-view-engine.d.ts +9 -0
- package/es/view-engine/index-view-engine.js +20 -0
- package/es/view-engine/index.d.ts +6 -0
- package/es/view-engine/index.js +23 -0
- package/lib/common/action-toolbar/action-toolbar.d.ts +64 -0
- package/lib/common/app-col/app-col.d.ts +45 -0
- package/lib/common/app-col/app-col.js +91 -0
- package/lib/common/app-icon/app-icon.d.ts +1 -1
- package/lib/common/app-icon/app-icon.js +1 -2
- package/lib/common/app-router-view/app-router-view.d.ts +1 -0
- package/lib/common/app-router-view/app-router-view.js +2 -1
- package/lib/common/app-row/app-row.d.ts +9 -0
- package/lib/common/app-row/app-row.js +41 -0
- package/lib/{layout → common}/control-base/control-base.js +5 -12
- package/lib/common/index.d.ts +7 -5
- package/lib/common/index.js +26 -35
- package/lib/control/app-menu/app-menu-provider.js +1 -1
- package/lib/control/app-menu/app-menu-state.d.ts +23 -0
- package/lib/control/app-menu/app-menu-state.js +23 -0
- package/lib/control/app-menu/app-menu.controller.d.ts +52 -0
- package/lib/control/app-menu/app-menu.controller.js +91 -0
- package/lib/control/app-menu/app-menu.d.ts +10 -7
- package/lib/control/app-menu/app-menu.js +7 -11
- package/lib/control/app-menu/index.js +35 -5
- package/lib/control/form/form/form-control.d.ts +34 -0
- package/lib/control/form/form/form-state.d.ts +36 -0
- package/lib/control/form/form/form-state.js +39 -0
- package/lib/control/form/form/form.controller.d.ts +129 -0
- package/lib/control/form/form/form.controller.js +199 -0
- package/lib/control/form/form/index.js +46 -0
- package/lib/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
- package/lib/control/form/form-detail/form-detail/form-detail-state.js +72 -0
- package/lib/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
- package/lib/control/form/form-detail/form-detail/form-detail.js +176 -0
- package/lib/control/form/form-detail/form-detail/index.d.ts +2 -0
- package/lib/{views → control/form/form-detail/form-detail}/index.js +6 -8
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
- package/lib/control/form/form-detail/form-group-panel/index.d.ts +3 -0
- package/lib/control/form/form-detail/form-group-panel/index.js +26 -0
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
- package/lib/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
- package/lib/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
- package/lib/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
- package/lib/control/form/form-detail/form-item/form-item.d.ts +28 -0
- package/lib/control/form/form-detail/form-item/index.d.ts +3 -0
- package/lib/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
- package/lib/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
- package/lib/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
- package/lib/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/lib/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
- package/lib/control/form/form-detail/index.d.ts +3 -0
- package/lib/control/form/form-detail/index.js +26 -0
- package/lib/control/form/index.d.ts +8 -0
- package/lib/control/form/index.js +32 -0
- package/lib/control/form/search-form/index.js +15 -0
- package/lib/control/form/search-form/search-form-provider.d.ts +13 -0
- package/lib/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
- package/lib/control/form/search-form/search-form-state.d.ts +19 -0
- package/lib/control/form/search-form/search-form-state.js +22 -0
- package/lib/control/form/search-form/search-form.controller.d.ts +86 -0
- package/lib/control/form/search-form/search-form.controller.js +128 -0
- package/{es/layout/view-shell/view-shell.d.ts → lib/control/form/search-form/search-form.d.ts} +17 -22
- package/lib/control/grid/grid/grid-column.controller.d.ts +76 -0
- package/lib/control/grid/grid/grid-column.controller.js +89 -0
- package/{es/control/grid-control → lib/control/grid/grid}/grid-control.util.d.ts +3 -2
- package/lib/control/grid/grid/grid-row.controller.d.ts +77 -0
- package/lib/control/grid/grid/grid-row.controller.js +85 -0
- package/lib/control/grid/grid/grid-state.d.ts +19 -0
- package/lib/control/grid/grid/grid-state.js +23 -0
- package/lib/control/grid/grid/grid.controller.d.ts +225 -0
- package/lib/control/grid/grid/grid.controller.js +386 -0
- package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
- package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +2 -2
- package/lib/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
- package/lib/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
- package/lib/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
- package/lib/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
- package/lib/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
- package/lib/control/grid/index.js +35 -0
- package/lib/control/index.d.ts +4 -2
- package/lib/control/index.js +22 -6
- package/lib/control/panel/index.js +35 -0
- package/lib/control/panel/panel/index.d.ts +4 -0
- package/lib/control/panel/panel/index.js +34 -0
- package/lib/control/panel/panel/panel-item-state.d.ts +47 -0
- package/lib/control/panel/panel/panel-item-state.js +58 -0
- package/lib/control/panel/panel/panel-item.controller.d.ts +71 -0
- package/lib/control/panel/panel/panel-item.controller.js +135 -0
- package/lib/control/panel/panel/panel-state.d.ts +21 -0
- package/lib/control/panel/panel/panel-state.js +24 -0
- package/lib/control/panel/panel/panel.controller.d.ts +114 -0
- package/lib/control/panel/panel/panel.controller.js +187 -0
- package/lib/control/panel/view-layout-panel/index.d.ts +3 -0
- package/lib/control/panel/view-layout-panel/index.js +26 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
- package/lib/control/{toolbar-control → toolbar}/index.js +5 -5
- package/{es/control/toolbar-control → lib/control/toolbar}/toolbar-control.d.ts +4 -10
- package/lib/control/toolbar/toolbar-state.d.ts +24 -0
- package/lib/control/toolbar/toolbar-state.js +29 -0
- package/lib/control/toolbar/toolbar.controllerr.d.ts +33 -0
- package/lib/control/toolbar/toolbar.controllerr.js +81 -0
- package/lib/editor/index.d.ts +5 -0
- package/lib/editor/index.js +14 -0
- package/lib/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
- package/lib/editor/text-box/index.d.ts +1 -0
- package/lib/editor/text-box/index.js +7 -0
- package/lib/editor/text-box/text-box-provider.d.ts +18 -0
- package/lib/editor/text-box/text-box-provider.js +29 -0
- package/lib/editor/text-box/text-box.controller.d.ts +20 -0
- package/lib/editor/text-box/text-box.controller.js +22 -0
- package/lib/index.d.ts +9 -2
- package/lib/index.js +45 -12
- package/lib/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
- package/lib/panel-component/auth-userinfo/index.js +23 -0
- package/lib/panel-component/index.d.ts +10 -0
- package/lib/panel-component/index.js +55 -0
- package/lib/panel-component/nav-pos/index.js +30 -0
- package/lib/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
- package/lib/panel-component/nav-pos/nav-pos-provider.js +20 -0
- package/lib/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
- package/lib/panel-component/nav-pos/nav-pos-state.js +17 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.js +103 -0
- package/lib/panel-component/nav-pos/nav-pos.d.ts +27 -0
- package/lib/panel-component/nav-tabs/index.js +20 -0
- package/lib/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
- package/lib/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
- package/lib/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
- package/lib/panel-component/nav-tabs/nav-tabs-state.js +18 -0
- package/lib/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
- package/lib/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
- package/lib/panel-component/panel-container/index.js +33 -0
- package/lib/panel-component/panel-container/panel-container-provider.d.ts +16 -0
- package/lib/panel-component/panel-container/panel-container-provider.js +20 -0
- package/lib/panel-component/panel-container/panel-container-state.d.ts +12 -0
- package/lib/panel-component/panel-container/panel-container-state.js +6 -0
- package/lib/panel-component/panel-container/panel-container.controller.d.ts +14 -0
- package/lib/panel-component/panel-container/panel-container.controller.js +11 -0
- package/lib/panel-component/panel-container/panel-container.d.ts +28 -0
- package/lib/panel-component/panel-ctrl-pos/index.js +25 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/lib/panel-component/scroll-container/index.js +57 -0
- package/lib/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/lib/panel-component/scroll-container/scroll-container/index.js +26 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.js +26 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
- package/lib/view/index.js +15 -0
- package/{es/views/grid-view/grid-view-provider.d.ts → lib/view/view-provider.d.ts} +3 -3
- package/lib/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/lib/view-engine/grid-view-engine.d.ts +48 -0
- package/lib/view-engine/grid-view-engine.js +158 -0
- package/lib/view-engine/index-view-engine.d.ts +9 -0
- package/lib/view-engine/index-view-engine.js +20 -0
- package/lib/view-engine/index.d.ts +6 -0
- package/lib/view-engine/index.js +35 -0
- package/package.json +16 -16
- package/src/common/action-toolbar/action-toolbar.scss +31 -0
- package/src/common/action-toolbar/action-toolbar.tsx +117 -0
- package/src/common/app-col/app-col.tsx +34 -13
- package/src/common/app-icon/app-icon.tsx +0 -1
- package/src/common/app-router-view/app-router-view.tsx +2 -1
- package/src/common/app-row/app-row.tsx +2 -1
- package/src/{layout/control-layout/control-layout.scss → common/control-base/control-base.scss} +1 -1
- package/src/{layout → common}/control-base/control-base.tsx +4 -7
- package/src/common/index.ts +23 -4
- package/src/control/app-menu/app-menu-provider.ts +1 -1
- package/src/control/app-menu/app-menu.controller.ts +24 -5
- package/src/control/app-menu/app-menu.tsx +4 -13
- package/src/control/app-menu/index.ts +8 -3
- package/src/control/form/form/form-control.tsx +1 -1
- package/src/control/form/form/form.controller.ts +8 -9
- package/src/control/form/form/index.ts +4 -4
- package/src/control/form/form-detail/form-detail/form-detail-state.ts +2 -2
- package/src/control/form/form-detail/form-detail/form-detail.ts +7 -13
- package/src/control/form/form-detail/form-group-panel/form-group-panel.controller.ts +9 -5
- package/src/control/form/form-detail/form-item/form-item.controller.ts +2 -1
- package/src/control/form/form-detail/form-item/form-item.tsx +2 -4
- package/src/control/form/form-detail/form-page/form-page-item.tsx +3 -6
- package/src/control/form/search-form/index.ts +4 -4
- package/src/control/form/search-form/search-form-provider.ts +1 -1
- package/src/control/form/search-form/search-form-state.ts +9 -1
- package/src/control/form/search-form/search-form.controller.ts +21 -1
- package/src/control/form/search-form/search-form.tsx +4 -3
- package/src/control/grid/grid/grid-control.tsx +1 -1
- package/src/control/grid/grid/grid-row.controller.ts +4 -4
- package/src/control/grid/grid/grid.controller.ts +22 -14
- package/src/control/grid/grid/grid.scss +1 -0
- package/src/control/grid/grid-ua-column/grid-ua-column-provider.ts +26 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.controller.ts +80 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.scss +20 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.tsx +75 -0
- package/src/control/grid/index.ts +13 -5
- package/src/control/index.ts +1 -0
- package/src/control/panel/index.ts +6 -10
- package/src/control/panel/panel/index.ts +4 -0
- package/src/control/panel/panel/panel-item-state.ts +2 -2
- package/src/control/panel/panel/panel-item.controller.ts +7 -13
- package/src/control/panel/panel/panel.controller.ts +10 -12
- package/src/control/panel/view-layout-panel/index.ts +3 -0
- package/src/control/panel/view-layout-panel/view-layout-panel-provider.ts +1 -1
- package/src/control/panel/view-layout-panel/view-layout-panel.controller.ts +9 -2
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +6 -0
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +5 -10
- package/src/control/toolbar/index.ts +3 -3
- package/src/control/toolbar/toolbar-control.tsx +1 -2
- package/src/control/toolbar/toolbar.controllerr.ts +30 -36
- package/src/editor/index.ts +2 -2
- package/src/index.ts +14 -37
- package/src/panel-component/auth-userinfo/auth-userinfo-provider.ts +26 -0
- package/src/panel-component/auth-userinfo/auth-userinfo.scss +34 -0
- package/src/{common/app-user/app-user.tsx → panel-component/auth-userinfo/auth-userinfo.tsx} +18 -6
- package/src/panel-component/auth-userinfo/index.ts +17 -0
- package/src/panel-component/index.ts +26 -0
- package/src/panel-component/nav-pos/index.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos-provider.ts +27 -0
- package/src/panel-component/nav-pos/nav-pos-state.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos.controller.ts +117 -0
- package/src/panel-component/nav-pos/nav-pos.scss +4 -0
- package/src/panel-component/nav-pos/nav-pos.tsx +79 -0
- package/src/panel-component/nav-tabs/index.ts +14 -0
- package/src/panel-component/nav-tabs/nav-tabs-provider.ts +27 -0
- package/src/panel-component/nav-tabs/nav-tabs-state.ts +24 -0
- package/src/panel-component/nav-tabs/nav-tabs.controller.ts +146 -0
- package/src/panel-component/nav-tabs/nav-tabs.scss +64 -0
- package/src/panel-component/nav-tabs/nav-tabs.tsx +141 -0
- package/src/{control/panel → panel-component}/panel-container/index.ts +3 -2
- package/src/{control/panel → panel-component}/panel-container/panel-container-provider.ts +1 -2
- package/src/{control/panel → panel-component}/panel-container/panel-container-state.ts +1 -1
- package/src/{control/panel → panel-component}/panel-container/panel-container.controller.ts +1 -1
- package/src/{control/panel → panel-component}/panel-container/panel-container.tsx +2 -4
- package/src/{control/panel → panel-component}/panel-ctrl-pos/index.ts +3 -2
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.ts +2 -3
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.ts +1 -2
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +4 -0
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.tsx +3 -2
- package/src/panel-component/scroll-container/index.ts +44 -0
- package/src/panel-component/scroll-container/scroll-container/index.ts +3 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container-provider.ts +27 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +30 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +108 -0
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +3 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.ts +27 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +5 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +59 -0
- package/src/view/ibiz-view.scss +13 -0
- package/src/view/ibiz-view.tsx +75 -0
- package/src/{views/view → view}/index.ts +3 -3
- package/src/view-engine/grid-view-engine.ts +200 -0
- package/src/view-engine/index-view-engine.ts +34 -0
- package/src/view-engine/index.ts +24 -0
- package/es/common/app-user/app-user.d.ts +0 -8
- package/es/common/app-user/app-user.js +0 -60
- package/es/common/grid-pagination/index.d.ts +0 -40
- package/es/common/grid-pagination/index.js +0 -9
- package/es/common/quick-search/quick-search.d.ts +0 -30
- package/es/common/quick-search/quick-search.js +0 -63
- package/es/common/tab-page-exp/tab-page-exp.d.ts +0 -69
- package/es/common/tab-page-exp/tab-page-exp.js +0 -117
- package/es/control/app-menu/index.d.ts +0 -53
- package/es/control/grid-control/grid-control.d.ts +0 -158
- package/es/control/grid-control/index.d.ts +0 -114
- package/es/control/grid-control/index.js +0 -23
- package/es/control/toolbar-control/index.d.ts +0 -43
- package/es/control/toolbar-control/index.js +0 -12
- package/es/layout/app-layout/app-layout.d.ts +0 -32
- package/es/layout/control-base/control-base.d.ts +0 -17
- package/es/layout/control-shell/control-shell.d.ts +0 -18
- package/es/layout/index.d.ts +0 -10
- package/es/layout/index.js +0 -20
- package/es/layout/md-view-base/md-view-base.d.ts +0 -12
- package/es/layout/md-view-base/md-view-base.js +0 -35
- package/es/layout/router-shell/router-shell.d.ts +0 -27
- package/es/layout/router-shell/router-shell.js +0 -96
- package/es/layout/view-base/view-base.d.ts +0 -18
- package/es/layout/view-layout/view-layout.d.ts +0 -44
- package/es/util/install.d.ts +0 -3
- package/es/util/install.js +0 -9
- package/es/views/edit-view/index.d.ts +0 -3
- package/es/views/edit-view/index.js +0 -9
- package/es/views/edit-view/src/edit-view.css +0 -6
- package/es/views/edit-view/src/edit-view.d.ts +0 -3
- package/es/views/edit-view/src/edit-view.js +0 -15
- package/es/views/grid-view/grid-view-engine.d.ts +0 -8
- package/es/views/grid-view/grid-view-engine.js +0 -21
- package/es/views/grid-view/grid-view.d.ts +0 -32
- package/es/views/grid-view/grid-view.js +0 -64
- package/es/views/grid-view/index.d.ts +0 -32
- package/es/views/grid-view/index.js +0 -14
- package/es/views/index-view/index-view-default.d.ts +0 -22
- package/es/views/index-view/index-view-default.js +0 -117
- package/es/views/index-view/index-view-engine.d.ts +0 -6
- package/es/views/index-view/index-view-engine.js +0 -9
- package/es/views/index-view/index-view-exp.d.ts +0 -29
- package/es/views/index-view/index-view-exp.js +0 -177
- package/es/views/index-view/index-view-provider.d.ts +0 -13
- package/es/views/index-view/index-view.d.ts +0 -44
- package/es/views/index-view/index-view.js +0 -155
- package/es/views/index-view/index.d.ts +0 -44
- package/es/views/index-view/index.js +0 -14
- package/es/views/index.d.ts +0 -4
- package/es/views/index.js +0 -6
- package/lib/common/app-user/app-user.d.ts +0 -8
- package/lib/common/app-user/app-user.js +0 -60
- package/lib/common/grid-pagination/index.d.ts +0 -40
- package/lib/common/grid-pagination/index.js +0 -9
- package/lib/common/quick-search/quick-search.d.ts +0 -30
- package/lib/common/quick-search/quick-search.js +0 -63
- package/lib/common/tab-page-exp/tab-page-exp.d.ts +0 -69
- package/lib/common/tab-page-exp/tab-page-exp.js +0 -117
- package/lib/control/app-menu/index.d.ts +0 -53
- package/lib/control/grid-control/grid-control.d.ts +0 -158
- package/lib/control/grid-control/index.d.ts +0 -114
- package/lib/control/grid-control/index.js +0 -24
- package/lib/control/toolbar-control/index.d.ts +0 -43
- package/lib/layout/app-layout/app-layout.d.ts +0 -32
- package/lib/layout/control-base/control-base.d.ts +0 -17
- package/lib/layout/control-shell/control-shell.d.ts +0 -18
- package/lib/layout/index.d.ts +0 -10
- package/lib/layout/index.js +0 -44
- package/lib/layout/md-view-base/md-view-base.d.ts +0 -12
- package/lib/layout/md-view-base/md-view-base.js +0 -35
- package/lib/layout/router-shell/router-shell.d.ts +0 -27
- package/lib/layout/router-shell/router-shell.js +0 -96
- package/lib/layout/view-base/view-base.d.ts +0 -18
- package/lib/layout/view-layout/view-layout.d.ts +0 -44
- package/lib/util/install.d.ts +0 -3
- package/lib/util/install.js +0 -9
- package/lib/views/edit-view/index.d.ts +0 -3
- package/lib/views/edit-view/index.js +0 -8
- package/lib/views/edit-view/src/edit-view.css +0 -6
- package/lib/views/edit-view/src/edit-view.d.ts +0 -3
- package/lib/views/edit-view/src/edit-view.js +0 -14
- package/lib/views/grid-view/grid-view-engine.d.ts +0 -8
- package/lib/views/grid-view/grid-view-engine.js +0 -21
- package/lib/views/grid-view/grid-view.d.ts +0 -32
- package/lib/views/grid-view/grid-view.js +0 -64
- package/lib/views/grid-view/index.d.ts +0 -32
- package/lib/views/grid-view/index.js +0 -14
- package/lib/views/index-view/index-view-default.d.ts +0 -22
- package/lib/views/index-view/index-view-default.js +0 -117
- package/lib/views/index-view/index-view-engine.d.ts +0 -6
- package/lib/views/index-view/index-view-engine.js +0 -9
- package/lib/views/index-view/index-view-exp.d.ts +0 -29
- package/lib/views/index-view/index-view-exp.js +0 -177
- package/lib/views/index-view/index-view-provider.d.ts +0 -13
- package/lib/views/index-view/index-view.d.ts +0 -44
- package/lib/views/index-view/index-view.js +0 -155
- package/lib/views/index-view/index.d.ts +0 -44
- package/lib/views/index-view/index.js +0 -14
- package/lib/views/index.d.ts +0 -4
- package/src/common/app-user/app-user.scss +0 -32
- package/src/common/quick-search/quick-search.scss +0 -15
- package/src/common/quick-search/quick-search.tsx +0 -59
- package/src/common/tab-page-exp/tab-page-exp.scss +0 -43
- package/src/common/tab-page-exp/tab-page-exp.tsx +0 -125
- package/src/control/panel/view-layout-panel.json +0 -141
- package/src/layout/app-layout/app-layout.scss +0 -133
- package/src/layout/app-layout/app-layout.tsx +0 -149
- package/src/layout/control-layout/control-layout.tsx +0 -29
- package/src/layout/index.ts +0 -15
- package/src/layout/md-view-base/md-view-base.tsx +0 -69
- package/src/layout/view-base/view-base.scss +0 -11
- package/src/layout/view-base/view-base.tsx +0 -147
- package/src/layout/view-layout/view-layout.scss +0 -198
- package/src/layout/view-layout/view-layout.tsx +0 -115
- package/src/util/install.ts +0 -11
- package/src/views/grid-view/grid-view-engine.ts +0 -68
- package/src/views/grid-view/index.ts +0 -12
- package/src/views/index-view/index-view-default.ts +0 -168
- package/src/views/index-view/index-view-engine.ts +0 -10
- package/src/views/index-view/index-view-exp.ts +0 -261
- package/src/views/index-view/index-view-provider.ts +0 -14
- package/src/views/index-view/index-view.tsx +0 -249
- package/src/views/index-view/index.ts +0 -14
- package/src/views/index.ts +0 -3
- package/src/views/view/ibiz-view.tsx +0 -49
- /package/es/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
- /package/es/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
- /package/es/control/{grid-control → grid/grid}/grid-provider.js +0 -0
- /package/es/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
- /package/es/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
- /package/es/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-provider.js +0 -0
- /package/lib/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
- /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
- /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
- /package/src/{control/panel → panel-component}/panel-container/panel-container.scss +0 -0
- /package/src/{views/view → view}/view-provider.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isOverlap } from '@ibiz-template/core';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
calcLayoutHeightWidth,
|
|
4
4
|
FormNotifyState,
|
|
5
5
|
verifyFormGroupLogic,
|
|
6
6
|
} from '@ibiz-template/runtime';
|
|
@@ -89,14 +89,15 @@ export class FormDetailController<T extends IDEFormDetail = IDEFormDetail> {
|
|
|
89
89
|
this.state.showMoreMode = this.model.showMoreMode!;
|
|
90
90
|
|
|
91
91
|
// 初始化布局参数
|
|
92
|
-
const {
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
const { layoutPos, sysCss, detailType } = this.model;
|
|
93
|
+
|
|
94
|
+
// 初始化高宽
|
|
95
|
+
if (layoutPos) {
|
|
96
|
+
const { width, height } = calcLayoutHeightWidth(layoutPos);
|
|
95
97
|
this.state.layoutController.width = `${width}`;
|
|
96
|
-
}
|
|
97
|
-
if (height) {
|
|
98
98
|
this.state.layoutController.height = `${height}`;
|
|
99
99
|
}
|
|
100
|
+
|
|
100
101
|
// 给col添加各自类型的类名
|
|
101
102
|
this.state.layoutController.extraClass = `ibiz-form-col__${detailType!.toLowerCase()} `;
|
|
102
103
|
if (sysCss) {
|
|
@@ -111,13 +112,6 @@ export class FormDetailController<T extends IDEFormDetail = IDEFormDetail> {
|
|
|
111
112
|
return this.state.visible;
|
|
112
113
|
},
|
|
113
114
|
});
|
|
114
|
-
|
|
115
|
-
if (this.model.layoutPos) {
|
|
116
|
-
// 设置自身内容样式
|
|
117
|
-
this.state.layoutController.contentStyle = calcLayoutContentStyle(
|
|
118
|
-
this.model.layoutPos!,
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
115
|
}
|
|
122
116
|
|
|
123
117
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FormNotifyState,
|
|
3
3
|
ButtonContainerState,
|
|
4
|
-
|
|
4
|
+
UIActionButtonState,
|
|
5
5
|
} from '@ibiz-template/runtime';
|
|
6
6
|
import { IDEFormGroupPanel, IUIActionGroupDetail } from '@ibiz/model-core';
|
|
7
7
|
import { FormDetailController } from '../form-detail/form-detail';
|
|
@@ -27,7 +27,7 @@ export class FormGroupPanelController<
|
|
|
27
27
|
|
|
28
28
|
protected async onInit(): Promise<void> {
|
|
29
29
|
super.onInit();
|
|
30
|
-
this.initActionStates();
|
|
30
|
+
await this.initActionStates();
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
async formStateNotify(state: FormNotifyState): Promise<void> {
|
|
@@ -44,7 +44,7 @@ export class FormGroupPanelController<
|
|
|
44
44
|
* @author lxm
|
|
45
45
|
* @date 2022-09-07 21:09:43
|
|
46
46
|
*/
|
|
47
|
-
initActionStates() {
|
|
47
|
+
async initActionStates() {
|
|
48
48
|
// 操作列按钮状态控制
|
|
49
49
|
const { uiactionGroup } = this.model;
|
|
50
50
|
if (!uiactionGroup?.uiactionGroupDetails?.length) {
|
|
@@ -54,11 +54,15 @@ export class FormGroupPanelController<
|
|
|
54
54
|
uiactionGroup.uiactionGroupDetails.forEach(detail => {
|
|
55
55
|
const actionid = detail.uiactionId;
|
|
56
56
|
if (actionid) {
|
|
57
|
-
const buttonState = new
|
|
57
|
+
const buttonState = new UIActionButtonState(
|
|
58
|
+
detail.id!,
|
|
59
|
+
this.form.context.srfappid!,
|
|
60
|
+
actionid,
|
|
61
|
+
);
|
|
58
62
|
containerState.addState(detail.id!, buttonState);
|
|
59
63
|
}
|
|
60
64
|
});
|
|
61
|
-
containerState.update();
|
|
65
|
+
await containerState.update();
|
|
62
66
|
this.state.actionGroupState = containerState;
|
|
63
67
|
}
|
|
64
68
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
EditorController,
|
|
4
4
|
FormNotifyState,
|
|
5
|
+
getEditorProvider,
|
|
5
6
|
IEditorProvider,
|
|
6
7
|
Srfuf,
|
|
7
8
|
} from '@ibiz-template/runtime';
|
|
@@ -130,7 +131,7 @@ export class FormItemController extends FormDetailController<IDEFormItem> {
|
|
|
130
131
|
this.state.required = !this.model.allowEmpty;
|
|
131
132
|
// 初始化编辑器控制器
|
|
132
133
|
if (this.model.editor && this.model.editor.editorType !== 'HIDDEN') {
|
|
133
|
-
this.editorProvider = await
|
|
134
|
+
this.editorProvider = await getEditorProvider(this.model.editor);
|
|
134
135
|
if (this.editorProvider) {
|
|
135
136
|
this.editor = await this.editorProvider.createController(
|
|
136
137
|
this.model.editor,
|
|
@@ -2,7 +2,6 @@ import { defineComponent, h, PropType, resolveComponent } from 'vue';
|
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './form-item.scss';
|
|
4
4
|
import { IDEFormItem } from '@ibiz/model-core';
|
|
5
|
-
import { kebabCase } from 'lodash-es';
|
|
6
5
|
import { FormItemController } from './form-item.controller';
|
|
7
6
|
|
|
8
7
|
export const FormItem = defineComponent({
|
|
@@ -20,12 +19,11 @@ export const FormItem = defineComponent({
|
|
|
20
19
|
setup(props) {
|
|
21
20
|
const ns = useNamespace('form-item');
|
|
22
21
|
const c = props.controller;
|
|
23
|
-
const modelClass = kebabCase(props.modelData.id!);
|
|
24
22
|
const onValueChange = (val: unknown, name?: string) => {
|
|
25
23
|
props.controller.setDataValue(val, name);
|
|
26
24
|
};
|
|
27
25
|
|
|
28
|
-
return { ns, c, onValueChange
|
|
26
|
+
return { ns, c, onValueChange };
|
|
29
27
|
},
|
|
30
28
|
render() {
|
|
31
29
|
if (!this.c.state.visible) {
|
|
@@ -54,7 +52,7 @@ export const FormItem = defineComponent({
|
|
|
54
52
|
|
|
55
53
|
return (
|
|
56
54
|
<form-item-container
|
|
57
|
-
class={[this.ns.b(), this.ns.m(this.
|
|
55
|
+
class={[this.ns.b(), this.ns.m(this.modelData.id)]}
|
|
58
56
|
required={this.c.state.required}
|
|
59
57
|
error={this.c.state.error}
|
|
60
58
|
label={this.modelData.caption}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
2
|
import { IDEFormPage } from '@ibiz/model-core';
|
|
3
|
-
import { kebabCase } from 'lodash-es';
|
|
4
3
|
import { defineComponent, PropType, VNode } from 'vue';
|
|
5
4
|
import { FormPageController } from './form-page.controller';
|
|
6
5
|
|
|
@@ -20,11 +19,9 @@ export const FormPageItem = defineComponent({
|
|
|
20
19
|
required: true,
|
|
21
20
|
},
|
|
22
21
|
},
|
|
23
|
-
setup(
|
|
22
|
+
setup() {
|
|
24
23
|
const ns = useNamespace('form-page-item');
|
|
25
|
-
|
|
26
|
-
const modelClass = kebabCase(props.modelData.id!);
|
|
27
|
-
return { ns, modelClass };
|
|
24
|
+
return { ns };
|
|
28
25
|
},
|
|
29
26
|
render() {
|
|
30
27
|
const defaultSlots: VNode[] = this.$slots.default?.() || [];
|
|
@@ -36,7 +33,7 @@ export const FormPageItem = defineComponent({
|
|
|
36
33
|
});
|
|
37
34
|
return (
|
|
38
35
|
<app-row
|
|
39
|
-
class={[this.ns.b(), this.ns.m(this.
|
|
36
|
+
class={[this.ns.b(), this.ns.m(this.modelData.id)]}
|
|
40
37
|
layout={this.modelData.layout}
|
|
41
38
|
>
|
|
42
39
|
{defaultSlots.map(slot => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ControlType } from '@ibiz-template/runtime';
|
|
1
|
+
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
4
|
import SearchForm from './search-form';
|
|
4
5
|
import { SearchFormProvider } from './search-form-provider';
|
|
5
|
-
import { withInstall } from '../../../util/install';
|
|
6
6
|
|
|
7
7
|
export const IBizSearchForm = withInstall(SearchForm, function (v: App) {
|
|
8
8
|
v.component(SearchForm.name, SearchForm);
|
|
9
|
-
|
|
9
|
+
registerControlProvider(
|
|
10
10
|
ControlType.SEARCHFORM,
|
|
11
|
-
new SearchFormProvider(),
|
|
11
|
+
() => new SearchFormProvider(),
|
|
12
12
|
);
|
|
13
13
|
});
|
|
14
14
|
|
|
@@ -9,4 +9,12 @@ import { FormState } from '../form/form-state';
|
|
|
9
9
|
* @class SearchFormState
|
|
10
10
|
* @extends {FormState}
|
|
11
11
|
*/
|
|
12
|
-
export class SearchFormState extends FormState {
|
|
12
|
+
export class SearchFormState extends FormState {
|
|
13
|
+
/**
|
|
14
|
+
* 是否显示搜索表单
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2023-05-09 03:29:09
|
|
17
|
+
* @type {boolean}
|
|
18
|
+
*/
|
|
19
|
+
visible: boolean = true;
|
|
20
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ControllerEvent,
|
|
3
3
|
FormNotifyState,
|
|
4
|
+
ISearchFormController,
|
|
4
5
|
ISearchFormEvent,
|
|
5
6
|
SearchFormService,
|
|
6
7
|
} from '@ibiz-template/runtime';
|
|
@@ -17,7 +18,10 @@ import { SearchFormState } from './search-form-state';
|
|
|
17
18
|
* @class SearchFormController
|
|
18
19
|
* @extends {FormController<IDESearchForm>}
|
|
19
20
|
*/
|
|
20
|
-
export class SearchFormController
|
|
21
|
+
export class SearchFormController
|
|
22
|
+
extends FormController<IDESearchForm>
|
|
23
|
+
implements ISearchFormController
|
|
24
|
+
{
|
|
21
25
|
declare evt: ControllerEvent<ISearchFormEvent>;
|
|
22
26
|
|
|
23
27
|
/**
|
|
@@ -132,4 +136,20 @@ export class SearchFormController extends FormController<IDESearchForm> {
|
|
|
132
136
|
await this.onSearchButtonClick();
|
|
133
137
|
}
|
|
134
138
|
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* 设置搜索表单的显示与否
|
|
142
|
+
* @author lxm
|
|
143
|
+
* @date 2023-05-09 03:34:34
|
|
144
|
+
* @param {boolean} [visible] 不传则是切换当前的显示状态。
|
|
145
|
+
*/
|
|
146
|
+
setVisible(visible?: boolean) {
|
|
147
|
+
const setVisible =
|
|
148
|
+
typeof visible === 'boolean' ? visible : !this.state.visible;
|
|
149
|
+
if (setVisible !== this.state.visible) {
|
|
150
|
+
this.state.visible = setVisible;
|
|
151
|
+
} else {
|
|
152
|
+
ibiz.log.debug('搜索表单显示没变化');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
135
155
|
}
|
|
@@ -5,7 +5,7 @@ import { SearchFormController } from './search-form.controller';
|
|
|
5
5
|
import './search-form.scss';
|
|
6
6
|
|
|
7
7
|
export const SearchForm = defineComponent({
|
|
8
|
-
name: '
|
|
8
|
+
name: 'SearchFormControl',
|
|
9
9
|
props: {
|
|
10
10
|
modelData: {
|
|
11
11
|
type: Object as PropType<IDESearchForm>,
|
|
@@ -18,7 +18,7 @@ export const SearchForm = defineComponent({
|
|
|
18
18
|
const c = useControlController(
|
|
19
19
|
(...args) => new SearchFormController(...args),
|
|
20
20
|
);
|
|
21
|
-
const ns = useNamespace(
|
|
21
|
+
const ns = useNamespace(`control-${c.model.controlType!.toLowerCase()}`);
|
|
22
22
|
|
|
23
23
|
c.evt.on('onCreated', () => {
|
|
24
24
|
const keys = Object.keys(c.details);
|
|
@@ -32,7 +32,8 @@ export const SearchForm = defineComponent({
|
|
|
32
32
|
},
|
|
33
33
|
|
|
34
34
|
render() {
|
|
35
|
-
|
|
35
|
+
const { state } = this.c;
|
|
36
|
+
if (!state.complete || !state.visible) {
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
39
|
return (
|
|
@@ -41,8 +41,8 @@ export const GridControl = defineComponent({
|
|
|
41
41
|
isExpView: { type: Boolean, required: false },
|
|
42
42
|
},
|
|
43
43
|
setup() {
|
|
44
|
-
const ns = useNamespace('control-grid');
|
|
45
44
|
const c = useControlController((...args) => new GridController(...args));
|
|
45
|
+
const ns = useNamespace(`control-${c.model.controlType!.toLowerCase()}`);
|
|
46
46
|
|
|
47
47
|
const {
|
|
48
48
|
tableRef,
|
|
@@ -87,10 +87,10 @@ export class GridRowController extends MDItemController {
|
|
|
87
87
|
this.showRowEdit = true;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
//
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
// 初始化操作列状态
|
|
91
|
+
Object.values(grid.uaColumns).forEach(column => {
|
|
92
|
+
column.initActionStates(this);
|
|
93
|
+
});
|
|
94
94
|
|
|
95
95
|
// // 初始化编辑项状态
|
|
96
96
|
// Object.values(grid.editItems).forEach(editItem => {
|
|
@@ -8,19 +8,21 @@ import { IDEGrid, IDEGridColumn } from '@ibiz/model-core';
|
|
|
8
8
|
import {
|
|
9
9
|
ControllerEvent,
|
|
10
10
|
ControlVO,
|
|
11
|
+
getGridColumnProvider,
|
|
11
12
|
GridNotifyState,
|
|
12
13
|
GridService,
|
|
13
14
|
IGridColumnProvider,
|
|
15
|
+
IGridController,
|
|
14
16
|
IGridEvent,
|
|
15
17
|
MDController,
|
|
16
18
|
Srfuf,
|
|
17
19
|
} from '@ibiz-template/runtime';
|
|
18
20
|
// import { GridEditItemController } from '../backup/grid-edit-item';
|
|
19
|
-
// import { GridUAColumnController } from '../backup/grid-ua-column';
|
|
20
21
|
import { GridFieldColumnController } from '../grid-field-column/grid-field-column.controller';
|
|
21
22
|
import { GridColumnController } from './grid-column.controller';
|
|
22
23
|
import { GridRowController } from './grid-row.controller';
|
|
23
24
|
import { GridState } from './grid-state';
|
|
25
|
+
import { GridUAColumnController } from '../grid-ua-column/grid-ua-column.controller';
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* 表格控制器
|
|
@@ -31,7 +33,10 @@ import { GridState } from './grid-state';
|
|
|
31
33
|
* @class GridController
|
|
32
34
|
* @extends {MDController<GridModel>}
|
|
33
35
|
*/
|
|
34
|
-
export class GridController
|
|
36
|
+
export class GridController
|
|
37
|
+
extends MDController<IDEGrid>
|
|
38
|
+
implements IGridController
|
|
39
|
+
{
|
|
35
40
|
state = new GridState();
|
|
36
41
|
|
|
37
42
|
declare evt: ControllerEvent<IGridEvent>;
|
|
@@ -63,14 +68,14 @@ export class GridController extends MDController<IDEGrid> {
|
|
|
63
68
|
*/
|
|
64
69
|
fieldColumns: { [key: string]: GridFieldColumnController } = {};
|
|
65
70
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
/**
|
|
72
|
+
* 所有表格操作列的控制器
|
|
73
|
+
*
|
|
74
|
+
* @author lxm
|
|
75
|
+
* @date 2022-08-24 20:08:07
|
|
76
|
+
* @type {{ [key: string]: GridUAColumnController }}
|
|
77
|
+
*/
|
|
78
|
+
uaColumns: { [key: string]: GridUAColumnController } = {};
|
|
74
79
|
|
|
75
80
|
// /**
|
|
76
81
|
// * 所有表格编辑项的控制器
|
|
@@ -129,12 +134,12 @@ export class GridController extends MDController<IDEGrid> {
|
|
|
129
134
|
*/
|
|
130
135
|
protected async doCreated(): Promise<void> {
|
|
131
136
|
await super.doCreated();
|
|
132
|
-
console.log(this.model);
|
|
133
137
|
|
|
134
138
|
this.state.size = this.model.pagingSize || 20;
|
|
135
139
|
this.state.singleSelect = this.model.singleSelect === true;
|
|
136
140
|
this.service = new GridService(this.model);
|
|
137
141
|
await this.service.init(this.context);
|
|
142
|
+
|
|
138
143
|
// this.hasWidthFlexGrow = !!this.model.columns.find(
|
|
139
144
|
// column => column.widthFlexGrow,
|
|
140
145
|
// );
|
|
@@ -324,7 +329,10 @@ export class GridController extends MDController<IDEGrid> {
|
|
|
324
329
|
*/
|
|
325
330
|
protected async initColumnsController(column: IDEGridColumn) {
|
|
326
331
|
// 初始化适配器
|
|
327
|
-
const provider = await
|
|
332
|
+
const provider = await getGridColumnProvider(column);
|
|
333
|
+
if (!provider) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
328
336
|
this.providers[column.codeName!] = provider;
|
|
329
337
|
|
|
330
338
|
// 初始化表格列控制器
|
|
@@ -335,8 +343,8 @@ export class GridController extends MDController<IDEGrid> {
|
|
|
335
343
|
if (column.columnType === 'DEFGRIDCOLUMN') {
|
|
336
344
|
this.fieldColumns[column.codeName!] =
|
|
337
345
|
controller as GridFieldColumnController;
|
|
338
|
-
|
|
339
|
-
|
|
346
|
+
} else if (column.columnType === 'UAGRIDCOLUMN') {
|
|
347
|
+
this.uaColumns[column.codeName!] = controller as GridUAColumnController;
|
|
340
348
|
// } else if (column.columnType === 'GROUPGRIDCOLUMN') {
|
|
341
349
|
// await Promise.all(
|
|
342
350
|
// (column as IDEGridGroupColumn).degridColumns?.map(async childColumn => {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IGridColumnProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IDEGridUAColumn } from '@ibiz/model-core';
|
|
3
|
+
import { GridController } from '../grid/grid.controller';
|
|
4
|
+
import { GridUAColumnController } from './grid-ua-column.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 表格操作列适配器
|
|
8
|
+
*
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2022-09-19 22:09:03
|
|
11
|
+
* @export
|
|
12
|
+
* @class GridUAColumnProvider
|
|
13
|
+
* @implements {IGridColumnProvider}
|
|
14
|
+
*/
|
|
15
|
+
export class GridUAColumnProvider implements IGridColumnProvider {
|
|
16
|
+
component: string = 'GridUAColumn';
|
|
17
|
+
|
|
18
|
+
async createController(
|
|
19
|
+
columnModel: IDEGridUAColumn,
|
|
20
|
+
grid: GridController,
|
|
21
|
+
): Promise<GridUAColumnController> {
|
|
22
|
+
const c = new GridUAColumnController(columnModel, grid);
|
|
23
|
+
await c.init();
|
|
24
|
+
return c;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* eslint-disable no-param-reassign */
|
|
2
|
+
import { RuntimeModelError } from '@ibiz-template/core';
|
|
3
|
+
import {
|
|
4
|
+
ButtonContainerState,
|
|
5
|
+
UIActionButtonState,
|
|
6
|
+
UIActionUtil,
|
|
7
|
+
} from '@ibiz-template/runtime';
|
|
8
|
+
import { IDEGridUAColumn, IUIActionGroupDetail } from '@ibiz/model-core';
|
|
9
|
+
import { GridColumnController } from '../grid/grid-column.controller';
|
|
10
|
+
import { GridRowController } from '../grid/grid-row.controller';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 表格操作列控制器
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @author: zhujiamin
|
|
16
|
+
* @Date: 2022-09-01 18:25:20
|
|
17
|
+
*/
|
|
18
|
+
export class GridUAColumnController extends GridColumnController<IDEGridUAColumn> {
|
|
19
|
+
/**
|
|
20
|
+
* 给rowController初始化操作列的状态
|
|
21
|
+
*
|
|
22
|
+
* @author lxm
|
|
23
|
+
* @date 2022-09-07 21:09:43
|
|
24
|
+
* @param {GridRowController} row
|
|
25
|
+
*/
|
|
26
|
+
initActionStates(row: GridRowController) {
|
|
27
|
+
// 操作列按钮状态控制
|
|
28
|
+
const { deuiactionGroup } = this.model;
|
|
29
|
+
if (!deuiactionGroup) {
|
|
30
|
+
throw new RuntimeModelError(this.model, '操作列没有配置界面行为组');
|
|
31
|
+
}
|
|
32
|
+
if (!deuiactionGroup.uiactionGroupDetails?.length) {
|
|
33
|
+
ibiz.log.debug('操作列界面行为组没有配置界面行为');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const containerState = new ButtonContainerState();
|
|
37
|
+
deuiactionGroup.uiactionGroupDetails.forEach(detail => {
|
|
38
|
+
const actionid = detail.uiactionId;
|
|
39
|
+
if (actionid) {
|
|
40
|
+
const buttonState = new UIActionButtonState(
|
|
41
|
+
detail.id!,
|
|
42
|
+
this.grid.context.srfappid!,
|
|
43
|
+
actionid,
|
|
44
|
+
);
|
|
45
|
+
containerState.addState(detail.id!, buttonState);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
containerState.update(row.data.getOrigin());
|
|
49
|
+
row.uaColumnStates[this.model.codeName!] = containerState;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 触发操作列点击事件
|
|
54
|
+
*
|
|
55
|
+
* @author lxm
|
|
56
|
+
* @date 2022-09-07 22:09:46
|
|
57
|
+
* @param {IPSUIActionGroupDetail} detail
|
|
58
|
+
* @param {MouseEvent} event
|
|
59
|
+
*/
|
|
60
|
+
async onActionClick(
|
|
61
|
+
detail: IUIActionGroupDetail,
|
|
62
|
+
row: GridRowController,
|
|
63
|
+
event: MouseEvent,
|
|
64
|
+
): Promise<void> {
|
|
65
|
+
const actionId = detail.uiactionId;
|
|
66
|
+
// 行编辑切换直接调表格方法,不走视图逻辑
|
|
67
|
+
if (actionId === 'ToggleRowEdit') {
|
|
68
|
+
await this.grid.toggleRowEdit(row);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
await UIActionUtil.exec(actionId!, {
|
|
73
|
+
context: this.context,
|
|
74
|
+
params: this.params,
|
|
75
|
+
data: [row.data],
|
|
76
|
+
view: this.grid.view,
|
|
77
|
+
event,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@include b(grid-ua-column) {
|
|
2
|
+
@include set-component-css-var('grid-ua-column', $grid-ua-column);
|
|
3
|
+
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: getCssVar('grid-ua-column', 'justify-content');
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding: getCssVar('grid-ua-column', 'cell-padding');
|
|
10
|
+
|
|
11
|
+
.el-button {
|
|
12
|
+
color: getCssVar('grid-ua-column', 'btn-color');
|
|
13
|
+
background-color: getCssVar('grid-ua-column', 'btn-bg-color');
|
|
14
|
+
box-shadow: none;
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
color: getCssVar('grid-ua-column', 'btn-hover-color');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { IUIActionGroupDetail } from '@ibiz/model-core';
|
|
2
|
+
import { useNamespace } from 'element-plus';
|
|
3
|
+
import { defineComponent, computed } from 'vue';
|
|
4
|
+
import { GridRowController } from '../grid/grid-row.controller';
|
|
5
|
+
import { GridUAColumnController } from './grid-ua-column.controller';
|
|
6
|
+
import './grid-ua-column.scss';
|
|
7
|
+
|
|
8
|
+
export const GridUAColumn = defineComponent({
|
|
9
|
+
name: 'GridUAColumn',
|
|
10
|
+
props: {
|
|
11
|
+
controller: {
|
|
12
|
+
type: GridUAColumnController,
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
row: {
|
|
16
|
+
type: GridRowController,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
setup(props) {
|
|
21
|
+
const ns = useNamespace('grid-ua-column');
|
|
22
|
+
const onStopPropagation = (e: MouseEvent) => {
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
};
|
|
25
|
+
const onActionClick = async (
|
|
26
|
+
detail: IUIActionGroupDetail,
|
|
27
|
+
event: MouseEvent,
|
|
28
|
+
) => {
|
|
29
|
+
await props.controller.onActionClick(detail, props.row, event);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// 操作列对齐方式样式变量
|
|
33
|
+
const alignStyle = computed(() => {
|
|
34
|
+
let justContent = '';
|
|
35
|
+
switch (props.controller.model.align) {
|
|
36
|
+
case 'LEFT':
|
|
37
|
+
justContent = 'flex-start';
|
|
38
|
+
break;
|
|
39
|
+
case 'RIGHT':
|
|
40
|
+
justContent = 'flex-end';
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
justContent = 'center';
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
return ns.cssVarBlock({ 'justify-content': justContent });
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
return { ns, alignStyle, onStopPropagation, onActionClick };
|
|
50
|
+
},
|
|
51
|
+
render() {
|
|
52
|
+
return (
|
|
53
|
+
<div
|
|
54
|
+
class={this.ns.b()}
|
|
55
|
+
style={this.alignStyle}
|
|
56
|
+
onDblclick={this.onStopPropagation}
|
|
57
|
+
onClick={this.onStopPropagation}
|
|
58
|
+
>
|
|
59
|
+
{this.controller.model.deuiactionGroup?.uiactionGroupDetails
|
|
60
|
+
?.length && (
|
|
61
|
+
<action-toolbar
|
|
62
|
+
action-details={
|
|
63
|
+
this.controller.model.deuiactionGroup.uiactionGroupDetails
|
|
64
|
+
}
|
|
65
|
+
actions-state={
|
|
66
|
+
this.row.uaColumnStates[this.controller.model.codeName!]
|
|
67
|
+
}
|
|
68
|
+
onActionClick={this.onActionClick}
|
|
69
|
+
></action-toolbar>
|
|
70
|
+
)}
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
export default GridUAColumn;
|
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ControlType,
|
|
3
|
+
registerControlProvider,
|
|
4
|
+
registerGridColumnProvider,
|
|
5
|
+
} from '@ibiz-template/runtime';
|
|
2
6
|
import { App } from 'vue';
|
|
7
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
8
|
import { GridControl } from './grid/grid-control';
|
|
4
9
|
import GridFieldColumn from './grid-field-column/grid-field-column';
|
|
5
|
-
import { withInstall } from '../../util/install';
|
|
6
10
|
import { GridProvider } from './grid/grid-provider';
|
|
7
11
|
import { GridFieldColumnProvider } from './grid-field-column/grid-field-column-provider';
|
|
8
12
|
import GridPagination from './grid-pagination/grid-pagination';
|
|
9
13
|
import { GridController } from './grid/grid.controller';
|
|
14
|
+
import { GridUAColumnProvider } from './grid-ua-column/grid-ua-column-provider';
|
|
15
|
+
import GridUAColumn from './grid-ua-column/grid-ua-column';
|
|
10
16
|
|
|
11
17
|
export { GridControl, GridFieldColumn, GridController };
|
|
12
18
|
export const IBizGrid = withInstall(GridControl, function (v: App) {
|
|
13
19
|
v.component(GridControl.name, GridControl);
|
|
14
20
|
v.component(GridFieldColumn.name, GridFieldColumn);
|
|
21
|
+
v.component(GridUAColumn.name, GridUAColumn);
|
|
15
22
|
v.component(GridPagination.name, GridPagination);
|
|
16
|
-
|
|
23
|
+
registerGridColumnProvider(
|
|
17
24
|
'DEFGRIDCOLUMN',
|
|
18
|
-
new GridFieldColumnProvider(),
|
|
25
|
+
() => new GridFieldColumnProvider(),
|
|
19
26
|
);
|
|
20
|
-
|
|
27
|
+
registerGridColumnProvider('UAGRIDCOLUMN', () => new GridUAColumnProvider());
|
|
28
|
+
registerControlProvider(ControlType.GRID, () => new GridProvider());
|
|
21
29
|
});
|
|
22
30
|
|
|
23
31
|
export default IBizGrid;
|