@ibiz-template/vue3-components 0.7.41-alpha.97 → 0.7.41-alpha.99
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/dist/ibiz-markdown-editor-BxT3t2N6.js +1 -0
- package/dist/index-DY8xatG5.js +339 -0
- package/dist/{index.es-Bx7ry_G4.js → index.es-BxDgOess.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-DbBbP4qh.js +1 -0
- package/dist/map-chart-user-CfTAGaU5.js +1 -0
- package/dist/wang-editor-Ct_jRlrK.js +1 -0
- package/dist/{xlsx-util-DXx8himL.js → xlsx-util-Bi2h7Kj8.js} +2 -2
- package/es/common/high-light-code/high-light-code-util.mjs +0 -1
- package/es/common/map-chart/map-chart.css +1 -1
- package/es/common/map-chart/map-chart.mjs +9 -2
- package/es/common/map-chart-user/map-chart-user.css +1 -1
- package/es/common/map-chart-user/map-chart-user.mjs +13 -5
- package/es/common/pagination/pagination.css +1 -1
- package/es/common/pagination/pagination.mjs +42 -2
- package/es/common/rawitem/rawitem.css +1 -1
- package/es/common/rawitem/rawitem.mjs +2 -0
- package/es/common/sort-bar/sort-bar.css +1 -1
- package/es/common/sort-bar/sort-bar.mjs +9 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +42 -20
- package/es/control/calendar/calendar-util.mjs +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.mjs +86 -51
- package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +13 -8
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +16 -8
- package/es/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +214 -0
- package/es/control/calendar/components/calendar-user2/index.mjs +9 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +10 -5
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +26 -16
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +2 -2
- package/es/control/calendar/components/interface/calendar-daily.mjs +8 -0
- package/es/control/calendar/components/interface/calendar-user.mjs +8 -0
- package/es/control/calendar/components/interface/calendar-week.mjs +8 -0
- package/es/control/calendar/components/interface/custom-calendar.mjs +8 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard.mjs +10 -3
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +11 -3
- package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +11 -3
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.mjs +12 -3
- package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +20 -8
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +10 -2
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +42 -22
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drbar/drbar.mjs +24 -14
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.mjs +36 -18
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.mjs +21 -10
- package/es/control/form/edit-form/edit-form.css +1 -1
- package/es/control/form/form/form.mjs +12 -6
- package/es/control/form/form-detail/form-button/form-button.css +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +11 -3
- package/es/control/form/form-detail/form-button-list/form-button-list.mjs +10 -3
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +11 -3
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +18 -9
- package/es/control/form/form-detail/form-iframe/form-iframe.mjs +10 -3
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +16 -6
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +12 -5
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +19 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +18 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +16 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +24 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +16 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +14 -5
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +22 -7
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +12 -4
- package/es/control/form/form-detail/form-page/form-page.mjs +16 -6
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +13 -4
- package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +10 -3
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +16 -6
- package/es/control/form/search-form/advance-search/advance-search.mjs +2 -3
- package/es/control/form/search-form/search-form.css +1 -1
- package/es/control/grid/grid/grid-control.util.mjs +1 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +44 -18
- package/es/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/es/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +46 -24
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.mjs +35 -18
- package/es/control/map/map.css +1 -1
- package/es/control/map/map.mjs +23 -13
- package/es/control/medit-view-panel/medit-view-panel.css +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +32 -17
- package/es/control/search-bar/search-bar.css +1 -1
- package/es/control/search-bar/search-bar.mjs +22 -10
- package/es/control/search-bar/search-groups/search-groups.css +1 -1
- package/es/control/search-bar/search-groups/search-groups.mjs +16 -6
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.mjs +94 -61
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.mjs +27 -11
- package/es/control/tree-grid/tree-grid.mjs +44 -12
- package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +24 -7
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.mjs +29 -10
- package/es/editor/code/monaco-editor/monaco-editor.mjs +19 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +10 -6
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +14 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +6 -4
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +1 -1
- package/es/editor/upload/upload-editor.controller.mjs +9 -1
- package/es/editor/upload/use/use-custom-upload.mjs +62 -13
- package/es/editor/upload/use/use-iview-upload.mjs +45 -2
- package/es/index.mjs +1 -0
- package/es/locale/index.mjs +29 -1
- package/es/panel-component/panel-button/panel-button.css +1 -1
- package/es/panel-component/panel-view-header/panel-view-header.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +10 -3
- package/es/util/index.mjs +1 -0
- package/es/util/pagination/use-pagination.mjs +33 -1
- package/es/util/path-util/path-util.mjs +14 -0
- package/lib/common/high-light-code/high-light-code-util.cjs +0 -1
- package/lib/common/map-chart/map-chart.cjs +8 -1
- package/lib/common/map-chart/map-chart.css +1 -1
- package/lib/common/map-chart-user/map-chart-user.cjs +12 -4
- package/lib/common/map-chart-user/map-chart-user.css +1 -1
- package/lib/common/pagination/pagination.cjs +42 -2
- package/lib/common/pagination/pagination.css +1 -1
- package/lib/common/rawitem/rawitem.cjs +2 -0
- package/lib/common/rawitem/rawitem.css +1 -1
- package/lib/common/sort-bar/sort-bar.cjs +9 -1
- package/lib/common/sort-bar/sort-bar.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +40 -18
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/calendar/calendar-util.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +85 -50
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +13 -8
- package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +16 -8
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +216 -0
- package/lib/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
- package/lib/control/calendar/components/calendar-user2/index.cjs +14 -0
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +10 -5
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +26 -16
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +2 -2
- package/lib/control/calendar/components/interface/calendar-daily.cjs +8 -0
- package/lib/control/calendar/components/interface/calendar-user.cjs +8 -0
- package/lib/control/calendar/components/interface/calendar-week.cjs +8 -0
- package/lib/control/calendar/components/interface/custom-calendar.cjs +8 -0
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +9 -2
- package/lib/control/dashboard/dashboard.cjs +9 -2
- package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +10 -2
- package/lib/control/dashboard/portlet/container-portlet/container-portlet.cjs +10 -2
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.cjs +11 -2
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
- package/lib/control/dashboard/portlet/html-portlet/html-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +19 -7
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/report-portlet/report-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +9 -1
- package/lib/control/data-view/data-view.cjs +40 -20
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.cjs +23 -13
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab.cjs +34 -16
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/drtab/flow-drtab.cjs +20 -9
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/form/edit-form/edit-form.css +1 -1
- package/lib/control/form/form/form.cjs +10 -4
- package/lib/control/form/form-detail/form-button/form-button.cjs +10 -2
- package/lib/control/form/form-detail/form-button/form-button.css +1 -1
- package/lib/control/form/form-detail/form-button-list/form-button-list.cjs +9 -2
- package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +10 -2
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +17 -8
- package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +9 -2
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +15 -5
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +11 -4
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +18 -5
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +17 -6
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +15 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +23 -6
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +15 -5
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +13 -4
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +21 -6
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +11 -3
- package/lib/control/form/form-detail/form-page/form-page.cjs +15 -5
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +12 -3
- package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +9 -2
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +15 -5
- package/lib/control/form/search-form/advance-search/advance-search.cjs +1 -2
- package/lib/control/form/search-form/search-form.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +42 -16
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/lib/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/lib/control/kanban/kanban.cjs +45 -23
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/list/list.cjs +34 -17
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +21 -11
- package/lib/control/map/map.css +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +31 -16
- package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +21 -9
- package/lib/control/search-bar/search-bar.css +1 -1
- package/lib/control/search-bar/search-groups/search-groups.cjs +15 -5
- package/lib/control/search-bar/search-groups/search-groups.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +92 -59
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +26 -10
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid/tree-grid.cjs +42 -10
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +22 -5
- package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +28 -9
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +19 -5
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +10 -6
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +14 -2
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -4
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +1 -1
- package/lib/editor/upload/upload-editor.controller.cjs +9 -1
- package/lib/editor/upload/use/use-custom-upload.cjs +62 -13
- package/lib/editor/upload/use/use-iview-upload.cjs +45 -2
- package/lib/index.cjs +2 -0
- package/lib/locale/index.cjs +29 -1
- package/lib/panel-component/panel-button/panel-button.css +1 -1
- package/lib/panel-component/panel-view-header/panel-view-header.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +9 -2
- package/lib/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/pagination/use-pagination.cjs +33 -1
- package/lib/util/path-util/path-util.cjs +16 -0
- package/package.json +5 -5
- package/dist/ibiz-markdown-editor-CQRvKzXG.js +0 -1
- package/dist/index-YyzbGEva.js +0 -339
- package/dist/map-chart-nwkjjlMK.js +0 -1
- package/dist/map-chart-user-D2lgUtGX.js +0 -1
- package/dist/wang-editor-BnRUlcfv.js +0 -1
package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createVNode } from 'vue';
|
|
2
2
|
import { FormMDCtrlRepeaterController } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import { RepeaterSingleForm } from './repeater-single-form/repeater-single-form.mjs';
|
|
5
5
|
import { RepeaterMultiForm } from './repeater-multi-form/repeater-multi-form.mjs';
|
|
6
6
|
import { RepeaterGrid } from './repeater-grid/repeater-grid.mjs';
|
|
@@ -17,21 +17,29 @@ const FormMDCtrlRepeater = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
},
|
|
18
18
|
setup(props) {
|
|
19
19
|
const ns = useNamespace("form-mdctrl-repeater");
|
|
20
|
+
const {
|
|
21
|
+
semanticClass,
|
|
22
|
+
semanticStyle
|
|
23
|
+
} = useSemanticNode(props.controller.form);
|
|
20
24
|
const onDataChange = (data) => {
|
|
21
25
|
props.controller.setValue(data);
|
|
22
26
|
};
|
|
23
27
|
return {
|
|
24
28
|
ns,
|
|
25
|
-
onDataChange
|
|
29
|
+
onDataChange,
|
|
30
|
+
semanticClass,
|
|
31
|
+
semanticStyle
|
|
26
32
|
};
|
|
27
33
|
},
|
|
28
34
|
render() {
|
|
29
35
|
var _a;
|
|
30
|
-
const classNames = [this.ns.b()];
|
|
36
|
+
const classNames = [this.ns.b(), this.semanticClass("repeater", this.controller)];
|
|
37
|
+
const style = this.semanticStyle("repeater", this.controller);
|
|
31
38
|
switch (this.controller.repeaterStyle) {
|
|
32
39
|
case "MultiForm":
|
|
33
40
|
return createVNode(RepeaterMultiForm, {
|
|
34
41
|
"class": classNames,
|
|
42
|
+
"style": style,
|
|
35
43
|
"onChange": this.onDataChange,
|
|
36
44
|
"controller": this.controller
|
|
37
45
|
}, null);
|
|
@@ -40,25 +48,29 @@ const FormMDCtrlRepeater = /* @__PURE__ */ defineComponent({
|
|
|
40
48
|
if (gridStyle === "style2") {
|
|
41
49
|
return createVNode(RepeaterGrid2, {
|
|
42
50
|
"class": classNames,
|
|
51
|
+
"style": style,
|
|
43
52
|
"controller": this.controller,
|
|
44
53
|
"onChange": this.onDataChange
|
|
45
54
|
}, null);
|
|
46
55
|
}
|
|
47
56
|
return createVNode(RepeaterGrid, {
|
|
48
57
|
"class": classNames,
|
|
58
|
+
"style": style,
|
|
49
59
|
"controller": this.controller,
|
|
50
60
|
"onChange": this.onDataChange
|
|
51
61
|
}, null);
|
|
52
62
|
case "SingleForm":
|
|
53
63
|
return createVNode(RepeaterSingleForm, {
|
|
54
64
|
"class": classNames,
|
|
65
|
+
"style": style,
|
|
55
66
|
"data": this.controller.value,
|
|
56
67
|
"controller": this.controller,
|
|
57
68
|
"onChange": this.onDataChange
|
|
58
69
|
}, null);
|
|
59
70
|
default:
|
|
60
71
|
return createVNode("div", {
|
|
61
|
-
"class": classNames
|
|
72
|
+
"class": classNames,
|
|
73
|
+
"style": style
|
|
62
74
|
}, [ibiz.i18n.t("control.form.formMDctrlRepeater.noSupportStyle", {
|
|
63
75
|
repeaterStyle: this.controller.repeaterStyle
|
|
64
76
|
})]);
|
package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-repeater-grid{position:relative;width:100%;--ibiz-grid-column-justify-content:center}.ibiz-repeater-grid__add-btn{position:absolute;top:0;right:0;z-index:2}.ibiz-repeater-grid__drag-icon{cursor:move}.ibiz-repeater-grid__sortable-ghost{opacity:.5}.ibiz-repeater-grid .el-table__row{height:
|
|
1
|
+
.ibiz-repeater-grid{--ibiz-repeater-grid-remove-color:var(--ibiz-color-danger);--ibiz-repeater-grid-cell-padding:var(--ibiz-spacing-extra-tight);--ibiz-repeater-grid-row-height:57px;position:relative;width:100%;--ibiz-grid-column-justify-content:center}.ibiz-repeater-grid__add-btn{position:absolute;top:0;right:0;z-index:2}.ibiz-repeater-grid__drag-icon{cursor:move}.ibiz-repeater-grid__sortable-ghost{opacity:.5}.ibiz-repeater-grid .el-table__row{height:var(--ibiz-repeater-grid-row-height)}.ibiz-repeater-grid .el-table__cell:has(.is-editor-content-fixed){z-index:calc(var(--el-table-index) + 1)}.ibiz-repeater-grid .el-table__row:hover .ibiz-repeater-grid-index__text:last-child{display:none}.ibiz-repeater-grid .el-table__row:hover .ibiz-repeater-grid-index__remove{display:inline}.ibiz-repeater-grid .ibiz-repeater-grid-index__remove.el-button.el-button--danger{--el-button-text-color:var(--ibiz-repeater-grid-remove-color)}.ibiz-repeater-grid-index .cell{padding:var(--ibiz-repeater-grid-cell-padding)}.ibiz-repeater-grid-index__remove{display:none}
|
package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { isVNode, defineComponent, createVNode, resolveComponent, mergeProps, wi
|
|
|
2
2
|
import Sortable from '../../../../../../node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.mjs';
|
|
3
3
|
import { EditFormController, ControlVO, FormMDCtrlRepeaterController } from '@ibiz-template/runtime';
|
|
4
4
|
import { createUUID } from 'qx-util';
|
|
5
|
-
import { useNamespace, useCtx } from '@ibiz-template/vue3-util';
|
|
5
|
+
import { useNamespace, useSemanticNode, useCtx } from '@ibiz-template/vue3-util';
|
|
6
6
|
import { recursiveIterate, showTitle } from '@ibiz-template/core';
|
|
7
7
|
import { useLoadMore } from '../form-mdctrl-repeater.util.mjs';
|
|
8
8
|
import './repeater-grid.css';
|
|
@@ -36,6 +36,10 @@ const RepeaterGrid = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
loadMore,
|
|
37
37
|
updateTotalItems
|
|
38
38
|
} = useLoadMore(props.controller.value, chunkSize);
|
|
39
|
+
const {
|
|
40
|
+
semanticClass,
|
|
41
|
+
semanticStyle
|
|
42
|
+
} = useSemanticNode(props.controller.form);
|
|
39
43
|
recursiveIterate(props.controller.repeatedForm, (item) => {
|
|
40
44
|
var _a2;
|
|
41
45
|
if (item.detailType === "FORMITEM") {
|
|
@@ -140,7 +144,8 @@ const RepeaterGrid = /* @__PURE__ */ defineComponent({
|
|
|
140
144
|
return createVNode(resolveComponent("el-button"), {
|
|
141
145
|
"text": true,
|
|
142
146
|
"type": "danger",
|
|
143
|
-
"
|
|
147
|
+
"style": semanticStyle("button", props.controller, "remove"),
|
|
148
|
+
"class": [ns.be("index", "remove"), semanticClass("button", props.controller, "remove")]
|
|
144
149
|
}, _isSlot(_slot = ibiz.i18n.t("app.delete")) ? _slot : {
|
|
145
150
|
default: () => [_slot]
|
|
146
151
|
});
|
|
@@ -150,7 +155,8 @@ const RepeaterGrid = /* @__PURE__ */ defineComponent({
|
|
|
150
155
|
return createVNode(resolveComponent("el-button"), {
|
|
151
156
|
"text": true,
|
|
152
157
|
"type": "danger",
|
|
153
|
-
"class": [ns.be("index", "remove")],
|
|
158
|
+
"class": [ns.be("index", "remove"), semanticClass("repeater.button", props.controller, "remove")],
|
|
159
|
+
"style": semanticStyle("repeater.button", props.controller, "remove"),
|
|
154
160
|
"onClick": () => props.controller.remove(index)
|
|
155
161
|
}, _isSlot(_slot2 = ibiz.i18n.t("app.delete")) ? _slot2 : {
|
|
156
162
|
default: () => [_slot2]
|
|
@@ -164,20 +170,30 @@ const RepeaterGrid = /* @__PURE__ */ defineComponent({
|
|
|
164
170
|
renderItems,
|
|
165
171
|
formControllers,
|
|
166
172
|
renderRemoveBtn,
|
|
167
|
-
loadMore
|
|
173
|
+
loadMore,
|
|
174
|
+
semanticClass,
|
|
175
|
+
semanticStyle
|
|
168
176
|
};
|
|
169
177
|
},
|
|
170
178
|
render() {
|
|
171
179
|
var _a;
|
|
172
180
|
let _slot3;
|
|
173
|
-
|
|
181
|
+
let tableHeight = (_a = this.controller.model.layoutPos) == null ? void 0 : _a.height;
|
|
182
|
+
if (tableHeight) {
|
|
183
|
+
if (tableHeight > 0 && tableHeight <= 1) {
|
|
184
|
+
tableHeight = "".concat(tableHeight * 100, "%");
|
|
185
|
+
} else {
|
|
186
|
+
tableHeight = "".concat(tableHeight, "px");
|
|
187
|
+
}
|
|
188
|
+
}
|
|
174
189
|
const heightObject = tableHeight ? {
|
|
175
190
|
height: tableHeight
|
|
176
191
|
} : {};
|
|
177
192
|
return createVNode("div", {
|
|
178
193
|
"class": this.ns.b()
|
|
179
194
|
}, [this.controller.enableCreate && createVNode(resolveComponent("el-button"), {
|
|
180
|
-
"class": this.ns.e("add-btn"),
|
|
195
|
+
"class": [this.ns.e("add-btn"), this.semanticClass("repeater.button", this.controller, "create")],
|
|
196
|
+
"style": this.semanticStyle("repeater.button", this.controller, "create"),
|
|
181
197
|
"onClick": () => {
|
|
182
198
|
this.controller.create();
|
|
183
199
|
}
|
|
@@ -187,7 +203,8 @@ const RepeaterGrid = /* @__PURE__ */ defineComponent({
|
|
|
187
203
|
"ref": "tableRef",
|
|
188
204
|
"key": this.tableKey,
|
|
189
205
|
"show-header": true,
|
|
190
|
-
"class": this.ns.e("table"),
|
|
206
|
+
"class": [this.ns.e("table"), this.semanticClass("repeater.grid", this.controller)],
|
|
207
|
+
"style": this.semanticStyle("repeater.grid", this.controller),
|
|
191
208
|
"data": this.renderItems,
|
|
192
209
|
"cell-class-name": ({
|
|
193
210
|
columnIndex
|
|
@@ -2,7 +2,7 @@ import { isVNode, defineComponent, createVNode, resolveComponent, mergeProps, wi
|
|
|
2
2
|
import Sortable from '../../../../../../node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.mjs';
|
|
3
3
|
import { EditFormController, ControlVO, FormMDCtrlRepeaterController } from '@ibiz-template/runtime';
|
|
4
4
|
import { createUUID } from 'qx-util';
|
|
5
|
-
import { useNamespace, useCtx } from '@ibiz-template/vue3-util';
|
|
5
|
+
import { useNamespace, useSemanticNode, useCtx } from '@ibiz-template/vue3-util';
|
|
6
6
|
import { recursiveIterate } from '@ibiz-template/core';
|
|
7
7
|
import { useLoadMore } from '../form-mdctrl-repeater.util.mjs';
|
|
8
8
|
import './repeater-grid2.css';
|
|
@@ -36,6 +36,10 @@ const RepeaterGrid2 = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
loadMore,
|
|
37
37
|
updateTotalItems
|
|
38
38
|
} = useLoadMore(props.controller.value, chunkSize);
|
|
39
|
+
const {
|
|
40
|
+
semanticClass,
|
|
41
|
+
semanticStyle
|
|
42
|
+
} = useSemanticNode(props.controller.form);
|
|
39
43
|
recursiveIterate(props.controller.repeatedForm, (item) => {
|
|
40
44
|
var _a2;
|
|
41
45
|
if (item.detailType === "FORMITEM") {
|
|
@@ -131,7 +135,8 @@ const RepeaterGrid2 = /* @__PURE__ */ defineComponent({
|
|
|
131
135
|
return createVNode("ion-icon", {
|
|
132
136
|
"name": "remove-outline",
|
|
133
137
|
"title": ibiz.i18n.t("app.delete"),
|
|
134
|
-
"class": ns.b("remove-btn")
|
|
138
|
+
"class": [ns.b("remove-btn"), semanticClass("repeater.button", props.controller, "remove")],
|
|
139
|
+
"style": semanticStyle("repeater.button", props.controller, "remove")
|
|
135
140
|
}, null);
|
|
136
141
|
}
|
|
137
142
|
});
|
|
@@ -139,7 +144,8 @@ const RepeaterGrid2 = /* @__PURE__ */ defineComponent({
|
|
|
139
144
|
return createVNode("ion-icon", {
|
|
140
145
|
"name": "remove-outline",
|
|
141
146
|
"title": ibiz.i18n.t("app.delete"),
|
|
142
|
-
"class": ns.b("remove-btn"),
|
|
147
|
+
"class": [ns.b("remove-btn"), semanticClass("repeater.button", props.controller, "remove")],
|
|
148
|
+
"style": semanticStyle("repeater.button", props.controller, "remove"),
|
|
143
149
|
"onClick": () => {
|
|
144
150
|
props.controller.remove(index);
|
|
145
151
|
formControllers.splice(index, 1);
|
|
@@ -154,7 +160,9 @@ const RepeaterGrid2 = /* @__PURE__ */ defineComponent({
|
|
|
154
160
|
renderItems,
|
|
155
161
|
formControllers,
|
|
156
162
|
renderRemoveBtn,
|
|
157
|
-
loadMore
|
|
163
|
+
loadMore,
|
|
164
|
+
semanticClass,
|
|
165
|
+
semanticStyle
|
|
158
166
|
};
|
|
159
167
|
},
|
|
160
168
|
render() {
|
|
@@ -170,7 +178,8 @@ const RepeaterGrid2 = /* @__PURE__ */ defineComponent({
|
|
|
170
178
|
"ref": "tableRef",
|
|
171
179
|
"key": this.tableKey,
|
|
172
180
|
"show-header": true,
|
|
173
|
-
"class": this.ns.e("table"),
|
|
181
|
+
"class": [this.ns.e("table"), this.semanticClass("repeater.grid", this.controller)],
|
|
182
|
+
"style": this.semanticStyle("repeater.grid", this.controller),
|
|
174
183
|
"data": isEmpty && this.controller.enableCreate ? [{}] : this.renderItems,
|
|
175
184
|
"cell-class-name": ({
|
|
176
185
|
columnIndex
|
|
@@ -289,7 +298,8 @@ const RepeaterGrid2 = /* @__PURE__ */ defineComponent({
|
|
|
289
298
|
}, [this.controller.enableCreate && createVNode("ion-icon", {
|
|
290
299
|
"name": "add-outline",
|
|
291
300
|
"title": ibiz.i18n.t("app.add"),
|
|
292
|
-
"class": this.ns.b("add-btn"),
|
|
301
|
+
"class": [this.ns.b("add-btn"), this.semanticClass("repeater.button", this.controller, "create")],
|
|
302
|
+
"style": this.semanticStyle("repeater.button", this.controller, "create"),
|
|
293
303
|
"onClick": () => {
|
|
294
304
|
this.controller.create(isEmpty ? 0 : $index + 1);
|
|
295
305
|
}
|
|
@@ -43,6 +43,7 @@ const RepeaterMultiForm = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
"class": this.ns.b(),
|
|
44
44
|
"userStyle": userStyle,
|
|
45
45
|
"items": items,
|
|
46
|
+
"controller": this.controller,
|
|
46
47
|
"enableCreate": this.controller.enableCreate,
|
|
47
48
|
"enableDelete": this.controller.enableDelete,
|
|
48
49
|
"enableSort": this.controller.enableSort,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-repeater-single-form{--ibiz-repeater-
|
|
1
|
+
.ibiz-repeater-single-form{--ibiz-repeater-form-header-height:32px;width:100%}.ibiz-repeater-single-form__content{width:100%}.ibiz-repeater-single-form-header{height:var(--ibiz-repeater-form-header-height)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-mdctrl{--ibiz-form-mdctrl-header-
|
|
1
|
+
.ibiz-form-mdctrl{--ibiz-form-mdctrl-font-size:var(--ibiz-font-size-header-5);--ibiz-form-mdctrl-font-weight:var(--ibiz-font-weight-bold);--ibiz-form-mdctrl-button-gap:var(--ibiz-spacing-tight);--ibiz-form-mdctrl-button-width:80px}.ibiz-form-mdctrl__toolbar{display:flex;justify-content:flex-end;width:50%}.ibiz-form-mdctrl__title{width:50%;font-size:var(--ibiz-form-mdctrl-font-size);font-weight:var(--ibiz-form-mdctrl-font-weight)}.ibiz-form-mdctrl-header{--ibiz-form-mdctrl-header-height:49px;--ibiz-form-mdctrl-header-padding:var(--ibiz-spacing-base-tight) 0;--ibiz-form-mdctrl-header-margin:calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight);--ibiz-form-mdctrl-header-border-color:var(--ibiz-color-border);display:flex;place-content:center space-between;align-items:center;height:var(--ibiz-form-mdctrl-header-height);padding:var(--ibiz-form-mdctrl-header-padding);margin:var(--ibiz-form-mdctrl-header-margin);line-height:var(--ibiz-form-mdctrl-header-height);border-bottom:1px solid var(--ibiz-form-mdctrl-header-border-color)}.ibiz-form-mdctrl-preview-content{display:flex;align-items:center;justify-content:center;min-height:100px;margin:var(--ibiz-spacing-tight);box-shadow:0 0 0 1px var(--ibiz-color-border) inset}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createVNode, resolveComponent } from 'vue';
|
|
2
|
-
import { useNamespace, useController } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useController, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { FormMDCtrlController } from '@ibiz-template/runtime';
|
|
4
4
|
import './form-mdctrl.css';
|
|
5
5
|
|
|
@@ -20,6 +20,10 @@ const FormMDCtrl = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
var _a;
|
|
21
21
|
const ns = useNamespace("form-mdctrl");
|
|
22
22
|
useController(props.controller);
|
|
23
|
+
const {
|
|
24
|
+
semanticClass,
|
|
25
|
+
semanticStyle
|
|
26
|
+
} = useSemanticNode(props.controller.form);
|
|
23
27
|
const c = props.controller;
|
|
24
28
|
const zIndex = props.controller.form.state.zIndex;
|
|
25
29
|
const hasCaption = c.model.showCaption && !!c.model.caption;
|
|
@@ -35,7 +39,9 @@ const FormMDCtrl = /* @__PURE__ */ defineComponent({
|
|
|
35
39
|
hasHeader,
|
|
36
40
|
hasCaption,
|
|
37
41
|
isDesignPreview,
|
|
38
|
-
onActionClick
|
|
42
|
+
onActionClick,
|
|
43
|
+
semanticClass,
|
|
44
|
+
semanticStyle
|
|
39
45
|
};
|
|
40
46
|
},
|
|
41
47
|
render() {
|
|
@@ -75,12 +81,15 @@ const FormMDCtrl = /* @__PURE__ */ defineComponent({
|
|
|
75
81
|
return createVNode("div", {
|
|
76
82
|
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass, this.hasCaption ? this.ns.m("show-caption") : ""]
|
|
77
83
|
}, [this.hasHeader && createVNode("div", {
|
|
78
|
-
"class": this.ns.b("header")
|
|
84
|
+
"class": [this.ns.b("header"), this.semanticClass("mdctrl.header", this.controller)],
|
|
85
|
+
"style": this.semanticStyle("mdctrl.header", this.controller)
|
|
79
86
|
}, [createVNode("div", {
|
|
80
|
-
"class": this.ns.
|
|
87
|
+
"class": [this.ns.b("title"), this.semanticClass("mdctrl.title", this.controller)],
|
|
88
|
+
"style": this.semanticStyle("mdctrl.title", this.controller)
|
|
81
89
|
}, [this.hasCaption ? this.c.model.caption : ""]), model.uiactionGroup && createVNode(resolveComponent("iBizActionToolbar"), {
|
|
82
90
|
"zIndex": this.zIndex,
|
|
83
|
-
"class": this.ns.
|
|
91
|
+
"class": [this.ns.b("toolbar"), this.semanticClass("mdctrl.toolbar", this.controller)],
|
|
92
|
+
"style": this.semanticStyle("mdctrl.toolbar", this.controller),
|
|
84
93
|
"action-details": model.uiactionGroup.uiactionGroupDetails,
|
|
85
94
|
"actions-state": this.controller.state.actionGroupState,
|
|
86
95
|
"onActionClick": this.onActionClick
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-mdctrl-container-item{--ibiz-mdctrl-
|
|
1
|
+
.ibiz-mdctrl-container-item{--ibiz-mdctrl-item-drag-chosen-color:rgba(var(--ibiz-grey-1), 1);--ibiz-mdctrl-button-width:60px;--ibiz-mdctrl-button-gap:var(--ibiz-spacing-tight);display:flex}.ibiz-mdctrl-container-item__form{flex-grow:1}.ibiz-mdctrl-container-item__left{flex-shrink:0}.ibiz-mdctrl-container-item__right{flex-shrink:0;width:var(--ibiz-mdctrl-button-width);margin-left:var(--ibiz-mdctrl-button-gap)}.ibiz-mdctrl-container-item__icon-drag{display:flex;align-items:center;min-height:var(--ibiz-height-control-default);max-height:var(--ibiz-height-control-default);margin-top:var(--ibiz-spacing-tight);cursor:move}.ibiz-mdctrl-container-item__icon-drag>svg{display:flex;align-items:center;justify-content:center;width:var(--ibiz-spacing-base);height:var(--ibiz-spacing-base);fill:var(--ibiz-color-text-3)}.ibiz-mdctrl-container-item.is-drag-chosen{background-color:var(--ibiz-mdctrl-item-drag-chosen-color)}.ibiz-mdctrl-container-item-actions{flex-shrink:0;width:80px;text-align:center}.ibiz-mdctrl-container-item-actions .el-button+.el-button{margin-left:var(--ibiz-spacing-none)}.ibiz-mdctrl-container-item-actions__btn{margin-top:var(--ibiz-spacing-tight)}.ibiz-mdctrl-container-no-data{width:100%;display:flex;justify-content:flex-end}.ibiz-mdctrl-container-style2-item-actions{flex:1;width:100%}.ibiz-mdctrl-container-style2-item-actions .el-button+.el-button{margin-left:var(--ibiz-spacing-none)}.ibiz-mdctrl-container-style2-item-actions__btn{margin-top:var(--ibiz-spacing-tight)}.ibiz-mdctrl-container-style2-item-actions__create{width:100%;color:var(--ibiz-color-primary);background-color:transparent;border:1px dashed var(--ibiz-color-border);border-width:1px!important}.ibiz-mdctrl-container-style2-item-actions__create ion-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-mdctrl-container-style2-item-actions__create:focus{color:var(--ibiz-color-primary-hover);background-color:transparent;border:1px dashed var(--ibiz-color-primary-hover)}.ibiz-mdctrl-container-style2-item-actions__create:hover{color:var(--ibiz-color-primary-hover);background-color:transparent;border:1px dashed var(--ibiz-color-primary-hover)}.ibiz-mdctrl-container-style2-item-actions__remove{font-size:var(--ibiz-font-size-heder-6)}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, computed, resolveComponent } from 'vue';
|
|
2
2
|
import draggable from 'vuedraggable';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import './mdctrl-container.css';
|
|
5
5
|
import { showTitle } from '@ibiz-template/core';
|
|
6
|
+
import { FormMDCtrlController } from '@ibiz-template/runtime';
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
8
9
|
function _isSlot(s) {
|
|
@@ -32,6 +33,10 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
32
33
|
enableSort: {
|
|
33
34
|
type: Boolean,
|
|
34
35
|
required: false
|
|
36
|
+
},
|
|
37
|
+
controller: {
|
|
38
|
+
type: FormMDCtrlController,
|
|
39
|
+
required: true
|
|
35
40
|
}
|
|
36
41
|
},
|
|
37
42
|
emits: {
|
|
@@ -44,6 +49,10 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
44
49
|
slots
|
|
45
50
|
}) {
|
|
46
51
|
const ns = useNamespace("mdctrl-container");
|
|
52
|
+
const {
|
|
53
|
+
semanticClass,
|
|
54
|
+
semanticStyle
|
|
55
|
+
} = useSemanticNode(props.controller.form);
|
|
47
56
|
const dragClssName = ns.be("item", "icon-drag");
|
|
48
57
|
const showActions = computed(() => {
|
|
49
58
|
return props.enableCreate || props.enableDelete;
|
|
@@ -80,7 +89,8 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
80
89
|
const renderAddBtn = () => {
|
|
81
90
|
let _slot;
|
|
82
91
|
return createVNode(resolveComponent("el-button"), {
|
|
83
|
-
"class": [ns.be("item-actions", "create"), ns.be("item-actions", "btn")],
|
|
92
|
+
"class": [ns.be("item-actions", "create"), ns.be("item-actions", "btn"), semanticClass("mdctrl.button", props.controller, "create")],
|
|
93
|
+
"style": semanticStyle("mdctrl.button", props.controller, "create"),
|
|
84
94
|
"onClick": () => emit("addClick")
|
|
85
95
|
}, _isSlot(_slot = ibiz.i18n.t("app.add")) ? _slot : {
|
|
86
96
|
default: () => [_slot]
|
|
@@ -101,7 +111,8 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
101
111
|
let _slot2;
|
|
102
112
|
return createVNode(resolveComponent("el-button"), {
|
|
103
113
|
"type": "danger",
|
|
104
|
-
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn")]
|
|
114
|
+
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn"), semanticClass("mdctrl.button", props.controller, "remove")],
|
|
115
|
+
"style": semanticStyle("mdctrl.button", props.controller, "remove")
|
|
105
116
|
}, _isSlot(_slot2 = ibiz.i18n.t("app.delete")) ? _slot2 : {
|
|
106
117
|
default: () => [_slot2]
|
|
107
118
|
});
|
|
@@ -110,7 +121,8 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
110
121
|
}
|
|
111
122
|
return createVNode(resolveComponent("el-button"), {
|
|
112
123
|
"type": "danger",
|
|
113
|
-
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn")],
|
|
124
|
+
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn"), semanticClass("mdctrl.button", props.controller, "remove")],
|
|
125
|
+
"style": semanticStyle("mdctrl.button", props.controller, "remove"),
|
|
114
126
|
"onClick": () => emit("removeClick", item, index)
|
|
115
127
|
}, _isSlot(_slot3 = ibiz.i18n.t("app.delete")) ? _slot3 : {
|
|
116
128
|
default: () => [_slot3]
|
|
@@ -118,7 +130,8 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
118
130
|
};
|
|
119
131
|
const renderStyle2AddBtn = () => {
|
|
120
132
|
return createVNode(resolveComponent("el-button"), {
|
|
121
|
-
"class": [ns.be("style2-item-actions", "create"), ns.be("style2-item-actions", "btn")],
|
|
133
|
+
"class": [ns.be("style2-item-actions", "create"), ns.be("style2-item-actions", "btn"), semanticClass("mdctrl.button", props.controller, "create")],
|
|
134
|
+
"style": semanticStyle("mdctrl.button", props.controller, "create"),
|
|
122
135
|
"title": ibiz.i18n.t("app.add"),
|
|
123
136
|
"onClick": () => emit("addClick")
|
|
124
137
|
}, {
|
|
@@ -141,7 +154,8 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
141
154
|
reference: () => {
|
|
142
155
|
return createVNode(resolveComponent("el-button"), {
|
|
143
156
|
"type": "danger",
|
|
144
|
-
"class": [ns.be("style2-item-actions", "remove"), ns.be("style2-item-actions", "btn")],
|
|
157
|
+
"class": [ns.be("style2-item-actions", "remove"), ns.be("style2-item-actions", "btn"), semanticClass("mdctrl.button", props.controller, "remove")],
|
|
158
|
+
"style": semanticStyle("mdctrl.button", props.controller, "remove"),
|
|
145
159
|
"title": ibiz.i18n.t("app.delete")
|
|
146
160
|
}, {
|
|
147
161
|
default: () => [createVNode("ion-icon", {
|
|
@@ -153,7 +167,8 @@ const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
|
153
167
|
}
|
|
154
168
|
return createVNode(resolveComponent("el-button"), {
|
|
155
169
|
"type": "danger",
|
|
156
|
-
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn")],
|
|
170
|
+
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn"), semanticClass("button", props.controller, "remove")],
|
|
171
|
+
"style": semanticStyle("button", props.controller, "remove"),
|
|
157
172
|
"onClick": () => emit("removeClick", item, index)
|
|
158
173
|
}, _isSlot(_slot4 = ibiz.i18n.t("app.delete")) ? _slot4 : {
|
|
159
174
|
default: () => [_slot4]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createVNode, ref, watch, onMounted, onUnmounted } from 'vue';
|
|
2
2
|
import { FormMDCtrlFormController } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import draggable from 'vuedraggable';
|
|
5
5
|
import './mdctrl-container2.css';
|
|
6
6
|
import { showTitle } from '@ibiz-template/core';
|
|
@@ -24,6 +24,10 @@ const MDCtrlContainer2 = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
},
|
|
25
25
|
setup(props) {
|
|
26
26
|
const ns = useNamespace("mdctrl-container2");
|
|
27
|
+
const {
|
|
28
|
+
semanticClass,
|
|
29
|
+
semanticStyle
|
|
30
|
+
} = useSemanticNode(props.controller.form);
|
|
27
31
|
const currentItem = ref("");
|
|
28
32
|
watch(() => props.items, () => {
|
|
29
33
|
var _a;
|
|
@@ -124,7 +128,9 @@ const MDCtrlContainer2 = /* @__PURE__ */ defineComponent({
|
|
|
124
128
|
handleRemove,
|
|
125
129
|
handleArrowClick,
|
|
126
130
|
handleDragStart,
|
|
127
|
-
handleDragEnd
|
|
131
|
+
handleDragEnd,
|
|
132
|
+
semanticClass,
|
|
133
|
+
semanticStyle
|
|
128
134
|
};
|
|
129
135
|
},
|
|
130
136
|
render() {
|
|
@@ -158,7 +164,8 @@ const MDCtrlContainer2 = /* @__PURE__ */ defineComponent({
|
|
|
158
164
|
}, [dragIcon()]), createVNode("div", {
|
|
159
165
|
"class": this.ns.be("header-item", "text")
|
|
160
166
|
}, [element.title]), this.controller.enableDelete && createVNode("div", {
|
|
161
|
-
"class": this.ns.be("header-item", "btn"),
|
|
167
|
+
"class": [this.ns.be("header-item", "btn"), this.semanticClass("mdctrl.button", this.controller, "remove")],
|
|
168
|
+
"style": this.semanticStyle("mdctrl.button", this.controller, "remove"),
|
|
162
169
|
"title": showTitle(ibiz.i18n.t("app.delete")),
|
|
163
170
|
"onClick": (e) => {
|
|
164
171
|
this.handleRemove(e, element);
|
|
@@ -167,7 +174,8 @@ const MDCtrlContainer2 = /* @__PURE__ */ defineComponent({
|
|
|
167
174
|
},
|
|
168
175
|
footer: () => {
|
|
169
176
|
return [this.controller.enableCreate && createVNode("div", {
|
|
170
|
-
"class": [this.ns.b("header-item"), !this.isShowBorder && this.ns.bm("header-item", "hidden-border")],
|
|
177
|
+
"class": [this.ns.b("header-item"), this.semanticClass("mdctrl.button", this.controller, "create"), !this.isShowBorder && this.ns.bm("header-item", "hidden-border")],
|
|
178
|
+
"style": this.semanticStyle("mdctrl.button", this.controller, "create"),
|
|
171
179
|
"onClick": (e) => {
|
|
172
180
|
this.handleAdd(e);
|
|
173
181
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, resolveComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './form-page.css';
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
@@ -20,6 +20,10 @@ const FormPage = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
},
|
|
21
21
|
setup(props) {
|
|
22
22
|
const ns = useNamespace("form-page");
|
|
23
|
+
const {
|
|
24
|
+
semanticClass,
|
|
25
|
+
semanticStyle
|
|
26
|
+
} = useSemanticNode(props.controller);
|
|
23
27
|
let position = "top";
|
|
24
28
|
if (props.modelData.tabHeaderPos) {
|
|
25
29
|
position = props.modelData.tabHeaderPos.toLowerCase();
|
|
@@ -30,7 +34,9 @@ const FormPage = /* @__PURE__ */ defineComponent({
|
|
|
30
34
|
return {
|
|
31
35
|
ns,
|
|
32
36
|
position,
|
|
33
|
-
onTabChange
|
|
37
|
+
onTabChange,
|
|
38
|
+
semanticClass,
|
|
39
|
+
semanticStyle
|
|
34
40
|
};
|
|
35
41
|
},
|
|
36
42
|
render() {
|
|
@@ -42,11 +48,13 @@ const FormPage = /* @__PURE__ */ defineComponent({
|
|
|
42
48
|
const defaultSlots = ((_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)[0]) == null ? void 0 : _c.children) || [];
|
|
43
49
|
if (defaultSlots.length === 1 || noTabHeader) {
|
|
44
50
|
return createVNode("div", {
|
|
45
|
-
"class": [this.ns.b(), this.ns.m("no-tab-header")]
|
|
51
|
+
"class": [this.ns.b(), this.semanticClass("page"), this.ns.m("no-tab-header")],
|
|
52
|
+
"style": this.semanticStyle("page")
|
|
46
53
|
}, [defaultSlots]);
|
|
47
54
|
}
|
|
48
55
|
return createVNode(resolveComponent("el-tabs"), {
|
|
49
|
-
"class": [this.ns.b(), this.ns.b("tab"), this.ns.e(this.position)],
|
|
56
|
+
"class": [this.ns.b(), this.ns.b("tab"), this.semanticClass("page", this.controller), this.ns.e(this.position)],
|
|
57
|
+
"style": this.semanticStyle("page", this.controller),
|
|
50
58
|
"model-value": (_d = defaultSlots[0]) == null ? void 0 : _d.key,
|
|
51
59
|
"tab-position": this.position,
|
|
52
60
|
"onTabChange": this.onTabChange
|
|
@@ -60,14 +68,16 @@ const FormPage = /* @__PURE__ */ defineComponent({
|
|
|
60
68
|
return null;
|
|
61
69
|
}
|
|
62
70
|
return createVNode(resolveComponent("el-tab-pane"), {
|
|
63
|
-
"class": this.ns.b("tab-item"),
|
|
71
|
+
"class": [this.ns.b("tab-item"), this.semanticClass("page.item", this.controller)],
|
|
64
72
|
"name": c.model.id,
|
|
73
|
+
"style": this.semanticStyle("page.item", this.controller),
|
|
65
74
|
"lazy": true
|
|
66
75
|
}, {
|
|
67
76
|
default: () => slot,
|
|
68
77
|
label: () => {
|
|
69
78
|
return createVNode("span", {
|
|
70
|
-
"class": c.labelClass
|
|
79
|
+
"class": [c.labelClass, this.ns.b("tab-label"), this.semanticClass("page.label", this.controller)],
|
|
80
|
+
"style": this.semanticStyle("page.label", this.controller)
|
|
71
81
|
}, [c.model.sysImage ? createVNode(resolveComponent("iBizIcon"), {
|
|
72
82
|
"icon": c.model.sysImage
|
|
73
83
|
}, null) : null, c.model.caption]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, resolveComponent, ref, computed, watch } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { FormRawItemController } from '@ibiz-template/runtime';
|
|
4
4
|
import './form-rawitem.css';
|
|
5
5
|
|
|
@@ -23,6 +23,10 @@ const FormRawItem = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
var _a;
|
|
24
24
|
const ns = useNamespace("form-raw-item");
|
|
25
25
|
const c = props.controller;
|
|
26
|
+
const {
|
|
27
|
+
semanticClass,
|
|
28
|
+
semanticStyle
|
|
29
|
+
} = useSemanticNode(c.form);
|
|
26
30
|
const content = ref("");
|
|
27
31
|
const showFormDefaultContent = computed(() => {
|
|
28
32
|
if (props.controller.form.controlParams && props.controller.form.controlParams.editmode === "hover") {
|
|
@@ -183,11 +187,13 @@ const FormRawItem = /* @__PURE__ */ defineComponent({
|
|
|
183
187
|
content,
|
|
184
188
|
showFormDefaultContent,
|
|
185
189
|
isDesignPreview,
|
|
186
|
-
renderPreviewContent
|
|
190
|
+
renderPreviewContent,
|
|
191
|
+
semanticClass,
|
|
192
|
+
semanticStyle
|
|
187
193
|
};
|
|
188
194
|
},
|
|
189
195
|
render() {
|
|
190
|
-
var _a;
|
|
196
|
+
var _a, _b, _c, _d, _e;
|
|
191
197
|
if (!this.controller.state.visible) {
|
|
192
198
|
return null;
|
|
193
199
|
}
|
|
@@ -201,11 +207,14 @@ const FormRawItem = /* @__PURE__ */ defineComponent({
|
|
|
201
207
|
return createVNode(resolveComponent("iBizRawItem"), {
|
|
202
208
|
"class": [
|
|
203
209
|
this.ns.b(),
|
|
210
|
+
this.semanticClass("rawitem", this.controller),
|
|
211
|
+
this.semanticClass("rawitem.".concat((_b = (_a = this.modelData.rawItem) == null ? void 0 : _a.contentType) == null ? void 0 : _b.toLowerCase()), this.controller),
|
|
204
212
|
...this.controller.containerClass,
|
|
205
213
|
this.ns.is("show-default", this.showFormDefaultContent),
|
|
206
214
|
// 表单直接内容文本类型与直接内容类型应具备与标签相同样式
|
|
207
|
-
this.ns.is("form-text", ["TEXT", "RAW"].includes(((
|
|
215
|
+
this.ns.is("form-text", ["TEXT", "RAW"].includes(((_c = this.modelData.rawItem) == null ? void 0 : _c.contentType) || ""))
|
|
208
216
|
],
|
|
217
|
+
"style": [this.semanticStyle("rawitem", this.controller), this.semanticStyle("rawitem.".concat((_e = (_d = this.modelData.rawItem) == null ? void 0 : _d.contentType) == null ? void 0 : _e.toLowerCase()), this.controller)],
|
|
209
218
|
"rawItem": this.modelData,
|
|
210
219
|
"content": this.content,
|
|
211
220
|
"onClick": (event) => this.controller.onClick(event)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, defineComponent, withDirectives, createVNode, resolveComponent, resolveDirective } from 'vue';
|
|
2
|
-
import { useNamespace, useController } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useSemanticNode, useController } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './form-tab-page.css';
|
|
4
4
|
import { FormTabPageController } from '@ibiz-template/runtime';
|
|
5
5
|
|
|
@@ -21,9 +21,15 @@ const FormTabPage = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
},
|
|
22
22
|
setup(props) {
|
|
23
23
|
const ns = useNamespace("form-tab-page");
|
|
24
|
+
const {
|
|
25
|
+
semanticClass,
|
|
26
|
+
semanticStyle
|
|
27
|
+
} = useSemanticNode(props.controller.form);
|
|
24
28
|
useController(props.controller);
|
|
25
29
|
return {
|
|
26
|
-
ns
|
|
30
|
+
ns,
|
|
31
|
+
semanticClass,
|
|
32
|
+
semanticStyle
|
|
27
33
|
};
|
|
28
34
|
},
|
|
29
35
|
render() {
|
|
@@ -31,7 +37,8 @@ const FormTabPage = /* @__PURE__ */ defineComponent({
|
|
|
31
37
|
let _slot;
|
|
32
38
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
33
39
|
return withDirectives(createVNode(resolveComponent("iBizRow"), {
|
|
34
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
40
|
+
"class": [this.ns.b(), this.semanticClass("tabpage", this.controller), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
41
|
+
"style": this.semanticStyle("tabpage", this.controller),
|
|
35
42
|
"layout": this.modelData.layout,
|
|
36
43
|
"element-loading-text": this.controller.state.loadingText,
|
|
37
44
|
"onClick": (event) => this.controller.onClick(event)
|