@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,386 @@
|
|
|
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 { debounceAndAsyncMerge, RuntimeError, awaitTimeout } from "@ibiz-template/core";
|
|
8
|
+
import { MDController, GridService, GridNotifyState, Srfuf, getGridColumnProvider } from "@ibiz-template/runtime";
|
|
9
|
+
import { GridRowController } from "./grid-row.controller";
|
|
10
|
+
import { GridState } from "./grid-state";
|
|
11
|
+
class GridController extends MDController {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
__publicField(this, "state", new GridState());
|
|
15
|
+
/**
|
|
16
|
+
* 所有表格列控制器集合
|
|
17
|
+
*
|
|
18
|
+
* @author lxm
|
|
19
|
+
* @date 2022-11-14 15:11:14
|
|
20
|
+
* @type {{ [key: string]: GridColumnController }}
|
|
21
|
+
*/
|
|
22
|
+
__publicField(this, "columns", {});
|
|
23
|
+
/**
|
|
24
|
+
* 所有表格属性列的控制器
|
|
25
|
+
*
|
|
26
|
+
* @author lxm
|
|
27
|
+
* @date 2022-08-24 20:08:07
|
|
28
|
+
* @type {{ [key: string]: GridFieldColumnController }}
|
|
29
|
+
*/
|
|
30
|
+
__publicField(this, "fieldColumns", {});
|
|
31
|
+
/**
|
|
32
|
+
* 所有表格操作列的控制器
|
|
33
|
+
*
|
|
34
|
+
* @author lxm
|
|
35
|
+
* @date 2022-08-24 20:08:07
|
|
36
|
+
* @type {{ [key: string]: GridUAColumnController }}
|
|
37
|
+
*/
|
|
38
|
+
__publicField(this, "uaColumns", {});
|
|
39
|
+
// /**
|
|
40
|
+
// * 所有表格编辑项的控制器
|
|
41
|
+
// *
|
|
42
|
+
// * @author lxm
|
|
43
|
+
// * @date 2022-08-24 20:08:07
|
|
44
|
+
// * @type {{ [key: string]: GridEditItemController }}
|
|
45
|
+
// */
|
|
46
|
+
// editItems: { [key: string]: GridEditItemController } = {};
|
|
47
|
+
/**
|
|
48
|
+
* 表格列的适配器
|
|
49
|
+
*
|
|
50
|
+
* @author lxm
|
|
51
|
+
* @date 2022-11-14 14:11:39
|
|
52
|
+
* @type {{ [key: string]: IGridColumnProvider }}
|
|
53
|
+
*/
|
|
54
|
+
__publicField(this, "providers", {});
|
|
55
|
+
/**
|
|
56
|
+
* 表格行控制器
|
|
57
|
+
*
|
|
58
|
+
* @deprecated
|
|
59
|
+
* @author lxm
|
|
60
|
+
* @date 2022-09-05 19:09:12
|
|
61
|
+
* @type {GridRowController[]}
|
|
62
|
+
*/
|
|
63
|
+
__publicField(this, "rows", []);
|
|
64
|
+
/**
|
|
65
|
+
* 是否有配置宽度自适应列
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof GridController
|
|
69
|
+
*/
|
|
70
|
+
__publicField(this, "hasWidthFlexGrow", false);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 是否默认禁用排序
|
|
74
|
+
*
|
|
75
|
+
* @author lxm
|
|
76
|
+
* @date 2022-09-28 11:09:48
|
|
77
|
+
* @readonly
|
|
78
|
+
*/
|
|
79
|
+
get noSort() {
|
|
80
|
+
return !!this.model.noSort;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 初始化方法
|
|
84
|
+
*
|
|
85
|
+
* @author lxm
|
|
86
|
+
* @date 2022-08-18 22:08:17
|
|
87
|
+
* @protected
|
|
88
|
+
* @returns {*} {Promise<void>}
|
|
89
|
+
*/
|
|
90
|
+
async doCreated() {
|
|
91
|
+
await super.doCreated();
|
|
92
|
+
this.state.size = this.model.pagingSize || 20;
|
|
93
|
+
this.state.singleSelect = this.model.singleSelect === true;
|
|
94
|
+
this.service = new GridService(this.model);
|
|
95
|
+
await this.service.init(this.context);
|
|
96
|
+
await this.initGridColumns();
|
|
97
|
+
this.dataChangeNotify = debounceAndAsyncMerge(
|
|
98
|
+
this.dataChangeNotify.bind(this),
|
|
99
|
+
(arr1, arr2) => {
|
|
100
|
+
return [arr1[0], Array.from(/* @__PURE__ */ new Set([...arr1[1], ...arr2[1]]))];
|
|
101
|
+
},
|
|
102
|
+
200
|
|
103
|
+
);
|
|
104
|
+
this.setSort();
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 部件加载后处理
|
|
108
|
+
*
|
|
109
|
+
* @author lxm
|
|
110
|
+
* @date 2022-08-19 14:08:50
|
|
111
|
+
*/
|
|
112
|
+
async afterLoad(items) {
|
|
113
|
+
await super.afterLoad(items);
|
|
114
|
+
await Promise.allSettled(
|
|
115
|
+
Object.values(this.fieldColumns).map(async (fieldColumn) => {
|
|
116
|
+
await fieldColumn.loadCodeList();
|
|
117
|
+
})
|
|
118
|
+
);
|
|
119
|
+
this.state.rows = items.map((item) => {
|
|
120
|
+
const row = new GridRowController(item, this);
|
|
121
|
+
this.gridStateNotify(row, GridNotifyState.LOAD);
|
|
122
|
+
return row;
|
|
123
|
+
});
|
|
124
|
+
return items;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 后台删除结束后界面删除逻辑
|
|
128
|
+
*
|
|
129
|
+
* @author lxm
|
|
130
|
+
* @date 2022-09-06 19:09:10
|
|
131
|
+
* @param {IData} data
|
|
132
|
+
*/
|
|
133
|
+
afterRemove(data) {
|
|
134
|
+
super.afterRemove(data);
|
|
135
|
+
const index = this.state.rows.findIndex(
|
|
136
|
+
(item) => item.data.srfkey === data.srfkey
|
|
137
|
+
);
|
|
138
|
+
this.state.rows[index].destroy();
|
|
139
|
+
this.state.rows.splice(index, 1);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* 新建行
|
|
143
|
+
*
|
|
144
|
+
* @author lxm
|
|
145
|
+
* @date 2022-09-06 21:09:05
|
|
146
|
+
*/
|
|
147
|
+
async newRow() {
|
|
148
|
+
const res = await this.service.getDraft(this.context, this.params);
|
|
149
|
+
this.state.items.unshift(res.data);
|
|
150
|
+
const newRow = new GridRowController(res.data, this);
|
|
151
|
+
this.state.rows.unshift(newRow);
|
|
152
|
+
this.gridStateNotify(newRow, GridNotifyState.DRAFT);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* 保存
|
|
156
|
+
*
|
|
157
|
+
* @author lxm
|
|
158
|
+
* @date 2022-09-06 19:09:21
|
|
159
|
+
* @param {ControlVO} data
|
|
160
|
+
* @returns {*} {Promise<void>}
|
|
161
|
+
*/
|
|
162
|
+
async save(data) {
|
|
163
|
+
const rowController = this.state.rows.find(
|
|
164
|
+
(item) => item.data.srfkey === data.srfkey
|
|
165
|
+
);
|
|
166
|
+
if (!rowController) {
|
|
167
|
+
throw new RuntimeError("行数据不存在");
|
|
168
|
+
}
|
|
169
|
+
if (!rowController.modified) {
|
|
170
|
+
ibiz.log.debug("值没有发生改变");
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (rowController.processing) {
|
|
174
|
+
await awaitTimeout(500, this.save.bind(this), [data]);
|
|
175
|
+
}
|
|
176
|
+
const isValid = await this.validate(rowController);
|
|
177
|
+
if (!isValid) {
|
|
178
|
+
throw new RuntimeError("行数据校验不通过,保存取消");
|
|
179
|
+
}
|
|
180
|
+
await this.startLoading();
|
|
181
|
+
let res;
|
|
182
|
+
const isCreate = data.srfuf === Srfuf.CREATE;
|
|
183
|
+
try {
|
|
184
|
+
res = isCreate ? await this.service.create(
|
|
185
|
+
// { [this.model.appEntity.deName]: data.srfkey, ...this.context },
|
|
186
|
+
this.context,
|
|
187
|
+
data
|
|
188
|
+
) : await this.service.update(
|
|
189
|
+
// { [this.model.appEntity.deName]: data.srfkey, ...this.context },
|
|
190
|
+
this.context,
|
|
191
|
+
data
|
|
192
|
+
);
|
|
193
|
+
} finally {
|
|
194
|
+
await this.endLoading();
|
|
195
|
+
}
|
|
196
|
+
const index = this.state.items.findIndex(
|
|
197
|
+
(item) => item.srfkey === data.srfkey
|
|
198
|
+
);
|
|
199
|
+
this.state.items.splice(index, 1, res.data);
|
|
200
|
+
rowController.data = res.data;
|
|
201
|
+
rowController.modified = false;
|
|
202
|
+
ibiz.message.success(`${res.data.srfmajortext || ""}保存成功`);
|
|
203
|
+
this.gridStateNotify(rowController, GridNotifyState.SAVE);
|
|
204
|
+
await this.evt.emit("onSaveSuccess", void 0);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* 行单击事件
|
|
208
|
+
*
|
|
209
|
+
* @author lxm
|
|
210
|
+
* @date 2022-08-18 22:08:16
|
|
211
|
+
* @param {ControlVO} data 选中的单条数据
|
|
212
|
+
*/
|
|
213
|
+
async onRowClick(data) {
|
|
214
|
+
var _a;
|
|
215
|
+
if (this.mdCtrlActiveMode === 1) {
|
|
216
|
+
await this.onActive(data);
|
|
217
|
+
}
|
|
218
|
+
const { singleSelect, selectedData } = this.state;
|
|
219
|
+
if (singleSelect) {
|
|
220
|
+
this.onSelectionChange(
|
|
221
|
+
((_a = selectedData[0]) == null ? void 0 : _a.srfkey) !== data.srfkey ? [data] : []
|
|
222
|
+
);
|
|
223
|
+
} else {
|
|
224
|
+
const findIndex = selectedData.findIndex(
|
|
225
|
+
(item) => item.srfkey === data.srfkey
|
|
226
|
+
);
|
|
227
|
+
if (findIndex === -1) {
|
|
228
|
+
this.onSelectionChange([...selectedData, data]);
|
|
229
|
+
} else {
|
|
230
|
+
this.onSelectionChange(
|
|
231
|
+
selectedData.filter((value, index) => index !== findIndex)
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* 行双击事件
|
|
238
|
+
*
|
|
239
|
+
* @author lxm
|
|
240
|
+
* @date 2022-08-18 22:08:16
|
|
241
|
+
* @param {ControlVO} data 选中的单条数据
|
|
242
|
+
*/
|
|
243
|
+
async onDbRowClick(data) {
|
|
244
|
+
if (this.mdCtrlActiveMode === 2) {
|
|
245
|
+
await this.onActive(data);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* 初始化表格属性列,操作列,编辑项控制器
|
|
250
|
+
*
|
|
251
|
+
* @author lxm
|
|
252
|
+
* @date 2022-08-24 21:08:48
|
|
253
|
+
* @protected
|
|
254
|
+
*/
|
|
255
|
+
async initColumnsController(column) {
|
|
256
|
+
const provider = await getGridColumnProvider(column);
|
|
257
|
+
if (!provider) {
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
this.providers[column.codeName] = provider;
|
|
261
|
+
const controller = await provider.createController(column, this);
|
|
262
|
+
this.columns[column.codeName] = controller;
|
|
263
|
+
if (column.columnType === "DEFGRIDCOLUMN") {
|
|
264
|
+
this.fieldColumns[column.codeName] = controller;
|
|
265
|
+
} else if (column.columnType === "UAGRIDCOLUMN") {
|
|
266
|
+
this.uaColumns[column.codeName] = controller;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* 初始化表格属性列,操作列,编辑项控制器
|
|
271
|
+
*
|
|
272
|
+
* @author lxm
|
|
273
|
+
* @date 2022-08-24 21:08:48
|
|
274
|
+
* @protected
|
|
275
|
+
*/
|
|
276
|
+
async initGridColumns() {
|
|
277
|
+
if (this.model.degridColumns) {
|
|
278
|
+
await Promise.all(
|
|
279
|
+
this.model.degridColumns.map(async (column) => {
|
|
280
|
+
this.initColumnsController(column);
|
|
281
|
+
})
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* 设置行属性的值
|
|
287
|
+
*
|
|
288
|
+
* @author lxm
|
|
289
|
+
* @date 2022-08-24 10:08:40
|
|
290
|
+
* @param {GridRowController} row 行状态控制器
|
|
291
|
+
* @param {unknown} value 要设置的值
|
|
292
|
+
* @param {string} name 要设置的表单数据的属性名称
|
|
293
|
+
*/
|
|
294
|
+
async setRowValue(row, name, value) {
|
|
295
|
+
if (Object.prototype.hasOwnProperty.call(row.data, name) && row.data[name] === value) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
row.data[name] = value;
|
|
299
|
+
row.modified = true;
|
|
300
|
+
row.processing = true;
|
|
301
|
+
try {
|
|
302
|
+
await this.dataChangeNotify(row, [name]);
|
|
303
|
+
} finally {
|
|
304
|
+
row.processing = false;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* 通知所有表格编辑项成员表格编辑项数据变更
|
|
309
|
+
*
|
|
310
|
+
* @author lxm
|
|
311
|
+
* @date 2022-09-20 22:09:49
|
|
312
|
+
* @param {GridRowController} row 行数据
|
|
313
|
+
* @param {string[]} names 更新的属性
|
|
314
|
+
*/
|
|
315
|
+
async dataChangeNotify(_row, _names) {
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* 表格状态变更通知
|
|
319
|
+
*
|
|
320
|
+
* @author lxm
|
|
321
|
+
* @date 2022-09-20 18:09:07
|
|
322
|
+
*/
|
|
323
|
+
gridStateNotify(_row, _state) {
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* 校验一行数据的所有编辑项
|
|
327
|
+
*
|
|
328
|
+
* @author lxm
|
|
329
|
+
* @date 2022-09-06 21:09:05
|
|
330
|
+
* @param {GridRowController} row 要校验的行数据控制器
|
|
331
|
+
* @returns {*}
|
|
332
|
+
*/
|
|
333
|
+
async validate(row) {
|
|
334
|
+
return !!row;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* 切换行编辑,行编辑切换关闭前会校验并保存,如果失败则依然显示行编辑状态
|
|
338
|
+
*
|
|
339
|
+
* @author lxm
|
|
340
|
+
* @date 2022-09-08 11:09:55
|
|
341
|
+
* @param {GridRowController} row 行数据控制器
|
|
342
|
+
*/
|
|
343
|
+
async toggleRowEdit(row) {
|
|
344
|
+
if (row.showRowEdit === true) {
|
|
345
|
+
await this.save(row.data);
|
|
346
|
+
}
|
|
347
|
+
row.showRowEdit = !row.showRowEdit;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* 设置排序
|
|
351
|
+
*
|
|
352
|
+
* @author lxm
|
|
353
|
+
* @date 2022-09-28 13:09:44
|
|
354
|
+
* @param {string} key 排序字段
|
|
355
|
+
* @param {string} order 排序顺序
|
|
356
|
+
*/
|
|
357
|
+
setSort(_key, _order) {
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* 表格编辑项更新
|
|
361
|
+
*
|
|
362
|
+
* @author lxm
|
|
363
|
+
* @date 2022-09-15 21:09:13
|
|
364
|
+
* @param {string} methodName 更新实体方法
|
|
365
|
+
* @param {string[]} updateItems 更新项名称集合
|
|
366
|
+
*/
|
|
367
|
+
async updateGridEditItem(row, methodName, updateItems) {
|
|
368
|
+
const params = { ...this.params, ...row.data.getRequestData() };
|
|
369
|
+
const res = await this.service.updateGridEditItem(
|
|
370
|
+
methodName,
|
|
371
|
+
this.context,
|
|
372
|
+
params
|
|
373
|
+
);
|
|
374
|
+
const result = res.data;
|
|
375
|
+
if (result && (updateItems == null ? void 0 : updateItems.length)) {
|
|
376
|
+
await Promise.all(
|
|
377
|
+
updateItems.map((itemName) => {
|
|
378
|
+
return this.setRowValue(row, itemName, result[itemName]);
|
|
379
|
+
})
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
export {
|
|
385
|
+
GridController
|
|
386
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { IGridColumnProvider
|
|
1
|
+
import { IGridColumnProvider } from '@ibiz-template/runtime';
|
|
2
2
|
import { IDEGridFieldColumn } from '@ibiz/model-core';
|
|
3
|
+
import { GridController } from '../grid/grid.controller';
|
|
4
|
+
import { GridFieldColumnController } from './grid-field-column.controller';
|
|
3
5
|
/**
|
|
4
6
|
* 表格列适配器
|
|
5
7
|
*
|
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { GridFieldColumnController } from "
|
|
7
|
+
import { GridFieldColumnController } from "./grid-field-column.controller";
|
|
8
8
|
class GridFieldColumnProvider {
|
|
9
9
|
constructor() {
|
|
10
10
|
__publicField(this, "component", "GridFieldColumn");
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CodeListItem } from '@ibiz-template/runtime';
|
|
2
|
+
import { IDEGridFieldColumn } from '@ibiz/model-core';
|
|
3
|
+
import { GridColumnController } from '../grid/grid-column.controller';
|
|
4
|
+
import { GridRowController } from '../grid/grid-row.controller';
|
|
5
|
+
/**
|
|
6
|
+
* 表格属性列控制器
|
|
7
|
+
* @return {*}
|
|
8
|
+
* @author: zhujiamin
|
|
9
|
+
* @Date: 2022-09-01 18:25:20
|
|
10
|
+
*/
|
|
11
|
+
export declare class GridFieldColumnController extends GridColumnController<IDEGridFieldColumn> {
|
|
12
|
+
/**
|
|
13
|
+
* 代码表项
|
|
14
|
+
*
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2022-09-28 16:09:51
|
|
17
|
+
* @type {readonly}
|
|
18
|
+
*/
|
|
19
|
+
codeListItems?: readonly CodeListItem[];
|
|
20
|
+
/**
|
|
21
|
+
* 是否是链接列
|
|
22
|
+
*
|
|
23
|
+
* @author lxm
|
|
24
|
+
* @date 2022-09-28 17:09:15
|
|
25
|
+
* @returns {*}
|
|
26
|
+
*/
|
|
27
|
+
get isLinkColumn(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 是否有触发界面行为
|
|
30
|
+
*
|
|
31
|
+
* @author lxm
|
|
32
|
+
* @date 2022-12-08 14:12:37
|
|
33
|
+
* @readonly
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
*/
|
|
36
|
+
get hasAction(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 行是否可点击(影响列的界面样式)
|
|
39
|
+
*
|
|
40
|
+
* @author lxm
|
|
41
|
+
* @date 2022-12-08 15:12:58
|
|
42
|
+
* @readonly
|
|
43
|
+
*/
|
|
44
|
+
clickable(row: GridRowController): any;
|
|
45
|
+
/**
|
|
46
|
+
* 公共参数处理,计算上下文和视图参数
|
|
47
|
+
* @return {*}
|
|
48
|
+
* @author: zhujiamin
|
|
49
|
+
* @Date: 2022-08-25 15:44:14
|
|
50
|
+
*/
|
|
51
|
+
handlePublicParams(_data: IData, _context: IContext, _params: IParams): {
|
|
52
|
+
context: IContext;
|
|
53
|
+
params: IParams;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 打开链接视图
|
|
57
|
+
*
|
|
58
|
+
* @author lxm
|
|
59
|
+
* @date 2022-09-28 18:09:14
|
|
60
|
+
* @param {GridRowController} row 行数据
|
|
61
|
+
* @param {MouseEvent} event 原生事件
|
|
62
|
+
* @returns {*} {Promise<void>}
|
|
63
|
+
*/
|
|
64
|
+
openLinkView(row: GridRowController, event: MouseEvent): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* 触发表格列附加界面行为
|
|
67
|
+
*
|
|
68
|
+
* @author lxm
|
|
69
|
+
* @date 2022-12-08 15:12:35
|
|
70
|
+
* @param {GridRowController} row 行数据
|
|
71
|
+
* @param {MouseEvent} event 鼠标事件
|
|
72
|
+
* @returns {*} {Promise<void>}
|
|
73
|
+
*/
|
|
74
|
+
triggerAction(_row: GridRowController, _event: MouseEvent): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* 加载代码表数据
|
|
77
|
+
*
|
|
78
|
+
* @author lxm
|
|
79
|
+
* @date 2022-09-28 15:09:38
|
|
80
|
+
* @returns {*}
|
|
81
|
+
*/
|
|
82
|
+
loadCodeList(): Promise<readonly CodeListItem[] | undefined>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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 { RuntimeError } from "@ibiz-template/core";
|
|
8
|
+
import { getWFContext, OpenAppViewCommand } from "@ibiz-template/runtime";
|
|
9
|
+
import { clone } from "ramda";
|
|
10
|
+
import { GridColumnController } from "../grid/grid-column.controller";
|
|
11
|
+
class GridFieldColumnController extends GridColumnController {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
/**
|
|
15
|
+
* 代码表项
|
|
16
|
+
*
|
|
17
|
+
* @author lxm
|
|
18
|
+
* @date 2022-09-28 16:09:51
|
|
19
|
+
* @type {readonly}
|
|
20
|
+
*/
|
|
21
|
+
__publicField(this, "codeListItems");
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 是否是链接列
|
|
25
|
+
*
|
|
26
|
+
* @author lxm
|
|
27
|
+
* @date 2022-09-28 17:09:15
|
|
28
|
+
* @returns {*}
|
|
29
|
+
*/
|
|
30
|
+
get isLinkColumn() {
|
|
31
|
+
return !!this.model.enableLinkView && !!this.model.linkAppViewId;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 是否有触发界面行为
|
|
35
|
+
*
|
|
36
|
+
* @author lxm
|
|
37
|
+
* @date 2022-12-08 14:12:37
|
|
38
|
+
* @readonly
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
*/
|
|
41
|
+
get hasAction() {
|
|
42
|
+
return !!this.model.deuiactionId;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 行是否可点击(影响列的界面样式)
|
|
46
|
+
*
|
|
47
|
+
* @author lxm
|
|
48
|
+
* @date 2022-12-08 15:12:58
|
|
49
|
+
* @readonly
|
|
50
|
+
*/
|
|
51
|
+
clickable(row) {
|
|
52
|
+
const value = row.data[this.model.codeName];
|
|
53
|
+
return (this.isLinkColumn || this.hasAction) && value;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 公共参数处理,计算上下文和视图参数
|
|
57
|
+
* @return {*}
|
|
58
|
+
* @author: zhujiamin
|
|
59
|
+
* @Date: 2022-08-25 15:44:14
|
|
60
|
+
*/
|
|
61
|
+
handlePublicParams(_data, _context, _params) {
|
|
62
|
+
return { context: this.context, params: this.params };
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 打开链接视图
|
|
66
|
+
*
|
|
67
|
+
* @author lxm
|
|
68
|
+
* @date 2022-09-28 18:09:14
|
|
69
|
+
* @param {GridRowController} row 行数据
|
|
70
|
+
* @param {MouseEvent} event 原生事件
|
|
71
|
+
* @returns {*} {Promise<void>}
|
|
72
|
+
*/
|
|
73
|
+
async openLinkView(row, event) {
|
|
74
|
+
const curValue = row.data[this.model.codeName];
|
|
75
|
+
if (!curValue) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const valueItem = this.model.linkValueItem || "srfkey";
|
|
79
|
+
const value = row.data[valueItem];
|
|
80
|
+
if (!value) {
|
|
81
|
+
throw new RuntimeError("链接值项取不到值");
|
|
82
|
+
}
|
|
83
|
+
const { linkAppViewId } = this.model;
|
|
84
|
+
if (!linkAppViewId) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const wfContext = getWFContext(row.data);
|
|
88
|
+
const tempContext = Object.assign(this.context.clone(), {
|
|
89
|
+
// [deName!]: value,
|
|
90
|
+
...wfContext
|
|
91
|
+
});
|
|
92
|
+
const tempParams = clone(this.params);
|
|
93
|
+
const { context: newContext, params: newParams } = this.handlePublicParams(
|
|
94
|
+
row.data,
|
|
95
|
+
tempContext,
|
|
96
|
+
tempParams
|
|
97
|
+
);
|
|
98
|
+
const res = await ibiz.commands.execute(
|
|
99
|
+
OpenAppViewCommand.TAG,
|
|
100
|
+
linkAppViewId,
|
|
101
|
+
newContext,
|
|
102
|
+
newParams,
|
|
103
|
+
{ event }
|
|
104
|
+
);
|
|
105
|
+
if (res == null ? void 0 : res.ok) {
|
|
106
|
+
this.grid.load();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 触发表格列附加界面行为
|
|
111
|
+
*
|
|
112
|
+
* @author lxm
|
|
113
|
+
* @date 2022-12-08 15:12:35
|
|
114
|
+
* @param {GridRowController} row 行数据
|
|
115
|
+
* @param {MouseEvent} event 鼠标事件
|
|
116
|
+
* @returns {*} {Promise<void>}
|
|
117
|
+
*/
|
|
118
|
+
async triggerAction(_row, _event) {
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 加载代码表数据
|
|
122
|
+
*
|
|
123
|
+
* @author lxm
|
|
124
|
+
* @date 2022-09-28 15:09:38
|
|
125
|
+
* @returns {*}
|
|
126
|
+
*/
|
|
127
|
+
async loadCodeList() {
|
|
128
|
+
const appCodeListId = this.model.appCodeListId;
|
|
129
|
+
if (!appCodeListId) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
133
|
+
const dataItems = await app.codeList.get(
|
|
134
|
+
appCodeListId,
|
|
135
|
+
this.context,
|
|
136
|
+
this.params
|
|
137
|
+
);
|
|
138
|
+
this.codeListItems = dataItems;
|
|
139
|
+
return dataItems;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export {
|
|
143
|
+
GridFieldColumnController
|
|
144
|
+
};
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import './grid-field-column.scss';
|
|
2
|
+
import { GridRowController } from '../grid/grid-row.controller';
|
|
3
|
+
import { GridFieldColumnController } from './grid-field-column.controller';
|
|
2
4
|
export declare const GridFieldColumn: import("vue").DefineComponent<{
|
|
3
5
|
controller: {
|
|
4
|
-
type:
|
|
6
|
+
type: typeof GridFieldColumnController;
|
|
5
7
|
required: true;
|
|
6
8
|
};
|
|
7
9
|
row: {
|
|
8
|
-
type:
|
|
10
|
+
type: typeof GridRowController;
|
|
9
11
|
required: true;
|
|
10
12
|
};
|
|
11
13
|
}, {
|
|
12
|
-
ns:
|
|
13
|
-
alignStyle: import("vue").ComputedRef<
|
|
14
|
-
codeList:
|
|
14
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
15
|
+
alignStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
16
|
+
codeList: string | undefined;
|
|
15
17
|
onCellClick: (event: MouseEvent) => void;
|
|
16
18
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
19
|
controller: {
|
|
18
|
-
type:
|
|
20
|
+
type: typeof GridFieldColumnController;
|
|
19
21
|
required: true;
|
|
20
22
|
};
|
|
21
23
|
row: {
|
|
22
|
-
type:
|
|
24
|
+
type: typeof GridRowController;
|
|
23
25
|
required: true;
|
|
24
26
|
};
|
|
25
27
|
}>>, {}>;
|
|
@@ -13,7 +13,7 @@ export declare const GridPagination: import("vue").DefineComponent<{
|
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
16
|
-
ns:
|
|
16
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
17
17
|
start: import("vue").ComputedRef<number>;
|
|
18
18
|
end: import("vue").ComputedRef<number>;
|
|
19
19
|
onPageChange: (page: number) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* @author lxm
|
|
9
|
+
* @date 2022-09-19 22:09:03
|
|
10
|
+
* @export
|
|
11
|
+
* @class GridUAColumnProvider
|
|
12
|
+
* @implements {IGridColumnProvider}
|
|
13
|
+
*/
|
|
14
|
+
export declare class GridUAColumnProvider implements IGridColumnProvider {
|
|
15
|
+
component: string;
|
|
16
|
+
createController(columnModel: IDEGridUAColumn, grid: GridController): Promise<GridUAColumnController>;
|
|
17
|
+
}
|