@ibiz-template/vue3-components 0.7.38-alpha.56 → 0.7.40-alpha.9
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/LICENSE +1 -1
- package/README.md +321 -0
- package/dist/ibiz-markdown-editor-D4ESf3bP.js +1 -0
- package/dist/index--C432Qzt.js +4 -0
- package/dist/index-CmaF1QyJ.js +1 -0
- package/dist/index-frsL8WmS.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-user-CILGy9I4.js +1 -0
- package/dist/wang-editor-ZtYMqlXx.js +1 -0
- package/dist/{xlsx-util-BApCDhEk.js → xlsx-util-CKS7oyKo.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +14 -8
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.d.ts +9 -9
- package/es/common/anchor-container/anchor-container.d.ts +12 -12
- package/es/common/button-list/button-list.d.ts +5 -5
- package/es/common/button-list/button-list.mjs +53 -41
- package/es/common/carousel/carousel.d.ts +1 -1
- package/es/common/carousel-card/carousel-card.d.ts +3 -3
- package/es/common/control-navigation/control-navigation.mjs +7 -1
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +5 -2
- package/es/common/cropping/cropping.d.ts +3 -3
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +12 -12
- package/es/common/data-import/data-import.d.ts +4 -4
- package/es/common/data-import2/data-import2.d.ts +5 -5
- package/es/common/data-import2-select/data-import2-select.d.ts +2 -2
- package/es/common/data-import2-table/data-import2-table.d.ts +2 -2
- package/es/common/emoji-select/components/categories/categories.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-item/emoji-item.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-list/emoji-list.d.ts +7 -7
- package/es/common/emoji-select/emoji-select.d.ts +3 -3
- package/es/common/extend-action-timeline/extend-action-timeline.d.ts +3 -3
- package/es/common/map-chart-user/map-user-manager.d.ts +1 -1
- package/es/common/map-chart-user/map-user-manager.mjs +1 -1
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.d.ts +4 -4
- package/es/common/pql-editor/pql-editor.d.ts +4 -4
- package/es/common/quick-edit/quick-edit.d.ts +15 -5
- package/es/common/quick-edit/quick-edit.mjs +27 -7
- package/es/common/rawitem/rawitem.css +1 -1
- package/es/common/rawitem/rawitem.d.ts +2 -2
- package/es/common/rawitem/rawitem.mjs +4 -3
- package/es/common/view-message/view-message.d.ts +6 -6
- package/es/common/view-message/view-message.mjs +6 -4
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +8 -8
- package/es/control/app-menu/app-menu.mjs +8 -4
- package/es/control/app-menu/custom-menu-design/custom-menu-design.d.ts +3 -3
- package/es/control/app-menu/index.d.ts +9 -9
- package/es/control/app-menu-icon-view/app-menu-icon-view.d.ts +5 -5
- package/es/control/app-menu-icon-view/index.d.ts +5 -5
- package/es/control/calendar/calendar.d.ts +7 -7
- package/es/control/calendar/components/calendar-daily/calendar-daily.d.ts +6 -6
- package/es/control/calendar/components/calendar-daily/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.d.ts +6 -6
- package/es/control/calendar/components/calendar-user/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/calendar-week.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +4 -4
- package/es/control/calendar/components/custom-calendar/custom-calendar.d.ts +6 -6
- package/es/control/calendar/components/custom-calendar/index.d.ts +6 -6
- package/es/control/calendar/components/interface/calendar-daily.d.ts +3 -3
- package/es/control/calendar/components/interface/calendar-user.d.ts +3 -3
- package/es/control/calendar/components/interface/calendar-week.d.ts +3 -3
- package/es/control/calendar/components/interface/custom-calendar.d.ts +3 -3
- package/es/control/calendar/components/util/util.d.ts +2 -2
- package/es/control/calendar/index.d.ts +8 -8
- package/es/control/caption-bar/caption-bar.d.ts +5 -5
- package/es/control/caption-bar/index.d.ts +5 -5
- package/es/control/chart/chart.d.ts +13 -13
- package/es/control/context-menu/context-menu.css +1 -1
- package/es/control/context-menu/context-menu.d.ts +8 -6
- package/es/control/context-menu/context-menu.mjs +24 -9
- package/es/control/context-menu/index.d.ts +8 -6
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +2 -21357
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +2 -2
- package/es/control/dashboard/dashboard.d.ts +6 -6
- package/es/control/dashboard/index.d.ts +7 -7
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.d.ts +6 -6
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.d.ts +6 -6
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.d.ts +5 -5
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +14 -14
- package/es/control/data-view/data-view.mjs +73 -87
- package/es/control/data-view/index.d.ts +14 -14
- package/es/control/drbar/drbar.d.ts +5 -5
- package/es/control/drbar/index.d.ts +5 -5
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.d.ts +8 -8
- package/es/control/drtab/index.d.ts +8 -8
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/chart-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/data-view-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/grid-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/list-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.d.ts +5 -5
- package/es/control/form/edit-form/edit-form.css +1 -0
- package/es/control/form/edit-form/edit-form.d.ts +3 -76
- package/es/control/form/edit-form/edit-form.mjs +27 -5
- package/es/control/form/edit-form/index.d.ts +2 -73
- package/es/control/form/form/form.css +1 -1
- package/es/control/form/form/form.d.ts +1 -1
- package/es/control/form/form/form.mjs +1 -1
- package/es/control/form/form/index.d.ts +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +4 -1
- package/es/control/form/form-detail/form-button-list/form-button-list.d.ts +1 -1
- package/es/control/form/form-detail/form-button-list/form-button-list.mjs +7 -3
- package/es/control/form/form-detail/form-button-list/index.d.ts +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.d.ts +1 -0
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +11 -1
- package/es/control/form/form-detail/form-druipart/index.d.ts +1 -0
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.d.ts +2 -2
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.mjs +12 -13
- 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.d.ts +7 -101
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +65 -92
- package/es/control/form/form-detail/form-item/form-item.d.ts +5 -5
- package/es/control/form/form-detail/form-item/form-item.mjs +32 -44
- package/es/control/form/form-detail/form-item/index.d.ts +4 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +12 -14
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +20890 -10610
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +3 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +10 -0
- package/es/control/form/form-detail/form-mdctrl/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +3 -3
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.d.ts +4 -4
- package/es/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/es/control/form/form-detail/form-rawitem/form-rawitem.d.ts +2 -0
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +134 -2
- package/es/control/form/form-detail/form-rawitem/index.d.ts +2 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.d.ts +1 -1
- package/es/control/form/form-detail/form-tab-panel/index.d.ts +2 -2
- package/es/control/form/search-form/index.d.ts +13 -5
- package/es/control/form/search-form/search-form.d.ts +13 -5
- package/es/control/form/search-form/search-form.mjs +22 -2
- package/es/control/gantt/gantt.d.ts +7 -7
- package/es/control/gantt/index.d.ts +8 -8
- package/es/control/grid/grid/grid-control.util.mjs +18 -11
- package/es/control/grid/grid/grid.d.ts +29 -29
- package/es/control/grid/grid/grid.mjs +9 -1
- package/es/control/grid/grid/index.d.ts +29 -29
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.d.ts +4 -4
- package/es/control/grid/grid-column/auto-grid-field-edit-column/index.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +2 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +4 -4
- package/es/control/kanban/index.d.ts +5 -5
- package/es/control/kanban/kanban.d.ts +5 -5
- package/es/control/list/index.d.ts +14 -14
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +14 -14
- package/es/control/list/list.mjs +64 -58
- package/es/control/map/map.d.ts +5 -5
- package/es/control/medit-view-panel/index.d.ts +5 -5
- package/es/control/medit-view-panel/medit-view-panel.d.ts +5 -5
- package/es/control/pickup-view-panel/index.d.ts +5 -5
- package/es/control/pickup-view-panel/pickup-view-panel.d.ts +5 -5
- package/es/control/report-panel/report-panel.d.ts +5 -5
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +4 -4
- package/es/control/search-bar/index.d.ts +5 -5
- package/es/control/search-bar/search-bar.d.ts +5 -5
- package/es/control/search-bar/search-groups/search-groups.d.ts +6 -6
- package/es/control/tab-exp-panel/index.d.ts +5 -5
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +5 -5
- package/es/control/toolbar/export-excel/export-excel.mjs +9 -5
- package/es/control/toolbar/index.d.ts +6 -6
- package/es/control/toolbar/short-cut-button/short-cut-button.mjs +4 -3
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.d.ts +5 -5
- package/es/control/toolbar/toolbar.mjs +23 -19
- package/es/control/tree/index.d.ts +14 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +26 -26
- package/es/control/tree/tree.mjs +5 -0
- package/es/control/tree-grid/index.d.ts +24 -24
- package/es/control/tree-grid/tree-grid.d.ts +23 -23
- package/es/control/tree-grid-ex/index.d.ts +11 -11
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.d.ts +2 -2
- package/es/control/tree-grid-ex/tree-grid-ex.d.ts +7 -7
- package/es/control/wizard-panel/index.d.ts +5 -5
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.d.ts +5 -5
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +9 -9
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +3 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +9 -9
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +8 -8
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +14 -14
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +1 -2
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +8 -8
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +9 -9
- package/es/editor/code/code-editor.controller.d.ts +16 -1
- package/es/editor/code/code-editor.controller.mjs +34 -1
- package/es/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +10 -9
- package/es/editor/code/monaco-editor/monaco-editor.mjs +310 -13
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +14 -10
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +10 -10
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +9 -9
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +3 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +10 -9
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +9 -3
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +9 -9
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +8 -8
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +12 -12
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +5 -1
- package/es/editor/data-picker/picker-editor.controller.mjs +5 -1
- package/es/editor/data-picker/picker-editor.provider.mjs +2 -0
- package/es/editor/date-picker/date-picker-editor.controller.mjs +7 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +8 -8
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +7 -0
- package/es/editor/date-range/date-range-editor.controller.mjs +2 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +8 -8
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +2 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +4 -4
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +11 -11
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +9 -7
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +8 -8
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +11 -11
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +2 -4
- package/es/editor/html/html-editor.controller.mjs +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +8 -8
- package/es/editor/html/wang-editor/wang-editor.mjs +192 -58
- package/es/editor/index.mjs +80 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +9 -9
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +132 -16
- package/es/editor/not-supported-editor/not-supported-editor.css +1 -1
- package/es/editor/not-supported-editor/not-supported-editor.d.ts +7 -0
- package/es/editor/not-supported-editor/not-supported-editor.mjs +15 -2
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +8 -8
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +8 -8
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +9 -9
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +9 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +10 -10
- package/es/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +9 -8
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +5 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +8 -8
- package/es/editor/span/span/span.d.ts +3 -3
- package/es/editor/span/span-link/span-link.d.ts +8 -8
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +8 -8
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +9 -9
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +8 -8
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +8 -8
- package/es/editor/text-box/input/input.d.ts +10 -10
- package/es/editor/text-box/input/input.mjs +194 -61
- package/es/editor/text-box/text-box-editor.controller.mjs +2 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +13 -13
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +15 -15
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +8 -8
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +13 -13
- package/es/editor/upload/upload-editor.controller.mjs +7 -3
- package/es/editor/upload/upload-editor.provider.mjs +3 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +8 -8
- package/es/index.mjs +45 -0
- package/es/locale/en/index.d.ts +32 -0
- package/es/locale/en/index.mjs +28 -4
- package/es/locale/zh-CN/index.d.ts +32 -0
- package/es/locale/zh-CN/index.mjs +28 -4
- package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.40-alpha.7_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +53 -81
- package/es/panel-component/coop-pos/coop-pos.d.ts +1 -1
- package/es/panel-component/coop-pos/index.d.ts +2 -2
- package/es/panel-component/global-search/global-search.controller.d.ts +113 -0
- package/es/panel-component/global-search/global-search.controller.mjs +221 -0
- package/es/panel-component/global-search/global-search.css +1 -0
- package/es/panel-component/global-search/global-search.d.ts +36 -0
- package/es/panel-component/global-search/global-search.mjs +194 -0
- package/es/panel-component/global-search/global-search.provider.d.ts +14 -0
- package/es/panel-component/global-search/global-search.provider.mjs +21 -0
- package/es/panel-component/global-search/global-search.state.d.ts +61 -0
- package/es/panel-component/global-search/global-search.state.mjs +37 -0
- package/es/panel-component/global-search/index.d.ts +33 -0
- package/es/panel-component/global-search/index.mjs +15 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.d.ts +54 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.mjs +78 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.css +1 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.d.ts +26 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.mjs +74 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.provider.d.ts +14 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.provider.mjs +21 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.state.d.ts +10 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.state.mjs +7 -0
- package/es/panel-component/index-blank-placeholder/index.d.ts +25 -0
- package/es/panel-component/index-blank-placeholder/index.mjs +19 -0
- package/es/panel-component/index.mjs +4 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +5 -1
- package/es/panel-component/panel-app-title/index.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.mjs +45 -21
- package/es/panel-component/panel-button/index.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.mjs +7 -20
- package/es/panel-component/panel-button-list/index.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.controller.d.ts +13 -4
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +27 -7
- package/es/panel-component/panel-button-list/panel-button-list.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.mjs +3 -3
- package/es/panel-component/panel-tab-panel/index.d.ts +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +5 -0
- package/es/panel-component/short-cut/index.d.ts +2 -2
- package/es/panel-component/short-cut/short-cut.d.ts +1 -1
- package/es/panel-component/user-message/addin-changed/addin-changed.d.ts +2 -2
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.d.ts +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.d.ts +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.d.ts +1 -1
- package/es/panel-component/user-message/user-message.css +1 -1
- package/es/panel-component/user-message/user-message.mjs +3 -1
- package/es/util/ai-util/ai-util.d.ts +25 -0
- package/es/util/ai-util/ai-util.mjs +44 -0
- package/es/util/app-modal/app-modal-component.d.ts +1 -1
- package/es/util/app-util/app-util.d.ts +10 -1
- package/es/util/app-util/app-util.mjs +281 -0
- package/es/util/button-util/button-util.d.ts +7 -0
- package/es/util/button-util/button-util.mjs +11 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/index.d.ts +2 -0
- package/es/util/index.mjs +2 -0
- package/es/util/notice-util/notice-util.mjs +2 -1
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +1 -1
- package/es/util/open-view-util/open-view-util.d.ts +41 -14
- package/es/util/open-view-util/open-view-util.mjs +69 -15
- package/es/view/403-view/403-view.css +1 -1
- package/es/view/404-view/404-view.css +1 -1
- package/es/view/share-view/share-view.d.ts +1 -1
- package/es/view/sub-app-ref-view/index.d.ts +7 -7
- package/es/view/sub-app-ref-view/sub-app-ref-view.d.ts +7 -7
- package/es/view/wf-step-trace-view/index.d.ts +7 -7
- package/es/view/wf-step-trace-view/wf-step-trace-view.d.ts +7 -7
- package/es/view-engine/custom-view.engine.d.ts +31 -2
- package/es/view-engine/custom-view.engine.mjs +75 -1
- package/es/view-engine/edit-view.engine.d.ts +1 -2
- package/es/view-engine/edit-view.engine.mjs +6 -27
- package/es/view-engine/index.d.ts +43 -0
- package/es/view-engine/index.mjs +2 -1
- package/es/view-engine/portal-view-engine.d.ts +8 -0
- package/es/view-engine/portal-view-engine.mjs +14 -26
- package/es/web-app/App.mjs +2 -0
- package/es/web-app/attach-environment-config.mjs +1 -1
- package/es/web-app/components/router-shell/router-shell.d.ts +3 -3
- package/es/web-app/guard/auth-guard/auth-guard.mjs +5 -0
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +3 -0
- package/es/web-app/main.mjs +1 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +13 -7
- package/lib/common/button-list/button-list.cjs +53 -41
- package/lib/common/control-navigation/control-navigation.cjs +7 -1
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +5 -2
- package/lib/common/map-chart-user/map-user-manager.cjs +1 -1
- package/lib/common/quick-edit/quick-edit.cjs +26 -6
- package/lib/common/rawitem/rawitem.cjs +4 -3
- package/lib/common/rawitem/rawitem.css +1 -1
- package/lib/common/view-message/view-message.cjs +6 -4
- package/lib/control/app-menu/app-menu.cjs +8 -4
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/context-menu/context-menu.cjs +23 -8
- package/lib/control/context-menu/context-menu.css +1 -1
- package/lib/control/data-view/data-view.cjs +73 -87
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/edit-form/edit-form.cjs +27 -5
- package/lib/control/form/edit-form/edit-form.css +1 -0
- package/lib/control/form/form/form.cjs +1 -1
- package/lib/control/form/form/form.css +1 -1
- package/lib/control/form/form-detail/form-button/form-button.cjs +4 -1
- package/lib/control/form/form-detail/form-button-list/form-button-list.cjs +7 -3
- package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +10 -0
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-item/composite-form-item/composite-form-item.cjs +12 -13
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +64 -91
- 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 +32 -44
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +12 -14
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +10 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +133 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/lib/control/form/search-form/search-form.cjs +21 -1
- package/lib/control/grid/grid/grid-control.util.cjs +18 -11
- package/lib/control/grid/grid/grid.cjs +9 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/list/list.cjs +64 -58
- package/lib/control/list/list.css +1 -1
- package/lib/control/toolbar/export-excel/export-excel.cjs +9 -5
- package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +4 -3
- package/lib/control/toolbar/toolbar.cjs +23 -19
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +5 -0
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +3 -0
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -0
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +1 -2
- package/lib/editor/code/code-editor.controller.cjs +33 -0
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +309 -12
- package/lib/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +3 -0
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +8 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +5 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +5 -1
- package/lib/editor/data-picker/picker-editor.provider.cjs +2 -0
- package/lib/editor/date-picker/date-picker-editor.controller.cjs +7 -0
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +7 -0
- package/lib/editor/date-range/date-range-editor.controller.cjs +2 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +2 -0
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +9 -7
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +2 -4
- package/lib/editor/html/html-editor.controller.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +190 -56
- package/lib/editor/index.cjs +80 -0
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +131 -15
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/lib/editor/not-supported-editor/not-supported-editor.cjs +15 -2
- package/lib/editor/not-supported-editor/not-supported-editor.css +1 -1
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +9 -3
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +5 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
- package/lib/editor/text-box/input/input.cjs +192 -59
- package/lib/editor/text-box/text-box-editor.controller.cjs +2 -2
- package/lib/editor/upload/upload-editor.controller.cjs +7 -3
- package/lib/editor/upload/upload-editor.provider.cjs +3 -0
- package/lib/index.cjs +90 -0
- package/lib/locale/en/index.cjs +28 -4
- package/lib/locale/zh-CN/index.cjs +28 -4
- package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.40-alpha.7_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +53 -81
- package/lib/panel-component/global-search/global-search.cjs +196 -0
- package/lib/panel-component/global-search/global-search.controller.cjs +223 -0
- package/lib/panel-component/global-search/global-search.css +1 -0
- package/lib/panel-component/global-search/global-search.provider.cjs +23 -0
- package/lib/panel-component/global-search/global-search.state.cjs +39 -0
- package/lib/panel-component/global-search/index.cjs +20 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.cjs +76 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.controller.cjs +80 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.css +1 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.provider.cjs +23 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.state.cjs +9 -0
- package/lib/panel-component/index-blank-placeholder/index.cjs +25 -0
- package/lib/panel-component/index.cjs +42 -38
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +5 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +45 -21
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-button/panel-button.cjs +7 -20
- package/lib/panel-component/panel-button-list/panel-button-list.cjs +3 -3
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +27 -7
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +5 -0
- package/lib/panel-component/user-message/user-message.cjs +3 -1
- package/lib/panel-component/user-message/user-message.css +1 -1
- package/lib/util/ai-util/ai-util.cjs +46 -0
- package/lib/util/app-util/app-util.cjs +281 -0
- package/lib/util/button-util/button-util.cjs +13 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/index.cjs +4 -0
- package/lib/util/notice-util/notice-util.cjs +2 -1
- package/lib/util/open-view-util/open-view-util.cjs +69 -15
- package/lib/view/403-view/403-view.css +1 -1
- package/lib/view/404-view/404-view.css +1 -1
- package/lib/view-engine/custom-view.engine.cjs +74 -0
- package/lib/view-engine/edit-view.engine.cjs +6 -27
- package/lib/view-engine/index.cjs +44 -0
- package/lib/view-engine/portal-view-engine.cjs +14 -26
- package/lib/web-app/App.cjs +2 -0
- package/lib/web-app/attach-environment-config.cjs +1 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +5 -0
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +3 -0
- package/lib/web-app/main.cjs +1 -1
- package/package.json +16 -16
- package/dist/ibiz-markdown-editor-CKuF8KOI.js +0 -1
- package/dist/index-B79xJqXz.js +0 -1
- package/dist/index-BsxW9vZO.js +0 -1
- package/dist/index-CIQ8bnG_.js +0 -4
- package/dist/map-chart-user-BaQWHpFu.js +0 -1
- package/dist/wang-editor-Vd0LVyWx.js +0 -1
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var runtime = require('@ibiz-template/runtime');
|
|
5
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
+
var lodashEs = require('lodash-es');
|
|
7
|
+
require('./edit-form.css');
|
|
6
8
|
|
|
7
9
|
"use strict";
|
|
8
10
|
function _isSlot(s) {
|
|
@@ -43,6 +45,8 @@ const EditFormControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
45
|
const c = vue3Util.useControlController((...args) => new runtime.EditFormController(...args), {
|
|
44
46
|
excludePropsKeys: ["data"]
|
|
45
47
|
});
|
|
48
|
+
const ns = vue3Util.useNamespace("control-edit-form");
|
|
49
|
+
const filter = vue.ref("");
|
|
46
50
|
const anchorList = vue.ref([]);
|
|
47
51
|
const anchorTargetRef = vue.ref();
|
|
48
52
|
if (props.isSimple) {
|
|
@@ -61,7 +65,6 @@ const EditFormControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
61
65
|
deep: true
|
|
62
66
|
});
|
|
63
67
|
}
|
|
64
|
-
const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
65
68
|
c.evt.on("onCreated", () => {
|
|
66
69
|
const keys = Object.keys(c.details);
|
|
67
70
|
keys.forEach((key) => {
|
|
@@ -86,23 +89,42 @@ const EditFormControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
89
|
navbarHeight
|
|
87
90
|
};
|
|
88
91
|
};
|
|
92
|
+
const handleInput = lodashEs.debounce((val) => {
|
|
93
|
+
c.filterDetail(val);
|
|
94
|
+
}, 300, {
|
|
95
|
+
leading: true
|
|
96
|
+
});
|
|
89
97
|
return {
|
|
90
98
|
c,
|
|
91
99
|
ns,
|
|
100
|
+
filter,
|
|
92
101
|
anchorList,
|
|
93
102
|
anchorTargetRef,
|
|
103
|
+
handleInput,
|
|
94
104
|
calcNavBarConfig
|
|
95
105
|
};
|
|
96
106
|
},
|
|
97
107
|
render() {
|
|
98
|
-
const
|
|
108
|
+
const {
|
|
109
|
+
showFormNavBar,
|
|
110
|
+
enableItemFilter
|
|
111
|
+
} = this.c.model;
|
|
112
|
+
const content = vue.createVNode("div", {
|
|
113
|
+
"class": [this.ns.b(), this.ns.is("item-filter", enableItemFilter)]
|
|
114
|
+
}, [enableItemFilter && vue.createVNode(vue.resolveComponent("el-input"), {
|
|
115
|
+
"clearable": true,
|
|
116
|
+
"modelValue": this.filter,
|
|
117
|
+
"onUpdate:modelValue": ($event) => this.filter = $event,
|
|
118
|
+
"onInput": this.handleInput,
|
|
119
|
+
"class": this.ns.e("quick-search"),
|
|
120
|
+
"placeholder": ibiz.i18n.t("app.search")
|
|
121
|
+
}, null), vue.createVNode(vue.resolveComponent("iBizFormControl"), {
|
|
99
122
|
"ref": "anchorTargetRef",
|
|
100
|
-
"class": this.ns.b(),
|
|
101
123
|
"controller": this.c
|
|
102
124
|
}, {
|
|
103
125
|
...this.$slots
|
|
104
|
-
});
|
|
105
|
-
if (
|
|
126
|
+
})]);
|
|
127
|
+
if (showFormNavBar) {
|
|
106
128
|
return vue.createVNode(vue.resolveComponent("iBizAnchorContainer"), {
|
|
107
129
|
"anchorList": this.anchorList.filter((item) => item.pageId === this.c.state.activeTab),
|
|
108
130
|
"anchorTargetEle": this.anchorTargetRef,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-control-edit-form{width:100%;height:100%;padding-bottom:var(--ibiz-spacing-tight)}.ibiz-control-edit-form.is-item-filter .ibiz-control-form{overflow-y:auto;height:calc(100% - 32px)}
|
|
@@ -131,7 +131,7 @@ const FormControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
134
|
-
"class":
|
|
134
|
+
"class": this.ns.b(),
|
|
135
135
|
"controller": this.c
|
|
136
136
|
}, _isSlot(slots) ? slots : {
|
|
137
137
|
default: () => [slots]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-form{width:100%;height:100
|
|
1
|
+
.ibiz-control-form{width:100%;height:100%}
|
|
@@ -5,8 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var runtime = require('@ibiz-template/runtime');
|
|
7
7
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
8
|
-
require('./form-button.css');
|
|
9
8
|
var core = require('@ibiz-template/core');
|
|
9
|
+
require('../../../../util/index.cjs');
|
|
10
|
+
require('./form-button.css');
|
|
11
|
+
var buttonUtil = require('../../../../util/button-util/button-util.cjs');
|
|
10
12
|
|
|
11
13
|
"use strict";
|
|
12
14
|
const FormButton = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -47,6 +49,7 @@ const FormButton = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
49
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
48
50
|
"sime": "small",
|
|
49
51
|
"onClick": this.controller.onClick.bind(this.controller),
|
|
52
|
+
"type": buttonUtil.convertBtnType(this.modelData.buttonStyle),
|
|
50
53
|
"loading": this.controller.state.loading,
|
|
51
54
|
"disabled": this.controller.state.disabled,
|
|
52
55
|
"title": core.showTitle(this.modelData.tooltip)
|
|
@@ -21,11 +21,15 @@ const FormButtonList = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(props) {
|
|
24
|
+
var _a;
|
|
24
25
|
const ns = vue3Util.useNamespace("form-button-list");
|
|
25
26
|
const c = props.controller;
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
const isDesignPreview = ((_a = c.context) == null ? void 0 : _a.srfrunmode) === "DESIGN";
|
|
28
|
+
const handleClick = async (id, e) => {
|
|
29
|
+
e == null ? void 0 : e.stopPropagation();
|
|
30
|
+
if (isDesignPreview)
|
|
31
|
+
return;
|
|
32
|
+
c.handleClick(id, e);
|
|
29
33
|
};
|
|
30
34
|
return {
|
|
31
35
|
ns,
|
|
@@ -21,13 +21,16 @@ const FormDRUIPart = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(props) {
|
|
24
|
+
var _a;
|
|
24
25
|
const ns = vue3Util.useNamespace("form-druipart");
|
|
25
26
|
vue3Util.useController(props.controller);
|
|
27
|
+
const isDesignPreview = ((_a = props.controller.context) == null ? void 0 : _a.srfrunmode) === "DESIGN";
|
|
26
28
|
const onCreated = (event) => {
|
|
27
29
|
props.controller.setEmbedView(event.view);
|
|
28
30
|
};
|
|
29
31
|
return {
|
|
30
32
|
ns,
|
|
33
|
+
isDesignPreview,
|
|
31
34
|
onCreated
|
|
32
35
|
};
|
|
33
36
|
},
|
|
@@ -35,6 +38,13 @@ const FormDRUIPart = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
38
|
if (!this.controller.state.visible && !this.controller.state.keepAlive || !this.controller.state.viewComponentKey) {
|
|
36
39
|
return null;
|
|
37
40
|
}
|
|
41
|
+
if (this.isDesignPreview) {
|
|
42
|
+
return vue.createVNode("div", {
|
|
43
|
+
"class": this.ns.b()
|
|
44
|
+
}, [vue.createVNode("div", {
|
|
45
|
+
"class": this.ns.b("preview-content")
|
|
46
|
+
}, [ibiz.i18n.t("control.form.formDruipart.defaultText")])]);
|
|
47
|
+
}
|
|
38
48
|
const viewShell = vue.resolveComponent("IBizViewShell");
|
|
39
49
|
return vue.createVNode("div", {
|
|
40
50
|
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-druipart{position:relative;width:100%;height:100%}.ibiz-form-druipart__mask{position:absolute;top:0;left:0;z-index:10;width:100%;height:100%;color:var(--ibiz-color-primary-text);background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}.ibiz-form-druipart>.el-loading-parent--relative{min-height:100px}
|
|
1
|
+
.ibiz-form-druipart{position:relative;width:100%;height:100%}.ibiz-form-druipart__mask{position:absolute;top:0;left:0;z-index:10;width:100%;height:100%;color:var(--ibiz-color-primary-text);background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}.ibiz-form-druipart>.el-loading-parent--relative{min-height:100px}.ibiz-form-druipart-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}
|
|
@@ -76,19 +76,18 @@ const CompositeFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
76
|
onClick: (event, params) => this.controller.onClick(event, params),
|
|
77
77
|
...this.attrs
|
|
78
78
|
};
|
|
79
|
-
if (this.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
79
|
+
if (this.$slots.default) {
|
|
80
|
+
editor = this.$slots.default(editorProps);
|
|
81
|
+
} else if (this.controller.editorProvider) {
|
|
82
|
+
const component = vue.resolveComponent(this.controller.editorProvider.formEditor);
|
|
83
|
+
editor = vue.h(component, {
|
|
84
|
+
...editorProps
|
|
85
|
+
});
|
|
86
|
+
} else {
|
|
87
|
+
editor = vue.createVNode(vue.resolveComponent("not-supported-editor"), {
|
|
88
|
+
"modelData": this.modelData.editor,
|
|
89
|
+
"context": this.controller.context
|
|
90
|
+
}, null);
|
|
92
91
|
}
|
|
93
92
|
return editor;
|
|
94
93
|
}
|
|
@@ -2,125 +2,98 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
require('./form-item-container.css');
|
|
6
5
|
var core = require('@ibiz-template/core');
|
|
6
|
+
require('./form-item-container.css');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
9
9
|
const IBizFormItemContainer = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
name: "IBizFormItemContainer",
|
|
11
11
|
props: {
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
error: {
|
|
17
|
-
type: String
|
|
18
|
-
},
|
|
19
|
-
label: {
|
|
20
|
-
type: String
|
|
21
|
-
},
|
|
22
|
-
labelClass: {
|
|
23
|
-
type: Array
|
|
24
|
-
},
|
|
25
|
-
labelPos: {
|
|
26
|
-
type: String,
|
|
12
|
+
controller: {
|
|
13
|
+
type: Object,
|
|
27
14
|
required: true
|
|
28
|
-
},
|
|
29
|
-
labelWidth: {
|
|
30
|
-
type: Number,
|
|
31
|
-
default: 130
|
|
32
|
-
},
|
|
33
|
-
enableInputTip: {
|
|
34
|
-
type: Boolean
|
|
35
|
-
},
|
|
36
|
-
inputTip: {
|
|
37
|
-
type: String
|
|
38
|
-
},
|
|
39
|
-
inputTipUrl: {
|
|
40
|
-
type: String
|
|
41
|
-
},
|
|
42
|
-
inputTipClosable: {
|
|
43
|
-
type: Boolean
|
|
44
|
-
},
|
|
45
|
-
labelSysImg: {
|
|
46
|
-
type: Object
|
|
47
15
|
}
|
|
48
16
|
},
|
|
49
17
|
setup(props) {
|
|
50
18
|
const ns = vue3Util.useNamespace("form-item-container");
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
19
|
+
const c = props.controller;
|
|
20
|
+
const visible = vue.ref(false);
|
|
21
|
+
const {
|
|
22
|
+
sysImage,
|
|
23
|
+
enableInputTip,
|
|
24
|
+
labelPos
|
|
25
|
+
} = c.model;
|
|
26
|
+
vue.watch(() => visible.value, () => {
|
|
27
|
+
if (visible.value)
|
|
28
|
+
c.loadInputTip();
|
|
59
29
|
});
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
30
|
+
const renderInputTip = () => {
|
|
31
|
+
return vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
32
|
+
"effect": "light",
|
|
33
|
+
"visible": visible.value,
|
|
34
|
+
"onUpdate:visible": ($event) => visible.value = $event,
|
|
35
|
+
"popper-class": ns.e("popper"),
|
|
36
|
+
"disabled": !enableInputTip,
|
|
37
|
+
"placement": labelPos === "RIGHT" ? "right" : "left"
|
|
38
|
+
}, {
|
|
39
|
+
default: () => {
|
|
40
|
+
return vue.createVNode("div", {
|
|
41
|
+
"class": [ns.em("label", "content"), ns.is("tooltip", enableInputTip)]
|
|
42
|
+
}, [enableInputTip && vue.createVNode("ion-icon", {
|
|
43
|
+
"name": "bulb-outline",
|
|
44
|
+
"class": ns.em("label", "icon")
|
|
45
|
+
}, null), sysImage && vue.createVNode(vue3Util.IBizIcon, {
|
|
46
|
+
"class": ns.em("label", "icon"),
|
|
47
|
+
"icon": sysImage
|
|
48
|
+
}, null), vue.createVNode("div", {
|
|
49
|
+
"class": ns.em("label", "text")
|
|
50
|
+
}, [c.labelCaption])]);
|
|
51
|
+
},
|
|
52
|
+
content: () => {
|
|
53
|
+
return vue.createVNode("div", {
|
|
54
|
+
"class": ns.em("popper", "content")
|
|
55
|
+
}, [vue.createVNode("div", {
|
|
56
|
+
"class": ns.em("popper", "tooltip"),
|
|
57
|
+
"innerHTML": c.state.inputTip
|
|
58
|
+
}, null), c.state.inputTipUrl && vue.createVNode("a", {
|
|
59
|
+
"target": "_blank",
|
|
60
|
+
"href": c.state.inputTipUrl,
|
|
61
|
+
"title": ibiz.i18n.t("component.formItemContainer.more")
|
|
62
|
+
}, [ibiz.i18n.t("component.formItemContainer.more")])]);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
64
65
|
};
|
|
65
66
|
const renderLabel = () => {
|
|
66
|
-
const classList = [ns.e("label"), ...props.labelClass || []];
|
|
67
|
-
if (props.enableInputTip) {
|
|
68
|
-
return vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
69
|
-
"effect": "light",
|
|
70
|
-
"offset": 4,
|
|
71
|
-
"popper-class": ns.e("popper"),
|
|
72
|
-
"ref": "tooltip"
|
|
73
|
-
}, {
|
|
74
|
-
default: () => {
|
|
75
|
-
return vue.createVNode("div", {
|
|
76
|
-
"class": classList
|
|
77
|
-
}, [props.labelSysImg && vue.createVNode(vue3Util.IBizIcon, {
|
|
78
|
-
"class": ns.em("label", "icon"),
|
|
79
|
-
"icon": props.labelSysImg
|
|
80
|
-
}, null), props.label]);
|
|
81
|
-
},
|
|
82
|
-
content: () => {
|
|
83
|
-
return vue.createVNode("div", {
|
|
84
|
-
"class": ns.em("label", "tooltip")
|
|
85
|
-
}, [props.inputTip || props.label, props.inputTipUrl && vue.createVNode("a", {
|
|
86
|
-
"href": props.inputTipUrl,
|
|
87
|
-
"target": "_blank"
|
|
88
|
-
}, [ibiz.i18n.t("component.formItemContainer.more")]), props.inputTipClosable && vue.createVNode("ion-icon", {
|
|
89
|
-
"name": "close-circle",
|
|
90
|
-
"onClick": hiddenTooltip
|
|
91
|
-
}, null)]);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
67
|
return vue.createVNode("div", {
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
}, [
|
|
99
|
-
"class": ns.em("label", "icon"),
|
|
100
|
-
"icon": props.labelSysImg
|
|
101
|
-
}, null), props.label]);
|
|
68
|
+
"title": enableInputTip ? void 0 : core.showTitle(c.labelCaption),
|
|
69
|
+
"class": [ns.e("label"), ...c.labelClass || []]
|
|
70
|
+
}, [renderInputTip()]);
|
|
102
71
|
};
|
|
103
72
|
return {
|
|
104
73
|
ns,
|
|
105
|
-
cssVars,
|
|
106
|
-
tooltip,
|
|
107
74
|
renderLabel
|
|
108
75
|
};
|
|
109
76
|
},
|
|
110
77
|
render() {
|
|
111
78
|
var _a, _b;
|
|
79
|
+
const {
|
|
80
|
+
labelPos,
|
|
81
|
+
labelWidth
|
|
82
|
+
} = this.controller.model;
|
|
112
83
|
const content = vue.createVNode("div", {
|
|
113
|
-
"class": [this.ns.e("content"), this.ns.em("content", "label-".concat(
|
|
84
|
+
"class": [this.ns.e("content"), this.ns.em("content", "label-".concat(labelPos == null ? void 0 : labelPos.toLowerCase()))]
|
|
114
85
|
}, [vue.createVNode("div", {
|
|
115
86
|
"class": [this.ns.e("editor")]
|
|
116
|
-
}, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]), this.error ? vue.createVNode("div", {
|
|
117
|
-
"title": core.showTitle(this.error),
|
|
87
|
+
}, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]), this.controller.state.error ? vue.createVNode("div", {
|
|
88
|
+
"title": core.showTitle(this.controller.state.error),
|
|
118
89
|
"class": [this.ns.e("error")]
|
|
119
|
-
}, [this.error]) : null]);
|
|
90
|
+
}, [this.controller.state.error]) : null]);
|
|
120
91
|
return vue.createVNode("div", {
|
|
121
|
-
"class": [this.ns.b(), this.ns.m(
|
|
122
|
-
"style": this.
|
|
123
|
-
|
|
92
|
+
"class": [this.ns.b(), this.ns.m(labelPos == null ? void 0 : labelPos.toLowerCase()), this.ns.is("required", this.controller.state.required), this.ns.is("error", !!this.controller.state.error)],
|
|
93
|
+
"style": this.ns.cssVarBlock({
|
|
94
|
+
"label-width": "".concat(labelWidth || 130, "px")
|
|
95
|
+
})
|
|
96
|
+
}, [labelPos && ["LEFT", "TOP"].includes(labelPos) && this.renderLabel(), content, labelPos && ["RIGHT", "BOTTOM"].includes(labelPos) && this.renderLabel()]);
|
|
124
97
|
}
|
|
125
98
|
});
|
|
126
99
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-item-container{--ibiz-form-item-container-label-width:130px;--ibiz-form-item-container-line-height:var(--ibiz-height-control-default);--ibiz-form-item-container-require-mark-color:var(--ibiz-color-danger);--ibiz-form-item-container-label-left-padding:0 var(--ibiz-spacing-base-tight) 0 0;--ibiz-form-item-container-label-right-padding:0 0 0 var(--ibiz-spacing-base-tight);--ibiz-form-item-container-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);--ibiz-form-item-container-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-container-label-color:var(--ibiz-color-text-1);--ibiz-form-item-container-error-font-size:var(--ibiz-font-size-small);--ibiz-form-item-container-error-color:var(--ibiz-color-danger);width:100%;height:100%;padding:var(--ibiz-form-item-container-padding)}.ibiz-form-item-container__label{
|
|
1
|
+
.ibiz-form-item-container{--ibiz-form-item-container-label-width:130px;--ibiz-form-item-container-line-height:var(--ibiz-height-control-default);--ibiz-form-item-container-require-mark-color:var(--ibiz-color-danger);--ibiz-form-item-container-label-left-padding:0 var(--ibiz-spacing-base-tight) 0 0;--ibiz-form-item-container-label-right-padding:0 0 0 var(--ibiz-spacing-base-tight);--ibiz-form-item-container-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);--ibiz-form-item-container-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-container-label-color:var(--ibiz-color-text-1);--ibiz-form-item-container-error-font-size:var(--ibiz-font-size-small);--ibiz-form-item-container-error-color:var(--ibiz-color-danger);width:100%;height:100%;padding:var(--ibiz-form-item-container-padding)}.ibiz-form-item-container__label{flex-shrink:0;font-size:var(--ibiz-form-item-container-font-size);color:var(--ibiz-form-item-container-label-color)}.ibiz-form-item-container__label--content{display:flex;max-width:100%;align-items:center}.ibiz-form-item-container__label--content.is-tooltip{cursor:pointer}.ibiz-form-item-container__label--icon{padding-right:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container__label--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-form-item-container__popper.el-popper{border-radius:0;padding:var(--ibiz-spacing-extra-tight);border:1px solid var(--ibiz-color-border);box-shadow:var(--ibiz-shadow-elevated)}.ibiz-form-item-container__popper.el-popper table{border-spacing:0;border-collapse:collapse}.ibiz-form-item-container__popper.el-popper table tr td,.ibiz-form-item-container__popper.el-popper table tr th{border:1px solid var(--ibiz-color-border);padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight)}.ibiz-form-item-container__popper.el-popper .el-popper__arrow{display:block}.ibiz-form-item-container__popper--content{max-width:500px;padding:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container__popper--content a{color:var(--ibiz-color-link)}.ibiz-form-item-container--left,.ibiz-form-item-container--right{display:flex;min-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item-container--left .ibiz-form-item-container__label,.ibiz-form-item-container--right .ibiz-form-item-container__label{width:var(--ibiz-form-item-container-label-width)}.ibiz-form-item-container--left .ibiz-form-item-container__content,.ibiz-form-item-container--right .ibiz-form-item-container__content{width:calc(100% - var(--ibiz-form-item-container-label-width))}.ibiz-form-item-container--bottom,.ibiz-form-item-container--top{display:flex;flex-flow:column nowrap}.ibiz-form-item-container--top .ibiz-form-item-container__label{margin-bottom:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container--bottom .ibiz-form-item-container__label{margin-top:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container--left .ibiz-form-item-container__label{padding:var(--ibiz-form-item-container-label-left-padding);line-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item-container--left .ibiz-form-item-container__label--content{float:right}.ibiz-form-item-container--right .ibiz-form-item-container__label{padding:var(--ibiz-form-item-container-label-right-padding);line-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item-container--right .ibiz-form-item-container__label--content{float:left}.ibiz-form-item-container.is-required .ibiz-form-item-container__label--content::before{display:inline-block;margin-right:4px;font-family:SimSun;line-height:1;color:var(--ibiz-form-item-container-require-mark-color);content:"*"}.ibiz-form-item-container__content{display:flex;flex-flow:column nowrap;position:relative;flex-grow:1}.ibiz-form-item-container__content--label-left,.ibiz-form-item-container__content--label-none,.ibiz-form-item-container__content--label-right{height:100%}.ibiz-form-item-container__editor{position:relative;flex-grow:1;height:100%}.ibiz-form-item-container__error{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;top:100%;width:100%;position:absolute;font-size:var(--ibiz-form-item-container-error-font-size);line-height:calc(var(--ibiz-form-item-container-error-font-size) + 2px);color:var(--ibiz-form-item-container-error-color);word-wrap:break-word}.ibiz-form-item-container.is-error .ibiz-form-item-container__editor .el-input__wrapper{box-shadow:0 0 0 1px var(--ibiz-form-item-container-error-color) inset}
|
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
-
require('./form-item.css');
|
|
8
|
-
var runtime = require('@ibiz-template/runtime');
|
|
9
7
|
var compositeFormItem = require('./composite-form-item/composite-form-item.cjs');
|
|
8
|
+
require('./form-item.css');
|
|
10
9
|
|
|
11
10
|
"use strict";
|
|
12
11
|
function _isSlot(s) {
|
|
@@ -20,7 +19,7 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
19
|
required: true
|
|
21
20
|
},
|
|
22
21
|
controller: {
|
|
23
|
-
type:
|
|
22
|
+
type: Object,
|
|
24
23
|
required: true
|
|
25
24
|
},
|
|
26
25
|
attrs: {
|
|
@@ -60,17 +59,17 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
59
|
},
|
|
61
60
|
render() {
|
|
62
61
|
var _a, _b, _c, _d, _e;
|
|
63
|
-
if (!this.c.state.visible || ((_a = this.
|
|
62
|
+
if (!this.c.state.visible || ((_a = this.c.model.editor) == null ? void 0 : _a.editorType) === "HIDDEN") {
|
|
64
63
|
return null;
|
|
65
64
|
}
|
|
66
65
|
let editor = null;
|
|
67
|
-
const compositeItem = this.
|
|
66
|
+
const compositeItem = this.c.model.compositeItem;
|
|
68
67
|
if (compositeItem) {
|
|
69
68
|
const {
|
|
70
69
|
editorItems = []
|
|
71
|
-
} = this.
|
|
70
|
+
} = this.c.model.editor || {};
|
|
72
71
|
editor = editorItems.map((item) => {
|
|
73
|
-
const controller = this.
|
|
72
|
+
const controller = this.c.form.details[item.id];
|
|
74
73
|
return vue.createVNode(compositeFormItem.CompositeFormItem, {
|
|
75
74
|
"modelData": controller.model,
|
|
76
75
|
"controller": controller,
|
|
@@ -78,56 +77,45 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
77
|
}, null);
|
|
79
78
|
});
|
|
80
79
|
} else {
|
|
81
|
-
const editMode = (_d = (_c = (_b = this.
|
|
80
|
+
const editMode = (_d = (_c = (_b = this.c.editor) == null ? void 0 : _b.model) == null ? void 0 : _c.editorParams) == null ? void 0 : _d.editMode;
|
|
82
81
|
const editorProps = {
|
|
83
|
-
style: (_e = this.
|
|
84
|
-
value: this.
|
|
85
|
-
data: this.
|
|
86
|
-
controller: this.
|
|
87
|
-
disabled: this.
|
|
88
|
-
readonly: this.
|
|
82
|
+
style: (_e = this.c.editor) == null ? void 0 : _e.style,
|
|
83
|
+
value: this.c.value,
|
|
84
|
+
data: this.c.data,
|
|
85
|
+
controller: this.c.editor,
|
|
86
|
+
disabled: this.c.state.disabled,
|
|
87
|
+
readonly: this.c.state.readonly,
|
|
89
88
|
onChange: this.onValueChange,
|
|
90
89
|
extraParams: this.extraParams,
|
|
91
90
|
controlParams: editMode ? {
|
|
92
|
-
...this.
|
|
91
|
+
...this.c.form.controlParams,
|
|
93
92
|
editmode: editMode
|
|
94
|
-
} : this.
|
|
93
|
+
} : this.c.form.controlParams,
|
|
95
94
|
onFocus: (event) => this.c.onFocus(event),
|
|
96
95
|
onBlur: (event) => this.c.onBlur(event),
|
|
97
|
-
onEnter: (event) => this.
|
|
98
|
-
onClick: (event, params) => this.
|
|
96
|
+
onEnter: (event) => this.c.onEnter(event),
|
|
97
|
+
onClick: (event, params) => this.c.onClick(event, params),
|
|
99
98
|
...this.attrs
|
|
100
99
|
};
|
|
101
|
-
if (this.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
100
|
+
if (this.$slots.default) {
|
|
101
|
+
editor = this.$slots.default(editorProps);
|
|
102
|
+
} else if (this.c.editorProvider) {
|
|
103
|
+
const component = vue.resolveComponent(this.c.editorProvider.formEditor);
|
|
104
|
+
editor = vue.h(component, {
|
|
105
|
+
...editorProps
|
|
106
|
+
});
|
|
107
|
+
} else {
|
|
108
|
+
editor = vue.createVNode(vue.resolveComponent("not-supported-editor"), {
|
|
109
|
+
"modelData": this.modelData.editor,
|
|
110
|
+
"context": this.c.context
|
|
111
|
+
}, null);
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
return vue.createVNode(vue.resolveComponent("iBizFormItemContainer"), {
|
|
117
|
-
"id": "".concat(this.
|
|
118
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.
|
|
115
|
+
"id": "".concat(this.c.form.view.model.codeName, "_").concat(this.c.form.model.codeName, "_").concat(this.modelData.codeName),
|
|
116
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
119
117
|
"style": this.modelData.cssStyle,
|
|
120
|
-
"
|
|
121
|
-
"error": this.c.state.error,
|
|
122
|
-
"label": this.c.labelCaption,
|
|
123
|
-
"labelSysImg": this.modelData.sysImage,
|
|
124
|
-
"labelClass": this.controller.labelClass,
|
|
125
|
-
"label-pos": this.c.model.labelPos,
|
|
126
|
-
"label-width": this.c.model.labelWidth,
|
|
127
|
-
"enableInputTip": this.modelData.enableInputTip,
|
|
128
|
-
"inputTip": this.modelData.inputTip,
|
|
129
|
-
"inputTipUrl": this.modelData.inputTipUrl,
|
|
130
|
-
"inputTipClosable": this.modelData.inputTipClosable,
|
|
118
|
+
"controller": this.c,
|
|
131
119
|
"onClick": (event) => this.c.onClick(event)
|
|
132
120
|
}, _isSlot(editor) ? editor : {
|
|
133
121
|
default: () => [editor]
|
|
@@ -43,22 +43,20 @@ const FormMDCtrlMD = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
43
|
mdProvider,
|
|
44
44
|
model
|
|
45
45
|
} = this.controller;
|
|
46
|
-
const isLoaded = this.controller.form.state.isLoaded;
|
|
47
46
|
let controlComponent = null;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
controlComponent = vue.h(vue.resolveComponent(mdProvider.component), controlProps);
|
|
47
|
+
const controlProps = {
|
|
48
|
+
class: this.ns.b("content"),
|
|
49
|
+
modelData: model.contentControl,
|
|
50
|
+
context: this.controller.form.context,
|
|
51
|
+
params: this.controller.form.params,
|
|
52
|
+
loadDefault: false,
|
|
53
|
+
onCreated: this.onCreated,
|
|
54
|
+
onSelectionChange: this.onSelectionChange
|
|
55
|
+
};
|
|
56
|
+
if (model.contentType === "GRID") {
|
|
57
|
+
controlProps.rowEditOpen = true;
|
|
61
58
|
}
|
|
59
|
+
controlComponent = vue.h(vue.resolveComponent(mdProvider.component), controlProps);
|
|
62
60
|
return vue.createVNode("div", {
|
|
63
61
|
"class": this.ns.b()
|
|
64
62
|
}, [controlComponent, this.showActions && vue.createVNode("div", {
|
|
@@ -21,11 +21,13 @@ const FormMDCtrl = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(props) {
|
|
24
|
+
var _a;
|
|
24
25
|
const ns = vue3Util.useNamespace("form-mdctrl");
|
|
25
26
|
vue3Util.useController(props.controller);
|
|
26
27
|
const c = props.controller;
|
|
27
28
|
const hasCaption = c.model.showCaption && !!c.model.caption;
|
|
28
29
|
const hasHeader = hasCaption || c.model.uiactionGroup;
|
|
30
|
+
const isDesignPreview = ((_a = c.context) == null ? void 0 : _a.srfrunmode) === "DESIGN";
|
|
29
31
|
const onActionClick = async (detail, event) => {
|
|
30
32
|
await props.controller.onActionClick(detail, event);
|
|
31
33
|
};
|
|
@@ -34,10 +36,18 @@ const FormMDCtrl = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
36
|
ns,
|
|
35
37
|
hasCaption,
|
|
36
38
|
hasHeader,
|
|
39
|
+
isDesignPreview,
|
|
37
40
|
onActionClick
|
|
38
41
|
};
|
|
39
42
|
},
|
|
40
43
|
render() {
|
|
44
|
+
if (this.isDesignPreview) {
|
|
45
|
+
return vue.createVNode("div", {
|
|
46
|
+
"class": this.ns.b()
|
|
47
|
+
}, [vue.createVNode("div", {
|
|
48
|
+
"class": this.ns.b("preview-content")
|
|
49
|
+
}, [ibiz.i18n.t("control.form.formMDctrl.defaultText")])]);
|
|
50
|
+
}
|
|
41
51
|
const {
|
|
42
52
|
model
|
|
43
53
|
} = this.c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-mdctrl{--ibiz-form-mdctrl-header-height:49px}.ibiz-form-mdctrl__toolbar{display:flex;justify-content:flex-end;width:50%}.ibiz-form-mdctrl__title{width:50%;font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold)}.ibiz-form-mdctrl-header{display:flex;place-content:center space-between;align-items:center;height:var(--ibiz-form-mdctrl-header-height);padding:var(--ibiz-spacing-base-tight) 0;margin:calc(var(--ibiz-spacing-base-tight)/ 2) var(--ibiz-spacing-base-tight);line-height:var(--ibiz-form-mdctrl-header-height);border-bottom:1px solid var(--ibiz-color-border)}
|
|
1
|
+
.ibiz-form-mdctrl{--ibiz-form-mdctrl-header-height:49px}.ibiz-form-mdctrl__toolbar{display:flex;justify-content:flex-end;width:50%}.ibiz-form-mdctrl__title{width:50%;font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold)}.ibiz-form-mdctrl-header{display:flex;place-content:center space-between;align-items:center;height:var(--ibiz-form-mdctrl-header-height);padding:var(--ibiz-spacing-base-tight) 0;margin:calc(var(--ibiz-spacing-base-tight)/ 2) var(--ibiz-spacing-base-tight);line-height:var(--ibiz-form-mdctrl-header-height);border-bottom:1px solid var(--ibiz-color-border)}.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}
|