@ibiz-template/vue3-components 0.7.41-alpha.111 → 0.7.41-alpha.112

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.
Files changed (86) hide show
  1. package/dist/{index-BP7a4gcG.js → index-XI8ySm9i.js} +4 -4
  2. package/dist/{index.es-Ur-QLCI4.js → index.es-Dsu1bPbQ.js} +1 -1
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.system.min.js +1 -1
  5. package/dist/map-chart-nwkjjlMK.js +1 -0
  6. package/dist/map-chart-user-BqadFpkw.js +1 -0
  7. package/dist/{wang-editor-lUuJmqAh.js → wang-editor-4OTQfjW9.js} +1 -1
  8. package/dist/{xlsx-util-C1ySj_kQ.js → xlsx-util--TUzshNx.js} +1 -1
  9. package/es/common/map-chart/map-chart.mjs +2 -9
  10. package/es/common/map-chart-user/map-chart-user.mjs +3 -11
  11. package/es/control/calendar/calendar.mjs +17 -4
  12. package/es/control/calendar/components/calendar-user/calendar-user.mjs +4 -2
  13. package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +4 -3
  14. package/es/control/drtab/drtab-control.util.mjs +1 -1
  15. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +1 -0
  16. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +1 -0
  17. package/es/control/grid/grid/grid-control.util.mjs +14 -1
  18. package/es/control/grid/grid/grid.mjs +5 -2
  19. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  20. package/es/control/map/map.mjs +33 -7
  21. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
  22. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -2
  23. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +5 -3
  24. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -2
  25. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
  26. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -2
  27. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
  28. package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +17 -15
  29. package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +15 -5
  30. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +19 -4
  31. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  32. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  33. package/es/web-app/adaptive-screen-width.mjs +5 -5
  34. package/lib/common/map-chart/map-chart.cjs +1 -8
  35. package/lib/common/map-chart-user/map-chart-user.cjs +2 -10
  36. package/lib/control/calendar/calendar.cjs +16 -3
  37. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +4 -2
  38. package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +4 -3
  39. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  40. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -0
  41. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +1 -0
  42. package/lib/control/grid/grid/grid-control.util.cjs +14 -1
  43. package/lib/control/grid/grid/grid.cjs +5 -2
  44. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  45. package/lib/control/map/map.cjs +32 -6
  46. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
  47. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
  48. package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +5 -3
  49. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
  50. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
  51. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
  52. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
  53. package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +17 -15
  54. package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +15 -5
  55. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +19 -4
  56. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  57. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  58. package/lib/web-app/adaptive-screen-width.cjs +5 -5
  59. package/package.json +7 -7
  60. package/src/common/map-chart/map-chart.tsx +3 -5
  61. package/src/common/map-chart-user/map-chart-user.tsx +3 -8
  62. package/src/control/calendar/calendar.tsx +27 -1
  63. package/src/control/calendar/components/calendar-user/calendar-user.tsx +8 -2
  64. package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +7 -3
  65. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.tsx +1 -0
  66. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.tsx +1 -0
  67. package/src/control/grid/grid/grid-control.util.ts +20 -0
  68. package/src/control/grid/grid/grid.tsx +3 -0
  69. package/src/control/grid/grid-column/grid-field-column/grid-field-column.scss +3 -3
  70. package/src/control/map/map.tsx +44 -4
  71. package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.scss +12 -1
  72. package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.tsx +2 -1
  73. package/src/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.tsx +10 -2
  74. package/src/editor/data-picker/ibiz-mpicker/ibiz-mpicker.tsx +2 -1
  75. package/src/editor/data-picker/ibiz-picker/ibiz-picker.tsx +2 -1
  76. package/src/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx +2 -1
  77. package/src/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.tsx +2 -5
  78. package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +27 -13
  79. package/src/editor/dropdown-list/dropdown-list-editor.controller.ts +12 -2
  80. package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +32 -4
  81. package/src/panel-component/auth-userinfo/auth-userinfo.scss +1 -1
  82. package/src/web-app/adaptive-screen-width.ts +12 -6
  83. package/dist/map-chart-DbBbP4qh.js +0 -1
  84. package/dist/map-chart-user-CfTAGaU5.js +0 -1
  85. /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
  86. /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
