@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.
Files changed (113) hide show
  1. package/dist/{index-BP7a4gcG.js → index-CkG9L_La.js} +4 -4
  2. package/dist/{index.es-Ur-QLCI4.js → index.es-BU8Fy5we.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-9zdglekK.js} +1 -1
  8. package/dist/{xlsx-util-C1ySj_kQ.js → xlsx-util-DrUAhpzt.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/check-box-list/checkbox-list-editor.controller.mjs +11 -1
  24. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +9 -4
  25. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +5 -3
  26. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -2
  27. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
  28. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -2
  29. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
  30. package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +18 -16
  31. package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +15 -5
  32. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +19 -4
  33. package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.mjs +17 -1
  34. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +19 -4
  35. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +24 -7
  36. package/es/editor/list-box/list-box-editor.controller.mjs +11 -0
  37. package/es/editor/list-box/list-box-picker-editor.controller.mjs +11 -0
  38. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -0
  39. package/es/editor/radio-button-list/radio-button-list.controller.mjs +11 -1
  40. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  41. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  42. package/es/web-app/adaptive-screen-width.mjs +5 -5
  43. package/lib/common/map-chart/map-chart.cjs +1 -8
  44. package/lib/common/map-chart-user/map-chart-user.cjs +2 -10
  45. package/lib/control/calendar/calendar.cjs +16 -3
  46. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +4 -2
  47. package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +4 -3
  48. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  49. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -0
  50. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +1 -0
  51. package/lib/control/grid/grid/grid-control.util.cjs +14 -1
  52. package/lib/control/grid/grid/grid.cjs +5 -2
  53. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  54. package/lib/control/map/map.cjs +32 -6
  55. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
  56. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
  57. package/lib/editor/check-box-list/checkbox-list-editor.controller.cjs +11 -1
  58. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +9 -4
  59. package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +5 -3
  60. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
  61. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
  62. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
  63. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
  64. package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +18 -16
  65. package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +15 -5
  66. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +19 -4
  67. package/lib/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.cjs +17 -1
  68. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +19 -4
  69. package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +24 -7
  70. package/lib/editor/list-box/list-box-editor.controller.cjs +11 -0
  71. package/lib/editor/list-box/list-box-picker-editor.controller.cjs +11 -0
  72. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +7 -0
  73. package/lib/editor/radio-button-list/radio-button-list.controller.cjs +11 -1
  74. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  75. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  76. package/lib/web-app/adaptive-screen-width.cjs +5 -5
  77. package/package.json +7 -7
  78. package/src/common/map-chart/map-chart.tsx +3 -5
  79. package/src/common/map-chart-user/map-chart-user.tsx +3 -8
  80. package/src/control/calendar/calendar.tsx +27 -1
  81. package/src/control/calendar/components/calendar-user/calendar-user.tsx +8 -2
  82. package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +7 -3
  83. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.tsx +1 -0
  84. package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.tsx +1 -0
  85. package/src/control/grid/grid/grid-control.util.ts +20 -0
  86. package/src/control/grid/grid/grid.tsx +3 -0
  87. package/src/control/grid/grid-column/grid-field-column/grid-field-column.scss +3 -3
  88. package/src/control/map/map.tsx +44 -4
  89. package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.scss +12 -1
  90. package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.tsx +2 -1
  91. package/src/editor/check-box-list/checkbox-list-editor.controller.ts +11 -0
  92. package/src/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.tsx +28 -6
  93. package/src/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.tsx +10 -2
  94. package/src/editor/data-picker/ibiz-mpicker/ibiz-mpicker.tsx +2 -1
  95. package/src/editor/data-picker/ibiz-picker/ibiz-picker.tsx +2 -1
  96. package/src/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx +2 -1
  97. package/src/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.tsx +2 -5
  98. package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +32 -15
  99. package/src/editor/dropdown-list/dropdown-list-editor.controller.ts +12 -2
  100. package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +34 -4
  101. package/src/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.tsx +28 -1
  102. package/src/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.tsx +31 -4
  103. package/src/editor/list-box/ibiz-list-box/ibiz-list-box.tsx +45 -9
  104. package/src/editor/list-box/list-box-editor.controller.ts +11 -0
  105. package/src/editor/list-box/list-box-picker-editor.controller.ts +11 -0
  106. package/src/editor/radio-button-list/ibiz-radio/ibiz-radio.tsx +13 -0
  107. package/src/editor/radio-button-list/radio-button-list.controller.ts +11 -0
  108. package/src/panel-component/auth-userinfo/auth-userinfo.scss +1 -1
  109. package/src/web-app/adaptive-screen-width.ts +12 -6
  110. package/dist/map-chart-DbBbP4qh.js +0 -1
  111. package/dist/map-chart-user-CfTAGaU5.js +0 -1
  112. /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
  113. /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
@@ -32,32 +32,32 @@ const IBizDateRangeSelect = /* @__PURE__ */ defineComponent({
32
32
  class: semanticClass("editor.label"),
33
33
  selector: ".".concat(ns.e("label"))
34
34
  }, {
35
- class: semanticClass("editor.input"),
35
+ class: semanticClass("editor.dateType"),
36
36
  selector: ".".concat(ns.em("date-range", "editor"))
37
37
  }, {
38
- class: semanticClass("editor.input.suffix"),
38
+ class: semanticClass("editor.dateType.suffix"),
39
39
  selector: ".".concat(ns.em("date-range", "editor-suffix"))
40
40
  }, {
41
- class: semanticClass("editor.select"),
41
+ class: semanticClass("editor.dateUnit"),
42
42
  selector: ".el-input__inner"
43
43
  }, {
44
- class: semanticClass("editor.select.suffix"),
44
+ class: semanticClass("editor.dateUnit.suffix"),
45
45
  selector: ".el-input__suffix"
46
46
  }];
47
47
  const childStyle = [{
48
48
  style: semanticStyle("editor.label"),
49
49
  selector: ".".concat(ns.e("label"))
50
50
  }, {
51
- style: semanticStyle("editor.input"),
51
+ style: semanticStyle("editor.dateType"),
52
52
  selector: ".".concat(ns.em("date-range", "editor"))
53
53
  }, {
54
- style: semanticStyle("editor.input.suffix"),
54
+ style: semanticStyle("editor.dateType.suffix"),
55
55
  selector: ".".concat(ns.em("date-range", "editor-suffix"))
56
56
  }, {
57
- style: semanticStyle("editor.select"),
57
+ style: semanticStyle("editor.dateUnit"),
58
58
  selector: ".el-input__inner"
59
59
  }, {
60
- style: semanticStyle("editor.select.suffix"),
60
+ style: semanticStyle("editor.dateUnit.suffix"),
61
61
  selector: ".el-input__suffix"
62
62
  }];
63
63
  const unitValue = ref(c.defaultUnit);
@@ -130,14 +130,16 @@ const IBizDateRangeSelect = /* @__PURE__ */ defineComponent({
130
130
  }, [createVNode(resolveComponent("el-select"), {
131
131
  "modelValue": unitValue.value,
132
132
  "onUpdate:modelValue": ($event) => unitValue.value = $event,
133
+ "onChange": unitChange,
133
134
  "class": ns.em("date-unit", "editor-select"),
134
- "onChange": unitChange
135
+ "popper-class": [ns.b("date-unit-popper"), semanticClass("editor.dateUnit.popup")],
136
+ "popper-style": semanticStyle("editor.dateUnit.popup")
135
137
  }, _isSlot(_slot = units.map((item) => {
136
138
  return createVNode(resolveComponent("el-option"), {
137
- "class": semanticClass("editor.popup.item", {
139
+ "class": [ns.em("date-unit", "item"), semanticClass("editor.dateUnit.popup.item", {
138
140
  item
139
- }),
140
- "style": semanticStyle("editor.popup.item", {
141
+ })],
142
+ "style": semanticStyle("editor.dateUnit.popup.item", {
141
143
  item
142
144
  }),
143
145
  "key": item.value,
@@ -270,8 +272,8 @@ const IBizDateRangeSelect = /* @__PURE__ */ defineComponent({
270
272
  "visible": popVisible.value.ALL || popVisible.value.DYNAMIC || popVisible.value.STATIC,
271
273
  "trigger": "click",
272
274
  "width": "240px",
273
- "popper-class": [ns.b("date-range-select"), semanticClass("editor.popup")],
274
- "popper-style": semanticStyle("editor.popup")
275
+ "popper-class": [ns.b("date-type-popper"), ns.b("date-range-select"), semanticClass("editor.dateType.popup")],
276
+ "popper-style": semanticStyle("editor.dateType.popup")
275
277
  }, {
276
278
  reference: () => {
277
279
  return createVNode("div", {
@@ -289,10 +291,10 @@ const IBizDateRangeSelect = /* @__PURE__ */ defineComponent({
289
291
  "class": ns.e("date-type")
290
292
  }, [timeTypes.map((item) => {
291
293
  return createVNode("div", {
292
- "class": [ns.em("date-type", "item"), semanticClass("editor.popup.item", {
294
+ "class": [ns.em("date-type", "item"), semanticClass("editor.dateType.popup.item", {
293
295
  item
294
296
  })],
295
- "style": semanticStyle("editor.popup.item", {
297
+ "style": semanticStyle("editor.dateType.popup.item", {
296
298
  item
297
299
  }),
298
300
  "onClick": (event) => onTypeClick(item.type, event)
@@ -27,9 +27,14 @@ class DropDownListEditorController extends CodeListEditorController {
27
27
  /**
28
28
  * 默认选中第一个
29
29
  *
30
- * @memberof CustomTagSelectController
30
+ * @memberof DropDownListEditorController
31
31
  */
32
32
  __publicField(this, "defaultFirstOption", false);
33
+ /**
34
+ * @description 自动选中第一个
35
+ * @memberof DropDownListEditorController
36
+ */
37
+ __publicField(this, "autoSelectFirstOption", false);
33
38
  /**
34
39
  * 预置项空白项名称
35
40
  *
@@ -44,7 +49,7 @@ class DropDownListEditorController extends CodeListEditorController {
44
49
  __publicField(this, "blankItemValue");
45
50
  }
46
51
  async onInit() {
47
- var _a, _b, _c, _d, _e, _f, _g;
52
+ var _a, _b, _c, _d, _e, _f, _g, _h;
48
53
  super.onInit();
49
54
  if (this.model.editorType === "MDROPDOWNLIST" || this.model.editorType === "MOBCHECKLIST") {
50
55
  this.multiple = true;
@@ -65,13 +70,18 @@ class DropDownListEditorController extends CodeListEditorController {
65
70
  this.editorParams.defaultfirstoption
66
71
  );
67
72
  }
68
- if ((_e = this.editorParams) == null ? void 0 : _e.blankItemName) {
73
+ if ((_e = this.editorParams) == null ? void 0 : _e.autoselectfirstoption) {
74
+ this.autoSelectFirstOption = this.toBoolean(
75
+ this.editorParams.autoselectfirstoption
76
+ );
77
+ }
78
+ if ((_f = this.editorParams) == null ? void 0 : _f.blankItemName) {
69
79
  this.blankItemName = this.editorParams.blankItemName;
70
80
  }
71
- if ((_f = this.editorParams) == null ? void 0 : _f.blankitemname) {
81
+ if ((_g = this.editorParams) == null ? void 0 : _g.blankitemname) {
72
82
  this.blankItemName = this.editorParams.blankitemname;
73
83
  }
74
- if ((_g = this.editorParams) == null ? void 0 : _g.blankitemvalue)
84
+ if ((_h = this.editorParams) == null ? void 0 : _h.blankitemvalue)
75
85
  this.blankItemValue = this.editorParams.blankitemvalue;
76
86
  }
77
87
  }
@@ -99,6 +99,10 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
99
99
  const codeItemValueNumber = ref(false);
100
100
  const hiddenInputRef = ref();
101
101
  const valueSeparator = ((_a = c.editorParams) == null ? void 0 : _a.valueseparator) || ",";
102
+ const {
103
+ getSelection,
104
+ getSelectionValue
105
+ } = useCodeListSelection(c.allItemsValue);
102
106
  const showFormDefaultContent = computed(() => {
103
107
  if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
104
108
  return true;
@@ -140,6 +144,20 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
140
144
  });
141
145
  return list;
142
146
  };
147
+ const autoSelectFirstOption = () => {
148
+ const item = items.value[0];
149
+ if (!c.autoSelectFirstOption || props.value || !item)
150
+ return;
151
+ if (c.multiple) {
152
+ const value = c.allItems && !hasChildren.value ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
153
+ emit("change", c.model.valueType === "SIMPLES" ? value : value.join(valueSeparator), void 0, true);
154
+ } else if (editorItems && editorItems.length > 0) {
155
+ emit("change", item.value, editorItems[0].id, true);
156
+ emit("change", item.text, void 0, true);
157
+ } else {
158
+ emit("change", item.value, void 0, true);
159
+ }
160
+ };
143
161
  const afterLoadCodeList = (codeList) => {
144
162
  items.value = [];
145
163
  codeListItems.value = [];
@@ -162,6 +180,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
162
180
  break;
163
181
  }
164
182
  }
183
+ autoSelectFirstOption();
165
184
  };
166
185
  const loadCodeList = async () => {
167
186
  if (c.model.appCodeListId) {
@@ -228,10 +247,6 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
228
247
  const list = hasChildren.value ? codeListItems.value : items.value;
229
248
  return list.find((item) => item.value === value);
230
249
  };
231
- const {
232
- getSelection,
233
- getSelectionValue
234
- } = useCodeListSelection(c.allItemsValue);
235
250
  const curValue = computed({
236
251
  get() {
237
252
  var _a2, _b, _c;
@@ -1,4 +1,5 @@
1
1
  import { isVNode, defineComponent, createVNode, resolveComponent, withDirectives, resolveDirective, ref, watch, onMounted } from 'vue';
2
+ import { recursiveIterate } from '@ibiz-template/core';
2
3
  import { useNamespace, useSemanticNode, useCodeListListen, getEditorEmits, getDropdownProps } from '@ibiz-template/vue3-util';
3
4
  import { isArray, isString } from 'lodash-es';
4
5
  import './ibiz-tree-picker.css';
@@ -108,6 +109,20 @@ const IBizTreePicker = /* @__PURE__ */ defineComponent({
108
109
  });
109
110
  return list;
110
111
  };
112
+ const autoSelectFirstOption = () => {
113
+ const item = items.value[0];
114
+ if (!c.autoSelectFirstOption || props.value || !item)
115
+ return;
116
+ const selections = [];
117
+ recursiveIterate({
118
+ children: [item]
119
+ }, (_item) => {
120
+ selections.push(_item.value);
121
+ }, {
122
+ childrenFields: ["children"]
123
+ });
124
+ emit("change", c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator), void 0, true);
125
+ };
111
126
  const afterLoadCodeList = (codeList) => {
112
127
  items.value = [];
113
128
  codeListItems.value = [];
@@ -123,6 +138,7 @@ const IBizTreePicker = /* @__PURE__ */ defineComponent({
123
138
  break;
124
139
  }
125
140
  }
141
+ autoSelectFirstOption();
126
142
  };
127
143
  const loadCodeList = async () => {
128
144
  if (c.model.appCodeListId) {
@@ -149,7 +165,7 @@ const IBizTreePicker = /* @__PURE__ */ defineComponent({
149
165
  } else if (isString(newVal)) {
150
166
  val = newVal.split(valueSeparator);
151
167
  }
152
- defaultCheckedKeys.value = val.filter((_key) => codeListItems.value.find((item) => item.value === _key && item.isLeaf));
168
+ defaultCheckedKeys.value = val.filter((_key) => codeListItems.value.find((item) => item.value === _key && !item.children));
153
169
  }
154
170
  }, {
155
171
  immediate: true
@@ -94,6 +94,10 @@ const IBizVirtualizedList = /* @__PURE__ */ defineComponent({
94
94
  const isLoading = ref(false);
95
95
  let editorState = "";
96
96
  const codeItemValueNumber = ref(false);
97
+ const {
98
+ getSelection,
99
+ getSelectionValue
100
+ } = useCodeListSelection(c.allItemsValue);
97
101
  const handleTreeNodes = (nodes) => {
98
102
  if (nodes.length === 0) {
99
103
  return [];
@@ -121,6 +125,20 @@ const IBizVirtualizedList = /* @__PURE__ */ defineComponent({
121
125
  });
122
126
  return list;
123
127
  };
128
+ const autoSelectFirstOption = () => {
129
+ const item = items.value[0];
130
+ if (!c.autoSelectFirstOption || props.value || !item)
131
+ return;
132
+ if (c.multiple) {
133
+ const value = c.allItems && !hasChildren.value ? getSelectionValue(item.value).map((v) => "".concat(v)) : [item.value];
134
+ emit("change", c.model.valueType === "SIMPLES" ? value : value.join(","), void 0, true);
135
+ } else if (editorItems && editorItems.length > 0) {
136
+ emit("change", item.value, editorItems[0].id, true);
137
+ emit("change", item.text, void 0, true);
138
+ } else {
139
+ emit("change", item.value, void 0, true);
140
+ }
141
+ };
124
142
  const afterLoadCodeList = (codeList) => {
125
143
  items.value = [];
126
144
  codeListItems.value = [];
@@ -143,6 +161,7 @@ const IBizVirtualizedList = /* @__PURE__ */ defineComponent({
143
161
  break;
144
162
  }
145
163
  }
164
+ autoSelectFirstOption();
146
165
  };
147
166
  const loadCodeList = async () => {
148
167
  if (c.model.appCodeListId) {
@@ -194,10 +213,6 @@ const IBizVirtualizedList = /* @__PURE__ */ defineComponent({
194
213
  const list = hasChildren.value ? codeListItems.value : items.value;
195
214
  return list.find((item) => item.value === value);
196
215
  };
197
- const {
198
- getSelection,
199
- getSelectionValue
200
- } = useCodeListSelection(c.allItemsValue);
201
216
  const curValue = computed({
202
217
  get() {
203
218
  var _a, _b, _c;
@@ -64,16 +64,31 @@ const IBizListBox = /* @__PURE__ */ defineComponent({
64
64
  });
65
65
  const codeList = c.codeList;
66
66
  const editorType = editorModel.editorType;
67
+ const valueSeparator = (codeList == null ? void 0 : codeList.valueSeparator) || ",";
67
68
  const items = ref([]);
69
+ const autoSelectFirstOption = () => {
70
+ const item = items.value[0];
71
+ if (!c.autoSelectFirstOption || props.value || !item)
72
+ return;
73
+ let value;
74
+ if (multiple) {
75
+ const selections = c.allItems ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
76
+ value = c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator);
77
+ } else {
78
+ value = item.value;
79
+ }
80
+ emit("change", value, void 0, true);
81
+ };
68
82
  const loadListBoxItems = async () => {
69
83
  if (Object.is("LISTBOX", editorType)) {
70
84
  const controller = c;
71
85
  controller.loadCodeList(props.data).then((_codeList) => {
72
86
  if (multiple) {
73
87
  items.value = controller.handleCodeListAllItems(_codeList);
74
- return;
88
+ } else {
89
+ items.value = _codeList;
75
90
  }
76
- items.value = _codeList;
91
+ autoSelectFirstOption();
77
92
  });
78
93
  } else if (Object.is("LISTBOXPICKUP", editorType)) {
79
94
  const controller = c;
@@ -84,11 +99,17 @@ const IBizListBox = /* @__PURE__ */ defineComponent({
84
99
  value: item[controller.keyName],
85
100
  text: item[controller.textName]
86
101
  }));
102
+ autoSelectFirstOption();
87
103
  }
88
104
  }
89
105
  }
90
106
  };
91
- loadListBoxItems();
107
+ watch(() => props.data, () => {
108
+ loadListBoxItems();
109
+ }, {
110
+ immediate: true,
111
+ deep: true
112
+ });
92
113
  const fn = (data) => {
93
114
  if (data) {
94
115
  if (Object.is("LISTBOX", editorType) && multiple) {
@@ -106,10 +127,6 @@ const IBizListBox = /* @__PURE__ */ defineComponent({
106
127
  return "STR";
107
128
  });
108
129
  const calcOrMode = useCalcOrMode(currentMode.value, c.model.valueType);
109
- let valueSeparator = ",";
110
- if (codeList && codeList.valueSeparator) {
111
- valueSeparator = codeList.valueSeparator;
112
- }
113
130
  const {
114
131
  getSelection,
115
132
  getSelectionValue
@@ -17,13 +17,24 @@ class ListBoxEditorController extends CodeListEditorController {
17
17
  * @Date: 2023-05-24 10:55:50
18
18
  */
19
19
  __publicField(this, "codeList");
20
+ /**
21
+ * @description 自动选中第一个
22
+ * @memberof ListBoxEditorController
23
+ */
24
+ __publicField(this, "autoSelectFirstOption", false);
20
25
  }
21
26
  async onInit() {
27
+ var _a;
22
28
  super.onInit();
23
29
  if (this.model.appCodeListId) {
24
30
  const app = await ibiz.hub.getApp(this.context.srfappid);
25
31
  this.codeList = app.codeList.getCodeList(this.model.appCodeListId);
26
32
  }
33
+ if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
34
+ this.autoSelectFirstOption = this.toBoolean(
35
+ this.editorParams.autoselectfirstoption
36
+ );
37
+ }
27
38
  }
28
39
  }
29
40
 
@@ -40,9 +40,20 @@ class ListBoxPickerEditorController extends EditorController {
40
40
  * @type {IAcItemProvider}
41
41
  */
42
42
  __publicField(this, "acItemProvider");
43
+ /**
44
+ * @description 自动选中第一个
45
+ * @memberof ListBoxPickerEditorController
46
+ */
47
+ __publicField(this, "autoSelectFirstOption", false);
43
48
  }
44
49
  async onInit() {
50
+ var _a;
45
51
  super.onInit();
52
+ if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
53
+ this.autoSelectFirstOption = this.toBoolean(
54
+ this.editorParams.autoselectfirstoption
55
+ );
56
+ }
46
57
  if (this.model.editorType === "LISTBOXPICKUP") {
47
58
  if (this.model.appDEDataSetId) {
48
59
  this.interfaceName = this.model.appDEDataSetId;
@@ -71,9 +71,16 @@ const IBizRadio = /* @__PURE__ */ defineComponent({
71
71
  useInValueChange();
72
72
  };
73
73
  const items = ref([]);
74
+ const autoSelectFirstOption = () => {
75
+ const item = items.value[0];
76
+ if (!c.autoSelectFirstOption || props.value || !item)
77
+ return;
78
+ emit("change", item.value, void 0, true);
79
+ };
74
80
  watch(() => props.data, (newVal) => {
75
81
  c.loadCodeList(newVal).then((_codeList) => {
76
82
  items.value = _codeList;
83
+ autoSelectFirstOption();
77
84
  });
78
85
  }, {
79
86
  immediate: true,
@@ -17,9 +17,14 @@ class RadioButtonListEditorController extends CodeListEditorController {
17
17
  * @type {(number | undefined)}
18
18
  */
19
19
  __publicField(this, "rowNumber");
20
+ /**
21
+ * @description 自动选中第一个
22
+ * @memberof RadioButtonListEditorController
23
+ */
24
+ __publicField(this, "autoSelectFirstOption", false);
20
25
  }
21
26
  async onInit() {
22
- var _a, _b;
27
+ var _a, _b, _c;
23
28
  super.onInit();
24
29
  if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
25
30
  this.rowNumber = Number(this.editorParams.rowNumber);
@@ -27,6 +32,11 @@ class RadioButtonListEditorController extends CodeListEditorController {
27
32
  if ((_b = this.editorParams) == null ? void 0 : _b.rownumber) {
28
33
  this.rowNumber = Number(this.editorParams.rownumber);
29
34
  }
35
+ if ((_c = this.editorParams) == null ? void 0 : _c.autoselectfirstoption) {
36
+ this.autoSelectFirstOption = this.toBoolean(
37
+ this.editorParams.autoselectfirstoption
38
+ );
39
+ }
30
40
  }
31
41
  }
32
42
 
@@ -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}
@@ -1,6 +1,6 @@
1
1
  import { createApp } from 'vue';
2
2
  import ElementPlus from 'element-plus';
3
- import { defaultNamespace } from '../../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.mjs';
3
+ import { defaultNamespace } from '../../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.mjs';
4
4
  import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
5
5
 
6
6
  "use strict";
@@ -51,7 +51,7 @@ const fixContextMenuPosition = (el) => {
51
51
  el.style.top = fixedTop;
52
52
  }
53
53
  };
54
- const fixFormItemContainerPopperTransform = (el) => {
54
+ const fixPopperTransform = (el) => {
55
55
  if (currentScale === 1)
56
56
  return;
57
57
  const transform = el.style.transform;
@@ -97,8 +97,8 @@ const startObservePoppers = () => {
97
97
  const el = node;
98
98
  if ((_a2 = el.classList) == null ? void 0 : _a2.contains("el-popper")) {
99
99
  fixPopperInset(el);
100
- if (el.classList.contains("ibiz-form-item-container__popper")) {
101
- fixFormItemContainerPopperTransform(el);
100
+ if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
101
+ fixPopperTransform(el);
102
102
  }
103
103
  } else if ((_b2 = el.classList) == null ? void 0 : _b2.contains("mx-context-menu")) {
104
104
  fixContextMenuPosition(el);
@@ -108,8 +108,8 @@ const startObservePoppers = () => {
108
108
  const el = mutation.target;
109
109
  if ((_a = el.classList) == null ? void 0 : _a.contains("el-popper")) {
110
110
  fixPopperInset(el);
111
- if (el.classList.contains("ibiz-form-item-container__popper")) {
112
- fixFormItemContainerPopperTransform(el);
111
+ if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
112
+ fixPopperTransform(el);
113
113
  }
114
114
  } else if ((_b = el.classList) == null ? void 0 : _b.contains("mx-context-menu")) {
115
115
  fixContextMenuPosition(el);
@@ -33,10 +33,6 @@ 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);
40
36
  const options = vue.computed(() => {
41
37
  return ramda.mergeDeepWithKey((_key, x, z) => {
42
38
  return ramda.isNil(z) ? x : z;
@@ -203,8 +199,6 @@ const IBizMapChart = /* @__PURE__ */ vue.defineComponent({
203
199
  ns,
204
200
  chartRef,
205
201
  historyNames,
206
- semanticClass,
207
- semanticStyle,
208
202
  goBack
209
203
  };
210
204
  },
@@ -215,8 +209,7 @@ const IBizMapChart = /* @__PURE__ */ vue.defineComponent({
215
209
  "class": this.ns.e("chart"),
216
210
  "ref": "chartRef"
217
211
  }, null), this.historyNames.length > 1 && vue.createVNode("div", {
218
- "style": this.semanticStyle("goback"),
219
- "class": [this.ns.e("goback"), this.semanticClass("goback")],
212
+ "class": this.ns.e("goback"),
220
213
  "onClick": () => {
221
214
  this.goBack();
222
215
  }
@@ -33,10 +33,6 @@ 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);
40
36
  const c = props.controller;
41
37
  let option = mapChartUser_util.defaultOpts;
42
38
  const mapRef = vue.ref();
@@ -154,8 +150,6 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
154
150
  isFull,
155
151
  chartRef,
156
152
  historyNames,
157
- semanticClass,
158
- semanticStyle,
159
153
  onBack,
160
154
  toggleFullScreen
161
155
  };
@@ -170,8 +164,7 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
170
164
  }, [enabledFullScreen ? vue.createVNode(vue.resolveComponent("el-button"), {
171
165
  "type": "info",
172
166
  "onClick": this.toggleFullScreen,
173
- "style": this.semanticStyle("fullscreen"),
174
- "class": [this.ns.e("fullscreen"), this.semanticClass("fullscreen")],
167
+ "class": this.ns.e("fullscreen"),
175
168
  "title": this.isFull ? ibiz.i18n.t("app.cancelFullscreen") : ibiz.i18n.t("app.fullscreen")
176
169
  }, {
177
170
  default: () => [vue.createVNode("ion-icon", {
@@ -181,8 +174,7 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
181
174
  "class": this.ns.e("chart"),
182
175
  "ref": "chartRef"
183
176
  }, null), this.historyNames.length > 1 && vue.createVNode("div", {
184
- "style": this.semanticStyle("goback"),
185
- "class": [this.ns.e("goback"), this.semanticClass("goback")],
177
+ "class": this.ns.e("goback"),
186
178
  "onClick": () => {
187
179
  this.onBack();
188
180
  }
@@ -90,6 +90,14 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
90
90
  const curPopover = vue.ref();
91
91
  const showDateRange = vue.ref(c.controlParams.showmode === "daterange");
92
92
  const showDateList = vue.ref(c.controlParams.showmode === "expand");
93
+ const childClass = [{
94
+ class: semanticClass("body"),
95
+ selector: ".el-calendar__body"
96
+ }];
97
+ const childStyle = [{
98
+ style: semanticStyle("body"),
99
+ selector: ".el-calendar__body"
100
+ }];
93
101
  const infiniteScroll = vue.ref();
94
102
  const disabledLodeMore = vue.computed(() => {
95
103
  if (c.model.calendarStyle !== "TIMELINE" || c.state.isLoading)
@@ -393,6 +401,8 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
393
401
  c,
394
402
  ns,
395
403
  legends,
404
+ childClass,
405
+ childStyle,
396
406
  semanticClass,
397
407
  semanticStyle,
398
408
  curPopover,
@@ -485,13 +495,16 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
485
495
  this.curPopover = el;
486
496
  }
487
497
  },
498
+ "popper-class": [this.semanticClass("popup"), this.ns.be("more", "popper")],
499
+ "popper-style": this.semanticStyle("popup"),
488
500
  "onShow": () => {
489
501
  this.popoverValue = items[0].id;
490
502
  }
491
503
  }, {
492
504
  reference: () => {
493
505
  return vue.createVNode("span", {
494
- "class": this.ns.b("more")
506
+ "style": this.semanticStyle("more"),
507
+ "class": [this.ns.b("more"), this.semanticClass("more")]
495
508
  }, ["+".concat(items.length - 1, " ").concat(ibiz.i18n.t("app.more"), "...")]);
496
509
  },
497
510
  default: () => {
@@ -513,7 +526,7 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
513
526
  return vue.createVNode("div", {
514
527
  "class": [this.ns.b("content"), this.ns.be("content", "month"), this.semanticClass("content"), this.ns.is("show-date-range", this.showDateRange)],
515
528
  "style": this.semanticStyle("content")
516
- }, [vue.createVNode(vue.resolveComponent("el-calendar"), {
529
+ }, [vue.withDirectives(vue.createVNode(vue.resolveComponent("el-calendar"), {
517
530
  "ref": "calendarRef",
518
531
  "modelValue": this.c.state.selectedDate,
519
532
  "onUpdate:modelValue": ($event) => this.c.state.selectedDate = $event,
@@ -617,7 +630,7 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
617
630
  "class": this.ns.b("items")
618
631
  }, [renderCalendarItems(date)])]);
619
632
  }
620
- })]);
633
+ }), [[vue.resolveDirective("child-class"), this.childClass], [vue.resolveDirective("child-style"), this.childStyle]])]);
621
634
  };
622
635
  const renderNoData = () => {
623
636
  const {
@@ -47,19 +47,21 @@ const CalendarUser = /* @__PURE__ */ vue.defineComponent({
47
47
  data: items[0]
48
48
  }), vue.createVNode(vue.resolveComponent("el-popover"), {
49
49
  "trigger": "click",
50
- "popper-class": ns.e("custom-user-popover"),
51
50
  "ref": (el) => {
52
51
  if (el && items[0].id === popoverValue.value) {
53
52
  curPopover.value = el;
54
53
  }
55
54
  },
55
+ "popper-class": [ns.em("more", "popper"), ns.e("custom-user-popover"), props.semanticClass("popup")],
56
+ "popper-style": props.semanticStyle("popup"),
56
57
  "onShow": () => {
57
58
  popoverValue.value = items[0].id;
58
59
  }
59
60
  }, {
60
61
  reference: () => {
61
62
  return vue.createVNode("span", {
62
- "class": ns.e("more")
63
+ "style": props.semanticStyle("more"),
64
+ "class": [ns.e("more"), props.semanticClass("more")]
63
65
  }, ["+".concat(items.length - 1, " ").concat(ibiz.i18n.t("app.more"), "...")]);
64
66
  },
65
67
  default: () => {