@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
@@ -96,6 +96,10 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
96
96
  const isLoading = vue.ref(false);
97
97
  let editorState = "";
98
98
  const codeItemValueNumber = vue.ref(false);
99
+ const {
100
+ getSelection,
101
+ getSelectionValue
102
+ } = runtime.useCodeListSelection(c.allItemsValue);
99
103
  const handleTreeNodes = (nodes) => {
100
104
  if (nodes.length === 0) {
101
105
  return [];
@@ -123,6 +127,20 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
123
127
  });
124
128
  return list;
125
129
  };
130
+ const autoSelectFirstOption = () => {
131
+ const item = items.value[0];
132
+ if (!c.autoSelectFirstOption || props.value || !item)
133
+ return;
134
+ if (c.multiple) {
135
+ const value = c.allItems && !hasChildren.value ? getSelectionValue(item.value).map((v) => "".concat(v)) : [item.value];
136
+ emit("change", c.model.valueType === "SIMPLES" ? value : value.join(","), void 0, true);
137
+ } else if (editorItems && editorItems.length > 0) {
138
+ emit("change", item.value, editorItems[0].id, true);
139
+ emit("change", item.text, void 0, true);
140
+ } else {
141
+ emit("change", item.value, void 0, true);
142
+ }
143
+ };
126
144
  const afterLoadCodeList = (codeList) => {
127
145
  items.value = [];
128
146
  codeListItems.value = [];
@@ -145,6 +163,7 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
145
163
  break;
146
164
  }
147
165
  }
166
+ autoSelectFirstOption();
148
167
  };
149
168
  const loadCodeList = async () => {
150
169
  if (c.model.appCodeListId) {
@@ -196,10 +215,6 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
196
215
  const list = hasChildren.value ? codeListItems.value : items.value;
197
216
  return list.find((item) => item.value === value);
198
217
  };
199
- const {
200
- getSelection,
201
- getSelectionValue
202
- } = runtime.useCodeListSelection(c.allItemsValue);
203
218
  const curValue = vue.computed({
204
219
  get() {
205
220
  var _a, _b, _c;
@@ -66,16 +66,31 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
66
66
  });
67
67
  const codeList = c.codeList;
68
68
  const editorType = editorModel.editorType;
69
+ const valueSeparator = (codeList == null ? void 0 : codeList.valueSeparator) || ",";
69
70
  const items = vue.ref([]);
71
+ const autoSelectFirstOption = () => {
72
+ const item = items.value[0];
73
+ if (!c.autoSelectFirstOption || props.value || !item)
74
+ return;
75
+ let value;
76
+ if (multiple) {
77
+ const selections = c.allItems ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
78
+ value = c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator);
79
+ } else {
80
+ value = item.value;
81
+ }
82
+ emit("change", value, void 0, true);
83
+ };
70
84
  const loadListBoxItems = async () => {
71
85
  if (Object.is("LISTBOX", editorType)) {
72
86
  const controller = c;
73
87
  controller.loadCodeList(props.data).then((_codeList) => {
74
88
  if (multiple) {
75
89
  items.value = controller.handleCodeListAllItems(_codeList);
76
- return;
90
+ } else {
91
+ items.value = _codeList;
77
92
  }
78
- items.value = _codeList;
93
+ autoSelectFirstOption();
79
94
  });
80
95
  } else if (Object.is("LISTBOXPICKUP", editorType)) {
81
96
  const controller = c;
@@ -86,11 +101,17 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
86
101
  value: item[controller.keyName],
87
102
  text: item[controller.textName]
88
103
  }));
104
+ autoSelectFirstOption();
89
105
  }
90
106
  }
91
107
  }
92
108
  };
