@ibiz-template/mob-vue3-components 0.7.41-alpha.17 → 0.7.41-alpha.19
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-CpFrKPxk.js +2 -0
- package/dist/ibiz-markdown-editor-CpFrKPxk.js.map +1 -0
- package/dist/index-BsnCebyq.js +2 -0
- package/dist/index-BsnCebyq.js.map +1 -0
- package/dist/index-DL4fl2Xq.js +2 -0
- package/dist/index-DL4fl2Xq.js.map +1 -0
- package/dist/index-DwC1-gss.js +76 -0
- package/dist/index-DwC1-gss.js.map +1 -0
- package/dist/index.min.css +3 -3
- package/dist/index.system.min.js +1 -1
- package/dist/{quill-CG16aqds.js → quill-DcWdzP1t.js} +2 -2
- package/dist/{quill-CG16aqds.js.map → quill-DcWdzP1t.js.map} +1 -1
- package/dist/quill-editor-DlIyufAV.js +2 -0
- package/dist/quill-editor-DlIyufAV.js.map +1 -0
- package/dist/{quill-editor-preview-YXGzGLmQ.js → quill-editor-preview-Cf2qhphz.js} +2 -2
- package/dist/{quill-editor-preview-YXGzGLmQ.js.map → quill-editor-preview-Cf2qhphz.js.map} +1 -1
- package/dist/tree-CGwysqdR.js +2 -0
- package/dist/tree-CGwysqdR.js.map +1 -0
- package/es/_virtual/index12.mjs +2 -2
- package/es/_virtual/index13.mjs +2 -2
- package/es/_virtual/index14.mjs +2 -2
- package/es/_virtual/index15.mjs +3 -1
- package/es/_virtual/index16.mjs +1 -1
- package/es/_virtual/index17.mjs +1 -3
- package/es/_virtual/index18.mjs +2 -2
- package/es/_virtual/index19.mjs +3 -0
- package/es/control/calendar/calendar.mjs +2 -0
- package/es/control/dashboard/dashboard.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +68 -22
- package/es/control/drbar/drbar.controller.mjs +24 -1
- package/es/control/drtab/drtab.controller.mjs +20 -4
- package/es/control/list/list-render-util.mjs +1 -1
- package/es/control/list/md-ctrl/md-ctrl.css +1 -1
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/tree/tree.mjs +8 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +3 -0
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.mjs +8 -2
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +5 -0
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +23 -3
- package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
- package/es/editor/date-picker/date-picker-editor.controller.mjs +16 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +4 -1
- package/es/editor/date-range/date-range-editor.controller.mjs +20 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +23 -4
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +2 -2
- package/es/editor/html/html-editor.controller.mjs +59 -2
- package/es/editor/html/quill-editor/quill-editor.mjs +10 -1
- package/es/editor/index.mjs +18 -3
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.css +1 -0
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +337 -0
- package/es/editor/map-picker/index.mjs +5 -0
- package/es/editor/map-picker/map-picker-editor.controller.mjs +7 -0
- package/es/editor/map-picker/map-picker-editor.provider.mjs +22 -0
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +10 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +25 -0
- package/es/editor/text-box/signature/signature.css +1 -1
- package/es/editor/text-box/signature/signature.mjs +2 -0
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.mjs +5 -2
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +5 -2
- package/es/editor/upload/upload-editor.controller.mjs +29 -1
- package/es/editor/upload/use/use-van-upload.mjs +8 -1
- package/es/index.mjs +1 -0
- package/es/locale/en/index.mjs +3 -0
- package/es/locale/zh-CN/index.mjs +3 -0
- package/es/mob-app/router/index.mjs +6 -5
- 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/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.mjs +1 -1
- package/es/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.mjs +1 -1
- package/es/node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index2.mjs +1 -1
- package/es/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.mjs +1 -1
- package/es/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.mjs +1 -1
- package/es/node_modules/.pnpm/quill-delta@5.1.0/node_modules/quill-delta/dist/AttributeMap.mjs +1 -1
- package/es/node_modules/.pnpm/quill-delta@5.1.0/node_modules/quill-delta/dist/Delta.mjs +1 -1
- package/es/platform/ios-platform-provider.mjs +11 -0
- package/es/platform/wechat-official-platform-provider.mjs +11 -0
- package/es/view-engine/mob-mpickup-view-engine.mjs +6 -1
- package/lib/_virtual/index12.cjs +2 -2
- package/lib/_virtual/index13.cjs +2 -2
- package/lib/_virtual/index14.cjs +2 -2
- package/lib/_virtual/index15.cjs +2 -6
- package/lib/_virtual/index16.cjs +2 -2
- package/lib/_virtual/index17.cjs +6 -2
- package/lib/_virtual/index18.cjs +2 -2
- package/lib/_virtual/index19.cjs +5 -0
- package/lib/control/calendar/calendar.cjs +2 -0
- package/lib/control/dashboard/dashboard.css +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +67 -21
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +24 -1
- package/lib/control/drtab/drtab.controller.cjs +20 -4
- package/lib/control/list/list-render-util.cjs +1 -1
- package/lib/control/list/md-ctrl/md-ctrl.css +1 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/tree/tree.cjs +8 -0
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +3 -0
- package/lib/editor/check-box/ibiz-checkbox/ibiz-checkbox.cjs +8 -2
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +5 -0
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +23 -3
- package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
- package/lib/editor/date-picker/date-picker-editor.controller.cjs +16 -0
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +3 -0
- package/lib/editor/date-range/date-range-editor.controller.cjs +20 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +22 -3
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +2 -2
- package/lib/editor/html/html-editor.controller.cjs +59 -2
- package/lib/editor/html/quill-editor/quill-editor.cjs +10 -1
- package/lib/editor/index.cjs +19 -4
- package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +339 -0
- package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.css +1 -0
- package/lib/editor/map-picker/index.cjs +11 -0
- package/lib/editor/map-picker/map-picker-editor.controller.cjs +9 -0
- package/lib/editor/map-picker/map-picker-editor.provider.cjs +24 -0
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +10 -1
- package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +25 -0
- package/lib/editor/text-box/signature/signature.cjs +2 -0
- package/lib/editor/text-box/signature/signature.css +1 -1
- package/lib/editor/upload/ibiz-image-select/ibiz-image-select.cjs +5 -2
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +5 -2
- package/lib/editor/upload/upload-editor.controller.cjs +29 -1
- package/lib/editor/upload/use/use-van-upload.cjs +8 -1
- package/lib/index.cjs +2 -0
- package/lib/locale/en/index.cjs +3 -0
- package/lib/locale/zh-CN/index.cjs +3 -0
- package/lib/mob-app/router/index.cjs +6 -5
- 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/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.cjs +1 -1
- package/lib/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.cjs +1 -1
- package/lib/node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index2.cjs +1 -1
- package/lib/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.cjs +1 -1
- package/lib/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.cjs +1 -1
- package/lib/node_modules/.pnpm/quill-delta@5.1.0/node_modules/quill-delta/dist/AttributeMap.cjs +1 -1
- package/lib/node_modules/.pnpm/quill-delta@5.1.0/node_modules/quill-delta/dist/Delta.cjs +1 -1
- package/lib/platform/ios-platform-provider.cjs +11 -0
- package/lib/platform/wechat-official-platform-provider.cjs +11 -0
- package/lib/view-engine/mob-mpickup-view-engine.cjs +6 -1
- package/package.json +14 -8
- package/dist/ibiz-markdown-editor-B7D3K0dJ.js +0 -2
- package/dist/ibiz-markdown-editor-B7D3K0dJ.js.map +0 -1
- package/dist/index-BcB2An4e.js +0 -2
- package/dist/index-BcB2An4e.js.map +0 -1
- package/dist/index-CLxzVzNz.js +0 -76
- package/dist/index-CLxzVzNz.js.map +0 -1
- package/dist/index-DuVHtH1z.js +0 -2
- package/dist/index-DuVHtH1z.js.map +0 -1
- package/dist/quill-editor-C7zYyQrk.js +0 -2
- package/dist/quill-editor-C7zYyQrk.js.map +0 -1
- package/dist/tree-Db38FIKx.js +0 -2
- package/dist/tree-Db38FIKx.js.map +0 -1
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var index = require('../../../node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.cjs');
|
|
6
|
+
require('./ibiz-map-picker.css');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
function _isSlot(s) {
|
|
10
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
11
|
+
}
|
|
12
|
+
const IBizMapPicker = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
name: "IBizMapPicker",
|
|
14
|
+
props: vue3Util.getMapPickerProps(),
|
|
15
|
+
emits: vue3Util.getEditorEmits(),
|
|
16
|
+
setup(props, {
|
|
17
|
+
emit
|
|
18
|
+
}) {
|
|
19
|
+
const ns = vue3Util.useNamespace("map-picker");
|
|
20
|
+
const c = props.controller;
|
|
21
|
+
const {
|
|
22
|
+
editorItems
|
|
23
|
+
} = c.model;
|
|
24
|
+
let longitudeName = "";
|
|
25
|
+
let latitudeName = "";
|
|
26
|
+
if (editorItems) {
|
|
27
|
+
const [longitude, latitude] = editorItems;
|
|
28
|
+
longitudeName = longitude.id || "";
|
|
29
|
+
latitudeName = latitude.id || "";
|
|
30
|
+
}
|
|
31
|
+
const inputRef = vue.ref();
|
|
32
|
+
const searchRef = vue.ref();
|
|
33
|
+
const searchInputRef = vue.computed(() => {
|
|
34
|
+
var _a, _b, _c;
|
|
35
|
+
return (_c = (_a = searchRef.value) == null ? void 0 : (_b = _a.$el).querySelector) == null ? void 0 : _c.call(_b, "input");
|
|
36
|
+
});
|
|
37
|
+
const mapContainerRef = vue.ref();
|
|
38
|
+
const searchResultContainerRef = vue.ref();
|
|
39
|
+
const dialogVisible = vue.ref(false);
|
|
40
|
+
const isLoading = vue.ref(false);
|
|
41
|
+
const searchValue = vue.ref("");
|
|
42
|
+
let map;
|
|
43
|
+
let marker;
|
|
44
|
+
let poiPicker;
|
|
45
|
+
const addressInfo = {
|
|
46
|
+
address: "",
|
|
47
|
+
longitude: null,
|
|
48
|
+
latitude: null
|
|
49
|
+
};
|
|
50
|
+
const clearMarker = () => {
|
|
51
|
+
if (marker) {
|
|
52
|
+
marker.setMap(null);
|
|
53
|
+
marker = void 0;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const addMarker = (lng, lat) => {
|
|
57
|
+
const AMap = window.AMap;
|
|
58
|
+
if (!AMap) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
clearMarker();
|
|
62
|
+
marker = new AMap.Marker({
|
|
63
|
+
position: [lng, lat]
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const getAddress = (lng, lat) => {
|
|
67
|
+
const AMap = window.AMap;
|
|
68
|
+
if (!AMap) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (!marker) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const geocoder = new AMap.Geocoder({});
|
|
75
|
+
const currentMarker = marker;
|
|
76
|
+
geocoder.getAddress([lng, lat], (status, result) => {
|
|
77
|
+
if (!marker || marker !== currentMarker) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (status === "complete" && result.info === "OK" && result.regeocode) {
|
|
81
|
+
const regeocode = result.regeocode;
|
|
82
|
+
const address = regeocode.formattedAddress;
|
|
83
|
+
const markerContent = document.createElement("div");
|
|
84
|
+
const markerImg = document.createElement("img");
|
|
85
|
+
markerImg.style.width = "25px";
|
|
86
|
+
markerImg.src = "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png";
|
|
87
|
+
markerContent.appendChild(markerImg);
|
|
88
|
+
const markerText = document.createElement("span");
|
|
89
|
+
markerText.className = ns.b("popup-map-marker-text");
|
|
90
|
+
markerText.textContent = address;
|
|
91
|
+
markerContent.appendChild(markerText);
|
|
92
|
+
marker.setContent(markerContent);
|
|
93
|
+
marker.setMap(map);
|
|
94
|
+
addressInfo.address = address;
|
|
95
|
+
addressInfo.longitude = lng;
|
|
96
|
+
addressInfo.latitude = lat;
|
|
97
|
+
searchValue.value = address;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
const loadMap = async () => {
|
|
102
|
+
try {
|
|
103
|
+
isLoading.value = true;
|
|
104
|
+
window._AMapSecurityConfig = {
|
|
105
|
+
securityJsCode: ibiz.env.aMapSecurityJsCode
|
|
106
|
+
};
|
|
107
|
+
await index.default.load({
|
|
108
|
+
key: ibiz.env.aMapKey,
|
|
109
|
+
version: "2.0",
|
|
110
|
+
plugins: ["AMap.PlaceSearch", "AMap.Geocoder"],
|
|
111
|
+
AMapUI: {
|
|
112
|
+
version: "1.1",
|
|
113
|
+
plugins: ["misc/PoiPicker"]
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
} finally {
|
|
117
|
+
isLoading.value = false;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const initMap = () => {
|
|
121
|
+
const AMap = window.AMap;
|
|
122
|
+
if (!AMap) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (!mapContainerRef.value) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
map = new AMap.Map(mapContainerRef.value, {
|
|
129
|
+
viewMode: "3D",
|
|
130
|
+
zoom: 11
|
|
131
|
+
});
|
|
132
|
+
map == null ? void 0 : map.on("click", (e) => {
|
|
133
|
+
const lnglat = e.lnglat;
|
|
134
|
+
const lng = lnglat.lng;
|
|
135
|
+
const lat = lnglat.lat;
|
|
136
|
+
if (lng != null && lat != null) {
|
|
137
|
+
addMarker(lng, lat);
|
|
138
|
+
getAddress(lng, lat);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
const AMapUI = window.AMapUI;
|
|
142
|
+
if (!AMapUI) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (!searchInputRef.value || !searchResultContainerRef.value) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
AMapUI.loadUI(["misc/PoiPicker"], function(PoiPicker) {
|
|
149
|
+
if (!searchInputRef.value || !searchResultContainerRef.value || !PoiPicker) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
poiPicker = new PoiPicker({
|
|
153
|
+
input: searchInputRef.value,
|
|
154
|
+
placeSearchOptions: {
|
|
155
|
+
map
|
|
156
|
+
},
|
|
157
|
+
searchResultsContainer: searchResultContainerRef.value
|
|
158
|
+
});
|
|
159
|
+
poiPicker == null ? void 0 : poiPicker.on("poiPicked", function(poiResult) {
|
|
160
|
+
var _a, _b;
|
|
161
|
+
clearMarker();
|
|
162
|
+
const item = poiResult.item;
|
|
163
|
+
if (item) {
|
|
164
|
+
addressInfo.address = item.name;
|
|
165
|
+
addressInfo.longitude = (_a = item.location) == null ? void 0 : _a.lng;
|
|
166
|
+
addressInfo.latitude = (_b = item.location) == null ? void 0 : _b.lat;
|
|
167
|
+
searchValue.value = item.name;
|
|
168
|
+
if (poiResult.source !== "search") {
|
|
169
|
+
poiPicker == null ? void 0 : poiPicker.searchByKeyword(item.name);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
const handleShow = () => {
|
|
176
|
+
var _a;
|
|
177
|
+
dialogVisible.value = true;
|
|
178
|
+
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
|
179
|
+
vue.nextTick(async () => {
|
|
180
|
+
var _a2;
|
|
181
|
+
if (!window.AMap) {
|
|
182
|
+
await loadMap();
|
|
183
|
+
}
|
|
184
|
+
if (!map || !((_a2 = mapContainerRef.value) == null ? void 0 : _a2.children.length)) {
|
|
185
|
+
map == null ? void 0 : map.destroy();
|
|
186
|
+
initMap();
|
|
187
|
+
}
|
|
188
|
+
searchValue.value = props.value || "";
|
|
189
|
+
if (props.data && longitudeName && latitudeName) {
|
|
190
|
+
const longitude = props.data[longitudeName];
|
|
191
|
+
const latitude = props.data[latitudeName];
|
|
192
|
+
if (longitude && latitude) {
|
|
193
|
+
map == null ? void 0 : map.setCenter([longitude, latitude], true);
|
|
194
|
+
addMarker(longitude, latitude);
|
|
195
|
+
getAddress(longitude, latitude);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
const handleConfirm = () => {
|
|
201
|
+
dialogVisible.value = false;
|
|
202
|
+
if (longitudeName) {
|
|
203
|
+
emit("change", addressInfo.longitude != null ? addressInfo.longitude : null, longitudeName);
|
|
204
|
+
}
|
|
205
|
+
if (latitudeName) {
|
|
206
|
+
emit("change", addressInfo.latitude != null ? addressInfo.latitude : null, latitudeName);
|
|
207
|
+
}
|
|
208
|
+
emit("change", addressInfo.address || "");
|
|
209
|
+
handleClose();
|
|
210
|
+
};
|
|
211
|
+
const handleClose = () => {
|
|
212
|
+
dialogVisible.value = false;
|
|
213
|
+
if (poiPicker) {
|
|
214
|
+
poiPicker.clearSuggest();
|
|
215
|
+
poiPicker.clearSearchResults();
|
|
216
|
+
}
|
|
217
|
+
searchValue.value = "";
|
|
218
|
+
addressInfo.address = "";
|
|
219
|
+
addressInfo.longitude = null;
|
|
220
|
+
addressInfo.latitude = null;
|
|
221
|
+
clearMarker();
|
|
222
|
+
};
|
|
223
|
+
const handleClear = (_e) => {
|
|
224
|
+
_e.stopPropagation();
|
|
225
|
+
if (longitudeName) {
|
|
226
|
+
emit("change", null, longitudeName);
|
|
227
|
+
}
|
|
228
|
+
if (latitudeName) {
|
|
229
|
+
emit("change", null, latitudeName);
|
|
230
|
+
}
|
|
231
|
+
emit("change", "");
|
|
232
|
+
handleClose();
|
|
233
|
+
};
|
|
234
|
+
const handleSearchClear = () => {
|
|
235
|
+
searchValue.value = "";
|
|
236
|
+
addressInfo.address = "";
|
|
237
|
+
addressInfo.longitude = null;
|
|
238
|
+
addressInfo.latitude = null;
|
|
239
|
+
clearMarker();
|
|
240
|
+
};
|
|
241
|
+
vue.onUnmounted(() => {
|
|
242
|
+
map == null ? void 0 : map.destroy();
|
|
243
|
+
});
|
|
244
|
+
return {
|
|
245
|
+
ns,
|
|
246
|
+
c,
|
|
247
|
+
inputRef,
|
|
248
|
+
searchRef,
|
|
249
|
+
mapContainerRef,
|
|
250
|
+
searchResultContainerRef,
|
|
251
|
+
dialogVisible,
|
|
252
|
+
isLoading,
|
|
253
|
+
searchValue,
|
|
254
|
+
handleShow,
|
|
255
|
+
handleConfirm,
|
|
256
|
+
handleClose,
|
|
257
|
+
handleClear,
|
|
258
|
+
handleSearchClear
|
|
259
|
+
};
|
|
260
|
+
},
|
|
261
|
+
render() {
|
|
262
|
+
let content;
|
|
263
|
+
if (this.readonly) {
|
|
264
|
+
content = this.value;
|
|
265
|
+
} else {
|
|
266
|
+
content = [vue.createVNode(vue.resolveComponent("van-field"), {
|
|
267
|
+
"class": this.ns.b("input"),
|
|
268
|
+
"ref": "inputRef",
|
|
269
|
+
"modelValue": this.value,
|
|
270
|
+
"onUpdate:modelValue": ($event) => this.value = $event,
|
|
271
|
+
"readonly": true,
|
|
272
|
+
"placeholder": this.c.placeHolder,
|
|
273
|
+
"disabled": this.disabled,
|
|
274
|
+
"onClick": this.handleShow
|
|
275
|
+
}, {
|
|
276
|
+
button: () => {
|
|
277
|
+
if (this.readonly || !this.value)
|
|
278
|
+
return;
|
|
279
|
+
return vue.createVNode(vue.resolveComponent("van-button"), {
|
|
280
|
+
"icon": "clear",
|
|
281
|
+
"onClick": this.handleClear
|
|
282
|
+
}, null);
|
|
283
|
+
}
|
|
284
|
+
}), vue.createVNode(vue.resolveComponent("van-popup"), {
|
|
285
|
+
"class": this.ns.b("popup"),
|
|
286
|
+
"show": this.dialogVisible,
|
|
287
|
+
"onUpdate:show": ($event) => this.dialogVisible = $event,
|
|
288
|
+
"round": true,
|
|
289
|
+
"position": "bottom",
|
|
290
|
+
"teleport": "body",
|
|
291
|
+
"close-on-popstate": true
|
|
292
|
+
}, {
|
|
293
|
+
default: () => {
|
|
294
|
+
let _slot, _slot2;
|
|
295
|
+
return vue.createVNode("div", {
|
|
296
|
+
"class": this.ns.b("popup-wrapper")
|
|
297
|
+
}, [vue.createVNode("div", {
|
|
298
|
+
"class": this.ns.b("popup-wrapper-content")
|
|
299
|
+
}, [vue.createVNode("div", {
|
|
300
|
+
"class": this.ns.b("popup-content-search")
|
|
301
|
+
}, [vue.createVNode(vue.resolveComponent("van-search"), {
|
|
302
|
+
"ref": "searchRef",
|
|
303
|
+
"modelValue": this.searchValue,
|
|
304
|
+
"onUpdate:modelValue": ($event) => this.searchValue = $event,
|
|
305
|
+
"placeholder": ibiz.i18n.t("editor.mapPicker.searchPlaceholder"),
|
|
306
|
+
"disabled": this.isLoading
|
|
307
|
+
}, null)]), vue.withDirectives(vue.createVNode("div", {
|
|
308
|
+
"class": this.ns.b("popup-map-content")
|
|
309
|
+
}, [vue.createVNode("div", {
|
|
310
|
+
"class": this.ns.b("popup-map-container"),
|
|
311
|
+
"ref": "mapContainerRef"
|
|
312
|
+
}, null), vue.createVNode("div", {
|
|
313
|
+
"class": this.ns.b("popup-search-result-container"),
|
|
314
|
+
"ref": "searchResultContainerRef"
|
|
315
|
+
}, null)]), [[vue.resolveDirective("loading"), this.isLoading]])]), vue.createVNode("div", {
|
|
316
|
+
"class": this.ns.b("popup-wrapper-footer")
|
|
317
|
+
}, [vue.createVNode(vue.resolveComponent("van-button"), {
|
|
318
|
+
"class": this.ns.b("popup-confirm"),
|
|
319
|
+
"onClick": this.handleClose
|
|
320
|
+
}, _isSlot(_slot = ibiz.i18n.t("editor.common.cancel")) ? _slot : {
|
|
321
|
+
default: () => [_slot]
|
|
322
|
+
}), vue.createVNode(vue.resolveComponent("van-button"), {
|
|
323
|
+
"class": this.ns.b("popup-footer-button"),
|
|
324
|
+
"type": "primary",
|
|
325
|
+
"disabled": this.isLoading,
|
|
326
|
+
"onClick": this.handleConfirm
|
|
327
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("editor.common.confirm")) ? _slot2 : {
|
|
328
|
+
default: () => [_slot2]
|
|
329
|
+
})])]);
|
|
330
|
+
}
|
|
331
|
+
})];
|
|
332
|
+
}
|
|
333
|
+
return vue.createVNode("div", {
|
|
334
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
|
|
335
|
+
}, [content]);
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
exports.IBizMapPicker = IBizMapPicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-map-picker--readonly{height:auto;overflow:auto;line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color);word-break:break-word;white-space:pre-wrap}.ibiz-map-picker-popup{width:100%;height:100%}.ibiz-map-picker-popup.van-popup--bottom.van-popup--round{border-radius:0}.ibiz-map-picker-input .van-field__button{position:relative;display:flex;align-items:center;justify-content:center;padding:0}.ibiz-map-picker-input .van-field__button .van-button{position:relative;width:var(--ibiz-width-icon-large);height:auto;padding:0 0 0 var(--ibiz-spacing-loose);background-color:transparent;border:none}.ibiz-map-picker-input .van-field__button .van-button::before{display:none}.ibiz-map-picker-input .van-field__button .van-icon-clear{position:absolute;left:2px;font-size:var(--ibiz-width-icon-large);color:var(--ibiz-color-text-3)}.ibiz-map-picker-popup-wrapper{display:flex;flex-direction:column;width:100%;height:100%}.ibiz-map-picker-popup-wrapper-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%}.ibiz-map-picker-popup-content-search{--ibiz-popup-content-search-input-padding-left:36px;--ibiz-popup-content-search-input-padding-right:24px;position:relative;z-index:999;width:100%}.ibiz-map-picker-popup-content-search .van-search{padding:var(--ibiz-spacing-tight)}.ibiz-map-picker-popup-content-search .van-search__content{position:relative}.ibiz-map-picker-popup-content-search .van-cell,.ibiz-map-picker-popup-content-search .van-cell__value{position:static}.ibiz-map-picker-popup-content-search .van-cell__value,.ibiz-map-picker-popup-content-search .van-field__body,.ibiz-map-picker-popup-content-search .van-field__control{height:100%}.ibiz-map-picker-popup-content-search input{position:absolute;left:0;padding-left:var(--ibiz-popup-content-search-input-padding-left);padding-right:var(--ibiz-popup-content-search-input-padding-right);margin:0}.ibiz-map-picker-popup-content-search .van-field__clear{position:absolute;right:var(--ibiz-spacing-extra-tight)}.ibiz-map-picker-popup-map{width:100%;height:100%}.ibiz-map-picker-popup-map-content{width:100%;height:100%}.ibiz-map-picker-popup-map-container{width:100%;height:100%}.ibiz-map-picker-popup-search-result-container{--ibiz-popup-search-result-container-bottom:24px;--ibiz-popup-search-result-container-placesearch-list-height:30vh;position:absolute;bottom:var(--ibiz-popup-search-result-container-bottom);left:0;display:block!important;width:100%;padding:0 var(--ibiz-spacing-tight);overflow:hidden}.ibiz-map-picker-popup-search-result-container .amap_lib_placeSearch{display:flex;flex-direction:column;border:none}.ibiz-map-picker-popup-search-result-container .amap_lib_placeSearch_list{max-height:var(--ibiz-popup-search-result-container-placesearch-list-height);overflow-y:auto}.ibiz-map-picker-popup-search-result-container .amap_lib_placeSearch_page{display:flex;overflow-x:auto}.ibiz-map-picker-popup-wrapper-footer{--ibiz-popup-wrapper-footer-height:70px;display:flex;gap:var(--ibiz-spacing-base);align-items:center;justify-content:space-between;height:var(--ibiz-popup-wrapper-footer-height);padding:0 var(--ibiz-spacing-tight)}.ibiz-map-picker-popup-wrapper-footer .van-button{width:50%}.ibiz-map-picker-popup-map-marker-text{--ibiz-popup-map-marker-text-background-color:#3d93fd;--ibiz-popup-map-marker-text-font-size:12px;--ibiz-popup-map-marker-text-padding:4px 10px;--ibiz-popup-map-marker-text-border-radius:4px;position:absolute;top:-24px;padding:var(--ibiz-popup-map-marker-text-padding);font-size:var(--ibiz-popup-map-marker-text-font-size);color:var(--ibiz-color-white);white-space:nowrap;background-color:var(--ibiz-popup-map-marker-text-background-color);border-radius:var(--ibiz-popup-map-marker-text-border-radius);transform:translateX(calc(-50% - 12.5px))}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ibizMapPicker = require('./ibiz-map-picker/ibiz-map-picker.cjs');
|
|
4
|
+
var mapPickerEditor_controller = require('./map-picker-editor.controller.cjs');
|
|
5
|
+
var mapPickerEditor_provider = require('./map-picker-editor.provider.cjs');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
exports.IBizMapPicker = ibizMapPicker.IBizMapPicker;
|
|
10
|
+
exports.MapPickerEditorController = mapPickerEditor_controller.MapPickerEditorController;
|
|
11
|
+
exports.MapPickerEditorProvider = mapPickerEditor_provider.MapPickerEditorProvider;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var mapPickerEditor_controller = require('./map-picker-editor.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
12
|
+
class MapPickerEditorProvider {
|
|
13
|
+
constructor() {
|
|
14
|
+
__publicField(this, "formEditor", "IBizMapPicker");
|
|
15
|
+
__publicField(this, "gridEditor", "IBizMapPicker");
|
|
16
|
+
}
|
|
17
|
+
async createController(editorModel, parentController) {
|
|
18
|
+
const c = new mapPickerEditor_controller.MapPickerEditorController(editorModel, parentController);
|
|
19
|
+
await c.init();
|
|
20
|
+
return c;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
exports.MapPickerEditorProvider = MapPickerEditorProvider;
|
|
@@ -38,7 +38,16 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
38
|
const cssVars = vue.ref({});
|
|
39
39
|
vue.watch(() => props.data, (newVal) => {
|
|
40
40
|
if (newVal) {
|
|
41
|
-
const
|
|
41
|
+
const editorParams = {
|
|
42
|
+
...c.editorParams
|
|
43
|
+
};
|
|
44
|
+
if (editorParams.uploadparams) {
|
|
45
|
+
editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
|
|
46
|
+
}
|
|
47
|
+
if (editorParams.exportparams) {
|
|
48
|
+
editorParams.exportParams = JSON.parse(editorParams.exportparams);
|
|
49
|
+
}
|
|
50
|
+
const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, editorParams);
|
|
42
51
|
uploadUrl.value = urls.uploadUrl;
|
|
43
52
|
downloadUrl.value = urls.downloadUrl;
|
|
44
53
|
}
|
|
@@ -33,12 +33,21 @@ const IBizSlider = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
if (editorModel.editorParams.stepValue) {
|
|
34
34
|
step = lodashEs.toNumber(editorModel.editorParams.stepValue);
|
|
35
35
|
}
|
|
36
|
+
if (editorModel.editorParams.stepvalue) {
|
|
37
|
+
step = lodashEs.toNumber(editorModel.editorParams.stepvalue);
|
|
38
|
+
}
|
|
36
39
|
if (editorModel.editorParams.maxValue) {
|
|
37
40
|
max = lodashEs.toNumber(editorModel.editorParams.maxValue);
|
|
38
41
|
}
|
|
42
|
+
if (editorModel.editorParams.maxvalue) {
|
|
43
|
+
max = lodashEs.toNumber(editorModel.editorParams.maxvalue);
|
|
44
|
+
}
|
|
39
45
|
if (editorModel.editorParams.minValue) {
|
|
40
46
|
min = lodashEs.toNumber(editorModel.editorParams.minValue);
|
|
41
47
|
}
|
|
48
|
+
if (editorModel.editorParams.minvalue) {
|
|
49
|
+
min = lodashEs.toNumber(editorModel.editorParams.minvalue);
|
|
50
|
+
}
|
|
42
51
|
if (editorModel.editorParams.range) {
|
|
43
52
|
range = c.toBoolean(editorModel.editorParams.range);
|
|
44
53
|
}
|
|
@@ -48,9 +57,15 @@ const IBizSlider = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
57
|
if (editorModel.editorParams.textItem) {
|
|
49
58
|
textItem = editorModel.editorParams.textItem;
|
|
50
59
|
}
|
|
60
|
+
if (editorModel.editorParams.textitem) {
|
|
61
|
+
textItem = editorModel.editorParams.textitem;
|
|
62
|
+
}
|
|
51
63
|
if (editorModel.editorParams.showText) {
|
|
52
64
|
showText = c.toBoolean(editorModel.editorParams.showText);
|
|
53
65
|
}
|
|
66
|
+
if (editorModel.editorParams.showtext) {
|
|
67
|
+
showText = c.toBoolean(editorModel.editorParams.showtext);
|
|
68
|
+
}
|
|
54
69
|
if (editorModel.editorParams.format) {
|
|
55
70
|
format = editorModel.editorParams.format;
|
|
56
71
|
}
|
|
@@ -141,6 +156,16 @@ const IBizSlider = /* @__PURE__ */ vue.defineComponent({
|
|
|
141
156
|
return vue.createVNode("div", {
|
|
142
157
|
"class": this.ns.b("button")
|
|
143
158
|
}, [this.currentVal]);
|
|
159
|
+
},
|
|
160
|
+
"left-button": () => {
|
|
161
|
+
return vue.createVNode("div", {
|
|
162
|
+
"class": this.ns.b("button")
|
|
163
|
+
}, [Array.isArray(this.currentVal) ? this.currentVal[0] : this.currentVal]);
|
|
164
|
+
},
|
|
165
|
+
"right-button": () => {
|
|
166
|
+
return vue.createVNode("div", {
|
|
167
|
+
"class": this.ns.b("button")
|
|
168
|
+
}, [Array.isArray(this.currentVal) ? this.currentVal[1] : this.currentVal]);
|
|
144
169
|
}
|
|
145
170
|
});
|
|
146
171
|
}
|
|
@@ -143,6 +143,8 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
|
|
|
143
143
|
return fileInfo;
|
|
144
144
|
};
|
|
145
145
|
const handleModalClick = () => {
|
|
146
|
+
if ((props.disabled || props.readonly) && !currentDataURL.value)
|
|
147
|
+
return;
|
|
146
148
|
fullScreen.value = true;
|
|
147
149
|
restCavans();
|
|
148
150
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-signature{--ibiz-signature-min-height:120px;position:relative;width:100%;height:100%;min-height:var(--ibiz-signature-min-height);overflow:hidden;border:none;border-radius:var(--ibiz-border-radius-large)}.ibiz-signature__modal{position:absolute;z-index:6;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ibiz-signature__modal--background{width:100%;height:100%;background-color:var(--ibiz-color-black);opacity:.1}.ibiz-signature__modal--caption{position:absolute;color:var(--ibiz-color-text-2)}.ibiz-signature__modal--toolbar{position:absolute;top:var(--ibiz-spacing-tight);right:var(--ibiz-spacing-tight)}.ibiz-signature__modal--toolbar .van-button{width:var(--ibiz-spacing-loose);height:auto;height:var(--ibiz-spacing-loose);background-color:var(--van-uploader-delete-background);border:var(--van-uploader-delete-background);opacity:.6}.ibiz-signature__modal--toolbar .van-button+.van-button{margin-left:var(--ibiz-spacing-loose)}.ibiz-signature__content{width:100%;height:100%;background-repeat:no-repeat;background-position:center center;background-size:contain}.ibiz-signature__readonly .ibiz-signature__modal--toolbar{display:none}.ibiz-signature-overlay{--ibiz-signature-overlay-padding-bottom:0px;position:absolute;z-index:1;width:0;height:0;background-color:var(--ibiz-color-bg-1);opacity:0}.ibiz-signature-overlay.is-full-screen{position:fixed;inset:0;z-index:9999;width:100vw;height:100vh;opacity:1}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__container{position:absolute;top:0;left:0;width:calc(100vh - var(--ibiz-signature-overlay-padding-bottom));height:100vw;transform:rotate(90deg) translateY(-100%);transform-origin:top left}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__header{position:absolute;z-index:6;padding:var(--ibiz-spacing-extra-tight);text-align:left}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer{position:absolute;right:var(--ibiz-spacing-tight);bottom:var(--ibiz-spacing-base);z-index:6}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer .van-button{height:auto;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-loose);font-size:var(--ibiz-font-size-header-6)}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer .van-button+.van-button{margin-left:var(--ibiz-spacing-loose)}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__pad{position:absolute;top:0;left:0;width:100vw;height:calc(100vh - var(--ibiz-signature-overlay-padding-bottom));transform:rotate(-90deg) translateX(-100%);transform-origin:top left}.ibiz-signature-overlay.is-readonly .ibiz-signature-overlay__footer,.ibiz-signature-overlay.is-readonly .ibiz-signature-overlay__header{display:none}.ibiz-signature-overlay.is-readonly .ibiz-signature-pad{pointer-events:none}.ibiz-signature-overlay.is-disabled .ibiz-signature-pad{pointer-events:none}
|
|
1
|
+
.ibiz-signature{--ibiz-signature-min-height:120px;position:relative;width:100%;height:100%;min-height:var(--ibiz-signature-min-height);overflow:hidden;border:none;border-radius:var(--ibiz-border-radius-large)}.ibiz-signature__modal{position:absolute;z-index:6;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ibiz-signature__modal--background{width:100%;height:100%;background-color:var(--ibiz-color-black);opacity:.1}.ibiz-signature__modal--caption{position:absolute;color:var(--ibiz-color-text-2)}.ibiz-signature__modal--toolbar{position:absolute;top:var(--ibiz-spacing-tight);right:var(--ibiz-spacing-tight)}.ibiz-signature__modal--toolbar .van-button{width:var(--ibiz-spacing-loose);height:auto;height:var(--ibiz-spacing-loose);background-color:var(--van-uploader-delete-background);border:var(--van-uploader-delete-background);opacity:.6}.ibiz-signature__modal--toolbar .van-button+.van-button{margin-left:var(--ibiz-spacing-loose)}.ibiz-signature__content{width:100%;height:100%;min-height:var(--ibiz-signature-min-height);background-repeat:no-repeat;background-position:center center;background-size:contain}.ibiz-signature__readonly .ibiz-signature__modal--toolbar{display:none}.ibiz-signature-overlay{--ibiz-signature-overlay-padding-bottom:0px;position:absolute;z-index:1;width:0;height:0;background-color:var(--ibiz-color-bg-1);opacity:0}.ibiz-signature-overlay.is-full-screen{position:fixed;inset:0;z-index:9999;width:100vw;height:100vh;opacity:1}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__container{position:absolute;top:0;left:0;width:calc(100vh - var(--ibiz-signature-overlay-padding-bottom));height:100vw;transform:rotate(90deg) translateY(-100%);transform-origin:top left}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__header{position:absolute;z-index:6;padding:var(--ibiz-spacing-extra-tight);text-align:left}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer{position:absolute;right:var(--ibiz-spacing-tight);bottom:var(--ibiz-spacing-base);z-index:6}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer .van-button{height:auto;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-loose);font-size:var(--ibiz-font-size-header-6)}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer .van-button+.van-button{margin-left:var(--ibiz-spacing-loose)}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__pad{position:absolute;top:0;left:0;width:100vw;height:calc(100vh - var(--ibiz-signature-overlay-padding-bottom));transform:rotate(-90deg) translateX(-100%);transform-origin:top left}.ibiz-signature-overlay.is-readonly .ibiz-signature-overlay__footer,.ibiz-signature-overlay.is-readonly .ibiz-signature-overlay__header{display:none}.ibiz-signature-overlay.is-readonly .ibiz-signature-pad{pointer-events:none}.ibiz-signature-overlay.is-disabled .ibiz-signature-pad{pointer-events:none}
|
|
@@ -14,10 +14,13 @@ const IBizImageSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
setup(props, {
|
|
15
15
|
emit
|
|
16
16
|
}) {
|
|
17
|
-
var _a;
|
|
17
|
+
var _a, _b;
|
|
18
18
|
const ns = vue3Util.useNamespace("image-select");
|
|
19
19
|
const c = props.controller;
|
|
20
|
-
|
|
20
|
+
let result = ((_a = c.editorParams) == null ? void 0 : _a.STOPPROPAGATION) !== "false";
|
|
21
|
+
if ((_b = c.editorParams) == null ? void 0 : _b.stoppropagation) {
|
|
22
|
+
result = c.editorParams.stoppropagation !== "false";
|
|
23
|
+
}
|
|
21
24
|
const svg = vue.ref("");
|
|
22
25
|
const {
|
|
23
26
|
files
|
|
@@ -14,10 +14,13 @@ const IBizImageUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
setup(props, {
|
|
15
15
|
emit
|
|
16
16
|
}) {
|
|
17
|
-
var _a;
|
|
17
|
+
var _a, _b;
|
|
18
18
|
const ns = vue3Util.useNamespace("image-upload");
|
|
19
19
|
const c = props.controller;
|
|
20
|
-
|
|
20
|
+
let result = ((_a = c.editorParams) == null ? void 0 : _a.STOPPROPAGATION) !== "false";
|
|
21
|
+
if ((_b = c.editorParams) == null ? void 0 : _b.stoppropagation) {
|
|
22
|
+
result = c.editorParams.stoppropagation !== "false";
|
|
23
|
+
}
|
|
21
24
|
const {
|
|
22
25
|
uploadUrl,
|
|
23
26
|
headers,
|
|
@@ -146,7 +146,15 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
146
146
|
this.multiple = false;
|
|
147
147
|
}
|
|
148
148
|
if (this.editorParams) {
|
|
149
|
-
const {
|
|
149
|
+
const {
|
|
150
|
+
isDrag,
|
|
151
|
+
multiple,
|
|
152
|
+
accept,
|
|
153
|
+
uploadParams,
|
|
154
|
+
exportParams,
|
|
155
|
+
uploadparams,
|
|
156
|
+
exportparams
|
|
157
|
+
} = this.editorParams;
|
|
150
158
|
if (isDrag) {
|
|
151
159
|
this.isDrag = Boolean(isDrag);
|
|
152
160
|
}
|
|
@@ -166,6 +174,16 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
166
174
|
);
|
|
167
175
|
}
|
|
168
176
|
}
|
|
177
|
+
if (uploadparams) {
|
|
178
|
+
try {
|
|
179
|
+
this.uploadParams = JSON.parse(uploadparams);
|
|
180
|
+
} catch (error) {
|
|
181
|
+
throw new core.RuntimeModelError(
|
|
182
|
+
uploadparams,
|
|
183
|
+
ibiz.i18n.t("editor.upload.uploadJsonFormatErr")
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
169
187
|
if (exportParams) {
|
|
170
188
|
try {
|
|
171
189
|
this.exportParams = JSON.parse(exportParams);
|
|
@@ -176,6 +194,16 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
176
194
|
);
|
|
177
195
|
}
|
|
178
196
|
}
|
|
197
|
+
if (exportparams) {
|
|
198
|
+
try {
|
|
199
|
+
this.exportParams = JSON.parse(exportparams);
|
|
200
|
+
} catch (error) {
|
|
201
|
+
throw new core.RuntimeModelError(
|
|
202
|
+
exportparams,
|
|
203
|
+
ibiz.i18n.t("editor.upload.exportJsonFormatErr")
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
179
207
|
}
|
|
180
208
|
}
|
|
181
209
|
/**
|
|
@@ -23,11 +23,18 @@ function useVanUpload(props, valueChange, c) {
|
|
|
23
23
|
() => props.data,
|
|
24
24
|
(newVal) => {
|
|
25
25
|
if (newVal) {
|
|
26
|
+
const editorParams = { ...c.editorParams };
|
|
27
|
+
if (editorParams.uploadparams) {
|
|
28
|
+
editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
|
|
29
|
+
}
|
|
30
|
+
if (editorParams.exportparams) {
|
|
31
|
+
editorParams.exportParams = JSON.parse(editorParams.exportparams);
|
|
32
|
+
}
|
|
26
33
|
const urls = ibiz.util.file.calcFileUpDownUrl(
|
|
27
34
|
c.context,
|
|
28
35
|
c.params,
|
|
29
36
|
newVal,
|
|
30
|
-
|
|
37
|
+
editorParams
|
|
31
38
|
);
|
|
32
39
|
uploadUrl.value = urls.uploadUrl;
|
|
33
40
|
downloadUrl.value = urls.downloadUrl;
|
package/lib/index.cjs
CHANGED
|
@@ -9,6 +9,7 @@ var index$E = require('./view-engine/index.cjs');
|
|
|
9
9
|
require('./util/index.cjs');
|
|
10
10
|
var index = require('./locale/index.cjs');
|
|
11
11
|
require('./mob-app/index.cjs');
|
|
12
|
+
var ibizVue3 = require('./ibiz-vue3.cjs');
|
|
12
13
|
var col = require('./common/col/col.cjs');
|
|
13
14
|
var row = require('./common/row/row.cjs');
|
|
14
15
|
var keepAlive = require('./common/keep-alive/keep-alive.cjs');
|
|
@@ -183,6 +184,7 @@ exports.IBizPanelComponents = index$C.IBizPanelComponents;
|
|
|
183
184
|
exports.IBizEditor = index$D.IBizEditor;
|
|
184
185
|
exports.IBizViewEngine = index$E.IBizViewEngine;
|
|
185
186
|
exports.i18n = index.i18n;
|
|
187
|
+
exports.IBizVue3 = ibizVue3.default;
|
|
186
188
|
exports.IBizCol = col.IBizCol;
|
|
187
189
|
exports.IBizRow = row.IBizRow;
|
|
188
190
|
exports.IBizKeepAlive = keepAlive.IBizKeepAlive;
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -191,6 +191,9 @@ var index = {
|
|
|
191
191
|
noSupportTreePicker: "Drop-down tree selection is not supported",
|
|
192
192
|
confirm: "confirm"
|
|
193
193
|
},
|
|
194
|
+
mapPicker: {
|
|
195
|
+
searchPlaceholder: "Please enter a keyword to select a location"
|
|
196
|
+
},
|
|
194
197
|
markdown: {
|
|
195
198
|
uploadJsonFormatErr: "The configuration of uploadparams did not follow the standard JSON format",
|
|
196
199
|
exportJsonFormatErr: "The configuration of exportparams did not follow the standard JSON format",
|
|
@@ -176,6 +176,9 @@ var index = {
|
|
|
176
176
|
noSupportTreePicker: "\u6682\u672A\u652F\u6301\u6811\u5F62\u4E0B\u62C9\u9009\u62E9",
|
|
177
177
|
confirm: "\u786E\u5B9A"
|
|
178
178
|
},
|
|
179
|
+
mapPicker: {
|
|
180
|
+
searchPlaceholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u9009\u62E9\u5730\u70B9"
|
|
181
|
+
},
|
|
179
182
|
markdown: {
|
|
180
183
|
uploadJsonFormatErr: "\u914D\u7F6Euploadparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F",
|
|
181
184
|
exportJsonFormatErr: "\u914D\u7F6Eexportparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F",
|
|
@@ -60,12 +60,13 @@ class AppRouter {
|
|
|
60
60
|
const beforeEnter = async (_to, _from, next) => {
|
|
61
61
|
if (!qxUtil.isNilOrEmpty(ibiz.appData)) {
|
|
62
62
|
next();
|
|
63
|
-
}
|
|
64
|
-
const authority = await authGuard.AuthGuard(this.getAppContext(_to));
|
|
65
|
-
if (authority) {
|
|
66
|
-
next();
|
|
67
63
|
} else {
|
|
68
|
-
|
|
64
|
+
const authority = await authGuard.AuthGuard(this.getAppContext(_to));
|
|
65
|
+
if (authority) {
|
|
66
|
+
next();
|
|
67
|
+
} else {
|
|
68
|
+
next(false);
|
|
69
|
+
}
|
|
69
70
|
}
|
|
70
71
|
};
|
|
71
72
|
const placeholder = ibiz.env.routePlaceholder;
|