@open-xamu-co/ui-components-vue 4.0.0-next.5 → 4.0.0-next.6
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/CHANGELOG.md +20 -0
- package/dist/components/base/Box.vue.d.ts +3 -3
- package/dist/components/box/Editor.stories.d.ts +6 -0
- package/dist/components/box/Editor.vue.d.ts +31 -0
- package/dist/components/form/Input.stories.d.ts +1 -0
- package/dist/components/form/InputLoop.vue.d.ts +1 -1
- package/dist/components/form/InputNValues.vue.d.ts +1 -1
- package/dist/components/form/Simple.vue.d.ts +2 -2
- package/dist/components/input/Code.stories.d.ts +6 -0
- package/dist/components/input/Code.vue.d.ts +38 -0
- package/dist/components/loader/ContentFetch.vue.d.ts +2 -2
- package/dist/components/pagination/Content.vue.d.ts +2 -2
- package/dist/components/pagination/ContentTable.vue.d.ts +2 -2
- package/dist/components/pagination/Simple.vue.d.ts +2 -2
- package/dist/components/table/Body.vue.d.ts +1 -1
- package/dist/components/table/HeadActions.vue.d.ts +1 -1
- package/dist/components/table/HeadContent.vue.d.ts +1 -1
- package/dist/components/table/Simple.vue.d.ts +2 -2
- package/dist/components/value/Simple.vue.d.ts +1 -1
- package/dist/index-Bh6ro6N2.cjs +75 -0
- package/dist/index-Bk9CS16s.js +83310 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +37 -35
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +91 -85
- package/dist/types/plugin.d.ts +8 -0
- package/package.json +20 -7
- package/dist/index-DZq6ccWv.js +0 -7168
- package/dist/index-P_sTnHeR.cjs +0 -4
package/dist/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineCustomElement as Qe } from "vue";
|
|
2
|
-
import { c as He, a as Ke, u as Xe, b as Je } from "./index-
|
|
2
|
+
import { c as He, a as Ke, u as Xe, b as Je } from "./index-Bk9CS16s.js";
|
|
3
3
|
import { componentNames as Ze } from "@open-xamu-co/ui-common-enums";
|
|
4
4
|
var et = He(function(e, t, r) {
|
|
5
5
|
return t = t.toLowerCase(), e + (r ? Ke(t) : t);
|
|
@@ -47,7 +47,7 @@ b.prototype.delete = ot;
|
|
|
47
47
|
b.prototype.get = at;
|
|
48
48
|
b.prototype.has = it;
|
|
49
49
|
b.prototype.set = lt;
|
|
50
|
-
var
|
|
50
|
+
var xe = typeof global == "object" && global && global.Object === Object && global, ct = typeof self == "object" && self && self.Object === Object && self, d = xe || ct || Function("return this")(), _ = d.Symbol, Ae = Object.prototype, ut = Ae.hasOwnProperty, st = Ae.toString, T = _ ? _.toStringTag : void 0;
|
|
51
51
|
function ft(e) {
|
|
52
52
|
var t = ut.call(e, T), r = e[T];
|
|
53
53
|
try {
|
|
@@ -58,13 +58,13 @@ function ft(e) {
|
|
|
58
58
|
var o = st.call(e);
|
|
59
59
|
return n && (t ? e[T] = r : delete e[T]), o;
|
|
60
60
|
}
|
|
61
|
-
var _t = Object.prototype,
|
|
62
|
-
function
|
|
63
|
-
return
|
|
61
|
+
var _t = Object.prototype, dt = _t.toString;
|
|
62
|
+
function pt(e) {
|
|
63
|
+
return dt.call(e);
|
|
64
64
|
}
|
|
65
65
|
var bt = "[object Null]", ht = "[object Undefined]", X = _ ? _.toStringTag : void 0;
|
|
66
66
|
function g(e) {
|
|
67
|
-
return e == null ? e === void 0 ? ht : bt : X && X in Object(e) ? ft(e) :
|
|
67
|
+
return e == null ? e === void 0 ? ht : bt : X && X in Object(e) ? ft(e) : pt(e);
|
|
68
68
|
}
|
|
69
69
|
function E(e) {
|
|
70
70
|
var t = typeof e;
|
|
@@ -77,7 +77,7 @@ function Se(e) {
|
|
|
77
77
|
var t = g(e);
|
|
78
78
|
return t == mt || t == vt || t == yt || t == gt;
|
|
79
79
|
}
|
|
80
|
-
var I =
|
|
80
|
+
var I = d["__core-js_shared__"], J = (function() {
|
|
81
81
|
var e = /[^.]+$/.exec(I && I.keys && I.keys.IE_PROTO || "");
|
|
82
82
|
return e ? "Symbol(src)_1." + e : "";
|
|
83
83
|
})();
|
|
@@ -98,25 +98,25 @@ function w(e) {
|
|
|
98
98
|
}
|
|
99
99
|
return "";
|
|
100
100
|
}
|
|
101
|
-
var Ot = /[\\^$.*+?()[\]{}|]/g,
|
|
101
|
+
var Ot = /[\\^$.*+?()[\]{}|]/g, xt = /^\[object .+?Constructor\]$/, At = Function.prototype, St = Object.prototype, Tt = At.toString, Ct = St.hasOwnProperty, Pt = RegExp(
|
|
102
102
|
"^" + Tt.call(Ct).replace(Ot, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
103
103
|
);
|
|
104
|
-
function
|
|
104
|
+
function kt(e) {
|
|
105
105
|
if (!E(e) || wt(e))
|
|
106
106
|
return !1;
|
|
107
|
-
var t = Se(e) ? Pt :
|
|
107
|
+
var t = Se(e) ? Pt : xt;
|
|
108
108
|
return t.test(w(e));
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function zt(e, t) {
|
|
111
111
|
return e?.[t];
|
|
112
112
|
}
|
|
113
113
|
function j(e, t) {
|
|
114
|
-
var r =
|
|
115
|
-
return
|
|
114
|
+
var r = zt(e, t);
|
|
115
|
+
return kt(r) ? r : void 0;
|
|
116
116
|
}
|
|
117
|
-
var P = j(
|
|
117
|
+
var P = j(d, "Map"), k = j(Object, "create");
|
|
118
118
|
function Dt() {
|
|
119
|
-
this.__data__ =
|
|
119
|
+
this.__data__ = k ? k(null) : {}, this.size = 0;
|
|
120
120
|
}
|
|
121
121
|
function Ut(e) {
|
|
122
122
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -125,21 +125,21 @@ function Ut(e) {
|
|
|
125
125
|
var Et = "__lodash_hash_undefined__", Ft = Object.prototype, It = Ft.hasOwnProperty;
|
|
126
126
|
function Lt(e) {
|
|
127
127
|
var t = this.__data__;
|
|
128
|
-
if (
|
|
128
|
+
if (k) {
|
|
129
129
|
var r = t[e];
|
|
130
130
|
return r === Et ? void 0 : r;
|
|
131
131
|
}
|
|
132
132
|
return It.call(t, e) ? t[e] : void 0;
|
|
133
133
|
}
|
|
134
|
-
var Mt = Object.prototype,
|
|
135
|
-
function
|
|
134
|
+
var Mt = Object.prototype, Rt = Mt.hasOwnProperty;
|
|
135
|
+
function qt(e) {
|
|
136
136
|
var t = this.__data__;
|
|
137
|
-
return
|
|
137
|
+
return k ? t[e] !== void 0 : Rt.call(t, e);
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var Nt = "__lodash_hash_undefined__";
|
|
140
140
|
function Bt(e, t) {
|
|
141
141
|
var r = this.__data__;
|
|
142
|
-
return this.size += this.has(e) ? 0 : 1, r[e] =
|
|
142
|
+
return this.size += this.has(e) ? 0 : 1, r[e] = k && t === void 0 ? Nt : t, this;
|
|
143
143
|
}
|
|
144
144
|
function v(e) {
|
|
145
145
|
var t = -1, r = e == null ? 0 : e.length;
|
|
@@ -151,7 +151,7 @@ function v(e) {
|
|
|
151
151
|
v.prototype.clear = Dt;
|
|
152
152
|
v.prototype.delete = Ut;
|
|
153
153
|
v.prototype.get = Lt;
|
|
154
|
-
v.prototype.has =
|
|
154
|
+
v.prototype.has = qt;
|
|
155
155
|
v.prototype.set = Bt;
|
|
156
156
|
function Wt() {
|
|
157
157
|
this.size = 0, this.__data__ = {
|
|
@@ -215,35 +215,35 @@ var Te = Object.prototype, Jt = Te.hasOwnProperty, Zt = Te.propertyIsEnumerable,
|
|
|
215
215
|
function er() {
|
|
216
216
|
return !1;
|
|
217
217
|
}
|
|
218
|
-
var Pe = typeof exports == "object" && exports && !exports.nodeType && exports, ee = Pe && typeof module == "object" && module && !module.nodeType && module, tr = ee && ee.exports === Pe, te = tr ?
|
|
218
|
+
var Pe = typeof exports == "object" && exports && !exports.nodeType && exports, ee = Pe && typeof module == "object" && module && !module.nodeType && module, tr = ee && ee.exports === Pe, te = tr ? d.Buffer : void 0, rr = te ? te.isBuffer : void 0, ke = rr || er, nr = 9007199254740991, or = /^(?:0|[1-9]\d*)$/;
|
|
219
219
|
function ar(e, t) {
|
|
220
220
|
var r = typeof e;
|
|
221
221
|
return t = t ?? nr, !!t && (r == "number" || r != "symbol" && or.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
222
222
|
}
|
|
223
223
|
var ir = 9007199254740991;
|
|
224
|
-
function
|
|
224
|
+
function ze(e) {
|
|
225
225
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ir;
|
|
226
226
|
}
|
|
227
|
-
var lr = "[object Arguments]", cr = "[object Array]", ur = "[object Boolean]", sr = "[object Date]", fr = "[object Error]", _r = "[object Function]",
|
|
228
|
-
c[jr] = c[$r] = c[Or] = c[
|
|
229
|
-
c[lr] = c[cr] = c[gr] = c[ur] = c[wr] = c[sr] = c[fr] = c[_r] = c[
|
|
230
|
-
function
|
|
231
|
-
return O(e) &&
|
|
227
|
+
var lr = "[object Arguments]", cr = "[object Array]", ur = "[object Boolean]", sr = "[object Date]", fr = "[object Error]", _r = "[object Function]", dr = "[object Map]", pr = "[object Number]", br = "[object Object]", hr = "[object RegExp]", yr = "[object Set]", mr = "[object String]", vr = "[object WeakMap]", gr = "[object ArrayBuffer]", wr = "[object DataView]", jr = "[object Float32Array]", $r = "[object Float64Array]", Or = "[object Int8Array]", xr = "[object Int16Array]", Ar = "[object Int32Array]", Sr = "[object Uint8Array]", Tr = "[object Uint8ClampedArray]", Cr = "[object Uint16Array]", Pr = "[object Uint32Array]", c = {};
|
|
228
|
+
c[jr] = c[$r] = c[Or] = c[xr] = c[Ar] = c[Sr] = c[Tr] = c[Cr] = c[Pr] = !0;
|
|
229
|
+
c[lr] = c[cr] = c[gr] = c[ur] = c[wr] = c[sr] = c[fr] = c[_r] = c[dr] = c[pr] = c[br] = c[hr] = c[yr] = c[mr] = c[vr] = !1;
|
|
230
|
+
function kr(e) {
|
|
231
|
+
return O(e) && ze(e.length) && !!c[g(e)];
|
|
232
232
|
}
|
|
233
233
|
function B(e) {
|
|
234
234
|
return function(t) {
|
|
235
235
|
return e(t);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
var De = typeof exports == "object" && exports && !exports.nodeType && exports, C = De && typeof module == "object" && module && !module.nodeType && module,
|
|
238
|
+
var De = typeof exports == "object" && exports && !exports.nodeType && exports, C = De && typeof module == "object" && module && !module.nodeType && module, zr = C && C.exports === De, L = zr && xe.process, A = (function() {
|
|
239
239
|
try {
|
|
240
240
|
var e = C && C.require && C.require("util").types;
|
|
241
241
|
return e || L && L.binding && L.binding("util");
|
|
242
242
|
} catch {
|
|
243
243
|
}
|
|
244
|
-
})(), re =
|
|
244
|
+
})(), re = A && A.isTypedArray, Dr = re ? B(re) : kr;
|
|
245
245
|
function Ur(e, t) {
|
|
246
|
-
var r = $(e), n = !r && Ce(e), o = !r && !n &&
|
|
246
|
+
var r = $(e), n = !r && Ce(e), o = !r && !n && ke(e), a = !r && !n && !o && Dr(e), i = r || n || o || a, u = i ? Kt(e.length, String) : [], s = u.length;
|
|
247
247
|
for (var f in e)
|
|
248
248
|
!(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
249
249
|
(f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -263,7 +263,7 @@ function Ir(e, t) {
|
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
function Lr(e) {
|
|
266
|
-
return e != null &&
|
|
266
|
+
return e != null && ze(e.length) && !Se(e);
|
|
267
267
|
}
|
|
268
268
|
var D = (function() {
|
|
269
269
|
try {
|
|
@@ -280,12 +280,12 @@ function Ue(e, t, r) {
|
|
|
280
280
|
writable: !0
|
|
281
281
|
}) : e[t] = r;
|
|
282
282
|
}
|
|
283
|
-
var Mr = Object.prototype,
|
|
283
|
+
var Mr = Object.prototype, Rr = Mr.hasOwnProperty;
|
|
284
284
|
function Ee(e, t, r) {
|
|
285
285
|
var n = e[t];
|
|
286
|
-
(!(
|
|
286
|
+
(!(Rr.call(e, t) && Oe(n, r)) || r === void 0 && !(t in e)) && Ue(e, t, r);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function qr(e, t, r, n) {
|
|
289
289
|
var o = !r;
|
|
290
290
|
r || (r = {});
|
|
291
291
|
for (var a = -1, i = t.length; ++a < i; ) {
|
|
@@ -294,7 +294,7 @@ function Nr(e, t, r, n) {
|
|
|
294
294
|
}
|
|
295
295
|
return r;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Nr(e) {
|
|
298
298
|
return e;
|
|
299
299
|
}
|
|
300
300
|
function Br(e, t, r) {
|
|
@@ -333,7 +333,7 @@ var Yr = D ? function(e, t) {
|
|
|
333
333
|
value: Vr(t),
|
|
334
334
|
writable: !0
|
|
335
335
|
});
|
|
336
|
-
} :
|
|
336
|
+
} : Nr, Gr = 800, Qr = 16, Hr = Date.now;
|
|
337
337
|
function Kr(e) {
|
|
338
338
|
var t = 0, r = 0;
|
|
339
339
|
return function() {
|
|
@@ -399,12 +399,12 @@ function Me(e) {
|
|
|
399
399
|
function fn(e) {
|
|
400
400
|
return e == null ? "" : Me(e);
|
|
401
401
|
}
|
|
402
|
-
var _n = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
403
|
-
function
|
|
402
|
+
var _n = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, dn = /^\w*$/;
|
|
403
|
+
function pn(e, t) {
|
|
404
404
|
if ($(e))
|
|
405
405
|
return !1;
|
|
406
406
|
var r = typeof e;
|
|
407
|
-
return r == "number" || r == "symbol" || r == "boolean" || e == null || W(e) ? !0 :
|
|
407
|
+
return r == "number" || r == "symbol" || r == "boolean" || e == null || W(e) ? !0 : dn.test(e) || !_n.test(e) || t != null && e in Object(t);
|
|
408
408
|
}
|
|
409
409
|
var bn = "Expected a function";
|
|
410
410
|
function V(e, t) {
|
|
@@ -434,9 +434,9 @@ var mn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
434
434
|
}), t;
|
|
435
435
|
});
|
|
436
436
|
function Y(e, t) {
|
|
437
|
-
return $(e) ? e :
|
|
437
|
+
return $(e) ? e : pn(e, t) ? [e] : gn(fn(e));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Re(e) {
|
|
440
440
|
if (typeof e == "string" || W(e))
|
|
441
441
|
return e;
|
|
442
442
|
var t = e + "";
|
|
@@ -445,7 +445,7 @@ function qe(e) {
|
|
|
445
445
|
function wn(e, t) {
|
|
446
446
|
t = Y(t, e);
|
|
447
447
|
for (var r = 0, n = t.length; e != null && r < n; )
|
|
448
|
-
e = e[
|
|
448
|
+
e = e[Re(t[r++])];
|
|
449
449
|
return r && r == n ? e : void 0;
|
|
450
450
|
}
|
|
451
451
|
function jn(e, t, r) {
|
|
@@ -462,10 +462,10 @@ function On(e) {
|
|
|
462
462
|
var t = this.__data__, r = t.delete(e);
|
|
463
463
|
return this.size = t.size, r;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function xn(e) {
|
|
466
466
|
return this.__data__.get(e);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function An(e) {
|
|
469
469
|
return this.__data__.has(e);
|
|
470
470
|
}
|
|
471
471
|
var Sn = 200;
|
|
@@ -485,10 +485,10 @@ function S(e) {
|
|
|
485
485
|
}
|
|
486
486
|
S.prototype.clear = $n;
|
|
487
487
|
S.prototype.delete = On;
|
|
488
|
-
S.prototype.get =
|
|
489
|
-
S.prototype.has =
|
|
488
|
+
S.prototype.get = xn;
|
|
489
|
+
S.prototype.has = An;
|
|
490
490
|
S.prototype.set = Tn;
|
|
491
|
-
var ie =
|
|
491
|
+
var ie = d.Uint8Array;
|
|
492
492
|
function G(e, t) {
|
|
493
493
|
for (var r = -1, n = t.length, o = e.length; ++r < n; )
|
|
494
494
|
e[o + r] = t[r];
|
|
@@ -505,15 +505,15 @@ function Pn(e, t) {
|
|
|
505
505
|
}
|
|
506
506
|
return a;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function qe() {
|
|
509
509
|
return [];
|
|
510
510
|
}
|
|
511
|
-
var
|
|
511
|
+
var kn = Object.prototype, zn = kn.propertyIsEnumerable, le = Object.getOwnPropertySymbols, Dn = le ? function(e) {
|
|
512
512
|
return e == null ? [] : (e = Object(e), Pn(le(e), function(t) {
|
|
513
|
-
return
|
|
513
|
+
return zn.call(e, t);
|
|
514
514
|
}));
|
|
515
|
-
} :
|
|
516
|
-
(M &&
|
|
515
|
+
} : qe, M = j(d, "DataView"), R = j(d, "Promise"), q = j(d, "Set"), N = j(d, "WeakMap"), ce = "[object Map]", Un = "[object Object]", ue = "[object Promise]", se = "[object Set]", fe = "[object WeakMap]", _e = "[object DataView]", En = w(M), Fn = w(P), In = w(R), Ln = w(q), Mn = w(N), p = g;
|
|
516
|
+
(M && p(new M(new ArrayBuffer(1))) != _e || P && p(new P()) != ce || R && p(R.resolve()) != ue || q && p(new q()) != se || N && p(new N()) != fe) && (p = function(e) {
|
|
517
517
|
var t = g(e), r = t == Un ? e.constructor : void 0, n = r ? w(r) : "";
|
|
518
518
|
if (n)
|
|
519
519
|
switch (n) {
|
|
@@ -530,21 +530,21 @@ var zn = Object.prototype, kn = zn.propertyIsEnumerable, le = Object.getOwnPrope
|
|
|
530
530
|
}
|
|
531
531
|
return t;
|
|
532
532
|
});
|
|
533
|
-
function
|
|
533
|
+
function Rn(e, t) {
|
|
534
534
|
for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; )
|
|
535
535
|
;
|
|
536
536
|
return e;
|
|
537
537
|
}
|
|
538
|
-
var
|
|
539
|
-
|
|
540
|
-
function
|
|
538
|
+
var Ne = typeof exports == "object" && exports && !exports.nodeType && exports, de = Ne && typeof module == "object" && module && !module.nodeType && module, qn = de && de.exports === Ne, pe = qn ? d.Buffer : void 0;
|
|
539
|
+
pe && pe.allocUnsafe;
|
|
540
|
+
function Nn(e, t) {
|
|
541
541
|
return e.slice();
|
|
542
542
|
}
|
|
543
543
|
var Bn = Object.getOwnPropertySymbols, Wn = Bn ? function(e) {
|
|
544
544
|
for (var t = []; e; )
|
|
545
545
|
G(t, Dn(e)), e = Fe(e);
|
|
546
546
|
return t;
|
|
547
|
-
} :
|
|
547
|
+
} : qe;
|
|
548
548
|
function Be(e) {
|
|
549
549
|
return Cn(e, rn, Wn);
|
|
550
550
|
}
|
|
@@ -610,16 +610,16 @@ function vo(e, t, r) {
|
|
|
610
610
|
}
|
|
611
611
|
var go = "[object Map]";
|
|
612
612
|
function wo(e) {
|
|
613
|
-
return O(e) &&
|
|
613
|
+
return O(e) && p(e) == go;
|
|
614
614
|
}
|
|
615
|
-
var ye =
|
|
615
|
+
var ye = A && A.isMap, jo = ye ? B(ye) : wo, $o = "[object Set]";
|
|
616
616
|
function Oo(e) {
|
|
617
|
-
return O(e) &&
|
|
617
|
+
return O(e) && p(e) == $o;
|
|
618
618
|
}
|
|
619
|
-
var me =
|
|
620
|
-
l[We] = l[
|
|
619
|
+
var me = A && A.isSet, xo = me ? B(me) : Oo, We = "[object Arguments]", Ao = "[object Array]", So = "[object Boolean]", To = "[object Date]", Co = "[object Error]", Ve = "[object Function]", Po = "[object GeneratorFunction]", ko = "[object Map]", zo = "[object Number]", Ye = "[object Object]", Do = "[object RegExp]", Uo = "[object Set]", Eo = "[object String]", Fo = "[object Symbol]", Io = "[object WeakMap]", Lo = "[object ArrayBuffer]", Mo = "[object DataView]", Ro = "[object Float32Array]", qo = "[object Float64Array]", No = "[object Int8Array]", Bo = "[object Int16Array]", Wo = "[object Int32Array]", Vo = "[object Uint8Array]", Yo = "[object Uint8ClampedArray]", Go = "[object Uint16Array]", Qo = "[object Uint32Array]", l = {};
|
|
620
|
+
l[We] = l[Ao] = l[Lo] = l[Mo] = l[So] = l[To] = l[Ro] = l[qo] = l[No] = l[Bo] = l[Wo] = l[ko] = l[zo] = l[Ye] = l[Do] = l[Uo] = l[Eo] = l[Fo] = l[Vo] = l[Yo] = l[Go] = l[Qo] = !0;
|
|
621
621
|
l[Co] = l[Ve] = l[Io] = !1;
|
|
622
|
-
function
|
|
622
|
+
function z(e, t, r, n, o, a) {
|
|
623
623
|
var i;
|
|
624
624
|
if (r && (i = o ? r(e, n, o, a) : r(e)), i !== void 0)
|
|
625
625
|
return i;
|
|
@@ -629,9 +629,9 @@ function k(e, t, r, n, o, a) {
|
|
|
629
629
|
if (u)
|
|
630
630
|
i = Gn(e);
|
|
631
631
|
else {
|
|
632
|
-
var s =
|
|
633
|
-
if (
|
|
634
|
-
return
|
|
632
|
+
var s = p(e), f = s == Ve || s == Po;
|
|
633
|
+
if (ke(e))
|
|
634
|
+
return Nn(e);
|
|
635
635
|
if (s == Ye || s == We || f && !o)
|
|
636
636
|
i = {};
|
|
637
637
|
else {
|
|
@@ -644,14 +644,14 @@ function k(e, t, r, n, o, a) {
|
|
|
644
644
|
var H = a.get(e);
|
|
645
645
|
if (H)
|
|
646
646
|
return H;
|
|
647
|
-
a.set(e, i),
|
|
648
|
-
i.add(
|
|
647
|
+
a.set(e, i), xo(e) ? e.forEach(function(h) {
|
|
648
|
+
i.add(z(h, t, r, h, e, a));
|
|
649
649
|
}) : jo(e) && e.forEach(function(h, m) {
|
|
650
|
-
i.set(m,
|
|
650
|
+
i.set(m, z(h, t, r, m, e, a));
|
|
651
651
|
});
|
|
652
652
|
var Ge = Be, K = u ? void 0 : Ge(e);
|
|
653
|
-
return
|
|
654
|
-
K && (m = h, h = e[m]), Ee(i, m,
|
|
653
|
+
return Rn(K || e, function(h, m) {
|
|
654
|
+
K && (m = h, h = e[m]), Ee(i, m, z(h, t, r, m, e, a));
|
|
655
655
|
}), i;
|
|
656
656
|
}
|
|
657
657
|
function Ho(e) {
|
|
@@ -680,7 +680,7 @@ function Zo(e, t) {
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
var i = Ko(e, t);
|
|
683
|
-
return i == null || delete i[
|
|
683
|
+
return i == null || delete i[Re(Ho(t))];
|
|
684
684
|
}
|
|
685
685
|
function ea(e) {
|
|
686
686
|
return un(e) ? void 0 : e;
|
|
@@ -704,14 +704,14 @@ function na(e) {
|
|
|
704
704
|
function oa(e) {
|
|
705
705
|
return Xr(Wr(e, void 0, na), e + "");
|
|
706
706
|
}
|
|
707
|
-
var aa = 1, ia = 2, la = 4,
|
|
707
|
+
var aa = 1, ia = 2, la = 4, x = oa(function(e, t) {
|
|
708
708
|
var r = {};
|
|
709
709
|
if (e == null)
|
|
710
710
|
return r;
|
|
711
711
|
var n = !1;
|
|
712
712
|
t = Le(t, function(a) {
|
|
713
713
|
return a = Y(a, e), n || (n = a.length > 1), a;
|
|
714
|
-
}),
|
|
714
|
+
}), qr(e, Be(e), r), n && (r = z(r, aa | ia | la, ea));
|
|
715
715
|
for (var o = t.length; o--; )
|
|
716
716
|
Zo(r, t[o]);
|
|
717
717
|
return r;
|
|
@@ -809,7 +809,13 @@ const ge = {
|
|
|
809
809
|
form_unmatching_passwords: "The passwords are unmatching",
|
|
810
810
|
form_invalid_data: "Invalid data",
|
|
811
811
|
form_no_values: "No values",
|
|
812
|
-
form_new_value: "New value"
|
|
812
|
+
form_new_value: "New value",
|
|
813
|
+
form_editor_preview: "Rendered text",
|
|
814
|
+
form_editor_see_preview: "See rendered text",
|
|
815
|
+
form_editor_bold: "Bold",
|
|
816
|
+
form_editor_italic: "Italic",
|
|
817
|
+
form_editor_link: "Link",
|
|
818
|
+
form_editor_link_add_url: "Add URL"
|
|
813
819
|
// swal: {},
|
|
814
820
|
}, $e = {
|
|
815
821
|
table_see_values: "See {name}",
|
|
@@ -860,12 +866,12 @@ const ge = {
|
|
|
860
866
|
pagination_page: "Page {count} of"
|
|
861
867
|
// swal: {},
|
|
862
868
|
}, sa = {
|
|
863
|
-
...
|
|
864
|
-
...
|
|
865
|
-
...
|
|
866
|
-
...
|
|
867
|
-
...
|
|
868
|
-
...
|
|
869
|
+
...x(ge, "swal"),
|
|
870
|
+
...x(we, "swal"),
|
|
871
|
+
...x(je, "swal"),
|
|
872
|
+
...x(ca, "swal"),
|
|
873
|
+
...x($e, "swal"),
|
|
874
|
+
...x(ua, "swal"),
|
|
869
875
|
swal: {
|
|
870
876
|
...ge.swal,
|
|
871
877
|
...we.swal,
|
|
@@ -874,7 +880,7 @@ const ge = {
|
|
|
874
880
|
...$e.swal
|
|
875
881
|
// ...localePagination.swal,
|
|
876
882
|
}
|
|
877
|
-
},
|
|
883
|
+
}, pa = {
|
|
878
884
|
install(e, t) {
|
|
879
885
|
t = {
|
|
880
886
|
// Set plugin defaults
|
|
@@ -900,5 +906,5 @@ const ge = {
|
|
|
900
906
|
}
|
|
901
907
|
};
|
|
902
908
|
export {
|
|
903
|
-
|
|
909
|
+
pa as XamuPlugin
|
|
904
910
|
};
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Component as VueComponent, DefineComponent, FunctionalComponent } from "vue";
|
|
2
|
+
import type { Extension } from "@codemirror/state";
|
|
2
3
|
import type { iPluginOptions } from "@open-xamu-co/ui-common-types";
|
|
3
4
|
import type { useAsyncDataFn } from "../composables/async";
|
|
4
5
|
export type vComponent<P extends Record<string, any> = Record<string, any>> = VueComponent<P> | FunctionalComponent<P> | DefineComponent<P>;
|
|
@@ -6,8 +7,15 @@ export interface iVuePluginOptions extends iPluginOptions<vComponent> {
|
|
|
6
7
|
/**
|
|
7
8
|
* Override internal behavior
|
|
8
9
|
* Useful to setup nuxt modules
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
9
12
|
*/
|
|
10
13
|
internals?: iPluginOptions<vComponent>["internals"] & {
|
|
14
|
+
/**
|
|
15
|
+
* Default CodeMirror editor theme
|
|
16
|
+
* @default @fsegurai/codemirror-theme-material-light
|
|
17
|
+
*/
|
|
18
|
+
editorTheme?: Extension;
|
|
11
19
|
/**
|
|
12
20
|
* Client only component
|
|
13
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xamu-co/ui-components-vue",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.6",
|
|
4
4
|
"description": "Vue component system for the xamu project",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:entries": "rimraf dist && vite build",
|
|
@@ -61,18 +61,30 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
+
"@codemirror/lang-markdown": "^6.5.0",
|
|
64
65
|
"@fortawesome/fontawesome-common-types": "^6.4.0",
|
|
65
|
-
"@
|
|
66
|
-
"@open-xamu-co/ui-common-
|
|
66
|
+
"@fsegurai/codemirror-theme-material-light": "^6.2.3",
|
|
67
|
+
"@open-xamu-co/ui-common-enums": "^4.0.0-next.2",
|
|
68
|
+
"@open-xamu-co/ui-common-helpers": "^4.0.0-next.4",
|
|
69
|
+
"codemirror": "^6.0.2",
|
|
67
70
|
"lodash-es": "^4.17.21",
|
|
71
|
+
"markdown-it": "^14.1.0",
|
|
72
|
+
"markdown-it-abbr": "^2.0.0",
|
|
73
|
+
"markdown-it-anchor": "^9.2.0",
|
|
74
|
+
"markdown-it-footnote": "^4.0.0",
|
|
75
|
+
"markdown-it-highlightjs": "^4.2.0",
|
|
76
|
+
"markdown-it-sub": "^2.0.0",
|
|
77
|
+
"markdown-it-sup": "^2.0.0",
|
|
78
|
+
"markdown-it-task-lists": "^2.1.1",
|
|
79
|
+
"markdown-it-toc-done-right": "^4.2.0",
|
|
68
80
|
"sweetalert2": "^11.11.1",
|
|
69
81
|
"ts-md5": "^1.3.1",
|
|
70
82
|
"validator": "^13.11.0",
|
|
71
83
|
"vue-color": "^3.3.1"
|
|
72
84
|
},
|
|
73
85
|
"devDependencies": {
|
|
74
|
-
"@open-xamu-co/ui-common-types": "^4.0.0-next.
|
|
75
|
-
"@open-xamu-co/ui-styles": "^5.0.0-next.
|
|
86
|
+
"@open-xamu-co/ui-common-types": "^4.0.0-next.4",
|
|
87
|
+
"@open-xamu-co/ui-styles": "^5.0.0-next.4",
|
|
76
88
|
"@playwright/test": "^1.57.0",
|
|
77
89
|
"@storybook/addon-docs": "^10.1.9",
|
|
78
90
|
"@storybook/addon-links": "^10.1.9",
|
|
@@ -81,10 +93,11 @@
|
|
|
81
93
|
"@storybook/vue3-vite": "^10.1.9",
|
|
82
94
|
"@types/jsdom": "^27.0.0",
|
|
83
95
|
"@types/lodash-es": "^4.14.192",
|
|
96
|
+
"@types/markdown-it": "^14",
|
|
84
97
|
"@types/validator": "^13.11.1",
|
|
85
98
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
86
|
-
"@vitest/browser-playwright": "^4.0.
|
|
87
|
-
"@vitest/coverage-v8": "^4.0.
|
|
99
|
+
"@vitest/browser-playwright": "^4.0.16",
|
|
100
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
88
101
|
"jsdom": "^27.2.0",
|
|
89
102
|
"msw": "^2.12.4",
|
|
90
103
|
"playwright": "^1.57.0",
|