@@ -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", "item"), semanticClass("editor.popup.action", {
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.popper")],
466
- "popper-style": this.semanticStyle("editor.popper"),
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.input"),
37
+ class: semanticClass("editor.dateType"),
38
38
  selector: ".".concat(ns.em("date-range", "editor"))
39
39
  }, {
40
- class: semanticClass("editor.input.suffix"),
40
+ class: semanticClass("editor.dateType.suffix"),
41
41
  selector: ".".concat(ns.em("date-range", "editor-suffix"))
42
42
  }, {
43
- class: semanticClass("editor.select"),
43
+ class: semanticClass("editor.dateUnit"),
44
44
  selector: ".el-input__inner"
45
45
  }, {
46
- class: semanticClass("editor.select.suffix"),
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.input"),
53
+ style: semanticStyle("editor.dateType"),
54
54
  selector: ".".concat(ns.em("date-range", "editor"))
55
55
  }, {
56
- style: semanticStyle("editor.input.suffix"),
56
+ style: semanticStyle("editor.dateType.suffix"),
57
57
  selector: ".".concat(ns.em("date-range", "editor-suffix"))
58
58
  }, {
59
- style: semanticStyle("editor.select"),
59
+ style: semanticStyle("editor.dateUnit"),
60
60
  selector: ".el-input__inner"
61
61
  }, {
62
- style: semanticStyle("editor.select.suffix"),
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
- "onChange": unitChange
137
+ "popper-class": [ns.b("popper"), semanticClass("editor.popup")],
138
+ "popper-style": semanticStyle("editor.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,7 +274,7 @@ 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")],
277
+ "popper-class": [ns.b("popper"), ns.b("date-range-select"), semanticClass("editor.popup")],
276
278
  "popper-style": semanticStyle("editor.popup")
