@ibiz-template/vue3-components 0.7.41-alpha.11 → 0.7.41-alpha.13

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 (182) hide show
  1. package/dist/ibiz-markdown-editor-0VHzFa2l.js +1 -0
  2. package/dist/{index-tjsobxd3.js → index-EYFbyMUF.js} +1 -1
  3. package/dist/index-LzKAcXeH.js +4 -0
  4. package/dist/{index-CsiyXR27.js → index-kNUznzXY.js} +1 -1
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/{wang-editor-kUY8Nlib.js → wang-editor-Iw-hqw1q.js} +1 -1
  8. package/dist/{xlsx-util-s4akItw_.js → xlsx-util-FnTIZeKq.js} +1 -1
  9. package/es/common/grid-setting/grid-setting.d.ts +2 -37
  10. package/es/common/grid-setting/grid-setting.mjs +8 -4
  11. package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
  12. package/es/control/calendar/components/calendar-user/calendar-user.mjs +76 -2
  13. package/es/control/data-view/data-view.d.ts +1 -1
  14. package/es/control/data-view/index.d.ts +1 -1
  15. package/es/control/drtab/drtab-control.util.mjs +1 -1
  16. package/es/control/form/form/index.mjs +2 -0
  17. package/es/control/form/form-detail/form-iframe/form-iframe.css +1 -0
  18. package/es/control/form/form-detail/form-iframe/form-iframe.d.ts +29 -0
  19. package/es/control/form/form-detail/form-iframe/form-iframe.mjs +53 -0
  20. package/es/control/form/form-detail/form-iframe/form-iframe.provider.d.ts +13 -0
  21. package/es/control/form/form-detail/form-iframe/form-iframe.provider.mjs +21 -0
  22. package/es/control/form/form-detail/form-iframe/index.d.ts +25 -0
  23. package/es/control/form/form-detail/form-iframe/index.mjs +12 -0
  24. package/es/control/form/form-detail/form-item/form-item.css +1 -1
  25. package/es/control/form/form-detail/form-item/form-item.mjs +6 -4
  26. package/es/control/form/form-detail/index.d.ts +1 -0
  27. package/es/control/form/form-detail/index.mjs +1 -0
  28. package/es/control/form/index.mjs +1 -0
  29. package/es/control/gantt/gantt.d.ts +1 -1
  30. package/es/control/gantt/gantt.mjs +1 -0
  31. package/es/control/gantt/index.d.ts +1 -1
  32. package/es/control/grid/grid/grid.css +1 -1
  33. package/es/control/grid/grid/grid.d.ts +1 -1
  34. package/es/control/grid/grid/index.d.ts +1 -1
  35. package/es/control/grid/grid/index.mjs +2 -0
  36. package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -4
  37. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +5 -8
  38. package/es/control/grid/virtualized-table/index.d.ts +136 -0
  39. package/es/control/grid/virtualized-table/index.mjs +18 -0
  40. package/es/control/grid/virtualized-table/virtualized-table.css +1 -0
  41. package/es/control/grid/virtualized-table/virtualized-table.d.ts +200 -0
  42. package/es/control/grid/virtualized-table/virtualized-table.mjs +325 -0
  43. package/es/control/grid/virtualized-table/virtualized-table.provider.d.ts +10 -0
  44. package/es/control/grid/virtualized-table/virtualized-table.provider.mjs +14 -0
  45. package/es/control/grid/virtualized-table/virtualized-table.util.d.ts +95 -0
  46. package/es/control/grid/virtualized-table/virtualized-table.util.mjs +191 -0
  47. package/es/control/index.mjs +1 -0
  48. package/es/control/kanban/index.d.ts +44 -1
  49. package/es/control/kanban/kanban.d.ts +56 -1
  50. package/es/control/kanban/kanban.mjs +36 -2
  51. package/es/control/list/index.d.ts +1 -1
  52. package/es/control/list/list.d.ts +1 -1
  53. package/es/control/list/list.mjs +1 -1
  54. package/es/control/search-bar/search-bar.mjs +3 -0
  55. package/es/control/toolbar/toolbar.mjs +7 -7
  56. package/es/control/tree/index.d.ts +1 -1
  57. package/es/control/tree/tree.d.ts +1 -1
  58. package/es/control/tree-grid/index.d.ts +1 -1
  59. package/es/control/tree-grid/tree-grid.d.ts +1 -1
  60. package/es/editor/array/ibiz-array/ibiz-array.css +1 -1
  61. package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -0
  62. package/es/editor/array/ibiz-array/ibiz-array.mjs +4 -1
  63. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -0
  64. package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -0
  65. package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -0
  66. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +2 -1
  67. package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -0
  68. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -0
  69. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -0
  70. package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +5 -0
  71. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -0
  72. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -0
  73. package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.d.ts +1 -1
  74. package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +3 -2
  75. package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -0
  76. package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +2 -1
  77. package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +5 -5
  78. package/es/editor/date-range-select/date-range-select.controller.mjs +9 -0
  79. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +2 -0
  80. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -0
  81. package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.d.ts +4 -3
  82. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
  83. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +10 -7
  84. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +5 -5
  85. package/es/editor/html/wang-editor/wang-editor.d.ts +1 -0
  86. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -0
  87. package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.d.ts +1 -0
  88. package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +1 -1
  89. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +1 -0
  90. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
  91. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -0
  92. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -0
  93. package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +3 -0
  94. package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +4 -3
  95. package/es/editor/span/span/span.d.ts +3 -1
  96. package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -0
  97. package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -0
  98. package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
  99. package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +4 -77
  100. package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +167 -108
  101. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -0
  102. package/es/editor/text-box/input/input.d.ts +7 -4
  103. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
  104. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
  105. package/es/index.mjs +1 -0
  106. package/es/locale/en/index.d.ts +6 -0
  107. package/es/locale/en/index.mjs +6 -0
  108. package/es/locale/zh-CN/index.d.ts +6 -0
  109. package/es/locale/zh-CN/index.mjs +6 -0
  110. package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +41 -0
  111. package/es/panel-component/panel-button/panel-button.controller.mjs +2 -1
  112. package/es/panel-component/panel-button/panel-button.mjs +1 -1
  113. package/es/panel-component/user-message/async-action/async-action/async-action.provider.mjs +14 -0
  114. package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
  115. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
  116. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +34 -0
  117. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +88 -0
  118. package/es/panel-component/user-message/index.d.ts +2 -32
  119. package/es/panel-component/user-message/index.mjs +21 -11
  120. package/es/util/app-util/app-util.d.ts +54 -2
  121. package/es/util/app-util/app-util.mjs +48 -1
  122. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  123. package/es/view-engine/md-custom-view.engine.d.ts +8 -2
  124. package/es/view-engine/md-custom-view.engine.mjs +14 -2
  125. package/lib/common/grid-setting/grid-setting.cjs +8 -4
  126. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +76 -2
  127. package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
  128. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  129. package/lib/control/form/form/index.cjs +2 -0
  130. package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +58 -0
  131. package/lib/control/form/form-detail/form-iframe/form-iframe.css +1 -0
  132. package/lib/control/form/form-detail/form-iframe/form-iframe.provider.cjs +23 -0
  133. package/lib/control/form/form-detail/form-iframe/index.cjs +17 -0
  134. package/lib/control/form/form-detail/form-item/form-item.cjs +5 -3
  135. package/lib/control/form/form-detail/form-item/form-item.css +1 -1
  136. package/lib/control/form/form-detail/index.cjs +2 -0
  137. package/lib/control/form/index.cjs +6 -4
  138. package/lib/control/gantt/gantt.cjs +1 -0
  139. package/lib/control/grid/grid/grid.css +1 -1
  140. package/lib/control/grid/grid/index.cjs +2 -0
  141. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -6
  142. package/lib/control/grid/virtualized-table/index.cjs +23 -0
  143. package/lib/control/grid/virtualized-table/virtualized-table.cjs +327 -0
  144. package/lib/control/grid/virtualized-table/virtualized-table.css +1 -0
  145. package/lib/control/grid/virtualized-table/virtualized-table.provider.cjs +16 -0
  146. package/lib/control/grid/virtualized-table/virtualized-table.util.cjs +193 -0
  147. package/lib/control/index.cjs +82 -80
  148. package/lib/control/kanban/kanban.cjs +34 -0
  149. package/lib/control/list/list.cjs +1 -1
  150. package/lib/control/search-bar/search-bar.cjs +3 -0
  151. package/lib/control/toolbar/toolbar.cjs +7 -7
  152. package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -1
  153. package/lib/editor/array/ibiz-array/ibiz-array.css +1 -1
  154. package/lib/editor/date-range-select/date-range-select.controller.cjs +9 -0
  155. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +5 -5
  156. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
  157. package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +1 -1
  158. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
  159. package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +166 -107
  160. package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
  161. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
  162. package/lib/index.cjs +112 -110
  163. package/lib/locale/en/index.cjs +6 -0
  164. package/lib/locale/zh-CN/index.cjs +6 -0
  165. package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +45 -0
  166. package/lib/panel-component/panel-button/panel-button.cjs +1 -1
  167. package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -1
  168. package/lib/panel-component/user-message/async-action/async-action/async-action.provider.cjs +14 -0
  169. package/lib/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
  170. package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +90 -0
  171. package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
  172. package/lib/panel-component/user-message/index.cjs +21 -11
  173. package/lib/util/app-util/app-util.cjs +47 -0
  174. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  175. package/lib/view-engine/md-custom-view.engine.cjs +14 -2
  176. package/package.json +11 -6
  177. package/dist/ibiz-markdown-editor-KyK5mBTS.js +0 -1
  178. package/dist/index-F_Yq1N9t.js +0 -4
  179. package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +0 -23
  180. package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +0 -27
  181. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.9_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  182. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.9_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -1,4 +1,4 @@
