golden-logic-ui 1.0.45 → 1.0.46
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/golden-logic-ui.js +125 -126
- package/dist/golden-logic-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ze, inject as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ze, inject as ye, watch as W, effectScope as Ke, computed as z, reactive as ve, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as p, toDisplayString as h, withModifiers as M, withDirectives as P, vModelText as L, renderList as $, normalizeStyle as We, renderSlot as A, createTextVNode as w, vShow as B, createBlock as Z, resolveDynamicComponent as se, mergeProps as K, withCtx as Y, ref as O, onMounted as G, vModelDynamic as Xe, provide as Ye, pushScopeId as Je, popScopeId as Qe, vModelCheckbox as et, nextTick as tt, toHandlers as te, TransitionGroup as rt, unref as st, resolveDirective as xe, markRaw as nt } from "vue";
|
|
2
2
|
const D = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
@@ -52,9 +52,9 @@ function ht(e, t, r, n, o, a) {
|
|
|
52
52
|
}
|
|
53
53
|
const ie = /* @__PURE__ */ D(at, [["render", ht]]);
|
|
54
54
|
function gt() {
|
|
55
|
-
return
|
|
55
|
+
return we().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function we() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
60
|
const mt = typeof Proxy == "function", pt = "devtools-plugin:setup", _t = "plugin:settings:set";
|
|
@@ -129,7 +129,7 @@ class vt {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function xt(e, t) {
|
|
132
|
-
const r = e, n =
|
|
132
|
+
const r = e, n = we(), o = gt(), a = mt && r.enableEarlyProxy;
|
|
133
133
|
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
134
|
o.emit(pt, e, t);
|
|
135
135
|
else {
|
|
@@ -146,16 +146,16 @@ function xt(e, t) {
|
|
|
146
146
|
* (c) 2022 Evan You
|
|
147
147
|
* @license MIT
|
|
148
148
|
*/
|
|
149
|
-
var
|
|
150
|
-
function
|
|
151
|
-
return e === void 0 && (e = null),
|
|
149
|
+
var ke = "store";
|
|
150
|
+
function $e(e) {
|
|
151
|
+
return e === void 0 && (e = null), ye(e !== null ? e : ke);
|
|
152
152
|
}
|
|
153
153
|
function F(e, t) {
|
|
154
154
|
Object.keys(e).forEach(function(r) {
|
|
155
155
|
return t(e[r], r);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ce(e) {
|
|
159
159
|
return e !== null && typeof e == "object";
|
|
160
160
|
}
|
|
161
161
|
function wt(e) {
|
|
@@ -170,13 +170,13 @@ function kt(e, t) {
|
|
|
170
170
|
return e(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Se(e, t, r) {
|
|
174
174
|
return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
|
|
175
175
|
var n = t.indexOf(e);
|
|
176
176
|
n > -1 && t.splice(n, 1);
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Oe(e, t) {
|
|
180
180
|
e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
|
|
181
181
|
var r = e.state;
|
|
182
182
|
Q(e, r, [], e._modules.root, !0), le(e, r, t);
|
|
@@ -197,7 +197,7 @@ function le(e, t, r) {
|
|
|
197
197
|
// for local getters
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
|
-
}), e._state =
|
|
200
|
+
}), e._state = ve({
|
|
201
201
|
data: t
|
|
202
202
|
}), e._scope = c, e.strict && Dt(e), n && r && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
@@ -218,8 +218,8 @@ function Q(e, t, r, n, o) {
|
|
|
218
218
|
var x = l + y;
|
|
219
219
|
Ct(e, x, m, f);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
|
-
var x = m.root ? y : l + y,
|
|
222
|
-
St(e, x,
|
|
221
|
+
var x = m.root ? y : l + y, C = m.handler || m;
|
|
222
|
+
St(e, x, C, f);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
224
|
var x = l + y;
|
|
225
225
|
Ot(e, x, m, f);
|
|
@@ -251,7 +251,7 @@ function $t(e, t, r) {
|
|
|
251
251
|
get: n ? function() {
|
|
252
252
|
return e.getters;
|
|
253
253
|
} : function() {
|
|
254
|
-
return
|
|
254
|
+
return De(e, t);
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
state: {
|
|
@@ -261,7 +261,7 @@ function $t(e, t, r) {
|
|
|
261
261
|
}
|
|
262
262
|
}), o;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function De(e, t) {
|
|
265
265
|
if (!e._makeLocalGettersCache[t]) {
|
|
266
266
|
var r = {}, n = t.length;
|
|
267
267
|
Object.keys(e.getters).forEach(function(o) {
|
|
@@ -331,9 +331,9 @@ function de(e, t) {
|
|
|
331
331
|
}, e);
|
|
332
332
|
}
|
|
333
333
|
function J(e, t, r) {
|
|
334
|
-
return
|
|
334
|
+
return Ce(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && I(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
|
|
335
335
|
}
|
|
336
|
-
var Pt = "vuex bindings",
|
|
336
|
+
var Pt = "vuex bindings", ge = "vuex:mutations", re = "vuex:actions", q = "vuex", Et = 0;
|
|
337
337
|
function jt(e, t) {
|
|
338
338
|
xt(
|
|
339
339
|
{
|
|
@@ -347,13 +347,13 @@ function jt(e, t) {
|
|
|
347
347
|
},
|
|
348
348
|
function(r) {
|
|
349
349
|
r.addTimelineLayer({
|
|
350
|
-
id:
|
|
350
|
+
id: ge,
|
|
351
351
|
label: "Vuex Mutations",
|
|
352
|
-
color:
|
|
352
|
+
color: me
|
|
353
353
|
}), r.addTimelineLayer({
|
|
354
354
|
id: re,
|
|
355
355
|
label: "Vuex Actions",
|
|
356
|
-
color:
|
|
356
|
+
color: me
|
|
357
357
|
}), r.addInspector({
|
|
358
358
|
id: q,
|
|
359
359
|
label: "Vuex",
|
|
@@ -363,15 +363,15 @@ function jt(e, t) {
|
|
|
363
363
|
if (n.app === e && n.inspectorId === q)
|
|
364
364
|
if (n.filter) {
|
|
365
365
|
var o = [];
|
|
366
|
-
|
|
366
|
+
Ae(o, t._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
|
-
|
|
369
|
+
je(t._modules.root, "")
|
|
370
370
|
];
|
|
371
371
|
}), r.on.getInspectorState(function(n) {
|
|
372
372
|
if (n.app === e && n.inspectorId === q) {
|
|
373
373
|
var o = n.nodeId;
|
|
374
|
-
|
|
374
|
+
De(t, o), n.state = Tt(
|
|
375
375
|
Nt(t._modules, o),
|
|
376
376
|
o === "root" ? t.getters : t._makeLocalGettersCache,
|
|
377
377
|
o
|
|
@@ -387,7 +387,7 @@ function jt(e, t) {
|
|
|
387
387
|
}), t.subscribe(function(n, o) {
|
|
388
388
|
var a = {};
|
|
389
389
|
n.payload && (a.payload = n.payload), a.state = o, r.notifyComponentUpdate(), r.sendInspectorTree(q), r.sendInspectorState(q), r.addTimelineEvent({
|
|
390
|
-
layerId:
|
|
390
|
+
layerId: ge,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
@@ -432,25 +432,25 @@ function jt(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var me = 8702998, At = 6710886, It = 16777215, Pe = {
|
|
436
436
|
label: "namespaced",
|
|
437
437
|
textColor: It,
|
|
438
438
|
backgroundColor: At
|
|
439
439
|
};
|
|
440
|
-
function
|
|
440
|
+
function Ee(e) {
|
|
441
441
|
return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function je(e, t) {
|
|
444
444
|
return {
|
|
445
445
|
id: t || "root",
|
|
446
446
|
// all modules end with a `/`, we want the last segment only
|
|
447
447
|
// cart/ -> cart
|
|
448
448
|
// nested/cart/ -> cart
|
|
449
|
-
label:
|
|
450
|
-
tags: e.namespaced ? [
|
|
449
|
+
label: Ee(t),
|
|
450
|
+
tags: e.namespaced ? [Pe] : [],
|
|
451
451
|
children: Object.keys(e._children).map(
|
|
452
452
|
function(r) {
|
|
453
|
-
return
|
|
453
|
+
return je(
|
|
454
454
|
e._children[r],
|
|
455
455
|
t + r + "/"
|
|
456
456
|
);
|
|
@@ -458,13 +458,13 @@ function Ae(e, t) {
|
|
|
458
458
|
)
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Ae(e, t, r, n) {
|
|
462
462
|
n.includes(r) && e.push({
|
|
463
463
|
id: n || "root",
|
|
464
464
|
label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
|
|
465
|
-
tags: t.namespaced ? [
|
|
465
|
+
tags: t.namespaced ? [Pe] : []
|
|
466
466
|
}), Object.keys(t._children).forEach(function(o) {
|
|
467
|
-
|
|
467
|
+
Ae(e, t._children[o], r, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
function Tt(e, t, r) {
|
|
@@ -482,7 +482,7 @@ function Tt(e, t, r) {
|
|
|
482
482
|
var a = Mt(t);
|
|
483
483
|
o.getters = Object.keys(a).map(function(l) {
|
|
484
484
|
return {
|
|
485
|
-
key: l.endsWith("/") ?
|
|
485
|
+
key: l.endsWith("/") ? Ee(l) : l,
|
|
486
486
|
editable: !1,
|
|
487
487
|
value: ae(function() {
|
|
488
488
|
return a[l];
|
|
@@ -541,8 +541,8 @@ var T = function(t, r) {
|
|
|
541
541
|
this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
|
|
542
542
|
var n = t.state;
|
|
543
543
|
this.state = (typeof n == "function" ? n() : n) || {};
|
|
544
|
-
},
|
|
545
|
-
|
|
544
|
+
}, Ie = { namespaced: { configurable: !0 } };
|
|
545
|
+
Ie.namespaced.get = function() {
|
|
546
546
|
return !!this._rawModule.namespaced;
|
|
547
547
|
};
|
|
548
548
|
T.prototype.addChild = function(t, r) {
|
|
@@ -572,7 +572,7 @@ T.prototype.forEachAction = function(t) {
|
|
|
572
572
|
T.prototype.forEachMutation = function(t) {
|
|
573
573
|
this._rawModule.mutations && F(this._rawModule.mutations, t);
|
|
574
574
|
};
|
|
575
|
-
Object.defineProperties(T.prototype,
|
|
575
|
+
Object.defineProperties(T.prototype, Ie);
|
|
576
576
|
var R = function(t) {
|
|
577
577
|
this.register([], t, !1);
|
|
578
578
|
};
|
|
@@ -588,11 +588,11 @@ R.prototype.getNamespace = function(t) {
|
|
|
588
588
|
}, "");
|
|
589
589
|
};
|
|
590
590
|
R.prototype.update = function(t) {
|
|
591
|
-
|
|
591
|
+
Te([], this.root, t);
|
|
592
592
|
};
|
|
593
593
|
R.prototype.register = function(t, r, n) {
|
|
594
594
|
var o = this;
|
|
595
|
-
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" &&
|
|
595
|
+
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Me(t, r);
|
|
596
596
|
var a = new T(r, n);
|
|
597
597
|
if (t.length === 0)
|
|
598
598
|
this.root = a;
|
|
@@ -618,8 +618,8 @@ R.prototype.isRegistered = function(t) {
|
|
|
618
618
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
|
619
619
|
return r ? r.hasChild(n) : !1;
|
|
620
620
|
};
|
|
621
|
-
function
|
|
622
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
621
|
+
function Te(e, t, r) {
|
|
622
|
+
if (process.env.NODE_ENV !== "production" && Me(e, r), t.update(r), r.modules)
|
|
623
623
|
for (var n in r.modules) {
|
|
624
624
|
if (!t.getChild(n)) {
|
|
625
625
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -627,14 +627,14 @@ function Me(e, t, r) {
|
|
|
627
627
|
);
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
Te(
|
|
631
631
|
e.concat(n),
|
|
632
632
|
t.getChild(n),
|
|
633
633
|
r.modules[n]
|
|
634
634
|
);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
var
|
|
637
|
+
var pe = {
|
|
638
638
|
assert: function(e) {
|
|
639
639
|
return typeof e == "function";
|
|
640
640
|
},
|
|
@@ -644,15 +644,15 @@ var _e = {
|
|
|
644
644
|
return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
|
|
645
645
|
},
|
|
646
646
|
expected: 'function or object with "handler" function'
|
|
647
|
-
},
|
|
648
|
-
getters:
|
|
649
|
-
mutations:
|
|
647
|
+
}, _e = {
|
|
648
|
+
getters: pe,
|
|
649
|
+
mutations: pe,
|
|
650
650
|
actions: Vt
|
|
651
651
|
};
|
|
652
|
-
function
|
|
653
|
-
Object.keys(
|
|
652
|
+
function Me(e, t) {
|
|
653
|
+
Object.keys(_e).forEach(function(r) {
|
|
654
654
|
if (t[r]) {
|
|
655
|
-
var n =
|
|
655
|
+
var n = _e[r];
|
|
656
656
|
F(t[r], function(o, a) {
|
|
657
657
|
I(
|
|
658
658
|
n.assert(o),
|
|
@@ -676,10 +676,10 @@ var j = function e(t) {
|
|
|
676
676
|
var a = t.devtools;
|
|
677
677
|
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new R(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
678
|
var l = this, i = this, c = i.dispatch, f = i.commit;
|
|
679
|
-
this.dispatch = function(x,
|
|
680
|
-
return c.call(l, x,
|
|
681
|
-
}, this.commit = function(x,
|
|
682
|
-
return f.call(l, x,
|
|
679
|
+
this.dispatch = function(x, C) {
|
|
680
|
+
return c.call(l, x, C);
|
|
681
|
+
}, this.commit = function(x, C, N) {
|
|
682
|
+
return f.call(l, x, C, N);
|
|
683
683
|
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
685
|
Q(this, m, [], this._modules.root), le(this, m), n.forEach(function(y) {
|
|
@@ -687,7 +687,7 @@ var j = function e(t) {
|
|
|
687
687
|
});
|
|
688
688
|
}, ue = { state: { configurable: !0 } };
|
|
689
689
|
j.prototype.install = function(t, r) {
|
|
690
|
-
t.provide(r ||
|
|
690
|
+
t.provide(r || ke, this), t.config.globalProperties.$store = this;
|
|
691
691
|
var n = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
|
|
692
692
|
n && jt(t, this);
|
|
693
693
|
};
|
|
@@ -734,35 +734,35 @@ j.prototype.dispatch = function(t, r) {
|
|
|
734
734
|
return new Promise(function(m, y) {
|
|
735
735
|
f.then(function(x) {
|
|
736
736
|
try {
|
|
737
|
-
n._actionSubscribers.filter(function(
|
|
738
|
-
return
|
|
739
|
-
}).forEach(function(
|
|
740
|
-
return
|
|
737
|
+
n._actionSubscribers.filter(function(C) {
|
|
738
|
+
return C.after;
|
|
739
|
+
}).forEach(function(C) {
|
|
740
|
+
return C.after(i, n.state);
|
|
741
741
|
});
|
|
742
|
-
} catch (
|
|
743
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(
|
|
742
|
+
} catch (C) {
|
|
743
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(C));
|
|
744
744
|
}
|
|
745
745
|
m(x);
|
|
746
746
|
}, function(x) {
|
|
747
747
|
try {
|
|
748
|
-
n._actionSubscribers.filter(function(
|
|
749
|
-
return
|
|
750
|
-
}).forEach(function(
|
|
751
|
-
return
|
|
748
|
+
n._actionSubscribers.filter(function(C) {
|
|
749
|
+
return C.error;
|
|
750
|
+
}).forEach(function(C) {
|
|
751
|
+
return C.error(i, n.state, x);
|
|
752
752
|
});
|
|
753
|
-
} catch (
|
|
754
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(
|
|
753
|
+
} catch (C) {
|
|
754
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(C));
|
|
755
755
|
}
|
|
756
756
|
y(x);
|
|
757
757
|
});
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
j.prototype.subscribe = function(t, r) {
|
|
761
|
-
return
|
|
761
|
+
return Se(t, this._subscribers, r);
|
|
762
762
|
};
|
|
763
763
|
j.prototype.subscribeAction = function(t, r) {
|
|
764
764
|
var n = typeof t == "function" ? { before: t } : t;
|
|
765
|
-
return
|
|
765
|
+
return Se(n, this._actionSubscribers, r);
|
|
766
766
|
};
|
|
767
767
|
j.prototype.watch = function(t, r, n) {
|
|
768
768
|
var o = this;
|
|
@@ -784,27 +784,27 @@ j.prototype.unregisterModule = function(t) {
|
|
|
784
784
|
typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
|
|
785
785
|
var n = de(r.state, t.slice(0, -1));
|
|
786
786
|
delete n[t[t.length - 1]];
|
|
787
|
-
}),
|
|
787
|
+
}), Oe(this);
|
|
788
788
|
};
|
|
789
789
|
j.prototype.hasModule = function(t) {
|
|
790
790
|
return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
|
|
791
791
|
};
|
|
792
792
|
j.prototype.hotUpdate = function(t) {
|
|
793
|
-
this._modules.update(t),
|
|
793
|
+
this._modules.update(t), Oe(this, !0);
|
|
794
794
|
};
|
|
795
795
|
j.prototype._withCommit = function(t) {
|
|
796
796
|
var r = this._committing;
|
|
797
797
|
this._committing = !0, t(), this._committing = r;
|
|
798
798
|
};
|
|
799
799
|
Object.defineProperties(j.prototype, ue);
|
|
800
|
-
var Bt =
|
|
800
|
+
var Bt = Ve(function(e, t) {
|
|
801
801
|
var r = {};
|
|
802
|
-
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),
|
|
802
|
+
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Ne(t).forEach(function(n) {
|
|
803
803
|
var o = n.key, a = n.val;
|
|
804
804
|
r[o] = function() {
|
|
805
805
|
var i = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
|
-
var f =
|
|
807
|
+
var f = Le(this.$store, "mapState", e);
|
|
808
808
|
if (!f)
|
|
809
809
|
return;
|
|
810
810
|
i = f.context.state, c = f.context.getters;
|
|
@@ -812,16 +812,16 @@ var Bt = Le(function(e, t) {
|
|
|
812
812
|
return typeof a == "function" ? a.call(this, i, c) : i[a];
|
|
813
813
|
}, r[o].vuex = !0;
|
|
814
814
|
}), r;
|
|
815
|
-
}), Gt =
|
|
815
|
+
}), Gt = Ve(function(e, t) {
|
|
816
816
|
var r = {};
|
|
817
|
-
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),
|
|
817
|
+
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Ne(t).forEach(function(n) {
|
|
818
818
|
var o = n.key, a = n.val;
|
|
819
819
|
r[o] = function() {
|
|
820
820
|
for (var i = [], c = arguments.length; c--; )
|
|
821
821
|
i[c] = arguments[c];
|
|
822
822
|
var f = this.$store.commit;
|
|
823
823
|
if (e) {
|
|
824
|
-
var m =
|
|
824
|
+
var m = Le(this.$store, "mapMutations", e);
|
|
825
825
|
if (!m)
|
|
826
826
|
return;
|
|
827
827
|
f = m.context.commit;
|
|
@@ -830,7 +830,7 @@ var Bt = Le(function(e, t) {
|
|
|
830
830
|
};
|
|
831
831
|
}), r;
|
|
832
832
|
});
|
|
833
|
-
function
|
|
833
|
+
function Ne(e) {
|
|
834
834
|
return ce(e) ? Array.isArray(e) ? e.map(function(t) {
|
|
835
835
|
return { key: t, val: t };
|
|
836
836
|
}) : Object.keys(e).map(function(t) {
|
|
@@ -838,14 +838,14 @@ function Ve(e) {
|
|
|
838
838
|
}) : [];
|
|
839
839
|
}
|
|
840
840
|
function ce(e) {
|
|
841
|
-
return Array.isArray(e) ||
|
|
841
|
+
return Array.isArray(e) || Ce(e);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Ve(e) {
|
|
844
844
|
return function(t, r) {
|
|
845
845
|
return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Le(e, t, r) {
|
|
849
849
|
var n = e._modulesNamespaceMap[r];
|
|
850
850
|
return process.env.NODE_ENV !== "production" && !n && console.error("[vuex] module namespace not found in " + t + "(): " + r), n;
|
|
851
851
|
}
|
|
@@ -2231,7 +2231,7 @@ const wd = /* @__PURE__ */ D(Fs, [["render", Ws]]), Xs = {
|
|
|
2231
2231
|
props: ["title"],
|
|
2232
2232
|
setup() {
|
|
2233
2233
|
return {
|
|
2234
|
-
selectedTitle:
|
|
2234
|
+
selectedTitle: ye("selectedTitle")
|
|
2235
2235
|
};
|
|
2236
2236
|
}
|
|
2237
2237
|
}, Ys = { class: "block" };
|
|
@@ -2929,19 +2929,19 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
|
|
|
2929
2929
|
setup(e, { emit: t }) {
|
|
2930
2930
|
const r = e, n = t, o = O(null), a = O({}), l = O(0), i = O(!1), c = O(""), f = O("");
|
|
2931
2931
|
G(() => {
|
|
2932
|
-
n("selected", a.value), f.value =
|
|
2933
|
-
var b =
|
|
2932
|
+
n("selected", a.value), f.value = C();
|
|
2933
|
+
var b = Ue();
|
|
2934
2934
|
a.value = m.value.find((k) => String(k.id) === String(b)) || {}, r.show || (document.body.addEventListener("click", (k) => {
|
|
2935
|
-
|
|
2935
|
+
Be(k);
|
|
2936
2936
|
}), document.addEventListener("keypress", (k) => {
|
|
2937
2937
|
k.key === "Enter" && k.target.form && k.preventDefault();
|
|
2938
2938
|
}));
|
|
2939
2939
|
});
|
|
2940
|
-
const m = z(() =>
|
|
2940
|
+
const m = z(() => Re()), y = z(() => {
|
|
2941
2941
|
const b = [], k = new RegExp(c.value, "ig");
|
|
2942
|
-
for (const
|
|
2943
|
-
const V = String(
|
|
2944
|
-
(c.value.length < 1 || V.match(k)) && b.length < r.maxItem && b.push(
|
|
2942
|
+
for (const S of m.value) {
|
|
2943
|
+
const V = String(S.name);
|
|
2944
|
+
(c.value.length < 1 || V.match(k)) && b.length < r.maxItem && b.push(S);
|
|
2945
2945
|
}
|
|
2946
2946
|
return b;
|
|
2947
2947
|
});
|
|
@@ -2949,37 +2949,37 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
|
|
|
2949
2949
|
if (["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Enter"].includes(b.key)) {
|
|
2950
2950
|
if (["ArrowUp", "ArrowDown"].includes(b.key) && b.preventDefault(), b.key === "ArrowDown" && r.posts === "")
|
|
2951
2951
|
return;
|
|
2952
|
-
|
|
2952
|
+
Fe(b.key);
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2955
|
+
function C() {
|
|
2956
2956
|
let b = (/* @__PURE__ */ new Date()).getTime();
|
|
2957
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(
|
|
2957
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(S) {
|
|
2958
2958
|
const V = (b + Math.random() * 16) % 16 | 0;
|
|
2959
|
-
return b = Math.floor(b / 16), (
|
|
2959
|
+
return b = Math.floor(b / 16), (S === "x" ? V : V & 3 | 8).toString(16);
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
2962
2962
|
function N(b) {
|
|
2963
2963
|
return Object.keys(b).length > 0;
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2966
|
-
b.target.id != r.fieldName + "search" + f.value && b.target.id != r.fieldName && !b.target.classList.contains("showOptions") && (
|
|
2965
|
+
function Be(b) {
|
|
2966
|
+
b.target.id != r.fieldName + "search" + f.value && b.target.id != r.fieldName && !b.target.classList.contains("showOptions") && (ze(), l.value = 0);
|
|
2967
2967
|
}
|
|
2968
2968
|
function fe(b) {
|
|
2969
|
-
const k = `${b}${f.value}`,
|
|
2970
|
-
|
|
2969
|
+
const k = `${b}${f.value}`, S = document.getElementById(k);
|
|
2970
|
+
S && S.scrollIntoView();
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2973
|
-
const k = `${b}${f.value}`,
|
|
2974
|
-
|
|
2972
|
+
function Ge(b) {
|
|
2973
|
+
const k = `${b}${f.value}`, S = document.getElementById(k);
|
|
2974
|
+
S && S.click();
|
|
2975
2975
|
}
|
|
2976
|
-
function
|
|
2977
|
-
b === "ArrowDown" && l.value < y.value.length && (l.value++, fe(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, fe(l.value)), b === "Enter" &&
|
|
2976
|
+
function Fe(b) {
|
|
2977
|
+
b === "ArrowDown" && l.value < y.value.length && (l.value++, fe(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, fe(l.value)), b === "Enter" && Ge(l.value);
|
|
2978
2978
|
}
|
|
2979
|
-
function
|
|
2979
|
+
function Re() {
|
|
2980
2980
|
return r.options.map((b, k) => typeof b == "object" ? b : { id: b, name: b });
|
|
2981
2981
|
}
|
|
2982
|
-
function
|
|
2982
|
+
function Ue() {
|
|
2983
2983
|
var b = r.defaultValue || r.modelValue;
|
|
2984
2984
|
return b ? typeof b == "object" ? b.id + "" : b + "" : "";
|
|
2985
2985
|
}
|
|
@@ -2992,10 +2992,10 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
|
|
|
2992
2992
|
b && b.focus();
|
|
2993
2993
|
}));
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2995
|
+
function qe() {
|
|
2996
2996
|
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), ee());
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function ze() {
|
|
2999
2999
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), i.value = !1;
|
|
3000
3000
|
}
|
|
3001
3001
|
return W(c, () => {
|
|
@@ -3040,21 +3040,21 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
|
|
|
3040
3040
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3041
3041
|
}, "pl-8 pr-2 showOptions"]),
|
|
3042
3042
|
ref: e.field_name,
|
|
3043
|
-
onClick: k[0] || (k[0] = (
|
|
3043
|
+
onClick: k[0] || (k[0] = (S) => ee()),
|
|
3044
3044
|
value: a.value.name,
|
|
3045
3045
|
placeholder: e.placeholder,
|
|
3046
3046
|
autocomplete: "off",
|
|
3047
3047
|
readonly: ""
|
|
3048
3048
|
}, null, 10, Ia),
|
|
3049
3049
|
P(s("i", {
|
|
3050
|
-
onClick: k[1] || (k[1] = M((
|
|
3050
|
+
onClick: k[1] || (k[1] = M((S) => qe(), ["stop"])),
|
|
3051
3051
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3052
3052
|
style: { top: "13px" }
|
|
3053
3053
|
}, null, 512), [
|
|
3054
3054
|
[B, N(a.value) && e.has_cancel]
|
|
3055
3055
|
]),
|
|
3056
3056
|
s("i", {
|
|
3057
|
-
onClick: k[2] || (k[2] = (
|
|
3057
|
+
onClick: k[2] || (k[2] = (S) => !i.value && ee()),
|
|
3058
3058
|
class: p([i.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
|
|
3059
3059
|
style: { top: "11px" }
|
|
3060
3060
|
}, null, 2)
|
|
@@ -3066,11 +3066,10 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
|
|
|
3066
3066
|
La,
|
|
3067
3067
|
P(s("input", {
|
|
3068
3068
|
type: "search",
|
|
3069
|
-
"onUpdate:modelValue": k[3] || (k[3] = (
|
|
3069
|
+
"onUpdate:modelValue": k[3] || (k[3] = (S) => c.value = S),
|
|
3070
3070
|
ref: o.value,
|
|
3071
3071
|
id: `${e.field_name}search${f.value}`,
|
|
3072
3072
|
onKeydown: x,
|
|
3073
|
-
onBlur: k[4] || (k[4] = (C) => ge()),
|
|
3074
3073
|
autocomplete: "off",
|
|
3075
3074
|
class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
|
|
3076
3075
|
placeholder: "Search ..."
|
|
@@ -3080,16 +3079,16 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
|
|
|
3080
3079
|
])
|
|
3081
3080
|
]),
|
|
3082
3081
|
s("div", Ga, [
|
|
3083
|
-
(d(!0), u(v, null, $(y.value, (
|
|
3082
|
+
(d(!0), u(v, null, $(y.value, (S, V) => (d(), u("div", {
|
|
3084
3083
|
class: p(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", V + 1 == l.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3085
|
-
onClick: (He) => he(
|
|
3086
|
-
onMousedown: (He) => he(
|
|
3084
|
+
onClick: (He) => he(S),
|
|
3085
|
+
onMousedown: (He) => he(S),
|
|
3087
3086
|
key: V,
|
|
3088
3087
|
id: `${V + 1}${f.value}`
|
|
3089
3088
|
}, [
|
|
3090
3089
|
s("div", Ra, [
|
|
3091
|
-
a.value.id ===
|
|
3092
|
-
s("span", null, h(
|
|
3090
|
+
a.value.id === S.id ? (d(), u("svg", Ua, za)) : g("", !0),
|
|
3091
|
+
s("span", null, h(S.name || S.id || "-"), 1)
|
|
3093
3092
|
])
|
|
3094
3093
|
], 42, Fa))), 128))
|
|
3095
3094
|
])
|
|
@@ -4031,7 +4030,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
|
4031
4030
|
}, Gi)
|
|
4032
4031
|
]));
|
|
4033
4032
|
}
|
|
4034
|
-
}, oe =
|
|
4033
|
+
}, oe = ve({
|
|
4035
4034
|
items: []
|
|
4036
4035
|
}), Ri = {
|
|
4037
4036
|
add(e) {
|
|
@@ -4045,14 +4044,14 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
|
4045
4044
|
remove(e) {
|
|
4046
4045
|
oe.items.splice(e, 1);
|
|
4047
4046
|
}
|
|
4048
|
-
},
|
|
4047
|
+
}, be = {
|
|
4049
4048
|
state: oe,
|
|
4050
4049
|
methods: Ri
|
|
4051
4050
|
}, jd = {
|
|
4052
4051
|
__name: "GlToastList",
|
|
4053
4052
|
setup(e) {
|
|
4054
4053
|
function t(r) {
|
|
4055
|
-
|
|
4054
|
+
be.methods.remove(r);
|
|
4056
4055
|
}
|
|
4057
4056
|
return (r, n) => (d(), Z(rt, {
|
|
4058
4057
|
tag: "div",
|
|
@@ -4063,7 +4062,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
|
4063
4062
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4064
4063
|
}, {
|
|
4065
4064
|
default: Y(() => [
|
|
4066
|
-
(d(!0), u(v, null, $(st(
|
|
4065
|
+
(d(!0), u(v, null, $(st(be).state.items, (o, a) => (d(), Z(Fi, {
|
|
4067
4066
|
key: o.key,
|
|
4068
4067
|
message: o.message,
|
|
4069
4068
|
type: o.type,
|
|
@@ -4116,7 +4115,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
|
4116
4115
|
},
|
|
4117
4116
|
emits: ["deleteAction"],
|
|
4118
4117
|
setup(e, { emit: t }) {
|
|
4119
|
-
const r =
|
|
4118
|
+
const r = $e(), n = e, o = O(!1), a = O(!1), l = () => {
|
|
4120
4119
|
o.value = !1;
|
|
4121
4120
|
}, i = () => {
|
|
4122
4121
|
o.value = !0;
|
|
@@ -4135,8 +4134,8 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
|
4135
4134
|
console.log(x);
|
|
4136
4135
|
});
|
|
4137
4136
|
};
|
|
4138
|
-
return (x,
|
|
4139
|
-
const N =
|
|
4137
|
+
return (x, C) => {
|
|
4138
|
+
const N = xe("click-outside");
|
|
4140
4139
|
return d(), u(v, null, [
|
|
4141
4140
|
H(ie, {
|
|
4142
4141
|
isOpen: a.value,
|
|
@@ -4222,7 +4221,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
|
4222
4221
|
},
|
|
4223
4222
|
emits: ["deleteAction"],
|
|
4224
4223
|
setup(e, { emit: t }) {
|
|
4225
|
-
const r =
|
|
4224
|
+
const r = $e(), n = e, o = O(!1), a = O(!1), l = () => {
|
|
4226
4225
|
o.value = !1;
|
|
4227
4226
|
}, i = () => {
|
|
4228
4227
|
o.value = !0;
|
|
@@ -4241,8 +4240,8 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
|
4241
4240
|
console.log(x);
|
|
4242
4241
|
});
|
|
4243
4242
|
};
|
|
4244
|
-
return (x,
|
|
4245
|
-
const N =
|
|
4243
|
+
return (x, C) => {
|
|
4244
|
+
const N = xe("click-outside");
|
|
4246
4245
|
return d(), u(v, null, [
|
|
4247
4246
|
H(ie, {
|
|
4248
4247
|
isOpen: a.value,
|
|
@@ -4644,7 +4643,7 @@ export {
|
|
|
4644
4643
|
Dd as GlTextarea,
|
|
4645
4644
|
bd as GlTextareaTranslate,
|
|
4646
4645
|
yd as GlTinymceTranslate,
|
|
4647
|
-
|
|
4646
|
+
be as GlToast,
|
|
4648
4647
|
jd as GlToastList,
|
|
4649
4648
|
Sd as GlToggleBox
|
|
4650
4649
|
};
|