277
279
  }, {
278
280
  reference: () => {
@@ -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 CustomTagSelectController
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.blankItemName) {
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 ((_f = this.editorParams) == null ? void 0 : _f.blankitemname) {
83
+ if ((_g = this.editorParams) == null ? void 0 : _g.blankitemname) {
74
84
  this.blankItemName = this.editorParams.blankitemname;
75
85
  }
76
- if ((_g = this.editorParams) == null ? void 0 : _g.blankitemvalue)
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 ? getSelectionValue(item.value).map((v) => "".concat(v)) : [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 +1 @@
1
- .ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-5);--ibiz-user-info-height:44px;--ibiz-user-info-collapse-padding:0 var(--ibiz-spacing-base-tight);--ibiz-user-info-avatar-max-width:32px;--ibiz-user-info-avatar-max-height:32px;--ibiz-user-info-avatar-gap:var(--ibiz-spacing-base);--ibiz-user-info-name-max-width:130px;--ibiz-user-info-name-font-size:var(--ibiz-user-info-font-size);--ibiz-user-info-name-person-font-size:var(--ibiz-font-size-small);--ibiz-user-info-name-person-gap:var(--ibiz-spacing-extra-tight);--ibiz-user-info-name-arrow-gap:var(--ibiz-spacing-base-tight);display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}.ibiz-user-info .el-dropdown{width:100%;height:var(--ibiz-user-info-height);padding:var(--ibiz-user-info-padding);cursor:pointer}.ibiz-user-info__icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-user-info.is-left .ibiz-user-info__down{display:none}.ibiz-user-info.is-top .ibiz-user-info__down{margin-left:var(--ibiz-user-info-name-arrow-gap);font-size:var(--ibiz-user-info-font-size)}.ibiz-user-info.is-top .ibiz-user-info-avatar{max-width:var(--ibiz-user-info-avatar-max-width);max-height:var(--ibiz-user-info-avatar-max-height);margin-right:var(--ibiz-user-info-avatar-gap)}.ibiz-user-info.is-collapse .el-dropdown{padding:0 var(--ibiz-user-info-collapse-padding)}.ibiz-user-info.is-collapse .ibiz-user-info-avatar{max-width:var(--ibiz-user-info-avatar-max-width);max-height:var(--ibiz-user-info-avatar-max-height);margin:0}.ibiz-user-info.is-readonly .el-dropdown{cursor:default}.ibiz-user-info-avatar{width:var(--ibiz-user-info-height);height:var(--ibiz-user-info-height);margin-right:10px}.ibiz-user-info-info{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--ibiz-user-info-color)}.ibiz-user-info-info.is-collapse{justify-content:center}.ibiz-user-info-name__user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--ibiz-user-info-name-max-width);font-size:var(--ibiz-user-info-name-font-size);line-height:1.3}.ibiz-user-info-name__person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--ibiz-user-info-name-max-width);margin-top:var(--ibiz-user-info-name-person-gap);font-size:var(--ibiz-user-info-name-person-font-size);line-height:1.2}.ibiz-user-info-name.is-collapse{display:none}.ibiz-user-info-label{display:flex;align-items:center;justify-content:flex-start;font-size:var(--ibiz-user-info-font-size);color:var(--ibiz-user-info-color);outline:0}
1
+ .ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-5);--ibiz-user-info-height:44px;--ibiz-user-info-collapse-padding:0 var(--ibiz-spacing-base-tight);--ibiz-user-info-avatar-max-width:32px;--ibiz-user-info-avatar-max-height:32px;--ibiz-user-info-avatar-gap:var(--ibiz-spacing-base);--ibiz-user-info-name-max-width:130px;--ibiz-user-info-name-font-size:var(--ibiz-user-info-font-size);--ibiz-user-info-name-person-font-size:var(--ibiz-font-size-small);--ibiz-user-info-name-person-gap:var(--ibiz-spacing-extra-tight);--ibiz-user-info-name-arrow-gap:var(--ibiz-spacing-base-tight);display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}.ibiz-user-info .el-dropdown{width:100%;height:var(--ibiz-user-info-height);padding:var(--ibiz-user-info-padding);cursor:pointer}.ibiz-user-info__icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-user-info.is-left .ibiz-user-info__down{display:none}.ibiz-user-info.is-top .ibiz-user-info__down{margin-left:var(--ibiz-user-info-name-arrow-gap);font-size:var(--ibiz-user-info-font-size)}.ibiz-user-info.is-top .ibiz-user-info-avatar{max-width:var(--ibiz-user-info-avatar-max-width);max-height:var(--ibiz-user-info-avatar-max-height);margin-right:var(--ibiz-user-info-avatar-gap)}.ibiz-user-info.is-collapse .el-dropdown{padding:var(--ibiz-user-info-collapse-padding)}.ibiz-user-info.is-collapse .ibiz-user-info-avatar{max-width:var(--ibiz-user-info-avatar-max-width);max-height:var(--ibiz-user-info-avatar-max-height);margin:0}.ibiz-user-info.is-readonly .el-dropdown{cursor:default}.ibiz-user-info-avatar{width:var(--ibiz-user-info-height);height:var(--ibiz-user-info-height);margin-right:10px}.ibiz-user-info-info{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--ibiz-user-info-color)}.ibiz-user-info-info.is-collapse{justify-content:center}.ibiz-user-info-name__user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--ibiz-user-info-name-max-width);font-size:var(--ibiz-user-info-name-font-size);line-height:1.3}.ibiz-user-info-name__person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--ibiz-user-info-name-max-width);margin-top:var(--ibiz-user-info-name-person-gap);font-size:var(--ibiz-user-info-name-person-font-size);line-height:1.2}.ibiz-user-info-name.is-collapse{display:none}.ibiz-user-info-label{display:flex;align-items:center;justify-content:flex-start;font-size:var(--ibiz-user-info-font-size);color:var(--ibiz-user-info-color);outline:0}
@@ -2,7 +2,7 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var ElementPlus = require('element-plus');
5
- var namespace = require('../../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/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
5
+ 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');
6
6
  var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
7
7
 
8
8
  "use strict";
@@ -53,7 +53,7 @@ const fixContextMenuPosition = (el) => {
53
53
  el.style.top = fixedTop;
54
54
  }
55
55
  };
