@ibiz-template/vue3-components 0.0.1-alpha.1 → 0.0.1-alpha.2
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/app-col/app-col.d.ts +44 -0
- package/es/common/app-col/app-col.js +87 -0
- package/es/common/app-icon/app-icon.d.ts +1 -0
- package/es/common/app-router-view/app-router-view.d.ts +1 -0
- package/es/common/app-row/app-row.d.ts +9 -0
- package/es/common/app-row/app-row.js +40 -0
- package/es/common/app-user/app-user.d.ts +2 -2
- package/es/common/index.d.ts +3 -2
- package/es/common/index.js +3 -2
- package/es/common/quick-search/quick-search.d.ts +1 -1
- package/es/common/tab-page-exp/tab-page-exp.d.ts +2 -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 +50 -0
- package/es/control/app-menu/app-menu.controller.js +83 -0
- package/es/control/app-menu/app-menu.d.ts +6 -4
- package/es/control/app-menu/app-menu.js +2 -2
- package/es/control/app-menu/index.d.ts +8 -8
- package/es/control/app-menu/index.js +3 -3
- 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 +203 -0
- package/es/control/form/form/index.d.ts +35 -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 +182 -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 +55 -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-provider.js +20 -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-state.js +46 -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.controller.js +268 -0
- package/es/control/form/form-detail/form-item/form-item.d.ts +29 -0
- package/es/control/form/form-detail/form-item/index.d.ts +3 -0
- package/es/control/form/form-detail/form-item/index.js +3 -0
- package/es/control/form/form-detail/form-page/form-page-item.d.ts +33 -0
- package/es/control/form/form-detail/form-page/form-page-item.js +67 -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-provider.js +20 -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-state.js +6 -0
- package/es/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/es/control/form/form-detail/form-page/form-page.controller.js +11 -0
- package/{lib/layout/control-shell/control-shell.d.ts → es/control/form/form-detail/form-page/form-page.d.ts} +7 -8
- 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.d.ts +33 -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/control/form/search-form/search-form-provider.js +14 -0
- package/es/control/form/search-form/search-form-state.d.ts +12 -0
- package/es/control/form/search-form/search-form-state.js +6 -0
- package/es/control/form/search-form/search-form.controller.d.ts +79 -0
- package/es/control/form/search-form/search-form.controller.js +114 -0
- package/{lib/layout/view-shell/view-shell.d.ts → es/control/form/search-form/search-form.d.ts} +16 -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/es/control/{grid-control → grid/grid}/grid-control.d.ts +6 -5
- package/es/control/{grid-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 +82 -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 +214 -0
- package/es/control/grid/grid/grid.controller.js +382 -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/{lib/control/grid-control → es/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/{lib/control/grid-control → es/control/grid}/index.d.ts +12 -11
- package/es/control/{grid-control → grid}/index.js +11 -7
- package/es/control/index.d.ts +3 -2
- package/es/control/index.js +3 -2
- package/es/control/panel/index.d.ts +43 -0
- package/es/control/panel/index.js +23 -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 +141 -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 +192 -0
- package/es/control/panel/panel-container/index.d.ts +30 -0
- package/es/control/panel/panel-container/index.js +22 -0
- package/es/control/panel/panel-container/panel-container-provider.d.ts +17 -0
- package/es/control/panel/panel-container/panel-container-provider.js +20 -0
- package/es/control/panel/panel-container/panel-container-state.d.ts +12 -0
- package/es/control/panel/panel-container/panel-container-state.js +6 -0
- package/es/control/panel/panel-container/panel-container.controller.d.ts +14 -0
- package/es/control/panel/panel-container/panel-container.controller.js +11 -0
- package/es/control/panel/panel-container/panel-container.d.ts +28 -0
- package/es/control/panel/panel-ctrl-pos/index.d.ts +26 -0
- package/es/control/panel/panel-ctrl-pos/index.js +17 -0
- package/es/control/panel/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
- package/es/control/panel/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
- package/es/control/panel/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +22 -0
- package/es/control/panel/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/es/control/panel/panel-ctrl-pos/panel-ctrl-pos.d.ts +23 -0
- package/es/control/panel/panel-ctrl-pos/panel-ctrl-pos.js +40 -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 +43 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.js +106 -0
- package/{lib/control/toolbar-control → es/control/toolbar}/index.d.ts +6 -14
- package/es/control/{toolbar-control → toolbar}/index.js +3 -3
- package/{lib/control/toolbar-control → es/control/toolbar}/toolbar-control.d.ts +2 -9
- 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 +85 -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 +13 -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 +5 -0
- package/es/index.js +39 -2
- package/es/layout/app-layout/app-layout.d.ts +3 -2
- package/es/layout/control-base/control-base.d.ts +2 -2
- package/es/layout/control-layout/control-layout.d.ts +3 -3
- package/es/layout/index.d.ts +2 -5
- package/es/layout/index.js +3 -9
- package/es/layout/view-base/view-base.d.ts +2 -2
- package/es/layout/view-layout/view-layout.d.ts +4 -3
- package/es/views/grid-view/grid-view-engine.d.ts +13 -0
- package/es/views/grid-view/grid-view-engine.js +38 -0
- package/es/views/grid-view/index.d.ts +2 -32
- package/es/views/grid-view/index.js +5 -7
- package/es/views/index-view/index-view-default.d.ts +1 -0
- package/es/views/index-view/index-view-exp.d.ts +970 -1
- package/es/views/index-view/index-view.d.ts +2 -0
- package/es/views/index-view/index-view.js +7 -5
- package/es/views/index-view/index.d.ts +5 -4
- package/es/views/index-view/index.js +3 -3
- package/es/views/index.d.ts +2 -3
- package/es/views/index.js +2 -5
- package/{lib/views/grid-view/grid-view.d.ts → es/views/view/ibiz-view.d.ts} +6 -3
- package/es/views/{grid-view/grid-view.js → view/ibiz-view.js} +24 -29
- package/es/views/view/index.d.ts +34 -0
- package/es/views/view/index.js +13 -0
- package/es/views/{grid-view/grid-view-provider.d.ts → view/view-provider.d.ts} +3 -3
- package/es/views/{grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/lib/common/app-col/app-col.d.ts +44 -0
- package/lib/common/app-col/app-col.js +87 -0
- package/lib/common/app-icon/app-icon.d.ts +1 -0
- package/lib/common/app-router-view/app-router-view.d.ts +1 -0
- package/lib/common/app-row/app-row.d.ts +9 -0
- package/lib/common/app-row/app-row.js +40 -0
- package/lib/common/app-user/app-user.d.ts +2 -2
- package/lib/common/index.d.ts +3 -2
- package/lib/common/index.js +14 -6
- package/lib/common/quick-search/quick-search.d.ts +1 -1
- package/lib/common/tab-page-exp/tab-page-exp.d.ts +2 -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 +50 -0
- package/lib/control/app-menu/app-menu.controller.js +83 -0
- package/lib/control/app-menu/app-menu.d.ts +6 -4
- package/lib/control/app-menu/app-menu.js +3 -3
- package/lib/control/app-menu/index.d.ts +8 -8
- package/lib/control/app-menu/index.js +3 -3
- 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 +203 -0
- package/lib/control/form/form/index.d.ts +35 -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 +182 -0
- package/lib/control/form/form-detail/form-detail/index.d.ts +2 -0
- package/lib/control/form/form-detail/form-detail/index.js +18 -0
- 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 +55 -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-provider.js +20 -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-state.js +46 -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.controller.js +268 -0
- package/lib/control/form/form-detail/form-item/form-item.d.ts +29 -0
- package/lib/control/form/form-detail/form-item/index.d.ts +3 -0
- package/lib/control/form/form-detail/form-item/index.js +26 -0
- package/lib/control/form/form-detail/form-page/form-page-item.d.ts +33 -0
- package/lib/control/form/form-detail/form-page/form-page-item.js +67 -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-provider.js +20 -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-state.js +6 -0
- package/lib/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/lib/control/form/form-detail/form-page/form-page.controller.js +11 -0
- package/{es/layout/control-shell/control-shell.d.ts → lib/control/form/form-detail/form-page/form-page.d.ts} +7 -8
- 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.d.ts +33 -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/control/form/search-form/search-form-provider.js +14 -0
- package/lib/control/form/search-form/search-form-state.d.ts +12 -0
- package/lib/control/form/search-form/search-form-state.js +6 -0
- package/lib/control/form/search-form/search-form.controller.d.ts +79 -0
- package/lib/control/form/search-form/search-form.controller.js +114 -0
- package/{es/layout/view-shell/view-shell.d.ts → lib/control/form/search-form/search-form.d.ts} +16 -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/lib/control/{grid-control → grid/grid}/grid-control.d.ts +6 -5
- package/lib/control/{grid-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 +82 -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 +214 -0
- package/lib/control/grid/grid/grid.controller.js +382 -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/{es/control/grid-control → lib/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/{es/control/grid-control → lib/control/grid}/index.d.ts +12 -11
- package/lib/control/{grid-control → grid}/index.js +13 -6
- package/lib/control/index.d.ts +3 -2
- package/lib/control/index.js +14 -6
- package/lib/control/panel/index.d.ts +43 -0
- package/lib/control/panel/index.js +37 -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 +141 -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 +192 -0
- package/lib/control/panel/panel-container/index.d.ts +30 -0
- package/lib/control/panel/panel-container/index.js +32 -0
- package/lib/control/panel/panel-container/panel-container-provider.d.ts +17 -0
- package/lib/control/panel/panel-container/panel-container-provider.js +20 -0
- package/lib/control/panel/panel-container/panel-container-state.d.ts +12 -0
- package/lib/control/panel/panel-container/panel-container-state.js +6 -0
- package/lib/control/panel/panel-container/panel-container.controller.d.ts +14 -0
- package/lib/control/panel/panel-container/panel-container.controller.js +11 -0
- package/lib/control/panel/panel-container/panel-container.d.ts +28 -0
- package/lib/control/panel/panel-ctrl-pos/index.d.ts +26 -0
- package/lib/control/panel/panel-ctrl-pos/index.js +24 -0
- package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
- package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
- package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +22 -0
- package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos.d.ts +23 -0
- package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos.js +40 -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 +43 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.js +106 -0
- package/{es/control/toolbar-control → lib/control/toolbar}/index.d.ts +6 -14
- package/lib/control/{toolbar-control → toolbar}/index.js +3 -3
- package/{es/control/toolbar-control → lib/control/toolbar}/toolbar-control.d.ts +2 -9
- 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 +85 -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 +13 -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 +5 -0
- package/lib/index.js +42 -11
- package/lib/layout/app-layout/app-layout.d.ts +3 -2
- package/lib/layout/control-base/control-base.d.ts +2 -2
- package/lib/layout/control-layout/control-layout.d.ts +3 -3
- package/lib/layout/index.d.ts +2 -5
- package/lib/layout/index.js +4 -16
- package/lib/layout/view-base/view-base.d.ts +2 -2
- package/lib/layout/view-layout/view-layout.d.ts +4 -3
- package/lib/views/grid-view/grid-view-engine.d.ts +13 -0
- package/lib/views/grid-view/grid-view-engine.js +38 -0
- package/lib/views/grid-view/index.d.ts +2 -32
- package/lib/views/grid-view/index.js +5 -7
- package/lib/views/index-view/index-view-default.d.ts +1 -0
- package/lib/views/index-view/index-view-exp.d.ts +970 -1
- package/lib/views/index-view/index-view.d.ts +2 -0
- package/lib/views/index-view/index-view.js +7 -5
- package/lib/views/index-view/index.d.ts +5 -4
- package/lib/views/index-view/index.js +3 -3
- package/lib/views/index.d.ts +2 -3
- package/lib/views/index.js +11 -5
- package/{es/views/grid-view/grid-view.d.ts → lib/views/view/ibiz-view.d.ts} +6 -3
- package/lib/views/view/ibiz-view.js +59 -0
- package/lib/views/view/index.d.ts +34 -0
- package/lib/views/view/index.js +15 -0
- package/lib/views/{grid-view/grid-view-provider.d.ts → view/view-provider.d.ts} +3 -3
- package/lib/views/{grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/package.json +16 -16
- package/es/common/grid-pagination/index.d.ts +0 -40
- package/es/common/grid-pagination/index.js +0 -9
- package/es/layout/router-shell/router-shell.d.ts +0 -27
- package/es/layout/router-shell/router-shell.js +0 -96
- 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/lib/common/grid-pagination/index.d.ts +0 -40
- package/lib/common/grid-pagination/index.js +0 -9
- package/lib/layout/router-shell/router-shell.d.ts +0 -27
- package/lib/layout/router-shell/router-shell.js +0 -96
- 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.js +0 -64
- /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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ILayoutPos } from '@ibiz/model-core';
|
|
3
|
+
export declare const AppCol: import("vue").DefineComponent<{
|
|
4
|
+
layoutPos: PropType<ILayoutPos>;
|
|
5
|
+
controller: {
|
|
6
|
+
type: PropType<ILayoutController>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
11
|
+
gridAttrs: import("vue").ComputedRef<{
|
|
12
|
+
xs?: undefined;
|
|
13
|
+
sm?: undefined;
|
|
14
|
+
md?: undefined;
|
|
15
|
+
lg?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
xs: {
|
|
18
|
+
span: number;
|
|
19
|
+
offset: number;
|
|
20
|
+
};
|
|
21
|
+
sm: {
|
|
22
|
+
span: number;
|
|
23
|
+
offset: number;
|
|
24
|
+
};
|
|
25
|
+
md: {
|
|
26
|
+
span: number;
|
|
27
|
+
offset: number;
|
|
28
|
+
};
|
|
29
|
+
lg: {
|
|
30
|
+
span: number;
|
|
31
|
+
offset: number;
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
cssVars: import("vue").ComputedRef<{
|
|
35
|
+
width: any;
|
|
36
|
+
height: any;
|
|
37
|
+
}>;
|
|
38
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
layoutPos: PropType<ILayoutPos>;
|
|
40
|
+
controller: {
|
|
41
|
+
type: PropType<ILayoutController>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
}>>, {}>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent, computed, createVNode, h, resolveComponent } from "vue";
|
|
2
|
+
import { useNamespace } from "@ibiz-template/vue3-util";
|
|
3
|
+
const AppCol = /* @__PURE__ */ defineComponent({
|
|
4
|
+
name: "AppCol",
|
|
5
|
+
props: {
|
|
6
|
+
layoutPos: Object,
|
|
7
|
+
controller: {
|
|
8
|
+
type: Object,
|
|
9
|
+
required: true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
setup(props) {
|
|
13
|
+
const ns = useNamespace("col");
|
|
14
|
+
const gridAttrs = computed(() => {
|
|
15
|
+
const gridLayoutPos = props.layoutPos;
|
|
16
|
+
if (gridLayoutPos.layout === "FLEX") {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
const colXS = gridLayoutPos.colXS || 0;
|
|
20
|
+
const colXSOffset = gridLayoutPos.colXSOffset || 0;
|
|
21
|
+
const colSM = gridLayoutPos.colSM || 0;
|
|
22
|
+
const colSMOffset = gridLayoutPos.colSMOffset || 0;
|
|
23
|
+
const colMD = gridLayoutPos.colMD || 0;
|
|
24
|
+
const colMDOffset = gridLayoutPos.colMDOffset || 0;
|
|
25
|
+
const colLG = gridLayoutPos.colLG || 0;
|
|
26
|
+
const colLGOffset = gridLayoutPos.colLGOffset || 0;
|
|
27
|
+
const multiplier = gridLayoutPos.layout === "TABLE_24COL" ? 1 : 2;
|
|
28
|
+
return {
|
|
29
|
+
xs: {
|
|
30
|
+
span: colXS * multiplier,
|
|
31
|
+
offset: colXSOffset * multiplier
|
|
32
|
+
},
|
|
33
|
+
sm: {
|
|
34
|
+
span: colSM * multiplier,
|
|
35
|
+
offset: colSMOffset * multiplier
|
|
36
|
+
},
|
|
37
|
+
md: {
|
|
38
|
+
span: colMD * multiplier,
|
|
39
|
+
offset: colMDOffset * multiplier
|
|
40
|
+
},
|
|
41
|
+
lg: {
|
|
42
|
+
span: colLG * multiplier,
|
|
43
|
+
offset: colLGOffset * multiplier
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
const cssVars = computed(() => {
|
|
48
|
+
const styles = {
|
|
49
|
+
width: props.controller.width,
|
|
50
|
+
height: props.controller.height
|
|
51
|
+
};
|
|
52
|
+
Object.assign(styles, props.controller.extraStyle);
|
|
53
|
+
return styles;
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
ns,
|
|
57
|
+
gridAttrs,
|
|
58
|
+
cssVars
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
render() {
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
if (this.controller.visible === false) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const defaultSlot = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a);
|
|
67
|
+
if (((_c = this.layoutPos) == null ? void 0 : _c.layout) === "FLEX") {
|
|
68
|
+
return createVNode("div", {
|
|
69
|
+
"class": [this.ns.b(), this.ns.m("flex"), this.controller.extraClass],
|
|
70
|
+
"style": {
|
|
71
|
+
flexGrow: this.layoutPos.grow,
|
|
72
|
+
...this.cssVars
|
|
73
|
+
}
|
|
74
|
+
}, [defaultSlot]);
|
|
75
|
+
}
|
|
76
|
+
return h(resolveComponent("el-col"), {
|
|
77
|
+
class: [this.ns.b(), this.ns.m("grid"), this.controller.extraClass],
|
|
78
|
+
style: this.cssVars,
|
|
79
|
+
...this.gridAttrs
|
|
80
|
+
}, {
|
|
81
|
+
default: () => defaultSlot
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
AppCol
|
|
87
|
+
};
|
|
@@ -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,40 @@
|
|
|
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
|
+
return createVNode("div", {
|
|
27
|
+
"class": [this.ns.b(), this.ns.m("flex")],
|
|
28
|
+
"style": `display:flex;flex-direction: ${dir};justify-content: ${align};align-items: ${valign};`
|
|
29
|
+
}, [defaultSlot]);
|
|
30
|
+
}
|
|
31
|
+
return createVNode(resolveComponent("el-row"), {
|
|
32
|
+
"class": [this.ns.b(), this.ns.m("grid")]
|
|
33
|
+
}, _isSlot(defaultSlot) ? defaultSlot : {
|
|
34
|
+
default: () => [defaultSlot]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
AppRow
|
|
40
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './app-user.scss';
|
|
2
2
|
export declare const AppUser: import("vue").DefineComponent<{}, {
|
|
3
|
-
ns:
|
|
3
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
4
4
|
srfusername: any;
|
|
5
|
-
router:
|
|
5
|
+
router: import("vue-router").Router;
|
|
6
6
|
}, {}, {}, {
|
|
7
7
|
onClick(): Promise<void>;
|
|
8
8
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
package/es/common/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './app-keep-alive/app-keep-alive';
|
|
|
3
3
|
export * from './app-keep-alive/scheduler';
|
|
4
4
|
export * from './app-router-view/app-router-view';
|
|
5
5
|
export * from './app-user/app-user';
|
|
6
|
-
export * from './grid-pagination/index';
|
|
7
|
-
export * from './quick-search/quick-search';
|
|
8
6
|
export * from './tab-page-exp/tab-page-exp';
|
|
7
|
+
export * from './quick-search/quick-search';
|
|
8
|
+
export * from './app-col/app-col';
|
|
9
|
+
export * from './app-row/app-row';
|
package/es/common/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./app-keep-alive/app-keep-alive";
|
|
|
3
3
|
export * from "./app-keep-alive/scheduler";
|
|
4
4
|
export * from "./app-router-view/app-router-view";
|
|
5
5
|
export * from "./app-user/app-user";
|
|
6
|
-
export * from "./grid-pagination/index";
|
|
7
|
-
export * from "./quick-search/quick-search";
|
|
8
6
|
export * from "./tab-page-exp/tab-page-exp";
|
|
7
|
+
export * from "./quick-search/quick-search";
|
|
8
|
+
export * from "./app-col/app-col";
|
|
9
|
+
export * from "./app-row/app-row";
|
|
@@ -11,7 +11,7 @@ export declare const QuickSearch: import("vue").DefineComponent<{
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
};
|
|
13
13
|
}, {
|
|
14
|
-
ns:
|
|
14
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
15
15
|
inputValue: import("vue").WritableComputedRef<string | undefined>;
|
|
16
16
|
search: () => void;
|
|
17
17
|
onInput: (value: string | undefined) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import './tab-page-exp.scss';
|
|
2
|
+
import { TabPaneName, TabsPaneContext } from 'element-plus';
|
|
2
3
|
interface RouteMsg {
|
|
3
4
|
key: string;
|
|
4
5
|
fullPath: string;
|
|
@@ -32,7 +33,7 @@ export declare const TabPageExp: import("vue").DefineComponent<{
|
|
|
32
33
|
required: true;
|
|
33
34
|
};
|
|
34
35
|
}, {
|
|
35
|
-
ns:
|
|
36
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
36
37
|
tabsValue: import("vue").Ref<number>;
|
|
37
38
|
actions: dropdownAction[];
|
|
38
39
|
changePage: (pane: TabsPaneContext, _ev: Event) => void;
|
|
@@ -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,50 @@
|
|
|
1
|
+
import { ControlController } 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> {
|
|
14
|
+
state: AppMenuState;
|
|
15
|
+
/**
|
|
16
|
+
* 菜单项状态
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
19
|
+
* @author lxm
|
|
20
|
+
* @date 2022-10-12 20:10:51
|
|
21
|
+
* @type {{ [p: string]: { visible: boolean; permitted: boolean } }}
|
|
22
|
+
*/
|
|
23
|
+
menuItemsState: {
|
|
24
|
+
[p: string]: {
|
|
25
|
+
visible: boolean;
|
|
26
|
+
permitted: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
protected doCreated(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* 菜单项点击回调,触发对应的应用功能
|
|
32
|
+
*
|
|
33
|
+
* @author chitanda
|
|
34
|
+
* @date 2022-12-22 14:12:53
|
|
35
|
+
* @param {string} id
|
|
36
|
+
* @return {*} {Promise<void>}
|
|
37
|
+
*/
|
|
38
|
+
onClickMenuItem(id: string): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* 初始化菜单项状态
|
|
41
|
+
*
|
|
42
|
+
* @author lxm
|
|
43
|
+
* @date 2022-10-12 20:10:37
|
|
44
|
+
* @param {AppMenuItemModel} menu
|
|
45
|
+
*/
|
|
46
|
+
initMenuItemState(menu: IAppMenuItem): {
|
|
47
|
+
visible: boolean;
|
|
48
|
+
permitted: boolean;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
}
|
|
24
|
+
async doCreated() {
|
|
25
|
+
var _a;
|
|
26
|
+
await super.doCreated();
|
|
27
|
+
(_a = this.model.appMenuItems) == null ? void 0 : _a.forEach((item) => {
|
|
28
|
+
this.initMenuItemState(item);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 菜单项点击回调,触发对应的应用功能
|
|
33
|
+
*
|
|
34
|
+
* @author chitanda
|
|
35
|
+
* @date 2022-12-22 14:12:53
|
|
36
|
+
* @param {string} id
|
|
37
|
+
* @return {*} {Promise<void>}
|
|
38
|
+
*/
|
|
39
|
+
async onClickMenuItem(id) {
|
|
40
|
+
const menuItem = findRecursiveChild(this.model, id, {
|
|
41
|
+
compareField: "id",
|
|
42
|
+
childrenFields: ["appMenuItems"]
|
|
43
|
+
});
|
|
44
|
+
if (!menuItem) {
|
|
45
|
+
throw new RuntimeError(`找不到名为${id}的菜单项`);
|
|
46
|
+
}
|
|
47
|
+
console.log(menuItem);
|
|
48
|
+
await ibiz.commands.execute(
|
|
49
|
+
AppFuncCommand.TAG,
|
|
50
|
+
menuItem.appFuncId,
|
|
51
|
+
this.context,
|
|
52
|
+
this.params
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 初始化菜单项状态
|
|
57
|
+
*
|
|
58
|
+
* @author lxm
|
|
59
|
+
* @date 2022-10-12 20:10:37
|
|
60
|
+
* @param {AppMenuItemModel} menu
|
|
61
|
+
*/
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
63
|
+
initMenuItemState(menu) {
|
|
64
|
+
var _a;
|
|
65
|
+
const permitted = true;
|
|
66
|
+
let visible = permitted;
|
|
67
|
+
if ((_a = menu.appMenuItems) == null ? void 0 : _a.length) {
|
|
68
|
+
const childrenState = menu.appMenuItems.map((child) => {
|
|
69
|
+
return this.initMenuItemState(child).visible;
|
|
70
|
+
});
|
|
71
|
+
visible = visible && childrenState.includes(true);
|
|
72
|
+
}
|
|
73
|
+
const result = { permitted, visible };
|
|
74
|
+
this.state.menuItemsState[menu.id] = result;
|
|
75
|
+
return {
|
|
76
|
+
visible: true,
|
|
77
|
+
permitted: true
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
AppMenuController
|
|
83
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
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';
|
|
3
5
|
export declare const AppMenu: import("vue").DefineComponent<{
|
|
@@ -20,11 +22,11 @@ export declare const AppMenu: import("vue").DefineComponent<{
|
|
|
20
22
|
default: string;
|
|
21
23
|
};
|
|
22
24
|
}, {
|
|
23
|
-
menus: Ref<
|
|
25
|
+
menus: Ref<IDatum[]>;
|
|
24
26
|
c: any;
|
|
25
|
-
key:
|
|
27
|
+
key: Ref<string>;
|
|
26
28
|
onClick: (key: string) => Promise<void>;
|
|
27
|
-
ns:
|
|
29
|
+
ns: Namespace;
|
|
28
30
|
defaultActive: Ref<string>;
|
|
29
31
|
defaultOpens: Ref<string[]>;
|
|
30
32
|
MenuMode: import("vue").ComputedRef<"horizontal" | "vertical">;
|
|
@@ -48,7 +50,7 @@ export declare const AppMenu: import("vue").DefineComponent<{
|
|
|
48
50
|
default: string;
|
|
49
51
|
};
|
|
50
52
|
}>>, {
|
|
51
|
-
collapse: boolean;
|
|
52
53
|
params: IParams;
|
|
54
|
+
collapse: boolean;
|
|
53
55
|
mode: string;
|
|
54
56
|
}>;
|
|
@@ -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);
|
|
@@ -150,7 +150,7 @@ const AppMenu = /* @__PURE__ */ defineComponent({
|
|
|
150
150
|
"class": [this.ns.b(), this.ns.is("collapse", this.collapse)],
|
|
151
151
|
"controller": this.c
|
|
152
152
|
}, {
|
|
153
|
-
default: () => [createVNode(resolveComponent("el-menu"), {
|
|
153
|
+
default: () => [this.c.state.complete && createVNode(resolveComponent("el-menu"), {
|
|
154
154
|
"key": this.key,
|
|
155
155
|
"ref": "menu",
|
|
156
156
|
"default-active": this.defaultActive,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const IBizAppMenu: import("../../util/install").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
modelData: {
|
|
3
|
-
type: import("vue").PropType<IAppMenu>;
|
|
3
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppMenu>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
context: {
|
|
@@ -18,17 +18,17 @@ export declare const IbizAppMenu: import("../../util/install").TypeWithInstall<i
|
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
21
|
-
menus: import("vue").Ref<
|
|
21
|
+
menus: import("vue").Ref<IDatum[]>;
|
|
22
22
|
c: any;
|
|
23
|
-
key:
|
|
23
|
+
key: import("vue").Ref<string>;
|
|
24
24
|
onClick: (key: string) => Promise<void>;
|
|
25
|
-
ns:
|
|
25
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
26
26
|
defaultActive: import("vue").Ref<string>;
|
|
27
27
|
defaultOpens: import("vue").Ref<string[]>;
|
|
28
28
|
MenuMode: import("vue").ComputedRef<"horizontal" | "vertical">;
|
|
29
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
modelData: {
|
|
31
|
-
type: import("vue").PropType<IAppMenu>;
|
|
31
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppMenu>;
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
34
34
|
context: {
|
|
@@ -46,8 +46,8 @@ export declare const IbizAppMenu: import("../../util/install").TypeWithInstall<i
|
|
|
46
46
|
default: string;
|
|
47
47
|
};
|
|
48
48
|
}>>, {
|
|
49
|
-
collapse: boolean;
|
|
50
49
|
params: IParams;
|
|
50
|
+
collapse: boolean;
|
|
51
51
|
mode: string;
|
|
52
52
|
}>>;
|
|
53
|
-
export default
|
|
53
|
+
export default IBizAppMenu;
|
|
@@ -2,11 +2,11 @@ import { ControlType } from "@ibiz-template/runtime";
|
|
|
2
2
|
import { withInstall } from "../../util/install";
|
|
3
3
|
import { AppMenu } from "./app-menu";
|
|
4
4
|
import { AppMenuProvider } from "./app-menu-provider";
|
|
5
|
-
const
|
|
5
|
+
const IBizAppMenu = withInstall(AppMenu, function(v) {
|
|
6
6
|
v.component(AppMenu.name, AppMenu);
|
|
7
7
|
ibiz.register.control.register(ControlType.APP_MENU, new AppMenuProvider());
|
|
8
8
|
});
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
IBizAppMenu,
|
|
11
|
+
IBizAppMenu as default
|
|
12
12
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IDEForm } from '@ibiz/model-core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { FormController } from './form.controller';
|
|
4
|
+
import './form.scss';
|
|
5
|
+
export declare const FormControl: import("vue").DefineComponent<{
|
|
6
|
+
modelData: {
|
|
7
|
+
type: PropType<IDEForm>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
context: {
|
|
11
|
+
type: PropType<IContext>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
controller: {
|
|
15
|
+
type: PropType<FormController<IDEForm>>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
20
|
+
c: FormController<IDEForm>;
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
modelData: {
|
|
23
|
+
type: PropType<IDEForm>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
context: {
|
|
27
|
+
type: PropType<IContext>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
controller: {
|
|
31
|
+
type: PropType<FormController<IDEForm>>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>>, {}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ControlState, ControlVO } from '@ibiz-template/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 表单状态
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2023-01-03 16:01:05
|
|
7
|
+
* @export
|
|
8
|
+
* @class FormState
|
|
9
|
+
* @extends {ControlState}
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormState extends ControlState {
|
|
12
|
+
/**
|
|
13
|
+
* 是否加载完数据
|
|
14
|
+
*
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2022-10-24 19:10:04
|
|
17
|
+
* @type {boolean}
|
|
18
|
+
*/
|
|
19
|
+
isLoaded: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 表单数据
|
|
22
|
+
*
|
|
23
|
+
* @author lxm
|
|
24
|
+
* @date 2022-08-22 22:08:19
|
|
25
|
+
* @type {ControlVO}
|
|
26
|
+
*/
|
|
27
|
+
data: ControlVO;
|
|
28
|
+
/**
|
|
29
|
+
* 是否正在处理中(动态控制,值规则,表单项更新等逻辑中)
|
|
30
|
+
* @author lxm
|
|
31
|
+
* @date 2023-03-06 09:07:20
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof FormController
|
|
34
|
+
*/
|
|
35
|
+
processing: boolean;
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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, ControlVO } from "@ibiz-template/runtime";
|
|
8
|
+
class FormState extends ControlState {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/**
|
|
12
|
+
* 是否加载完数据
|
|
13
|
+
*
|
|
14
|
+
* @author lxm
|
|
15
|
+
* @date 2022-10-24 19:10:04
|
|
16
|
+
* @type {boolean}
|
|
17
|
+
*/
|
|
18
|
+
__publicField(this, "isLoaded", false);
|
|
19
|
+
/**
|
|
20
|
+
* 表单数据
|
|
21
|
+
*
|
|
22
|
+
* @author lxm
|
|
23
|
+
* @date 2022-08-22 22:08:19
|
|
24
|
+
* @type {ControlVO}
|
|
25
|
+
*/
|
|
26
|
+
__publicField(this, "data", new ControlVO());
|
|
27
|
+
/**
|
|
28
|
+
* 是否正在处理中(动态控制,值规则,表单项更新等逻辑中)
|
|
29
|
+
* @author lxm
|
|
30
|
+
* @date 2023-03-06 09:07:20
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof FormController
|
|
33
|
+
*/
|
|
34
|
+
__publicField(this, "processing", false);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
FormState
|
|
39
|
+
};
|