93
- loadListBoxItems();
109
+ vue.watch(() => props.data, () => {
110
+ loadListBoxItems();
111
+ }, {
112
+ immediate: true,
113
+ deep: true
114
+ });
94
115
  const fn = (data) => {
95
116
  if (data) {
96
117
  if (Object.is("LISTBOX", editorType) && multiple) {
@@ -108,10 +129,6 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
108
129
  return "STR";
109
130
  });
110
131
  const calcOrMode = runtime.useCalcOrMode(currentMode.value, c.model.valueType);
111
- let valueSeparator = ",";
112
- if (codeList && codeList.valueSeparator) {
113
- valueSeparator = codeList.valueSeparator;
114
- }
115
132
  const {
116
133
  getSelection,
117
134
  getSelectionValue
@@ -19,13 +19,24 @@ class ListBoxEditorController extends runtime.CodeListEditorController {
19
19
  * @Date: 2023-05-24 10:55:50
20
20
  */
21
21
  __publicField(this, "codeList");
22
+ /**
23
+ * @description 自动选中第一个
24
+ * @memberof ListBoxEditorController
25
+ */
26
+ __publicField(this, "autoSelectFirstOption", false);
22
27
  }
23
28
  async onInit() {
29
+ var _a;
24
30
  super.onInit();
25
31
  if (this.model.appCodeListId) {
26
32
  const app = await ibiz.hub.getApp(this.context.srfappid);
27
33
  this.codeList = app.codeList.getCodeList(this.model.appCodeListId);
28
34
  }
35
+ if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
36
+ this.autoSelectFirstOption = this.toBoolean(
37
+ this.editorParams.autoselectfirstoption
38
+ );
39
+ }
29
40
  }
30
41
  }
31
42
 
@@ -42,9 +42,20 @@ class ListBoxPickerEditorController extends runtime.EditorController {
42
42
  * @type {IAcItemProvider}
43
43
  */
44
44
  __publicField(this, "acItemProvider");
45
+ /**
46
+ * @description 自动选中第一个
47
+ * @memberof ListBoxPickerEditorController
48
+ */
49
+ __publicField(this, "autoSelectFirstOption", false);
45
50
  }
46
51
  async onInit() {
52
+ var _a;
47
53
  super.onInit();
54
+ if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
55
+ this.autoSelectFirstOption = this.toBoolean(
56
+ this.editorParams.autoselectfirstoption
57
+ );
58
+ }
48
59
  if (this.model.editorType === "LISTBOXPICKUP") {
49
60
  if (this.model.appDEDataSetId) {
50
61
  this.interfaceName = this.model.appDEDataSetId;
@@ -73,9 +73,16 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
73
73
  useInValueChange();
74
74
  };
75
75
  const items = vue.ref([]);
76
+ const autoSelectFirstOption = () => {
77
+ const item = items.value[0];
78
+ if (!c.autoSelectFirstOption || props.value || !item)
79
+ return;
80
+ emit("change", item.value, void 0, true);
81
+ };
76
82
  vue.watch(() => props.data, (newVal) => {
77
83
  c.loadCodeList(newVal).then((_codeList) => {
78
84
  items.value = _codeList;
85
+ autoSelectFirstOption();
79
86
  });
80
87
  }, {
81
88
  immediate: true,
@@ -19,9 +19,14 @@ class RadioButtonListEditorController extends runtime.CodeListEditorController {
19
19
  * @type {(number | undefined)}
20
20
  */
21
21
  __publicField(this, "rowNumber");
22
+ /**
23
+ * @description 自动选中第一个
24
+ * @memberof RadioButtonListEditorController
25
+ */
26
+ __publicField(this, "autoSelectFirstOption", false);
22
27
  }
23
28
  async onInit() {
24
- var _a, _b;
29
+ var _a, _b, _c;
25
30
  super.onInit();
26
31
  if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
27
32
  this.rowNumber = Number(this.editorParams.rowNumber);
@@ -29,6 +34,11 @@ class RadioButtonListEditorController extends runtime.CodeListEditorController {
29
34
  if ((_b = this.editorParams) == null ? void 0 : _b.rownumber) {
30
35
  this.rowNumber = Number(this.editorParams.rownumber);
31
36
  }
37
+ if ((_c = this.editorParams) == null ? void 0 : _c.autoselectfirstoption) {
38
+ this.autoSelectFirstOption = this.toBoolean(
39
+ this.editorParams.autoselectfirstoption
40
+ );
41
+ }
32
42
  }
33
43
  }
34
44
 
@@ -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.113",
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.118",
41
+ "@ibiz-template/runtime": "0.7.41-alpha.118",
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.118",
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 {