1
- import { ref, computed, watch, resolveComponent, createVNode, createTextVNode, defineComponent } from 'vue';
1
+ import { computed, ref, watch, resolveComponent, createVNode, createTextVNode, defineComponent } from 'vue';
2
2
  import { getInputIpProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-input-ip.css';
4
4
 
@@ -12,71 +12,139 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
12
12
  }) {
13
13
  const ns = useNamespace("input-ip");
14
14
  const c = props.controller;
15
- const editorRef = ref();
16
15
  const showFormDefaultContent = computed(() => {
17
16
  if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
18
17
  return true;
19
18
  }
20
19
  return false;
21
20
  });
22
- const currentVal = ref([]);
23
21
  const activeElement = ref(false);
24
22
  const isAllBlur = ref(false);
25
- const firstIp = ref("");
26
- const secIp = ref("");
27
- const thirdIp = ref("");
28
- const forIp = ref("");
29
- if (props.value) {
30
- const ipArr = props.value.split(".");
31
- currentVal.value = ipArr;
32
- firstIp.value = currentVal.value[0];
33
- secIp.value = currentVal.value[1];
34
- thirdIp.value = currentVal.value[2];
35
- forIp.value = currentVal.value[3];
36
- }
37
- const checkIpVal = (newVal, oldVal, ip, index) => {
38
- if (newVal === "")
39
- return;
40
- const reg = /^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5]))))$/g;
41
- if (reg.test(newVal)) {
42
- currentVal.value[index] = newVal;
43
- } else if (ip) {
44
- ibiz.message.warning(ibiz.i18n.t("editor.textBox.warningMessage", {
45
- num: index + 1
46
- }));
47
- ip.value = oldVal;
48
- currentVal.value[index] = oldVal;
23
+ const splitIp = (ip) => {
24
+ const parts = ip.split(".");
25
+ return [parts[0] || "", parts[1] || "", parts[2] || "", parts[3] || ""];
26
+ };
27
+ const joinIp = (parts) => {
28
+ return parts.join(".");
29
+ };
30
+ const isValidIp = (parts) => {
31
+ return parts.every((part) => {
32
+ if (!part) {
33
+ return false;
34
+ }
35
+ return /^(0|[1-9]\d?|1\d\d|2[0-4]\d|25[0-5])$/.test(part);
36
+ });
37
+ };
38
+ const ipSegments = ref(splitIp(props.value || ""));
39
+ const ipInputs = ref([]);
40
+ const handleInput = (value, index) => {
41
+ var _a;
42
+ value = value.replace(/[^0-9]/g, "").slice(0, 3);
43
+ if (value) {
44
+ const num = parseInt(value, 10);
45
+ if (num > 255) {
46
+ value = "255";
47
+ } else {
48
+ value = "".concat(num);
49
+ }
50
+ }
51
+ ipSegments.value[index] = value;
52
+ const target = ipInputs.value[index];
53
+ const input = target == null ? void 0 : target.input;
54
+ if (ipSegments.value[index].length === 3 && index < 3 && input && input.selectionStart === ipSegments.value[index].length && input.selectionEnd === ipSegments.value[index].length) {
55
+ const ipInput = ipInputs.value[index + 1];
56
+ if (ipInput) {
57
+ ipInput.focus();
58
+ (_a = ipInput.input) == null ? void 0 : _a.setSelectionRange(0, ipSegments.value[index + 1].length);
59
+ }
49
60
  }
50
- if (firstIp.value && secIp.value && thirdIp.value && forIp.value) {
51
- emit("change", "".concat(firstIp.value, ".").concat(secIp.value, ".").concat(thirdIp.value, ".").concat(forIp.value));
61
+ if (isValidIp(ipSegments.value)) {
62
+ emit("change", joinIp(ipSegments.value));
52
63
  }
53
64
  };
54
- watch(firstIp, (newVal, oldVal) => {
55
- checkIpVal(newVal, oldVal, firstIp, 0);
56
- });
57
- watch(secIp, (newVal, oldVal) => {
58
- checkIpVal(newVal, oldVal, secIp, 1);
59
- });
60
- watch(thirdIp, (newVal, oldVal) => {
61
- checkIpVal(newVal, oldVal, thirdIp, 2);
62
- });
63
- watch(forIp, (newVal, oldVal) => {
64
- checkIpVal(newVal, oldVal, forIp, 3);
65
- });
66
- watch(editorRef, (newVal) => {
67
- if (props.autoFocus && newVal) {
68
- const input = newVal.$el.getElementsByTagName("input")[0];
69
- input.focus();
65
+ const handleKeydown = (event, index) => {
66
+ var _a, _b, _c, _d, _e;
67
+ if (event.key === "Enter") {
68
+ emit("enter", event);
69
+ return;
70
70
  }
71
- });
72
- const getFocus = () => {
71
+ if (/^[0-9]$/.test(event.key)) {
72
+ const input = event.target;
73
+ if (input && ipSegments.value[index].length === 3 && input.selectionStart === input.selectionEnd) {
74
+ event.preventDefault();
75
+ if (index < 3 && input.selectionEnd === ipSegments.value[index].length) {
76
+ const nextIndex = index + 1;
77
+ const nextInput = ipInputs.value[nextIndex];
78
+ if (nextInput) {
79
+ nextInput.focus();
80
+ (_a = nextInput.input) == null ? void 0 : _a.setSelectionRange(0, ipSegments.value[nextIndex].length);
81
+ }
82
+ }
83
+ }
84
+ return;
85
+ }
86
+ if (event.key === ".") {
87
+ event.preventDefault();
88
+ const input = event.target;
89
+ if (input && index < 3 && input.selectionStart === input.selectionEnd && input.selectionEnd !== 0 && ipSegments.value[index].length) {
90
+ const nextIndex = index + 1;
91
+ const nextInput = ipInputs.value[nextIndex];
92
+ if (nextInput) {
93
+ nextInput.focus();
94
+ (_b = nextInput.input) == null ? void 0 : _b.setSelectionRange(0, ipSegments.value[nextIndex].length);
95
+ }
96
+ }
97
+ return;
98
+ }
99
+ if (event.key === "Backspace") {
100
+ const input = event.target;
101
+ if (input && index > 0 && input.selectionStart === 0 && input.selectionEnd === 0) {
102
+ event.preventDefault();
103
+ const prevIndex = index - 1;
104
+ const prevValue = ipSegments.value[prevIndex];
105
+ const prevInput = ipInputs.value[prevIndex];
106
+ if (prevValue.length > 0) {
107
+ ipSegments.value[prevIndex] = prevValue.slice(0, -1);
108
+ }
109
+ if (prevInput) {
110
+ prevInput.focus();
111
+ (_c = prevInput.input) == null ? void 0 : _c.setSelectionRange(ipSegments.value[prevIndex].length, ipSegments.value[prevIndex].length);
112
+ }
113
+ }
114
+ }
115
+ if (event.key === "ArrowLeft") {
116
+ const input = event.target;
117
+ if (input && index > 0 && input.selectionStart === 0 && input.selectionEnd === 0) {
118
+ event.preventDefault();
119
+ const prevIndex = index - 1;
120
+ const prevInput = ipInputs.value[prevIndex];
121
+ if (prevInput) {
122
+ prevInput.focus();
123
+ (_d = prevInput.input) == null ? void 0 : _d.setSelectionRange(ipSegments.value[prevIndex].length, ipSegments.value[prevIndex].length);
124
+ }
125
+ }
126
+ }
127
+ if (event.key === "ArrowRight") {
128
+ const input = event.target;
129
+ if (input && index < 3 && input.selectionStart === ipSegments.value[index].length && input.selectionEnd === ipSegments.value[index].length) {
130
+ event.preventDefault();
131
+ const nextIndex = index + 1;
132
+ const nextInput = ipInputs.value[nextIndex];
133
+ if (nextInput) {
134
+ nextInput.focus();
135
+ (_e = nextInput.input) == null ? void 0 : _e.setSelectionRange(0, 0);
136
+ }
137
+ }
138
+ }
139
+ };
140
+ const handleFocus = () => {
73
141
  activeElement.value = true;
74
142
  if (isAllBlur.value) {
75
143
  isAllBlur.value = false;
76
144
  emit("focus");
77
145
  }
78
146
  };
79
- const blur = () => {
147
+ const handleBlur = () => {
80
148
  activeElement.value = false;
81
149
  setTimeout(() => {
82
150
  if (!activeElement.value) {
@@ -85,75 +153,66 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
85
153
  }
86
154
  }, 0);
87
155
  };
88
- const handleKeyUp = (e) => {
89
- if (e && e.code === "Enter") {
90
- emit("enter", e);
156
+ watch(() => props.value, (newVal) => {
157
+ ipSegments.value = splitIp(newVal || "");
158
+ });
159
+ watch(() => ipInputs.value[0], (input) => {
160
+ if (props.autoFocus && input) {
161
+ input.focus();
91
162
  }
92
- };
163
+ });
93
164
  return {
94
165
  ns,
95
166
  c,
96
- editorRef,
97
- currentVal,
98
- getFocus,
99
- blur,
100
- firstIp,
101
- secIp,
102
- thirdIp,
103
- forIp,
104
167
  showFormDefaultContent,
105
- handleKeyUp
168
+ activeElement,
169
+ ipSegments,
170
+ ipInputs,
171
+ joinIp,
172
+ handleInput,
173
+ handleKeydown,
174
+ handleFocus,
175
+ handleBlur
106
176
  };
107
177
  },
108
178
  render() {
109
- return createVNode("div", {
110
- "class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
111
- }, [createVNode(resolveComponent("el-input"), {
112
- "ref": "editorRef",
113
- "type": "text",
114
- "size": "small",
115
- "disabled": this.disabled,
116
- "readonly": this.readonly,
117
- "onFocus": this.getFocus,
118
- "onBlur": this.blur,
119
- "onKeyup": this.handleKeyUp,
120
- "maxlength": 3,
121
- "modelValue": this.firstIp,
122
- "onUpdate:modelValue": ($event) => this.firstIp = $event
123
- }, null), createTextVNode("."), createVNode(resolveComponent("el-input"), {
124
- "type": "text",
125
- "size": "small",
126
- "disabled": this.disabled,
127
- "readonly": this.readonly,
128
- "onFocus": this.getFocus,
129
- "onBlur": this.blur,
130
- "onKeyup": this.handleKeyUp,
131
- "maxlength": 3,
132
- "modelValue": this.secIp,
133
- "onUpdate:modelValue": ($event) => this.secIp = $event
134
- }, null), createTextVNode("."), createVNode(resolveComponent("el-input"), {
135
- "type": "text",
136
- "size": "small",
137
- "disabled": this.disabled,
138
- "readonly": this.readonly,
139
- "onFocus": this.getFocus,
140
- "onBlur": this.blur,
141
- "onKeyup": this.handleKeyUp,
142
- "maxlength": 3,
143
- "modelValue": this.thirdIp,
144
- "onUpdate:modelValue": ($event) => this.thirdIp = $event
145
- }, null), createTextVNode("."), createVNode(resolveComponent("el-input"), {
146
- "type": "text",
147
- "size": "small",
148
- "disabled": this.disabled,
149
- "readonly": this.readonly,
150
- "onFocus": this.getFocus,
151
- "onBlur": this.blur,
152
- "onKeyup": this.handleKeyUp,
153
- "maxlength": 3,
154
- "modelValue": this.forIp,
155
- "onUpdate:modelValue": ($event) => this.forIp = $event
179
+ let content = null;
180
+ if (this.readonly) {
181
+ content = this.value;
182
+ } else {
183
+ content = createVNode("div", {
184
+ "class": this.ns.b("content")
185
+ }, [this.ipSegments.map((segment, index) => {
186
+ return [createVNode(resolveComponent("el-input"), {
187
+ "model-value": segment,
188
+ "maxlength": 4,
189
+ "disabled": this.disabled,
190
+ "readonly": this.readonly,
191
+ "ref": (el) => {
192
+ if (el) {
193
+ this.ipInputs[index] = el;
194
+ } else {
195
+ this.ipInputs[index] = void 0;
196
+ }
197
+ },
198
+ "onInput": (value) => this.handleInput(value, index),
199
+ "onKeydown": (e) => this.handleKeydown(e, index),
200
+ "onFocus": this.handleFocus,
201
+ "onBlur": this.handleBlur
202
+ }, null), index < 3 && createVNode("span", {
203
+ "class": this.ns.b("dot")
204
+ }, [createTextVNode(".")])];
205
+ })]);
206
+ }
207
+ const formDefaultContent = createVNode("div", {
208
+ "class": this.ns.b("form-default-content")
209
+ }, [this.ipSegments.some((segment) => segment) ? this.joinIp(this.ipSegments) : createVNode(resolveComponent("iBizEditorEmptyText"), {
210
+ "showPlaceholder": this.c.emptyShowPlaceholder,
211
+ "placeHolder": this.c.placeHolder
156
212
  }, null)]);
213
+ return createVNode("div", {
214
+ "class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("focus", this.activeElement && !this.disabled && !this.readonly)]
215
+ }, [this.showFormDefaultContent && formDefaultContent, content]);
157
216
  }
158
217
  });
159
218
 
@@ -10,6 +10,7 @@ import { TextBoxEditorController } from '../text-box-editor.controller';
10
10
  * @editorparams {name:minvalue,parameterType:number,defaultvalue:-Infinity,description:el-input-number组件的min属性,设置数值框允许的最小值}
11
11
  * @editorparams {name:enablethousands,parameterType:boolean,defaultvalue:false,description:是否启用千分位}
12
12
  * @editorparams {"name":"triggermode","parameterType":"'blur' | 'input'","defaultvalue":"'blur'","description":"指定编辑器触发 `change` 值变更事件的模式,input: 输入框输入时触发事件,blur:输入框blur时触发事件"}
13
+ * @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
13
14
  * @ignoreprops overflowMode
14
15
  * @ignoreemits infoTextChange
15
16
  */
@@ -3,15 +3,18 @@ import './input.scss';
3
3
  /**
4
4
  * 文本框
5
5
  *
6
- * @description 使用el-input组件,用于数据录入,通过鼠标或键盘输入字符。支持编辑器类型包含:`文本框`、`多行输入框`、`多行输入(10行)`、`密码框`
6
+ * @description 使用el-input组件,用于数据录入,通过鼠标或键盘输入字符。支持编辑器类型包含:`文本框`、`多行输入框`、`多行输入框(10行)`、`密码框`
7
7
  * @primary
8
- * @editorparams {name:showlimit,parameterType:boolean,defaultvalue:true,description:el-input组件的show-word-limit属性,控制文本域是否显示字数限制,当编辑器类型为多行输入框、多行输入(10行)时生效}
9
- * @editorparams {name:isauto,parameterType:boolean,defaultvalue:false,description:el-input组件的autosize属性,控制文本域高度是否自适应,当编辑器类型为多行输入框、多行输入(10行)时生效}
8
+ * @editorparams {name:showlimit,parameterType:boolean,defaultvalue:true,description:el-input组件的show-word-limit属性,控制文本域是否显示字数限制,当编辑器类型为多行输入框、多行输入框(10行)时生效}
9
+ * @editorparams {name:isauto,parameterType:boolean,defaultvalue:false,description:el-input组件的autosize属性,控制文本域高度是否自适应,当编辑器类型为多行输入框、多行输入框(10行)时生效}
10
10
  * @editorparams {name:autocomplete,parameterType:boolean,defaultvalue:false,description:el-input组件的autocomplete属性,是否允许自动填充}
11
11
  * @editorparams {name:ac,parameterType:boolean,defaultvalue:false,description:是否启用ac自填模式}
12
- * @editorparams {name:srfaiappendcurdata,parameterType:boolean,defaultvalue:false,description:在打开AI功能时,该参数用于判断是否传入对象参数,主要用于在请求历史记录时,附加当前参数}
12
+ * @editorparams {name:srfaiappendcurdata,parameterType:boolean,defaultvalue:false,description:在打开AI功能时,该参数用于判断是否传入对象参数,主要用于在请求历史记录时,附加当前数据对象}
13
13
  * @editorparams {name:srfaiappendcurcontent,parameterType:string,description:在打开AI功能时,如果该参数存在值,会将其传入编辑内容作为用户消息,主要用于在请求历史记录后,附加当前编辑内容作为用户消息}
14
14
  * @editorparams {"name":"triggermode","parameterType":"'blur' | 'input'","defaultvalue":"'blur'","description":"指定编辑器触发 `change` 值变更事件的模式,input: 输入框输入时触发事件,blur:输入框blur时触发事件"}
15
+ * @editorparams {name:minlength,parameterType:number,description:指定编辑器输入内容的最小字数}
16
+ * @editorparams {name:maxlength,parameterType:number,description:指定编辑器输入内容的最大字数}
17
+ * @editorparams {name:readonly,parameterType:boolean,defaultvalue:false,description:设置编辑器是否为只读态}
15
18
  * @ignoreprops overflowMode
16
19
  * @ignoreemits infoTextChange
17
20
  */
@@ -11,6 +11,7 @@ import './ibiz-file-upload.scss';
11
11
  * @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片或文件上传时,用于计算上传路径"}
12
12
  * @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片或文件下载时,用于计算下载路径"}
13
13
  * @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
14
+ * @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
14
15
  * @ignoreprops autoFocus | overflowMode
15
16
  * @ignoreemits blur | focus | enter | infoTextChange
16
17
  */
@@ -78,7 +78,7 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
78
78
  "file-list": this.files,
79
79
  "action": this.uploadUrl,
80
80
  "headers": this.headers,
81
- "disabled": this.disabled,
81
+ "disabled": this.disabled || this.readonly,
82
82
  "multiple": this.c.multiple,
83
83
  "limit": this.limit,
84
84
  "drag": !!this.c.isDrag,
package/es/index.mjs CHANGED
@@ -40,6 +40,7 @@ export { IBizFormRawItem } from './control/form/form-detail/form-rawitem/index.m
40
40
  export { IBizFormTabPanel } from './control/form/form-detail/form-tab-panel/index.mjs';
41
41
  export { IBizFormTabPage } from './control/form/form-detail/form-tab-page/index.mjs';
42
42
  export { IBizFormButtonList } from './control/form/form-detail/form-button-list/index.mjs';
43
+ export { IBizFormIFrame } from './control/form/form-detail/form-iframe/index.mjs';
43
44
  export { IBizEditFormControl } from './control/form/edit-form/index.mjs';
44
45
  export { IBizFormControl } from './control/form/form/index.mjs';
45
46
  export { IBizToolbarControl } from './control/toolbar/index.mjs';
@@ -1477,6 +1477,12 @@ declare const _default: {
1477
1477
  successImport: string;
1478
1478
  ImportFailed: string;
1479
1479
  };
1480
+ asyncDataExport: {
1481
+ exportDetailPrompt: string;
1482
+ excuteTime: string;
1483
+ downloadFile: string;
1484
+ executing: string;
1485
+ };
1480
1486
  asyncActionTab: {
1481
1487
  noSupportType: string;
1482
1488
  noAsyncAction: string;
@@ -743,6 +743,12 @@ var index = {
743
743
  successImport: "Number of successful imports: ",
744
744
  ImportFailed: "Number of import failures: "
745
745
  },
746
+ asyncDataExport: {
747
+ exportDetailPrompt: "Export data details-{name}",
748
+ excuteTime: "Execution time",
749
+ downloadFile: "DownLoad File",
750
+ executing: "Executing......"
751
+ },
746
752
  asyncActionTab: {
747
753
  noSupportType: "Asynchronous operation type {type} is not supported currently",
748
754
  noAsyncAction: "There are currently no asynchronous operations available"
@@ -1472,6 +1472,12 @@ declare const _default: {
1472
1472
  successImport: string;
1473
1473
  ImportFailed: string;
1474
1474
  };
1475
+ asyncDataExport: {
1476
+ exportDetailPrompt: string;
1477
+ excuteTime: string;
1478
+ downloadFile: string;
1479
+ executing: string;
1480
+ };
1475
1481
  asyncActionTab: {
1476
1482
  noSupportType: string;
1477
1483
  noAsyncAction: string;
@@ -739,6 +739,12 @@ var index = {
739
739
  successImport: "\u6210\u529F\u5BFC\u5165\u6570: ",
740
740
  ImportFailed: "\u5BFC\u5165\u5931\u8D25\u6570: "
741
741
  },
742
+ asyncDataExport: {
743
+ exportDetailPrompt: "\u5BFC\u51FA\u6570\u636E\u8BE6\u60C5-{name}",
744
+ excuteTime: "\u6267\u884C\u65F6\u95F4",
745
+ downloadFile: "\u4E0B\u8F7D\u6587\u4EF6",
746
+ executing: "\u6267\u884C\u4E2D......"
747
+ },
742
748
  asyncActionTab: {
743
749
  noSupportType: "\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B{type}\u6682\u672A\u652F\u6301",
744
750
  noAsyncAction: "\u6682\u65E0\u5F02\u6B65\u64CD\u4F5C"
@@ -0,0 +1,41 @@
1
+ import { commonjsGlobal, getDefaultExportFromCjs } from '../../../../../../../_virtual/_commonjsHelpers.mjs';
2
+ import { __module as dist$1 } from '../../../../../../../_virtual/index.mjs';
3
+
4
+ /*
5
+ *****************************************************************************
6
+ Copyright (c) Microsoft Corporation.
7
+
8
+ Permission to use, copy, modify, and/or distribute this software for any
9
+ purpose with or without fee is hereby granted.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
+ PERFORMANCE OF THIS SOFTWARE.
18
+ *****************************************************************************/
19
+ var dist = dist$1.exports;
20
+
21
+ (function (module, exports) {
22
+ 'use strict';(function(q,r){"object"==='object'&&"undefined"!=='object'?module.exports=r():"function"===typeof undefined&&undefined.amd?undefined(r):(q=q||self,q.AMapLoader=r());})(commonjsGlobal,function(){function q(a,e,h,c){function b(a){return a instanceof h?a:new h(function(b){b(a);})}return new (h||(h=Promise))(function(h,g){function f(a){try{d(c.next(a));}catch(u){g(u);}}function k(a){try{d(c["throw"](a));}catch(u){g(u);}}function d(a){a.done?h(a.value):b(a.value).then(f,k);}d((c=c.apply(a,e||[])).next());})}
23
+ function r(a,g){function e(a){return function(f){return c([a,f])}}function c(d){if(m)throw new TypeError("Generator is already executing.");for(;b;)try{if(m=1,k&&(f=d[0]&2?k["return"]:d[0]?k["throw"]||((f=k["return"])&&f.call(k),0):k.next)&&!(f=f.call(k,d[1])).done)return f;if(k=0,f)d=[d[0]&2,f.value];switch(d[0]){case 0:case 1:f=d;break;case 4:return b.label++,{value:d[1],done:!1};case 5:b.label++;k=d[1];d=[0];continue;case 7:d=b.ops.pop();b.trys.pop();continue;default:if(!(f=b.trys,f=0<f.length&&
24
+ f[f.length-1])&&(6===d[0]||2===d[0])){b=0;continue}if(3===d[0]&&(!f||d[1]>f[0]&&d[1]<f[3]))b.label=d[1];else if(6===d[0]&&b.label<f[1])b.label=f[1],f=d;else if(f&&b.label<f[2])b.label=f[2],b.ops.push(d);else {f[2]&&b.ops.pop();b.trys.pop();continue}}d=g.call(a,b);}catch(w){d=[6,w],k=0;}finally{m=f=0;}if(d[0]&5)throw d[1];return {value:d[0]?d[1]:void 0,done:!0}}var b={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},m,k,f,l;return l={next:e(0),"throw":e(1),"return":e(2)},"function"===
25
+ typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l}function t(a){var e=[];a.AMapUI&&e.push(x(a.AMapUI));a.Loca&&e.push(y(a.Loca));return Promise.all(e)}function x(a){return new Promise(function(p,h){var c=[];if(a.plugins)for(var b=0;b<a.plugins.length;b+=1)-1==g.AMapUI.plugins.indexOf(a.plugins[b])&&c.push(a.plugins[b]);if(l.AMapUI===e.failed)h("\u524d\u6b21\u8bf7\u6c42 AMapUI \u5931\u8d25");else if(l.AMapUI===e.notload){l.AMapUI=e.loading;g.AMapUI.version=a.version||g.AMapUI.version;b=
26
+ g.AMapUI.version;var m=document.body||document.head,k=document.createElement("script");k.type="text/javascript";k.src="https://webapi.amap.com/ui/"+b+"/main.js";k.onerror=function(a){l.AMapUI=e.failed;h("\u8bf7\u6c42 AMapUI \u5931\u8d25");};k.onload=function(){l.AMapUI=e.loaded;if(c.length)window.AMapUI.loadUI(c,function(){for(var a=0,b=c.length;a<b;a++){var d=c[a].split("/").slice(-1)[0];window.AMapUI[d]=arguments[a];}for(p();n.AMapUI.length;)n.AMapUI.splice(0,1)[0]();});else for(p();n.AMapUI.length;)n.AMapUI.splice(0,
27
+ 1)[0]();};m.appendChild(k);}else l.AMapUI===e.loaded?a.version&&a.version!==g.AMapUI.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c AMapUI \u6df7\u7528"):c.length?window.AMapUI.loadUI(c,function(){for(var a=0,b=c.length;a<b;a++){var d=c[a].split("/").slice(-1)[0];window.AMapUI[d]=arguments[a];}p();}):p():a.version&&a.version!==g.AMapUI.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c AMapUI \u6df7\u7528"):n.AMapUI.push(function(a){a?h(a):c.length?window.AMapUI.loadUI(c,function(){for(var a=
28
+ 0,b=c.length;a<b;a++){var f=c[a].split("/").slice(-1)[0];window.AMapUI[f]=arguments[a];}p();}):p();});})}function y(a){return new Promise(function(p,h){if(l.Loca===e.failed)h("\u524d\u6b21\u8bf7\u6c42 Loca \u5931\u8d25");else if(l.Loca===e.notload){l.Loca=e.loading;g.Loca.version=a.version||g.Loca.version;var c=g.Loca.version,b=g.AMap.version.startsWith("2"),m=c.startsWith("2");if(b&&!m||!b&&m)h("JSAPI \u4e0e Loca \u7248\u672c\u4e0d\u5bf9\u5e94\uff01\uff01");else {b=g.key;m=document.body||document.head;
29
+ var k=document.createElement("script");k.type="text/javascript";k.src="https://webapi.amap.com/loca?v="+c+"&key="+b;k.onerror=function(a){l.Loca=e.failed;h("\u8bf7\u6c42 AMapUI \u5931\u8d25");};k.onload=function(){l.Loca=e.loaded;for(p();n.Loca.length;)n.Loca.splice(0,1)[0]();};m.appendChild(k);}}else l.Loca===e.loaded?a.version&&a.version!==g.Loca.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c Loca \u6df7\u7528"):p():a.version&&a.version!==g.Loca.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c Loca \u6df7\u7528"):
30
+ n.Loca.push(function(a){a?h(a):h();});})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var e;(function(a){a.notload="notload";a.loading="loading";a.loaded="loaded";a.failed="failed";})(e||(e={}));var g={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},l={AMap:e.notload,AMapUI:e.notload,Loca:e.notload},n={AMap:[],AMapUI:[],Loca:[]},v=[],z=function(a){"function"==typeof a&&(l.AMap===e.loaded?a(window.AMap):v.push(a));};return {load:function(a){var p=
31
+ this;return new Promise(function(h,c){if(l.AMap==e.failed)c("");else if(l.AMap==e.notload){var b=a.key,m=a.version,k=a.plugins;if(b){window.AMap&&"lbs.amap.com"!==location.host&&c("\u7981\u6b62\u591a\u79cdAPI\u52a0\u8f7d\u65b9\u5f0f\u6df7\u7528");g.key=b;g.AMap.version=m||g.AMap.version;g.AMap.plugins=k||g.AMap.plugins;l.AMap=e.loading;var f=document.body||document.head;window.___onAPILoaded=function(b){delete window.___onAPILoaded;if(b)l.AMap=e.failed,c(b);else for(l.AMap=e.loaded,t(a).then(function(){h(window.AMap);})["catch"](c);v.length;)v.splice(0,
32
+ 1)[0]();};var n=document.createElement("script");n.type="text/javascript";b="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+g.AMap.version+"&key="+b+"&plugin="+g.AMap.plugins.join(",");fetch(b).then(function(a){return q(p,void 0,void 0,function(){var b;return r(this,function(c){switch(c.label){case 0:return [4,a.text()];case 1:return b=c.sent(),n.textContent=b.replace("define.amd","undefined"),f.appendChild(n),[2]}})})})["catch"](function(a){l.AMap=e.failed;c(a);});}else c("\u8bf7\u586b\u5199key");}else if(l.AMap==
33
+ e.loaded)if(a.key&&a.key!==g.key)c("\u591a\u4e2a\u4e0d\u4e00\u81f4\u7684 key");else if(a.version&&a.version!==g.AMap.version)c("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c JSAPI \u6df7\u7528");else {b=[];if(a.plugins)for(m=0;m<a.plugins.length;m+=1)-1==g.AMap.plugins.indexOf(a.plugins[m])&&b.push(a.plugins[m]);if(b.length)window.AMap.plugin(b,function(){t(a).then(function(){h(window.AMap);})["catch"](c);});else t(a).then(function(){h(window.AMap);})["catch"](c);}else if(a.key&&a.key!==g.key)c("\u591a\u4e2a\u4e0d\u4e00\u81f4\u7684 key");
34
+ else if(a.version&&a.version!==g.AMap.version)c("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c JSAPI \u6df7\u7528");else {var d=[];if(a.plugins)for(m=0;m<a.plugins.length;m+=1)-1==g.AMap.plugins.indexOf(a.plugins[m])&&d.push(a.plugins[m]);z(function(){if(d.length)window.AMap.plugin(d,function(){t(a).then(function(){h(window.AMap);})["catch"](c);});else t(a).then(function(){h(window.AMap);})["catch"](c);});}})},reset:function(){delete window.AMap;delete window.AMapUI;delete window.Loca;g={key:"",AMap:{version:"1.4.15",
35
+ plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}};l={AMap:e.notload,AMapUI:e.notload,Loca:e.notload};n={AMap:[],AMapUI:[],Loca:[]};}}});
36
+ } (dist$1, dist$1.exports));
37
+
38
+ var distExports = dist$1.exports;
39
+ var AMapLoader = /*@__PURE__*/getDefaultExportFromCjs(distExports);
40
+
41
+ export { AMapLoader as default };
@@ -109,7 +109,8 @@ class PanelButtonController extends PanelItemController {
109
109
  data: [this.data],
110
110
  view: this.panel.view,
111
111
  event,
112
- noWaitRoute: true
112
+ noWaitRoute: true,
113
+ ctrl: this.panel
113
114
  },
114
115
  this.model.appId
115
116
  );
@@ -66,7 +66,7 @@ const PanelButton = /* @__PURE__ */ defineComponent({
66
66
  try {
67
67
  state.loading = true;
68
68
  await props.controller.onActionClick(event);
69
- props.controller.onClick();
69
+ props.controller.onClick(event);
70
70
  } finally {
71
71
  state.loading = false;
72
72
  }
@@ -2,6 +2,7 @@ import { h } from 'vue';
2
2
  import { isNil, isObject } from 'lodash-es';
3
3
  import { AsyncActionPreview } from '../async-action-preview/async-action-preview.mjs';
4
4
  import { AsyncActionResult } from '../async-action-result/async-action-result.mjs';
5
+ import { AsyncDataExport } from '../async-data-export/async-data-export.mjs';
5
6
  import { AsyncAction } from './async-action.mjs';
6
7
 
7
8
  "use strict";
@@ -35,6 +36,19 @@ class AsyncActionProvider {
35
36
  );
36
37
  return true;
37
38
  }
39
+ if (asyncAction.actiontype === "DEEXPORTDATA") {
40
+ ibiz.overlay.modal(
41
+ (modal) => {
42
+ return h(AsyncDataExport, {
43
+ asyncAction,
44
+ modal
45
+ });
46
+ },
47
+ {},
48
+ { width: "80%", height: "80%" }
49
+ );
50
+ return true;
51
+ }
38
52
  if (isObject(asyncAction.actionresult)) {
39
53
  ibiz.overlay.modal(
40
54
  (modal) => {
@@ -1 +1 @@
1
- .ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
1
+ .ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0;cursor:pointer}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
@@ -0,0 +1 @@
1
+ .ibiz-async-data-export{height:100%;display:flex;flex-flow:column nowrap;padding:var(--ibiz-spacing-tight)}.ibiz-async-data-export__title{font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold)}.ibiz-async-data-export .el-form-item{margin:0}.ibiz-async-data-export .el-form-item__content,.ibiz-async-data-export .el-form-item__label{font-weight:var(--ibiz-font-weight-bold)}.ibiz-async-data-export-header{display:flex;align-items:center;justify-content:space-between;height:48px;padding:var(--ibiz-spacing-tight);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-async-data-export-time{padding:var(--ibiz-spacing-tight)}.ibiz-async-data-export-time__executing{font-weight:var(--ibiz-font-weight-bold)}
@@ -0,0 +1,34 @@
1
+ import { PropType } from 'vue';
2
+ import { IPortalAsyncAction } from '@ibiz-template/core';
3
+ import { IModal } from '@ibiz-template/runtime';
4
+ import './async-data-export.scss';
5
+ export declare const AsyncDataExport: import("vue").DefineComponent<{
6
+ asyncAction: {
7
+ type: PropType<IPortalAsyncAction>;
8
+ required: true;
9
+ };
10
+ modal: {
11
+ type: PropType<IModal>;
12
+ required: true;
13
+ };
14
+ }, {
15
+ ns: import("@ibiz-template/core").Namespace;
16
+ info: {
17
+ title: string;
18
+ beginTime: string;
19
+ endTime: string;
20
+ fileUrl: string;
21
+ isFinish: boolean;
22
+ };
23
+ onClose: () => void;
24
+ onDownLoad: () => void;
25
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ asyncAction: {
27
+ type: PropType<IPortalAsyncAction>;
28
+ required: true;
29
+ };
30
+ modal: {
31
+ type: PropType<IModal>;
32
+ required: true;
33
+ };
34
+ }>>, {}, {}>;