56
- const fixFormItemContainerPopperTransform = (el) => {
56
+ const fixPopperTransform = (el) => {
57
57
  if (currentScale === 1)
58
58
  return;
59
59
  const transform = el.style.transform;
@@ -99,8 +99,8 @@ const startObservePoppers = () => {
99
99
  const el = node;
100
100
  if ((_a2 = el.classList) == null ? void 0 : _a2.contains("el-popper")) {
101
101
  fixPopperInset(el);
102
- if (el.classList.contains("ibiz-form-item-container__popper")) {
103
- fixFormItemContainerPopperTransform(el);
102
+ if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
103
+ fixPopperTransform(el);
104
104
  }
105
105
  } else if ((_b2 = el.classList) == null ? void 0 : _b2.contains("mx-context-menu")) {
106
106
  fixContextMenuPosition(el);
@@ -110,8 +110,8 @@ const startObservePoppers = () => {
110
110
  const el = mutation.target;
111
111
  if ((_a = el.classList) == null ? void 0 : _a.contains("el-popper")) {
112
112
  fixPopperInset(el);
113
- if (el.classList.contains("ibiz-form-item-container__popper")) {
114
- fixFormItemContainerPopperTransform(el);
113
+ if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
114
+ fixPopperTransform(el);
115
115
  }
116
116
  } else if ((_b = el.classList) == null ? void 0 : _b.contains("mx-context-menu")) {
117
117
  fixContextMenuPosition(el);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.41-alpha.111",
3
+ "version": "0.7.41-alpha.112",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -35,14 +35,14 @@
35
35
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
36
36
  "@ibiz-template-plugin/bi-report": "0.0.32",
37
37
  "@ibiz-template-plugin/data-view": "0.0.7",
38
- "@ibiz-template/core": "0.7.41-alpha.113",
38
+ "@ibiz-template/core": "0.7.41-alpha.117",
39
39
  "@ibiz-template/devtool": "0.0.16",
40
- "@ibiz-template/model-helper": "0.7.41-alpha.116",
41
- "@ibiz-template/runtime": "0.7.41-alpha.116",
40
+ "@ibiz-template/model-helper": "0.7.41-alpha.117",
41
+ "@ibiz-template/runtime": "0.7.41-alpha.117",
42
42
  "@ibiz-template/theme": "0.7.39",
43
- "@ibiz-template/vue3-util": "0.7.41-alpha.116",
43
+ "@ibiz-template/vue3-util": "0.7.41-alpha.117",
44
44
  "@ibiz-template/web-theme": "3.16.0",
45
- "@ibiz/model-core": "^0.1.88",
45
+ "@ibiz/model-core": "^0.1.89",
46
46
  "@imengyu/vue3-context-menu": "^1.3.5",
47
47
  "@monaco-editor/loader": "^1.4.0",
48
48
  "@wangeditor/editor": "^5.1.23",
@@ -113,7 +113,7 @@
113
113
  "@ibiz-template/runtime": "^0.7.0",
114
114
  "@ibiz-template/theme": "^0.7.0",
115
115
  "@ibiz-template/vue3-util": "^0.7.0",
116
- "@ibiz/model-core": "^0.1.88",
116
+ "@ibiz/model-core": "^0.1.89",
117
117
  "@imengyu/vue3-context-menu": "^1.3.3",
118
118
  "@monaco-editor/loader": "^1.3.3",
119
119
  "@wangeditor/editor": "^5.1.23",
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable eqeqeq */
2
2
  import { defineComponent, onMounted, PropType, computed } from 'vue';
3
3
  import { isNil, mergeDeepWithKey } from 'ramda';
4
- import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
4
+ import { useNamespace } from '@ibiz-template/vue3-util';
5
5
  import { IMapData, MapController } from '@ibiz-template/runtime';
6
6
  import { defaultOpts, MapOptions } from './map-chart.util';
7
7
  import { useMapManager } from './map-manager';
@@ -27,7 +27,6 @@ export const IBizMapChart = defineComponent({
27
27
  },
28
28
  setup(props, { emit }) {
29
29
  const ns = useNamespace('map-chart');
30
- const { semanticClass, semanticStyle } = useSemanticNode(props.controller);
31
30
  const options = computed<MapOptions>(() => {
32
31
  // 后一个的undefined不覆盖
33
32
  return mergeDeepWithKey(
@@ -203,7 +202,7 @@ export const IBizMapChart = defineComponent({
203
202
  changeMap(options.value.defaultAreaCode, true);
204
203
  });
205
204
 
206
- return { ns, chartRef, historyNames, semanticClass, semanticStyle, goBack };
205
+ return { ns, chartRef, historyNames, goBack };
207
206
  },
208
207
  render() {
209
208
  return (
@@ -211,8 +210,7 @@ export const IBizMapChart = defineComponent({
211
210
  <div class={this.ns.e('chart')} ref='chartRef'></div>
212
211
  {this.historyNames.length > 1 && (
213
212
  <div
214
- style={this.semanticStyle('goback')}
215
- class={[this.ns.e('goback'), this.semanticClass('goback')]}
213
+ class={this.ns.e('goback')}
216
214
  onClick={() => {
217
215
  this.goBack();
218
216
  }}
@@ -8,7 +8,7 @@ import {
8
8
  onBeforeUnmount,
9
9
  } from 'vue';
10
10
  import { isNil, mergeDeepLeft, mergeDeepWithKey } from 'ramda';
11
- import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
11
+ import { useNamespace } from '@ibiz-template/vue3-util';
12
12
  import {
13
13
  IMapData,
14
14
  MapController,
@@ -49,7 +49,6 @@ export const IBizMapChartUser = defineComponent({
49
49
  },
50
50
  setup(props) {
51
51
  const ns = useNamespace('map-chart-user');
52
- const { semanticClass, semanticStyle } = useSemanticNode(props.controller);
53
52
  const c = props.controller;
54
53
  let option: IData = defaultOpts;
55
54
  const mapRef = ref();
@@ -182,8 +181,6 @@ export const IBizMapChartUser = defineComponent({
182
181
  isFull,
183
182
  chartRef,
184
183
  historyNames,
185
- semanticClass,
186
- semanticStyle,
187
184
  onBack,
188
185
  toggleFullScreen,
189
186
  };
@@ -196,8 +193,7 @@ export const IBizMapChartUser = defineComponent({
196
193
  <el-button
197
194
  type='info'
198
195
  onClick={this.toggleFullScreen}
199
- style={this.semanticStyle('fullscreen')}
200
- class={[this.ns.e('fullscreen'), this.semanticClass('fullscreen')]}
196
+ class={this.ns.e('fullscreen')}
201
197
  title={
202
198
  this.isFull
203
199
  ? ibiz.i18n.t('app.cancelFullscreen')
@@ -212,8 +208,7 @@ export const IBizMapChartUser = defineComponent({
212
208
  <div class={this.ns.e('chart')} ref='chartRef'></div>
213
209
  {this.historyNames.length > 1 && (
214
210
  <div
215
- style={this.semanticStyle('goback')}
216
- class={[this.ns.e('goback'), this.semanticClass('goback')]}
211
+ class={this.ns.e('goback')}
217
212
  onClick={() => {
218
213
  this.onBack();
219
214
  }}
@@ -111,6 +111,22 @@ export const CalendarControl = defineComponent({
111
111
  const showDateRange = ref(c.controlParams.showmode === 'daterange');
112
112
  const showDateList = ref(c.controlParams.showmode === 'expand');
113
113
 
114
+ // 子类类名透传
115
+ const childClass = [
116
+ {
117
+ class: semanticClass('body'),
118
+ selector: '.el-calendar__body',
119
+ },
120
+ ];
121
+
122
+ // 子类样式透传
123
+ const childStyle = [
124
+ {
125
+ style: semanticStyle('body'),
126
+ selector: '.el-calendar__body',
127
+ },
128
+ ];
129
+
114
130
  /**
115
131
  * 无限滚动元素
116
132
  */
@@ -552,6 +568,8 @@ export const CalendarControl = defineComponent({
552
568
  c,
553
569
  ns,
554
570
  legends,
571
+ childClass,
572
+ childStyle,
555
573
  semanticClass,
556
574
  semanticStyle,
557
575
  curPopover,
@@ -729,6 +747,11 @@ export const CalendarControl = defineComponent({
729
747
  this.curPopover = el;
730
748
  }
731
749
  }}
750
+ popper-class={[
751
+ this.semanticClass('popup'),
752
+ this.ns.be('more', 'popper'),
753
+ ]}
754
+ popper-style={this.semanticStyle('popup')}
732
755
  onShow={() => {
733
756
  this.popoverValue = items[0].id;
734
757
  }}
@@ -737,7 +760,8 @@ export const CalendarControl = defineComponent({
737
760
  reference: () => {
738
761
  return (
739
762
  <span
740
- class={this.ns.b('more')}
763
+ style={this.semanticStyle('more')}
764
+ class={[this.ns.b('more'), this.semanticClass('more')]}
741
765
  >{`+${items.length - 1} ${ibiz.i18n.t('app.more')}...`}</span>
742
766
  );
743
767
  },
@@ -788,6 +812,8 @@ export const CalendarControl = defineComponent({
788
812
  ref='calendarRef'
789
813
  v-model={this.c.state.selectedDate}
790
814
  class={this.ns.b('month')}
815
+ v-child-class={this.childClass}
816
+ v-child-style={this.childStyle}
791
817
  >
792
818
  {{
793
819
  header: ({ date }: { date: string }): VNode => {
@@ -55,12 +55,17 @@ export const CalendarUser = defineComponent({
55
55
  slots.event?.({ data: items[0] }),
56
56
  <el-popover
57
57
  trigger='click'
58
- popper-class={ns.e('custom-user-popover')}
59
58
  ref={(el: IData) => {
60
59
  if (el && items[0].id === popoverValue.value) {
61
60
  curPopover.value = el;
62
61
  }
63
62
  }}
63
+ popper-class={[
64
+ ns.em('more', 'popper'),
65
+ ns.e('custom-user-popover'),
66
+ props.semanticClass('popup'),
67
+ ]}
68
+ popper-style={props.semanticStyle('popup')}
64
69
  onShow={() => {
65
70
  popoverValue.value = items[0].id;
66
71
  }}
@@ -69,7 +74,8 @@ export const CalendarUser = defineComponent({
69
74
  reference: () => {
70
75
  return (
71
76
  <span
72
- class={ns.e('more')}
77
+ style={props.semanticStyle('more')}
78
+ class={[ns.e('more'), props.semanticClass('more')]}
73
79
  >{`+${items.length - 1} ${ibiz.i18n.t('app.more')}...`}</span>
74
80
  );
75
81
  },
@@ -239,7 +239,11 @@ export const CalendarUser2 = defineComponent({
239
239
  trigger='click'
240
240
  persistent={false}
241
241
  disabled={!marks.length}
242
- popperClass={this.ns.e('popover')}
242
+ popper-style={this.semanticStyle('popup')}
243
+ popper-class={[
244
+ this.ns.e('popover'),
245
+ this.semanticClass('popup'),
246
+ ]}
243
247
  >
244
248
  {{
245
249
  default: () => {
@@ -277,13 +281,13 @@ export const CalendarUser2 = defineComponent({
277
281
  class={[
278
282
  this.ns.e('mark'),
279
283
  this.ns.e('item'),
280
- this.semanticClass('item', {
284
+ this.semanticClass('mark', {
281
285
  item: mark,
282
286
  }),
283
287
  ]}
284
288
  style={{
285
289
  backgroundColor: mark.bkcolor,
286
- ...this.semanticStyle('item', {
290
+ ...this.semanticStyle('mark', {
287
291
  item: mark,
288
292
  }),
289
293
  }}
@@ -178,6 +178,7 @@ export const RepeaterGrid: ReturnType<typeof defineComponent> = defineComponent(
178
178
  title={showTitle(
179
179
  ibiz.i18n.t('control.form.repeaterGrid.promptInformation'),
180
180
  )}
181
+ popper-class={['el-popover', ns2.b('popper')]}
181
182
  confirm-button-text={ibiz.i18n.t('app.confirm')}
182
183
  cancel-button-text={ibiz.i18n.t('app.cancel')}
183
184
  onConfirm={() => props.controller.remove(index)}
@@ -164,6 +164,7 @@ export const RepeaterGrid2: ReturnType<typeof defineComponent> =
164
164
  if (ibiz.config.form.mdCtrlConfirmBeforeRemove) {
165
165
  return (
166
166
  <el-popconfirm
167
+ popper-class={['el-popover', ns2.b('popper')]}
167
168
  title={ibiz.i18n.t('control.form.repeaterGrid.promptInformation')}
168
169
  confirm-button-text={ibiz.i18n.t('app.confirm')}
169
170
  cancel-button-text={ibiz.i18n.t('app.cancel')}
@@ -134,6 +134,7 @@ export function useITableEvent(c: GridController): {
134
134
  cleanClick: () => void;
135
135
  cleanEnter: () => void;
136
136
  cleanTab: () => void;
137
+ onSelectAll: (selections: ControlVO[]) => void;
137
138
  } {
138
139
  const tableRef = ref<IData>();
139
140
  let forbidChange = false;
@@ -455,6 +456,15 @@ export function useITableEvent(c: GridController): {
455
456
  function onSelectionChange(selection: ControlVO[]): void {
456
457
  // 选中数据在回显的时候屏蔽值变更事件,否则会递归。
457
458
  if (!forbidChange && !c.state.isLoading) c.setSelection(selection);
459
+ // 设置表格全选状态
460
+ if (
461
+ c.state.selectedData.length === c.state.items.length &&
462
+ c.state.items.length !== 0
463
+ ) {
464
+ c.state.isSelectedAll = true;
465
+ } else {
466
+ c.state.isSelectedAll = false;
467
+ }
458
468
  }
459
469
 
460
470
  // element表格选中数据
@@ -615,6 +625,15 @@ export function useITableEvent(c: GridController): {
615
625
  },
616
626
  );
617
627
 
628
+ // 表格是否全选
629
+ function onSelectAll(selections: ControlVO[]) {
630
+ if (selections.length === c.state.items.length) {
631
+ c.state.isSelectedAll = true;
632
+ } else {
633
+ c.state.isSelectedAll = false;
634
+ }
635
+ }
636
+
618
637
  return {
619
638
  tableRef,
620
639
  onRowClick,
@@ -626,6 +645,7 @@ export function useITableEvent(c: GridController): {
626
645
  cleanClick,
627
646
  cleanEnter,
628
647
  cleanTab,
648
+ onSelectAll,
629
649
  };
630
650
  }
631
651
 
@@ -453,6 +453,7 @@ export const GridControl = defineComponent({
453
453
  cleanClick = NOOP,
454
454
  cleanEnter = NOOP,
455
455
  cleanTab = NOOP,
456
+ onSelectAll,
456
457
  } = useITableEvent(c);
457
458
  const { pageSemantic, onPageChange, onPageRefresh, onPageSizeChange } =
458
459
  usePagination(c);
@@ -724,6 +725,7 @@ export const GridControl = defineComponent({
724
725
  renderBatchToolBar,
725
726
  renderDragIconColumn,
726
727
  handleHeaderCellClassName,
728
+ onSelectAll,
727
729
  };
728
730
  },
729
731
  render() {
@@ -769,6 +771,7 @@ export const GridControl = defineComponent({
769
771
  default-sort={this.defaultSort}
770
772
  show-summary={this.c.enableAgg}
771
773
  onSortChange={this.onSortChange}
774
+ onSelectAll={this.onSelectAll}
772
775
  onRowDblclick={this.onDbRowClick}
773
776
  summary-method={this.summaryMethod}
774
777
  onHeaderDragend={this.headerDragend}
@@ -47,13 +47,13 @@ $grid-field-column: (
47
47
  flex-shrink: 0;
48
48
  }
49
49
  .#{bem('grid-field-column', 'script')} {
50
- max-height: calc(getCssVar(control-grid, content-row, height) - 2 * getCssVar(grid-field-column, cell-padding));
51
- line-height: calc(getCssVar(control-grid, content-row, height) - 2 * getCssVar(grid-field-column, cell-padding));
50
+ max-height: calc(getCssVar(control-grid, body-row, height) - 2 * getCssVar(grid-field-column, cell-padding));
51
+ line-height: calc(getCssVar(control-grid, body-row, height) - 2 * getCssVar(grid-field-column, cell-padding));
52
52
 
53
53
  * {
54
54
  margin: 0;
55
55
  @include utils-ellipsis;
56
- }
56
+ }
57
57
  }
58
58
 
59
59
  span {