@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.
- package/dist/ibiz-markdown-editor-0VHzFa2l.js +1 -0
- package/dist/{index-tjsobxd3.js → index-EYFbyMUF.js} +1 -1
- package/dist/index-LzKAcXeH.js +4 -0
- package/dist/{index-CsiyXR27.js → index-kNUznzXY.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-kUY8Nlib.js → wang-editor-Iw-hqw1q.js} +1 -1
- package/dist/{xlsx-util-s4akItw_.js → xlsx-util-FnTIZeKq.js} +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +2 -37
- package/es/common/grid-setting/grid-setting.mjs +8 -4
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +76 -2
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form/index.mjs +2 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.d.ts +29 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.mjs +53 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.d.ts +13 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.mjs +21 -0
- package/es/control/form/form-detail/form-iframe/index.d.ts +25 -0
- package/es/control/form/form-detail/form-iframe/index.mjs +12 -0
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +6 -4
- package/es/control/form/form-detail/index.d.ts +1 -0
- package/es/control/form/form-detail/index.mjs +1 -0
- package/es/control/form/index.mjs +1 -0
- package/es/control/gantt/gantt.d.ts +1 -1
- package/es/control/gantt/gantt.mjs +1 -0
- package/es/control/gantt/index.d.ts +1 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/index.d.ts +1 -1
- package/es/control/grid/grid/index.mjs +2 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +5 -8
- package/es/control/grid/virtualized-table/index.d.ts +136 -0
- package/es/control/grid/virtualized-table/index.mjs +18 -0
- package/es/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/es/control/grid/virtualized-table/virtualized-table.d.ts +200 -0
- package/es/control/grid/virtualized-table/virtualized-table.mjs +325 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.d.ts +10 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.mjs +14 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.d.ts +95 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.mjs +191 -0
- package/es/control/index.mjs +1 -0
- package/es/control/kanban/index.d.ts +44 -1
- package/es/control/kanban/kanban.d.ts +56 -1
- package/es/control/kanban/kanban.mjs +36 -2
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +1 -1
- package/es/control/search-bar/search-bar.mjs +3 -0
- package/es/control/toolbar/toolbar.mjs +7 -7
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +1 -1
- package/es/control/tree-grid/index.d.ts +1 -1
- package/es/control/tree-grid/tree-grid.d.ts +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -0
- package/es/editor/array/ibiz-array/ibiz-array.mjs +4 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -0
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -0
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +2 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -0
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -0
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -0
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +5 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -0
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +3 -2
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +2 -1
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +5 -5
- package/es/editor/date-range-select/date-range-select.controller.mjs +9 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +2 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -0
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.d.ts +4 -3
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +10 -7
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +5 -5
- package/es/editor/html/wang-editor/wang-editor.d.ts +1 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -0
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.d.ts +1 -0
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +1 -0
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -0
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +3 -0
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +4 -3
- package/es/editor/span/span/span.d.ts +3 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -0
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -0
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +4 -77
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +167 -108
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -0
- package/es/editor/text-box/input/input.d.ts +7 -4
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/locale/en/index.d.ts +6 -0
- package/es/locale/en/index.mjs +6 -0
- package/es/locale/zh-CN/index.d.ts +6 -0
- package/es/locale/zh-CN/index.mjs +6 -0
- 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
- package/es/panel-component/panel-button/panel-button.controller.mjs +2 -1
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/es/panel-component/user-message/async-action/async-action/async-action.provider.mjs +14 -0
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +34 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +88 -0
- package/es/panel-component/user-message/index.d.ts +2 -32
- package/es/panel-component/user-message/index.mjs +21 -11
- package/es/util/app-util/app-util.d.ts +54 -2
- package/es/util/app-util/app-util.mjs +48 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/md-custom-view.engine.d.ts +8 -2
- package/es/view-engine/md-custom-view.engine.mjs +14 -2
- package/lib/common/grid-setting/grid-setting.cjs +8 -4
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +76 -2
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form/index.cjs +2 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +58 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.provider.cjs +23 -0
- package/lib/control/form/form-detail/form-iframe/index.cjs +17 -0
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -3
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/index.cjs +2 -0
- package/lib/control/form/index.cjs +6 -4
- package/lib/control/gantt/gantt.cjs +1 -0
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid/index.cjs +2 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -6
- package/lib/control/grid/virtualized-table/index.cjs +23 -0
- package/lib/control/grid/virtualized-table/virtualized-table.cjs +327 -0
- package/lib/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/lib/control/grid/virtualized-table/virtualized-table.provider.cjs +16 -0
- package/lib/control/grid/virtualized-table/virtualized-table.util.cjs +193 -0
- package/lib/control/index.cjs +82 -80
- package/lib/control/kanban/kanban.cjs +34 -0
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/search-bar/search-bar.cjs +3 -0
- package/lib/control/toolbar/toolbar.cjs +7 -7
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -1
- package/lib/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/lib/editor/date-range-select/date-range-select.controller.cjs +9 -0
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +5 -5
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +166 -107
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
- package/lib/index.cjs +112 -110
- package/lib/locale/en/index.cjs +6 -0
- package/lib/locale/zh-CN/index.cjs +6 -0
- 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
- package/lib/panel-component/panel-button/panel-button.cjs +1 -1
- package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -1
- package/lib/panel-component/user-message/async-action/async-action/async-action.provider.cjs +14 -0
- package/lib/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +90 -0
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
- package/lib/panel-component/user-message/index.cjs +21 -11
- package/lib/util/app-util/app-util.cjs +47 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/md-custom-view.engine.cjs +14 -2
- package/package.json +11 -6
- package/dist/ibiz-markdown-editor-KyK5mBTS.js +0 -1
- package/dist/index-F_Yq1N9t.js +0 -4
- package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +0 -23
- package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +0 -27
- /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
- /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 {
|
|
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
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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 (
|
|
51
|
-
emit("change",
|
|
61
|
+
if (isValidIp(ipSegments.value)) {
|
|
62
|
+
emit("change", joinIp(ipSegments.value));
|
|
52
63
|
}
|
|
53
64
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
168
|
+
activeElement,
|
|
169
|
+
ipSegments,
|
|
170
|
+
ipInputs,
|
|
171
|
+
joinIp,
|
|
172
|
+
handleInput,
|
|
173
|
+
handleKeydown,
|
|
174
|
+
handleFocus,
|
|
175
|
+
handleBlur
|
|
106
176
|
};
|
|
107
177
|
},
|
|
108
178
|
render() {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
"
|
|
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
|
|
6
|
+
* @description 使用el-input组件,用于数据录入,通过鼠标或键盘输入字符。支持编辑器类型包含:`文本框`、`多行输入框`、`多行输入框(10行)`、`密码框`
|
|
7
7
|
* @primary
|
|
8
|
-
* @editorparams {name:showlimit,parameterType:boolean,defaultvalue:true,description:el-input组件的show-word-limit
|
|
9
|
-
* @editorparams {name:isauto,parameterType:boolean,defaultvalue:false,description:el-input组件的autosize
|
|
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';
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -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;
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -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 };
|
|
@@ -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
|
+
}>>, {}, {}>;
|