golden-logic-ui 0.0.8 → 0.0.9
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 +303 -248
- package/dist/golden-logic-ui.umd.cjs +3 -3
- 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 De, watch as Q, inject as de, effectScope as Pe, reactive as Ee, computed as je, resolveComponent as U, Fragment as y, createVNode as B, normalizeClass as p, toDisplayString as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as De, watch as Q, inject as de, effectScope as Pe, reactive as Ee, computed as je, resolveComponent as U, Fragment as y, createVNode as B, normalizeClass as p, toDisplayString as f, withModifiers as A, withDirectives as S, vModelText as I, renderList as w, normalizeStyle as Ae, renderSlot as P, createTextVNode as v, vShow as T, createBlock as q, resolveDynamicComponent as W, mergeProps as R, withCtx as X, ref as C, onMounted as G, provide as Ie, pushScopeId as Te, popScopeId as Ne, toHandlers as Z, resolveDirective as ue, markRaw as Me } from "vue";
|
|
2
2
|
const k = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, a] of t)
|
|
@@ -111,11 +111,11 @@ class Je {
|
|
|
111
111
|
args: c,
|
|
112
112
|
resolve: () => {
|
|
113
113
|
}
|
|
114
|
-
}), this.fallbacks[i](...c)) : (...c) => new Promise((
|
|
114
|
+
}), this.fallbacks[i](...c)) : (...c) => new Promise((h) => {
|
|
115
115
|
this.targetQueue.push({
|
|
116
116
|
method: i,
|
|
117
117
|
args: c,
|
|
118
|
-
resolve:
|
|
118
|
+
resolve: h
|
|
119
119
|
});
|
|
120
120
|
})
|
|
121
121
|
});
|
|
@@ -161,7 +161,7 @@ function ge(e) {
|
|
|
161
161
|
function et(e) {
|
|
162
162
|
return e && typeof e.then == "function";
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function E(e, t) {
|
|
165
165
|
if (!e)
|
|
166
166
|
throw new Error("[vuex] " + t);
|
|
167
167
|
}
|
|
@@ -186,8 +186,8 @@ function te(e, t, r) {
|
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
187
|
var o = e._wrappedGetters, l = {}, i = {}, c = Pe(!0);
|
|
188
188
|
c.run(function() {
|
|
189
|
-
N(o, function(
|
|
190
|
-
l[m] = tt(
|
|
189
|
+
N(o, function(h, m) {
|
|
190
|
+
l[m] = tt(h, e), i[m] = je(function() {
|
|
191
191
|
return l[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
@@ -213,16 +213,16 @@ function z(e, t, r, n, a) {
|
|
|
213
213
|
), i[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var h = n.context = rt(e, l, r);
|
|
217
217
|
n.forEachMutation(function(m, b) {
|
|
218
218
|
var x = l + b;
|
|
219
|
-
st(e, x, m,
|
|
219
|
+
st(e, x, m, h);
|
|
220
220
|
}), n.forEachAction(function(m, b) {
|
|
221
221
|
var x = m.root ? b : l + b, $ = m.handler || m;
|
|
222
|
-
nt(e, x, $,
|
|
222
|
+
nt(e, x, $, h);
|
|
223
223
|
}), n.forEachGetter(function(m, b) {
|
|
224
224
|
var x = l + b;
|
|
225
|
-
ot(e, x, m,
|
|
225
|
+
ot(e, x, m, h);
|
|
226
226
|
}), n.forEachChild(function(m, b) {
|
|
227
227
|
z(e, t, r.concat(b), m, a);
|
|
228
228
|
});
|
|
@@ -230,20 +230,20 @@ function z(e, t, r, n, a) {
|
|
|
230
230
|
function rt(e, t, r) {
|
|
231
231
|
var n = t === "", a = {
|
|
232
232
|
dispatch: n ? e.dispatch : function(o, l, i) {
|
|
233
|
-
var c = H(o, l, i),
|
|
233
|
+
var c = H(o, l, i), h = c.payload, m = c.options, b = c.type;
|
|
234
234
|
if ((!m || !m.root) && (b = t + b, process.env.NODE_ENV !== "production" && !e._actions[b])) {
|
|
235
235
|
console.error("[vuex] unknown local action type: " + c.type + ", global type: " + b);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
return e.dispatch(b,
|
|
238
|
+
return e.dispatch(b, h);
|
|
239
239
|
},
|
|
240
240
|
commit: n ? e.commit : function(o, l, i) {
|
|
241
|
-
var c = H(o, l, i),
|
|
241
|
+
var c = H(o, l, i), h = c.payload, m = c.options, b = c.type;
|
|
242
242
|
if ((!m || !m.root) && (b = t + b, process.env.NODE_ENV !== "production" && !e._mutations[b])) {
|
|
243
243
|
console.error("[vuex] unknown local mutation type: " + c.type + ", global type: " + b);
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
e.commit(b,
|
|
246
|
+
e.commit(b, h, m);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
return Object.defineProperties(a, {
|
|
@@ -322,7 +322,7 @@ function at(e) {
|
|
|
322
322
|
Q(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
325
|
-
process.env.NODE_ENV !== "production" &&
|
|
325
|
+
process.env.NODE_ENV !== "production" && E(e._committing, "do not mutate vuex store state outside mutation handlers.");
|
|
326
326
|
}, { deep: !0, flush: "sync" });
|
|
327
327
|
}
|
|
328
328
|
function re(e, t) {
|
|
@@ -331,7 +331,7 @@ function re(e, t) {
|
|
|
331
331
|
}, e);
|
|
332
332
|
}
|
|
333
333
|
function H(e, t, r) {
|
|
334
|
-
return ge(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" &&
|
|
334
|
+
return ge(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && E(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
|
|
335
335
|
}
|
|
336
336
|
var it = "vuex bindings", oe = "vuex:mutations", K = "vuex:actions", L = "vuex", lt = 0;
|
|
337
337
|
function dt(e, t) {
|
|
@@ -537,7 +537,7 @@ function J(e) {
|
|
|
537
537
|
return t;
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var j = 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) || {};
|
|
@@ -545,34 +545,34 @@ var E = function(t, r) {
|
|
|
545
545
|
we.namespaced.get = function() {
|
|
546
546
|
return !!this._rawModule.namespaced;
|
|
547
547
|
};
|
|
548
|
-
|
|
548
|
+
j.prototype.addChild = function(t, r) {
|
|
549
549
|
this._children[t] = r;
|
|
550
550
|
};
|
|
551
|
-
|
|
551
|
+
j.prototype.removeChild = function(t) {
|
|
552
552
|
delete this._children[t];
|
|
553
553
|
};
|
|
554
|
-
|
|
554
|
+
j.prototype.getChild = function(t) {
|
|
555
555
|
return this._children[t];
|
|
556
556
|
};
|
|
557
|
-
|
|
557
|
+
j.prototype.hasChild = function(t) {
|
|
558
558
|
return t in this._children;
|
|
559
559
|
};
|
|
560
|
-
|
|
560
|
+
j.prototype.update = function(t) {
|
|
561
561
|
this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
|
|
562
562
|
};
|
|
563
|
-
|
|
563
|
+
j.prototype.forEachChild = function(t) {
|
|
564
564
|
N(this._children, t);
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
j.prototype.forEachGetter = function(t) {
|
|
567
567
|
this._rawModule.getters && N(this._rawModule.getters, t);
|
|
568
568
|
};
|
|
569
|
-
|
|
569
|
+
j.prototype.forEachAction = function(t) {
|
|
570
570
|
this._rawModule.actions && N(this._rawModule.actions, t);
|
|
571
571
|
};
|
|
572
|
-
|
|
572
|
+
j.prototype.forEachMutation = function(t) {
|
|
573
573
|
this._rawModule.mutations && N(this._rawModule.mutations, t);
|
|
574
574
|
};
|
|
575
|
-
Object.defineProperties(
|
|
575
|
+
Object.defineProperties(j.prototype, we);
|
|
576
576
|
var M = function(t) {
|
|
577
577
|
this.register([], t, !1);
|
|
578
578
|
};
|
|
@@ -593,7 +593,7 @@ M.prototype.update = function(t) {
|
|
|
593
593
|
M.prototype.register = function(t, r, n) {
|
|
594
594
|
var a = this;
|
|
595
595
|
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && $e(t, r);
|
|
596
|
-
var o = new
|
|
596
|
+
var o = new j(r, n);
|
|
597
597
|
if (t.length === 0)
|
|
598
598
|
this.root = o;
|
|
599
599
|
else {
|
|
@@ -654,7 +654,7 @@ function $e(e, t) {
|
|
|
654
654
|
if (t[r]) {
|
|
655
655
|
var n = le[r];
|
|
656
656
|
N(t[r], function(a, o) {
|
|
657
|
-
|
|
657
|
+
E(
|
|
658
658
|
n.assert(a),
|
|
659
659
|
_t(e, r, o, a, n.expected)
|
|
660
660
|
);
|
|
@@ -671,18 +671,18 @@ function pt(e) {
|
|
|
671
671
|
}
|
|
672
672
|
var O = function e(t) {
|
|
673
673
|
var r = this;
|
|
674
|
-
t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (
|
|
674
|
+
t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (E(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), E(this instanceof e, "store must be called with the new operator."));
|
|
675
675
|
var n = t.plugins;
|
|
676
676
|
n === void 0 && (n = []);
|
|
677
677
|
var a = t.strict;
|
|
678
678
|
a === void 0 && (a = !1);
|
|
679
679
|
var o = t.devtools;
|
|
680
680
|
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 M(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = o;
|
|
681
|
-
var l = this, i = this, c = i.dispatch,
|
|
681
|
+
var l = this, i = this, c = i.dispatch, h = i.commit;
|
|
682
682
|
this.dispatch = function(x, $) {
|
|
683
683
|
return c.call(l, x, $);
|
|
684
684
|
}, this.commit = function(x, $, F) {
|
|
685
|
-
return
|
|
685
|
+
return h.call(l, x, $, F);
|
|
686
686
|
}, this.strict = a;
|
|
687
687
|
var m = this._modules.root.state;
|
|
688
688
|
z(this, m, [], this._modules.root), te(this, m), n.forEach(function(b) {
|
|
@@ -698,10 +698,10 @@ se.state.get = function() {
|
|
|
698
698
|
return this._state.data;
|
|
699
699
|
};
|
|
700
700
|
se.state.set = function(e) {
|
|
701
|
-
process.env.NODE_ENV !== "production" &&
|
|
701
|
+
process.env.NODE_ENV !== "production" && E(!1, "use store.replaceState() to explicit replace store state.");
|
|
702
702
|
};
|
|
703
703
|
O.prototype.commit = function(t, r, n) {
|
|
704
|
-
var a = this, o = H(t, r, n), l = o.type, i = o.payload, c = o.options,
|
|
704
|
+
var a = this, o = H(t, r, n), l = o.type, i = o.payload, c = o.options, h = { type: l, payload: i }, m = this._mutations[l];
|
|
705
705
|
if (!m) {
|
|
706
706
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + l);
|
|
707
707
|
return;
|
|
@@ -711,7 +711,7 @@ O.prototype.commit = function(t, r, n) {
|
|
|
711
711
|
x(i);
|
|
712
712
|
});
|
|
713
713
|
}), this._subscribers.slice().forEach(function(b) {
|
|
714
|
-
return b(
|
|
714
|
+
return b(h, a.state);
|
|
715
715
|
}), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
|
|
716
716
|
"[vuex] mutation type: " + l + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
|
|
717
717
|
);
|
|
@@ -731,11 +731,11 @@ O.prototype.dispatch = function(t, r) {
|
|
|
731
731
|
} catch (m) {
|
|
732
732
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(m));
|
|
733
733
|
}
|
|
734
|
-
var
|
|
734
|
+
var h = c.length > 1 ? Promise.all(c.map(function(m) {
|
|
735
735
|
return m(l);
|
|
736
736
|
})) : c[0](l);
|
|
737
737
|
return new Promise(function(m, b) {
|
|
738
|
-
|
|
738
|
+
h.then(function(x) {
|
|
739
739
|
try {
|
|
740
740
|
n._actionSubscribers.filter(function($) {
|
|
741
741
|
return $.after;
|
|
@@ -769,7 +769,7 @@ O.prototype.subscribeAction = function(t, r) {
|
|
|
769
769
|
};
|
|
770
770
|
O.prototype.watch = function(t, r, n) {
|
|
771
771
|
var a = this;
|
|
772
|
-
return process.env.NODE_ENV !== "production" &&
|
|
772
|
+
return process.env.NODE_ENV !== "production" && E(typeof t == "function", "store.watch only accepts a function."), Q(function() {
|
|
773
773
|
return t(a.state, a.getters);
|
|
774
774
|
}, r, Object.assign({}, n));
|
|
775
775
|
};
|
|
@@ -780,17 +780,17 @@ O.prototype.replaceState = function(t) {
|
|
|
780
780
|
});
|
|
781
781
|
};
|
|
782
782
|
O.prototype.registerModule = function(t, r, n) {
|
|
783
|
-
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && (
|
|
783
|
+
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && (E(Array.isArray(t), "module path must be a string or an Array."), E(t.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(t, r), z(this, this.state, t, this._modules.get(t), n.preserveState), te(this, this.state);
|
|
784
784
|
};
|
|
785
785
|
O.prototype.unregisterModule = function(t) {
|
|
786
786
|
var r = this;
|
|
787
|
-
typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" &&
|
|
787
|
+
typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && E(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
|
|
788
788
|
var n = re(r.state, t.slice(0, -1));
|
|
789
789
|
delete n[t[t.length - 1]];
|
|
790
790
|
}), _e(this);
|
|
791
791
|
};
|
|
792
792
|
O.prototype.hasModule = function(t) {
|
|
793
|
-
return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" &&
|
|
793
|
+
return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && E(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
|
|
794
794
|
};
|
|
795
795
|
O.prototype.hotUpdate = function(t) {
|
|
796
796
|
this._modules.update(t), _e(this, !0);
|
|
@@ -807,10 +807,10 @@ var bt = Ce(function(e, t) {
|
|
|
807
807
|
r[a] = function() {
|
|
808
808
|
var i = this.$store.state, c = this.$store.getters;
|
|
809
809
|
if (e) {
|
|
810
|
-
var
|
|
811
|
-
if (!
|
|
810
|
+
var h = Oe(this.$store, "mapState", e);
|
|
811
|
+
if (!h)
|
|
812
812
|
return;
|
|
813
|
-
i =
|
|
813
|
+
i = h.context.state, c = h.context.getters;
|
|
814
814
|
}
|
|
815
815
|
return typeof o == "function" ? o.call(this, i, c) : i[o];
|
|
816
816
|
}, r[a].vuex = !0;
|
|
@@ -822,14 +822,14 @@ var bt = Ce(function(e, t) {
|
|
|
822
822
|
r[a] = function() {
|
|
823
823
|
for (var i = [], c = arguments.length; c--; )
|
|
824
824
|
i[c] = arguments[c];
|
|
825
|
-
var
|
|
825
|
+
var h = this.$store.commit;
|
|
826
826
|
if (e) {
|
|
827
827
|
var m = Oe(this.$store, "mapMutations", e);
|
|
828
828
|
if (!m)
|
|
829
829
|
return;
|
|
830
|
-
|
|
830
|
+
h = m.context.commit;
|
|
831
831
|
}
|
|
832
|
-
return typeof o == "function" ? o.apply(this, [
|
|
832
|
+
return typeof o == "function" ? o.apply(this, [h].concat(i)) : h.apply(this.$store, [o].concat(i));
|
|
833
833
|
};
|
|
834
834
|
}), r;
|
|
835
835
|
});
|
|
@@ -1021,10 +1021,10 @@ const vt = {
|
|
|
1021
1021
|
St
|
|
1022
1022
|
], Ot = { key: 1 }, Dt = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), Pt = [
|
|
1023
1023
|
Dt
|
|
1024
|
-
], Et = { class: "mt-2 gl-span-form-error" }, jt = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" },
|
|
1024
|
+
], Et = { class: "mt-2 gl-span-form-error" }, jt = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, At = {
|
|
1025
1025
|
key: 0,
|
|
1026
1026
|
class: ""
|
|
1027
|
-
},
|
|
1027
|
+
}, It = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, Tt = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), Nt = { class: "w-full ml-3" }, Mt = { class: "flex items-center justify-between mb-1" }, Vt = { class: "text-xs text-black dark:text-white" }, Lt = { class: "text-xs text-black dark:text-white" }, Bt = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, Gt = { class: "overflow-x-scroll max-h-56" }, Ft = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, Rt = { class: "flex items-center" }, Ut = /* @__PURE__ */ s("i", {
|
|
1028
1028
|
class: "text-3xl fas fa-file-alt",
|
|
1029
1029
|
"aria-hidden": "true"
|
|
1030
1030
|
}, null, -1), qt = { class: "flex flex-col ml-3" }, Ht = { class: "text-xs" }, zt = { class: "text-xs" }, Zt = { class: "flex gap-2" }, Kt = ["href"], Wt = ["onClick"];
|
|
@@ -1048,11 +1048,11 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1048
1048
|
"gl-label-form-invalid": a.error_message_data !== "",
|
|
1049
1049
|
required: r.is_required
|
|
1050
1050
|
})
|
|
1051
|
-
},
|
|
1051
|
+
}, f(r.label_name), 3),
|
|
1052
1052
|
s("div", {
|
|
1053
|
-
onDragover: t[3] || (t[3] =
|
|
1054
|
-
onDragleave: t[4] || (t[4] =
|
|
1055
|
-
onDrop: t[5] || (t[5] =
|
|
1053
|
+
onDragover: t[3] || (t[3] = A((...i) => o.onDragOver && o.onDragOver(...i), ["prevent"])),
|
|
1054
|
+
onDragleave: t[4] || (t[4] = A((...i) => o.onDragLeave && o.onDragLeave(...i), ["prevent"])),
|
|
1055
|
+
onDrop: t[5] || (t[5] = A((...i) => o.onDrop && o.onDrop(...i), ["prevent"])),
|
|
1056
1056
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
1057
1057
|
}, [
|
|
1058
1058
|
s("div", xt, [
|
|
@@ -1068,7 +1068,7 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1068
1068
|
name: r.field_name,
|
|
1069
1069
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => o.uploadedFileIds = i)
|
|
1070
1070
|
}, null, 8, kt), [
|
|
1071
|
-
[
|
|
1071
|
+
[I, o.uploadedFileIds]
|
|
1072
1072
|
]),
|
|
1073
1073
|
a.isDragging ? (d(), u("div", Ot, Pt)) : (d(), u("div", {
|
|
1074
1074
|
key: 0,
|
|
@@ -1077,20 +1077,20 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1077
1077
|
}, Ct))
|
|
1078
1078
|
])
|
|
1079
1079
|
], 32),
|
|
1080
|
-
s("span", Et,
|
|
1081
|
-
s("small", jt,
|
|
1082
|
-
a.files.length > 0 ? (d(), u("section",
|
|
1083
|
-
(d(!0), u(y, null, w(a.files, (i, c) => (d(), u("li",
|
|
1080
|
+
s("span", Et, f(a.error_message_data), 1),
|
|
1081
|
+
s("small", jt, f(r.description), 1),
|
|
1082
|
+
a.files.length > 0 ? (d(), u("section", At, [
|
|
1083
|
+
(d(!0), u(y, null, w(a.files, (i, c) => (d(), u("li", It, [
|
|
1084
1084
|
Tt,
|
|
1085
1085
|
s("div", Nt, [
|
|
1086
1086
|
s("div", Mt, [
|
|
1087
|
-
s("span", Vt,
|
|
1088
|
-
s("span", Lt,
|
|
1087
|
+
s("span", Vt, f(o.getFileName(i.file_name)), 1),
|
|
1088
|
+
s("span", Lt, f(i.loading), 1)
|
|
1089
1089
|
]),
|
|
1090
1090
|
s("div", Bt, [
|
|
1091
1091
|
s("div", {
|
|
1092
1092
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
1093
|
-
style:
|
|
1093
|
+
style: Ae({ width: i.loading + "%" })
|
|
1094
1094
|
}, null, 4)
|
|
1095
1095
|
])
|
|
1096
1096
|
])
|
|
@@ -1101,8 +1101,8 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1101
1101
|
s("div", Rt, [
|
|
1102
1102
|
Ut,
|
|
1103
1103
|
s("div", qt, [
|
|
1104
|
-
s("span", Ht,
|
|
1105
|
-
s("span", zt,
|
|
1104
|
+
s("span", Ht, f(o.getFileName(i.file_name)), 1),
|
|
1105
|
+
s("span", zt, f(o.formatFileSize(i.size)), 1)
|
|
1106
1106
|
])
|
|
1107
1107
|
]),
|
|
1108
1108
|
s("div", Zt, [
|
|
@@ -1113,7 +1113,7 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1113
1113
|
}, null, 8, Kt),
|
|
1114
1114
|
r.is_enable_delete ? (d(), u("i", {
|
|
1115
1115
|
key: 0,
|
|
1116
|
-
onClick: (
|
|
1116
|
+
onClick: (h) => {
|
|
1117
1117
|
a.media_id = i.id, a.open_delete_modal = !0;
|
|
1118
1118
|
},
|
|
1119
1119
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
@@ -1124,7 +1124,7 @@ function Xt(e, t, r, n, a, o) {
|
|
|
1124
1124
|
], 2)
|
|
1125
1125
|
], 64);
|
|
1126
1126
|
}
|
|
1127
|
-
const
|
|
1127
|
+
const Al = /* @__PURE__ */ k(vt, [["render", Xt]]), Yt = {
|
|
1128
1128
|
computed: {
|
|
1129
1129
|
...bt("notification", ["notification"]),
|
|
1130
1130
|
alertClasses() {
|
|
@@ -1207,7 +1207,7 @@ function nr(e, t, r, n, a, o) {
|
|
|
1207
1207
|
}, [
|
|
1208
1208
|
Jt,
|
|
1209
1209
|
Qt,
|
|
1210
|
-
s("div", er,
|
|
1210
|
+
s("div", er, f(e.notification.message), 1),
|
|
1211
1211
|
s("button", {
|
|
1212
1212
|
type: "button",
|
|
1213
1213
|
onClick: t[0] || (t[0] = (...l) => o.dismiss && o.dismiss(...l)),
|
|
@@ -1216,7 +1216,7 @@ function nr(e, t, r, n, a, o) {
|
|
|
1216
1216
|
}, sr, 2)
|
|
1217
1217
|
], 2)) : g("", !0);
|
|
1218
1218
|
}
|
|
1219
|
-
const
|
|
1219
|
+
const Il = /* @__PURE__ */ k(Yt, [["render", nr]]), or = {
|
|
1220
1220
|
components: {},
|
|
1221
1221
|
props: {
|
|
1222
1222
|
field_name: {
|
|
@@ -1271,11 +1271,11 @@ function dr(e, t, r, n, a, o) {
|
|
|
1271
1271
|
"border md:!rounded-e-lg": i === a.locals.length - 1,
|
|
1272
1272
|
"border-t border-b": i !== 0 && i !== a.locals.length - 1
|
|
1273
1273
|
}, "w-full p-1 font-bold text-center text-gray-500 uppercase bg-white border-gray-200 rounded-lg cursor-pointer md:rounded-none dark:hover:text-gray-300 dark:border-gray-700 dark:peer-checked:text-blue-500 peer-checked:border-blue-600 peer-checked:text-blue-600 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:hover:bg-gray-700"])
|
|
1274
|
-
},
|
|
1274
|
+
}, f(l), 11, lr)
|
|
1275
1275
|
]))), 256))
|
|
1276
1276
|
]);
|
|
1277
1277
|
}
|
|
1278
|
-
const
|
|
1278
|
+
const Tl = /* @__PURE__ */ k(or, [["render", dr]]), ur = {
|
|
1279
1279
|
name: "Card"
|
|
1280
1280
|
}, cr = { class: "flex flex-col gap-9" }, fr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, hr = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, gr = { class: "font-semibold text-black dark:text-white" }, mr = {
|
|
1281
1281
|
key: 0,
|
|
@@ -1286,16 +1286,16 @@ function _r(e, t, r, n, a, o) {
|
|
|
1286
1286
|
s("div", fr, [
|
|
1287
1287
|
s("div", hr, [
|
|
1288
1288
|
s("h3", gr, [
|
|
1289
|
-
|
|
1289
|
+
P(e.$slots, "header")
|
|
1290
1290
|
])
|
|
1291
1291
|
]),
|
|
1292
1292
|
e.$slots.body ? (d(), u("div", mr, [
|
|
1293
|
-
|
|
1293
|
+
P(e.$slots, "body")
|
|
1294
1294
|
])) : g("", !0)
|
|
1295
1295
|
])
|
|
1296
1296
|
]);
|
|
1297
1297
|
}
|
|
1298
|
-
const
|
|
1298
|
+
const Nl = /* @__PURE__ */ k(ur, [["render", _r]]), pr = {
|
|
1299
1299
|
name: "MultiSelectDropdown",
|
|
1300
1300
|
template: "MultiSelectDropdown",
|
|
1301
1301
|
props: {
|
|
@@ -1461,7 +1461,7 @@ const wl = /* @__PURE__ */ k(ur, [["render", _r]]), pr = {
|
|
|
1461
1461
|
}, Sr = { class: "border border-gray-200 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Cr = { class: "relative" }, Or = ["onClick"], Dr = { class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l absolute w-full z-[999999999] showOptions" }, Pr = { class: "p-1" }, Er = /* @__PURE__ */ s("label", {
|
|
1462
1462
|
for: "default-search",
|
|
1463
1463
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
1464
|
-
}, "Search", -1), jr = { class: "relative" },
|
|
1464
|
+
}, "Search", -1), jr = { class: "relative" }, Ar = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
1465
1465
|
/* @__PURE__ */ s("svg", {
|
|
1466
1466
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
1467
1467
|
"aria-hidden": "true",
|
|
@@ -1477,16 +1477,16 @@ const wl = /* @__PURE__ */ k(ur, [["render", _r]]), pr = {
|
|
|
1477
1477
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
1478
1478
|
})
|
|
1479
1479
|
])
|
|
1480
|
-
], -1),
|
|
1480
|
+
], -1), Ir = ["id"], Tr = { class: "overflow-y-auto max-h-64" }, Nr = ["onClick", "onMousedown", "id"];
|
|
1481
1481
|
function Mr(e, t, r, n, a, o) {
|
|
1482
1482
|
return d(), u(y, null, [
|
|
1483
1483
|
r.show ? (d(), u("div", {
|
|
1484
1484
|
key: 0,
|
|
1485
1485
|
class: p(r.field_name)
|
|
1486
1486
|
}, [
|
|
1487
|
-
s("h3", br,
|
|
1487
|
+
s("h3", br, f(r.label_name), 1),
|
|
1488
1488
|
s("p", yr, [
|
|
1489
|
-
(d(!0), u(y, null, w(a.selected, (l, i) => (d(), u("span", vr,
|
|
1489
|
+
(d(!0), u(y, null, w(a.selected, (l, i) => (d(), u("span", vr, f(l.name), 1))), 256))
|
|
1490
1490
|
]),
|
|
1491
1491
|
xr
|
|
1492
1492
|
], 2)) : g("", !0),
|
|
@@ -1507,7 +1507,7 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1507
1507
|
"gl-label-form-invalid": r.error_message !== "",
|
|
1508
1508
|
required: r.is_required
|
|
1509
1509
|
})
|
|
1510
|
-
},
|
|
1510
|
+
}, f(r.label_name), 3),
|
|
1511
1511
|
s("div", $r, [
|
|
1512
1512
|
s("button", {
|
|
1513
1513
|
onClick: t[0] || (t[0] = (...l) => o.selectAll && o.selectAll(...l)),
|
|
@@ -1530,9 +1530,9 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1530
1530
|
key: i,
|
|
1531
1531
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
|
|
1532
1532
|
}, [
|
|
1533
|
-
v(
|
|
1533
|
+
v(f(l.name) + " ", 1),
|
|
1534
1534
|
s("i", {
|
|
1535
|
-
onClick:
|
|
1535
|
+
onClick: A((c) => o.clearOption(l), ["stop"]),
|
|
1536
1536
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
1537
1537
|
}, null, 8, Or)
|
|
1538
1538
|
]))), 128))
|
|
@@ -1546,7 +1546,7 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1546
1546
|
s("div", Pr, [
|
|
1547
1547
|
Er,
|
|
1548
1548
|
s("div", jr, [
|
|
1549
|
-
|
|
1549
|
+
Ar,
|
|
1550
1550
|
S(s("input", {
|
|
1551
1551
|
type: "search",
|
|
1552
1552
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => a.searchFilter = l),
|
|
@@ -1556,8 +1556,8 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1556
1556
|
autocomplete: "off",
|
|
1557
1557
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
1558
1558
|
placeholder: "Search ..."
|
|
1559
|
-
}, null, 40,
|
|
1560
|
-
[
|
|
1559
|
+
}, null, 40, Ir), [
|
|
1560
|
+
[I, a.searchFilter]
|
|
1561
1561
|
])
|
|
1562
1562
|
])
|
|
1563
1563
|
]),
|
|
@@ -1571,7 +1571,7 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1571
1571
|
onMousedown: (c) => o.selectOption(l),
|
|
1572
1572
|
key: i,
|
|
1573
1573
|
id: i + 1
|
|
1574
|
-
},
|
|
1574
|
+
}, f(l.name || l.id || "-"), 43, Nr))), 128))
|
|
1575
1575
|
])
|
|
1576
1576
|
], 512), [
|
|
1577
1577
|
[T, a.optionsShown]
|
|
@@ -1581,7 +1581,7 @@ function Mr(e, t, r, n, a, o) {
|
|
|
1581
1581
|
], 2))
|
|
1582
1582
|
], 64);
|
|
1583
1583
|
}
|
|
1584
|
-
const
|
|
1584
|
+
const Ml = /* @__PURE__ */ k(pr, [["render", Mr]]), Vr = {
|
|
1585
1585
|
props: {
|
|
1586
1586
|
button_type: {
|
|
1587
1587
|
type: String,
|
|
@@ -1673,12 +1673,12 @@ function Br(e, t, r, n, a, o) {
|
|
|
1673
1673
|
key: 0,
|
|
1674
1674
|
class: p([r.icon, "text-base"])
|
|
1675
1675
|
}, null, 2)) : g("", !0),
|
|
1676
|
-
|
|
1676
|
+
P(e.$slots, "default")
|
|
1677
1677
|
]),
|
|
1678
1678
|
_: 3
|
|
1679
1679
|
}, 16, ["type", "href", "class"]));
|
|
1680
1680
|
}
|
|
1681
|
-
const
|
|
1681
|
+
const Vl = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold ptext-lg dark:text-white" }, Fr = ["name", "id"], Rr = ["id"], Ur = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), qr = ["for"], Hr = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), zr = ["name", "id"], Zr = ["required", "name", "id", "type"], Kr = { class: "gl-span-form-error" }, Wr = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Ll = {
|
|
1682
1682
|
__name: "GlTextareaTranslate",
|
|
1683
1683
|
props: {
|
|
1684
1684
|
is_required: {
|
|
@@ -1752,7 +1752,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1752
1752
|
key: 0,
|
|
1753
1753
|
class: p(e.field_name)
|
|
1754
1754
|
}, [
|
|
1755
|
-
s("h3", Gr,
|
|
1755
|
+
s("h3", Gr, f(e.label_name), 1),
|
|
1756
1756
|
S(s("input", {
|
|
1757
1757
|
type: "hidden",
|
|
1758
1758
|
"data-i18n": "true",
|
|
@@ -1760,14 +1760,14 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1760
1760
|
id: e.field_name + "_i18n",
|
|
1761
1761
|
ref_key: "input_translate",
|
|
1762
1762
|
ref: l,
|
|
1763
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1763
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.inputTranslateValue = h)
|
|
1764
1764
|
}, null, 8, Fr), [
|
|
1765
|
-
[
|
|
1765
|
+
[I, i.inputTranslateValue]
|
|
1766
1766
|
]),
|
|
1767
1767
|
s("p", {
|
|
1768
1768
|
id: e.field_name,
|
|
1769
1769
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1770
|
-
},
|
|
1770
|
+
}, f(e.model_value), 9, Rr),
|
|
1771
1771
|
Ur
|
|
1772
1772
|
], 2)) : g("", !0),
|
|
1773
1773
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -1781,7 +1781,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1781
1781
|
required: e.is_required
|
|
1782
1782
|
}),
|
|
1783
1783
|
for: e.field_name
|
|
1784
|
-
},
|
|
1784
|
+
}, f(e.label_name), 11, qr),
|
|
1785
1785
|
Hr,
|
|
1786
1786
|
s("input", {
|
|
1787
1787
|
class: "mb-4",
|
|
@@ -1789,7 +1789,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1789
1789
|
"data-i18n": "true",
|
|
1790
1790
|
name: e.field_name + "_i18n",
|
|
1791
1791
|
id: e.field_name + "_i18n",
|
|
1792
|
-
onInput: c[1] || (c[1] = (
|
|
1792
|
+
onInput: c[1] || (c[1] = (h) => i.$emit("update:modelValueTranslate", h.target.value)),
|
|
1793
1793
|
ref_key: "input_translate",
|
|
1794
1794
|
ref: l
|
|
1795
1795
|
}, null, 40, zr),
|
|
@@ -1802,19 +1802,19 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1802
1802
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1803
1803
|
}),
|
|
1804
1804
|
type: e.type,
|
|
1805
|
-
onInput: c[2] || (c[2] = (
|
|
1806
|
-
onKeydown: c[3] || (c[3] = (
|
|
1805
|
+
onInput: c[2] || (c[2] = (h) => i.$emit("update:modelValue", h.target.value)),
|
|
1806
|
+
onKeydown: c[3] || (c[3] = (h) => i.$emit("keydown", h)),
|
|
1807
1807
|
ref_key: "input",
|
|
1808
1808
|
ref: o,
|
|
1809
1809
|
rows: "4"
|
|
1810
1810
|
}, `
|
|
1811
1811
|
`, 42, Zr),
|
|
1812
|
-
s("span", Kr,
|
|
1813
|
-
s("small", Wr,
|
|
1812
|
+
s("span", Kr, f(e.error_message), 1),
|
|
1813
|
+
s("small", Wr, f(e.description), 1)
|
|
1814
1814
|
], 2))
|
|
1815
1815
|
], 64));
|
|
1816
1816
|
}
|
|
1817
|
-
}, Xr = { class: "font-bold ptext-lg dark:text-white" }, Yr = ["name", "id"], Jr = ["id"], Qr = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), es = ["for"], ts = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), rs = ["name", "id"], ss = ["name", "id", "type"], ns = { class: "gl-span-form-error" }, os = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
1817
|
+
}, Xr = { class: "font-bold ptext-lg dark:text-white" }, Yr = ["name", "id"], Jr = ["id"], Qr = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), es = ["for"], ts = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), rs = ["name", "id"], ss = ["name", "id", "type"], ns = { class: "gl-span-form-error" }, os = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Bl = {
|
|
1818
1818
|
__name: "GlTinymceTranslate",
|
|
1819
1819
|
props: {
|
|
1820
1820
|
is_required: {
|
|
@@ -1892,7 +1892,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1892
1892
|
key: 0,
|
|
1893
1893
|
class: p(e.field_name)
|
|
1894
1894
|
}, [
|
|
1895
|
-
s("h3", Xr,
|
|
1895
|
+
s("h3", Xr, f(e.label_name), 1),
|
|
1896
1896
|
S(s("input", {
|
|
1897
1897
|
type: "hidden",
|
|
1898
1898
|
"data-i18n": "true",
|
|
@@ -1900,14 +1900,14 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1900
1900
|
id: e.field_name + "_i18n",
|
|
1901
1901
|
ref_key: "input_translate",
|
|
1902
1902
|
ref: l,
|
|
1903
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1903
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.inputTranslateValue = h)
|
|
1904
1904
|
}, null, 8, Yr), [
|
|
1905
|
-
[
|
|
1905
|
+
[I, i.inputTranslateValue]
|
|
1906
1906
|
]),
|
|
1907
1907
|
s("p", {
|
|
1908
1908
|
id: e.field_name,
|
|
1909
1909
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1910
|
-
},
|
|
1910
|
+
}, f(e.model_value), 9, Jr),
|
|
1911
1911
|
Qr
|
|
1912
1912
|
], 2)) : g("", !0),
|
|
1913
1913
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -1921,7 +1921,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1921
1921
|
required: e.is_required
|
|
1922
1922
|
}),
|
|
1923
1923
|
for: e.field_name
|
|
1924
|
-
},
|
|
1924
|
+
}, f(e.label_name), 11, es),
|
|
1925
1925
|
ts,
|
|
1926
1926
|
s("input", {
|
|
1927
1927
|
class: "mb-4",
|
|
@@ -1929,7 +1929,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1929
1929
|
"data-i18n": "true",
|
|
1930
1930
|
name: e.field_name + "_i18n",
|
|
1931
1931
|
id: e.field_name + "_i18n",
|
|
1932
|
-
onInput: c[1] || (c[1] = (
|
|
1932
|
+
onInput: c[1] || (c[1] = (h) => i.$emit("update:modelValueTranslate", h.target.value)),
|
|
1933
1933
|
ref_key: "input_translate",
|
|
1934
1934
|
ref: l
|
|
1935
1935
|
}, null, 40, rs),
|
|
@@ -1941,19 +1941,19 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
1941
1941
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1942
1942
|
}]),
|
|
1943
1943
|
type: e.type,
|
|
1944
|
-
onInput: c[2] || (c[2] = (
|
|
1945
|
-
onKeydown: c[3] || (c[3] = (
|
|
1944
|
+
onInput: c[2] || (c[2] = (h) => i.$emit("update:modelValue", h.target.value)),
|
|
1945
|
+
onKeydown: c[3] || (c[3] = (h) => i.$emit("keydown", h)),
|
|
1946
1946
|
ref_key: "input",
|
|
1947
1947
|
ref: o,
|
|
1948
1948
|
rows: "4"
|
|
1949
1949
|
}, `
|
|
1950
1950
|
`, 42, ss),
|
|
1951
|
-
s("span", ns,
|
|
1952
|
-
s("small", os,
|
|
1951
|
+
s("span", ns, f(e.error_message), 1),
|
|
1952
|
+
s("small", os, f(e.description), 1)
|
|
1953
1953
|
], 2))
|
|
1954
1954
|
], 64));
|
|
1955
1955
|
}
|
|
1956
|
-
}, as = { class: "font-bold ptext-lg dark:text-white" }, is = ["name", "id"], ls = ["id"], ds = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), us = ["for"], cs = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), fs = ["name", "id"], hs = ["required", "name", "id", "type"], gs = { class: "gl-span-form-error" }, ms = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
1956
|
+
}, as = { class: "font-bold ptext-lg dark:text-white" }, is = ["name", "id"], ls = ["id"], ds = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), us = ["for"], cs = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), fs = ["name", "id"], hs = ["required", "name", "id", "type"], gs = { class: "gl-span-form-error" }, ms = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Gl = {
|
|
1957
1957
|
__name: "GlTextTranslate",
|
|
1958
1958
|
props: {
|
|
1959
1959
|
is_required: {
|
|
@@ -2027,21 +2027,21 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2027
2027
|
key: 0,
|
|
2028
2028
|
class: p(e.field_name)
|
|
2029
2029
|
}, [
|
|
2030
|
-
s("h3", as,
|
|
2030
|
+
s("h3", as, f(e.label_name), 1),
|
|
2031
2031
|
S(s("input", {
|
|
2032
2032
|
type: "hidden",
|
|
2033
2033
|
"data-i18n": "true",
|
|
2034
2034
|
name: e.field_name + "_i18n",
|
|
2035
2035
|
id: e.field_name + "_i18n",
|
|
2036
2036
|
ref: "input_translate_s",
|
|
2037
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2037
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.inputTranslateValue = h)
|
|
2038
2038
|
}, null, 8, is), [
|
|
2039
|
-
[
|
|
2039
|
+
[I, i.inputTranslateValue]
|
|
2040
2040
|
]),
|
|
2041
2041
|
s("p", {
|
|
2042
2042
|
id: e.field_name,
|
|
2043
2043
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
2044
|
-
},
|
|
2044
|
+
}, f(e.model_value), 9, ls),
|
|
2045
2045
|
ds
|
|
2046
2046
|
], 2)) : g("", !0),
|
|
2047
2047
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -2055,7 +2055,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2055
2055
|
required: e.is_required
|
|
2056
2056
|
}),
|
|
2057
2057
|
for: e.field_name
|
|
2058
|
-
},
|
|
2058
|
+
}, f(e.label_name), 11, us),
|
|
2059
2059
|
cs,
|
|
2060
2060
|
s("input", {
|
|
2061
2061
|
class: "mb-4",
|
|
@@ -2063,7 +2063,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2063
2063
|
"data-i18n": "true",
|
|
2064
2064
|
name: e.field_name + "_i18n",
|
|
2065
2065
|
id: e.field_name + "_i18n",
|
|
2066
|
-
onInput: c[1] || (c[1] = (
|
|
2066
|
+
onInput: c[1] || (c[1] = (h) => i.$emit("update:modelValueTranslate", h.target.value)),
|
|
2067
2067
|
ref_key: "input_translate",
|
|
2068
2068
|
ref: l
|
|
2069
2069
|
}, null, 40, fs),
|
|
@@ -2076,17 +2076,17 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2076
2076
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2077
2077
|
}),
|
|
2078
2078
|
type: e.type,
|
|
2079
|
-
onInput: c[2] || (c[2] = (
|
|
2080
|
-
onKeydown: c[3] || (c[3] = (
|
|
2079
|
+
onInput: c[2] || (c[2] = (h) => i.$emit("update:modelValue", h.target.value)),
|
|
2080
|
+
onKeydown: c[3] || (c[3] = (h) => i.$emit("keydown", h)),
|
|
2081
2081
|
ref_key: "input",
|
|
2082
2082
|
ref: o
|
|
2083
2083
|
}, null, 42, hs),
|
|
2084
|
-
s("span", gs,
|
|
2085
|
-
s("small", ms,
|
|
2084
|
+
s("span", gs, f(e.error_message), 1),
|
|
2085
|
+
s("small", ms, f(e.description), 1)
|
|
2086
2086
|
], 2))
|
|
2087
2087
|
], 64));
|
|
2088
2088
|
}
|
|
2089
|
-
}, _s = { class: "font-bold ptext-lg dark:text-white" }, ps = { class: "mb-4 text-base text-gray-900 dark:text-white" }, bs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ys = ["for"], vs = ["required", "name", "id", "type"], xs = { class: "gl-span-form-error" }, ws = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2089
|
+
}, _s = { class: "font-bold ptext-lg dark:text-white" }, ps = { class: "mb-4 text-base text-gray-900 dark:text-white" }, bs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ys = ["for"], vs = ["required", "name", "id", "type"], xs = { class: "gl-span-form-error" }, ws = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Fl = {
|
|
2090
2090
|
__name: "GlTextInput",
|
|
2091
2091
|
props: {
|
|
2092
2092
|
is_required: {
|
|
@@ -2136,8 +2136,8 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2136
2136
|
key: 0,
|
|
2137
2137
|
class: p(e.field_name)
|
|
2138
2138
|
}, [
|
|
2139
|
-
s("h3", _s,
|
|
2140
|
-
s("p", ps,
|
|
2139
|
+
s("h3", _s, f(e.label_name), 1),
|
|
2140
|
+
s("p", ps, f(e.type == "password" ? e.model_value.replace(/./g, "*") : e.model_value), 1),
|
|
2141
2141
|
bs
|
|
2142
2142
|
], 2)) : g("", !0),
|
|
2143
2143
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -2151,7 +2151,7 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2151
2151
|
required: e.is_required
|
|
2152
2152
|
}),
|
|
2153
2153
|
for: e.field_name
|
|
2154
|
-
},
|
|
2154
|
+
}, f(e.label_name), 11, ys),
|
|
2155
2155
|
s("input", {
|
|
2156
2156
|
required: e.is_required,
|
|
2157
2157
|
name: e.field_name,
|
|
@@ -2166,15 +2166,15 @@ const $l = /* @__PURE__ */ k(Vr, [["render", Br]]), Gr = { class: "font-bold pte
|
|
|
2166
2166
|
ref_key: "input",
|
|
2167
2167
|
ref: o
|
|
2168
2168
|
}, null, 42, vs),
|
|
2169
|
-
s("span", xs,
|
|
2170
|
-
s("small", ws,
|
|
2169
|
+
s("span", xs, f(e.error_message), 1),
|
|
2170
|
+
s("small", ws, f(e.description), 1)
|
|
2171
2171
|
], 2))
|
|
2172
2172
|
], 64));
|
|
2173
2173
|
}
|
|
2174
2174
|
}, ks = {
|
|
2175
2175
|
setup(e, { slots: t }) {
|
|
2176
2176
|
const r = C(t.default().map((a) => a.props)), n = C(r.value[0].title);
|
|
2177
|
-
return
|
|
2177
|
+
return Ie("selectedTitle", n), {
|
|
2178
2178
|
tabs: r,
|
|
2179
2179
|
selectedTitle: n
|
|
2180
2180
|
};
|
|
@@ -2196,7 +2196,7 @@ function js(e, t, r, n, a, o) {
|
|
|
2196
2196
|
s("i", {
|
|
2197
2197
|
class: p([l.icon, "mr-1 text-base"])
|
|
2198
2198
|
}, null, 2),
|
|
2199
|
-
v(" " +
|
|
2199
|
+
v(" " + f(l.title), 1)
|
|
2200
2200
|
], 2)
|
|
2201
2201
|
], 8, Os))), 128))
|
|
2202
2202
|
])
|
|
@@ -2205,28 +2205,28 @@ function js(e, t, r, n, a, o) {
|
|
|
2205
2205
|
s("div", Ds, [
|
|
2206
2206
|
s("div", Ps, [
|
|
2207
2207
|
s("div", Es, [
|
|
2208
|
-
|
|
2208
|
+
P(e.$slots, "default")
|
|
2209
2209
|
])
|
|
2210
2210
|
])
|
|
2211
2211
|
])
|
|
2212
2212
|
], 64);
|
|
2213
2213
|
}
|
|
2214
|
-
const
|
|
2214
|
+
const Rl = /* @__PURE__ */ k(ks, [["render", js]]), As = {
|
|
2215
2215
|
props: ["title"],
|
|
2216
2216
|
setup() {
|
|
2217
2217
|
return {
|
|
2218
2218
|
selectedTitle: de("selectedTitle")
|
|
2219
2219
|
};
|
|
2220
2220
|
}
|
|
2221
|
-
},
|
|
2221
|
+
}, Is = { class: "block" };
|
|
2222
2222
|
function Ts(e, t, r, n, a, o) {
|
|
2223
|
-
return S((d(), u("div",
|
|
2224
|
-
|
|
2223
|
+
return S((d(), u("div", Is, [
|
|
2224
|
+
P(e.$slots, "default")
|
|
2225
2225
|
], 512)), [
|
|
2226
2226
|
[T, r.title == n.selectedTitle]
|
|
2227
2227
|
]);
|
|
2228
2228
|
}
|
|
2229
|
-
const
|
|
2229
|
+
const Ul = /* @__PURE__ */ k(As, [["render", Ts]]), Ns = {
|
|
2230
2230
|
props: {
|
|
2231
2231
|
elements_to_show_prop: {
|
|
2232
2232
|
type: Number,
|
|
@@ -2288,7 +2288,7 @@ const El = /* @__PURE__ */ k(Is, [["render", Ts]]), Ns = {
|
|
|
2288
2288
|
const r = (a) => {
|
|
2289
2289
|
t.style.cursor = "grabbing";
|
|
2290
2290
|
const o = (i) => {
|
|
2291
|
-
const c = i.clientX || i.touches && i.touches[0] && i.touches[0].clientX,
|
|
2291
|
+
const c = i.clientX || i.touches && i.touches[0] && i.touches[0].clientX, h = i.clientY || i.touches && i.touches[0] && i.touches[0].clientY, m = c - e.initialX, b = h - e.initialY;
|
|
2292
2292
|
Math.abs(m) > Math.abs(b) ? (i.preventDefault(), Math.abs(m) >= 70 && (m < 0 ? e.next() : e.prev(), e.initialX = c)) : t.style.cursor = "grab", Math.abs(b) > Math.abs(m) && (t.style.cursor = "grab");
|
|
2293
2293
|
}, l = () => {
|
|
2294
2294
|
document.removeEventListener("mousemove", o), document.removeEventListener("touchmove", o), document.removeEventListener("mouseup", l), document.removeEventListener("touchend", l), t.style.cursor = "grab";
|
|
@@ -2478,10 +2478,10 @@ const El = /* @__PURE__ */ k(Is, [["render", Ts]]), Ns = {
|
|
|
2478
2478
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2479
2479
|
}, null, -1)), jn = [
|
|
2480
2480
|
En
|
|
2481
|
-
],
|
|
2481
|
+
], An = {
|
|
2482
2482
|
key: 1,
|
|
2483
2483
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2484
|
-
},
|
|
2484
|
+
}, In = { class: "w-full" }, Tn = {
|
|
2485
2485
|
key: 0,
|
|
2486
2486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2487
2487
|
class: "w-6 h-6",
|
|
@@ -2542,14 +2542,14 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2542
2542
|
s("div", Zs, [
|
|
2543
2543
|
s("button", {
|
|
2544
2544
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2545
|
-
onClick: t[1] || (t[1] =
|
|
2545
|
+
onClick: t[1] || (t[1] = A((l) => o.prev(), ["stop"]))
|
|
2546
2546
|
}, [
|
|
2547
2547
|
r.direction_property == "ltr" ? (d(), u("svg", Ks, Xs)) : g("", !0),
|
|
2548
2548
|
r.direction_property == "rtl" ? (d(), u("svg", Ys, Qs)) : g("", !0)
|
|
2549
2549
|
])
|
|
2550
2550
|
])
|
|
2551
2551
|
], 2)) : g("", !0),
|
|
2552
|
-
|
|
2552
|
+
P(e.$slots, "default", {}, void 0, !0),
|
|
2553
2553
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2554
2554
|
key: 1,
|
|
2555
2555
|
class: p(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", r.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
@@ -2557,7 +2557,7 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2557
2557
|
s("div", en, [
|
|
2558
2558
|
s("button", {
|
|
2559
2559
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2560
|
-
onClick: t[2] || (t[2] =
|
|
2560
|
+
onClick: t[2] || (t[2] = A((l) => o.next(), ["stop"]))
|
|
2561
2561
|
}, [
|
|
2562
2562
|
r.direction_property == "ltr" ? (d(), u("svg", tn, sn)) : g("", !0),
|
|
2563
2563
|
r.direction_property == "rtl" ? (d(), u("svg", nn, an)) : g("", !0)
|
|
@@ -2613,8 +2613,8 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2613
2613
|
])) : g("", !0)
|
|
2614
2614
|
])) : g("", !0)
|
|
2615
2615
|
], 10, Hs),
|
|
2616
|
-
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2617
|
-
s("div",
|
|
2616
|
+
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", An, [
|
|
2617
|
+
s("div", In, [
|
|
2618
2618
|
s("button", {
|
|
2619
2619
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2620
2620
|
onClick: t[5] || (t[5] = (l) => o.next())
|
|
@@ -2627,7 +2627,7 @@ function Gn(e, t, r, n, a, o) {
|
|
|
2627
2627
|
], 10, Ms)
|
|
2628
2628
|
]);
|
|
2629
2629
|
}
|
|
2630
|
-
const
|
|
2630
|
+
const ql = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9"]]), Fn = {
|
|
2631
2631
|
class: "fixed left-0 top-13 z-[1055] h-full w-full overflow-y-auto overflow-x-hidden outline-none inset-0 bg-black bg-opacity-80",
|
|
2632
2632
|
tabindex: "-1",
|
|
2633
2633
|
"aria-hidden": "true"
|
|
@@ -2647,7 +2647,7 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2647
2647
|
])
|
|
2648
2648
|
], -1), zn = [
|
|
2649
2649
|
Hn
|
|
2650
|
-
], Zn = { class: "relative p-4 overflow-y-auto" }, Kn = { class: "flex flex-wrap items-center justify-end flex-shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600" },
|
|
2650
|
+
], Zn = { class: "relative p-4 overflow-y-auto" }, Kn = { class: "flex flex-wrap items-center justify-end flex-shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600" }, Hl = {
|
|
2651
2651
|
__name: "GlModal",
|
|
2652
2652
|
props: {
|
|
2653
2653
|
is_open: {
|
|
@@ -2684,7 +2684,7 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2684
2684
|
}, [
|
|
2685
2685
|
s("div", Rn, [
|
|
2686
2686
|
s("div", Un, [
|
|
2687
|
-
s("h5", qn,
|
|
2687
|
+
s("h5", qn, f(e.title), 1),
|
|
2688
2688
|
s("button", {
|
|
2689
2689
|
type: "button",
|
|
2690
2690
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
@@ -2693,10 +2693,10 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2693
2693
|
}, zn)
|
|
2694
2694
|
]),
|
|
2695
2695
|
s("div", Zn, [
|
|
2696
|
-
|
|
2696
|
+
P(i.$slots, "body")
|
|
2697
2697
|
]),
|
|
2698
2698
|
s("div", Kn, [
|
|
2699
|
-
|
|
2699
|
+
P(i.$slots, "buttons"),
|
|
2700
2700
|
s("button", {
|
|
2701
2701
|
onClick: l,
|
|
2702
2702
|
type: "button",
|
|
@@ -2709,7 +2709,7 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2709
2709
|
[T, e.is_open]
|
|
2710
2710
|
]);
|
|
2711
2711
|
}
|
|
2712
|
-
}, Wn = { class: "mb-4" }, Xn = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, Yn = { class: "relative inline-flex items-center cursor-pointer" }, Jn = ["name", "id"], Qn = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), eo = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), to = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, ro = { class: "relative inline-flex items-center cursor-pointer" }, so = ["name", "id", "value", "checked"], no = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), oo = { class: "gl-span-form-error" }, ao = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2712
|
+
}, Wn = { class: "mb-4" }, Xn = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, Yn = { class: "relative inline-flex items-center cursor-pointer" }, Jn = ["name", "id"], Qn = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), eo = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), to = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, ro = { class: "relative inline-flex items-center cursor-pointer" }, so = ["name", "id", "value", "checked"], no = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), oo = { class: "gl-span-form-error" }, ao = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, zl = {
|
|
2713
2713
|
__name: "GlToggleBox",
|
|
2714
2714
|
props: {
|
|
2715
2715
|
is_required: {
|
|
@@ -2766,7 +2766,7 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2766
2766
|
}, [
|
|
2767
2767
|
s("div", Wn, [
|
|
2768
2768
|
s("li", Xn, [
|
|
2769
|
-
v(
|
|
2769
|
+
v(f(e.label_name) + " ", 1),
|
|
2770
2770
|
s("label", Yn, [
|
|
2771
2771
|
s("input", {
|
|
2772
2772
|
type: "checkbox",
|
|
@@ -2790,7 +2790,7 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2790
2790
|
class: p(["mb-4", e.field_name])
|
|
2791
2791
|
}, [
|
|
2792
2792
|
s("li", to, [
|
|
2793
|
-
v(
|
|
2793
|
+
v(f(e.label_name) + " ", 1),
|
|
2794
2794
|
s("label", ro, [
|
|
2795
2795
|
s("input", {
|
|
2796
2796
|
type: "checkbox",
|
|
@@ -2808,8 +2808,8 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
2808
2808
|
no
|
|
2809
2809
|
])
|
|
2810
2810
|
]),
|
|
2811
|
-
s("span", oo,
|
|
2812
|
-
s("small", ao,
|
|
2811
|
+
s("span", oo, f(e.error_message), 1),
|
|
2812
|
+
s("small", ao, f(e.description), 1)
|
|
2813
2813
|
], 2))
|
|
2814
2814
|
], 64));
|
|
2815
2815
|
}
|
|
@@ -3037,15 +3037,15 @@ const jl = /* @__PURE__ */ k(Ns, [["render", Gn], ["__scopeId", "data-v-a94f16a9
|
|
|
3037
3037
|
}, null, -1), Po = [
|
|
3038
3038
|
Do
|
|
3039
3039
|
], Eo = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, jo = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" };
|
|
3040
|
-
function
|
|
3040
|
+
function Ao(e, t, r, n, a, o) {
|
|
3041
3041
|
return d(), u(y, null, [
|
|
3042
3042
|
r.show ? (d(), u("div", {
|
|
3043
3043
|
key: 0,
|
|
3044
3044
|
class: p(r.field_name)
|
|
3045
3045
|
}, [
|
|
3046
|
-
s("h3", lo,
|
|
3046
|
+
s("h3", lo, f(r.label_name), 1),
|
|
3047
3047
|
s("p", uo, [
|
|
3048
|
-
s("span", co,
|
|
3048
|
+
s("span", co, f(e.selectedValue.name), 1)
|
|
3049
3049
|
]),
|
|
3050
3050
|
fo
|
|
3051
3051
|
], 2)) : g("", !0),
|
|
@@ -3067,7 +3067,7 @@ function Io(e, t, r, n, a, o) {
|
|
|
3067
3067
|
"gl-label-form-invalid": r.error_message !== "",
|
|
3068
3068
|
required: r.is_required
|
|
3069
3069
|
})
|
|
3070
|
-
},
|
|
3070
|
+
}, f(r.label_name), 3)) : g("", !0),
|
|
3071
3071
|
s("div", mo, [
|
|
3072
3072
|
s("div", _o, [
|
|
3073
3073
|
s("input", {
|
|
@@ -3080,7 +3080,7 @@ function Io(e, t, r, n, a, o) {
|
|
|
3080
3080
|
readonly: ""
|
|
3081
3081
|
}, null, 8, po),
|
|
3082
3082
|
S(s("i", {
|
|
3083
|
-
onClick: t[1] || (t[1] =
|
|
3083
|
+
onClick: t[1] || (t[1] = A((l) => o.ClearInput(), ["stop"])),
|
|
3084
3084
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700",
|
|
3085
3085
|
style: { top: "13px" }
|
|
3086
3086
|
}, null, 512), [
|
|
@@ -3108,7 +3108,7 @@ function Io(e, t, r, n, a, o) {
|
|
|
3108
3108
|
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",
|
|
3109
3109
|
placeholder: "Search ..."
|
|
3110
3110
|
}, null, 40, ko), [
|
|
3111
|
-
[
|
|
3111
|
+
[I, a.searchFilter]
|
|
3112
3112
|
])
|
|
3113
3113
|
])
|
|
3114
3114
|
]),
|
|
@@ -3125,7 +3125,7 @@ function Io(e, t, r, n, a, o) {
|
|
|
3125
3125
|
}, [
|
|
3126
3126
|
s("div", Co, [
|
|
3127
3127
|
a.selected.id === l.id ? (d(), u("svg", Oo, Po)) : g("", !0),
|
|
3128
|
-
s("span", null,
|
|
3128
|
+
s("span", null, f(l.name || l.id || "-"), 1)
|
|
3129
3129
|
])
|
|
3130
3130
|
], 42, So))), 128))
|
|
3131
3131
|
])
|
|
@@ -3134,12 +3134,12 @@ function Io(e, t, r, n, a, o) {
|
|
|
3134
3134
|
])
|
|
3135
3135
|
])
|
|
3136
3136
|
])) : g("", !0),
|
|
3137
|
-
s("span", Eo,
|
|
3138
|
-
s("small", jo,
|
|
3137
|
+
s("span", Eo, f(r.error_message), 1),
|
|
3138
|
+
s("small", jo, f(r.description), 1)
|
|
3139
3139
|
], 2))
|
|
3140
3140
|
], 64);
|
|
3141
3141
|
}
|
|
3142
|
-
const
|
|
3142
|
+
const Zl = /* @__PURE__ */ k(io, [["render", Ao]]), Io = { class: "font-bold ptext-lg dark:text-white" }, To = ["id"], No = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Mo = ["for"], Vo = ["required", "name", "id", "type", "placeholder"], Lo = { class: "gl-span-form-error" }, Bo = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Kl = {
|
|
3143
3143
|
__name: "GlTextarea",
|
|
3144
3144
|
props: {
|
|
3145
3145
|
is_required: {
|
|
@@ -3193,11 +3193,11 @@ const Tl = /* @__PURE__ */ k(io, [["render", Io]]), Ao = { class: "font-bold pte
|
|
|
3193
3193
|
key: 0,
|
|
3194
3194
|
class: p(e.field_name)
|
|
3195
3195
|
}, [
|
|
3196
|
-
s("h3",
|
|
3196
|
+
s("h3", Io, f(e.label_name), 1),
|
|
3197
3197
|
s("p", {
|
|
3198
3198
|
id: e.field_name,
|
|
3199
3199
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
3200
|
-
},
|
|
3200
|
+
}, f(e.model_value), 9, To),
|
|
3201
3201
|
No
|
|
3202
3202
|
], 2)) : g("", !0),
|
|
3203
3203
|
e.show ? g("", !0) : (d(), u("div", {
|
|
@@ -3211,7 +3211,7 @@ const Tl = /* @__PURE__ */ k(io, [["render", Io]]), Ao = { class: "font-bold pte
|
|
|
3211
3211
|
required: e.is_required
|
|
3212
3212
|
}),
|
|
3213
3213
|
for: e.field_name
|
|
3214
|
-
},
|
|
3214
|
+
}, f(e.label_name), 11, Mo),
|
|
3215
3215
|
s("textarea", {
|
|
3216
3216
|
required: e.is_required,
|
|
3217
3217
|
name: e.field_name,
|
|
@@ -3227,8 +3227,8 @@ const Tl = /* @__PURE__ */ k(io, [["render", Io]]), Ao = { class: "font-bold pte
|
|
|
3227
3227
|
rows: "4",
|
|
3228
3228
|
placeholder: e.place_holder
|
|
3229
3229
|
}, null, 42, Vo),
|
|
3230
|
-
s("span", Lo,
|
|
3231
|
-
s("small", Bo,
|
|
3230
|
+
s("span", Lo, f(e.error_message), 1),
|
|
3231
|
+
s("small", Bo, f(e.description), 1)
|
|
3232
3232
|
], 2))
|
|
3233
3233
|
], 64));
|
|
3234
3234
|
}
|
|
@@ -3286,8 +3286,8 @@ const Tl = /* @__PURE__ */ k(io, [["render", Io]]), Ao = { class: "font-bold pte
|
|
|
3286
3286
|
return this.lastPage;
|
|
3287
3287
|
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r, a = e + r + 1, o = [], l = [], i, c = 1; c <= t; c++)
|
|
3288
3288
|
(c === 1 || c === t || c >= n && c < a) && o.push(c);
|
|
3289
|
-
return o.forEach(function(
|
|
3290
|
-
i && (
|
|
3289
|
+
return o.forEach(function(h) {
|
|
3290
|
+
i && (h - i === 2 ? l.push(i + 1) : h - i !== 1 && l.push("...")), l.push(h), i = h;
|
|
3291
3291
|
}), l;
|
|
3292
3292
|
}
|
|
3293
3293
|
},
|
|
@@ -3421,11 +3421,11 @@ function ea(e, t, r, n, a, o) {
|
|
|
3421
3421
|
s("div", Ro, [
|
|
3422
3422
|
i.computed.total > i.computed.perPage ? (d(), u("span", Uo, [
|
|
3423
3423
|
v(" Showing "),
|
|
3424
|
-
s("span", qo,
|
|
3424
|
+
s("span", qo, f(i.computed.from), 1),
|
|
3425
3425
|
v(" to "),
|
|
3426
|
-
s("span", Ho,
|
|
3426
|
+
s("span", Ho, f(i.computed.to), 1),
|
|
3427
3427
|
v(" of "),
|
|
3428
|
-
s("span", zo,
|
|
3428
|
+
s("span", zo, f(i.computed.total), 1),
|
|
3429
3429
|
v(" Entries ")
|
|
3430
3430
|
])) : g("", !0),
|
|
3431
3431
|
i.computed.total > i.computed.perPage ? (d(), u("ul", R({ key: 1 }, e.$attrs, {
|
|
@@ -3446,15 +3446,15 @@ function ea(e, t, r, n, a, o) {
|
|
|
3446
3446
|
"aria-label": "Previous",
|
|
3447
3447
|
tabindex: !i.computed.prevPageUrl && -1
|
|
3448
3448
|
}, Z(i.prevButtonEvents, !0)), [
|
|
3449
|
-
|
|
3449
|
+
P(e.$slots, "prev-nav", {}, () => [
|
|
3450
3450
|
Ko,
|
|
3451
3451
|
Wo
|
|
3452
3452
|
])
|
|
3453
3453
|
], 16, Zo)
|
|
3454
3454
|
], 2)) : g("", !0),
|
|
3455
|
-
(d(!0), u(y, null, w(i.computed.pageRange, (c,
|
|
3455
|
+
(d(!0), u(y, null, w(i.computed.pageRange, (c, h) => (d(), u("li", {
|
|
3456
3456
|
class: p(["", { active: c == i.computed.currentPage }]),
|
|
3457
|
-
key:
|
|
3457
|
+
key: h
|
|
3458
3458
|
}, [
|
|
3459
3459
|
s("a", R({
|
|
3460
3460
|
class: "",
|
|
@@ -3462,7 +3462,7 @@ function ea(e, t, r, n, a, o) {
|
|
|
3462
3462
|
}, Z(i.pageButtonEvents(c), !0), {
|
|
3463
3463
|
"aria-current": c == i.computed.currentPage ? "page" : null,
|
|
3464
3464
|
class: c == i.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3465
|
-
}),
|
|
3465
|
+
}), f(c), 17, Xo)
|
|
3466
3466
|
], 2))), 128)),
|
|
3467
3467
|
i.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3468
3468
|
key: 1,
|
|
@@ -3474,7 +3474,7 @@ function ea(e, t, r, n, a, o) {
|
|
|
3474
3474
|
"aria-label": "Next",
|
|
3475
3475
|
tabindex: !i.computed.nextPageUrl && -1
|
|
3476
3476
|
}, Z(i.nextButtonEvents, !0)), [
|
|
3477
|
-
|
|
3477
|
+
P(e.$slots, "next-nav", {}, () => [
|
|
3478
3478
|
Jo,
|
|
3479
3479
|
Qo
|
|
3480
3480
|
])
|
|
@@ -3622,7 +3622,7 @@ function wa(e, t, r, n, a, o) {
|
|
|
3622
3622
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3623
3623
|
placeholder: "Search ..."
|
|
3624
3624
|
}, null, 544), [
|
|
3625
|
-
[
|
|
3625
|
+
[I, a.search]
|
|
3626
3626
|
])
|
|
3627
3627
|
])
|
|
3628
3628
|
]),
|
|
@@ -3630,12 +3630,12 @@ function wa(e, t, r, n, a, o) {
|
|
|
3630
3630
|
s("table", ha, [
|
|
3631
3631
|
s("thead", ga, [
|
|
3632
3632
|
s("tr", null, [
|
|
3633
|
-
(d(!0), u(y, null, w(r.columns, (c,
|
|
3634
|
-
key:
|
|
3633
|
+
(d(!0), u(y, null, w(r.columns, (c, h) => (d(), u("th", {
|
|
3634
|
+
key: h,
|
|
3635
3635
|
onClick: (m) => o.updateSortColumn(c.field_name, c.sortable),
|
|
3636
3636
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3637
3637
|
}, [
|
|
3638
|
-
v(
|
|
3638
|
+
v(f(c.field_label) + " ", 1),
|
|
3639
3639
|
a.sortField === c.field_name ? (d(), u("span", _a, [
|
|
3640
3640
|
a.sortOrder === "asc" ? (d(), u("i", pa)) : (d(), u("i", ba))
|
|
3641
3641
|
])) : g("", !0)
|
|
@@ -3643,8 +3643,8 @@ function wa(e, t, r, n, a, o) {
|
|
|
3643
3643
|
])
|
|
3644
3644
|
]),
|
|
3645
3645
|
s("tbody", null, [
|
|
3646
|
-
(d(!0), u(y, null, w(a.itemLists.data, (c,
|
|
3647
|
-
key:
|
|
3646
|
+
(d(!0), u(y, null, w(a.itemLists.data, (c, h) => (d(), u("tr", {
|
|
3647
|
+
key: h,
|
|
3648
3648
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3649
3649
|
}, [
|
|
3650
3650
|
(d(!0), u(y, null, w(r.columns, (m, b) => (d(), u("td", {
|
|
@@ -3661,7 +3661,7 @@ function wa(e, t, r, n, a, o) {
|
|
|
3661
3661
|
tdProps: m.tdProps,
|
|
3662
3662
|
onDeleteAction: t[3] || (t[3] = (x) => o.GetItemLists())
|
|
3663
3663
|
}, null, 40, ["row", "field", "xprops", "tdProps"])) : (d(), u(y, { key: 1 }, [
|
|
3664
|
-
v(
|
|
3664
|
+
v(f(c[m.field_name]), 1)
|
|
3665
3665
|
], 64))
|
|
3666
3666
|
])
|
|
3667
3667
|
], 8, ya))), 128))
|
|
@@ -3681,7 +3681,7 @@ function wa(e, t, r, n, a, o) {
|
|
|
3681
3681
|
])
|
|
3682
3682
|
]);
|
|
3683
3683
|
}
|
|
3684
|
-
const
|
|
3684
|
+
const Wl = /* @__PURE__ */ k(ra, [["render", wa]]), ka = {
|
|
3685
3685
|
components: {},
|
|
3686
3686
|
props: {
|
|
3687
3687
|
data: Array,
|
|
@@ -3781,7 +3781,7 @@ const Ml = /* @__PURE__ */ k(ra, [["render", wa]]), ka = {
|
|
|
3781
3781
|
}, $a = { class: "p-2" }, Sa = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Ca = { class: "flex items-center gap-2" }, Oa = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Da = { style: { "margin-top": "9px" } }, Pa = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Ea = /* @__PURE__ */ s("label", {
|
|
3782
3782
|
for: "table-search",
|
|
3783
3783
|
class: "sr-only"
|
|
3784
|
-
}, "Search", -1), ja = { class: "relative" },
|
|
3784
|
+
}, "Search", -1), ja = { class: "relative" }, Aa = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3785
3785
|
/* @__PURE__ */ s("svg", {
|
|
3786
3786
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3787
3787
|
"aria-hidden": "true",
|
|
@@ -3795,7 +3795,7 @@ const Ml = /* @__PURE__ */ k(ra, [["render", wa]]), ka = {
|
|
|
3795
3795
|
"clip-rule": "evenodd"
|
|
3796
3796
|
})
|
|
3797
3797
|
])
|
|
3798
|
-
], -1),
|
|
3798
|
+
], -1), Ia = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Ta = { class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark" }, Na = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, Ma = ["onClick"], Va = {
|
|
3799
3799
|
key: 0,
|
|
3800
3800
|
class: "ml-2"
|
|
3801
3801
|
}, La = ["data-label"], Ba = ["innerHTML"], Ga = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" }, Fa = { class: "flex justify-between flex-1 sm:hidden" }, Ra = ["disabled"], Ua = ["disabled"], qa = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, Ha = { class: "text-sm text-gray-700 dark:text-gray-400" }, za = { class: "font-medium" }, Za = { class: "font-medium" }, Ka = { class: "font-medium" }, Wa = { "aria-label": "Page navigation" }, Xa = { class: "flex items-center h-8 -space-x-px text-sm" }, Ya = ["disabled"], Ja = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), Qa = /* @__PURE__ */ s("svg", {
|
|
@@ -3857,28 +3857,28 @@ function ii(e, t, r, n, a, o) {
|
|
|
3857
3857
|
]),
|
|
3858
3858
|
Ea,
|
|
3859
3859
|
s("div", ja, [
|
|
3860
|
-
|
|
3860
|
+
Aa,
|
|
3861
3861
|
S(s("input", {
|
|
3862
3862
|
type: "text",
|
|
3863
3863
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => a.search = i),
|
|
3864
3864
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3865
3865
|
placeholder: "Search ..."
|
|
3866
3866
|
}, null, 512), [
|
|
3867
|
-
[
|
|
3867
|
+
[I, a.search]
|
|
3868
3868
|
])
|
|
3869
3869
|
])
|
|
3870
3870
|
]),
|
|
3871
|
-
s("div",
|
|
3871
|
+
s("div", Ia, [
|
|
3872
3872
|
s("table", Ta, [
|
|
3873
3873
|
s("thead", Na, [
|
|
3874
3874
|
s("tr", null, [
|
|
3875
3875
|
(d(!0), u(y, null, w(r.columns, (i, c) => (d(), u("th", {
|
|
3876
3876
|
key: c,
|
|
3877
|
-
onClick: (
|
|
3877
|
+
onClick: (h) => o.sort(i),
|
|
3878
3878
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3879
3879
|
}, [
|
|
3880
|
-
v(
|
|
3881
|
-
a.sortKey === i ? (d(), u("span", Va,
|
|
3880
|
+
v(f(i) + " ", 1),
|
|
3881
|
+
a.sortKey === i ? (d(), u("span", Va, f(a.sortOrder === 1 ? "▲" : "▼"), 1)) : g("", !0)
|
|
3882
3882
|
], 8, Ma))), 128))
|
|
3883
3883
|
])
|
|
3884
3884
|
]),
|
|
@@ -3887,9 +3887,9 @@ function ii(e, t, r, n, a, o) {
|
|
|
3887
3887
|
key: c,
|
|
3888
3888
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3889
3889
|
}, [
|
|
3890
|
-
(d(!0), u(y, null, w(r.columns, (
|
|
3890
|
+
(d(!0), u(y, null, w(r.columns, (h, m) => (d(), u("td", {
|
|
3891
3891
|
key: m,
|
|
3892
|
-
"data-label":
|
|
3892
|
+
"data-label": h,
|
|
3893
3893
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
|
|
3894
3894
|
}, [
|
|
3895
3895
|
s("p", {
|
|
@@ -3920,11 +3920,11 @@ function ii(e, t, r, n, a, o) {
|
|
|
3920
3920
|
s("div", null, [
|
|
3921
3921
|
s("p", Ha, [
|
|
3922
3922
|
v(" Showing "),
|
|
3923
|
-
s("span", za,
|
|
3923
|
+
s("span", za, f(o.firstItemIndex), 1),
|
|
3924
3924
|
v(" to "),
|
|
3925
|
-
s("span", Za,
|
|
3925
|
+
s("span", Za, f(o.lastItemIndex), 1),
|
|
3926
3926
|
v(" of "),
|
|
3927
|
-
s("span", Ka,
|
|
3927
|
+
s("span", Ka, f(o.filteredData.length), 1),
|
|
3928
3928
|
v(" entries ")
|
|
3929
3929
|
])
|
|
3930
3930
|
]),
|
|
@@ -3946,7 +3946,7 @@ function ii(e, t, r, n, a, o) {
|
|
|
3946
3946
|
href: "#",
|
|
3947
3947
|
onClick: (c) => o.goToPage(i),
|
|
3948
3948
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3949
|
-
},
|
|
3949
|
+
}, f(i), 9, ti)) : g("", !0)
|
|
3950
3950
|
]),
|
|
3951
3951
|
s("li", null, [
|
|
3952
3952
|
a.currentPage === i ? (d(), u("a", {
|
|
@@ -3955,7 +3955,7 @@ function ii(e, t, r, n, a, o) {
|
|
|
3955
3955
|
onClick: (c) => o.goToPage(i),
|
|
3956
3956
|
"aria-current": "page",
|
|
3957
3957
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
3958
|
-
},
|
|
3958
|
+
}, f(i), 9, ri)) : g("", !0)
|
|
3959
3959
|
])
|
|
3960
3960
|
], 64))), 128)),
|
|
3961
3961
|
s("li", null, [
|
|
@@ -3973,7 +3973,7 @@ function ii(e, t, r, n, a, o) {
|
|
|
3973
3973
|
])
|
|
3974
3974
|
]);
|
|
3975
3975
|
}
|
|
3976
|
-
const
|
|
3976
|
+
const Xl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
3977
3977
|
namespaced: !0,
|
|
3978
3978
|
state: {
|
|
3979
3979
|
notification: {
|
|
@@ -3991,7 +3991,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
3991
3991
|
e.notification.show = !1;
|
|
3992
3992
|
}
|
|
3993
3993
|
}
|
|
3994
|
-
},
|
|
3994
|
+
}, Yl = pt({
|
|
3995
3995
|
modules: {
|
|
3996
3996
|
notification: li
|
|
3997
3997
|
},
|
|
@@ -4015,7 +4015,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4015
4015
|
], fi = { class: "absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, hi = {
|
|
4016
4016
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4017
4017
|
"aria-labelledby": "dropdownDividerButton"
|
|
4018
|
-
}, gi = { key: 0 }, mi = ["href"], _i = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), pi = { key: 1 }, bi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1),
|
|
4018
|
+
}, gi = { key: 0 }, mi = ["href"], _i = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), pi = { key: 1 }, bi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Jl = {
|
|
4019
4019
|
__name: "DatatableAction",
|
|
4020
4020
|
props: {
|
|
4021
4021
|
field: {
|
|
@@ -4047,7 +4047,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4047
4047
|
a.value = !0;
|
|
4048
4048
|
}, c = () => {
|
|
4049
4049
|
o.value = !1;
|
|
4050
|
-
},
|
|
4050
|
+
}, h = () => {
|
|
4051
4051
|
o.value = !0;
|
|
4052
4052
|
}, m = t, b = () => {
|
|
4053
4053
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4088,7 +4088,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4088
4088
|
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", pi, [
|
|
4089
4089
|
s("a", {
|
|
4090
4090
|
href: "#",
|
|
4091
|
-
onClick:
|
|
4091
|
+
onClick: A(h, ["prevent"]),
|
|
4092
4092
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4093
4093
|
}, [
|
|
4094
4094
|
bi,
|
|
@@ -4121,7 +4121,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4121
4121
|
], wi = { class: "absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, ki = {
|
|
4122
4122
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4123
4123
|
"aria-labelledby": "dropdownDividerButton"
|
|
4124
|
-
}, $i = { key: 0 }, Si = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1),
|
|
4124
|
+
}, $i = { key: 0 }, Si = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Ql = {
|
|
4125
4125
|
__name: "DatatableDeleteAction",
|
|
4126
4126
|
props: {
|
|
4127
4127
|
field: {
|
|
@@ -4153,7 +4153,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4153
4153
|
a.value = !0;
|
|
4154
4154
|
}, c = () => {
|
|
4155
4155
|
o.value = !1;
|
|
4156
|
-
},
|
|
4156
|
+
}, h = () => {
|
|
4157
4157
|
o.value = !0;
|
|
4158
4158
|
}, m = t, b = () => {
|
|
4159
4159
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4185,7 +4185,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4185
4185
|
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", $i, [
|
|
4186
4186
|
s("a", {
|
|
4187
4187
|
href: "#",
|
|
4188
|
-
onClick:
|
|
4188
|
+
onClick: A(h, ["prevent"]),
|
|
4189
4189
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4190
4190
|
}, [
|
|
4191
4191
|
Si,
|
|
@@ -4256,7 +4256,7 @@ const Vl = /* @__PURE__ */ k(ka, [["render", ii]]), li = {
|
|
|
4256
4256
|
"clip-rule": "evenodd"
|
|
4257
4257
|
})
|
|
4258
4258
|
], -1);
|
|
4259
|
-
function
|
|
4259
|
+
function Ai(e, t, r, n, a, o) {
|
|
4260
4260
|
return d(), u("div", null, [
|
|
4261
4261
|
o.isArray ? (d(!0), u(y, { key: 0 }, w(r.row, (l, i) => (d(), u("div", {
|
|
4262
4262
|
key: i,
|
|
@@ -4284,7 +4284,7 @@ function Ii(e, t, r, n, a, o) {
|
|
|
4284
4284
|
])) : g("", !0)
|
|
4285
4285
|
]);
|
|
4286
4286
|
}
|
|
4287
|
-
const
|
|
4287
|
+
const ed = /* @__PURE__ */ k(Ci, [["render", Ai]]), Ii = {
|
|
4288
4288
|
props: ["field", "row"],
|
|
4289
4289
|
computed: {
|
|
4290
4290
|
isArray() {
|
|
@@ -4360,7 +4360,7 @@ function Bi(e, t, r, n, a, o) {
|
|
|
4360
4360
|
])) : g("", !0)
|
|
4361
4361
|
]);
|
|
4362
4362
|
}
|
|
4363
|
-
const
|
|
4363
|
+
const td = /* @__PURE__ */ k(Ii, [["render", Bi]]), Gi = {
|
|
4364
4364
|
props: ["field", "row", "tdProps"]
|
|
4365
4365
|
}, Fi = { key: 0 }, Ri = ["innerHTML"];
|
|
4366
4366
|
function Ui(e, t, r, n, a, o) {
|
|
@@ -4371,7 +4371,7 @@ function Ui(e, t, r, n, a, o) {
|
|
|
4371
4371
|
}, null, 8, Ri)
|
|
4372
4372
|
])) : g("", !0);
|
|
4373
4373
|
}
|
|
4374
|
-
const
|
|
4374
|
+
const rd = /* @__PURE__ */ k(Gi, [["render", Ui]]), qi = {
|
|
4375
4375
|
props: ["field", "row", "tdProps"],
|
|
4376
4376
|
computed: {
|
|
4377
4377
|
entry() {
|
|
@@ -4394,10 +4394,10 @@ function Zi(e, t, r, n, a, o) {
|
|
|
4394
4394
|
o.isArray ? (d(!0), u(y, { key: 0 }, w(r.row[o.entry.key], (l, i) => (d(), u("span", {
|
|
4395
4395
|
key: i,
|
|
4396
4396
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4397
|
-
},
|
|
4397
|
+
}, f(l[o.entry.field]), 1))), 128)) : o.isObject ? (d(), u("span", zi, f(r.row[o.entry.key][o.entry.field]), 1)) : g("", !0)
|
|
4398
4398
|
]);
|
|
4399
4399
|
}
|
|
4400
|
-
const
|
|
4400
|
+
const sd = /* @__PURE__ */ k(qi, [["render", Zi]]), Ki = {
|
|
4401
4401
|
props: ["field", "row", "tdProps"]
|
|
4402
4402
|
}, Wi = { key: 0 }, Xi = { class: "m-1 d-inline-block" }, Yi = ["href", "title"], Ji = ["src", "alt", "title"];
|
|
4403
4403
|
function Qi(e, t, r, n, a, o) {
|
|
@@ -4417,7 +4417,7 @@ function Qi(e, t, r, n, a, o) {
|
|
|
4417
4417
|
])
|
|
4418
4418
|
])) : g("", !0);
|
|
4419
4419
|
}
|
|
4420
|
-
const
|
|
4420
|
+
const nd = /* @__PURE__ */ k(Ki, [["render", Qi], ["__scopeId", "data-v-3a28c02c"]]), el = {
|
|
4421
4421
|
props: ["field", "row", "tdProps"],
|
|
4422
4422
|
computed: {
|
|
4423
4423
|
isActive() {
|
|
@@ -4442,7 +4442,7 @@ function al(e, t, r, n, a, o) {
|
|
|
4442
4442
|
]))
|
|
4443
4443
|
]);
|
|
4444
4444
|
}
|
|
4445
|
-
const
|
|
4445
|
+
const od = /* @__PURE__ */ k(el, [["render", al]]), il = {
|
|
4446
4446
|
props: ["field", "row", "tdProps"],
|
|
4447
4447
|
computed: {
|
|
4448
4448
|
hasLabelColor(e) {
|
|
@@ -4467,53 +4467,108 @@ function pl(e, t, r, n, a, o) {
|
|
|
4467
4467
|
return d(), u("div", ll, [
|
|
4468
4468
|
o.hasLabelColor == "green" ? (d(), u("span", dl, [
|
|
4469
4469
|
ul,
|
|
4470
|
-
v(" " +
|
|
4470
|
+
v(" " + f(this.row[this.field]), 1)
|
|
4471
4471
|
])) : g("", !0),
|
|
4472
4472
|
o.hasLabelColor == "red" ? (d(), u("span", cl, [
|
|
4473
4473
|
fl,
|
|
4474
|
-
v(" " +
|
|
4474
|
+
v(" " + f(this.row[this.field]), 1)
|
|
4475
4475
|
])) : g("", !0),
|
|
4476
4476
|
o.hasLabelColor == "yellow" ? (d(), u("span", hl, [
|
|
4477
4477
|
gl,
|
|
4478
|
-
v(" " +
|
|
4478
|
+
v(" " + f(this.row[this.field]), 1)
|
|
4479
4479
|
])) : g("", !0),
|
|
4480
4480
|
o.hasLabelColor == "default" ? (d(), u("span", ml, [
|
|
4481
4481
|
_l,
|
|
4482
|
-
v(" " +
|
|
4482
|
+
v(" " + f(this.row[this.field]), 1)
|
|
4483
4483
|
])) : g("", !0)
|
|
4484
4484
|
]);
|
|
4485
4485
|
}
|
|
4486
|
-
const
|
|
4486
|
+
const ad = /* @__PURE__ */ k(il, [["render", pl]]), bl = {
|
|
4487
|
+
props: ["isOpen", "title", "button_text"],
|
|
4488
|
+
methods: {
|
|
4489
|
+
confirmAction() {
|
|
4490
|
+
this.$emit("confirm-action");
|
|
4491
|
+
},
|
|
4492
|
+
cancelAction() {
|
|
4493
|
+
this.$emit("cancel-action");
|
|
4494
|
+
}
|
|
4495
|
+
}
|
|
4496
|
+
}, yl = {
|
|
4497
|
+
key: 0,
|
|
4498
|
+
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4499
|
+
role: "dialog",
|
|
4500
|
+
"aria-modal": "true"
|
|
4501
|
+
}, vl = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, xl = /* @__PURE__ */ s("div", {
|
|
4502
|
+
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4503
|
+
"aria-hidden": "true"
|
|
4504
|
+
}, null, -1), wl = /* @__PURE__ */ s("span", {
|
|
4505
|
+
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4506
|
+
"aria-hidden": "true"
|
|
4507
|
+
}, "", -1), kl = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, $l = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Sl = { class: "sm:flex sm:items-start" }, Cl = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Ol = { class: "text-lg font-medium leading-6 text-gray-900" }, Dl = { class: "mt-2" }, Pl = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4508
|
+
function El(e, t, r, n, a, o) {
|
|
4509
|
+
return r.isOpen ? (d(), u("div", yl, [
|
|
4510
|
+
s("div", vl, [
|
|
4511
|
+
xl,
|
|
4512
|
+
wl,
|
|
4513
|
+
s("div", kl, [
|
|
4514
|
+
s("div", $l, [
|
|
4515
|
+
s("div", Sl, [
|
|
4516
|
+
s("div", Cl, [
|
|
4517
|
+
s("h3", Ol, f(r.title), 1),
|
|
4518
|
+
s("div", Dl, [
|
|
4519
|
+
P(e.$slots, "default")
|
|
4520
|
+
])
|
|
4521
|
+
])
|
|
4522
|
+
])
|
|
4523
|
+
]),
|
|
4524
|
+
s("div", Pl, [
|
|
4525
|
+
s("button", {
|
|
4526
|
+
onClick: t[0] || (t[0] = (...l) => o.confirmAction && o.confirmAction(...l)),
|
|
4527
|
+
type: "button",
|
|
4528
|
+
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4529
|
+
}, f(r.button_text), 1),
|
|
4530
|
+
s("button", {
|
|
4531
|
+
onClick: t[1] || (t[1] = (...l) => o.cancelAction && o.cancelAction(...l)),
|
|
4532
|
+
type: "button",
|
|
4533
|
+
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4534
|
+
}, " Cancel ")
|
|
4535
|
+
])
|
|
4536
|
+
])
|
|
4537
|
+
])
|
|
4538
|
+
])) : g("", !0);
|
|
4539
|
+
}
|
|
4540
|
+
const id = /* @__PURE__ */ k(bl, [["render", El]]);
|
|
4487
4541
|
export {
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4542
|
+
Vl as GlButton,
|
|
4543
|
+
Nl as GlCard,
|
|
4544
|
+
id as GlConfirmationModal,
|
|
4545
|
+
Xl as GlDataTable,
|
|
4546
|
+
Wl as GlDataTableServerSide,
|
|
4547
|
+
Jl as GlDatatableAction,
|
|
4548
|
+
Ql as GlDatatableDeleteAction,
|
|
4549
|
+
ed as GlDatatableFileDownload,
|
|
4550
|
+
td as GlDatatableFiles,
|
|
4551
|
+
rd as GlDatatableHtml,
|
|
4552
|
+
sd as GlDatatableList,
|
|
4553
|
+
nd as GlDatatablePicture,
|
|
4554
|
+
od as GlDatatableStatus,
|
|
4555
|
+
ad as GlDatatableStatusGeneral,
|
|
4501
4556
|
ee as GlDeleteConfirmationModal,
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4557
|
+
Zl as GlDropdown,
|
|
4558
|
+
Al as GlFilesUpload,
|
|
4559
|
+
Tl as GlLanguageSelector,
|
|
4560
|
+
Hl as GlModal,
|
|
4561
|
+
ql as GlMultiItemSlide,
|
|
4562
|
+
Ml as GlMultiSelectDropdown,
|
|
4563
|
+
Il as GlNotify,
|
|
4564
|
+
Ul as GlTab,
|
|
4565
|
+
Rl as GlTabsWrapper,
|
|
4511
4566
|
ta as GlTailwindPagination,
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4567
|
+
Fl as GlTextInput,
|
|
4568
|
+
Gl as GlTextTranslate,
|
|
4569
|
+
Kl as GlTextarea,
|
|
4570
|
+
Ll as GlTextareaTranslate,
|
|
4571
|
+
Bl as GlTinymceTranslate,
|
|
4572
|
+
zl as GlToggleBox,
|
|
4573
|
+
Yl as store
|
|
4519
4574
|
};
|