ik-next-ui 0.0.7 → 0.0.8
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/IkApprovalProcess/ik.index.es.js +4 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +4 -1
- package/dist/IkDescription/ik.index.es.js +4 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +4 -1
- package/dist/IkEmpty/ik-next-ui.css +1 -1
- package/dist/IkEmpty/ik.index.es.js +29 -29
- package/dist/IkImageUploadEditor/ik.index.es.js +4 -1
- package/dist/IkPickerUser/ik.index.es.js +59 -56
- package/dist/IkPlayer/ik.index.es.js +4 -1
- package/dist/IkPreviewFile/ik.index.es.js +4 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +4 -1
- package/dist/IkSideText/ik.index.es.js +44 -41
- package/dist/IkTinymce/ik-next-ui.css +1 -1
- package/dist/IkTinymce/ik.index.es.js +7004 -7003
- package/dist/IkUploadFile/ik-next-ui.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +579 -575
- package/dist/IkUploadImage/ik-next-ui.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +430 -427
- package/dist/ik-next-ui.css +2 -2
- package/dist/index.es.js +12226 -12224
- package/dist/index.umd.js +86 -86
- package/dist/src/components/IkTinymce/index.d.ts +2 -2
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
- package/dist/src/components-dev/IkUmoEditor/index.d.ts +2 -2
- package/dist/src/iking-ui/version.d.ts +1 -1
- package/dist/src/utils/use-provider.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as z, computed as d, defineComponent as I, resolveComponent as N, openBlock as s, createElementBlock as f, normalizeStyle as v, normalizeClass as C, unref as k, createBlock as h, withCtx as
|
|
2
|
-
import { ikColor as
|
|
1
|
+
import { inject as z, computed as d, defineComponent as I, resolveComponent as N, openBlock as s, createElementBlock as f, normalizeStyle as v, normalizeClass as C, unref as k, createBlock as h, withCtx as b, createElementVNode as c, createCommentVNode as w, Fragment as M, useCssVars as V, ref as W, createTextVNode as A, toDisplayString as $ } from "vue";
|
|
2
|
+
import { ikColor as F } from "iking-utils-pro";
|
|
3
3
|
import { Icon as U } from "@iconify/vue";
|
|
4
4
|
import { UseImage as j } from "@vueuse/components";
|
|
5
5
|
const O = (e, i) => (e.install = (t) => {
|
|
@@ -81,21 +81,24 @@ const S = (e, i) => {
|
|
|
81
81
|
"mp4",
|
|
82
82
|
"flv",
|
|
83
83
|
"tls"
|
|
84
|
-
],
|
|
85
|
-
const i = z("loadUrl"), t = d(() => e.loadUrl || e.fileUrl || (i == null ? void 0 : i.value)), n = z("uploadUrl"), r = d(() => e.action || e.uploadUrl || (n == null ? void 0 : n.value)), l = z("token"),
|
|
84
|
+
], P = (e) => {
|
|
85
|
+
const i = z("loadUrl"), t = d(() => e.loadUrl || e.fileUrl || (i == null ? void 0 : i.value)), n = z("uploadUrl"), r = d(() => e.action || e.uploadUrl || (n == null ? void 0 : n.value)), l = z("token"), g = d(() => e.token || (l == null ? void 0 : l.value)), u = z("onlyofficeConfig"), y = d(() => e.onlyofficeConfig || (u == null ? void 0 : u.value)), m = z("userInfo"), p = d(() => e.userInfo || (m == null ? void 0 : m.value)), x = [...L, ...L.map((o) => o.toLocaleUpperCase())];
|
|
86
86
|
return {
|
|
87
87
|
cLoadUrl: t,
|
|
88
88
|
cUploadUrl: r,
|
|
89
|
-
cToken:
|
|
90
|
-
cOnlyofficeConfig:
|
|
91
|
-
cUserInfo:
|
|
92
|
-
cOnlyofficePreviewType:
|
|
89
|
+
cToken: g,
|
|
90
|
+
cOnlyofficeConfig: y,
|
|
91
|
+
cUserInfo: p,
|
|
92
|
+
cOnlyofficePreviewType: x,
|
|
93
|
+
cHeaders: {
|
|
94
|
+
Authorization: g.value
|
|
95
|
+
}
|
|
93
96
|
};
|
|
94
97
|
}, q = {
|
|
95
98
|
key: 2,
|
|
96
99
|
class: "shrink-0 size-inherit",
|
|
97
100
|
"aria-hidden": "true"
|
|
98
|
-
}, D = ["xlink:href"],
|
|
101
|
+
}, D = ["xlink:href"], H = ["xlink:href"], R = ["size"], J = ["xlink:href"], K = ["xlink:href"], Q = /* @__PURE__ */ I({
|
|
99
102
|
name: "IkSvgIcon",
|
|
100
103
|
__name: "index",
|
|
101
104
|
props: {
|
|
@@ -123,15 +126,15 @@ const S = (e, i) => {
|
|
|
123
126
|
return;
|
|
124
127
|
const o = (a) => /^\.{1,2}\//.test(a) || a.startsWith("/") || a.includes("/");
|
|
125
128
|
return /^https?:\/\//.test(t.name) || o(t.name) ? "img" : t.name.startsWith("iksvg_") ? "two-color-svg" : /i-[^:]+:[^:]+/.test(t.name) || t.name.startsWith("ik") ? "unocss" : t.name.includes(":") ? "iconify" : "svg";
|
|
126
|
-
}),
|
|
129
|
+
}), g = {
|
|
127
130
|
big: 24,
|
|
128
131
|
default: 22,
|
|
129
132
|
small: 20
|
|
130
133
|
};
|
|
131
134
|
function u() {
|
|
132
|
-
return t.size ?
|
|
135
|
+
return t.size ? g[t.size] || t.size : 18;
|
|
133
136
|
}
|
|
134
|
-
const
|
|
137
|
+
const y = d(() => {
|
|
135
138
|
const o = u(), a = typeof o == "number" ? `${o}px` : o;
|
|
136
139
|
return {
|
|
137
140
|
width: a,
|
|
@@ -145,10 +148,10 @@ const S = (e, i) => {
|
|
|
145
148
|
height: a
|
|
146
149
|
};
|
|
147
150
|
});
|
|
148
|
-
function
|
|
151
|
+
function p(o) {
|
|
149
152
|
t.onClick ? t.onClick(o) : n("click", o);
|
|
150
153
|
}
|
|
151
|
-
const
|
|
154
|
+
const x = d(() => {
|
|
152
155
|
if (l.value !== "two-color-svg")
|
|
153
156
|
return {};
|
|
154
157
|
const o = {};
|
|
@@ -184,15 +187,15 @@ const S = (e, i) => {
|
|
|
184
187
|
e.unMargin ? "un-margin" : "margin",
|
|
185
188
|
e.hover ? "is-hover" : ""
|
|
186
189
|
)),
|
|
187
|
-
style: v(e.showBg ? m.value :
|
|
188
|
-
onClick:
|
|
190
|
+
style: v(e.showBg ? m.value : y.value),
|
|
191
|
+
onClick: p
|
|
189
192
|
},
|
|
190
193
|
[
|
|
191
194
|
e.title ? (s(), h(G, {
|
|
192
195
|
key: 0,
|
|
193
196
|
text: e.title
|
|
194
197
|
}, {
|
|
195
|
-
default:
|
|
198
|
+
default: b(() => {
|
|
196
199
|
var T;
|
|
197
200
|
return [
|
|
198
201
|
l.value === "unocss" ? (s(), f(
|
|
@@ -200,7 +203,7 @@ const S = (e, i) => {
|
|
|
200
203
|
{
|
|
201
204
|
key: 0,
|
|
202
205
|
class: C(["iconfont shrink-0 size-inherit", `${e.name} ${(T = e.name) == null ? void 0 : T.split("_")[0]}`]),
|
|
203
|
-
style: v({ ...
|
|
206
|
+
style: v({ ...x.value, ...e.showBg ? y.value : {} })
|
|
204
207
|
},
|
|
205
208
|
null,
|
|
206
209
|
6
|
|
@@ -218,13 +221,13 @@ const S = (e, i) => {
|
|
|
218
221
|
{
|
|
219
222
|
key: 3,
|
|
220
223
|
class: "two-color-icon shrink-0 size-inherit",
|
|
221
|
-
style: v(
|
|
224
|
+
style: v(x.value),
|
|
222
225
|
"aria-hidden": "true"
|
|
223
226
|
},
|
|
224
227
|
[
|
|
225
228
|
c("use", {
|
|
226
229
|
"xlink:href": `#${e.name}`
|
|
227
|
-
}, null, 8,
|
|
230
|
+
}, null, 8, H)
|
|
228
231
|
],
|
|
229
232
|
4
|
|
230
233
|
/* STYLE */
|
|
@@ -233,7 +236,7 @@ const S = (e, i) => {
|
|
|
233
236
|
src: e.name,
|
|
234
237
|
class: "shrink-0"
|
|
235
238
|
}, {
|
|
236
|
-
loading:
|
|
239
|
+
loading: b(() => [...a[0] || (a[0] = [
|
|
237
240
|
c(
|
|
238
241
|
"i",
|
|
239
242
|
{ class: "i-line-md:loading-loop size-inherit" },
|
|
@@ -242,7 +245,7 @@ const S = (e, i) => {
|
|
|
242
245
|
/* CACHED */
|
|
243
246
|
)
|
|
244
247
|
])]),
|
|
245
|
-
error:
|
|
248
|
+
error: b(() => [...a[1] || (a[1] = [
|
|
246
249
|
c(
|
|
247
250
|
"i",
|
|
248
251
|
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
@@ -253,7 +256,7 @@ const S = (e, i) => {
|
|
|
253
256
|
])]),
|
|
254
257
|
_: 1
|
|
255
258
|
/* STABLE */
|
|
256
|
-
}, 8, ["src"])) :
|
|
259
|
+
}, 8, ["src"])) : w("v-if", !0)
|
|
257
260
|
];
|
|
258
261
|
}),
|
|
259
262
|
_: 1
|
|
@@ -267,7 +270,7 @@ const S = (e, i) => {
|
|
|
267
270
|
{
|
|
268
271
|
key: 0,
|
|
269
272
|
class: C(["iconfont shrink-0 size-inherit", `${e.name} ${(B = e.name) == null ? void 0 : B.split("_")[0]}`]),
|
|
270
|
-
style: v({ ...
|
|
273
|
+
style: v({ ...x.value, ...e.showBg ? y.value : {} })
|
|
271
274
|
},
|
|
272
275
|
null,
|
|
273
276
|
6
|
|
@@ -285,12 +288,12 @@ const S = (e, i) => {
|
|
|
285
288
|
c("use", {
|
|
286
289
|
"xlink:href": `#icon-${e.name}`
|
|
287
290
|
}, null, 8, J)
|
|
288
|
-
], 8,
|
|
291
|
+
], 8, R)) : l.value === "two-color-svg" ? (s(), f(
|
|
289
292
|
"svg",
|
|
290
293
|
{
|
|
291
294
|
key: 3,
|
|
292
295
|
class: "two-color-icon shrink-0 size-inherit",
|
|
293
|
-
style: v(
|
|
296
|
+
style: v(x.value),
|
|
294
297
|
"aria-hidden": "true"
|
|
295
298
|
},
|
|
296
299
|
[
|
|
@@ -305,7 +308,7 @@ const S = (e, i) => {
|
|
|
305
308
|
src: e.name,
|
|
306
309
|
class: "shrink-0"
|
|
307
310
|
}, {
|
|
308
|
-
loading:
|
|
311
|
+
loading: b(() => [...a[2] || (a[2] = [
|
|
309
312
|
c(
|
|
310
313
|
"i",
|
|
311
314
|
{ class: "i-line-md:loading-loop size-inherit" },
|
|
@@ -314,7 +317,7 @@ const S = (e, i) => {
|
|
|
314
317
|
/* CACHED */
|
|
315
318
|
)
|
|
316
319
|
])]),
|
|
317
|
-
error:
|
|
320
|
+
error: b(() => [...a[3] || (a[3] = [
|
|
318
321
|
c(
|
|
319
322
|
"i",
|
|
320
323
|
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
@@ -325,7 +328,7 @@ const S = (e, i) => {
|
|
|
325
328
|
])]),
|
|
326
329
|
_: 1
|
|
327
330
|
/* STABLE */
|
|
328
|
-
}, 8, ["src"])) :
|
|
331
|
+
}, 8, ["src"])) : w("v-if", !0)
|
|
329
332
|
],
|
|
330
333
|
64
|
|
331
334
|
/* STABLE_FRAGMENT */
|
|
@@ -338,7 +341,7 @@ const S = (e, i) => {
|
|
|
338
341
|
}
|
|
339
342
|
}), X = /* @__PURE__ */ S(Q, [["__scopeId", "data-v-701f2359"]]), Y = O(X), Z = () => ({
|
|
340
343
|
getLinearGradient: (i) => {
|
|
341
|
-
const t =
|
|
344
|
+
const t = F.hexToRGB(i).replace(/[^\d,]/g, "").split(",").map(Number);
|
|
342
345
|
return `linear-gradient(to top, ${i} 4%, rgb(${t[0]},${t[1] + 50},${t[2]}) 88%)`;
|
|
343
346
|
}
|
|
344
347
|
}), _ = /* @__PURE__ */ I({
|
|
@@ -441,11 +444,11 @@ const S = (e, i) => {
|
|
|
441
444
|
}
|
|
442
445
|
},
|
|
443
446
|
setup(e) {
|
|
444
|
-
const i = e, { cLoadUrl: t } =
|
|
447
|
+
const i = e, { cLoadUrl: t } = P(i), n = (u) => u ? u.startsWith("http") ? u : `${t.value}${u}` : "", r = d(() => n(i.avatar)), l = W(!!i.avatar), g = () => {
|
|
445
448
|
l.value = !1;
|
|
446
449
|
};
|
|
447
|
-
return (u,
|
|
448
|
-
var
|
|
450
|
+
return (u, y) => {
|
|
451
|
+
var p;
|
|
449
452
|
const m = N("el-avatar");
|
|
450
453
|
return s(), f("div", te, [
|
|
451
454
|
c("div", oe, [
|
|
@@ -456,14 +459,14 @@ const S = (e, i) => {
|
|
|
456
459
|
shape: e.shape,
|
|
457
460
|
src: r.value,
|
|
458
461
|
fit: "contain",
|
|
459
|
-
onError:
|
|
462
|
+
onError: g
|
|
460
463
|
}, {
|
|
461
|
-
default:
|
|
462
|
-
l.value ?
|
|
464
|
+
default: b(() => [
|
|
465
|
+
l.value ? w("v-if", !0) : (s(), f(
|
|
463
466
|
M,
|
|
464
467
|
{ key: 0 },
|
|
465
468
|
[
|
|
466
|
-
|
|
469
|
+
A(
|
|
467
470
|
$(e.name.slice(-2)),
|
|
468
471
|
1
|
|
469
472
|
/* TEXT */
|
|
@@ -475,20 +478,20 @@ const S = (e, i) => {
|
|
|
475
478
|
]),
|
|
476
479
|
_: 1
|
|
477
480
|
/* STABLE */
|
|
478
|
-
}, 8, ["style", "size", "shape", "src"])) :
|
|
481
|
+
}, 8, ["style", "size", "shape", "src"])) : w("v-if", !0),
|
|
479
482
|
e.avatarType === "icon" ? (s(), h(k(Y), {
|
|
480
483
|
key: 1,
|
|
481
|
-
name: `iksvg_${(
|
|
484
|
+
name: `iksvg_${(p = e.avatar) == null ? void 0 : p.replace("iksvg_", "")}`,
|
|
482
485
|
"show-bg": e.showIconBg,
|
|
483
486
|
type: e.iconType,
|
|
484
487
|
style: v({ fontSize: e.showIconBg ? "34px" : "40px" }),
|
|
485
488
|
size: e.iconSize
|
|
486
|
-
}, null, 8, ["name", "show-bg", "type", "style", "size"])) :
|
|
489
|
+
}, null, 8, ["name", "show-bg", "type", "style", "size"])) : w("v-if", !0),
|
|
487
490
|
e.avatarType === "linearIcon" ? (s(), h(ee, {
|
|
488
491
|
key: 2,
|
|
489
492
|
icon: e.avatar,
|
|
490
493
|
"background-color": e.iconBackgroundColor
|
|
491
|
-
}, null, 8, ["icon", "background-color"])) :
|
|
494
|
+
}, null, 8, ["icon", "background-color"])) : w("v-if", !0)
|
|
492
495
|
]),
|
|
493
496
|
c("div", ie, [
|
|
494
497
|
c(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:deep(.tox-tinymce){max-height:var(--
|
|
1
|
+
:deep(.tox-tinymce){max-height:var(--v483f3b01);border-radius:4px}.tox-tinymce-aux{z-index:99999!important}.el-message{z-index:999999!important}.tox-fullscreen{z-index:2000!important}.tox-menu{z-index:99999!important}
|