@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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RuntimeError } from '@ibiz-template/core';
|
|
2
2
|
import { isString, isNil } from 'lodash-es';
|
|
3
3
|
import { ref } from 'vue';
|
|
4
|
+
import '../../../util/index.mjs';
|
|
5
|
+
import { getRelativePathWithoutRoot } from '../../../util/path-util/path-util.mjs';
|
|
4
6
|
|
|
5
7
|
"use strict";
|
|
6
8
|
var __defProp = Object.defineProperty;
|
|
@@ -45,7 +47,7 @@ function getBody(xhr) {
|
|
|
45
47
|
}
|
|
46
48
|
let fileId = 1;
|
|
47
49
|
const genFileId = () => Date.now() + 36e5 + fileId++;
|
|
48
|
-
function useCustomUpload(c, options) {
|
|
50
|
+
function useCustomUpload(c, options, emit) {
|
|
49
51
|
const customUpload = (option) => {
|
|
50
52
|
if (typeof XMLHttpRequest === "undefined")
|
|
51
53
|
throw new RuntimeError("XMLHttpRequest is undefined");
|
|
@@ -120,25 +122,72 @@ function useCustomUpload(c, options) {
|
|
|
120
122
|
};
|
|
121
123
|
const handleFolderSelect = (event) => {
|
|
122
124
|
const target = event.target;
|
|
123
|
-
if (target.files
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
if (!target.files || target.files.length === 0)
|
|
126
|
+
return;
|
|
127
|
+
let files = Array.from(target.files);
|
|
128
|
+
if (c.hiddenFileRegex) {
|
|
129
|
+
let regex = null;
|
|
130
|
+
try {
|
|
131
|
+
regex = new RegExp(c.hiddenFileRegex);
|
|
132
|
+
} catch (e) {
|
|
133
|
+
ibiz.log.warn("hiddenFileRegex invalid: ".concat(c.hiddenFileRegex));
|
|
134
|
+
}
|
|
135
|
+
if (regex) {
|
|
136
|
+
files = files.filter((file) => {
|
|
137
|
+
const rawFile = file;
|
|
138
|
+
const relativePathWithoutRoot = getRelativePathWithoutRoot(
|
|
139
|
+
rawFile.webkitRelativePath
|
|
140
|
+
);
|
|
141
|
+
return !regex.test(relativePathWithoutRoot);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const promises = [];
|
|
146
|
+
for (const file of files) {
|
|
147
|
+
const rawFile = file;
|
|
148
|
+
rawFile.uid = genFileId();
|
|
149
|
+
rawFile.path = file.webkitRelativePath;
|
|
150
|
+
if (options.addCacheCount) {
|
|
151
|
+
options.addCacheCount();
|
|
152
|
+
}
|
|
153
|
+
const promise = new Promise((resolve) => {
|
|
129
154
|
const tempOption = {
|
|
130
155
|
file: rawFile,
|
|
131
156
|
filename: "file",
|
|
132
157
|
method: "post",
|
|
133
|
-
...options
|
|
158
|
+
...options,
|
|
159
|
+
onSuccess: (response) => resolve({ status: "ok", data: response }),
|
|
160
|
+
onError: (error) => resolve({ status: "err", data: error, rawFile })
|
|
134
161
|
};
|
|
135
|
-
if (options.addCacheCount) {
|
|
136
|
-
options.addCacheCount();
|
|
137
|
-
}
|
|
138
162
|
customUpload(tempOption);
|
|
139
|
-
}
|
|
140
|
-
|
|
163
|
+
});
|
|
164
|
+
promises.push(promise);
|
|
141
165
|
}
|
|
166
|
+
emit == null ? void 0 : emit("customAction", { tag: "beforeUpload", data: [...files] });
|
|
167
|
+
Promise.all(promises).then((results) => {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
const successes = [];
|
|
170
|
+
const errors = [];
|
|
171
|
+
for (const result of results) {
|
|
172
|
+
if (result.status === "ok") {
|
|
173
|
+
successes.push(result);
|
|
174
|
+
} else {
|
|
175
|
+
errors.push(result);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const totalCount = files.length;
|
|
179
|
+
if (options.drainCacheCount && totalCount > 1) {
|
|
180
|
+
options.drainCacheCount(totalCount - 1);
|
|
181
|
+
}
|
|
182
|
+
if (errors.length > 0) {
|
|
183
|
+
const firstError = errors[0];
|
|
184
|
+
(_a = options.onError) == null ? void 0 : _a.call(options, firstError.data, firstError.rawFile);
|
|
185
|
+
} else {
|
|
186
|
+
const successData = successes.map((item) => item.data);
|
|
187
|
+
(_b = options.onSuccess) == null ? void 0 : _b.call(options, successData);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
target.files = null;
|
|
142
191
|
};
|
|
143
192
|
return { customUpload, folderInputRef, selectFolder, handleFolderSelect };
|
|
144
193
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { HttpError } from '@ibiz-template/core';
|
|
2
2
|
import { ref, watch, computed } from 'vue';
|
|
3
|
+
import '../../../util/index.mjs';
|
|
4
|
+
import { getRelativePathWithoutRoot } from '../../../util/path-util/path-util.mjs';
|
|
3
5
|
|
|
4
6
|
"use strict";
|
|
5
|
-
function useIViewUpload(props, valueChange, c) {
|
|
7
|
+
function useIViewUpload(props, valueChange, c, emit) {
|
|
6
8
|
const files = ref([]);
|
|
7
9
|
const uploadHeaders = ibiz.util.file.getUploadHeaders();
|
|
8
10
|
const headers = ref({ ...uploadHeaders });
|
|
@@ -154,7 +156,15 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
154
156
|
const addCacheCount = () => {
|
|
155
157
|
uploadCache.count += 1;
|
|
156
158
|
};
|
|
159
|
+
const drainCacheCount = (n) => {
|
|
160
|
+
uploadCache.count -= n;
|
|
161
|
+
if (uploadCache.count <= 0) {
|
|
162
|
+
uploadCache.count = 0;
|
|
163
|
+
emitValue();
|
|
164
|
+
}
|
|
165
|
+
};
|
|
157
166
|
const beforeUpload = (rawFile) => {
|
|
167
|
+
emit == null ? void 0 : emit("customAction", { tag: "beforeUpload", data: [rawFile] });
|
|
158
168
|
if (rawFile.name.split(".").pop() === "svg") {
|
|
159
169
|
const blobUrl = URL.createObjectURL(rawFile);
|
|
160
170
|
svgBlob.set(rawFile.name, blobUrl);
|
|
@@ -170,6 +180,30 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
170
180
|
return true;
|
|
171
181
|
};
|
|
172
182
|
const onSuccess = (response) => {
|
|
183
|
+
let hiddenRegex = null;
|
|
184
|
+
if (c.hiddenFileRegex) {
|
|
185
|
+
try {
|
|
186
|
+
hiddenRegex = new RegExp(c.hiddenFileRegex);
|
|
187
|
+
} catch (e) {
|
|
188
|
+
ibiz.log.warn("hiddenFileRegex invalid: ".concat(c.hiddenFileRegex));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (hiddenRegex && Array.isArray(response)) {
|
|
192
|
+
response = response.filter((file) => {
|
|
193
|
+
if (file.path && file.filename && file.path.indexOf(file.filename) > -1) {
|
|
194
|
+
const relativePathWithoutRoot2 = getRelativePathWithoutRoot(file.path);
|
|
195
|
+
return !hiddenRegex.test(relativePathWithoutRoot2);
|
|
196
|
+
}
|
|
197
|
+
const relativePathWithoutRoot = getRelativePathWithoutRoot(
|
|
198
|
+
"".concat(file.path, "/").concat(file.filename)
|
|
199
|
+
);
|
|
200
|
+
return !hiddenRegex.test(relativePathWithoutRoot);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
emit == null ? void 0 : emit("customAction", {
|
|
204
|
+
tag: "onSuccess",
|
|
205
|
+
data: Array.isArray(response) ? response : [response]
|
|
206
|
+
});
|
|
173
207
|
if (!response) {
|
|
174
208
|
return;
|
|
175
209
|
}
|
|
@@ -204,6 +238,10 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
204
238
|
}
|
|
205
239
|
};
|
|
206
240
|
const onError = (...args) => {
|
|
241
|
+
emit == null ? void 0 : emit("customAction", {
|
|
242
|
+
tag: "onError",
|
|
243
|
+
data: args
|
|
244
|
+
});
|
|
207
245
|
const error = args[0];
|
|
208
246
|
uploadCache.count -= 1;
|
|
209
247
|
throw new HttpError({
|
|
@@ -211,6 +249,10 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
211
249
|
});
|
|
212
250
|
};
|
|
213
251
|
const onRemove = (file) => {
|
|
252
|
+
emit == null ? void 0 : emit("customAction", {
|
|
253
|
+
tag: "onRemove",
|
|
254
|
+
data: [file]
|
|
255
|
+
});
|
|
214
256
|
if (props.disabled) {
|
|
215
257
|
return;
|
|
216
258
|
}
|
|
@@ -263,7 +305,8 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
263
305
|
onRemove,
|
|
264
306
|
onSuccess,
|
|
265
307
|
beforeUpload,
|
|
266
|
-
addCacheCount
|
|
308
|
+
addCacheCount,
|
|
309
|
+
drainCacheCount
|
|
267
310
|
};
|
|
268
311
|
}
|
|
269
312
|
|
package/es/index.mjs
CHANGED
|
@@ -186,6 +186,7 @@ export { splitPathToSegments, validateRouteSegments } from './util/user-route-ut
|
|
|
186
186
|
export { PrintPreviewUtil } from './util/print-preview-util/print-preview-util.mjs';
|
|
187
187
|
export { useContextMenu } from './util/context-menu/context-menu.mjs';
|
|
188
188
|
export { QrcodeUtil } from './util/qrcode-util/qrcode-util.mjs';
|
|
189
|
+
export { getRelativePathWithoutRoot } from './util/path-util/path-util.mjs';
|
|
189
190
|
export { parseHtml } from './util/wang-editor-util/wang-editor-util.mjs';
|
|
190
191
|
export { ArrowLeftBold, ArrowRightBold } from './util/icon/icon.mjs';
|
|
191
192
|
export { AuthGuard } from './web-app/guard/auth-guard/auth-guard.mjs';
|
package/es/locale/index.mjs
CHANGED
|
@@ -47,12 +47,40 @@ class IBizI18n {
|
|
|
47
47
|
__publicField(this, "langMap", /* @__PURE__ */ new Map());
|
|
48
48
|
this.defaultLang = "zh-CN";
|
|
49
49
|
this.html = document.querySelector("html");
|
|
50
|
-
const
|
|
50
|
+
const rawLang = localStorage.getItem("language") || this.defaultLang;
|
|
51
|
+
const lang = this.normalizeLang(rawLang);
|
|
51
52
|
i18n.global.locale.value = lang;
|
|
52
53
|
this.html.setAttribute("lang", lang);
|
|
53
54
|
this.langMap.set("en", () => import('./en/index.mjs'));
|
|
54
55
|
this.langMap.set("zh-CN", () => import('./zh-CN/index.mjs'));
|
|
55
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* 归一化语言标识,兼容不同操作系统/浏览器返回的格式差异
|
|
59
|
+
* 例如:en-US/en_US -> en,zh-Hans-CN/zh_CN -> zh-CN,zh-Hant-* -> zh-CN
|
|
60
|
+
*
|
|
61
|
+
* @author tony001
|
|
62
|
+
* @date 2026-06-02
|
|
63
|
+
* @protected
|
|
64
|
+
* @param {string} lang
|
|
65
|
+
* @return {*} {string}
|
|
66
|
+
*/
|
|
67
|
+
normalizeLang(lang) {
|
|
68
|
+
if (!lang) {
|
|
69
|
+
return this.defaultLang;
|
|
70
|
+
}
|
|
71
|
+
const tag = lang.replace(/_/g, "-");
|
|
72
|
+
const lower = tag.toLowerCase();
|
|
73
|
+
if (lower === "en" || lower.startsWith("en-")) {
|
|
74
|
+
return "en";
|
|
75
|
+
}
|
|
76
|
+
if (lower === "zh" || lower.startsWith("zh-hans") || lower === "zh-cn" || lower === "zh-sg") {
|
|
77
|
+
return "zh-CN";
|
|
78
|
+
}
|
|
79
|
+
if (lower.startsWith("zh-hant") || lower === "zh-tw" || lower === "zh-hk" || lower === "zh-mo") {
|
|
80
|
+
return "zh-CN";
|
|
81
|
+
}
|
|
82
|
+
return tag;
|
|
83
|
+
}
|
|
56
84
|
/**
|
|
57
85
|
* 初始化加载默认多语言文件
|
|
58
86
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-panel-button{--ibiz-panel-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-panel-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-panel-button-icon-max-height:var(--ibiz-width-icon-medium);width:100%;padding:var(--ibiz-
|
|
1
|
+
.ibiz-panel-button{--ibiz-panel-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-panel-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-panel-button-icon-max-height:var(--ibiz-width-icon-medium);--ibiz-panel-button-padding:var(--ibiz-spacing-tight);width:100%;padding:var(--ibiz-panel-button-padding);overflow:hidden}.ibiz-panel-button .el-button{width:100%}.ibiz-panel-button .el-button>span{pointer-events:none}.ibiz-panel-button .el-button .ibiz-panel-button-content{display:flex;align-items:center;justify-content:flex-start}.ibiz-panel-button .el-button .ibiz-panel-button-content i,.ibiz-panel-button .el-button .ibiz-panel-button-content img{display:inline-block;max-width:var(--ibiz-panel-button-icon-max-width);max-height:var(--ibiz-panel-button-icon-max-height)}.ibiz-panel-button .el-button .ibiz-panel-button-content .ibiz-icon+.ibiz-panel-button-content--caption{margin-left:var(--ibiz-panel-button-icon-margin)}.ibiz-panel-button.is-loading .el-button .ibiz-icon{display:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-panel-view-header{width:auto;height:
|
|
1
|
+
.ibiz-panel-view-header{--ibiz-panel-view-header-height:64px;--ibiz-panel-view-header-border-color:var(--ibiz-color-border);--ibiz-panel-view-header-padding:0 var(--ibiz-spacing-base);width:auto;height:var(--ibiz-panel-view-header-height);border-bottom:1px solid var(--ibiz-panel-view-header-border-color)}.ibiz-panel-view-header .ibiz-row{height:100%}.ibiz-panel-view-header .ibiz-panel-container--view_header_right{padding:var(--ibiz-panel-view-header-padding)}.ibiz-panel-view-header .el-tabs__nav-wrap::after{display:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-searchform-buttons{--ibiz-searchform-
|
|
1
|
+
.ibiz-searchform-buttons{--ibiz-control-searchform-button-height:40px;--ibiz-control-searchform-button-gap:var(--ibiz-spacing-tight);--ibiz-control-searchform-button-margin:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-extra-tight) 0 var(--ibiz-spacing-tight);display:flex;gap:var(--ibiz-control-searchform-button-gap);align-items:center;height:var(--ibiz-control-searchform-button-height);margin:var(--ibiz-control-searchform-button-margin)}.ibiz-searchform-buttons .el-button+.el-button{margin-left:0}.ibiz-searchform-buttons-filter-item{--ibiz-control-searchform-button-filter-font-size:var(--ibiz-font-size-header-5);--ibiz-control-searchform-button-filter-gap:var(--ibiz-spacing-extra-tight);position:relative}.ibiz-searchform-buttons-filter-item__text{padding-right:var(--ibiz-control-searchform-button-filter-gap)}.ibiz-searchform-buttons-filter-item__remove{position:absolute;top:50%;right:0;display:none;font-size:var(--ibiz-control-searchform-button-filter-font-size);transform:translateY(-50%)}.ibiz-searchform-buttons-filter-item:hover .ibiz-searchform-buttons-filter-item__remove{display:block}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, resolveComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './searchform-buttons.css';
|
|
4
4
|
import { ElMessageBox } from 'element-plus';
|
|
5
5
|
import { SearchFormButtonsController } from './searchform-buttons.controller.mjs';
|
|
@@ -30,6 +30,10 @@ const SearchFormButtons = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
var _a, _b;
|
|
31
31
|
const ns = useNamespace("searchform-buttons");
|
|
32
32
|
const c = prop.controller;
|
|
33
|
+
const {
|
|
34
|
+
semanticClass,
|
|
35
|
+
semanticStyle
|
|
36
|
+
} = useSemanticNode(c.searchFrom);
|
|
33
37
|
const isDesignPreview = ((_b = (_a = c.panel) == null ? void 0 : _a.context) == null ? void 0 : _b.srfrunmode) === "DESIGN";
|
|
34
38
|
const onSearchButtonClick = () => {
|
|
35
39
|
if (isDesignPreview) {
|
|
@@ -59,13 +63,16 @@ const SearchFormButtons = /* @__PURE__ */ defineComponent({
|
|
|
59
63
|
onSearchButtonClick,
|
|
60
64
|
onResetButtonClick,
|
|
61
65
|
saveFilterConfirm,
|
|
62
|
-
onAdvanceSearch
|
|
66
|
+
onAdvanceSearch,
|
|
67
|
+
semanticClass,
|
|
68
|
+
semanticStyle
|
|
63
69
|
};
|
|
64
70
|
},
|
|
65
71
|
render() {
|
|
66
72
|
let _slot, _slot4;
|
|
67
73
|
return createVNode("div", {
|
|
68
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
74
|
+
"class": [this.ns.b(), this.semanticClass("button", this.controller.state), this.ns.m(this.modelData.id), ...this.controller.containerClass],
|
|
75
|
+
"style": this.semanticStyle("button", this.controller.state)
|
|
69
76
|
}, [this.controller.searchButtonStyle === "SEARCHONLY" ? createVNode(resolveComponent("el-button"), {
|
|
70
77
|
"onClick": this.onSearchButtonClick
|
|
71
78
|
}, _isSlot(_slot = ibiz.i18n.t("app.search")) ? _slot : {
|
package/es/util/index.mjs
CHANGED
|
@@ -21,5 +21,6 @@ export { splitPathToSegments, validateRouteSegments } from './user-route-util/us
|
|
|
21
21
|
export { PrintPreviewUtil } from './print-preview-util/print-preview-util.mjs';
|
|
22
22
|
export { useContextMenu } from './context-menu/context-menu.mjs';
|
|
23
23
|
export { QrcodeUtil } from './qrcode-util/qrcode-util.mjs';
|
|
24
|
+
export { getRelativePathWithoutRoot } from './path-util/path-util.mjs';
|
|
24
25
|
|
|
25
26
|
"use strict";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useSemanticNode } from '@ibiz-template/vue3-util';
|
|
1
2
|
import { GridRowState, ControlVO } from '@ibiz-template/runtime';
|
|
2
3
|
import { chunk } from 'lodash-es';
|
|
3
4
|
|
|
@@ -41,7 +42,38 @@ function usePagination(c) {
|
|
|
41
42
|
function onPageRefresh() {
|
|
42
43
|
c.load();
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
+
const { semanticClass, semanticStyle } = useSemanticNode(c);
|
|
46
|
+
const pageSemantic = {
|
|
47
|
+
refresh: {
|
|
48
|
+
class: semanticClass("pagination.refresh"),
|
|
49
|
+
style: semanticStyle("pagination.refresh")
|
|
50
|
+
},
|
|
51
|
+
description: {
|
|
52
|
+
class: semanticClass("pagination.description"),
|
|
53
|
+
style: semanticStyle("pagination.description")
|
|
54
|
+
},
|
|
55
|
+
item: {
|
|
56
|
+
class: semanticClass("pagination.item"),
|
|
57
|
+
style: semanticStyle("pagination.item")
|
|
58
|
+
},
|
|
59
|
+
prev: {
|
|
60
|
+
class: semanticClass("pagination.prev"),
|
|
61
|
+
style: semanticStyle("pagination.prev")
|
|
62
|
+
},
|
|
63
|
+
next: {
|
|
64
|
+
class: semanticClass("pagination.next"),
|
|
65
|
+
style: semanticStyle("pagination.next")
|
|
66
|
+
},
|
|
67
|
+
sizes: {
|
|
68
|
+
class: semanticClass("pagination.sizes"),
|
|
69
|
+
style: semanticStyle("pagination.sizes")
|
|
70
|
+
},
|
|
71
|
+
jump: {
|
|
72
|
+
class: semanticClass("pagination.jump"),
|
|
73
|
+
style: semanticStyle("pagination.jump")
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
return { pageSemantic, onPageChange, onPageSizeChange, onPageRefresh };
|
|
45
77
|
}
|
|
46
78
|
|
|
47
79
|
export { usePagination };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const getRelativePathWithoutRoot = (webkitRelativePath) => {
|
|
3
|
+
if (!webkitRelativePath) {
|
|
4
|
+
return "";
|
|
5
|
+
}
|
|
6
|
+
const pathParts = webkitRelativePath.split("/");
|
|
7
|
+
if (pathParts.length > 1) {
|
|
8
|
+
pathParts.shift();
|
|
9
|
+
return pathParts.join("/");
|
|
10
|
+
}
|
|
11
|
+
return webkitRelativePath;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { getRelativePathWithoutRoot };
|
|
@@ -33,6 +33,10 @@ const IBizMapChart = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
emit
|
|
34
34
|
}) {
|
|
35
35
|
const ns = vue3Util.useNamespace("map-chart");
|
|
36
|
+
const {
|
|
37
|
+
semanticClass,
|
|
38
|
+
semanticStyle
|
|
39
|
+
} = vue3Util.useSemanticNode(props.controller);
|
|
36
40
|
const options = vue.computed(() => {
|
|
37
41
|
return ramda.mergeDeepWithKey((_key, x, z) => {
|
|
38
42
|
return ramda.isNil(z) ? x : z;
|
|
@@ -199,6 +203,8 @@ const IBizMapChart = /* @__PURE__ */ vue.defineComponent({
|
|
|
199
203
|
ns,
|
|
200
204
|
chartRef,
|
|
201
205
|
historyNames,
|
|
206
|
+
semanticClass,
|
|
207
|
+
semanticStyle,
|
|
202
208
|
goBack
|
|
203
209
|
};
|
|
204
210
|
},
|
|
@@ -209,7 +215,8 @@ const IBizMapChart = /* @__PURE__ */ vue.defineComponent({
|
|
|
209
215
|
"class": this.ns.e("chart"),
|
|
210
216
|
"ref": "chartRef"
|
|
211
217
|
}, null), this.historyNames.length > 1 && vue.createVNode("div", {
|
|
212
|
-
"
|
|
218
|
+
"style": this.semanticStyle("goback"),
|
|
219
|
+
"class": [this.ns.e("goback"), this.semanticClass("goback")],
|
|
213
220
|
"onClick": () => {
|
|
214
221
|
this.goBack();
|
|
215
222
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-map-chart{position:relative;min-width:300px;min-height:300px}.ibiz-map-chart__chart{width:100%;height:100%}.ibiz-map-chart__goback{position:absolute;top:60px;right:0;width:
|
|
1
|
+
.ibiz-map-chart{--ibiz-control-map-goback-gap:6px;--ibiz-control-map-goback-size:100px;--ibiz-control-map-goback-text-color:var(--ibiz-color-link);--ibiz-control-map-goback-font-size:var(--ibiz-font-size-header-4);position:relative;min-width:300px;min-height:300px}.ibiz-map-chart__chart{width:100%;height:100%}.ibiz-map-chart__goback{position:absolute;top:60px;right:0;width:var(--ibiz-control-map-goback-size);height:var(--ibiz-control-map-goback-size);font-size:var(--ibiz-control-map-goback-font-size);color:var(--ibiz-control-map-goback-text-color);text-decoration:underline;letter-spacing:var(--ibiz-control-map-goback-gap);cursor:pointer}
|
|
@@ -33,6 +33,10 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
},
|
|
34
34
|
setup(props) {
|
|
35
35
|
const ns = vue3Util.useNamespace("map-chart-user");
|
|
36
|
+
const {
|
|
37
|
+
semanticClass,
|
|
38
|
+
semanticStyle
|
|
39
|
+
} = vue3Util.useSemanticNode(props.controller);
|
|
36
40
|
const c = props.controller;
|
|
37
41
|
let option = mapChartUser_util.defaultOpts;
|
|
38
42
|
const mapRef = vue.ref();
|
|
@@ -144,12 +148,14 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
148
|
}
|
|
145
149
|
};
|
|
146
150
|
return {
|
|
147
|
-
ns,
|
|
148
151
|
c,
|
|
152
|
+
ns,
|
|
149
153
|
mapRef,
|
|
154
|
+
isFull,
|
|
150
155
|
chartRef,
|
|
151
156
|
historyNames,
|
|
152
|
-
|
|
157
|
+
semanticClass,
|
|
158
|
+
semanticStyle,
|
|
153
159
|
onBack,
|
|
154
160
|
toggleFullScreen
|
|
155
161
|
};
|
|
@@ -163,8 +169,9 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
163
169
|
"ref": "mapRef"
|
|
164
170
|
}, [enabledFullScreen ? vue.createVNode(vue.resolveComponent("el-button"), {
|
|
165
171
|
"type": "info",
|
|
166
|
-
"class": this.ns.e("fullscreen"),
|
|
167
172
|
"onClick": this.toggleFullScreen,
|
|
173
|
+
"style": this.semanticStyle("fullscreen"),
|
|
174
|
+
"class": [this.ns.e("fullscreen"), this.semanticClass("fullscreen")],
|
|
168
175
|
"title": this.isFull ? ibiz.i18n.t("app.cancelFullscreen") : ibiz.i18n.t("app.fullscreen")
|
|
169
176
|
}, {
|
|
170
177
|
default: () => [vue.createVNode("ion-icon", {
|
|
@@ -174,7 +181,8 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
174
181
|
"class": this.ns.e("chart"),
|
|
175
182
|
"ref": "chartRef"
|
|
176
183
|
}, null), this.historyNames.length > 1 && vue.createVNode("div", {
|
|
177
|
-
"
|
|
184
|
+
"style": this.semanticStyle("goback"),
|
|
185
|
+
"class": [this.ns.e("goback"), this.semanticClass("goback")],
|
|
178
186
|
"onClick": () => {
|
|
179
187
|
this.onBack();
|
|
180
188
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-map-chart-user{position:relative;min-width:300px;min-height:300px}.ibiz-map-chart-user__chart{width:100%;height:100%}.ibiz-map-chart-user__goback{position:absolute;top:60px;right:0;width:
|
|
1
|
+
.ibiz-map-chart-user{--ibiz-control-map-goback-gap:6px;--ibiz-control-map-goback-size:100px;--ibiz-control-map-goback-text-color:var(--ibiz-color-link);--ibiz-control-map-goback-font-size:var(--ibiz-font-size-header-4);--ibiz-control-map-fullscreen-position:var(--ibiz-spacing-tight);position:relative;min-width:300px;min-height:300px}.ibiz-map-chart-user__chart{width:100%;height:100%}.ibiz-map-chart-user__goback{position:absolute;top:60px;right:0;width:var(--ibiz-control-map-goback-size);height:var(--ibiz-control-map-goback-size);font-size:var(--ibiz-control-map-goback-font-size);color:var(--ibiz-control-map-goback-text-color);text-decoration:underline;letter-spacing:var(--ibiz-control-map-goback-gap);cursor:pointer}.ibiz-map-chart-user__fullscreen{position:absolute;top:var(--ibiz-control-map-fullscreen-position);right:var(--ibiz-control-map-fullscreen-position);z-index:9}.ibiz-map-chart-user__popper{padding:var(--ibiz-spacing-tight);white-space:pre}
|
|
@@ -33,6 +33,39 @@ const IBizPagination = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
mode: {
|
|
34
34
|
type: String,
|
|
35
35
|
default: "default"
|
|
36
|
+
},
|
|
37
|
+
semantic: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => ({
|
|
40
|
+
refresh: {
|
|
41
|
+
class: "",
|
|
42
|
+
style: ""
|
|
43
|
+
},
|
|
44
|
+
description: {
|
|
45
|
+
class: "",
|
|
46
|
+
style: ""
|
|
47
|
+
},
|
|
48
|
+
item: {
|
|
49
|
+
class: "",
|
|
50
|
+
style: ""
|
|
51
|
+
},
|
|
52
|
+
prev: {
|
|
53
|
+
class: "",
|
|
54
|
+
style: ""
|
|
55
|
+
},
|
|
56
|
+
next: {
|
|
57
|
+
class: "",
|
|
58
|
+
style: ""
|
|
59
|
+
},
|
|
60
|
+
sizes: {
|
|
61
|
+
class: "",
|
|
62
|
+
style: ""
|
|
63
|
+
},
|
|
64
|
+
jump: {
|
|
65
|
+
class: "",
|
|
66
|
+
style: ""
|
|
67
|
+
}
|
|
68
|
+
})
|
|
36
69
|
}
|
|
37
70
|
},
|
|
38
71
|
emits: ["change", "pageSizeChange", "pageRefresh"],
|
|
@@ -110,7 +143,8 @@ const IBizPagination = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
143
|
onChange: this.inputChange
|
|
111
144
|
}), {
|
|
112
145
|
default: () => [vue.createVNode("span", {
|
|
113
|
-
"class": this.ns.b("btn")
|
|
146
|
+
"class": [this.ns.b("btn"), this.semantic.refresh.class],
|
|
147
|
+
"style": this.semantic.refresh.style
|
|
114
148
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
115
149
|
"title": core.showTitle(ibiz.i18n.t("app.refresh")),
|
|
116
150
|
"onClick": this.pageRefresh
|
|
@@ -118,7 +152,13 @@ const IBizPagination = /* @__PURE__ */ vue.defineComponent({
|
|
|
118
152
|
default: () => [vue.createVNode("ion-icon", {
|
|
119
153
|
"name": "refresh-outline"
|
|
120
154
|
}, null)]
|
|
121
|
-
})]), ramda.isNil(this.totalPages) || this.calcTotalPages === this.totalPages ? vue.createVNode("span",
|
|
155
|
+
})]), ramda.isNil(this.totalPages) || this.calcTotalPages === this.totalPages ? vue.createVNode("span", {
|
|
156
|
+
"class": [this.ns.b("desc"), this.semantic.description.class],
|
|
157
|
+
"style": this.semantic.description.style
|
|
158
|
+
}, [ibiz.i18n.t("component.pagination.display"), vue.createTextVNode("\xA0"), this.start, vue.createTextVNode("\xA0-\xA0"), this.end, vue.createTextVNode("\xA0"), ibiz.i18n.t("component.pagination.piece"), vue.createTextVNode("\uFF0C")]) : null, vue.createVNode("span", {
|
|
159
|
+
"class": [this.ns.b("desc"), this.semantic.description.class],
|
|
160
|
+
"style": this.semantic.description.style
|
|
161
|
+
}, [ibiz.i18n.t("component.pagination.total"), vue.createTextVNode("\xA0"), this.total, vue.createTextVNode("\xA0"), ibiz.i18n.t("component.pagination.pieceData")])]
|
|
122
162
|
})]);
|
|
123
163
|
}
|
|
124
164
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-pagination{--ibiz-pagination-
|
|
1
|
+
.ibiz-pagination{--ibiz-pagination-font-size:var(--ibiz-font-size-regular);--ibiz-pagination-font-weight:var(--ibiz-font-weight-regular);--ibiz-pagination-color:var(--ibiz-color-text-2);--ibiz-pagination-height:50px;--ibiz-pagination-padding:0 var(--ibiz-spacing-base-tight);--ibiz-pagination-item-color:var(--ibiz-pagination-color);--ibiz-pagination-item-active-color:var(--ibiz-color-primary-text);--ibiz-pagination-item-active-bg-color:var(--ibiz-color-primary);--ibiz-pagination-item-gap:var(--ibiz-spacing-tight);--ibiz-pagination-item-border:1px solid var(--ibiz-color-border);--ibiz-pagination-item-icon-size:var(--ibiz-width-icon-medium);display:flex;justify-content:flex-end;height:var(--ibiz-pagination-height);padding:var(--ibiz-pagination-padding)}.ibiz-pagination .el-pagination{overflow:auto;font-size:var(--ibiz-pagination-font-size);font-weight:var(--ibiz-pagination-font-weight);color:var(--ibiz-pagination-color)}.ibiz-pagination .el-pagination .ibiz-pagination-btn{margin-right:var(--ibiz-pagination-item-gap)}.ibiz-pagination .el-pagination .ibiz-pagination-btn .el-button{color:var(--ibiz-pagination-item-color);border:var(--ibiz-pagination-item-border)}.ibiz-pagination .el-pagination .ibiz-pagination-btn .el-button ion-icon{width:var(--ibiz-pagination-item-icon-size);height:var(--ibiz-pagination-item-icon-size)}.ibiz-pagination .el-pagination .btn-next,.ibiz-pagination .el-pagination .btn-prev{border:var(--ibiz-pagination-item-border)}.ibiz-pagination .el-pagination .el-pager li{color:var(--ibiz-pagination-item-color);border:var(--ibiz-pagination-item-border)}.ibiz-pagination .el-pagination .el-pager li.is-active{color:var(--ibiz-pagination-item-active-color);background-color:var(--ibiz-pagination-item-active-bg-color)}.ibiz-pagination .el-pagination .el-pagination__sizes{margin-left:var(--ibiz-pagination-item-gap);border:var(--ibiz-pagination-item-border)}.ibiz-pagination .el-pagination .el-pagination__sizes .el-select .el-input__wrapper{background-color:transparent}.ibiz-pagination .el-pagination .el-pagination__sizes .el-input__inner{color:var(--ibiz-pagination-item-color)}.ibiz-pagination .el-pagination .el-pagination__jump{color:var(--ibiz-pagination-item-color)}.ibiz-pagination .el-pagination .el-pagination__jump .el-pagination__editor{border:var(--ibiz-pagination-item-border)}.ibiz-pagination .el-pagination .el-pagination__jump .el-pagination__editor .el-input__wrapper{background-color:transparent}.ibiz-pagination-simple .el-pager .number{display:none}.ibiz-pagination-simple .el-pager .number.is-active{display:block}.ibiz-pagination-simple .el-pager .more{display:none}
|
|
@@ -271,6 +271,7 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
271
271
|
}
|
|
272
272
|
if (this.rawItemType === "DIVIDER") {
|
|
273
273
|
return vue.createVNode(vue.resolveComponent("el-divider"), {
|
|
274
|
+
"class": this.ns.e("divider"),
|
|
274
275
|
"content-position": this.dividerParams.contentPosition
|
|
275
276
|
}, {
|
|
276
277
|
default: () => [vue.createVNode("span", {
|
|
@@ -280,6 +281,7 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
280
281
|
}
|
|
281
282
|
if (this.rawItemType === "INFO" || this.rawItemType === "WARNING" || this.rawItemType === "ERROR") {
|
|
282
283
|
return vue.createVNode(vue.resolveComponent("el-alert"), {
|
|
284
|
+
"class": this.ns.e("alert"),
|
|
283
285
|
"title": this.alertParams.title,
|
|
284
286
|
"type": this.alertParams.type,
|
|
285
287
|
"show-icon": this.alertParams.showIcon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-rawitem{width:100%;height:100%;font-size:var(--ibiz-font-size
|
|
1
|
+
.ibiz-rawitem{--ibiz-rawitem-text-color:var(--ibiz-editor-default-text-color);--ibiz-rawitem-font-size:var(--ibiz-font-size-regular);--ibiz-rawitem-alert-margin:var(--ibiz-spacing-extra-tight) 0;--ibiz-rawitem-divider-margin:var(--ibiz-spacing-loose) 0;width:100%;height:100%;font-size:var(--ibiz-rawitem-font-size);color:var(--ibiz-rawitem-text-color)}.ibiz-rawitem .ibiz-icon{width:100%;height:100%}.ibiz-rawitem .el-alert{margin:var(--ibiz-rawitem-alert-margin)}.ibiz-rawitem .el-divider--horizontal{margin:var(--ibiz-rawitem-divider-margin)}
|
|
@@ -11,6 +11,13 @@ const IBizSortBar = /* @__PURE__ */ vue.defineComponent({
|
|
|
11
11
|
sortItems: {
|
|
12
12
|
type: Array,
|
|
13
13
|
required: true
|
|
14
|
+
},
|
|
15
|
+
semantic: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({
|
|
18
|
+
class: "",
|
|
19
|
+
style: ""
|
|
20
|
+
})
|
|
14
21
|
}
|
|
15
22
|
},
|
|
16
23
|
emits: {
|
|
@@ -44,7 +51,8 @@ const IBizSortBar = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
51
|
}, [this.sortItems.length > 0 && this.sortItems.map((item) => {
|
|
45
52
|
return vue.createVNode("div", {
|
|
46
53
|
"onClick": () => this.onItemClick(item),
|
|
47
|
-
"class": [this.ns.b("item"), item.order === "asc" ? this.ns.bm("item", "asc") : "", item.order === "desc" ? this.ns.bm("item", "desc") : ""]
|
|
54
|
+
"class": [this.ns.b("item"), item.order === "asc" ? this.ns.bm("item", "asc") : "", item.order === "desc" ? this.ns.bm("item", "desc") : "", this.semantic.class],
|
|
55
|
+
"style": this.semantic.style
|
|
48
56
|
}, [item.caption, vue.createVNode("div", {
|
|
49
57
|
"class": this.ns.b("icon-wrapper")
|
|
50
58
|
}, [vue.createVNode("i", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-sort-bar{--ibiz-sort-bar-icon-color:var(--ibiz-color-disabled-text);--ibiz-sort-bar-border-
|
|
1
|
+
.ibiz-sort-bar{--ibiz-sort-bar-border-radius:var(--ibiz-border-radius-small);--ibiz-sort-bar-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);--ibiz-sort-bar-item-text-color:var(--ibiz-color-text-2);--ibiz-sort-bar-item-font-size:var(--ibiz-font-size-regular);--ibiz-sort-bar-item-font-weight:var(--ibiz-font-weight-regular);--ibiz-sort-bar-item-bg-color:var(--ibiz-color-bg-1);--ibiz-sort-bar-item-active-color:var(--ibiz-color-primary);--ibiz-sort-bar-item-icon-color:var(--ibiz-color-disabled-text);--ibiz-sort-bar-item-border-color:var(--ibiz-control-dataview-border-color);--ibiz-sort-bar-item-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);display:flex;align-items:center;justify-content:flex-start;padding:var(--ibiz-sort-bar-padding)}.ibiz-sort-bar-item{padding:var(--ibiz-sort-bar-item-padding);margin-right:-1px;font-size:var(--ibiz-sort-bar-item-font-size);font-weight:var(--ibiz-sort-bar-item-font-weight);line-height:1;color:var(--ibiz-sort-bar-item-text-color);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--ibiz-sort-bar-item-bg-color);border:1px solid var(--ibiz-sort-bar-item-border-color)}.ibiz-sort-bar-item:first-child{border-top-left-radius:var(--ibiz-sort-bar-border-radius);border-bottom-left-radius:var(--ibiz-sort-bar-border-radius)}.ibiz-sort-bar-item:last-child{border-top-right-radius:var(--ibiz-sort-bar-border-radius);border-bottom-right-radius:var(--ibiz-sort-bar-border-radius)}.ibiz-sort-bar-item--asc .ibiz-sort-bar-icon-wrapper__icon-asc{border-bottom-color:var(--ibiz-sort-bar-item-active-color)}.ibiz-sort-bar-item--desc .ibiz-sort-bar-icon-wrapper__icon-desc{border-top-color:var(--ibiz-sort-bar-item-active-color)}.ibiz-sort-bar-icon-wrapper{position:relative;display:inline-block;width:10px;height:14px;margin-left:var(--ibiz-spacing-tight);vertical-align:middle}.ibiz-sort-bar-icon-wrapper__icon-asc{position:absolute;top:-5px;left:0;width:0;height:0;border:solid 5px transparent;border-bottom-color:var(--ibiz-sort-bar-item-icon-color)}.ibiz-sort-bar-icon-wrapper__icon-desc{position:absolute;bottom:-3px;left:0;width:0;height:0;border:solid 5px transparent;border-top-color:var(--ibiz-sort-bar-item-icon-color)}
|