@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,81 @@
|
|
|
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 { ControlController, UIActionUtil, recursiveIterate, UIActionButtonState, ControlVO } from "@ibiz-template/runtime";
|
|
8
|
+
import { ToolbarState } from "./toolbar-state";
|
|
9
|
+
class ToolbarController extends ControlController {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
__publicField(this, "state", new ToolbarState());
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 执行按钮的界面行为(如果按钮存在界面行为的话)
|
|
16
|
+
* @author lxm
|
|
17
|
+
* @date 2023-05-10 09:20:35
|
|
18
|
+
* @return {*} {IData[]}
|
|
19
|
+
*/
|
|
20
|
+
async doUIAction(item) {
|
|
21
|
+
if (item.itemType === "DEUIACTION") {
|
|
22
|
+
const actionId = item.uiactionId;
|
|
23
|
+
const res = await this.ctx.view.call("GetData");
|
|
24
|
+
const data = (res == null ? void 0 : res.data) || [];
|
|
25
|
+
await UIActionUtil.exec(actionId, {
|
|
26
|
+
...this.getEventArgs(),
|
|
27
|
+
data
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async doCreated() {
|
|
32
|
+
super.doCreated();
|
|
33
|
+
this.state.viewMode = this.ctx.view.modal.mode;
|
|
34
|
+
recursiveIterate(
|
|
35
|
+
this.model,
|
|
36
|
+
(item) => {
|
|
37
|
+
if (item.itemType === "DEUIACTION") {
|
|
38
|
+
const uiItem = item;
|
|
39
|
+
const buttonState = new UIActionButtonState(
|
|
40
|
+
uiItem.id,
|
|
41
|
+
this.context.srfappid,
|
|
42
|
+
uiItem.uiactionId
|
|
43
|
+
);
|
|
44
|
+
this.state.buttonsState.addState(uiItem.id, buttonState);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{ childrenFields: ["detoolbarItems"] }
|
|
48
|
+
);
|
|
49
|
+
await this.state.buttonsState.update();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 工具栏按钮点击事件
|
|
53
|
+
* @author lxm
|
|
54
|
+
* @date 2023-03-28 07:10:55
|
|
55
|
+
* @param {IPSDEToolbarItem} item
|
|
56
|
+
* @param {MouseEvent} event
|
|
57
|
+
* @return {*} {Promise<void>}
|
|
58
|
+
*/
|
|
59
|
+
async onItemClick(item, event) {
|
|
60
|
+
this.state.buttonsState.setLoading(item.id);
|
|
61
|
+
try {
|
|
62
|
+
await this.evt.emit("onClick", {
|
|
63
|
+
event,
|
|
64
|
+
eventArg: item.id
|
|
65
|
+
});
|
|
66
|
+
await this.doUIAction(item);
|
|
67
|
+
} finally {
|
|
68
|
+
this.state.buttonsState.setLoading("");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
calcButtonState(data, appDeId) {
|
|
72
|
+
let _data = data;
|
|
73
|
+
if (data && data instanceof ControlVO) {
|
|
74
|
+
_data = data.getOrigin();
|
|
75
|
+
}
|
|
76
|
+
this.state.buttonsState.update(_data, appDeId);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
ToolbarController
|
|
81
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { registerEditorProvider } from "@ibiz-template/runtime";
|
|
2
|
+
import { IBizInput } from "./text-box";
|
|
3
|
+
import { TextBoxEditorProvider } from "./text-box/text-box-provider";
|
|
4
|
+
const IBizEditor = {
|
|
5
|
+
install: (v) => {
|
|
6
|
+
v.component(IBizInput.name, IBizInput);
|
|
7
|
+
const textBoxEditorProvider = new TextBoxEditorProvider();
|
|
8
|
+
registerEditorProvider("TEXTBOX", () => textBoxEditorProvider);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
IBizEditor,
|
|
13
|
+
IBizEditor as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import './ibiz-input.scss';
|
|
2
|
+
export declare const IBizInput: import("vue").DefineComponent<{
|
|
3
|
+
value: StringConstructor;
|
|
4
|
+
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<unknown>, undefined, undefined>;
|
|
5
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<IData>, undefined, undefined>;
|
|
6
|
+
disabled: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
};
|
|
9
|
+
readonly: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
autoFocus: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
19
|
+
rows: import("vue").Ref<number>;
|
|
20
|
+
type: import("vue").ComputedRef<"string" | "text" | "password" | "textarea">;
|
|
21
|
+
currentVal: import("vue").Ref<string>;
|
|
22
|
+
handleChange: (val: string | number) => void;
|
|
23
|
+
handleKeyUp: (e: KeyboardEvent) => void;
|
|
24
|
+
handleBlur: (event: IData) => void;
|
|
25
|
+
inputRef: import("vue").Ref<any>;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
change: (_value: unknown, _name?: string | undefined) => boolean;
|
|
28
|
+
operate: (_isOperating: boolean) => boolean;
|
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
value: StringConstructor;
|
|
31
|
+
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<unknown>, undefined, undefined>;
|
|
32
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<IData>, undefined, undefined>;
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
readonly: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
autoFocus: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>> & {
|
|
45
|
+
onChange?: ((_value: unknown, _name?: string | undefined) => any) | undefined;
|
|
46
|
+
onOperate?: ((_isOperating: boolean) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
readonly: boolean;
|
|
50
|
+
autoFocus: boolean;
|
|
51
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IBizInput } from './ibiz-input/ibiz-input';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEditorProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { ITextBox } from '@ibiz/model-core';
|
|
3
|
+
import { TextBoxEditorController } from './text-box.controller';
|
|
4
|
+
/**
|
|
5
|
+
* 输入框编辑器适配器
|
|
6
|
+
*
|
|
7
|
+
* @author lxm
|
|
8
|
+
* @date 2022-09-19 22:09:03
|
|
9
|
+
* @export
|
|
10
|
+
* @class TextBoxEditorProvider
|
|
11
|
+
* @implements {EditorProvider}
|
|
12
|
+
*/
|
|
13
|
+
export declare class TextBoxEditorProvider implements IEditorProvider {
|
|
14
|
+
formEditor: string;
|
|
15
|
+
gridEditor: string;
|
|
16
|
+
constructor(editorType?: string);
|
|
17
|
+
createController(editorModel: ITextBox, parentController: any): Promise<TextBoxEditorController>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { TextBoxEditorController } from "./text-box.controller";
|
|
8
|
+
class TextBoxEditorProvider {
|
|
9
|
+
constructor(editorType) {
|
|
10
|
+
__publicField(this, "formEditor", "IBizInput");
|
|
11
|
+
__publicField(this, "gridEditor", "IBizGridInput");
|
|
12
|
+
if (editorType === "NUMBER") {
|
|
13
|
+
this.formEditor = "IBizInputNumber";
|
|
14
|
+
this.gridEditor = "IBizGridInputNumber";
|
|
15
|
+
}
|
|
16
|
+
if (editorType === "IPADDRESSTEXTBOX") {
|
|
17
|
+
this.formEditor = "IBizInputIP";
|
|
18
|
+
this.gridEditor = "IBizInputIP";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async createController(editorModel, parentController) {
|
|
22
|
+
const c = new TextBoxEditorController(editorModel, parentController);
|
|
23
|
+
await c.init();
|
|
24
|
+
return c;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
TextBoxEditorProvider
|
|
29
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EditorController } from '@ibiz-template/runtime';
|
|
2
|
+
import { ITextBox } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* 输入框编辑器控制器
|
|
5
|
+
*
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2022-08-24 20:08:25
|
|
8
|
+
* @export
|
|
9
|
+
* @class TextBoxEditorController
|
|
10
|
+
* @extends {EditorController}
|
|
11
|
+
*/
|
|
12
|
+
export declare class TextBoxEditorController extends EditorController<ITextBox> {
|
|
13
|
+
/**
|
|
14
|
+
* 占位
|
|
15
|
+
* @return {*}
|
|
16
|
+
* @author: zhujiamin
|
|
17
|
+
* @Date: 2022-08-25 14:33:14
|
|
18
|
+
*/
|
|
19
|
+
placeHolder: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { EditorController } from "@ibiz-template/runtime";
|
|
8
|
+
class TextBoxEditorController extends EditorController {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/**
|
|
12
|
+
* 占位
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @author: zhujiamin
|
|
15
|
+
* @Date: 2022-08-25 14:33:14
|
|
16
|
+
*/
|
|
17
|
+
__publicField(this, "placeHolder", "请输入");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
TextBoxEditorController
|
|
22
|
+
};
|
package/es/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './views';
|
|
1
|
+
import { App } from 'vue';
|
|
3
2
|
export * from './control';
|
|
4
3
|
export * from './common';
|
|
4
|
+
export * from './panel-component';
|
|
5
|
+
export * from './editor';
|
|
6
|
+
export * from './view';
|
|
7
|
+
export * from './view-engine';
|
|
8
|
+
declare const _default: {
|
|
9
|
+
install: (v: App) => void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./views";
|
|
3
|
-
export * from "./control";
|
|
1
|
+
import IBizCommonComponents__default from "./common";
|
|
4
2
|
export * from "./common";
|
|
3
|
+
import { IBizAppMenu, IBizGrid, IBizToolbar, IBizPanel } from "./control";
|
|
4
|
+
export * from "./control";
|
|
5
|
+
import { IBizForm, IBizSearchForm } from "./control/form";
|
|
6
|
+
import IBizEditor__default from "./editor";
|
|
7
|
+
export * from "./editor";
|
|
8
|
+
import IBizPanelComponents__default from "./panel-component";
|
|
9
|
+
export * from "./panel-component";
|
|
10
|
+
import { IBizView } from "./view";
|
|
11
|
+
export * from "./view";
|
|
12
|
+
import { IBizViewEngine } from "./view-engine";
|
|
13
|
+
export * from "./view-engine";
|
|
14
|
+
const index = {
|
|
15
|
+
install: (v) => {
|
|
16
|
+
v.use(IBizCommonComponents__default);
|
|
17
|
+
v.use(IBizPanelComponents__default);
|
|
18
|
+
v.use(IBizViewEngine);
|
|
19
|
+
v.use(IBizView);
|
|
20
|
+
v.use(IBizAppMenu);
|
|
21
|
+
v.use(IBizGrid);
|
|
22
|
+
v.use(IBizToolbar);
|
|
23
|
+
v.use(IBizPanel);
|
|
24
|
+
v.use(IBizForm);
|
|
25
|
+
v.use(IBizSearchForm);
|
|
26
|
+
v.use(IBizEditor__default);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
index as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelController, PanelItemController } from '../../control';
|
|
4
|
+
/**
|
|
5
|
+
* 用户信息适配器
|
|
6
|
+
*
|
|
7
|
+
* @author lxm
|
|
8
|
+
* @date 2022-09-19 22:09:03
|
|
9
|
+
* @export
|
|
10
|
+
* @class AuthUserinfoProvider
|
|
11
|
+
* @implements {EditorProvider}
|
|
12
|
+
*/
|
|
13
|
+
export declare class AuthUserinfoProvider implements IPanelItemProvider {
|
|
14
|
+
component: string;
|
|
15
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { PanelItemController } from "../../control";
|
|
8
|
+
class AuthUserinfoProvider {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "component", "AuthUserinfo");
|
|
11
|
+
}
|
|
12
|
+
async createController(panelItem, panel, parent) {
|
|
13
|
+
const c = new PanelItemController(panelItem, panel, parent);
|
|
14
|
+
await c.init();
|
|
15
|
+
return c;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
AuthUserinfoProvider
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from "@ibiz-template/runtime";
|
|
2
|
+
import { withInstall } from "@ibiz-template/vue3-util";
|
|
3
|
+
import { AuthUserinfo } from "./auth-userinfo";
|
|
4
|
+
import { AuthUserinfo as AuthUserinfo2 } from "./auth-userinfo";
|
|
5
|
+
import { AuthUserinfoProvider } from "./auth-userinfo-provider";
|
|
6
|
+
import { AuthUserinfoProvider as AuthUserinfoProvider2 } from "./auth-userinfo-provider";
|
|
7
|
+
const IBizAuthUserinfo = withInstall(AuthUserinfo, function(v) {
|
|
8
|
+
v.component(AuthUserinfo.name, AuthUserinfo);
|
|
9
|
+
registerPanelItemProvider(
|
|
10
|
+
"RAWITEM_AUTH_USERINFO",
|
|
11
|
+
() => new AuthUserinfoProvider()
|
|
12
|
+
);
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
AuthUserinfo2 as AuthUserinfo,
|
|
16
|
+
AuthUserinfoProvider2 as AuthUserinfoProvider,
|
|
17
|
+
IBizAuthUserinfo,
|
|
18
|
+
IBizAuthUserinfo as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
export * from './panel-container';
|
|
3
|
+
export * from './panel-ctrl-pos';
|
|
4
|
+
export * from './scroll-container';
|
|
5
|
+
export * from './auth-userinfo';
|
|
6
|
+
export * from './nav-pos';
|
|
7
|
+
export declare const IBizPanelComponents: {
|
|
8
|
+
install: (v: App) => void;
|
|
9
|
+
};
|
|
10
|
+
export default IBizPanelComponents;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import IBizAuthUserinfo__default from "./auth-userinfo";
|
|
2
|
+
export * from "./auth-userinfo";
|
|
3
|
+
import IBizNavPos__default from "./nav-pos";
|
|
4
|
+
export * from "./nav-pos";
|
|
5
|
+
import IBizNavTabs from "./nav-tabs";
|
|
6
|
+
import IBizPanelContainer__default from "./panel-container";
|
|
7
|
+
export * from "./panel-container";
|
|
8
|
+
import IBizPanelCtrlPos__default from "./panel-ctrl-pos";
|
|
9
|
+
export * from "./panel-ctrl-pos";
|
|
10
|
+
import IBizScrollContainer__default from "./scroll-container";
|
|
11
|
+
export * from "./scroll-container";
|
|
12
|
+
const IBizPanelComponents = {
|
|
13
|
+
install: (v) => {
|
|
14
|
+
v.use(IBizPanelContainer__default);
|
|
15
|
+
v.use(IBizPanelCtrlPos__default);
|
|
16
|
+
v.use(IBizScrollContainer__default);
|
|
17
|
+
v.use(IBizAuthUserinfo__default);
|
|
18
|
+
v.use(IBizNavPos__default);
|
|
19
|
+
v.use(IBizNavTabs);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
IBizPanelComponents,
|
|
24
|
+
IBizPanelComponents as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from "@ibiz-template/runtime";
|
|
2
|
+
import { withInstall } from "@ibiz-template/vue3-util";
|
|
3
|
+
import { NavPos } from "./nav-pos";
|
|
4
|
+
import { NavPos as NavPos2 } from "./nav-pos";
|
|
5
|
+
import { NavPosProvider } from "./nav-pos-provider";
|
|
6
|
+
import { NavPosProvider as NavPosProvider2 } from "./nav-pos-provider";
|
|
7
|
+
import { NavPosState } from "./nav-pos-state";
|
|
8
|
+
import { NavPosController } from "./nav-pos.controller";
|
|
9
|
+
const IBizNavPos = withInstall(NavPos, function(v) {
|
|
10
|
+
v.component(NavPos.name, NavPos);
|
|
11
|
+
registerPanelItemProvider("RAWITEM_NAV_POS", () => new NavPosProvider());
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
IBizNavPos,
|
|
15
|
+
NavPos2 as NavPos,
|
|
16
|
+
NavPosController,
|
|
17
|
+
NavPosProvider2 as NavPosProvider,
|
|
18
|
+
NavPosState,
|
|
19
|
+
IBizNavPos as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelController, PanelItemController } from '../../control';
|
|
4
|
+
import { NavPosController } from './nav-pos.controller';
|
|
5
|
+
/**
|
|
6
|
+
* 导航占位适配器
|
|
7
|
+
*
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2022-09-19 22:09:03
|
|
10
|
+
* @export
|
|
11
|
+
* @class NavPosProvider
|
|
12
|
+
* @implements {EditorProvider}
|
|
13
|
+
*/
|
|
14
|
+
export declare class NavPosProvider implements IPanelItemProvider {
|
|
15
|
+
component: string;
|
|
16
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<NavPosController>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { NavPosController } from "./nav-pos.controller";
|
|
8
|
+
class NavPosProvider {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "component", "NavPos");
|
|
11
|
+
}
|
|
12
|
+
async createController(panelItem, panel, parent) {
|
|
13
|
+
const c = new NavPosController(panelItem, panel, parent);
|
|
14
|
+
await c.init();
|
|
15
|
+
return c;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
NavPosProvider
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PanelItemState } from '../../control/panel/panel/panel-item-state';
|
|
2
|
+
/**
|
|
3
|
+
* 导航占位状态
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2023-02-07 06:04:27
|
|
7
|
+
* @export
|
|
8
|
+
* @class NavPosState
|
|
9
|
+
* @extends {PanelItemState}
|
|
10
|
+
*/
|
|
11
|
+
export declare class NavPosState extends PanelItemState {
|
|
12
|
+
currentKey: string;
|
|
13
|
+
cacheKeys: string[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { PanelItemState } from "../../control/panel/panel/panel-item-state";
|
|
8
|
+
class NavPosState extends PanelItemState {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
__publicField(this, "currentKey", "");
|
|
12
|
+
__publicField(this, "cacheKeys", []);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
NavPosState
|
|
17
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { EventBase, IModal } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
3
|
+
import { AppMenuController, PanelItemController } from '../../control';
|
|
4
|
+
import { NavTabsController } from '../nav-tabs/nav-tabs.controller';
|
|
5
|
+
import { NavPosState } from './nav-pos-state';
|
|
6
|
+
/**
|
|
7
|
+
* 导航占位控制器
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @class NavPosController
|
|
11
|
+
* @extends {PanelItemController}
|
|
12
|
+
*/
|
|
13
|
+
export declare class NavPosController extends PanelItemController<IPanelRawItem> {
|
|
14
|
+
state: NavPosState;
|
|
15
|
+
/**
|
|
16
|
+
* 导航视图的modal
|
|
17
|
+
* @author lxm
|
|
18
|
+
* @date 2023-05-12 09:47:52
|
|
19
|
+
* @type {{ [key: string]: IModal }}
|
|
20
|
+
*/
|
|
21
|
+
viewModals: {
|
|
22
|
+
[key: string]: IModal;
|
|
23
|
+
};
|
|
24
|
+
protected createState(): NavPosState;
|
|
25
|
+
/**
|
|
26
|
+
* 当前视图的路由层级,非路由模式不存在。
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2023-05-09 12:46:26
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
get routeDepth(): number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* 导航标签页控制器
|
|
34
|
+
* @author lxm
|
|
35
|
+
* @date 2023-05-10 08:41:54
|
|
36
|
+
* @readonly
|
|
37
|
+
* @type {(NavTabsController | undefined)}
|
|
38
|
+
*/
|
|
39
|
+
get navTabs(): NavTabsController | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* 应用菜单控制器
|
|
42
|
+
* @author lxm
|
|
43
|
+
* @date 2023-05-10 08:41:42
|
|
44
|
+
* @readonly
|
|
45
|
+
* @type {(AppMenuController | undefined)}
|
|
46
|
+
*/
|
|
47
|
+
get appmenu(): AppMenuController | undefined;
|
|
48
|
+
onRouteChange({ currentKey }: {
|
|
49
|
+
currentKey: string;
|
|
50
|
+
fullPath: string;
|
|
51
|
+
}): void;
|
|
52
|
+
onViewCreated(event: EventBase): void;
|
|
53
|
+
/**
|
|
54
|
+
* 删除单个缓存
|
|
55
|
+
* @author lxm
|
|
56
|
+
* @date 2023-05-09 02:19:09
|
|
57
|
+
* @param {string} key
|
|
58
|
+
*/
|
|
59
|
+
removeCache(key: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* 清空缓存
|
|
62
|
+
* @author lxm
|
|
63
|
+
* @date 2023-05-09 02:19:55
|
|
64
|
+
*/
|
|
65
|
+
clearCache(): void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 { Modal, ViewMode } from "@ibiz-template/runtime";
|
|
8
|
+
import { PanelItemController } from "../../control";
|
|
9
|
+
import { NavPosState } from "./nav-pos-state";
|
|
10
|
+
class NavPosController extends PanelItemController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 导航视图的modal
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2023-05-12 09:47:52
|
|
17
|
+
* @type {{ [key: string]: IModal }}
|
|
18
|
+
*/
|
|
19
|
+
__publicField(this, "viewModals", {});
|
|
20
|
+
}
|
|
21
|
+
createState() {
|
|
22
|
+
var _a;
|
|
23
|
+
return new NavPosState((_a = this.parent) == null ? void 0 : _a.state);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 当前视图的路由层级,非路由模式不存在。
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2023-05-09 12:46:26
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
get routeDepth() {
|
|
32
|
+
return this.panel.view.modal.routeDepth;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 导航标签页控制器
|
|
36
|
+
* @author lxm
|
|
37
|
+
* @date 2023-05-10 08:41:54
|
|
38
|
+
* @readonly
|
|
39
|
+
* @type {(NavTabsController | undefined)}
|
|
40
|
+
*/
|
|
41
|
+
get navTabs() {
|
|
42
|
+
return this.panel.panelItems.nav_tabs;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 应用菜单控制器
|
|
46
|
+
* @author lxm
|
|
47
|
+
* @date 2023-05-10 08:41:42
|
|
48
|
+
* @readonly
|
|
49
|
+
* @type {(AppMenuController | undefined)}
|
|
50
|
+
*/
|
|
51
|
+
get appmenu() {
|
|
52
|
+
return this.panel.getController("appmenu");
|
|
53
|
+
}
|
|
54
|
+
onRouteChange({ currentKey }) {
|
|
55
|
+
this.state.currentKey = currentKey;
|
|
56
|
+
if (currentKey === "") {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (!this.state.cacheKeys.includes(currentKey)) {
|
|
60
|
+
this.state.cacheKeys.push(currentKey);
|
|
61
|
+
if (this.routeDepth) {
|
|
62
|
+
this.viewModals[currentKey] = new Modal({
|
|
63
|
+
mode: ViewMode.ROUTE,
|
|
64
|
+
routeDepth: this.routeDepth + 1
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
onViewCreated(event) {
|
|
70
|
+
if (this.navTabs) {
|
|
71
|
+
const { view } = event;
|
|
72
|
+
const key = this.state.currentKey;
|
|
73
|
+
this.navTabs.updateViewInfo(key, { caption: view.model.caption });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 删除单个缓存
|
|
78
|
+
* @author lxm
|
|
79
|
+
* @date 2023-05-09 02:19:09
|
|
80
|
+
* @param {string} key
|
|
81
|
+
*/
|
|
82
|
+
removeCache(key) {
|
|
83
|
+
const index = this.state.cacheKeys.indexOf(key);
|
|
84
|
+
if (index !== -1) {
|
|
85
|
+
this.state.cacheKeys.splice(index, 1);
|
|
86
|
+
if (this.routeDepth) {
|
|
87
|
+
delete this.viewModals[key];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 清空缓存
|
|
93
|
+
* @author lxm
|
|
94
|
+
* @date 2023-05-09 02:19:55
|
|
95
|
+
*/
|
|
96
|
+
clearCache() {
|
|
97
|
+
this.state.cacheKeys = [];
|
|
98
|
+
this.viewModals = {};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
NavPosController
|
|
103
|
+
};
|