@open-xamu-co/ui-components-vue 4.0.0-next.2 → 4.0.0-next.21
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 +327 -0
- package/dist/components/action/ButtonLink.vue.d.ts +7 -1
- package/dist/components/base/Box.vue.d.ts +3 -3
- package/dist/components/base/Wrapper.vue.d.ts +1 -1
- package/dist/components/box/Editor.stories.d.ts +6 -0
- package/dist/components/box/Editor.vue.d.ts +33 -0
- package/dist/components/collapse/Simple.vue.d.ts +10 -2
- 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/InputOptions.vue.d.ts +9 -0
- 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 +42 -0
- package/dist/components/input/File.stories.d.ts +1 -0
- package/dist/components/input/File.vue.d.ts +3 -1
- package/dist/components/loader/ContentFetch.vue.d.ts +10 -4
- package/dist/components/modal/Simple.stories.d.ts +1 -0
- package/dist/components/modal/Simple.vue.d.ts +9 -2
- package/dist/components/pagination/Content.vue.d.ts +10 -4
- package/dist/components/pagination/ContentTable.vue.d.ts +24 -11
- 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.stories.d.ts +4 -0
- package/dist/components/table/Simple.vue.d.ts +2 -2
- package/dist/components/value/Complex.vue.d.ts +10 -1
- package/dist/components/value/List.vue.d.ts +13 -2
- package/dist/components/value/Simple.vue.d.ts +1 -1
- package/dist/composables/async.d.ts +4 -1
- package/dist/composables/markdown.d.ts +8 -0
- package/dist/composables/theme.d.ts +3 -1
- package/dist/index-BkugQnzT.cjs +75 -0
- package/dist/index-DJHxJ3Bp.js +83445 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +39 -36
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +118 -110
- package/dist/{theme-DWMJmaKP.js → theme-CDT3li7P.js} +1 -0
- package/dist/{theme-CChhGSbE.cjs → theme-DQ7tgo8n.cjs} +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +3 -2
- package/dist/types/plugin.d.ts +8 -0
- package/dist/types/props/base.d.ts +106 -0
- package/dist/types/props/index.d.ts +4 -0
- package/dist/types/props/modal.d.ts +67 -0
- package/dist/types/props/table.d.ts +253 -0
- package/dist/types/props/value.d.ts +37 -0
- package/package.json +20 -7
- package/dist/index-C46FseEI.js +0 -7098
- package/dist/index-w1g0Tp05.cjs +0 -4
- package/dist/types/props.d.ts +0 -408
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-DJHxJ3Bp.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);
|
|
@@ -10,7 +10,7 @@ function tt() {
|
|
|
10
10
|
function Oe(e, t) {
|
|
11
11
|
return e === t || e !== e && t !== t;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function U(e, t) {
|
|
14
14
|
for (var r = e.length; r--; )
|
|
15
15
|
if (Oe(e[r][0], t))
|
|
16
16
|
return r;
|
|
@@ -18,21 +18,21 @@ function E(e, t) {
|
|
|
18
18
|
}
|
|
19
19
|
var rt = Array.prototype, nt = rt.splice;
|
|
20
20
|
function ot(e) {
|
|
21
|
-
var t = this.__data__, r =
|
|
21
|
+
var t = this.__data__, r = U(t, e);
|
|
22
22
|
if (r < 0)
|
|
23
23
|
return !1;
|
|
24
24
|
var n = t.length - 1;
|
|
25
25
|
return r == n ? t.pop() : nt.call(t, r, 1), --this.size, !0;
|
|
26
26
|
}
|
|
27
27
|
function at(e) {
|
|
28
|
-
var t = this.__data__, r =
|
|
28
|
+
var t = this.__data__, r = U(t, e);
|
|
29
29
|
return r < 0 ? void 0 : t[r][1];
|
|
30
30
|
}
|
|
31
31
|
function it(e) {
|
|
32
|
-
return
|
|
32
|
+
return U(this.__data__, e) > -1;
|
|
33
33
|
}
|
|
34
34
|
function lt(e, t) {
|
|
35
|
-
var r = this.__data__, n =
|
|
35
|
+
var r = this.__data__, n = U(r, e);
|
|
36
36
|
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
|
|
37
37
|
}
|
|
38
38
|
function b(e) {
|
|
@@ -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,26 +58,26 @@ 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
|
-
function
|
|
69
|
+
function E(e) {
|
|
70
70
|
var t = typeof e;
|
|
71
71
|
return e != null && (t == "object" || t == "function");
|
|
72
72
|
}
|
|
73
73
|
var yt = "[object AsyncFunction]", mt = "[object Function]", vt = "[object GeneratorFunction]", gt = "[object Proxy]";
|
|
74
74
|
function Se(e) {
|
|
75
|
-
if (!
|
|
75
|
+
if (!E(e))
|
|
76
76
|
return !1;
|
|
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,48 +98,48 @@ 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
|
|
105
|
-
if (!
|
|
104
|
+
function kt(e) {
|
|
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
|
-
function
|
|
121
|
+
function Ut(e) {
|
|
122
122
|
var t = this.has(e) && delete this.__data__[e];
|
|
123
123
|
return this.size -= t ? 1 : 0, t;
|
|
124
124
|
}
|
|
125
|
-
var
|
|
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
|
-
return r ===
|
|
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;
|
|
@@ -149,9 +149,9 @@ function v(e) {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
v.prototype.clear = Dt;
|
|
152
|
-
v.prototype.delete =
|
|
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 =
|
|
245
|
-
function
|
|
246
|
-
var r = $(e), n = !r && Ce(e), o = !r && !n &&
|
|
244
|
+
})(), re = A && A.isTypedArray, Dr = re ? B(re) : kr;
|
|
245
|
+
function Ur(e, t) {
|
|
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.
|
|
@@ -252,9 +252,9 @@ function Er(e, t) {
|
|
|
252
252
|
ar(f, s))) && u.push(f);
|
|
253
253
|
return u;
|
|
254
254
|
}
|
|
255
|
-
var
|
|
255
|
+
var Er = Object.prototype;
|
|
256
256
|
function Fr(e) {
|
|
257
|
-
var t = e && e.constructor, r = typeof t == "function" && t.prototype ||
|
|
257
|
+
var t = e && e.constructor, r = typeof t == "function" && t.prototype || Er;
|
|
258
258
|
return e === r;
|
|
259
259
|
}
|
|
260
260
|
function Ir(e, t) {
|
|
@@ -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 {
|
|
@@ -272,7 +272,7 @@ var D = (function() {
|
|
|
272
272
|
} catch {
|
|
273
273
|
}
|
|
274
274
|
})();
|
|
275
|
-
function
|
|
275
|
+
function Ue(e, t, r) {
|
|
276
276
|
t == "__proto__" && D ? D(e, t, {
|
|
277
277
|
configurable: !0,
|
|
278
278
|
enumerable: !0,
|
|
@@ -280,21 +280,21 @@ function Ee(e, t, r) {
|
|
|
280
280
|
writable: !0
|
|
281
281
|
}) : e[t] = r;
|
|
282
282
|
}
|
|
283
|
-
var Mr = Object.prototype,
|
|
284
|
-
function
|
|
283
|
+
var Mr = Object.prototype, Rr = Mr.hasOwnProperty;
|
|
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; ) {
|
|
292
292
|
var u = t[a], s = void 0;
|
|
293
|
-
s === void 0 && (s = e[u]), o ?
|
|
293
|
+
s === void 0 && (s = e[u]), o ? Ue(r, u, s) : Ee(r, u, s);
|
|
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() {
|
|
@@ -356,7 +356,7 @@ function Jr(e) {
|
|
|
356
356
|
}
|
|
357
357
|
var Zr = Object.prototype, en = Zr.hasOwnProperty;
|
|
358
358
|
function tn(e) {
|
|
359
|
-
if (!
|
|
359
|
+
if (!E(e))
|
|
360
360
|
return Jr(e);
|
|
361
361
|
var t = Fr(e), r = [];
|
|
362
362
|
for (var n in e)
|
|
@@ -364,7 +364,7 @@ function tn(e) {
|
|
|
364
364
|
return r;
|
|
365
365
|
}
|
|
366
366
|
function rn(e) {
|
|
367
|
-
return Lr(e) ?
|
|
367
|
+
return Lr(e) ? Ur(e) : tn(e);
|
|
368
368
|
}
|
|
369
369
|
var Fe = Ir(Object.getPrototypeOf, Object), nn = "[object Object]", on = Function.prototype, an = Object.prototype, Ie = on.toString, ln = an.hasOwnProperty, cn = Ie.call(Object);
|
|
370
370
|
function un(e) {
|
|
@@ -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,19 +505,19 @@ 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 &&
|
|
517
|
-
var t = g(e), r = t ==
|
|
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
|
+
var t = g(e), r = t == Un ? e.constructor : void 0, n = r ? w(r) : "";
|
|
518
518
|
if (n)
|
|
519
519
|
switch (n) {
|
|
520
|
-
case
|
|
520
|
+
case En:
|
|
521
521
|
return _e;
|
|
522
522
|
case Fn:
|
|
523
523
|
return ce;
|
|
@@ -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,28 +610,28 @@ 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;
|
|
626
|
-
if (!
|
|
626
|
+
if (!E(e))
|
|
627
627
|
return e;
|
|
628
628
|
var u = $(e);
|
|
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]),
|
|
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;
|
|
@@ -768,8 +768,10 @@ const ge = {
|
|
|
768
768
|
swal: {
|
|
769
769
|
file_limit: "File limit",
|
|
770
770
|
file_limit_text: "This field only allows {amount} file | This field only allows {amount} files",
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
file_unsupported_format: "Unsupported format",
|
|
772
|
+
file_unsupported_format_text: "This field only does not allow that file type",
|
|
773
|
+
file_wrong_format: "Wrong format",
|
|
774
|
+
file_wrong_format_text: 'This field only allows "{types}" files',
|
|
773
775
|
file_too_big: "File too big",
|
|
774
776
|
file_too_big_text: "The file exceeds the allowed size",
|
|
775
777
|
file_unknown_error: "Something went wrong",
|
|
@@ -807,7 +809,13 @@ const ge = {
|
|
|
807
809
|
form_unmatching_passwords: "The passwords are unmatching",
|
|
808
810
|
form_invalid_data: "Invalid data",
|
|
809
811
|
form_no_values: "No values",
|
|
810
|
-
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"
|
|
811
819
|
// swal: {},
|
|
812
820
|
}, $e = {
|
|
813
821
|
table_see_values: "See {name}",
|
|
@@ -858,12 +866,12 @@ const ge = {
|
|
|
858
866
|
pagination_page: "Page {count} of"
|
|
859
867
|
// swal: {},
|
|
860
868
|
}, sa = {
|
|
861
|
-
...
|
|
862
|
-
...
|
|
863
|
-
...
|
|
864
|
-
...
|
|
865
|
-
...
|
|
866
|
-
...
|
|
869
|
+
...x(ge, "swal"),
|
|
870
|
+
...x(we, "swal"),
|
|
871
|
+
...x(je, "swal"),
|
|
872
|
+
...x(ca, "swal"),
|
|
873
|
+
...x($e, "swal"),
|
|
874
|
+
...x(ua, "swal"),
|
|
867
875
|
swal: {
|
|
868
876
|
...ge.swal,
|
|
869
877
|
...we.swal,
|
|
@@ -872,7 +880,7 @@ const ge = {
|
|
|
872
880
|
...$e.swal
|
|
873
881
|
// ...localePagination.swal,
|
|
874
882
|
}
|
|
875
|
-
},
|
|
883
|
+
}, pa = {
|
|
876
884
|
install(e, t) {
|
|
877
885
|
t = {
|
|
878
886
|
// Set plugin defaults
|
|
@@ -898,5 +906,5 @@ const ge = {
|
|
|
898
906
|
}
|
|
899
907
|
};
|
|
900
908
|
export {
|
|
901
|
-
|
|
909
|
+
pa as XamuPlugin
|
|
902
910
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),A=require("@open-xamu-co/ui-common-helpers"),i=require("@open-xamu-co/ui-common-enums");function h(e){const{countriesUrl:r="https://countries.xamu.com.co/api/v1",...s}=n.inject("xamu")||{};return e({...s,countriesUrl:r})}function g(e){function r(u){return u.map(a=>{if(typeof a!="string")return!1;const l=a.split(":",2),o=l[1]?.toLowerCase?.()==="asc"?"asc":"desc";return[l[0],o]}).filter(a=>!!a)}const s=e;return Array.isArray(s)?r(s):typeof s=="string"?r([s]):[]}async function w(e){const r=await e;return Array.isArray(r)?r:[r]}function
|
|
1
|
+
"use strict";const n=require("vue"),A=require("@open-xamu-co/ui-common-helpers"),i=require("@open-xamu-co/ui-common-enums");function h(e){const{countriesUrl:r="https://countries.xamu.com.co/api/v1",...s}=n.inject("xamu")||{};return e({...s,countriesUrl:r})}function g(e){function r(u){return u.map(a=>{if(typeof a!="string")return!1;const l=a.split(":",2),o=l[1]?.toLowerCase?.()==="asc"?"asc":"desc";return[l[0],o]}).filter(a=>!!a)}const s=e;return Array.isArray(s)?r(s):typeof s=="string"?r([s]):[]}async function w(e){const r=await e;return Array.isArray(r)?r:[r]}function d(e){if(Array.isArray(e))return[e[0],e[1]||i.eColors.LIGHT];if(typeof e=="object"&&e!==null){const r=Object.entries(e).filter(([s,u])=>u);return d([r[0][0]])}return d([e])}function b(e,r){return h(s=>{const{getModifierClasses:u,getPropData:a}=A.useUtils(s),l=n.computed(()=>{const[t,c]=d(e.theme??i.eColors.SECONDARY),f=[t,c||i.eColors.LIGHT];return e.invertTheme||f.reverse(),f}),o=n.computed(()=>[l.value[1],l.value[0]]),m=n.computed(()=>[i.eColors.DANGER,o.value[1]===i.eColors.DARK?i.eColors.DARK:i.eColors.LIGHT]),v=n.computed(()=>{let t;if(typeof e.shadow=="boolean")t=e.shadow;else{if(!e.shadow?.length)return[];t=e.shadow.some(c=>o.value[0]===c)}return t?u([{shadow:t}],{prefix:""}):[]}),C=n.computed(()=>{if(!e.theme)return[];const t=r?o.value:[o.value[0]];return u([t.join("-")],{modifier:"tm",divider:"-"})}),y=n.computed(()=>{if(!e.theme)return[];const t=r?m.value:[m.value[0]];return u([t.join("-")],{modifier:"tm",divider:"-"})}),T=n.computed(()=>{const t=e.tooltip&&a(e.tooltip),c=o.value[1]!==i.eColors.LIGHT;return t?{"aria-label":e.ariaLabel??t,"data-tooltip":t,"data-tooltip-position":e.tooltipPosition,"data-tooltip-text":e.tooltipAsText??!0,"data-tooltip-bg":o.value[0],"data-tooltip-color":c?o.value[1]:void 0}:{"aria-label":e.ariaLabel}});return{invertedThemeValues:l,themeValues:o,dangerThemeValues:m,themeClasses:C,dangerThemeClasses:y,shadowClasses:v,tooltipAttributes:T}})}exports.getThemeValues=d;exports.useHelpers=h;exports.useOrderBy=g;exports.useResolveNodeFn=w;exports.useTheme=b;
|
package/dist/theme.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vue");require("@open-xamu-co/ui-common-helpers");require("@open-xamu-co/ui-common-enums");const e=require("./theme-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");require("@open-xamu-co/ui-common-helpers");require("@open-xamu-co/ui-common-enums");const e=require("./theme-DQ7tgo8n.cjs");exports.default=e.useTheme;exports.getThemeValues=e.getThemeValues;
|
package/dist/theme.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "vue";
|
|
2
2
|
import "@open-xamu-co/ui-common-helpers";
|
|
3
3
|
import "@open-xamu-co/ui-common-enums";
|
|
4
|
-
import { a } from "./theme-
|
|
4
|
+
import { a as r, g as p } from "./theme-CDT3li7P.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default,
|
|
7
|
+
p as getThemeValues
|
|
7
8
|
};
|
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
|
*/
|