@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,64 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IButtonContainerState } from '@ibiz-template/runtime';
|
|
3
|
+
import { IUIActionGroupDetail } from '@ibiz/model-core';
|
|
4
|
+
import './action-toolbar.scss';
|
|
5
|
+
export declare const ActionToolbar: import("vue").DefineComponent<{
|
|
6
|
+
actionDetails: {
|
|
7
|
+
type: {
|
|
8
|
+
(arrayLength: number): IUIActionGroupDetail[];
|
|
9
|
+
(...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
10
|
+
new (arrayLength: number): IUIActionGroupDetail[];
|
|
11
|
+
new (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
12
|
+
isArray(arg: any): arg is any[];
|
|
13
|
+
readonly prototype: any[];
|
|
14
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
15
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
16
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
17
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
18
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
19
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
20
|
+
};
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
actionsState: {
|
|
24
|
+
type: PropType<IButtonContainerState>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
caption: StringConstructor;
|
|
28
|
+
mode: {
|
|
29
|
+
type: PropType<"dropdown" | "buttons">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
34
|
+
handleClick: (detail: IUIActionGroupDetail, event: MouseEvent) => Promise<void>;
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
actionDetails: {
|
|
37
|
+
type: {
|
|
38
|
+
(arrayLength: number): IUIActionGroupDetail[];
|
|
39
|
+
(...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
40
|
+
new (arrayLength: number): IUIActionGroupDetail[];
|
|
41
|
+
new (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
|
|
42
|
+
isArray(arg: any): arg is any[];
|
|
43
|
+
readonly prototype: any[];
|
|
44
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
45
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
46
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
47
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
48
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
49
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
50
|
+
};
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
actionsState: {
|
|
54
|
+
type: PropType<IButtonContainerState>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
caption: StringConstructor;
|
|
58
|
+
mode: {
|
|
59
|
+
type: PropType<"dropdown" | "buttons">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
}>>, {
|
|
63
|
+
mode: "dropdown" | "buttons";
|
|
64
|
+
}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ILayoutPos } from '@ibiz/model-core';
|
|
3
|
+
import { ILayoutController } from '@ibiz-template/runtime';
|
|
4
|
+
export declare const AppCol: import("vue").DefineComponent<{
|
|
5
|
+
layoutPos: PropType<ILayoutPos>;
|
|
6
|
+
controller: {
|
|
7
|
+
type: PropType<ILayoutController>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
+
gridAttrs: import("vue").ComputedRef<{
|
|
13
|
+
xs?: undefined;
|
|
14
|
+
sm?: undefined;
|
|
15
|
+
md?: undefined;
|
|
16
|
+
lg?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
xs: {
|
|
19
|
+
span?: number | undefined;
|
|
20
|
+
offset?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
sm: {
|
|
23
|
+
span?: number | undefined;
|
|
24
|
+
offset?: number | undefined;
|
|
25
|
+
};
|
|
26
|
+
md: {
|
|
27
|
+
span?: number | undefined;
|
|
28
|
+
offset?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
lg: {
|
|
31
|
+
span?: number | undefined;
|
|
32
|
+
offset?: number | undefined;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
cssVars: import("vue").ComputedRef<{
|
|
36
|
+
width: string;
|
|
37
|
+
height: string;
|
|
38
|
+
}>;
|
|
39
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
layoutPos: PropType<ILayoutPos>;
|
|
41
|
+
controller: {
|
|
42
|
+
type: PropType<ILayoutController>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
}>>, {}>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent, computed, createVNode, h, resolveComponent } from "vue";
|
|
2
|
+
import { useNamespace } from "@ibiz-template/vue3-util";
|
|
3
|
+
function calcGridSpanOffset(span, offset, layout) {
|
|
4
|
+
const multiplier = layout === "TABLE_24COL" ? 1 : 2;
|
|
5
|
+
const spanDefault = layout === "TABLE_24COL" ? 24 : 12;
|
|
6
|
+
const _span = !span || span === -1 ? spanDefault : span;
|
|
7
|
+
const _offset = !offset || offset === -1 ? 0 : offset;
|
|
8
|
+
const result = {
|
|
9
|
+
span: _span * multiplier
|
|
10
|
+
};
|
|
11
|
+
if (_offset !== 0) {
|
|
12
|
+
result.offset = _offset;
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
const AppCol = /* @__PURE__ */ defineComponent({
|
|
17
|
+
name: "AppCol",
|
|
18
|
+
props: {
|
|
19
|
+
layoutPos: Object,
|
|
20
|
+
controller: {
|
|
21
|
+
type: Object,
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(props) {
|
|
26
|
+
const ns = useNamespace("col");
|
|
27
|
+
const gridAttrs = computed(() => {
|
|
28
|
+
const gridLayoutPos = props.layoutPos;
|
|
29
|
+
if (gridLayoutPos.layout === "FLEX") {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
const {
|
|
33
|
+
colXS,
|
|
34
|
+
colXSOffset,
|
|
35
|
+
colSM,
|
|
36
|
+
colSMOffset,
|
|
37
|
+
colMD,
|
|
38
|
+
colMDOffset,
|
|
39
|
+
colLG,
|
|
40
|
+
colLGOffset
|
|
41
|
+
} = gridLayoutPos;
|
|
42
|
+
return {
|
|
43
|
+
xs: calcGridSpanOffset(colXS, colXSOffset, gridLayoutPos.layout),
|
|
44
|
+
sm: calcGridSpanOffset(colSM, colSMOffset, gridLayoutPos.layout),
|
|
45
|
+
md: calcGridSpanOffset(colMD, colMDOffset, gridLayoutPos.layout),
|
|
46
|
+
lg: calcGridSpanOffset(colLG, colLGOffset, gridLayoutPos.layout)
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
const cssVars = computed(() => {
|
|
50
|
+
const styles = {
|
|
51
|
+
width: props.controller.width,
|
|
52
|
+
height: props.controller.height
|
|
53
|
+
};
|
|
54
|
+
Object.assign(styles, props.controller.extraStyle);
|
|
55
|
+
return styles;
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
ns,
|
|
59
|
+
gridAttrs,
|
|
60
|
+
cssVars
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
render() {
|
|
64
|
+
var _a, _b, _c;
|
|
65
|
+
if (this.controller.visible === false) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
const defaultSlot = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a);
|
|
69
|
+
if (((_c = this.layoutPos) == null ? void 0 : _c.layout) === "FLEX") {
|
|
70
|
+
return createVNode("div", {
|
|
71
|
+
"class": [this.ns.b(), this.ns.m("flex"), this.controller.extraClass],
|
|
72
|
+
"style": {
|
|
73
|
+
flexGrow: this.layoutPos.grow,
|
|
74
|
+
// 修复flex时flex-grow和flex-shrink时高度被内容撑开,没法压缩
|
|
75
|
+
minHeight: 0,
|
|
76
|
+
...this.cssVars
|
|
77
|
+
}
|
|
78
|
+
}, [defaultSlot]);
|
|
79
|
+
}
|
|
80
|
+
return h(resolveComponent("el-col"), {
|
|
81
|
+
class: [this.ns.b(), this.ns.m("grid"), this.controller.extraClass],
|
|
82
|
+
style: this.cssVars,
|
|
83
|
+
...this.gridAttrs
|
|
84
|
+
}, {
|
|
85
|
+
default: () => defaultSlot
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
AppCol
|
|
91
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { ISysImage } from '@ibiz/model-core';
|
|
2
3
|
export declare const AppIcon: import("vue").DefineComponent<{
|
|
3
4
|
icon: {
|
|
4
5
|
type: PropType<ISysImage>;
|
|
@@ -16,4 +17,3 @@ export declare const AppIcon: import("vue").DefineComponent<{
|
|
|
16
17
|
type: PropType<"small" | "medium" | "large">;
|
|
17
18
|
};
|
|
18
19
|
}>>, {}>;
|
|
19
|
-
export default AppIcon;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, watch, createVNode, resolveComponent, h } from "vue";
|
|
2
|
+
import { isNotNil } from "ramda";
|
|
2
3
|
const AppRouterView = /* @__PURE__ */ defineComponent({
|
|
3
4
|
name: "AppRouterView",
|
|
4
5
|
inheritAttrs: false,
|
|
@@ -18,7 +19,7 @@ const AppRouterView = /* @__PURE__ */ defineComponent({
|
|
|
18
19
|
const cache = {};
|
|
19
20
|
let isActive = true;
|
|
20
21
|
watch(() => props.manualKey, (newVal, oldVal) => {
|
|
21
|
-
if (newVal && newVal !== oldVal) {
|
|
22
|
+
if (isNotNil(newVal) && newVal !== oldVal) {
|
|
22
23
|
isActive = true;
|
|
23
24
|
}
|
|
24
25
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ILayout } from '@ibiz/model-core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
export declare const AppRow: import("vue").DefineComponent<{
|
|
4
|
+
layout: PropType<ILayout>;
|
|
5
|
+
}, {
|
|
6
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
7
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
layout: PropType<ILayout>;
|
|
9
|
+
}>>, {}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, isVNode } from "vue";
|
|
2
|
+
import { useNamespace } from "@ibiz-template/vue3-util";
|
|
3
|
+
function _isSlot(s) {
|
|
4
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
5
|
+
}
|
|
6
|
+
const AppRow = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "AppRow",
|
|
8
|
+
props: {
|
|
9
|
+
layout: Object
|
|
10
|
+
},
|
|
11
|
+
setup() {
|
|
12
|
+
const ns = useNamespace("row");
|
|
13
|
+
return {
|
|
14
|
+
ns
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
render() {
|
|
18
|
+
var _a, _b, _c;
|
|
19
|
+
const defaultSlot = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a);
|
|
20
|
+
if (((_c = this.layout) == null ? void 0 : _c.layout) === "FLEX") {
|
|
21
|
+
const {
|
|
22
|
+
dir,
|
|
23
|
+
align,
|
|
24
|
+
valign
|
|
25
|
+
} = this.layout;
|
|
26
|
+
const _dir = dir || "column";
|
|
27
|
+
return createVNode("div", {
|
|
28
|
+
"class": [this.ns.b(), this.ns.m("flex")],
|
|
29
|
+
"style": `display:flex;flex-direction: ${_dir};justify-content: ${align};align-items: ${valign};`
|
|
30
|
+
}, [defaultSlot]);
|
|
31
|
+
}
|
|
32
|
+
return createVNode(resolveComponent("el-row"), {
|
|
33
|
+
"class": [this.ns.b(), this.ns.m("grid")]
|
|
34
|
+
}, _isSlot(defaultSlot) ? defaultSlot : {
|
|
35
|
+
default: () => [defaultSlot]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
AppRow
|
|
41
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent, createVNode
|
|
1
|
+
import { defineComponent, createVNode } from "vue";
|
|
2
2
|
import { useNamespace } from "@ibiz-template/vue3-util";
|
|
3
|
-
import { kebabCase } from "lodash-es";
|
|
4
3
|
const ControlBase = /* @__PURE__ */ defineComponent({
|
|
5
4
|
props: {
|
|
6
5
|
controller: {
|
|
@@ -17,24 +16,18 @@ const ControlBase = /* @__PURE__ */ defineComponent({
|
|
|
17
16
|
} = props.controller.model;
|
|
18
17
|
const typeClass = controlType.toLowerCase();
|
|
19
18
|
const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
|
|
20
|
-
const modelClass = kebabCase(codeName);
|
|
21
19
|
return {
|
|
22
20
|
ns,
|
|
23
21
|
typeClass,
|
|
24
22
|
sysCssName,
|
|
25
|
-
|
|
23
|
+
codeName
|
|
26
24
|
};
|
|
27
25
|
},
|
|
28
26
|
render() {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.
|
|
32
|
-
},
|
|
33
|
-
default: () => {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
return [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
27
|
+
var _a, _b;
|
|
28
|
+
return createVNode("div", {
|
|
29
|
+
"class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.codeName), this.sysCssName]
|
|
30
|
+
}, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]);
|
|
38
31
|
}
|
|
39
32
|
});
|
|
40
33
|
export {
|
package/es/common/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
1
2
|
export * from './app-icon/app-icon';
|
|
2
3
|
export * from './app-keep-alive/app-keep-alive';
|
|
3
|
-
export * from './app-keep-alive/scheduler';
|
|
4
4
|
export * from './app-router-view/app-router-view';
|
|
5
|
-
export * from './app-
|
|
6
|
-
export * from './
|
|
7
|
-
export
|
|
8
|
-
|
|
5
|
+
export * from './app-col/app-col';
|
|
6
|
+
export * from './app-row/app-row';
|
|
7
|
+
export declare const IBizCommonComponents: {
|
|
8
|
+
install: (v: App) => void;
|
|
9
|
+
};
|
|
10
|
+
export default IBizCommonComponents;
|
package/es/common/index.js
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
|
+
import { ActionToolbar } from "./action-toolbar/action-toolbar";
|
|
2
|
+
import { AppCol } from "./app-col/app-col";
|
|
3
|
+
export * from "./app-col/app-col";
|
|
4
|
+
import { AppIcon } from "./app-icon/app-icon";
|
|
1
5
|
export * from "./app-icon/app-icon";
|
|
6
|
+
import { AppKeepAlive } from "./app-keep-alive/app-keep-alive";
|
|
2
7
|
export * from "./app-keep-alive/app-keep-alive";
|
|
3
|
-
|
|
8
|
+
import { AppRouterView } from "./app-router-view/app-router-view";
|
|
4
9
|
export * from "./app-router-view/app-router-view";
|
|
5
|
-
|
|
6
|
-
export * from "./
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
import { AppRow } from "./app-row/app-row";
|
|
11
|
+
export * from "./app-row/app-row";
|
|
12
|
+
import { ControlBase } from "./control-base/control-base";
|
|
13
|
+
const IBizCommonComponents = {
|
|
14
|
+
install: (v) => {
|
|
15
|
+
v.component("ControlBase", ControlBase);
|
|
16
|
+
v.component("AppKeepAlive", AppKeepAlive);
|
|
17
|
+
v.component("AppIcon", AppIcon);
|
|
18
|
+
v.component("AppRow", AppRow);
|
|
19
|
+
v.component("AppCol", AppCol);
|
|
20
|
+
v.component("AppRouterView", AppRouterView);
|
|
21
|
+
v.component("ActionToolbar", ActionToolbar);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
IBizCommonComponents,
|
|
26
|
+
IBizCommonComponents as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ControlState } from '@ibiz-template/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 应用菜单部件UI状态
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class AppMenuState
|
|
7
|
+
* @extends {ControlState}
|
|
8
|
+
*/
|
|
9
|
+
export declare class AppMenuState extends ControlState {
|
|
10
|
+
/**
|
|
11
|
+
* 菜单项状态
|
|
12
|
+
*
|
|
13
|
+
* @author lxm
|
|
14
|
+
* @date 2022-10-12 20:10:51
|
|
15
|
+
* @type {{ [p: string]: { visible: boolean; permitted: boolean } }}
|
|
16
|
+
*/
|
|
17
|
+
menuItemsState: {
|
|
18
|
+
[p: string]: {
|
|
19
|
+
visible: boolean;
|
|
20
|
+
permitted: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { ControlState } from "@ibiz-template/runtime";
|
|
8
|
+
class AppMenuState extends ControlState {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/**
|
|
12
|
+
* 菜单项状态
|
|
13
|
+
*
|
|
14
|
+
* @author lxm
|
|
15
|
+
* @date 2022-10-12 20:10:51
|
|
16
|
+
* @type {{ [p: string]: { visible: boolean; permitted: boolean } }}
|
|
17
|
+
*/
|
|
18
|
+
__publicField(this, "menuItemsState", {});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
AppMenuState
|
|
23
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ControlController, IAppMenuController, ControllerEvent, IAppMenuEvent, Application } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppMenu, IAppMenuItem } from '@ibiz/model-core';
|
|
3
|
+
import { AppMenuState } from './app-menu-state';
|
|
4
|
+
/**
|
|
5
|
+
* 应用菜单控制器
|
|
6
|
+
*
|
|
7
|
+
* @author chitanda
|
|
8
|
+
* @date 2022-07-24 15:07:07
|
|
9
|
+
* @export
|
|
10
|
+
* @class AppMenuController
|
|
11
|
+
* @extends {ControlController}
|
|
12
|
+
*/
|
|
13
|
+
export declare class AppMenuController extends ControlController<IAppMenu> implements IAppMenuController {
|
|
14
|
+
state: AppMenuState;
|
|
15
|
+
evt: ControllerEvent<IAppMenuEvent>;
|
|
16
|
+
/**
|
|
17
|
+
* 菜单项状态
|
|
18
|
+
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2022-10-12 20:10:51
|
|
22
|
+
* @type {{ [p: string]: { visible: boolean; permitted: boolean } }}
|
|
23
|
+
*/
|
|
24
|
+
menuItemsState: {
|
|
25
|
+
[p: string]: {
|
|
26
|
+
visible: boolean;
|
|
27
|
+
permitted: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
app: Application;
|
|
31
|
+
protected doCreated(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* 菜单项点击回调,触发对应的应用功能
|
|
34
|
+
*
|
|
35
|
+
* @author chitanda
|
|
36
|
+
* @date 2022-12-22 14:12:53
|
|
37
|
+
* @param {string} id
|
|
38
|
+
* @return {*} {Promise<void>}
|
|
39
|
+
*/
|
|
40
|
+
onClickMenuItem(id: string, event: MouseEvent): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* 初始化菜单项状态
|
|
43
|
+
*
|
|
44
|
+
* @author lxm
|
|
45
|
+
* @date 2022-10-12 20:10:37
|
|
46
|
+
* @param {AppMenuItemModel} menu
|
|
47
|
+
*/
|
|
48
|
+
initMenuItemState(menu: IAppMenuItem): {
|
|
49
|
+
visible: boolean;
|
|
50
|
+
permitted: boolean;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { ControlController, findRecursiveChild, AppFuncCommand } from "@ibiz-template/runtime";
|
|
9
|
+
import { AppMenuState } from "./app-menu-state";
|
|
10
|
+
class AppMenuController extends ControlController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
__publicField(this, "state", new AppMenuState());
|
|
14
|
+
/**
|
|
15
|
+
* 菜单项状态
|
|
16
|
+
*
|
|
17
|
+
* @deprecated
|
|
18
|
+
* @author lxm
|
|
19
|
+
* @date 2022-10-12 20:10:51
|
|
20
|
+
* @type {{ [p: string]: { visible: boolean; permitted: boolean } }}
|
|
21
|
+
*/
|
|
22
|
+
__publicField(this, "menuItemsState", {});
|
|
23
|
+
__publicField(this, "app");
|
|
24
|
+
}
|
|
25
|
+
async doCreated() {
|
|
26
|
+
var _a;
|
|
27
|
+
await super.doCreated();
|
|
28
|
+
this.app = await ibiz.hub.getApp(this.context.srfappid);
|
|
29
|
+
(_a = this.model.appMenuItems) == null ? void 0 : _a.forEach((item) => {
|
|
30
|
+
this.initMenuItemState(item);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 菜单项点击回调,触发对应的应用功能
|
|
35
|
+
*
|
|
36
|
+
* @author chitanda
|
|
37
|
+
* @date 2022-12-22 14:12:53
|
|
38
|
+
* @param {string} id
|
|
39
|
+
* @return {*} {Promise<void>}
|
|
40
|
+
*/
|
|
41
|
+
async onClickMenuItem(id, event) {
|
|
42
|
+
const menuItem = findRecursiveChild(this.model, id, {
|
|
43
|
+
compareField: "id",
|
|
44
|
+
childrenFields: ["appMenuItems"]
|
|
45
|
+
});
|
|
46
|
+
if (!menuItem) {
|
|
47
|
+
throw new RuntimeError(`找不到名为${id}的菜单项`);
|
|
48
|
+
}
|
|
49
|
+
this.evt.emit("onClick", {
|
|
50
|
+
eventArg: id,
|
|
51
|
+
event
|
|
52
|
+
});
|
|
53
|
+
await ibiz.commands.execute(
|
|
54
|
+
AppFuncCommand.TAG,
|
|
55
|
+
menuItem.appFuncId,
|
|
56
|
+
this.context,
|
|
57
|
+
this.params
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 初始化菜单项状态
|
|
62
|
+
*
|
|
63
|
+
* @author lxm
|
|
64
|
+
* @date 2022-10-12 20:10:37
|
|
65
|
+
* @param {AppMenuItemModel} menu
|
|
66
|
+
*/
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
68
|
+
initMenuItemState(menu) {
|
|
69
|
+
var _a;
|
|
70
|
+
let permitted = true;
|
|
71
|
+
if (menu.accessKey) {
|
|
72
|
+
permitted = this.app.authority.calcByResCode(menu.accessKey);
|
|
73
|
+
}
|
|
74
|
+
let visible = permitted;
|
|
75
|
+
if ((_a = menu.appMenuItems) == null ? void 0 : _a.length) {
|
|
76
|
+
const childrenState = menu.appMenuItems.map((child) => {
|
|
77
|
+
return this.initMenuItemState(child).visible;
|
|
78
|
+
});
|
|
79
|
+
visible = visible && childrenState.includes(true);
|
|
80
|
+
}
|
|
81
|
+
const result = { permitted, visible };
|
|
82
|
+
this.state.menuItemsState[menu.id] = result;
|
|
83
|
+
return {
|
|
84
|
+
visible: true,
|
|
85
|
+
permitted: true
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
AppMenuController
|
|
91
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { Namespace } from '@ibiz-template/core';
|
|
2
|
+
import { IAppMenu } from '@ibiz/model-core';
|
|
1
3
|
import { PropType, Ref } from 'vue';
|
|
2
4
|
import './app-menu.scss';
|
|
5
|
+
import { AppMenuController } from './app-menu.controller';
|
|
3
6
|
export declare const AppMenu: import("vue").DefineComponent<{
|
|
4
7
|
modelData: {
|
|
5
8
|
type: PropType<IAppMenu>;
|
|
@@ -20,11 +23,11 @@ export declare const AppMenu: import("vue").DefineComponent<{
|
|
|
20
23
|
default: string;
|
|
21
24
|
};
|
|
22
25
|
}, {
|
|
23
|
-
menus: Ref<
|
|
24
|
-
c:
|
|
25
|
-
key:
|
|
26
|
-
onClick: (key: string) => Promise<void>;
|
|
27
|
-
ns:
|
|
26
|
+
menus: Ref<IDatum[]>;
|
|
27
|
+
c: AppMenuController;
|
|
28
|
+
key: Ref<string>;
|
|
29
|
+
onClick: (key: string, event: MouseEvent) => Promise<void>;
|
|
30
|
+
ns: Namespace;
|
|
28
31
|
defaultActive: Ref<string>;
|
|
29
32
|
defaultOpens: Ref<string[]>;
|
|
30
33
|
MenuMode: import("vue").ComputedRef<"horizontal" | "vertical">;
|
|
@@ -48,7 +51,7 @@ export declare const AppMenu: import("vue").DefineComponent<{
|
|
|
48
51
|
default: string;
|
|
49
52
|
};
|
|
50
53
|
}>>, {
|
|
51
|
-
collapse: boolean;
|
|
52
|
-
params: IParams;
|
|
53
54
|
mode: string;
|
|
55
|
+
params: IParams;
|
|
56
|
+
collapse: boolean;
|
|
54
57
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, ref, onMounted, computed, createVNode, resolveComponent, isVNode } from "vue";
|
|
2
2
|
import { useControlController, useNamespace } from "@ibiz-template/vue3-util";
|
|
3
|
-
import { AppMenuController } from "@ibiz-template/runtime";
|
|
4
3
|
import { createUUID } from "qx-util";
|
|
4
|
+
import { AppMenuController } from "./app-menu.controller";
|
|
5
5
|
const appMenu = "";
|
|
6
6
|
function _isSlot(s) {
|
|
7
7
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -72,7 +72,7 @@ function renderSubmenu(isFirst, subMenu, collapse, ns, c) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
const AppMenu = /* @__PURE__ */ defineComponent({
|
|
75
|
-
name: "
|
|
75
|
+
name: "AppMenuControl",
|
|
76
76
|
props: {
|
|
77
77
|
modelData: {
|
|
78
78
|
type: Object,
|
|
@@ -98,17 +98,13 @@ const AppMenu = /* @__PURE__ */ defineComponent({
|
|
|
98
98
|
proxy
|
|
99
99
|
} = getCurrentInstance();
|
|
100
100
|
const c = useControlController((...args) => new AppMenuController(...args));
|
|
101
|
+
const ns = useNamespace(`control-${c.model.controlType.toLowerCase()}`);
|
|
101
102
|
const menus = ref(getMenus(c.model.appMenuItems));
|
|
102
103
|
const defaultActive = ref("");
|
|
103
104
|
const defaultOpens = ref([]);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
menuClickDoing = true;
|
|
107
|
-
await c.onClickMenuItem(key2);
|
|
108
|
-
menuClickDoing = false;
|
|
105
|
+
const onClick = async (key2, event) => {
|
|
106
|
+
await c.onClickMenuItem(key2, event);
|
|
109
107
|
};
|
|
110
|
-
console.log(menuClickDoing);
|
|
111
|
-
const ns = useNamespace("control-menu");
|
|
112
108
|
const key = ref(createUUID());
|
|
113
109
|
const updateMenu = () => {
|
|
114
110
|
setTimeout(() => {
|
|
@@ -150,7 +146,7 @@ const AppMenu = /* @__PURE__ */ defineComponent({
|
|
|
150
146
|
"class": [this.ns.b(), this.ns.is("collapse", this.collapse)],
|
|
151
147
|
"controller": this.c
|
|
152
148
|
}, {
|
|
153
|
-
default: () => [createVNode(resolveComponent("el-menu"), {
|
|
149
|
+
default: () => [this.c.state.complete && createVNode(resolveComponent("el-menu"), {
|
|
154
150
|
"key": this.key,
|
|
155
151
|
"ref": "menu",
|
|
156
152
|
"default-active": this.defaultActive,
|