@ibiz-template/vue3-components 0.7.41-alpha.111 → 0.7.41-alpha.113
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/{index-BP7a4gcG.js → index-CkG9L_La.js} +4 -4
- package/dist/{index.es-Ur-QLCI4.js → index.es-BU8Fy5we.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-nwkjjlMK.js +1 -0
- package/dist/map-chart-user-BqadFpkw.js +1 -0
- package/dist/{wang-editor-lUuJmqAh.js → wang-editor-9zdglekK.js} +1 -1
- package/dist/{xlsx-util-C1ySj_kQ.js → xlsx-util-DrUAhpzt.js} +1 -1
- package/es/common/map-chart/map-chart.mjs +2 -9
- package/es/common/map-chart-user/map-chart-user.mjs +3 -11
- package/es/control/calendar/calendar.mjs +17 -4
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +4 -2
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +4 -3
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +1 -0
- package/es/control/grid/grid/grid-control.util.mjs +14 -1
- package/es/control/grid/grid/grid.mjs +5 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/map/map.mjs +33 -7
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -2
- package/es/editor/check-box-list/checkbox-list-editor.controller.mjs +11 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +9 -4
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +5 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +18 -16
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +15 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +19 -4
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.mjs +17 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +19 -4
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +24 -7
- package/es/editor/list-box/list-box-editor.controller.mjs +11 -0
- package/es/editor/list-box/list-box-picker-editor.controller.mjs +11 -0
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -0
- package/es/editor/radio-button-list/radio-button-list.controller.mjs +11 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/web-app/adaptive-screen-width.mjs +5 -5
- package/lib/common/map-chart/map-chart.cjs +1 -8
- package/lib/common/map-chart-user/map-chart-user.cjs +2 -10
- package/lib/control/calendar/calendar.cjs +16 -3
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +4 -2
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +4 -3
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +1 -0
- package/lib/control/grid/grid/grid-control.util.cjs +14 -1
- package/lib/control/grid/grid/grid.cjs +5 -2
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/map/map.cjs +32 -6
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/lib/editor/check-box-list/checkbox-list-editor.controller.cjs +11 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +9 -4
- package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +5 -3
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +18 -16
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +15 -5
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +19 -4
- package/lib/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.cjs +17 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +19 -4
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +24 -7
- package/lib/editor/list-box/list-box-editor.controller.cjs +11 -0
- package/lib/editor/list-box/list-box-picker-editor.controller.cjs +11 -0
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +7 -0
- package/lib/editor/radio-button-list/radio-button-list.controller.cjs +11 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/web-app/adaptive-screen-width.cjs +5 -5
- package/package.json +7 -7
- package/src/common/map-chart/map-chart.tsx +3 -5
- package/src/common/map-chart-user/map-chart-user.tsx +3 -8
- package/src/control/calendar/calendar.tsx +27 -1
- package/src/control/calendar/components/calendar-user/calendar-user.tsx +8 -2
- package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +7 -3
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.tsx +1 -0
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.tsx +1 -0
- package/src/control/grid/grid/grid-control.util.ts +20 -0
- package/src/control/grid/grid/grid.tsx +3 -0
- package/src/control/grid/grid-column/grid-field-column/grid-field-column.scss +3 -3
- package/src/control/map/map.tsx +44 -4
- package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.scss +12 -1
- package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.tsx +2 -1
- package/src/editor/check-box-list/checkbox-list-editor.controller.ts +11 -0
- package/src/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.tsx +28 -6
- package/src/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.tsx +10 -2
- package/src/editor/data-picker/ibiz-mpicker/ibiz-mpicker.tsx +2 -1
- package/src/editor/data-picker/ibiz-picker/ibiz-picker.tsx +2 -1
- package/src/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx +2 -1
- package/src/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.tsx +2 -5
- package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +32 -15
- package/src/editor/dropdown-list/dropdown-list-editor.controller.ts +12 -2
- package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +34 -4
- package/src/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.tsx +28 -1
- package/src/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.tsx +31 -4
- package/src/editor/list-box/ibiz-list-box/ibiz-list-box.tsx +45 -9
- package/src/editor/list-box/list-box-editor.controller.ts +11 -0
- package/src/editor/list-box/list-box-picker-editor.controller.ts +11 -0
- package/src/editor/radio-button-list/ibiz-radio/ibiz-radio.tsx +13 -0
- package/src/editor/radio-button-list/radio-button-list.controller.ts +11 -0
- package/src/panel-component/auth-userinfo/auth-userinfo.scss +1 -1
- package/src/web-app/adaptive-screen-width.ts +12 -6
- package/dist/map-chart-DbBbP4qh.js +0 -1
- package/dist/map-chart-user-CfTAGaU5.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.113_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.113_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -176,7 +176,8 @@ const CalendarUser2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
176
176
|
"trigger": "click",
|
|
177
177
|
"persistent": false,
|
|
178
178
|
"disabled": !marks.length,
|
|
179
|
-
"
|
|
179
|
+
"popper-style": this.semanticStyle("popup"),
|
|
180
|
+
"popper-class": [this.ns.e("popover"), this.semanticClass("popup")]
|
|
180
181
|
}, {
|
|
181
182
|
default: () => {
|
|
182
183
|
return vue.createVNode("div", {
|
|
@@ -201,12 +202,12 @@ const CalendarUser2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
201
202
|
}, [marks.map((mark) => {
|
|
202
203
|
if (mark.isShow)
|
|
203
204
|
return vue.createVNode("div", {
|
|
204
|
-
"class": [this.ns.e("mark"), this.ns.e("item"), this.semanticClass("
|
|
205
|
+
"class": [this.ns.e("mark"), this.ns.e("item"), this.semanticClass("mark", {
|
|
205
206
|
item: mark
|
|
206
207
|
})],
|
|
207
208
|
"style": {
|
|
208
209
|
backgroundColor: mark.bkcolor,
|
|
209
|
-
...this.semanticStyle("
|
|
210
|
+
...this.semanticStyle("mark", {
|
|
210
211
|
item: mark
|
|
211
212
|
})
|
|
212
213
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -138,6 +138,7 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
138
138
|
if (ibiz.config.form.mdCtrlConfirmBeforeRemove) {
|
|
139
139
|
return vue.createVNode(vue.resolveComponent("el-popconfirm"), {
|
|
140
140
|
"title": core.showTitle(ibiz.i18n.t("control.form.repeaterGrid.promptInformation")),
|
|
141
|
+
"popper-class": ["el-popover", ns2.b("popper")],
|
|
141
142
|
"confirm-button-text": ibiz.i18n.t("app.confirm"),
|
|
142
143
|
"cancel-button-text": ibiz.i18n.t("app.cancel"),
|
|
143
144
|
"onConfirm": () => props.controller.remove(index)
|
|
@@ -126,6 +126,7 @@ const RepeaterGrid2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
126
|
const renderRemoveBtn = (index) => {
|
|
127
127
|
if (ibiz.config.form.mdCtrlConfirmBeforeRemove) {
|
|
128
128
|
return vue.createVNode(vue.resolveComponent("el-popconfirm"), {
|
|
129
|
+
"popper-class": ["el-popover", ns2.b("popper")],
|
|
129
130
|
"title": ibiz.i18n.t("control.form.repeaterGrid.promptInformation"),
|
|
130
131
|
"confirm-button-text": ibiz.i18n.t("app.confirm"),
|
|
131
132
|
"cancel-button-text": ibiz.i18n.t("app.cancel"),
|
|
@@ -278,6 +278,11 @@ function useITableEvent(c) {
|
|
|
278
278
|
function onSelectionChange(selection) {
|
|
279
279
|
if (!forbidChange && !c.state.isLoading)
|
|
280
280
|
c.setSelection(selection);
|
|
281
|
+
if (c.state.selectedData.length === c.state.items.length && c.state.items.length !== 0) {
|
|
282
|
+
c.state.isSelectedAll = true;
|
|
283
|
+
} else {
|
|
284
|
+
c.state.isSelectedAll = false;
|
|
285
|
+
}
|
|
281
286
|
}
|
|
282
287
|
const elSelection = vue.computed(() => {
|
|
283
288
|
const items = [];
|
|
@@ -416,6 +421,13 @@ function useITableEvent(c) {
|
|
|
416
421
|
}
|
|
417
422
|
}
|
|
418
423
|
);
|
|
424
|
+
function onSelectAll(selections) {
|
|
425
|
+
if (selections.length === c.state.items.length) {
|
|
426
|
+
c.state.isSelectedAll = true;
|
|
427
|
+
} else {
|
|
428
|
+
c.state.isSelectedAll = false;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
419
431
|
return {
|
|
420
432
|
tableRef,
|
|
421
433
|
onRowClick,
|
|
@@ -426,7 +438,8 @@ function useITableEvent(c) {
|
|
|
426
438
|
handleHeaderCellClassName,
|
|
427
439
|
cleanClick,
|
|
428
440
|
cleanEnter,
|
|
429
|
-
cleanTab
|
|
441
|
+
cleanTab,
|
|
442
|
+
onSelectAll
|
|
430
443
|
};
|
|
431
444
|
}
|
|
432
445
|
function useAppGridPagination(c) {
|
|
@@ -346,7 +346,8 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
346
346
|
handleHeaderCellClassName,
|
|
347
347
|
cleanClick = core.NOOP,
|
|
348
348
|
cleanEnter = core.NOOP,
|
|
349
|
-
cleanTab = core.NOOP
|
|
349
|
+
cleanTab = core.NOOP,
|
|
350
|
+
onSelectAll
|
|
350
351
|
} = gridControl_util.useITableEvent(c);
|
|
351
352
|
const {
|
|
352
353
|
pageSemantic,
|
|
@@ -581,7 +582,8 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
581
582
|
handleRowClassName,
|
|
582
583
|
renderBatchToolBar,
|
|
583
584
|
renderDragIconColumn,
|
|
584
|
-
handleHeaderCellClassName
|
|
585
|
+
handleHeaderCellClassName,
|
|
586
|
+
onSelectAll
|
|
585
587
|
};
|
|
586
588
|
},
|
|
587
589
|
render() {
|
|
@@ -612,6 +614,7 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
612
614
|
"default-sort": this.defaultSort,
|
|
613
615
|
"show-summary": this.c.enableAgg,
|
|
614
616
|
"onSortChange": this.onSortChange,
|
|
617
|
+
"onSelectAll": this.onSelectAll,
|
|
615
618
|
"onRowDblclick": this.onDbRowClick,
|
|
616
619
|
"summary-method": this.summaryMethod,
|
|
617
620
|
"onHeaderDragend": this.headerDragend,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-grid-field-column{--ibiz-grid-field-column-cell-padding:var(--ibiz-control-grid-body-cell-padding);--ibiz-grid-field-column-clickable-text-color:var(--ibiz-control-grid-body-cell-link-color);--ibiz-grid-field-column-clickable-hover-text-color:var(--ibiz-control-grid-body-cell-link-hover-color);--ibiz-grid-field-column-color:var(--ibiz-control-grid-body-cell-text-color);--ibiz-grid-field-column-font-size:var(--ibiz-control-grid-body-cell-font-size);--ibiz-grid-field-column-font-weight:var(--ibiz-control-grid-body-cell-font-weight);display:inline-flex;align-items:center;justify-content:var(--ibiz-grid-column-justify-content);width:100%;height:100%;padding:var(--ibiz-grid-field-column-cell-padding)}.ibiz-grid-field-column__text{font-size:var(--ibiz-grid-field-column-font-size);font-weight:var(--ibiz-grid-field-column-font-weight);color:var(--ibiz-grid-field-column-color)}.ibiz-grid-field-column--clickable .ibiz-grid-field-column__text{color:var(--ibiz-grid-field-column-clickable-text-color)}.ibiz-grid-field-column--clickable .ibiz-grid-field-column__text:hover{color:var(--ibiz-grid-field-column-clickable-hover-text-color)}.ibiz-grid-field-column--clickable{cursor:pointer}.ibiz-grid-field-column--ellipsis{overflow:hidden}.ibiz-grid-field-column--ellipsis .ibiz-grid-field-column-text-container{min-width:0}.ibiz-grid-field-column--ellipsis .ibiz-grid-field-column-toolbar-container{flex-shrink:0}.ibiz-grid-field-column--ellipsis .ibiz-grid-field-column__script{max-height:calc(var(--ibiz-control-grid-
|
|
1
|
+
.ibiz-grid-field-column{--ibiz-grid-field-column-cell-padding:var(--ibiz-control-grid-body-cell-padding);--ibiz-grid-field-column-clickable-text-color:var(--ibiz-control-grid-body-cell-link-color);--ibiz-grid-field-column-clickable-hover-text-color:var(--ibiz-control-grid-body-cell-link-hover-color);--ibiz-grid-field-column-color:var(--ibiz-control-grid-body-cell-text-color);--ibiz-grid-field-column-font-size:var(--ibiz-control-grid-body-cell-font-size);--ibiz-grid-field-column-font-weight:var(--ibiz-control-grid-body-cell-font-weight);display:inline-flex;align-items:center;justify-content:var(--ibiz-grid-column-justify-content);width:100%;height:100%;padding:var(--ibiz-grid-field-column-cell-padding)}.ibiz-grid-field-column__text{font-size:var(--ibiz-grid-field-column-font-size);font-weight:var(--ibiz-grid-field-column-font-weight);color:var(--ibiz-grid-field-column-color)}.ibiz-grid-field-column--clickable .ibiz-grid-field-column__text{color:var(--ibiz-grid-field-column-clickable-text-color)}.ibiz-grid-field-column--clickable .ibiz-grid-field-column__text:hover{color:var(--ibiz-grid-field-column-clickable-hover-text-color)}.ibiz-grid-field-column--clickable{cursor:pointer}.ibiz-grid-field-column--ellipsis{overflow:hidden}.ibiz-grid-field-column--ellipsis .ibiz-grid-field-column-text-container{min-width:0}.ibiz-grid-field-column--ellipsis .ibiz-grid-field-column-toolbar-container{flex-shrink:0}.ibiz-grid-field-column--ellipsis .ibiz-grid-field-column__script{max-height:calc(var(--ibiz-control-grid-body-row-height) - 2 * var(--ibiz-grid-field-column-cell-padding));line-height:calc(var(--ibiz-control-grid-body-row-height) - 2 * var(--ibiz-grid-field-column-cell-padding))}.ibiz-grid-field-column--ellipsis .ibiz-grid-field-column__script *{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-grid-field-column--ellipsis span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-grid-field-column--wrap{word-break:break-word;white-space:pre-wrap}.ibiz-grid-field-column.is-has-action{justify-content:space-between}.ibiz-grid-field-column-text-container{display:inline-flex;flex-grow:1;align-items:center;justify-content:var(--ibiz-grid-column-justify-content);height:100%}.ibiz-grid-field-column-toolbar-container .ibiz-action-toolbar__item:not(.ibiz-action-toolbar__item--level-250){display:none}.ibiz-grid-field-column-toolbar-container .ibiz-action-toolbar__separator{display:none}.ibiz-grid-field-column-toolbar-container .ibiz-action-toolbar__item.is-group{display:inline-flex;opacity:0}.el-table .el-table__body-wrapper tr:hover .ibiz-action-toolbar__item{display:inline-flex;opacity:1}.el-table .el-table__body-wrapper tr:hover .ibiz-action-toolbar__separator{display:inline-flex;opacity:1}.el-table .el-table__body-wrapper tr .ibiz-action-toolbar__item.is-expand{display:inline-flex;opacity:1}
|
package/lib/control/map/map.cjs
CHANGED
|
@@ -71,6 +71,32 @@ const MapControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
71
71
|
semanticClass,
|
|
72
72
|
semanticStyle
|
|
73
73
|
} = vue3Util.useSemanticNode(c);
|
|
74
|
+
const childClass = [{
|
|
75
|
+
class: semanticClass("editor.content"),
|
|
76
|
+
selector: ".ibiz-control-map__map"
|
|
77
|
+
}, {
|
|
78
|
+
class: semanticClass("editor.goback"),
|
|
79
|
+
selector: ".ibiz-map-chart-user__goback"
|
|
80
|
+
}, {
|
|
81
|
+
class: semanticClass("editor.goback"),
|
|
82
|
+
selector: ".ibiz-map-chart__goback"
|
|
83
|
+
}, {
|
|
84
|
+
class: semanticClass("editor.fullscreen"),
|
|
85
|
+
selector: ".ibiz-map-chart-user__fullscreen"
|
|
86
|
+
}];
|
|
87
|
+
const childStyle = [{
|
|
88
|
+
style: semanticStyle("editor.content"),
|
|
89
|
+
selector: ".ibiz-control-map__map"
|
|
90
|
+
}, {
|
|
91
|
+
style: semanticStyle("editor.goback"),
|
|
92
|
+
selector: ".ibiz-map-chart-user__goback"
|
|
93
|
+
}, {
|
|
94
|
+
style: semanticStyle("editor.goback"),
|
|
95
|
+
selector: ".ibiz-map-chart__goback"
|
|
96
|
+
}, {
|
|
97
|
+
style: semanticStyle("editor.fullscreen"),
|
|
98
|
+
selector: ".ibiz-map-chart-user__fullscreen"
|
|
99
|
+
}];
|
|
74
100
|
const mapOpts = vue.computed(() => {
|
|
75
101
|
return {
|
|
76
102
|
strAreaCode: c.state.strAreaCode,
|
|
@@ -84,6 +110,8 @@ const MapControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
84
110
|
mapRef,
|
|
85
111
|
mapOpts,
|
|
86
112
|
mapStyle,
|
|
113
|
+
childClass,
|
|
114
|
+
childStyle,
|
|
87
115
|
semanticClass,
|
|
88
116
|
semanticStyle
|
|
89
117
|
};
|
|
@@ -101,15 +129,13 @@ const MapControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
129
|
"options": this.mapOpts,
|
|
102
130
|
"areaData": state.areaData,
|
|
103
131
|
"pointData": state.pointData,
|
|
104
|
-
"
|
|
105
|
-
"class": [this.ns.e("map"), this.semanticClass("content")]
|
|
132
|
+
"class": this.ns.e("map")
|
|
106
133
|
}), null) : vue.createVNode(vue.resolveComponent("iBizMapChart"), vue.mergeProps(this.$attrs, {
|
|
107
134
|
"controller": this.c,
|
|
108
135
|
"options": this.mapOpts,
|
|
109
136
|
"areaData": state.areaData,
|
|
110
137
|
"pointData": state.pointData,
|
|
111
|
-
"
|
|
112
|
-
"class": [this.ns.e("map"), this.semanticClass("content")],
|
|
138
|
+
"class": this.ns.e("map"),
|
|
113
139
|
"onPointClick": (e) => {
|
|
114
140
|
this.c.onPointClick(e);
|
|
115
141
|
},
|
|
@@ -121,7 +147,7 @@ const MapControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
121
147
|
return vue.createVNode(vue.resolveComponent("iBizControlNavigation"), {
|
|
122
148
|
"controller": this.c
|
|
123
149
|
}, {
|
|
124
|
-
default: () => [vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
150
|
+
default: () => [vue.withDirectives(vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
125
151
|
"controller": this.c,
|
|
126
152
|
"class": this.semanticClass("root"),
|
|
127
153
|
"style": this.semanticStyle("root")
|
|
@@ -137,7 +163,7 @@ const MapControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
137
163
|
"name": "eye-off-outline",
|
|
138
164
|
"onClick": () => this.c.onShowNavViewChange()
|
|
139
165
|
}, null) : null]
|
|
140
|
-
})]
|
|
166
|
+
}), [[vue.resolveDirective("child-class"), this.childClass], [vue.resolveDirective("child-style"), this.childStyle]])]
|
|
141
167
|
});
|
|
142
168
|
}
|
|
143
169
|
});
|
|
@@ -200,7 +200,7 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
|
|
|
200
200
|
state: c.groupActionState[detail.id]
|
|
201
201
|
};
|
|
202
202
|
return vue.createVNode("div", {
|
|
203
|
-
"class": [ns.e("action-item"), ns.be("popper", "
|
|
203
|
+
"class": [ns.e("action-item"), ns.be("popper", "action"), semanticClass("editor.popup.action", semanticParams), ns.is("disabled", c.groupActionState[detail.id].disabled)],
|
|
204
204
|
"style": semanticStyle("editor.popup.action", semanticParams),
|
|
205
205
|
"onClick": (event) => c.onActionClick(detail, props.data, event),
|
|
206
206
|
"title": core.showTitle(detail.tooltip)
|
|
@@ -209,7 +209,7 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
|
|
|
209
209
|
"class": [ns.em("action-item", "icon"), semanticClass("editor.popup.action.icon", semanticParams)],
|
|
210
210
|
"style": semanticStyle("editor.popup.action.icon", semanticParams)
|
|
211
211
|
}, null), vue.createVNode("span", {
|
|
212
|
-
"class": [ns.em("action-item", "caption"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
212
|
+
"class": [ns.em("action-item", "label"), ns.em("action-item", "caption"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
213
213
|
"style": semanticStyle("editor.popup.action.label", semanticParams)
|
|
214
214
|
}, [detail.showCaption ? detail.caption : ""])]);
|
|
215
215
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-autocomplete{--ibiz-autocomplete-font-size:var(--ibiz-form-item-font-size);--ibiz-autocomplete-text-color:var(--ibiz-form-item-text-color);--ibiz-autocomplete-line-height:var(--ibiz-form-item-line-height);--ibiz-autocomplete-empty-bg-color:var(--ibiz-color-bg-3);--ibiz-autocomplete-readonly-color:var(--ibiz-form-item-readonly-color);--ibiz-autocomplete-hover-edit-padding:var(--ibiz-form-item-hover-edit-padding);--ibiz-autocomplete-action-text-color:var(--ibiz-color-link);width:100%}.ibiz-autocomplete__transfer-item.is-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-autocomplete__action-item{color:var(--ibiz-autocomplete-action-text-color)
|
|
1
|
+
.ibiz-autocomplete{--ibiz-autocomplete-font-size:var(--ibiz-form-item-font-size);--ibiz-autocomplete-text-color:var(--ibiz-form-item-text-color);--ibiz-autocomplete-line-height:var(--ibiz-form-item-line-height);--ibiz-autocomplete-empty-bg-color:var(--ibiz-color-bg-3);--ibiz-autocomplete-readonly-color:var(--ibiz-form-item-readonly-color);--ibiz-autocomplete-disabled-color:var(--ibiz-form-item-disabled-color);--ibiz-autocomplete-hover-edit-padding:var(--ibiz-form-item-hover-edit-padding);--ibiz-autocomplete-action-text-color:var(--ibiz-color-link);width:100%}.ibiz-autocomplete__transfer-item.is-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-autocomplete__action-item{display:flex;align-items:center;justify-content:center;color:var(--ibiz-autocomplete-action-text-color)}.ibiz-autocomplete__action-item--icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-autocomplete__action-item.is-disabled{color:var(--ibiz-autocomplete-disabled-color);cursor:not-allowed}.ibiz-autocomplete__empty{padding:0;--ibiz-no-data-min-height:100px;--el-empty-image-width:100px}.ibiz-autocomplete__suffix{cursor:pointer;visibility:inherit;transition:var(--el-transition-duration);transform:rotate(0)}.ibiz-autocomplete__suffix.is-reverse{transform:rotate(-180deg)}.ibiz-autocomplete__transfer{--ibiz-autocomplete-font-size:var(--ibiz-form-item-font-size);--ibiz-autocomplete-text-color:var(--ibiz-form-item-text-color);--ibiz-autocomplete-line-height:var(--ibiz-form-item-line-height);--ibiz-autocomplete-empty-bg-color:var(--ibiz-color-bg-3);--ibiz-autocomplete-readonly-color:var(--ibiz-form-item-readonly-color);--ibiz-autocomplete-disabled-color:var(--ibiz-form-item-disabled-color);--ibiz-autocomplete-hover-edit-padding:var(--ibiz-form-item-hover-edit-padding);--ibiz-autocomplete-action-text-color:var(--ibiz-color-link)}.ibiz-autocomplete__transfer.is-empty .el-autocomplete-suggestion li{padding:0}.ibiz-autocomplete__transfer.is-empty .ibiz-no-data{background-color:var(--ibiz-autocomplete-empty-bg-color)}.ibiz-autocomplete .ibiz-autocomplete-input{width:100%}.ibiz-autocomplete--readonly{font-size:var(--ibiz-autocomplete-font-size);line-height:var(--ibiz-autocomplete-line-height);color:var(--ibiz-autocomplete-readonly-color)}.ibiz-autocomplete .el-autocomplete{vertical-align:middle}.ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default:hover .ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default:hover .ibiz-autocomplete-input{display:block}.ibiz-form-item .ibiz-autocomplete.is-show-default .ibiz-autocomplete-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-autocomplete-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-autocomplete-font-size);line-height:var(--ibiz-autocomplete-line-height);color:var(--ibiz-autocomplete-text-color)}.ibiz-form-item .ibiz-autocomplete.is-show-default .ibiz-autocomplete-input{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default.is-editable .ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default.is-editable .ibiz-autocomplete-input{display:block}
|
|
@@ -26,9 +26,14 @@ class CheckBoxListEditorController extends runtime.CodeListEditorController {
|
|
|
26
26
|
* @type {(number | undefined)}
|
|
27
27
|
*/
|
|
28
28
|
__publicField(this, "rowNumber");
|
|
29
|
+
/**
|
|
30
|
+
* @description 自动选中第一个
|
|
31
|
+
* @memberof CheckBoxListEditorController
|
|
32
|
+
*/
|
|
33
|
+
__publicField(this, "autoSelectFirstOption", false);
|
|
29
34
|
}
|
|
30
35
|
async onInit() {
|
|
31
|
-
var _a, _b;
|
|
36
|
+
var _a, _b, _c;
|
|
32
37
|
super.onInit();
|
|
33
38
|
if (this.model.appCodeListId) {
|
|
34
39
|
const app = await ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -40,6 +45,11 @@ class CheckBoxListEditorController extends runtime.CodeListEditorController {
|
|
|
40
45
|
if ((_b = this.editorParams) == null ? void 0 : _b.rownumber) {
|
|
41
46
|
this.rowNumber = Number(this.editorParams.rownumber);
|
|
42
47
|
}
|
|
48
|
+
if ((_c = this.editorParams) == null ? void 0 : _c.autoselectfirstoption) {
|
|
49
|
+
this.autoSelectFirstOption = this.toBoolean(
|
|
50
|
+
this.editorParams.autoselectfirstoption
|
|
51
|
+
);
|
|
52
|
+
}
|
|
43
53
|
}
|
|
44
54
|
}
|
|
45
55
|
|
|
@@ -57,10 +57,19 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
|
|
|
57
57
|
}
|
|
58
58
|
return false;
|
|
59
59
|
});
|
|
60
|
+
const valueSeparator = (codeList == null ? void 0 : codeList.valueSeparator) || ",";
|
|
60
61
|
const items = vue.ref([]);
|
|
62
|
+
const autoSelectFirstOption = () => {
|
|
63
|
+
const item = items.value[0];
|
|
64
|
+
if (!c.autoSelectFirstOption || props.value || !item)
|
|
65
|
+
return;
|
|
66
|
+
const selections = c.allItems ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
|
|
67
|
+
emit("change", c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator), void 0, true);
|
|
68
|
+
};
|
|
61
69
|
vue.watch(() => props.data, (newVal) => {
|
|
62
70
|
c.loadCodeList(newVal).then((_codeList) => {
|
|
63
71
|
items.value = c.handleCodeListAllItems(_codeList);
|
|
72
|
+
autoSelectFirstOption();
|
|
64
73
|
});
|
|
65
74
|
}, {
|
|
66
75
|
immediate: true,
|
|
@@ -82,10 +91,6 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
91
|
items.value = c.handleCodeListAllItems(data);
|
|
83
92
|
};
|
|
84
93
|
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
85
|
-
let valueSeparator = ",";
|
|
86
|
-
if (codeList && codeList.valueSeparator) {
|
|
87
|
-
valueSeparator = codeList.valueSeparator;
|
|
88
|
-
}
|
|
89
94
|
const {
|
|
90
95
|
useInFocusAndBlur,
|
|
91
96
|
useInValueChange
|
|
@@ -134,7 +134,7 @@ const IBizColorMPickerDefault = /* @__PURE__ */ vue.defineComponent({
|
|
|
134
134
|
};
|
|
135
135
|
},
|
|
136
136
|
render() {
|
|
137
|
-
var _a, _b;
|
|
137
|
+
var _a, _b, _c, _d, _e, _f;
|
|
138
138
|
return vue.withDirectives(vue.createVNode("div", {
|
|
139
139
|
"style": (_a = this.semanticStyle) == null ? void 0 : _a.call(this, "editor.root"),
|
|
140
140
|
"class": [this.ns.b(), (_b = this.semanticClass) == null ? void 0 : _b.call(this, "editor.root")]
|
|
@@ -142,7 +142,8 @@ const IBizColorMPickerDefault = /* @__PURE__ */ vue.defineComponent({
|
|
|
142
142
|
"modelValue": this.curType,
|
|
143
143
|
"onUpdate:modelValue": ($event) => this.curType = $event,
|
|
144
144
|
"class": this.ns.b("picker"),
|
|
145
|
-
"popper-class": this.ns.b("popper"),
|
|
145
|
+
"popper-class": [this.ns.b("popper"), (_c = this.semanticClass) == null ? void 0 : _c.call(this, "editor.popup")],
|
|
146
|
+
"popper-style": (_d = this.semanticStyle) == null ? void 0 : _d.call(this, "editor.popup"),
|
|
146
147
|
"onChange": this.handleSchemeChange
|
|
147
148
|
}, {
|
|
148
149
|
default: () => {
|
|
@@ -163,7 +164,8 @@ const IBizColorMPickerDefault = /* @__PURE__ */ vue.defineComponent({
|
|
|
163
164
|
}
|
|
164
165
|
}), this.showTemplateList && vue.createVNode(vue.resolveComponent("el-select"), {
|
|
165
166
|
"class": this.ns.b("template-color-picker"),
|
|
166
|
-
"popper-class": this.ns.b("popper"),
|
|
167
|
+
"popper-class": [this.ns.b("popper"), (_e = this.semanticClass) == null ? void 0 : _e.call(this, "editor.popup")],
|
|
168
|
+
"popper-style": (_f = this.semanticStyle) == null ? void 0 : _f.call(this, "editor.popup"),
|
|
167
169
|
"modelValue": this.curTemplateColor,
|
|
168
170
|
"onUpdate:modelValue": ($event) => this.curTemplateColor = $event,
|
|
169
171
|
"onChange": this.handleTemplateColorChange
|
|
@@ -367,7 +367,7 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
367
367
|
"value": "DEUIACTION-".concat(item.id),
|
|
368
368
|
"disabled": c.groupActionState[item.id].disabled,
|
|
369
369
|
"title": core.showTitle(isEllipsis ? item.tooltip : ""),
|
|
370
|
-
"class": [ns.be("popper", "
|
|
370
|
+
"class": [ns.be("popper", "action"), semanticClass("editor.popup.action")],
|
|
371
371
|
"style": semanticStyle("editor.popup.action")
|
|
372
372
|
}, {
|
|
373
373
|
default: () => vue.createVNode("div", {
|
|
@@ -381,7 +381,7 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
381
381
|
"class": [ns.em("action-item", "icon"), semanticClass("editor.popup.action.icon", semanticParams)],
|
|
382
382
|
"style": semanticStyle("editor.popup.action.icon", semanticParams)
|
|
383
383
|
}, null), vue.createVNode("span", {
|
|
384
|
-
"class": [ns.em("action-item", "caption"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
384
|
+
"class": [ns.em("action-item", "caption"), ns.em("action-item", "label"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
385
385
|
"style": semanticStyle("editor.popup.action.label", semanticParams)
|
|
386
386
|
}, [item.showCaption ? item.caption : ""])])
|
|
387
387
|
});
|
|
@@ -342,7 +342,7 @@ const IBizPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
342
342
|
};
|
|
343
343
|
return vue.createVNode("div", {
|
|
344
344
|
"title": core.showTitle(detail.tooltip),
|
|
345
|
-
"class": [ns.e("action-item"), ns.be("popper", "
|
|
345
|
+
"class": [ns.e("action-item"), ns.be("popper", "action"), semanticClass("editor.popup.action", semanticParams), ns.is("disabled", c.groupActionState[detail.id].disabled)],
|
|
346
346
|
"style": semanticStyle("editor.popup.action", semanticParams),
|
|
347
347
|
"onClick": (event) => {
|
|
348
348
|
if (!c.groupActionState[detail.id].disabled)
|
|
@@ -353,7 +353,7 @@ const IBizPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
353
353
|
"class": [ns.em("action-item", "icon"), semanticClass("editor.popup.action.icon", semanticParams)],
|
|
354
354
|
"style": semanticStyle("editor.popup.action.icon", semanticParams)
|
|
355
355
|
}, null), vue.createVNode("span", {
|
|
356
|
-
"class": [ns.em("action-item", "caption"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
356
|
+
"class": [ns.em("action-item", "label"), ns.em("action-item", "caption"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
357
357
|
"style": semanticStyle("editor.popup.action.label", semanticParams)
|
|
358
358
|
}, [detail.showCaption ? detail.caption : ""])]);
|
|
359
359
|
};
|
|
@@ -258,7 +258,7 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
258
258
|
"value": detail.id,
|
|
259
259
|
"title": core.showTitle(detail.tooltip),
|
|
260
260
|
"disabled": c.groupActionState[detail.id].disabled,
|
|
261
|
-
"class": [ns.be("popper", "
|
|
261
|
+
"class": [ns.be("popper", "action"), semanticClass("editor.popup.action", {
|
|
262
262
|
semanticParams
|
|
263
263
|
})],
|
|
264
264
|
"style": semanticStyle("editor.popup.action", {
|
|
@@ -272,7 +272,7 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
272
272
|
"class": [ns.em("action-item", "icon"), semanticClass("editor.popup.action.icon", semanticParams)],
|
|
273
273
|
"style": semanticStyle("editor.popup.action.icon", semanticParams)
|
|
274
274
|
}, null), vue.createVNode("span", {
|
|
275
|
-
"class": [ns.em("action-item", "caption"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
275
|
+
"class": [ns.em("action-item", "caption"), ns.em("action-item", "label"), semanticClass("editor.popup.action.label", semanticParams)],
|
|
276
276
|
"style": semanticStyle("editor.popup.action.label", semanticParams)
|
|
277
277
|
}, [detail.showCaption ? detail.caption : ""])])]
|
|
278
278
|
});
|
|
@@ -462,8 +462,8 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
462
462
|
"disabled": this.disabled || this.readonly,
|
|
463
463
|
"class": [this.ns.b("select"), this.ns.e("content"), this.semanticClass("editor.content")],
|
|
464
464
|
"style": this.semanticStyle("editor.content"),
|
|
465
|
-
"popper-class": [this.ns.b("popper"), this.semanticClass("editor.
|
|
466
|
-
"popper-style": this.semanticStyle("editor.
|
|
465
|
+
"popper-class": [this.ns.b("popper"), this.semanticClass("editor.popup")],
|
|
466
|
+
"popper-style": this.semanticStyle("editor.popup"),
|
|
467
467
|
"onVisibleChange": this.onVisibleChange,
|
|
468
468
|
"onKeydown": this.handleDropDownKeyDown
|
|
469
469
|
}, {
|
|
@@ -34,32 +34,32 @@ const IBizDateRangeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
34
|
class: semanticClass("editor.label"),
|
|
35
35
|
selector: ".".concat(ns.e("label"))
|
|
36
36
|
}, {
|
|
37
|
-
class: semanticClass("editor.
|
|
37
|
+
class: semanticClass("editor.dateType"),
|
|
38
38
|
selector: ".".concat(ns.em("date-range", "editor"))
|
|
39
39
|
}, {
|
|
40
|
-
class: semanticClass("editor.
|
|
40
|
+
class: semanticClass("editor.dateType.suffix"),
|
|
41
41
|
selector: ".".concat(ns.em("date-range", "editor-suffix"))
|
|
42
42
|
}, {
|
|
43
|
-
class: semanticClass("editor.
|
|
43
|
+
class: semanticClass("editor.dateUnit"),
|
|
44
44
|
selector: ".el-input__inner"
|
|
45
45
|
}, {
|
|
46
|
-
class: semanticClass("editor.
|
|
46
|
+
class: semanticClass("editor.dateUnit.suffix"),
|
|
47
47
|
selector: ".el-input__suffix"
|
|
48
48
|
}];
|
|
49
49
|
const childStyle = [{
|
|
50
50
|
style: semanticStyle("editor.label"),
|
|
51
51
|
selector: ".".concat(ns.e("label"))
|
|
52
52
|
}, {
|
|
53
|
-
style: semanticStyle("editor.
|
|
53
|
+
style: semanticStyle("editor.dateType"),
|
|
54
54
|
selector: ".".concat(ns.em("date-range", "editor"))
|
|
55
55
|
}, {
|
|
56
|
-
style: semanticStyle("editor.
|
|
56
|
+
style: semanticStyle("editor.dateType.suffix"),
|
|
57
57
|
selector: ".".concat(ns.em("date-range", "editor-suffix"))
|
|
58
58
|
}, {
|
|
59
|
-
style: semanticStyle("editor.
|
|
59
|
+
style: semanticStyle("editor.dateUnit"),
|
|
60
60
|
selector: ".el-input__inner"
|
|
61
61
|
}, {
|
|
62
|
-
style: semanticStyle("editor.
|
|
62
|
+
style: semanticStyle("editor.dateUnit.suffix"),
|
|
63
63
|
selector: ".el-input__suffix"
|
|
64
64
|
}];
|
|
65
65
|
const unitValue = vue.ref(c.defaultUnit);
|
|
@@ -132,14 +132,16 @@ const IBizDateRangeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
132
132
|
}, [vue.createVNode(vue.resolveComponent("el-select"), {
|
|
133
133
|
"modelValue": unitValue.value,
|
|
134
134
|
"onUpdate:modelValue": ($event) => unitValue.value = $event,
|
|
135
|
+
"onChange": unitChange,
|
|
135
136
|
"class": ns.em("date-unit", "editor-select"),
|
|
136
|
-
"
|
|
137
|
+
"popper-class": [ns.b("date-unit-popper"), semanticClass("editor.dateUnit.popup")],
|
|
138
|
+
"popper-style": semanticStyle("editor.dateUnit.popup")
|
|
137
139
|
}, _isSlot(_slot = units.map((item) => {
|
|
138
140
|
return vue.createVNode(vue.resolveComponent("el-option"), {
|
|
139
|
-
"class": semanticClass("editor.popup.item", {
|
|
141
|
+
"class": [ns.em("date-unit", "item"), semanticClass("editor.dateUnit.popup.item", {
|
|
140
142
|
item
|
|
141
|
-
}),
|
|
142
|
-
"style": semanticStyle("editor.popup.item", {
|
|
143
|
+
})],
|
|
144
|
+
"style": semanticStyle("editor.dateUnit.popup.item", {
|
|
143
145
|
item
|
|
144
146
|
}),
|
|
145
147
|
"key": item.value,
|
|
@@ -272,8 +274,8 @@ const IBizDateRangeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
272
274
|
"visible": popVisible.value.ALL || popVisible.value.DYNAMIC || popVisible.value.STATIC,
|
|
273
275
|
"trigger": "click",
|
|
274
276
|
"width": "240px",
|
|
275
|
-
"popper-class": [ns.b("date-range-select"), semanticClass("editor.popup")],
|
|
276
|
-
"popper-style": semanticStyle("editor.popup")
|
|
277
|
+
"popper-class": [ns.b("date-type-popper"), ns.b("date-range-select"), semanticClass("editor.dateType.popup")],
|
|
278
|
+
"popper-style": semanticStyle("editor.dateType.popup")
|
|
277
279
|
}, {
|
|
278
280
|
reference: () => {
|
|
279
281
|
return vue.createVNode("div", {
|
|
@@ -291,10 +293,10 @@ const IBizDateRangeSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
291
293
|
"class": ns.e("date-type")
|
|
292
294
|
}, [timeTypes.map((item) => {
|
|
293
295
|
return vue.createVNode("div", {
|
|
294
|
-
"class": [ns.em("date-type", "item"), semanticClass("editor.popup.item", {
|
|
296
|
+
"class": [ns.em("date-type", "item"), semanticClass("editor.dateType.popup.item", {
|
|
295
297
|
item
|
|
296
298
|
})],
|
|
297
|
-
"style": semanticStyle("editor.popup.item", {
|
|
299
|
+
"style": semanticStyle("editor.dateType.popup.item", {
|
|
298
300
|
item
|
|
299
301
|
}),
|
|
300
302
|
"onClick": (event) => onTypeClick(item.type, event)
|
|
@@ -29,9 +29,14 @@ class DropDownListEditorController extends runtime.CodeListEditorController {
|
|
|
29
29
|
/**
|
|
30
30
|
* 默认选中第一个
|
|
31
31
|
*
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof DropDownListEditorController
|
|
33
33
|
*/
|
|
34
34
|
__publicField(this, "defaultFirstOption", false);
|
|
35
|
+
/**
|
|
36
|
+
* @description 自动选中第一个
|
|
37
|
+
* @memberof DropDownListEditorController
|
|
38
|
+
*/
|
|
39
|
+
__publicField(this, "autoSelectFirstOption", false);
|
|
35
40
|
/**
|
|
36
41
|
* 预置项空白项名称
|
|
37
42
|
*
|
|
@@ -46,7 +51,7 @@ class DropDownListEditorController extends runtime.CodeListEditorController {
|
|
|
46
51
|
__publicField(this, "blankItemValue");
|
|
47
52
|
}
|
|
48
53
|
async onInit() {
|
|
49
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
50
55
|
super.onInit();
|
|
51
56
|
if (this.model.editorType === "MDROPDOWNLIST" || this.model.editorType === "MOBCHECKLIST") {
|
|
52
57
|
this.multiple = true;
|
|
@@ -67,13 +72,18 @@ class DropDownListEditorController extends runtime.CodeListEditorController {
|
|
|
67
72
|
this.editorParams.defaultfirstoption
|
|
68
73
|
);
|
|
69
74
|
}
|
|
70
|
-
if ((_e = this.editorParams) == null ? void 0 : _e.
|
|
75
|
+
if ((_e = this.editorParams) == null ? void 0 : _e.autoselectfirstoption) {
|
|
76
|
+
this.autoSelectFirstOption = this.toBoolean(
|
|
77
|
+
this.editorParams.autoselectfirstoption
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
if ((_f = this.editorParams) == null ? void 0 : _f.blankItemName) {
|
|
71
81
|
this.blankItemName = this.editorParams.blankItemName;
|
|
72
82
|
}
|
|
73
|
-
if ((
|
|
83
|
+
if ((_g = this.editorParams) == null ? void 0 : _g.blankitemname) {
|
|
74
84
|
this.blankItemName = this.editorParams.blankitemname;
|
|
75
85
|
}
|
|
76
|
-
if ((
|
|
86
|
+
if ((_h = this.editorParams) == null ? void 0 : _h.blankitemvalue)
|
|
77
87
|
this.blankItemValue = this.editorParams.blankitemvalue;
|
|
78
88
|
}
|
|
79
89
|
}
|
|
@@ -101,6 +101,10 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
101
|
const codeItemValueNumber = vue.ref(false);
|
|
102
102
|
const hiddenInputRef = vue.ref();
|
|
103
103
|
const valueSeparator = ((_a = c.editorParams) == null ? void 0 : _a.valueseparator) || ",";
|
|
104
|
+
const {
|
|
105
|
+
getSelection,
|
|
106
|
+
getSelectionValue
|
|
107
|
+
} = runtime.useCodeListSelection(c.allItemsValue);
|
|
104
108
|
const showFormDefaultContent = vue.computed(() => {
|
|
105
109
|
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
106
110
|
return true;
|
|
@@ -142,6 +146,20 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
142
146
|
});
|
|
143
147
|
return list;
|
|
144
148
|
};
|
|
149
|
+
const autoSelectFirstOption = () => {
|
|
150
|
+
const item = items.value[0];
|
|
151
|
+
if (!c.autoSelectFirstOption || props.value || !item)
|
|
152
|
+
return;
|
|
153
|
+
if (c.multiple) {
|
|
154
|
+
const value = c.allItems && !hasChildren.value ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
|
|
155
|
+
emit("change", c.model.valueType === "SIMPLES" ? value : value.join(valueSeparator), void 0, true);
|
|
156
|
+
} else if (editorItems && editorItems.length > 0) {
|
|
157
|
+
emit("change", item.value, editorItems[0].id, true);
|
|
158
|
+
emit("change", item.text, void 0, true);
|
|
159
|
+
} else {
|
|
160
|
+
emit("change", item.value, void 0, true);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
145
163
|
const afterLoadCodeList = (codeList) => {
|
|
146
164
|
items.value = [];
|
|
147
165
|
codeListItems.value = [];
|
|
@@ -164,6 +182,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
164
182
|
break;
|
|
165
183
|
}
|
|
166
184
|
}
|
|
185
|
+
autoSelectFirstOption();
|
|
167
186
|
};
|
|
168
187
|
const loadCodeList = async () => {
|
|
169
188
|
if (c.model.appCodeListId) {
|
|
@@ -230,10 +249,6 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
230
249
|
const list = hasChildren.value ? codeListItems.value : items.value;
|
|
231
250
|
return list.find((item) => item.value === value);
|
|
232
251
|
};
|
|
233
|
-
const {
|
|
234
|
-
getSelection,
|
|
235
|
-
getSelectionValue
|
|
236
|
-
} = runtime.useCodeListSelection(c.allItemsValue);
|
|
237
252
|
const curValue = vue.computed({
|
|
238
253
|
get() {
|
|
239
254
|
var _a2, _b, _c;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
+
var core = require('@ibiz-template/core');
|
|
4
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
6
|
var lodashEs = require('lodash-es');
|
|
6
7
|
require('./ibiz-tree-picker.css');
|
|
@@ -110,6 +111,20 @@ const IBizTreePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
111
|
});
|
|
111
112
|
return list;
|
|
112
113
|
};
|
|
114
|
+
const autoSelectFirstOption = () => {
|
|
115
|
+
const item = items.value[0];
|
|
116
|
+
if (!c.autoSelectFirstOption || props.value || !item)
|
|
117
|
+
return;
|
|
118
|
+
const selections = [];
|
|
119
|
+
core.recursiveIterate({
|
|
120
|
+
children: [item]
|
|
121
|
+
}, (_item) => {
|
|
122
|
+
selections.push(_item.value);
|
|
123
|
+
}, {
|
|
124
|
+
childrenFields: ["children"]
|
|
125
|
+
});
|
|
126
|
+
emit("change", c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator), void 0, true);
|
|
127
|
+
};
|
|
113
128
|
const afterLoadCodeList = (codeList) => {
|
|
114
129
|
items.value = [];
|
|
115
130
|
codeListItems.value = [];
|
|
@@ -125,6 +140,7 @@ const IBizTreePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
125
140
|
break;
|
|
126
141
|
}
|
|
127
142
|
}
|
|
143
|
+
autoSelectFirstOption();
|
|
128
144
|
};
|
|
129
145
|
const loadCodeList = async () => {
|
|
130
146
|
if (c.model.appCodeListId) {
|
|
@@ -151,7 +167,7 @@ const IBizTreePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
151
167
|
} else if (lodashEs.isString(newVal)) {
|
|
152
168
|
val = newVal.split(valueSeparator);
|
|
153
169
|
}
|
|
154
|
-
defaultCheckedKeys.value = val.filter((_key) => codeListItems.value.find((item) => item.value === _key && item.
|
|
170
|
+
defaultCheckedKeys.value = val.filter((_key) => codeListItems.value.find((item) => item.value === _key && !item.children));
|
|
155
171
|
}
|
|
156
172
|
}, {
|
|
157
173
|
immediate: true
|