@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
|
@@ -7,16 +7,17 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
7
7
|
var useRowEditPopover = require('../grid/row-edit-popover/use-row-edit-popover.cjs');
|
|
8
8
|
require('../grid/grid/index.cjs');
|
|
9
9
|
var grid = require('../grid/grid/grid.cjs');
|
|
10
|
+
require('../../util/index.cjs');
|
|
10
11
|
var gridControl_util = require('../grid/grid/grid-control.util.cjs');
|
|
12
|
+
var usePagination = require('../../util/pagination/use-pagination.cjs');
|
|
11
13
|
|
|
12
14
|
"use strict";
|
|
13
15
|
function _isSlot(s) {
|
|
14
16
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
15
17
|
}
|
|
16
18
|
function renderAttrs(model, params) {
|
|
17
|
-
var _a;
|
|
18
19
|
const attrs = {};
|
|
19
|
-
(
|
|
20
|
+
runtime.filterPresetAttrs(model.controlAttributes).forEach((item) => {
|
|
20
21
|
if (item.attrName && item.attrValue) {
|
|
21
22
|
attrs[item.attrName] = runtime.ScriptFactory.execSingleLine(item.attrValue, {
|
|
22
23
|
...params
|
|
@@ -107,6 +108,10 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
108
|
vue3Util.useControlPopoverzIndex(c);
|
|
108
109
|
const ns = vue3Util.useNamespace("control-grid");
|
|
109
110
|
const ns2 = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
111
|
+
const {
|
|
112
|
+
semanticClass,
|
|
113
|
+
semanticStyle
|
|
114
|
+
} = vue3Util.useSemanticNode(c);
|
|
110
115
|
const {
|
|
111
116
|
tableRef,
|
|
112
117
|
onRowClick,
|
|
@@ -121,6 +126,9 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
121
126
|
onPageRefresh,
|
|
122
127
|
onPageSizeChange
|
|
123
128
|
} = gridControl_util.useAppGridPagination(c);
|
|
129
|
+
const {
|
|
130
|
+
pageSemantic
|
|
131
|
+
} = usePagination.usePagination(c);
|
|
124
132
|
const {
|
|
125
133
|
tableData,
|
|
126
134
|
defaultSort,
|
|
@@ -146,7 +154,8 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
146
154
|
"modelData": quickToolbar,
|
|
147
155
|
"context": c.context,
|
|
148
156
|
"params": c.params,
|
|
149
|
-
"class": ns.b("quick-toolbar")
|
|
157
|
+
"class": [ns.b("quick-toolbar"), semanticClass("quicktoolbar")],
|
|
158
|
+
"style": semanticStyle("quicktoolbar")
|
|
150
159
|
}, null);
|
|
151
160
|
}
|
|
152
161
|
const noDataSlots = {};
|
|
@@ -158,6 +167,8 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
158
167
|
});
|
|
159
168
|
}
|
|
160
169
|
return vue.createVNode(vue.resolveComponent("iBizNoData"), {
|
|
170
|
+
"class": semanticClass("empty"),
|
|
171
|
+
"style": semanticStyle("empty"),
|
|
161
172
|
"text": c.model.emptyText,
|
|
162
173
|
"emptyTextLanguageRes": c.model.emptyTextLanguageRes
|
|
163
174
|
}, _isSlot(noDataSlots) ? noDataSlots : {
|
|
@@ -226,7 +237,8 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
226
237
|
return;
|
|
227
238
|
}
|
|
228
239
|
return vue.createVNode("div", {
|
|
229
|
-
"class": [ns.b("batch-toolbar"), ns.is("show", c.showBatchToolbar)]
|
|
240
|
+
"class": [ns.b("batch-toolbar"), ns.is("show", c.showBatchToolbar), semanticClass("batchtoolbar")],
|
|
241
|
+
"style": semanticStyle("batchtoolbar")
|
|
230
242
|
}, [vue.createVNode("div", {
|
|
231
243
|
"class": ns.b("batch-toolbar-content")
|
|
232
244
|
}, [vue.createVNode("div", {
|
|
@@ -260,6 +272,9 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
260
272
|
defaultSort,
|
|
261
273
|
renderColumns,
|
|
262
274
|
headerCssVars,
|
|
275
|
+
semanticClass,
|
|
276
|
+
semanticStyle,
|
|
277
|
+
pageSemantic,
|
|
263
278
|
loadData,
|
|
264
279
|
onRowClick,
|
|
265
280
|
renderColumn,
|
|
@@ -288,9 +303,9 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
288
303
|
"controller": this.c
|
|
289
304
|
}, {
|
|
290
305
|
default: () => [vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
291
|
-
"class": [this.ns.b(), this.ns2.b(), this.ns.is("show-header", !hideHeader), this.ns.is("enable-page", enablePagingBar), this.ns.is("enable-group", this.c.model.enableGroup), this.ns.is("enable-customized", this.c.model.enableCustomized)],
|
|
306
|
+
"class": [this.ns.b(), this.ns2.b(), this.ns.is("show-header", !hideHeader), this.ns.is("enable-page", enablePagingBar), this.ns.is("enable-group", this.c.model.enableGroup), this.ns.is("enable-customized", this.c.model.enableCustomized), this.semanticClass("root")],
|
|
292
307
|
"controller": this.c,
|
|
293
|
-
"style": this.headerCssVars
|
|
308
|
+
"style": [this.headerCssVars, this.semanticStyle("root")]
|
|
294
309
|
}, {
|
|
295
310
|
default: () => {
|
|
296
311
|
var _a;
|
|
@@ -302,7 +317,8 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
302
317
|
"load": this.loadData,
|
|
303
318
|
"tooltip-effect": "light",
|
|
304
319
|
"show-header": !hideHeader,
|
|
305
|
-
"
|
|
320
|
+
"style": this.semanticStyle("content"),
|
|
321
|
+
"class": [this.ns.e("table"), this.semanticClass("content")],
|
|
306
322
|
"key": this.c.state.tableKey,
|
|
307
323
|
"onRowClick": this.onRowClick,
|
|
308
324
|
"default-sort": this.defaultSort,
|
|
@@ -311,11 +327,21 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
311
327
|
"onRowDblclick": this.onDbRowClick,
|
|
312
328
|
"summary-method": this.summaryMethod,
|
|
313
329
|
"onHeaderDragend": this.headerDragend,
|
|
314
|
-
"row-class-name": this.handleRowClassName,
|
|
315
330
|
"onSelectionChange": this.onSelectionChange,
|
|
316
331
|
"highlight-current-row": state.singleSelect,
|
|
317
332
|
"onExpandChange": (row, expanded) => this.c.expandChange(row, expanded),
|
|
318
|
-
"
|
|
333
|
+
"row-class-name": (event) => {
|
|
334
|
+
return [this.handleRowClassName(event), this.semanticClass("body.row", event)].join(" ");
|
|
335
|
+
},
|
|
336
|
+
"header-row-class-name": (...args) => this.semanticClass("header.row", ...args),
|
|
337
|
+
"row-style": (...args) => this.semanticStyle("body.row", args),
|
|
338
|
+
"header-row-style": this.semanticStyle("header.row"),
|
|
339
|
+
"cell-class-name": (...args) => this.semanticClass("body.cell", ...args),
|
|
340
|
+
"header-cell-class-name": (data) => {
|
|
341
|
+
return [this.handleHeaderCellClassName(data), this.semanticClass("header.cell", data)].join(" ");
|
|
342
|
+
},
|
|
343
|
+
"cell-style": (...args) => this.semanticStyle("body.cell", args),
|
|
344
|
+
"header-cell-style": this.semanticStyle("header.cell"),
|
|
319
345
|
"tree-props": {
|
|
320
346
|
children: "children",
|
|
321
347
|
hasChildren: "hasChildren"
|
|
@@ -330,7 +356,8 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
330
356
|
"width": "55",
|
|
331
357
|
"type": "selection",
|
|
332
358
|
"reserve-selection": true,
|
|
333
|
-
"
|
|
359
|
+
"style": this.semanticStyle("selection"),
|
|
360
|
+
"class-name": "".concat(this.ns.e("selection"), " ").concat(this.semanticClass("selection"))
|
|
334
361
|
}, null), state.isCreated && this.renderColumns.map((model, index) => {
|
|
335
362
|
return this.renderColumn(model, index);
|
|
336
363
|
})];
|
|
@@ -339,6 +366,9 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
339
366
|
return this.renderPopover();
|
|
340
367
|
}
|
|
341
368
|
}), enablePagingBar && vue.createVNode(vue.resolveComponent("iBizPagination"), {
|
|
369
|
+
"class": this.semanticClass("pagination"),
|
|
370
|
+
"style": this.semanticStyle("pagination"),
|
|
371
|
+
"semantic": this.pageSemantic,
|
|
342
372
|
"mode": this.c.paginationMode,
|
|
343
373
|
"total": state.total,
|
|
344
374
|
"curPage": state.curPage,
|
|
@@ -351,6 +381,8 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
351
381
|
}, null), this.c.model.enableCustomized && !hideHeader && vue.createVNode("div", {
|
|
352
382
|
"class": this.ns.b("setting-box")
|
|
353
383
|
}, [vue.createVNode(vue.resolveComponent("iBizGridSetting"), {
|
|
384
|
+
"class": this.semanticClass("setting"),
|
|
385
|
+
"style": this.semanticStyle("setting"),
|
|
354
386
|
"columnStates": state.columnStates,
|
|
355
387
|
"controller": this.c
|
|
356
388
|
}, null)]), this.renderBatchToolBar()];
|
|
@@ -13,9 +13,8 @@ function _isSlot(s) {
|
|
|
13
13
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
14
14
|
}
|
|
15
15
|
function renderAttrs(model, params) {
|
|
16
|
-
var _a;
|
|
17
16
|
const attrs = {};
|
|
18
|
-
(
|
|
17
|
+
runtime.filterPresetAttrs(model.controlAttributes).forEach((item) => {
|
|
19
18
|
if (item.attrName && item.attrValue) {
|
|
20
19
|
attrs[item.attrName] = runtime.ScriptFactory.execSingleLine(item.attrValue, {
|
|
21
20
|
...params
|
|
@@ -60,6 +59,10 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
59
|
const c = vue3Util.useControlController((...args) => new runtime.TreeGridExController(...args));
|
|
61
60
|
vue3Util.useControlPopoverzIndex(c);
|
|
62
61
|
const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
62
|
+
const {
|
|
63
|
+
semanticClass,
|
|
64
|
+
semanticStyle
|
|
65
|
+
} = vue3Util.useSemanticNode(c);
|
|
63
66
|
const renderNoData = () => {
|
|
64
67
|
const {
|
|
65
68
|
isLoaded
|
|
@@ -73,6 +76,8 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
78
|
return isLoaded && vue.createVNode(vue.resolveComponent("iBizNoData"), {
|
|
79
|
+
"class": semanticClass("empty"),
|
|
80
|
+
"style": semanticStyle("empty"),
|
|
76
81
|
"text": c.model.emptyText,
|
|
77
82
|
"emptyTextLanguageRes": c.model.emptyTextLanguageRes
|
|
78
83
|
}, _isSlot(noDataSlots) ? noDataSlots : {
|
|
@@ -208,6 +213,8 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
208
213
|
elTableData,
|
|
209
214
|
renderColumns,
|
|
210
215
|
tableRefreshKey,
|
|
216
|
+
semanticClass,
|
|
217
|
+
semanticStyle,
|
|
211
218
|
loadData,
|
|
212
219
|
onRowClick,
|
|
213
220
|
renderNoData,
|
|
@@ -285,12 +292,13 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
285
292
|
}, {
|
|
286
293
|
default: () => [vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
287
294
|
"controller": this.c,
|
|
288
|
-
"class": [this.ns.b()]
|
|
295
|
+
"class": [this.ns.b(), this.semanticClass("root")],
|
|
296
|
+
"style": this.semanticStyle("root")
|
|
289
297
|
}, {
|
|
290
298
|
default: () => [this.c.state.isLoaded && vue.createVNode(vue.resolveComponent("el-table"), vue.mergeProps({
|
|
291
299
|
"ref": "tableRef",
|
|
292
300
|
"key": this.tableRefreshKey,
|
|
293
|
-
"class": this.ns.e("table"),
|
|
301
|
+
"class": [this.ns.e("table"), this.semanticClass("content")],
|
|
294
302
|
"border": true,
|
|
295
303
|
"row-key": "id",
|
|
296
304
|
"data": this.elTableData,
|
|
@@ -301,7 +309,16 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
301
309
|
"lazy": true,
|
|
302
310
|
"onRowClick": this.onRowClick,
|
|
303
311
|
"onExpandChange": this.onExpandChange,
|
|
304
|
-
"row-class-name":
|
|
312
|
+
"row-class-name": (event) => {
|
|
313
|
+
return [this.handleRowClassName(event), this.semanticClass("body.row", event)].join(" ");
|
|
314
|
+
},
|
|
315
|
+
"header-row-class-name": (...args) => this.semanticClass("header.row", ...args),
|
|
316
|
+
"row-style": (...args) => this.semanticStyle("body.row", args),
|
|
317
|
+
"header-row-style": this.semanticStyle("header.row"),
|
|
318
|
+
"cell-class-name": (...args) => this.semanticClass("body.cell", ...args),
|
|
319
|
+
"header-cell-class-name": (data) => this.semanticClass("header.cell", data),
|
|
320
|
+
"cell-style": (...args) => this.semanticStyle("body.cell", args),
|
|
321
|
+
"header-cell-style": this.semanticStyle("header.cell"),
|
|
305
322
|
"load": this.loadData
|
|
306
323
|
}, renderAttrs(this.c.model, {
|
|
307
324
|
...this.c.getEventArgs()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-treegridex{--ibiz-control-treegridex-text-color:var(--ibiz-color-text-0);--ibiz-control-treegridex-bg-color:transparent;--ibiz-control-treegridex-padding:var(--ibiz-spacing-none);--ibiz-control-treegridex-
|
|
1
|
+
.ibiz-control-treegridex{--ibiz-control-treegridex-text-color:var(--ibiz-color-text-0);--ibiz-control-treegridex-bg-color:transparent;--ibiz-control-treegridex-padding:var(--ibiz-spacing-none);--ibiz-control-treegridex-border-color:var(--ibiz-color-border);--ibiz-control-treegridex-selection-padding:var(--ibiz-spacing-base-loose);--ibiz-control-treegridex-header-row-text-color:var(--ibiz-color-text-2);--ibiz-control-treegridex-header-row-cell-padding:var(--ibiz-control-treegridex-cell-padding);--ibiz-control-treegridex-header-row-height:54px;--ibiz-control-treegridex-header-row-bg-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-treegridex-header-row-font-size:var(--ibiz-font-size-regular);--ibiz-control-treegridex-header-row-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-treegridex-header-cell-sort-gap:var(--ibiz-spacing-super-tight);--ibiz-control-treegridex-body-row-text-color:var(--ibiz-control-treegridex-text-color);--ibiz-control-treegridex-body-row-height:48px;--ibiz-control-treegridex-body-row-edit-bg-color:var(--ibiz-color-fill-2);--ibiz-control-treegridex-body-row-bg-color:var(--ibiz-color-bg-1);--ibiz-control-treegridex-body-row-bg-color-2:var(--ibiz-color-bg-0);--ibiz-control-treegridex-body-row-expand-icon-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-tight);--ibiz-control-treegridex-body-cell-padding:var(--ibiz-spacing-tight);--ibiz-control-grid-row-edit-bg-color:var(--ibiz-control-treegridex-body-row-edit-bg-color)}.ibiz-control-treegridex .el-table{--el-table-header-bg-color:var(--ibiz-control-treegridex-header-row-bg-color);--el-table-border-color:transparent}.ibiz-control-treegridex .el-table--border .el-table__cell{border-right:none}.ibiz-control-treegridex .el-table-fixed-column--left,.ibiz-control-treegridex .el-table-fixed-column--right{--el-bg-color:transparent}.ibiz-control-treegridex .el-table td.el-table__cell,.ibiz-control-treegridex .el-table th.el-table__cell.is-leaf{border-bottom:none}.ibiz-control-treegridex__table{width:100%;height:100%}.ibiz-control-treegridex__table .caret-wrapper{justify-content:center}.ibiz-control-treegridex__table .caret-wrapper>*+*{margin-top:var(--ibiz-control-treegridex-header-cell-sort-gap)}.ibiz-control-treegridex__table .sort-caret{position:initial}.ibiz-control-treegridex__table.el-table .el-table__cell{padding:var(--ibiz-spacing-none)}.ibiz-control-treegridex__table.el-table .el-table__body-wrapper tr td{background:var(--ibiz-control-treegridex-body-row-bg-color)}.ibiz-control-treegridex__table.el-table .el-table__body-wrapper tr:nth-child(2n) td{background-color:var(--ibiz-control-treegridex-body-row-bg-color-2)}.ibiz-control-treegridex__table.el-table .el-table__body-wrapper tr:hover td{background-color:var(--el-table-row-hover-bg-color)}.ibiz-control-treegridex__table.el-table .el-table__body-wrapper tr.current-row td{background-color:var(--el-table-current-row-bg-color)}.ibiz-control-treegridex__table .el-table__header-wrapper .cell{height:var(--ibiz-control-treegridex-header-row-height);padding:var(--ibiz-control-treegridex-header-row-cell-padding);font-size:var(--ibiz-control-treegridex-header-row-font-size);font-weight:var(--ibiz-control-treegridex-header-row-font-weight);color:var(--ibiz-control-treegridex-header-row-text-color);word-break:break-word;white-space:pre-wrap}.ibiz-control-treegridex__table .el-table__header-wrapper .el-table-column--selection .cell{padding:var(--ibiz-control-treegridex-selection-padding)}.ibiz-control-treegridex__table .el-table__header-wrapper .el-table__cell .cell{display:flex;align-items:center;justify-content:var(--ibiz-grid-column-justify-content)}.ibiz-control-treegridex__table .el-table__body-wrapper{color:var(--ibiz-control-treegridex-body-row-text-color);border-bottom:.1px solid var(--ibiz-control-treegridex-border-color)}.ibiz-control-treegridex__table .el-table__body-wrapper .el-table__row{height:var(--ibiz-control-treegridex-body-row-height);cursor:pointer}.ibiz-control-treegridex__table .el-table__body-wrapper .el-table__row>td{height:0;padding:var(--ibiz-spacing-none)}.ibiz-control-treegridex__table .el-table__body-wrapper .el-table__row .el-table__expand-icon{margin:var(--ibiz-control-treegridex-body-row-expand-icon-margin)}@-moz-document url-prefix(){.ibiz-control-treegridex__table .el-table__body-wrapper .el-table__row>td{height:100%}}.ibiz-control-treegridex__table .el-table__body-wrapper .cell{display:flex;align-items:center;height:100%;padding:var(--ibiz-spacing-none)}.ibiz-control-treegridex__table .el-table__body-wrapper .el-table-column--selection .cell{padding:var(--ibiz-control-treegridex-selection-padding)}.ibiz-control-treegridex__table .el-table__cell.is-center{--ibiz-grid-column-text-align:center;--ibiz-grid-column-justify-content:center}.ibiz-control-treegridex__table .el-table__cell.is-left{--ibiz-grid-column-text-align:left;--ibiz-grid-column-justify-content:flex-start}.ibiz-control-treegridex__table .el-table__cell.is-right{--ibiz-grid-column-text-align:right;--ibiz-grid-column-justify-content:flex-end}.ibiz-control-treegridex__table .el-scrollbar__wrap{position:relative}.ibiz-control-treegridex{width:100%;height:100%;padding:var(--ibiz-control-treegridex-padding);background-color:var(--ibiz-control-treegridex-bg-color)}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
require('./wizard-panel.css');
|
|
6
5
|
var runtime = require('@ibiz-template/runtime');
|
|
7
6
|
var core = require('@ibiz-template/core');
|
|
7
|
+
require('./wizard-panel.css');
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
10
|
function _isSlot(s) {
|
|
@@ -44,10 +44,16 @@ const WizardPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
44
|
},
|
|
45
45
|
setup() {
|
|
46
46
|
const c = vue3Util.useControlController((...args) => new runtime.WizardPanelController(...args));
|
|
47
|
+
const {
|
|
48
|
+
semanticClass,
|
|
49
|
+
semanticStyle
|
|
50
|
+
} = vue3Util.useSemanticNode(c);
|
|
47
51
|
const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
48
52
|
return {
|
|
49
53
|
c,
|
|
50
|
-
ns
|
|
54
|
+
ns,
|
|
55
|
+
semanticClass,
|
|
56
|
+
semanticStyle
|
|
51
57
|
};
|
|
52
58
|
},
|
|
53
59
|
render() {
|
|
@@ -67,8 +73,9 @@ const WizardPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
67
73
|
return activeFormTag === ((_a2 = _editForm.dewizardForm) == null ? void 0 : _a2.formTag);
|
|
68
74
|
});
|
|
69
75
|
formComponent = vue.h(component, {
|
|
70
|
-
class: this.ns.e("form"),
|
|
71
76
|
modelData: editForm,
|
|
77
|
+
style: this.semanticStyle("form"),
|
|
78
|
+
class: [this.ns.e("form"), this.semanticClass("form")],
|
|
72
79
|
context: Object.assign(this.c.context, {
|
|
73
80
|
srfsilent: true
|
|
74
81
|
}),
|
|
@@ -83,20 +90,27 @@ const WizardPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
90
|
} = this.c.model;
|
|
84
91
|
footer = dewizard && vue.createVNode("div", {
|
|
85
92
|
"key": "".concat(activeFormTag, "footer"),
|
|
86
|
-
"class": this.ns.b("footer")
|
|
93
|
+
"class": [this.ns.b("footer"), this.semanticClass("footer")],
|
|
94
|
+
"style": this.semanticStyle("footer")
|
|
87
95
|
}, [((_b = buttonsState["".concat(activeFormTag, "@PREV")]) == null ? void 0 : _b.visible) && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
96
|
+
"class": [this.ns.be("footer", "button"), this.semanticClass("footer.button")],
|
|
97
|
+
"style": this.semanticStyle("footer.button"),
|
|
88
98
|
"onClick": () => {
|
|
89
99
|
this.c.onPrevClick();
|
|
90
100
|
}
|
|
91
101
|
}, {
|
|
92
102
|
default: () => [dewizard.prevCaption ? dewizard.prevCaption : ibiz.i18n.t("control.common.retreat")]
|
|
93
103
|
}), ((_c = buttonsState["".concat(activeFormTag, "@NEXT")]) == null ? void 0 : _c.visible) && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
104
|
+
"class": [this.ns.be("footer", "button"), this.semanticClass("footer.button")],
|
|
105
|
+
"style": this.semanticStyle("footer.button"),
|
|
94
106
|
"onClick": () => {
|
|
95
107
|
this.c.onNextClick();
|
|
96
108
|
}
|
|
97
109
|
}, {
|
|
98
110
|
default: () => [dewizard.nextCaption ? dewizard.nextCaption : ibiz.i18n.t("control.common.forward")]
|
|
99
111
|
}), ((_d = buttonsState["".concat(activeFormTag, "@FINISH")]) == null ? void 0 : _d.visible) && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
112
|
+
"class": [this.ns.be("footer", "button"), this.semanticClass("footer.button")],
|
|
113
|
+
"style": this.semanticStyle("footer.button"),
|
|
100
114
|
"onClick": () => {
|
|
101
115
|
this.c.onFinishClick();
|
|
102
116
|
}
|
|
@@ -112,10 +126,11 @@ const WizardPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
126
|
if (active === -1)
|
|
113
127
|
active = 0;
|
|
114
128
|
stepsTitle = vue.createVNode(vue.resolveComponent("el-steps"), {
|
|
115
|
-
"class": this.ns.b("header"),
|
|
129
|
+
"class": [this.ns.e("step"), this.ns.b("header"), this.semanticClass("step")],
|
|
130
|
+
"style": this.semanticStyle("step"),
|
|
116
131
|
"align-center": true,
|
|
117
|
-
"
|
|
118
|
-
"
|
|
132
|
+
"active": active,
|
|
133
|
+
"finish-status": "success"
|
|
119
134
|
}, _isSlot(_slot2 = dewizardSteps.map((step) => {
|
|
120
135
|
const _slot = {
|
|
121
136
|
title: () => {
|
|
@@ -133,7 +148,10 @@ const WizardPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
133
148
|
}, null)
|
|
134
149
|
});
|
|
135
150
|
}
|
|
136
|
-
return vue.createVNode(vue.resolveComponent("el-step"),
|
|
151
|
+
return vue.createVNode(vue.resolveComponent("el-step"), {
|
|
152
|
+
"class": [this.ns.em("step", "item"), this.semanticClass("step.item")],
|
|
153
|
+
"style": this.semanticStyle("step.item")
|
|
154
|
+
}, _isSlot(_slot) ? _slot : {
|
|
137
155
|
default: () => [_slot]
|
|
138
156
|
});
|
|
139
157
|
})) ? _slot2 : {
|
|
@@ -143,7 +161,8 @@ const WizardPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
143
161
|
}
|
|
144
162
|
return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
145
163
|
"controller": this.c,
|
|
146
|
-
"class": [this.ns.b(), this.ns.is("header", this.c.model.showStepBar)]
|
|
164
|
+
"class": [this.ns.b(), this.semanticClass("root"), this.ns.is("header", this.c.model.showStepBar)],
|
|
165
|
+
"style": this.semanticStyle("root")
|
|
147
166
|
}, {
|
|
148
167
|
default: () => [stepsTitle, formComponent, footer]
|
|
149
168
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.ibiz-control-wizardpanel{--ibiz-control-wizard-panel-header-height:60px;--ibiz-control-wizard-panel-footer-height:40px;--ibiz-control-wizard-panel-bg-color:transparent;--ibiz-control-wizard-panel-step-font-size:22px;--ibiz-control-wizard-panel-step-bg-color:var(--ibiz-color-bg-1);height:100%;background-color:var(--ibiz-control-wizard-panel-bg-color)}.ibiz-control-wizardpanel .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height));overflow:auto}.ibiz-control-wizardpanel.is-header .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height) - var(--ibiz-control-wizard-panel-header-height))}.ibiz-control-wizardpanel-header{height:var(--ibiz-control-wizard-panel-header-height)}.ibiz-control-wizardpanel-header--step-icon{font-size:var(--ibiz-control-wizard-panel-step-font-size)}.ibiz-control-wizardpanel-header .el-step__icon{--el-bg-color:var(--ibiz-control-wizard-panel-step-bg-color)}.ibiz-control-wizardpanel-footer{display:flex;align-items:center;justify-content:flex-end;height:var(--ibiz-control-wizard-panel-footer-height)}
|
|
@@ -37,6 +37,7 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
});
|
|
38
38
|
const textTBVisible = vue.ref(false);
|
|
39
39
|
const editorTheme = vue.ref("");
|
|
40
|
+
const functionBody = vue.ref();
|
|
40
41
|
const editorModel = c.model;
|
|
41
42
|
if (editorModel.editorParams) {
|
|
42
43
|
if (editorModel.editorParams.enableEdit) {
|
|
@@ -85,6 +86,20 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
85
86
|
}, {
|
|
86
87
|
immediate: true
|
|
87
88
|
});
|
|
89
|
+
vue.watch(() => props.data, async (newVal) => {
|
|
90
|
+
if (c.functionBody) {
|
|
91
|
+
functionBody.value = await ibiz.util.hbs.render(c.functionBody.replaceAll("//n", "\n"), {
|
|
92
|
+
data: {
|
|
93
|
+
...newVal
|
|
94
|
+
},
|
|
95
|
+
context: c.context,
|
|
96
|
+
params: c.params
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
immediate: true,
|
|
101
|
+
deep: true
|
|
102
|
+
});
|
|
88
103
|
const updateEditorOptions = () => {
|
|
89
104
|
if (!editor) {
|
|
90
105
|
return;
|
|
@@ -429,9 +444,8 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
429
444
|
return null;
|
|
430
445
|
};
|
|
431
446
|
const renderFunctionBody = () => {
|
|
432
|
-
if (!
|
|
447
|
+
if (!functionBody.value)
|
|
433
448
|
return null;
|
|
434
|
-
}
|
|
435
449
|
return vue.createVNode("div", {
|
|
436
450
|
"class": ns.e("function")
|
|
437
451
|
}, [vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
@@ -457,14 +471,14 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
457
471
|
},
|
|
458
472
|
content: () => {
|
|
459
473
|
return vue.createVNode(vue.resolveComponent("iBizHighLightCode"), {
|
|
460
|
-
"
|
|
461
|
-
"
|
|
474
|
+
"code": functionBody.value,
|
|
475
|
+
"class": ns.e("function-signature")
|
|
462
476
|
}, null);
|
|
463
477
|
}
|
|
464
478
|
})]);
|
|
465
479
|
};
|
|
466
480
|
const renderHeaderToolbar = () => {
|
|
467
|
-
if (hasEnableEdit.value || enableFullScreen.value ||
|
|
481
|
+
if (hasEnableEdit.value || enableFullScreen.value || functionBody.value) {
|
|
468
482
|
return vue.createVNode("div", {
|
|
469
483
|
"class": ns.b("toolbar")
|
|
470
484
|
}, [hasEnableEdit.value && enableEdit.value && readonlyState.value ? vue.createVNode("i", {
|
|
@@ -236,13 +236,17 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
236
236
|
const valueText = vue.computed(() => {
|
|
237
237
|
const valueArr = Array.isArray(curValue.value) ? curValue.value : [curValue.value];
|
|
238
238
|
const list = hasChildren.value ? codeListItems.value : items.value;
|
|
239
|
+
const isNumber = codeItemValueNumber.value;
|
|
240
|
+
const codeMap = new Map(list.map((codeItem) => [isNumber ? Number(codeItem.value) : String(codeItem.value), codeItem.text]));
|
|
239
241
|
const textArr = [];
|
|
240
242
|
valueArr.forEach((item) => {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
243
|
+
const key = isNumber ? Number(item) : String(item);
|
|
244
|
+
const text = codeMap.get(key);
|
|
245
|
+
if (text !== void 0) {
|
|
246
|
+
textArr.push(text);
|
|
247
|
+
} else {
|
|
248
|
+
textArr.push(item);
|
|
249
|
+
}
|
|
246
250
|
});
|
|
247
251
|
return textArr.join(valueSeparator);
|
|
248
252
|
});
|
|
@@ -465,7 +469,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
465
469
|
"select-option-item-bkcolor": "".concat((this.c.editorParams.type === "round" ? codeListItem.bkcolor : "") || "")
|
|
466
470
|
}) : ""
|
|
467
471
|
}, [(codeListItem == null ? void 0 : codeListItem.sysImage) && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
468
|
-
"icon": codeListItem
|
|
472
|
+
"icon": codeListItem.sysImage
|
|
469
473
|
}, null), vue.createVNode("span", {
|
|
470
474
|
"class": this.ns.be("readonly-text-item", "label")
|
|
471
475
|
}, [text])]);
|
|
@@ -94,6 +94,17 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
94
|
deep: true
|
|
95
95
|
});
|
|
96
96
|
const markDownBox = vue.ref();
|
|
97
|
+
const getCodeTheme = (value) => {
|
|
98
|
+
const codeThemeMap = {
|
|
99
|
+
dark: "tomorrow-night",
|
|
100
|
+
light: "default",
|
|
101
|
+
green: "solarized-light",
|
|
102
|
+
red: "solarized-light",
|
|
103
|
+
violet: "default",
|
|
104
|
+
blue: "default"
|
|
105
|
+
};
|
|
106
|
+
return codeThemeMap[value] || value;
|
|
107
|
+
};
|
|
97
108
|
const getDownloadUrl = (data, file) => {
|
|
98
109
|
if (!c)
|
|
99
110
|
return "";
|
|
@@ -366,6 +377,7 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
366
377
|
};
|
|
367
378
|
const changeMainTheme = (_theme) => {
|
|
368
379
|
c == null ? void 0 : c.setCurrentEditorTheme(_theme);
|
|
380
|
+
editor == null ? void 0 : editor.setCodeBlockTheme(getCodeTheme(_theme));
|
|
369
381
|
};
|
|
370
382
|
const selectionChange = (event) => {
|
|
371
383
|
var _a2, _b2;
|
|
@@ -421,7 +433,7 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
421
433
|
// 目前应用的主题
|
|
422
434
|
mainTheme: theme.value,
|
|
423
435
|
// 目前应用的代码块主题
|
|
424
|
-
codeBlockTheme: theme.value
|
|
436
|
+
codeBlockTheme: getCodeTheme(theme.value)
|
|
425
437
|
},
|
|
426
438
|
fileUpload,
|
|
427
439
|
emoji: {
|
|
@@ -524,7 +536,7 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
524
536
|
vue.watch(() => UIStore.theme, (newVal) => {
|
|
525
537
|
theme.value = customTheme || newVal;
|
|
526
538
|
editor == null ? void 0 : editor.setTheme(theme.value);
|
|
527
|
-
editor == null ? void 0 : editor.setCodeBlockTheme(theme.value);
|
|
539
|
+
editor == null ? void 0 : editor.setCodeBlockTheme(getCodeTheme(theme.value));
|
|
528
540
|
});
|
|
529
541
|
const calcMarkDownStyle = () => {
|
|
530
542
|
if (window.ResizeObserver && markDownBox.value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-markdown{--ibiz-markdown-width:100%;--ibiz-markdown-color-manual-toolbar-bg-save:var(--ibiz-color-primary);--ibiz-markdown-color-manual-toolbar-text-save:var(--ibiz-color-primary-active-text);--ibiz-markdown-color-manual-toolbar-text-cancel:var(--ibiz-color-text-1);--ibiz-markdown-color-manual-toolbar-text-cancel-hover:var(--ibiz-color-primary);--ibiz-markdown-color-dark-scrollbar-thumb-dark:rgb(var(--ibiz-grey-4));--ibiz-markdown-color-light-scrollbar-thumb-dark:rgb(var(--ibiz-grey-4));--ibiz-markdown-color-scrollbar-thumb-dark-hover:rgba(var(--ibiz-grey-4), 0.5);--ibiz-markdown-color-dark-toc-text:var(--ibiz-color-fill-0);--ibiz-markdown-color-toc-header-text:var(--ibiz-color-text-0);--ibiz-markdown-color-dark-mardown-border:rgb(var(--ibiz-grey-2));--ibiz-markdown-color-fixed-toc-text:var(--ibiz-color-black);--ibiz-markdown-color-fixed-toc-arrow-text:var(--ibiz-color-primary);--ibiz-markdown-spacing-manual-toolbar-height:32px;--ibiz-markdown-spacing-manual-toolbar-gap:var(--ibiz-spacing-base);--ibiz-markdown-spacing-manual-toolbar-item-padding:0 var(--ibiz-spacing-base);--ibiz-markdown-spacing-manual-toolbar-margin:var(--ibiz-spacing-base-tight) var(--ibiz-spacing-tight) 0 0;--ibiz-markdown-spacing-manual-toolbar-fullscreen-height:var(--ibiz-height-control-default);--ibiz-markdown-spacing-manual-toolbar-fullscreen-padding:0 var(--ibiz-spacing-extra-loose);--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header:var(--ibiz-spacing-super-loose);--ibiz-markdown-height-manual-toolbar-height:var(--ibiz-height-control-default);--ibiz-markdown-border-radius-manual-toolbar-item:var(--ibiz-border-radius-small);--ibiz-markdown-border-manual-toolbar-fullscreen-footer:1px solid var(--ibiz-color-border);--ibiz-markdown-img-preview-top:-32px;--ibiz-markdown-img-preview-right:-36px;--ibiz-markdown-img-preview-width:32px;--ibiz-markdown-img-preview-height:32px}.ibiz-markdown__header{display:flex;flex-shrink:0;gap:var(--ibiz-markdown-spacing-manual-toolbar-gap);align-items:center;justify-content:end;height:var(--ibiz-markdown-spacing-manual-toolbar-height)}.ibiz-markdown__header--edit{cursor:pointer}.ibiz-markdown__header--full{cursor:pointer}.ibiz-markdown__header.is-fullscreen{position:fixed;top:0;right:0;left:0;z-index:1000;width:100%;height:calc(var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header));padding:var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-padding);margin-top:0;background-color:var(--ibiz-view-bg-color)}.ibiz-markdown__header.is-fullscreen+.ibiz-markdown-cherry .cherry.fullscreen{top:calc(var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header));height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header))}.ibiz-markdown__footer{display:flex;gap:var(--ibiz-markdown-spacing-manual-toolbar-gap);align-items:center;justify-content:end;height:var(--ibiz-markdown-spacing-manual-toolbar-height);margin:var(--ibiz-markdown-spacing-manual-toolbar-margin)}.ibiz-markdown__footer--save{height:var(--ibiz-markdown-height-manual-toolbar-height);padding:var(--ibiz-markdown-spacing-manual-toolbar-item-padding);line-height:var(--ibiz-markdown-height-manual-toolbar-height);color:var(--ibiz-markdown-color-manual-toolbar-text-save);text-align:center;cursor:pointer;background-color:var(--ibiz-markdown-color-manual-toolbar-bg-save);border-radius:var(--ibiz-markdown-border-radius-manual-toolbar-item)}.ibiz-markdown__footer--cancel{color:var(--ibiz-markdown-color-manual-toolbar-text-cancel);cursor:pointer}.ibiz-markdown__footer--cancel:hover{color:var(--ibiz-markdown-color-manual-toolbar-text-cancel-hover)}.ibiz-markdown__footer.is-fullscreen{position:fixed;right:0;bottom:0;left:0;z-index:1000;width:100%;height:calc(var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height) * 2);padding:var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-padding);margin-top:0;background-color:var(--ibiz-view-bg-color);border-top:var(--ibiz-markdown-border-manual-toolbar-fullscreen-footer)}.ibiz-markdown__footer.is-fullscreen+.ibiz-markdown-cherry .cherry.fullscreen{height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height) * 2)}.ibiz-markdown__img-preview.el-image{position:absolute;height:0}.ibiz-markdown__img-preview .el-image-viewer__wrapper{width:90%;height:90%;margin:auto}.ibiz-markdown__img-preview .el-image-viewer__mask{position:fixed;width:100vw;height:100vh;cursor:zoom-out;opacity:.7}.ibiz-markdown__img-preview .el-image-viewer__close{top:var(--ibiz-markdown-img-preview-top);right:var(--ibiz-markdown-img-preview-right);width:var(--ibiz-markdown-img-preview-width);height:var(--ibiz-markdown-img-preview-height)}.ibiz-markdown .ibiz-markdown-cherry{width:var(--ibiz-markdown-width);outline:0}.ibiz-markdown .ibiz-markdown-cherry .cherry{width:100%;border:1px solid var(--ibiz-color-border);box-shadow:none}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-toolbar{box-shadow:none}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-editor{border-top:1px solid var(--ibiz-color-border)}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-previewer{border-top:1px solid var(--ibiz-color-border)}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-previewer img{cursor:zoom-in}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-sidebar{top:49px;border-left:1px solid var(--ibiz-color-border);box-shadow:none}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-floatmenu{left:50%!important;margin:0;transform:translateX(-50%)}.ibiz-markdown .ibiz-markdown-cherry .cherry .CodeMirror-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-dropdown{width:-moz-min-content;width:min-content}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-dropdown-item{white-space:nowrap}.ibiz-markdown.is-disabled .cherry{min-height:auto}.ibiz-markdown.is-disabled .ibiz-markdown__fullscreen{position:absolute;top:8px;right:12px;z-index:98;font-size:var(--ibiz-font-size-regular);line-height:2.8}.ibiz-markdown.is-disabled .theme__dark .ibiz-markdown__fullscreen{color:var(--ibiz-color-text-0)}.ibiz-markdown.is-disabled .theme__dark .ibiz-markdown__fullscreen:hover{background-color:var(--ibiz-color-bg-3)}.ibiz-markdown.is-manual{display:flex;flex-direction:column}.ibiz-markdown.is-manual .ibiz-markdown-cherry{flex-grow:1;height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-height))!important}.ibiz-markdown.is-manual .cherry.fullscreen .cherry-previewer{padding-top:var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header)}.ibiz-markdown.is-manual.is-editing{flex-direction:column-reverse}.ibiz-markdown.is-manual.is-editing .cherry.fullscreen{height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height) * 2)}.ibiz-markdown.is-manual .ibiz-markdown-menu{display:none}.ibiz-markdown.is-manual.is-editing .ibiz-markdown-menu{display:block}.ibiz-markdown.is-show-editor-switch-menu .ibiz-composite-form-item-ex-menu{--ibiz-composite-form-item-ex-menu-height:47px;--ibiz-composite-form-item-ex-menu-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight) 0;max-height:100%}.ibiz-markdown.is-show-editor-switch-menu .cherry-toolbar{padding-right:calc(var(--ibiz-composite-form-item-ex-menu-width) + var(--ibiz-spacing-extra-tight))}.ibiz-markdown.is-show-editor-switch-menu .ibiz-markdown-menu{position:absolute;top:1px;right:1px;z-index:var(--ibiz-composite-form-item-ex-menu-z-index);display:flex;align-items:center;height:calc(var(--ibiz-markdown-toolbar-height) - 1px);background:var(--ibiz-composite-form-item-ex-menu-bg-color);border-right:1px solid var(--ibiz-color-border);border-left:1px solid var(--ibiz-color-border)}.ibiz-markdown.is-show-editor-switch-menu .ibiz-markdown-menu.is-fullscreen{position:fixed;z-index:1000}.ibiz-markdown.is-show-editor-switch-menu .ibiz-markdown-menu .ibiz-composite-form-item-ex-menu{position:relative}.ibiz-markdown .cherry-preview--full{border-left:none}.ibiz-markdown .cherry-flex-toc__fixed{color:var(--ibiz-markdown-color-fixed-toc-text)}.ibiz-markdown .cherry-flex-toc__fixed.cherry-flex-toc__pure .cherry-toc-head{color:var(--ibiz-markdown-color-fixed-toc-arrow-text)}.ibiz-markdown .cherry-flex-toc__fixed:hover{z-index:100}.ibiz-markdown .theme__dark,.ibiz-markdown .theme__light{color:var(--ibiz-form-item-text-color)}.ibiz-markdown .cherry-markdown h1 a::before,.ibiz-markdown .cherry-markdown h2 a::before,.ibiz-markdown .cherry-markdown h3 a::before,.ibiz-markdown .cherry-markdown h4 a::before,.ibiz-markdown .cherry-markdown h5 a::before,.ibiz-markdown .cherry-markdown h6 a::before{display:none}.ibiz-markdown .cherry.fullscreen{z-index:999}.ibiz-markdown--light .theme__green .cherry-toolbar,.ibiz-markdown--light .theme__light .cherry-toolbar,.ibiz-markdown--light .theme__violet .cherry-toolbar{background-color:var(--ibiz-color-bg-0)}.ibiz-markdown--light .theme__dark.cherry .cherry-flex-toc{color:var(--ibiz-markdown-color-toc-header-text)}.ibiz-markdown--light .theme__dark.cherry ::-webkit-scrollbar-thumb{background:var(--ibiz-markdown-color-light-scrollbar-thumb-dark)}.ibiz-markdown--light .theme__dark.cherry ::-webkit-scrollbar-thumb:hover{background:var(--ibiz-markdown-color-scrollbar-thumb-dark-hover)}.ibiz-markdown--dark.ibiz-markdown-cherry .cherry{border:1px solid var(--ibiz-markdown-color-dark-mardown-border)}.ibiz-markdown--dark .theme__green .cherry-toolbar,.ibiz-markdown--dark .theme__light .cherry-toolbar,.ibiz-markdown--dark .theme__violet .cherry-toolbar{background-color:var(--ibiz-color-shadow)}.ibiz-markdown--dark .theme__dark.cherry .cherry-toc-head{color:var(--ibiz-markdown-color-dark-toc-text)}.ibiz-markdown--dark .theme__dark.cherry ::-webkit-scrollbar-thumb{background:var(--ibiz-markdown-color-dark-scrollbar-thumb-dark)}.ibiz-markdown--dark .theme__dark.cherry ::-webkit-scrollbar-thumb:hover{background:var(--ibiz-markdown-color-scrollbar-thumb-dark-hover)}
|
|
1
|
+
.ibiz-markdown{--ibiz-markdown-width:100%;--ibiz-markdown-color-manual-toolbar-bg-save:var(--ibiz-color-primary);--ibiz-markdown-color-manual-toolbar-text-save:var(--ibiz-color-primary-active-text);--ibiz-markdown-color-manual-toolbar-text-cancel:var(--ibiz-color-text-1);--ibiz-markdown-color-manual-toolbar-text-cancel-hover:var(--ibiz-color-primary);--ibiz-markdown-color-dark-scrollbar-thumb-dark:rgb(var(--ibiz-grey-4));--ibiz-markdown-color-light-scrollbar-thumb-dark:rgb(var(--ibiz-grey-4));--ibiz-markdown-color-scrollbar-thumb-dark-hover:rgba(var(--ibiz-grey-4), 0.5);--ibiz-markdown-color-dark-toc-text:var(--ibiz-color-fill-0);--ibiz-markdown-color-toc-header-text:var(--ibiz-color-text-0);--ibiz-markdown-color-dark-mardown-border:rgb(var(--ibiz-grey-2));--ibiz-markdown-color-fixed-toc-text:var(--ibiz-color-black);--ibiz-markdown-color-fixed-toc-arrow-text:var(--ibiz-color-primary);--ibiz-markdown-spacing-manual-toolbar-height:32px;--ibiz-markdown-spacing-manual-toolbar-gap:var(--ibiz-spacing-base);--ibiz-markdown-spacing-manual-toolbar-item-padding:0 var(--ibiz-spacing-base);--ibiz-markdown-spacing-manual-toolbar-margin:var(--ibiz-spacing-base-tight) var(--ibiz-spacing-tight) 0 0;--ibiz-markdown-spacing-manual-toolbar-fullscreen-height:var(--ibiz-height-control-default);--ibiz-markdown-spacing-manual-toolbar-fullscreen-padding:0 var(--ibiz-spacing-extra-loose);--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header:var(--ibiz-spacing-super-loose);--ibiz-markdown-height-manual-toolbar-height:var(--ibiz-height-control-default);--ibiz-markdown-border-radius-manual-toolbar-item:var(--ibiz-border-radius-small);--ibiz-markdown-border-manual-toolbar-fullscreen-footer:1px solid var(--ibiz-color-border);--ibiz-markdown-img-preview-top:-32px;--ibiz-markdown-img-preview-right:-36px;--ibiz-markdown-img-preview-width:32px;--ibiz-markdown-img-preview-height:32px}.ibiz-markdown__header{display:flex;flex-shrink:0;gap:var(--ibiz-markdown-spacing-manual-toolbar-gap);align-items:center;justify-content:end;height:var(--ibiz-markdown-spacing-manual-toolbar-height)}.ibiz-markdown__header--edit{cursor:pointer}.ibiz-markdown__header--full{cursor:pointer}.ibiz-markdown__header.is-fullscreen{position:fixed;top:0;right:0;left:0;z-index:1000;width:100%;height:calc(var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header));padding:var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-padding);margin-top:0;background-color:var(--ibiz-view-bg-color)}.ibiz-markdown__header.is-fullscreen+.ibiz-markdown-cherry .cherry.fullscreen{top:calc(var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header));height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header))}.ibiz-markdown__footer{display:flex;gap:var(--ibiz-markdown-spacing-manual-toolbar-gap);align-items:center;justify-content:end;height:var(--ibiz-markdown-spacing-manual-toolbar-height);margin:var(--ibiz-markdown-spacing-manual-toolbar-margin)}.ibiz-markdown__footer--save{height:var(--ibiz-markdown-height-manual-toolbar-height);padding:var(--ibiz-markdown-spacing-manual-toolbar-item-padding);line-height:var(--ibiz-markdown-height-manual-toolbar-height);color:var(--ibiz-markdown-color-manual-toolbar-text-save);text-align:center;cursor:pointer;background-color:var(--ibiz-markdown-color-manual-toolbar-bg-save);border-radius:var(--ibiz-markdown-border-radius-manual-toolbar-item)}.ibiz-markdown__footer--cancel{color:var(--ibiz-markdown-color-manual-toolbar-text-cancel);cursor:pointer}.ibiz-markdown__footer--cancel:hover{color:var(--ibiz-markdown-color-manual-toolbar-text-cancel-hover)}.ibiz-markdown__footer.is-fullscreen{position:fixed;right:0;bottom:0;left:0;z-index:1000;width:100%;height:calc(var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height) * 2);padding:var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-padding);margin-top:0;background-color:var(--ibiz-view-bg-color);border-top:var(--ibiz-markdown-border-manual-toolbar-fullscreen-footer)}.ibiz-markdown__footer.is-fullscreen+.ibiz-markdown-cherry .cherry.fullscreen{height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height) * 2)}.ibiz-markdown__img-preview.el-image{position:absolute;height:0}.ibiz-markdown__img-preview .el-image-viewer__wrapper{width:90%;height:90%;margin:auto}.ibiz-markdown__img-preview .el-image-viewer__mask{position:fixed;width:100vw;height:100vh;cursor:zoom-out;opacity:.7}.ibiz-markdown__img-preview .el-image-viewer__close{top:var(--ibiz-markdown-img-preview-top);right:var(--ibiz-markdown-img-preview-right);width:var(--ibiz-markdown-img-preview-width);height:var(--ibiz-markdown-img-preview-height)}.ibiz-markdown .ibiz-markdown-cherry{width:var(--ibiz-markdown-width);outline:0}.ibiz-markdown .ibiz-markdown-cherry .cherry{width:100%;border:1px solid var(--ibiz-color-border);box-shadow:none}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-toolbar{box-shadow:none}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-editor{border-top:1px solid var(--ibiz-color-border)}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-previewer{border-top:1px solid var(--ibiz-color-border)}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-previewer img{cursor:zoom-in}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-sidebar{top:49px;border-left:1px solid var(--ibiz-color-border);box-shadow:none}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-floatmenu{left:50%!important;margin:0;transform:translateX(-50%)}.ibiz-markdown .ibiz-markdown-cherry .cherry .CodeMirror-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-dropdown{width:-moz-min-content;width:min-content}.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-dropdown-item{white-space:nowrap}.ibiz-markdown.is-disabled .cherry{min-height:auto}.ibiz-markdown.is-disabled .ibiz-markdown__fullscreen{position:absolute;top:8px;right:12px;z-index:98;font-size:var(--ibiz-font-size-regular);line-height:2.8}.ibiz-markdown.is-disabled .theme__dark .ibiz-markdown__fullscreen{color:var(--ibiz-color-text-0)}.ibiz-markdown.is-disabled .theme__dark .ibiz-markdown__fullscreen:hover{background-color:var(--ibiz-color-bg-3)}.ibiz-markdown.is-manual{display:flex;flex-direction:column}.ibiz-markdown.is-manual .ibiz-markdown-cherry{flex-grow:1;height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-height))!important}.ibiz-markdown.is-manual .cherry.fullscreen .cherry-previewer{padding-top:var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height-header)}.ibiz-markdown.is-manual.is-editing{flex-direction:column-reverse}.ibiz-markdown.is-manual.is-editing .cherry.fullscreen{height:calc(100% - var(--ibiz-markdown-spacing-manual-toolbar-fullscreen-height) * 2)}.ibiz-markdown.is-manual .ibiz-markdown-menu{display:none}.ibiz-markdown.is-manual.is-editing .ibiz-markdown-menu{display:block}.ibiz-markdown.is-show-editor-switch-menu .ibiz-composite-form-item-ex-menu{--ibiz-composite-form-item-ex-menu-height:47px;--ibiz-composite-form-item-ex-menu-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight) 0;max-height:100%}.ibiz-markdown.is-show-editor-switch-menu .cherry-toolbar{padding-right:calc(var(--ibiz-composite-form-item-ex-menu-width) + var(--ibiz-spacing-extra-tight))}.ibiz-markdown.is-show-editor-switch-menu .ibiz-markdown-menu{position:absolute;top:1px;right:1px;z-index:var(--ibiz-composite-form-item-ex-menu-z-index);display:flex;align-items:center;height:calc(var(--ibiz-markdown-toolbar-height) - 1px);background:var(--ibiz-composite-form-item-ex-menu-bg-color);border-right:1px solid var(--ibiz-color-border);border-left:1px solid var(--ibiz-color-border)}.ibiz-markdown.is-show-editor-switch-menu .ibiz-markdown-menu.is-fullscreen{position:fixed;z-index:1000}.ibiz-markdown.is-show-editor-switch-menu .ibiz-markdown-menu .ibiz-composite-form-item-ex-menu{position:relative}.ibiz-markdown .cherry-preview--full{border-left:none}.ibiz-markdown .cherry-flex-toc__fixed{color:var(--ibiz-markdown-color-fixed-toc-text)}.ibiz-markdown .cherry-flex-toc__fixed.cherry-flex-toc__pure .cherry-toc-head{color:var(--ibiz-markdown-color-fixed-toc-arrow-text)}.ibiz-markdown .cherry-flex-toc__fixed:hover{z-index:100}.ibiz-markdown .theme__dark,.ibiz-markdown .theme__light{color:var(--ibiz-form-item-text-color)}.ibiz-markdown .cherry-markdown h1 a::before,.ibiz-markdown .cherry-markdown h2 a::before,.ibiz-markdown .cherry-markdown h3 a::before,.ibiz-markdown .cherry-markdown h4 a::before,.ibiz-markdown .cherry-markdown h5 a::before,.ibiz-markdown .cherry-markdown h6 a::before{display:none}.ibiz-markdown .cherry.fullscreen{z-index:999}.ibiz-markdown .cherry-markdown div[data-type=codeBlock] code.language-diff{display:inline-block;width:100%}.ibiz-markdown .cherry-markdown div[data-type=codeBlock] code.language-diff .code-line{display:inline-block;width:100%;line-height:1.3em}.ibiz-markdown .cherry-markdown div[data-type=codeBlock] code.language-diff .code-line>.token{display:flex}.ibiz-markdown .cherry-markdown div[data-type=codeBlock] code.language-diff .code-line>.token .line{display:inline-block}.ibiz-markdown .cherry-markdown div[data-type=codeBlock] code.language-diff .code-line>.token .line:empty{display:none}.ibiz-markdown .cherry-markdown div[data-type=codeBlock] code.language-diff .token.inserted{color:var(--ibiz-color-success-text);background:var(--ibiz-color-success)}.ibiz-markdown .cherry-markdown div[data-type=codeBlock] code.language-diff .token.deleted{color:var(--ibiz-color-danger-text);background:var(--ibiz-color-danger)}.ibiz-markdown--light .theme__green .cherry-toolbar,.ibiz-markdown--light .theme__light .cherry-toolbar,.ibiz-markdown--light .theme__violet .cherry-toolbar{background-color:var(--ibiz-color-bg-0)}.ibiz-markdown--light .theme__dark.cherry .cherry-flex-toc{color:var(--ibiz-markdown-color-toc-header-text)}.ibiz-markdown--light .theme__dark.cherry ::-webkit-scrollbar-thumb{background:var(--ibiz-markdown-color-light-scrollbar-thumb-dark)}.ibiz-markdown--light .theme__dark.cherry ::-webkit-scrollbar-thumb:hover{background:var(--ibiz-markdown-color-scrollbar-thumb-dark-hover)}.ibiz-markdown--dark.ibiz-markdown-cherry .cherry{border:1px solid var(--ibiz-markdown-color-dark-mardown-border)}.ibiz-markdown--dark .theme__green .cherry-toolbar,.ibiz-markdown--dark .theme__light .cherry-toolbar,.ibiz-markdown--dark .theme__violet .cherry-toolbar{background-color:var(--ibiz-color-shadow)}.ibiz-markdown--dark .theme__dark.cherry .cherry-toc-head{color:var(--ibiz-markdown-color-dark-toc-text)}.ibiz-markdown--dark .theme__dark.cherry ::-webkit-scrollbar-thumb{background:var(--ibiz-markdown-color-dark-scrollbar-thumb-dark)}.ibiz-markdown--dark .theme__dark.cherry ::-webkit-scrollbar-thumb:hover{background:var(--ibiz-markdown-color-scrollbar-thumb-dark-hover)}
|
|
@@ -33,11 +33,12 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
onRemove,
|
|
34
34
|
onSuccess,
|
|
35
35
|
beforeUpload,
|
|
36
|
-
addCacheCount
|
|
36
|
+
addCacheCount,
|
|
37
|
+
drainCacheCount
|
|
37
38
|
} = useIviewUpload.useIViewUpload(props, (value) => {
|
|
38
39
|
emit("change", value);
|
|
39
40
|
useInValueChange();
|
|
40
|
-
}, c);
|
|
41
|
+
}, c, emit);
|
|
41
42
|
const {
|
|
42
43
|
customUpload,
|
|
43
44
|
folderInputRef,
|
|
@@ -48,8 +49,9 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
49
|
headers: headers.value,
|
|
49
50
|
onSuccess,
|
|
50
51
|
onError,
|
|
51
|
-
addCacheCount
|
|
52
|
-
|
|
52
|
+
addCacheCount,
|
|
53
|
+
drainCacheCount
|
|
54
|
+
}, emit);
|
|
53
55
|
const noUploadIcon = vue.computed(() => {
|
|
54
56
|
var _a;
|
|
55
57
|
return limit.value === 1 && ((_a = files.value) == null ? void 0 : _a.length) === 1;
|
|
@@ -33,7 +33,7 @@ const IBizImageCropping = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
} = useIviewUpload.useIViewUpload(props, (value) => {
|
|
34
34
|
emit("change", value);
|
|
35
35
|
useInValueChange();
|
|
36
|
-
}, c);
|
|
36
|
+
}, c, emit);
|
|
37
37
|
const dialogImageUrl = vue.ref([]);
|
|
38
38
|
const dialogImageUrlIndex = vue.ref(0);
|
|
39
39
|
const dialogVisible = vue.ref(false);
|
|
@@ -32,7 +32,7 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
32
|
} = useIviewUpload.useIViewUpload(props, (value) => {
|
|
33
33
|
emit("change", value);
|
|
34
34
|
useInValueChange();
|
|
35
|
-
}, c);
|
|
35
|
+
}, c, emit);
|
|
36
36
|
const dialogImageUrl = vue.ref([]);
|
|
37
37
|
const dialogImageUrlIndex = vue.ref(0);
|
|
38
38
|
const dialogVisible = vue.ref(false);
|
|
@@ -41,6 +41,10 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
41
41
|
* 是否显示文件列表,默认显示
|
|
42
42
|
*/
|
|
43
43
|
__publicField(this, "showfilelist", true);
|
|
44
|
+
/**
|
|
45
|
+
* 隐藏文件忽略正则,文件夹上传时基于根目录相对路径匹配,匹配到的文件将被忽略不上传,默认空字符串,传空字符串则不过滤
|
|
46
|
+
*/
|
|
47
|
+
__publicField(this, "hiddenFileRegex", "");
|
|
44
48
|
/**
|
|
45
49
|
* 上传的文件大小
|
|
46
50
|
*
|
|
@@ -143,7 +147,8 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
143
147
|
unzip,
|
|
144
148
|
unzipfileext,
|
|
145
149
|
uploadmode,
|
|
146
|
-
showfilelist
|
|
150
|
+
showfilelist,
|
|
151
|
+
hiddenfileregex
|
|
147
152
|
} = this.editorParams;
|
|
148
153
|
if (isDrag) {
|
|
149
154
|
this.isDrag = Boolean(isDrag);
|
|
@@ -175,6 +180,9 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
175
180
|
if (showfilelist) {
|
|
176
181
|
this.showfilelist = showfilelist === "true";
|
|
177
182
|
}
|
|
183
|
+
if (hiddenfileregex) {
|
|
184
|
+
this.hiddenFileRegex = hiddenfileregex;
|
|
185
|
+
}
|
|
178
186
|
if (size) {
|
|
179
187
|
this.size = Number(size);
|
|
180
188
|
}
|