hy-dispatch-ui-v3 0.2.80 → 0.2.82
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/tailwind.css +71 -13
- package/es/api/file.mjs +19 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +1 -1
- package/es/components/hyKindEditor/index.mjs +7 -0
- package/es/components/hyKindEditor/kindEditor.vue.mjs +285 -0
- package/es/components/hyKindEditor/style/kindEditor.scss +18 -0
- package/es/components/hyUserAvatar/style/userAvatar.scss +18 -15
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +157 -53
- package/es/components/index.mjs +1 -0
- package/es/index.mjs +2 -1
- package/es/static/hy-svg-icons/hy-icon-dispatch-share1-user-high.js +16 -0
- package/es/static/hy-svg-icons/hy-icon-dispatch-share1-user-off.js +20 -0
- package/es/utils/file.mjs +7 -1
- package/es/utils/index.mjs +1 -1
- package/es/version.mjs +1 -1
- package/lib/api/file.js +21 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +1 -1
- package/lib/components/hyKindEditor/index.js +12 -0
- package/lib/components/hyKindEditor/kindEditor.vue.js +289 -0
- package/lib/components/hyKindEditor/style/kindEditor.scss +18 -0
- package/lib/components/hyUserAvatar/style/userAvatar.scss +18 -15
- package/lib/components/hyUserAvatar/userAvatar.vue.js +156 -52
- package/lib/components/index.js +32 -30
- package/lib/index.js +51 -48
- package/lib/static/hy-svg-icons/hy-icon-dispatch-share1-user-high.js +16 -0
- package/lib/static/hy-svg-icons/hy-icon-dispatch-share1-user-off.js +20 -0
- package/lib/utils/file.js +7 -0
- package/lib/utils/index.js +1 -0
- package/lib/version.js +1 -1
- package/package.json +3 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createElementBlock, normalizeStyle, Fragment, renderList, normalizeClass, createVNode, createCommentVNode, unref, toDisplayString, createBlock } from 'vue';
|
|
2
2
|
import '../../utils/index.mjs';
|
|
3
3
|
import '../../hooks/index.mjs';
|
|
4
4
|
import '../index.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { useBaseMainStore } from '../../hooks/useBaseMainStore.mjs';
|
|
6
6
|
import { pxTorem } from '../../utils/adaptive.mjs';
|
|
7
7
|
import { $t } from '../../hooks/useLocale.mjs';
|
|
8
8
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
@@ -17,17 +17,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
17
17
|
initSelectSvgName: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: () => {
|
|
20
|
-
return "dispatch-share1-user-
|
|
20
|
+
return "dispatch-share1-user-off";
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
initSvgName: {
|
|
24
24
|
type: String,
|
|
25
25
|
default: () => {
|
|
26
|
-
return "dispatch-share1-user-
|
|
26
|
+
return "dispatch-share1-user-high";
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
device: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: () => {
|
|
32
|
+
return {};
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
deviceList: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => {
|
|
38
|
+
return [];
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
isBusy: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: () => {
|
|
44
|
+
return false;
|
|
27
45
|
}
|
|
28
46
|
},
|
|
29
|
-
device: Object,
|
|
30
|
-
// 设备信息
|
|
31
47
|
audioContextType: {
|
|
32
48
|
type: Boolean,
|
|
33
49
|
default: () => {
|
|
@@ -53,17 +69,38 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
53
69
|
}
|
|
54
70
|
}
|
|
55
71
|
},
|
|
56
|
-
|
|
57
|
-
|
|
72
|
+
setup(__props) {
|
|
73
|
+
const { baseMainStore } = useBaseMainStore();
|
|
58
74
|
const props = __props;
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const isGbDevice = computed(
|
|
62
|
-
() => props.device?.gbDevice === 1 && (props.device?.deviceType || props.device?.type) !== 13
|
|
63
|
-
);
|
|
64
|
-
const headImg = computed(() => {
|
|
65
|
-
return props.device && (unref(userAvatarMap)?.get(props.device.deviceId) || props.device.headImg);
|
|
75
|
+
const getDeviceMap = computed(() => {
|
|
76
|
+
return baseMainStore.value.getters.getDeviceMap;
|
|
66
77
|
});
|
|
78
|
+
const deviceListNum = computed(() => {
|
|
79
|
+
return props.deviceList.length;
|
|
80
|
+
});
|
|
81
|
+
const displayDevice = computed(() => {
|
|
82
|
+
const device = props.deviceList.length === 1 ? props.deviceList[0] : props.device;
|
|
83
|
+
if (props.deviceList.length === 0 && device.deviceId && !device.headImg) {
|
|
84
|
+
const headImgFromMap = getDeviceMap.value.get(device.deviceId);
|
|
85
|
+
if (headImgFromMap) {
|
|
86
|
+
return {
|
|
87
|
+
...device,
|
|
88
|
+
headImg: headImgFromMap
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return device;
|
|
93
|
+
});
|
|
94
|
+
const imgError = ref(false);
|
|
95
|
+
watch(
|
|
96
|
+
() => displayDevice.value.headImg,
|
|
97
|
+
() => {
|
|
98
|
+
imgError.value = false;
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
function setImgError(type) {
|
|
102
|
+
imgError.value = type;
|
|
103
|
+
}
|
|
67
104
|
function parseRem(res) {
|
|
68
105
|
let px = res;
|
|
69
106
|
if (px) {
|
|
@@ -76,57 +113,124 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
76
113
|
return "";
|
|
77
114
|
}
|
|
78
115
|
return (_ctx, _cache) => {
|
|
116
|
+
const _component_HyUserAvatar = resolveComponent("HyUserAvatar");
|
|
79
117
|
return openBlock(), createElementBlock(
|
|
80
118
|
"div",
|
|
81
119
|
{
|
|
82
120
|
style: normalizeStyle({
|
|
83
121
|
width: `${parseRem(__props.width)}rem`,
|
|
84
122
|
height: `${parseRem(__props.height)}rem`,
|
|
85
|
-
"border-color":
|
|
123
|
+
"border-color": deviceListNum.value > 1 ? "rgb(var(--hy-auxiliary), 1)" : displayDevice.value.onlineState === 1 ? __props.audioContextType ? "rgb(var(--hy-theme), 1)" : displayDevice.value.gbDevice === 1 && (displayDevice.value.deviceType || displayDevice.value.type) !== 13 ? "#FDE777" : "rgb(var(--hy-auxiliary), 1)" : "rgb(var(--hy-theme), 1)"
|
|
86
124
|
}),
|
|
87
|
-
class: "
|
|
125
|
+
class: "hyUserAvatar border p-[0.3%] font-bold"
|
|
88
126
|
},
|
|
89
127
|
[
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
style: normalizeStyle(
|
|
95
|
-
__props.device?.onlineState === 1 ? "background:linear-gradient(180deg, #5A2120 0%, #C81F12 100%); color:#FDE777;" : "background: rgb(var(--hy-background-2)); color: rgb(var(--hy-auxiliary));"
|
|
96
|
-
),
|
|
97
|
-
class: "user-avatar font-[600] text-base"
|
|
128
|
+
deviceListNum.value > 1 ? (openBlock(), createElementBlock("ul", {
|
|
129
|
+
key: 0,
|
|
130
|
+
style: {
|
|
131
|
+
"border-color": "rgb(var(--hy-theme), 1)"
|
|
98
132
|
},
|
|
99
|
-
"
|
|
100
|
-
4
|
|
101
|
-
/* STYLE */
|
|
102
|
-
)) : (openBlock(), createElementBlock("div", {
|
|
103
|
-
key: 1,
|
|
104
|
-
class: "user-avatar"
|
|
133
|
+
class: "w-full h-full flex items-center justify-center overflow-hidden flex-wrap box-border content-center"
|
|
105
134
|
}, [
|
|
106
|
-
|
|
135
|
+
(openBlock(true), createElementBlock(
|
|
136
|
+
Fragment,
|
|
137
|
+
null,
|
|
138
|
+
renderList(__props.deviceList.slice(0, 9), (item, index) => {
|
|
139
|
+
return openBlock(), createElementBlock(
|
|
140
|
+
"li",
|
|
141
|
+
{
|
|
142
|
+
key: index,
|
|
143
|
+
class: normalizeClass([{
|
|
144
|
+
"w-full h-full": deviceListNum.value === 1,
|
|
145
|
+
"p-[2%]": deviceListNum.value > 1,
|
|
146
|
+
"w-[50%] h-[50%]": deviceListNum.value > 1 && deviceListNum.value <= 4,
|
|
147
|
+
"w-[33%] h-[33%]": deviceListNum.value > 4
|
|
148
|
+
}, "box-border"])
|
|
149
|
+
},
|
|
150
|
+
[
|
|
151
|
+
createVNode(_component_HyUserAvatar, {
|
|
152
|
+
iconType: __props.iconType,
|
|
153
|
+
device: {
|
|
154
|
+
...item
|
|
155
|
+
},
|
|
156
|
+
class: "!w-full !h-full !border-0 !bg-background-3 !font-[100]",
|
|
157
|
+
ref_for: true,
|
|
158
|
+
ref: "userHeadPortraitRef"
|
|
159
|
+
}, null, 8, ["iconType", "device"])
|
|
160
|
+
],
|
|
161
|
+
2
|
|
162
|
+
/* CLASS */
|
|
163
|
+
);
|
|
164
|
+
}),
|
|
165
|
+
128
|
|
166
|
+
/* KEYED_FRAGMENT */
|
|
167
|
+
)),
|
|
168
|
+
__props.isBusy ? (openBlock(), createElementBlock("li", {
|
|
107
169
|
key: 0,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
170
|
+
class: "iconTypeBox bg-warning shadow-[0_0_4px_1px] !shadow-warning"
|
|
171
|
+
})) : createCommentVNode("v-if", true)
|
|
172
|
+
])) : (openBlock(), createElementBlock("div", {
|
|
173
|
+
key: 1,
|
|
174
|
+
class: "w-full h-full"
|
|
175
|
+
}, [
|
|
176
|
+
displayDevice.value.gbDevice === 1 && (displayDevice.value.deviceType || displayDevice.value.type) !== 13 ? (openBlock(), createElementBlock(
|
|
177
|
+
"div",
|
|
178
|
+
{
|
|
179
|
+
key: 0,
|
|
180
|
+
style: normalizeStyle(
|
|
181
|
+
displayDevice.value.onlineState === 1 ? "background:linear-gradient(180deg, #5A2120 0%, #C81F12 100%); color:#FDE777;" : "background:rgb(var(--hy-background-2), 1); color:rgb(var(--hy-auxiliary), 1);"
|
|
182
|
+
),
|
|
183
|
+
class: "headPortrait flex items-center justify-center overflow-hidden text-base"
|
|
184
|
+
},
|
|
185
|
+
" GB ",
|
|
186
|
+
4
|
|
187
|
+
/* STYLE */
|
|
188
|
+
)) : (openBlock(), createElementBlock("div", {
|
|
111
189
|
key: 1,
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
190
|
+
class: "headPortrait flex items-center justify-center overflow-hidden"
|
|
191
|
+
}, [
|
|
192
|
+
displayDevice.value.headImg && !imgError.value ? (openBlock(), createElementBlock("img", {
|
|
193
|
+
key: 0,
|
|
194
|
+
src: displayDevice.value.headImg,
|
|
195
|
+
alt: displayDevice.value.name || unref($t)("userAvatar.userAvatar"),
|
|
196
|
+
onError: ($event) => setImgError(true)
|
|
197
|
+
}, null, 40, ["src", "alt", "onError"])) : displayDevice.value.name ? (openBlock(), createElementBlock(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
key: 1,
|
|
201
|
+
class: "text-theme nameText"
|
|
202
|
+
},
|
|
203
|
+
toDisplayString(displayDevice.value.name.slice(-2)),
|
|
204
|
+
1
|
|
205
|
+
/* TEXT */
|
|
206
|
+
)) : displayDevice.value.onlineState === 1 ? (openBlock(), createBlock(unref(HyIcon), {
|
|
207
|
+
key: 2,
|
|
208
|
+
"svg-name": __props.initSelectSvgName,
|
|
209
|
+
class: "svgBox"
|
|
210
|
+
}, null, 8, ["svg-name"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
211
|
+
key: 3,
|
|
212
|
+
"svg-name": __props.initSvgName,
|
|
213
|
+
class: "svgBox"
|
|
214
|
+
}, null, 8, ["svg-name"]))
|
|
215
|
+
])),
|
|
216
|
+
__props.iconType ? (openBlock(), createElementBlock(
|
|
217
|
+
"span",
|
|
218
|
+
{
|
|
219
|
+
key: 2,
|
|
220
|
+
class: normalizeClass([
|
|
221
|
+
"iconTypeBox",
|
|
222
|
+
displayDevice.value.onlineState === 1 ? displayDevice.value.busy === 1 ? "bg-warning shadow-[0_0_4px_1px] !shadow-warning" : "bg-success shadow-[0_0_4px_1px] !shadow-success" : "bg-info"
|
|
223
|
+
])
|
|
224
|
+
},
|
|
225
|
+
null,
|
|
226
|
+
2
|
|
227
|
+
/* CLASS */
|
|
228
|
+
)) : createCommentVNode("v-if", true),
|
|
229
|
+
__props.isBusy ? (openBlock(), createElementBlock("span", {
|
|
230
|
+
key: 3,
|
|
231
|
+
class: "iconTypeBox bg-warning shadow-[0_0_4px_1px] !shadow-warning"
|
|
232
|
+
})) : createCommentVNode("v-if", true)
|
|
233
|
+
]))
|
|
130
234
|
],
|
|
131
235
|
4
|
|
132
236
|
/* STYLE */
|
package/es/components/index.mjs
CHANGED
|
@@ -31,6 +31,7 @@ export { HyDrawer } from './hyDrawer/index.mjs';
|
|
|
31
31
|
export { HyStatus } from './hyStatus/index.mjs';
|
|
32
32
|
export { HyCheckboxGroup } from './hyCheckboxGroup/index.mjs';
|
|
33
33
|
export { HyLocationMap } from './hyLocationMap/index.mjs';
|
|
34
|
+
export { HyKindEditor } from './hyKindEditor/index.mjs';
|
|
34
35
|
export { resetAppFormValue, useAppForm } from './hyForm/js/useAppForm.mjs';
|
|
35
36
|
export { resetAppSearchValue, useAppSearch } from './hySearch/js/useAppSearch.mjs';
|
|
36
37
|
export { useAppTable } from './hyTable/js/useAppTable.mjs';
|
package/es/index.mjs
CHANGED
|
@@ -28,6 +28,7 @@ export { HyFilePlayback } from './bussiness/hyFilePlayback/index.mjs';
|
|
|
28
28
|
export { HyForm } from './components/hyForm/index.mjs';
|
|
29
29
|
export { HyIcon } from './components/hyIcon/index.mjs';
|
|
30
30
|
export { HyIconBox } from './components/hyIconBox/index.mjs';
|
|
31
|
+
export { HyKindEditor } from './components/hyKindEditor/index.mjs';
|
|
31
32
|
export { HyLocationMap } from './components/hyLocationMap/index.mjs';
|
|
32
33
|
export { HyMap } from './components/hyMap/index.mjs';
|
|
33
34
|
export { HyMapAearchPlace } from './bussiness/hyMapAearchPlace/index.mjs';
|
|
@@ -51,7 +52,7 @@ export { HyVideoPlayer } from './components/hyVideoPlayer/index.mjs';
|
|
|
51
52
|
export { InitMap, setMapServer, setPoiServer } from './utils/map/index.mjs';
|
|
52
53
|
export { PERMISSION } from './utils/permission.mjs';
|
|
53
54
|
export { base64Decrypt, encryptToBase64, generateRandomCode } from './utils/crypto.mjs';
|
|
54
|
-
export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './utils/file.mjs';
|
|
55
|
+
export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, preSignedUrlGetApi, presignedUrl, sizeToTextHandler } from './utils/file.mjs';
|
|
55
56
|
export { bus, usePublish, useSubscribe } from './hooks/useSubscribe.mjs';
|
|
56
57
|
export { clearResizeObserver, useResizeObserver } from './hooks/useResizeObserver.mjs';
|
|
57
58
|
export { clearSpace, columnDefaultValueHandler, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnTimeRangeOptionsHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './utils/form.mjs';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
id: 'hy-icon-dispatch-share1-user-high',
|
|
3
|
+
defs: `<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="hy-icon-dispatch-share1-user-high-linearGradient-1">
|
|
4
|
+
<stop stop-color="#FFFFFF" offset="0%"></stop>
|
|
5
|
+
<stop stop-color="#96F8FF" offset="42.5890224%"></stop>
|
|
6
|
+
<stop stop-color="#4EDFE9" stop-opacity="0.843033797" offset="61.4586139%"></stop>
|
|
7
|
+
<stop stop-color="#5EF3FE" offset="73.7907347%"></stop>
|
|
8
|
+
<stop stop-color="#63F4FD" stop-opacity="0.8" offset="86.3910511%"></stop>
|
|
9
|
+
<stop stop-color="#FFFFFF" stop-opacity="0.277671547" offset="100%"></stop>
|
|
10
|
+
</linearGradient>`,
|
|
11
|
+
symbol: `<symbol id="hy-icon-dispatch-share1-user-high" viewBox="0 0 28 28">
|
|
12
|
+
<g id="hy-icon-dispatch-share1-user-high-user_high" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
+
<path d="M13.882561,1.00405972 C14.3546746,1.00419068 14.8249537,1.06102672 15.2835708,1.17299633 C15.7346675,1.27997265 16.1738367,1.4320848 16.5944295,1.62702986 C16.9801798,1.80376974 17.3458461,2.02135829 17.685152,2.27606076 C17.9630148,2.48472688 18.2120413,2.72920774 18.4257531,3.00314301 C18.843617,3.55191754 19.1588767,4.17160671 19.3563527,4.83237297 C19.5393658,5.4573161 19.6765286,6.09476753 19.7667495,6.73965427 C19.855436,7.43621699 19.8988554,8.13779235 19.8967347,8.83996857 C20.0105554,8.93103673 20.1028587,9.04609286 20.1670568,9.17692509 C20.2361896,9.32584048 20.286585,9.48274673 20.3170901,9.64405448 C20.3602001,9.87506548 20.3670138,10.1111839 20.3371382,10.3442902 C20.3130602,10.6431856 20.2421359,10.9364429 20.1269605,11.2133316 C20.0370036,11.4015538 19.9151353,11.5727985 19.7667495,11.7194866 C19.6375415,11.8489533 19.479938,11.9465641 19.306429,12.0045836 C19.2309734,12.2825965 19.1509448,12.5593496 19.0663757,12.8347302 C18.9762247,13.0597171 18.8860737,13.2797276 18.7860951,13.496726 C18.6962155,13.6850267 18.5742888,13.8562912 18.4257531,14.0028811 C18.1678308,14.2184213 17.9143161,14.4391758 17.665366,14.6650079 C17.4407905,14.9229152 17.3040882,15.2455117 17.2750173,15.5861708 C17.22825,15.847069 17.2114562,16.1124527 17.2249625,16.3771608 C17.2482865,16.6541383 17.3193066,16.9246988 17.4351402,17.177318 C17.5716828,17.4655696 17.7618777,17.7252106 17.9955703,17.9423782 C18.3109614,18.2207912 18.6735967,18.4406342 19.0663757,18.5915401 C19.4997374,18.7750759 19.9442565,18.9310958 20.3972825,19.0586695 C20.8721967,19.1946399 21.339815,19.3548821 21.7982923,19.5387638 C22.231412,19.7063259 22.6389795,19.9335535 23.0091725,20.2138554 C23.3676348,20.4937575 23.6299698,20.8782927 23.7597321,21.3140388 C23.8503387,21.6496818 23.9106373,21.9927713 23.9399031,22.3391828 C23.9800443,22.7489921 24,23.1605209 24,23.5722892 C24.0018041,23.9634736 23.9716972,24.3541579 23.9098965,24.74044 C23.8794908,25.0304147 23.7946261,25.3120544 23.6597536,25.5705867 C23.4647549,25.7546976 23.2220309,25.8805045 22.9591177,25.9337349 C22.4953964,26.0755512 22.0243969,26.1924032 21.5481494,26.2837873 C20.9777608,26.3958879 20.3573173,26.4958093 19.6568125,26.5838135 C18.9644877,26.6709603 18.2705347,26.7446602 17.575346,26.8048717 C16.9023362,26.8633682 16.228432,26.9110869 15.5538928,26.9480094 C14.9134013,26.9829754 14.3531022,27 13.8826921,27 C13.412282,27 12.8619414,26.9829754 12.2315395,26.9480094 C11.6010065,26.9129125 10.9605149,26.8658984 10.2901477,26.8048717 C9.62542061,26.744517 8.96154394,26.6751462 8.29870122,26.5967784 C7.63816156,26.5187271 7.03776625,26.436747 6.4975153,26.3508381 C5.95713331,26.2647983 5.50677132,26.1778418 5.12651222,26.0908853 C4.87738541,26.0540084 4.63873036,25.9654616 4.42587631,25.8309324 C4.17606442,25.4541306 4.04372734,25.0117246 4.04561722,24.5597171 C3.95890764,23.641781 3.99592783,22.7163644 4.15568532,21.8082766 C4.19730452,21.2448526 4.45553097,20.7194022 4.87623831,20.3420639 C5.29051501,19.9975332 5.76107921,19.7269007 6.26728951,19.5420377 C6.80884017,19.3383798 7.35985818,19.1608139 7.91844213,19.0099529 C8.45546593,18.8684037 8.96583911,18.6403885 9.42951997,18.3348612 C9.71932848,18.1567503 9.98217545,17.9381523 10.2100863,17.6856993 C10.3753535,17.5022048 10.5073972,17.2913568 10.6003039,17.0625982 C10.6882083,16.8575574 10.7325172,16.6364962 10.7304202,16.4134364 C10.7304202,16.1887114 10.7203306,15.9376637 10.7002825,15.6602933 C10.6894128,15.3076881 10.5506848,14.9710496 10.3099338,14.7130697 C10.0657942,14.4653055 9.81214161,14.2270877 9.54954662,13.9989523 C9.40469276,13.8536008 9.28916303,13.6817612 9.20925273,13.4927973 C9.11754047,13.2728077 9.0274743,13.0521363 8.93906174,12.8308015 C8.85437192,12.5554568 8.77434273,12.2787017 8.69900844,12.0006548 C8.57566567,11.9607386 8.46046315,11.8990899 8.35884558,11.8186223 C8.23799113,11.7108161 8.13047828,11.588944 8.03859981,11.455605 C7.90418203,11.2486877 7.80603058,11.0203889 7.7483607,10.7805134 C7.65219223,10.5254399 7.61457708,10.2520355 7.63829259,9.98048717 C7.65519591,9.76807229 7.69896108,9.55866946 7.76840881,9.35725511 C7.84064278,9.15740294 7.94921508,8.97261577 8.08865459,8.81220534 C8.07200777,8.15321189 8.10542994,7.49390611 8.18863312,6.83996857 C8.26031994,6.23524979 8.37744524,5.63678104 8.53901659,5.04963332 C8.69725455,4.43919909 8.95776152,3.85994642 9.30949332,3.33643269 C9.58905826,2.88815177 9.94071394,2.4890428 10.3502921,2.15518596 C10.7072525,1.86646921 11.1009454,1.626337 11.521076,1.44106862 C11.9045933,1.27320976 12.3081946,1.15555263 12.7218667,1.09101624 C13.1060009,1.03145218 13.4940945,1.00102656 13.8828231,1 L13.8828231,1.00405972 L13.882561,1.00405972 Z" id="hy-icon-dispatch-share1-user-high-路径" fill="url(#hy-icon-dispatch-share1-user-high-linearGradient-1)" fill-rule="nonzero"></path>
|
|
14
|
+
</g>
|
|
15
|
+
</symbol>`,
|
|
16
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
id: 'hy-icon-dispatch-share1-user-off',
|
|
3
|
+
defs: `<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="hy-icon-dispatch-share1-user-off-linearGradient-1">
|
|
4
|
+
<stop stop-color="#97989B" offset="0%"></stop>
|
|
5
|
+
<stop stop-color="#B3B5B9" offset="14.5543009%"></stop>
|
|
6
|
+
<stop stop-color="#A5A8AF" offset="31.9103907%"></stop>
|
|
7
|
+
<stop stop-color="#83858B" offset="51.8358636%"></stop>
|
|
8
|
+
<stop stop-color="#7D7F83" stop-opacity="0.843033797" offset="61.5641316%"></stop>
|
|
9
|
+
<stop stop-color="#939498" offset="74.8825497%"></stop>
|
|
10
|
+
<stop stop-color="#A8A9AD" offset="100%"></stop>
|
|
11
|
+
<stop stop-color="#717378" stop-opacity="0" offset="100%"></stop>
|
|
12
|
+
</linearGradient>`,
|
|
13
|
+
symbol: `<symbol id="hy-icon-dispatch-share1-user-off" viewBox="0 0 28 28">
|
|
14
|
+
<g id="hy-icon-dispatch-share1-user-off-user_off" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
15
|
+
<g id="hy-icon-dispatch-share1-user-off-user_offline-3" transform="translate(4, 1)" fill="url(#hy-icon-dispatch-share1-user-off-linearGradient-1)" fill-rule="nonzero">
|
|
16
|
+
<path d="M9.88255747,0.00406 C10.3546675,0.004191 10.8249475,0.061027 11.2835675,0.172996 C11.7346675,0.279973 12.1738375,0.432085 12.5944275,0.62703 C12.9801775,0.80377 13.3458475,1.021358 13.6851475,1.276061 C13.9630075,1.484727 14.2120375,1.729208 14.4257475,2.003143 C14.8436175,2.551918 15.1588775,3.171607 15.3563475,3.832373 C15.5393675,4.457316 15.6765275,5.094768 15.7667475,5.739654 C15.8554375,6.436217 15.8988575,7.137792 15.8967275,7.839969 C16.0105575,7.931037 16.1028575,8.046093 16.1670575,8.176925 C16.2361875,8.32584 16.2865775,8.482747 16.3170875,8.644054 C16.3601975,8.875065 16.3670075,9.111184 16.3371375,9.34429 C16.3130575,9.643186 16.2421375,9.936443 16.1269575,10.213332 C16.0369975,10.401554 15.9151375,10.572799 15.7667475,10.719487 C15.6375375,10.848953 15.4799375,10.946564 15.3064275,11.004584 C15.2309675,11.282597 15.1509375,11.55935 15.0663775,11.83473 C14.9762175,12.059717 14.8860675,12.279728 14.7860975,12.496726 C14.6962175,12.685027 14.5742875,12.856291 14.4257475,13.002881 C14.1678275,13.218421 13.9143175,13.439176 13.6653675,13.665008 C13.4407875,13.922915 13.3040875,14.245512 13.2750175,14.586171 C13.2282475,14.847069 13.2114575,15.112453 13.2249575,15.377161 C13.2482875,15.654138 13.3193075,15.924699 13.4351375,16.177318 C13.5716775,16.46557 13.7618775,16.725211 13.9955675,16.942378 C14.3109575,17.220791 14.6735975,17.440634 15.0663775,17.59154 C15.4997375,17.775076 15.9442575,17.931096 16.3972775,18.058669 C16.8721975,18.19464 17.3398175,18.354882 17.7982875,18.538764 C18.2314075,18.706326 18.6389775,18.933553 19.0091675,19.213855 C19.3676275,19.493757 19.6299675,19.878293 19.7597275,20.314039 C19.8503375,20.649682 19.9106375,20.992771 19.9398975,21.339183 C19.9800375,21.748992 20.0000736,22.160521 20.0000736,22.572289 C20.0017975,22.963474 19.9716975,23.354158 19.9098975,23.74044 C19.8794875,24.030415 19.7946275,24.312054 19.6597475,24.570587 C19.4647475,24.754698 19.2220275,24.880504 18.9591175,24.933735 C18.4953975,25.075551 18.0243975,25.192403 17.5481475,25.283787 C16.9777575,25.395888 16.3573175,25.495809 15.6568075,25.583814 C14.9644875,25.67096 14.2705275,25.74466 13.5753475,25.804872 C12.9023375,25.863368 12.2284275,25.911087 11.5538875,25.948009 C10.9133975,25.982975 10.3530975,26 9.88268747,26 C9.41227747,26 8.86193747,25.982975 8.23153747,25.948009 C7.60100747,25.912913 6.96050747,25.865898 6.29014747,25.804872 C5.62541747,25.744517 4.96153747,25.675146 4.29869747,25.596778 C3.63815747,25.518727 3.03776747,25.436747 2.49751747,25.350838 C1.95712747,25.264798 1.50676747,25.177842 1.12650747,25.090885 C0.877387466,25.054008 0.638727466,24.965462 0.425877466,24.830932 C0.176057466,24.454131 0.0437274662,24.011725 0.0456174662,23.559717 C-0.0410925338,22.641781 -0.00407253381,21.716364 0.155687466,20.808277 C0.197297466,20.244853 0.455527466,19.719402 0.876237466,19.342064 C1.29051747,18.997533 1.76107747,18.726901 2.26728747,18.542038 C2.80883747,18.33838 3.35985747,18.160814 3.91843747,18.009953 C4.45546747,17.868404 4.96583747,17.640389 5.42951747,17.334861 C5.71932747,17.15675 5.98217747,16.938152 6.21008747,16.685699 C6.37534747,16.502205 6.50739747,16.291357 6.60029747,16.062598 C6.68820747,15.857557 6.73251747,15.636496 6.73041747,15.413436 C6.73041747,15.188711 6.72032747,14.937664 6.70027747,14.660293 C6.68940747,14.307688 6.55067747,13.97105 6.30992747,13.71307 C6.06578747,13.465306 5.81213747,13.227088 5.54954747,12.998952 C5.40468747,12.853601 5.28915747,12.681761 5.20924747,12.492797 C5.11753747,12.272808 5.02746747,12.052136 4.93905747,11.830801 C4.85436747,11.555457 4.77433747,11.278702 4.69900747,11.000655 C4.57566747,10.960739 4.46045747,10.89909 4.35884747,10.818622 C4.23798747,10.710816 4.13047747,10.588944 4.03859747,10.455605 C3.90417747,10.248688 3.80602747,10.020389 3.74835747,9.780513 C3.65218747,9.52544 3.61457747,9.252035 3.63828747,8.980487 C3.65519747,8.768072 3.69895747,8.558669 3.76840747,8.357255 C3.84063747,8.157403 3.94921747,7.972616 4.08864747,7.812205 C4.07200747,7.153212 4.10542747,6.493906 4.18862747,5.839969 C4.26031747,5.23525 4.37744747,4.636781 4.53901747,4.049633 C4.69724747,3.439199 4.95775747,2.859946 5.30948747,2.336433 C5.58905747,1.888152 5.94070747,1.489043 6.35028747,1.155186 C6.70724747,0.866469 7.10094747,0.626337 7.52107747,0.441069 C7.90458747,0.27321 8.30818747,0.155553 8.72186747,0.091016 C9.10599747,0.031452 9.49408747,0.001027 9.88281747,0 L9.88281747,0.00406 L9.88255747,0.00406 Z" id="hy-icon-dispatch-share1-user-off-user_del"></path>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</symbol>`,
|
|
20
|
+
};
|
package/es/utils/file.mjs
CHANGED
|
@@ -33,6 +33,12 @@ async function fileJsonUplaod(file) {
|
|
|
33
33
|
});
|
|
34
34
|
return result;
|
|
35
35
|
}
|
|
36
|
+
async function preSignedUrlGetApi(keyList) {
|
|
37
|
+
const { api } = useApi();
|
|
38
|
+
return await unref(api).post("file/preSignedUrlGet", { keyList }, {
|
|
39
|
+
isJSON: true
|
|
40
|
+
});
|
|
41
|
+
}
|
|
36
42
|
async function fileFormUpload(file) {
|
|
37
43
|
const { api } = useApi();
|
|
38
44
|
try {
|
|
@@ -66,4 +72,4 @@ async function sizeToTextHandler(size) {
|
|
|
66
72
|
return `${Math.floor(size / Math.pow(1024, 4) / 100) * 100}TB`;
|
|
67
73
|
}
|
|
68
74
|
|
|
69
|
-
export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler };
|
|
75
|
+
export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, preSignedUrlGetApi, presignedUrl, sizeToTextHandler };
|
package/es/utils/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export { base64Decrypt, encryptToBase64, generateRandomCode } from './crypto.mjs
|
|
|
3
3
|
export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './is.mjs';
|
|
4
4
|
export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './handler.mjs';
|
|
5
5
|
export { formatDuration, getDefaultValueFormatByType } from './date.mjs';
|
|
6
|
-
export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './file.mjs';
|
|
6
|
+
export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, preSignedUrlGetApi, presignedUrl, sizeToTextHandler } from './file.mjs';
|
|
7
7
|
export { clearSpace, columnDefaultValueHandler, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnTimeRangeOptionsHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './form.mjs';
|
|
8
8
|
export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './input.mjs';
|
|
9
9
|
export { PERMISSION } from './permission.mjs';
|
package/es/version.mjs
CHANGED
package/lib/api/file.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../hooks/index.js');
|
|
5
|
+
var useApi = require('../hooks/useApi.js');
|
|
6
|
+
|
|
7
|
+
function preSignedUrlGetApi(params) {
|
|
8
|
+
return new Promise((resolve, reject) => {
|
|
9
|
+
const { api } = useApi.useApi();
|
|
10
|
+
const http = vue.unref(api);
|
|
11
|
+
http.post("file/preSignedUrlGet", params, {
|
|
12
|
+
isJSON: true
|
|
13
|
+
}).then((res) => {
|
|
14
|
+
resolve(res);
|
|
15
|
+
}).catch((res) => {
|
|
16
|
+
resolve(res);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.preSignedUrlGetApi = preSignedUrlGetApi;
|
|
@@ -160,7 +160,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
160
160
|
)) : vue.unref(lng) && vue.unref(lat) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
161
161
|
key: 1,
|
|
162
162
|
onClick: vue.withModifiers(($event) => vue.unref(getAddress)(), ["stop"]),
|
|
163
|
-
class: "w-full box-border text-center text-theme rounded
|
|
163
|
+
class: "w-full box-border text-center border hover:border-theme border-theme/20 text-theme rounded bg-theme/20 px-2 py-1.5 text-xs clickBox float-left"
|
|
164
164
|
}, vue.toDisplayString(vue.unref(getAddressType) ? $t("querying") : $t("queryAddress")), 9, ["onClick"])) : (vue.openBlock(), vue.createElementBlock(
|
|
165
165
|
"span",
|
|
166
166
|
{
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../utils/index.js');
|
|
6
|
+
var kindEditor = require('./kindEditor.vue.js');
|
|
7
|
+
var handler = require('../../utils/handler.js');
|
|
8
|
+
|
|
9
|
+
const HyKindEditor = handler.withInstall(kindEditor.default);
|
|
10
|
+
|
|
11
|
+
exports.HyKindEditor = HyKindEditor;
|
|
12
|
+
exports.default = HyKindEditor;
|