golden-logic-ui 1.0.76 → 1.0.78
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 +436 -404
- package/dist/golden-logic-ui.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as f, createStaticVNode as Je, inject as Ce, watch as Y, effectScope as Qe, computed as G, reactive as Se, resolveComponent as X, Fragment as v, createVNode as Z, normalizeClass as b, toDisplayString as g, withModifiers as N, withDirectives as O, vModelText as V, renderList as k, normalizeStyle as et, renderSlot as A, createTextVNode as w, vShow as F, createBlock as K, resolveDynamicComponent as oe, mergeProps as W, withCtx as J, ref as S, onMounted as R, vModelDynamic as tt, provide as rt, pushScopeId as st, popScopeId as at, vModelCheckbox as nt, nextTick as ot, toHandlers as ae, TransitionGroup as lt, unref as it, resolveDirective as De, markRaw as dt } from "vue";
|
|
2
|
+
const $ = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
5
5
|
r[n] = o;
|
|
@@ -48,9 +48,9 @@ function yt(e, t, r, n, o, a) {
|
|
|
48
48
|
])
|
|
49
49
|
])
|
|
50
50
|
])
|
|
51
|
-
])) :
|
|
51
|
+
])) : f("", !0);
|
|
52
52
|
}
|
|
53
|
-
const ue = /* @__PURE__ */
|
|
53
|
+
const ue = /* @__PURE__ */ $(ut, [["render", yt]]);
|
|
54
54
|
function _t() {
|
|
55
55
|
return Oe().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
@@ -111,11 +111,11 @@ class Ct {
|
|
|
111
111
|
args: c,
|
|
112
112
|
resolve: () => {
|
|
113
113
|
}
|
|
114
|
-
}), this.fallbacks[l](...c)) : (...c) => new Promise((
|
|
114
|
+
}), this.fallbacks[l](...c)) : (...c) => new Promise((h) => {
|
|
115
115
|
this.targetQueue.push({
|
|
116
116
|
method: l,
|
|
117
117
|
args: c,
|
|
118
|
-
resolve:
|
|
118
|
+
resolve: h
|
|
119
119
|
});
|
|
120
120
|
})
|
|
121
121
|
});
|
|
@@ -170,13 +170,13 @@ function Ot(e, t) {
|
|
|
170
170
|
return e(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Te(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 Ae(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
|
ee(e, r, [], e._modules.root, !0), ce(e, r, t);
|
|
@@ -186,8 +186,8 @@ function ce(e, t, r) {
|
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
187
|
var a = e._wrappedGetters, i = {}, l = {}, c = Qe(!0);
|
|
188
188
|
c.run(function() {
|
|
189
|
-
U(a, function(
|
|
190
|
-
i[m] = Ot(
|
|
189
|
+
U(a, function(h, m) {
|
|
190
|
+
i[m] = Ot(h, e), l[m] = G(function() {
|
|
191
191
|
return i[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
@@ -199,7 +199,7 @@ function ce(e, t, r) {
|
|
|
199
199
|
});
|
|
200
200
|
}), e._state = Se({
|
|
201
201
|
data: t
|
|
202
|
-
}), e._scope = c, e.strict &&
|
|
202
|
+
}), e._scope = c, e.strict && At(e), n && r && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
204
|
}), o && o.stop();
|
|
205
205
|
}
|
|
@@ -213,16 +213,16 @@ function ee(e, t, r, n, o) {
|
|
|
213
213
|
), l[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var h = n.context = Pt(e, i, r);
|
|
217
217
|
n.forEachMutation(function(m, y) {
|
|
218
218
|
var x = i + y;
|
|
219
|
-
Et(e, x, m,
|
|
219
|
+
Et(e, x, m, h);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
|
-
var x = m.root ? y : i + y,
|
|
222
|
-
jt(e, x,
|
|
221
|
+
var x = m.root ? y : i + y, C = m.handler || m;
|
|
222
|
+
jt(e, x, C, h);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
224
|
var x = i + y;
|
|
225
|
-
|
|
225
|
+
Tt(e, x, m, h);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
227
|
ee(e, t, r.concat(y), m, o);
|
|
228
228
|
});
|
|
@@ -230,20 +230,20 @@ function ee(e, t, r, n, o) {
|
|
|
230
230
|
function Pt(e, t, r) {
|
|
231
231
|
var n = t === "", o = {
|
|
232
232
|
dispatch: n ? e.dispatch : function(a, i, l) {
|
|
233
|
-
var c = Q(a, i, l),
|
|
233
|
+
var c = Q(a, i, l), h = c.payload, m = c.options, y = c.type;
|
|
234
234
|
if ((!m || !m.root) && (y = t + y, process.env.NODE_ENV !== "production" && !e._actions[y])) {
|
|
235
235
|
console.error("[vuex] unknown local action type: " + c.type + ", global type: " + y);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
return e.dispatch(y,
|
|
238
|
+
return e.dispatch(y, h);
|
|
239
239
|
},
|
|
240
240
|
commit: n ? e.commit : function(a, i, l) {
|
|
241
|
-
var c = Q(a, i, l),
|
|
241
|
+
var c = Q(a, i, l), h = c.payload, m = c.options, y = c.type;
|
|
242
242
|
if ((!m || !m.root) && (y = t + y, process.env.NODE_ENV !== "production" && !e._mutations[y])) {
|
|
243
243
|
console.error("[vuex] unknown local mutation type: " + c.type + ", global type: " + y);
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
e.commit(y,
|
|
246
|
+
e.commit(y, h, m);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
return Object.defineProperties(o, {
|
|
@@ -300,7 +300,7 @@ function jt(e, t, r, n) {
|
|
|
300
300
|
}) : l;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Tt(e, t, r, n) {
|
|
304
304
|
if (e._wrappedGetters[t]) {
|
|
305
305
|
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
|
|
306
306
|
return;
|
|
@@ -318,8 +318,8 @@ function At(e, t, r, n) {
|
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
321
|
+
function At(e) {
|
|
322
|
+
Y(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
325
325
|
process.env.NODE_ENV !== "production" && I(e._committing, "do not mutate vuex store state outside mutation handlers.");
|
|
@@ -675,11 +675,11 @@ var j = function e(t) {
|
|
|
675
675
|
o === void 0 && (o = !1);
|
|
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 q(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
|
-
var i = this, l = this, c = l.dispatch,
|
|
679
|
-
this.dispatch = function(x,
|
|
680
|
-
return c.call(i, x,
|
|
681
|
-
}, this.commit = function(x,
|
|
682
|
-
return
|
|
678
|
+
var i = this, l = this, c = l.dispatch, h = l.commit;
|
|
679
|
+
this.dispatch = function(x, C) {
|
|
680
|
+
return c.call(i, x, C);
|
|
681
|
+
}, this.commit = function(x, C, L) {
|
|
682
|
+
return h.call(i, x, C, L);
|
|
683
683
|
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
685
|
ee(this, m, [], this._modules.root), ce(this, m), n.forEach(function(y) {
|
|
@@ -698,7 +698,7 @@ ge.state.set = function(e) {
|
|
|
698
698
|
process.env.NODE_ENV !== "production" && I(!1, "use store.replaceState() to explicit replace store state.");
|
|
699
699
|
};
|
|
700
700
|
j.prototype.commit = function(t, r, n) {
|
|
701
|
-
var o = this, a = Q(t, r, n), i = a.type, l = a.payload, c = a.options,
|
|
701
|
+
var o = this, a = Q(t, r, n), i = a.type, l = a.payload, c = a.options, h = { type: i, payload: l }, m = this._mutations[i];
|
|
702
702
|
if (!m) {
|
|
703
703
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + i);
|
|
704
704
|
return;
|
|
@@ -708,7 +708,7 @@ j.prototype.commit = function(t, r, n) {
|
|
|
708
708
|
x(l);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(y) {
|
|
711
|
-
return y(
|
|
711
|
+
return y(h, o.state);
|
|
712
712
|
}), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
|
|
713
713
|
"[vuex] mutation type: " + i + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
|
|
714
714
|
);
|
|
@@ -728,45 +728,45 @@ j.prototype.dispatch = function(t, r) {
|
|
|
728
728
|
} catch (m) {
|
|
729
729
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(m));
|
|
730
730
|
}
|
|
731
|
-
var
|
|
731
|
+
var h = c.length > 1 ? Promise.all(c.map(function(m) {
|
|
732
732
|
return m(i);
|
|
733
733
|
})) : c[0](i);
|
|
734
734
|
return new Promise(function(m, y) {
|
|
735
|
-
|
|
735
|
+
h.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(l, 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(l, 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 Te(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 Te(n, this._actionSubscribers, r);
|
|
766
766
|
};
|
|
767
767
|
j.prototype.watch = function(t, r, n) {
|
|
768
768
|
var o = this;
|
|
769
|
-
return process.env.NODE_ENV !== "production" && I(typeof t == "function", "store.watch only accepts a function."),
|
|
769
|
+
return process.env.NODE_ENV !== "production" && I(typeof t == "function", "store.watch only accepts a function."), Y(function() {
|
|
770
770
|
return t(o.state, o.getters);
|
|
771
771
|
}, r, Object.assign({}, n));
|
|
772
772
|
};
|
|
@@ -784,13 +784,13 @@ 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 = fe(r.state, t.slice(0, -1));
|
|
786
786
|
delete n[t[t.length - 1]];
|
|
787
|
-
}),
|
|
787
|
+
}), Ae(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), Ae(this, !0);
|
|
794
794
|
};
|
|
795
795
|
j.prototype._withCommit = function(t) {
|
|
796
796
|
var r = this._committing;
|
|
@@ -804,10 +804,10 @@ var qt = Ue(function(e, t) {
|
|
|
804
804
|
r[o] = function() {
|
|
805
805
|
var l = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
|
-
var
|
|
808
|
-
if (!
|
|
807
|
+
var h = qe(this.$store, "mapState", e);
|
|
808
|
+
if (!h)
|
|
809
809
|
return;
|
|
810
|
-
l =
|
|
810
|
+
l = h.context.state, c = h.context.getters;
|
|
811
811
|
}
|
|
812
812
|
return typeof a == "function" ? a.call(this, l, c) : l[a];
|
|
813
813
|
}, r[o].vuex = !0;
|
|
@@ -819,14 +819,14 @@ var qt = Ue(function(e, t) {
|
|
|
819
819
|
r[o] = function() {
|
|
820
820
|
for (var l = [], c = arguments.length; c--; )
|
|
821
821
|
l[c] = arguments[c];
|
|
822
|
-
var
|
|
822
|
+
var h = this.$store.commit;
|
|
823
823
|
if (e) {
|
|
824
824
|
var m = qe(this.$store, "mapMutations", e);
|
|
825
825
|
if (!m)
|
|
826
826
|
return;
|
|
827
|
-
|
|
827
|
+
h = m.context.commit;
|
|
828
828
|
}
|
|
829
|
-
return typeof a == "function" ? a.apply(this, [
|
|
829
|
+
return typeof a == "function" ? a.apply(this, [h].concat(l)) : h.apply(this.$store, [a].concat(l));
|
|
830
830
|
};
|
|
831
831
|
}), r;
|
|
832
832
|
});
|
|
@@ -999,7 +999,7 @@ const Ht = {
|
|
|
999
999
|
mounted() {
|
|
1000
1000
|
console.log(this.model_value), this.model_value ? Array.isArray(this.model_value) ? this.uploadFileList = this.model_value : this.uploadFileList = [this.model_value] : this.uploadFileList = [], this.error_message_data = this.error_message;
|
|
1001
1001
|
}
|
|
1002
|
-
}, Zt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Kt = ["multiple"], Wt = ["name"],
|
|
1002
|
+
}, Zt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Kt = ["multiple"], Wt = ["name"], Yt = /* @__PURE__ */ s("svg", {
|
|
1003
1003
|
class: "w-8 h-8 mb-4 text-gray-500 dark:text-gray-400",
|
|
1004
1004
|
"aria-hidden": "true",
|
|
1005
1005
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1013,9 +1013,9 @@ const Ht = {
|
|
|
1013
1013
|
"stroke-width": "2",
|
|
1014
1014
|
d: "M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"
|
|
1015
1015
|
})
|
|
1016
|
-
], -1),
|
|
1017
|
-
|
|
1018
|
-
|
|
1016
|
+
], -1), Xt = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1), Jt = [
|
|
1017
|
+
Yt,
|
|
1018
|
+
Xt
|
|
1019
1019
|
], Qt = { key: 1 }, er = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), tr = [
|
|
1020
1020
|
er
|
|
1021
1021
|
], rr = { class: "mt-2 gl-span-form-error" }, sr = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, ar = {
|
|
@@ -1026,7 +1026,7 @@ const Ht = {
|
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
1027
|
}, null, -1), br = { class: "flex flex-col ml-3" }, pr = { class: "text-xs" }, yr = { class: "text-xs" }, _r = { class: "flex gap-2" }, vr = ["href"], xr = ["onClick"];
|
|
1028
1028
|
function wr(e, t, r, n, o, a) {
|
|
1029
|
-
const i =
|
|
1029
|
+
const i = X("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
1031
1031
|
Z(i, {
|
|
1032
1032
|
isOpen: o.open_delete_modal,
|
|
@@ -1045,7 +1045,7 @@ function wr(e, t, r, n, o, a) {
|
|
|
1045
1045
|
"gl-label-form-invalid": o.error_message_data !== "",
|
|
1046
1046
|
required: r.is_required
|
|
1047
1047
|
})
|
|
1048
|
-
},
|
|
1048
|
+
}, g(r.label_name), 3),
|
|
1049
1049
|
s("div", {
|
|
1050
1050
|
onDragover: t[3] || (t[3] = N((...l) => a.onDragOver && a.onDragOver(...l), ["prevent"])),
|
|
1051
1051
|
onDragleave: t[4] || (t[4] = N((...l) => a.onDragLeave && a.onDragLeave(...l), ["prevent"])),
|
|
@@ -1074,15 +1074,15 @@ function wr(e, t, r, n, o, a) {
|
|
|
1074
1074
|
}, Jt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
|
-
s("span", rr,
|
|
1078
|
-
s("small", sr,
|
|
1077
|
+
s("span", rr, g(o.error_message_data), 1),
|
|
1078
|
+
s("small", sr, g(r.description), 1),
|
|
1079
1079
|
o.files.length > 0 ? (d(), u("section", ar, [
|
|
1080
1080
|
(d(!0), u(v, null, k(o.files, (l, c) => (d(), u("li", nr, [
|
|
1081
1081
|
or,
|
|
1082
1082
|
s("div", lr, [
|
|
1083
1083
|
s("div", ir, [
|
|
1084
|
-
s("span", dr,
|
|
1085
|
-
s("span", ur,
|
|
1084
|
+
s("span", dr, g(a.getFileName(l.file_name)), 1),
|
|
1085
|
+
s("span", ur, g(l.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
1087
|
s("div", cr, [
|
|
1088
1088
|
s("div", {
|
|
@@ -1092,14 +1092,14 @@ function wr(e, t, r, n, o, a) {
|
|
|
1092
1092
|
])
|
|
1093
1093
|
])
|
|
1094
1094
|
]))), 256))
|
|
1095
|
-
])) :
|
|
1095
|
+
])) : f("", !0),
|
|
1096
1096
|
s("section", fr, [
|
|
1097
1097
|
(d(!0), u(v, null, k(o.uploadFileList, (l, c) => (d(), u("li", gr, [
|
|
1098
1098
|
s("div", hr, [
|
|
1099
1099
|
mr,
|
|
1100
1100
|
s("div", br, [
|
|
1101
|
-
s("span", pr,
|
|
1102
|
-
s("span", yr,
|
|
1101
|
+
s("span", pr, g(a.getFileName(l.file_name)), 1),
|
|
1102
|
+
s("span", yr, g(a.formatFileSize(l.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
1105
|
s("div", _r, [
|
|
@@ -1110,18 +1110,18 @@ function wr(e, t, r, n, o, a) {
|
|
|
1110
1110
|
}, null, 8, vr),
|
|
1111
1111
|
r.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
|
-
onClick: (
|
|
1113
|
+
onClick: (h) => {
|
|
1114
1114
|
o.media_id = l.id, o.open_delete_modal = !0;
|
|
1115
1115
|
},
|
|
1116
1116
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
1117
|
-
}, null, 8, xr)) :
|
|
1117
|
+
}, null, 8, xr)) : f("", !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
]))), 256))
|
|
1120
1120
|
])
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const Od = /* @__PURE__ */ $(Ht, [["render", wr]]), kr = {
|
|
1125
1125
|
computed: {
|
|
1126
1126
|
...qt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
@@ -1204,16 +1204,16 @@ function Er(e, t, r, n, o, a) {
|
|
|
1204
1204
|
}, [
|
|
1205
1205
|
$r,
|
|
1206
1206
|
Cr,
|
|
1207
|
-
s("div", Sr,
|
|
1207
|
+
s("div", Sr, g(e.notification.message), 1),
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
onClick: t[0] || (t[0] = (...i) => a.dismiss && a.dismiss(...i)),
|
|
1211
1211
|
class: b(["inline-flex items-center justify-center w-6 h-6 p-1 -mx-1 -my-1 rounded-lg ms-auto focus:ring-2 hover:bg-opacity-50", a.buttonClasses]),
|
|
1212
1212
|
"aria-label": "Close"
|
|
1213
1213
|
}, Pr, 2)
|
|
1214
|
-
], 2)) :
|
|
1214
|
+
], 2)) : f("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Pd = /* @__PURE__ */ $(kr, [["render", Er]]), jr = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1248,9 +1248,9 @@ const $d = /* @__PURE__ */ S(kr, [["render", Er]]), jr = {
|
|
|
1248
1248
|
},
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1251
|
+
}, Tr = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Ar = ["name", "value", "id", "checked"], Ir = ["for"];
|
|
1252
1252
|
function Mr(e, t, r, n, o, a) {
|
|
1253
|
-
return d(), u("ul",
|
|
1253
|
+
return d(), u("ul", Tr, [
|
|
1254
1254
|
(d(!0), u(v, null, k(o.locals, (i, l) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
@@ -1260,7 +1260,7 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1260
1260
|
id: i + "_" + r.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
1262
|
checked: i === o.default_language
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, Ar),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: i + "_" + r.field_name,
|
|
1266
1266
|
class: b([{
|
|
@@ -1268,14 +1268,14 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1268
1268
|
"border md:!rounded-e-lg": l === o.locals.length - 1,
|
|
1269
1269
|
"border-t border-b": l !== 0 && l !== o.locals.length - 1
|
|
1270
1270
|
}, "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"])
|
|
1271
|
-
},
|
|
1271
|
+
}, g(i), 11, Ir)
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const Ed = /* @__PURE__ */ $(jr, [["render", Mr]]), Nr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Vr = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Lr = { class: "font-semibold text-black dark:text-white" }, Br = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, jd = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1291,12 +1291,12 @@ const Cd = /* @__PURE__ */ S(jr, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1291
1291
|
s("div", Nr, [
|
|
1292
1292
|
s("div", Vr, [
|
|
1293
1293
|
s("h3", Lr, [
|
|
1294
|
-
|
|
1294
|
+
A(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
1297
|
n.$slots.body ? (d(), u("div", Br, [
|
|
1298
|
-
|
|
1299
|
-
])) :
|
|
1298
|
+
A(n.$slots, "body")
|
|
1299
|
+
])) : f("", !0)
|
|
1300
1300
|
])
|
|
1301
1301
|
], 2));
|
|
1302
1302
|
}
|
|
@@ -1463,7 +1463,7 @@ const Cd = /* @__PURE__ */ S(jr, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1463
1463
|
}, Zr = {
|
|
1464
1464
|
class: "inline-flex ml-2 rounded-md shadow-sm",
|
|
1465
1465
|
role: "group"
|
|
1466
|
-
}, Kr = { 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" }, Wr = { class: "relative" },
|
|
1466
|
+
}, Kr = { 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" }, Wr = { class: "relative" }, Yr = ["onClick"], Xr = { 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" }, Jr = { class: "p-1" }, Qr = /* @__PURE__ */ s("label", {
|
|
1467
1467
|
for: "default-search",
|
|
1468
1468
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
1469
1469
|
}, "Search", -1), es = { class: "relative" }, ts = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
@@ -1489,13 +1489,13 @@ function ns(e, t, r, n, o, a) {
|
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
class: b(r.field_name)
|
|
1491
1491
|
}, [
|
|
1492
|
-
s("h3", Fr,
|
|
1492
|
+
s("h3", Fr, g(r.label_name), 1),
|
|
1493
1493
|
s("p", Rr, [
|
|
1494
|
-
(d(!0), u(v, null, k(o.selected, (i, l) => (d(), u("span", Ur,
|
|
1494
|
+
(d(!0), u(v, null, k(o.selected, (i, l) => (d(), u("span", Ur, g(i.name), 1))), 256))
|
|
1495
1495
|
]),
|
|
1496
1496
|
qr
|
|
1497
|
-
], 2)) :
|
|
1498
|
-
r.show ?
|
|
1497
|
+
], 2)) : f("", !0),
|
|
1498
|
+
r.show ? f("", !0) : (d(), u("div", {
|
|
1499
1499
|
key: 1,
|
|
1500
1500
|
class: b(["mb-4", r.field_name])
|
|
1501
1501
|
}, [
|
|
@@ -1512,7 +1512,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1512
1512
|
"gl-label-form-invalid": r.error_message !== "",
|
|
1513
1513
|
required: r.is_required
|
|
1514
1514
|
})
|
|
1515
|
-
},
|
|
1515
|
+
}, g(r.label_name), 3),
|
|
1516
1516
|
s("div", Zr, [
|
|
1517
1517
|
s("button", {
|
|
1518
1518
|
onClick: t[0] || (t[0] = (...i) => a.selectAll && a.selectAll(...i)),
|
|
@@ -1535,11 +1535,11 @@ function ns(e, t, r, n, o, a) {
|
|
|
1535
1535
|
key: l,
|
|
1536
1536
|
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"
|
|
1537
1537
|
}, [
|
|
1538
|
-
w(
|
|
1538
|
+
w(g(i.name) + " ", 1),
|
|
1539
1539
|
s("i", {
|
|
1540
1540
|
onClick: N((c) => a.clearOption(i), ["stop"]),
|
|
1541
1541
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
1542
|
-
}, null, 8,
|
|
1542
|
+
}, null, 8, Yr)
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
@@ -1547,7 +1547,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
1550
|
-
O(s("div",
|
|
1550
|
+
O(s("div", Xr, [
|
|
1551
1551
|
s("div", Jr, [
|
|
1552
1552
|
Qr,
|
|
1553
1553
|
s("div", es, [
|
|
@@ -1576,17 +1576,17 @@ function ns(e, t, r, n, o, a) {
|
|
|
1576
1576
|
onMousedown: (c) => a.selectOption(i),
|
|
1577
1577
|
key: l,
|
|
1578
1578
|
id: l + 1
|
|
1579
|
-
},
|
|
1579
|
+
}, g(i.name || i.id || "-"), 43, as))), 128))
|
|
1580
1580
|
])
|
|
1581
1581
|
], 512), [
|
|
1582
1582
|
[F, o.optionsShown]
|
|
1583
1583
|
])
|
|
1584
1584
|
])
|
|
1585
|
-
])) :
|
|
1585
|
+
])) : f("", !0)
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const Td = /* @__PURE__ */ $(Gr, [["render", ns]]), os = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1682,13 +1682,13 @@ function is(e, t, r, n, o, a) {
|
|
|
1682
1682
|
r.icon ? (d(), u("i", {
|
|
1683
1683
|
key: 0,
|
|
1684
1684
|
class: b([r.icon, "text-base"])
|
|
1685
|
-
}, null, 2)) :
|
|
1686
|
-
|
|
1685
|
+
}, null, 2)) : f("", !0),
|
|
1686
|
+
A(e.$slots, "default")
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 3
|
|
1689
1689
|
}, 16, ["type", "disabled", "href", "class"]));
|
|
1690
1690
|
}
|
|
1691
|
-
const
|
|
1691
|
+
const Ad = /* @__PURE__ */ $(os, [["render", is]]), ds = { class: "font-bold ptext-lg dark:text-white" }, us = ["name", "id"], cs = ["id"], fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), gs = ["for"], hs = /* @__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), ms = ["name", "id"], bs = ["required", "name", "id", "type"], ps = { class: "gl-span-form-error" }, ys = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Id = {
|
|
1692
1692
|
__name: "GlTextareaTranslate",
|
|
1693
1693
|
props: {
|
|
1694
1694
|
is_required: {
|
|
@@ -1746,7 +1746,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1746
1746
|
},
|
|
1747
1747
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1748
1748
|
setup(e, { expose: t, emit: r }) {
|
|
1749
|
-
const n = e, o = r, a =
|
|
1749
|
+
const n = e, o = r, a = S(null), i = S(null);
|
|
1750
1750
|
return R(() => {
|
|
1751
1751
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
1752
1752
|
model: n.translatable.model,
|
|
@@ -1762,7 +1762,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1762
1762
|
key: 0,
|
|
1763
1763
|
class: b(e.field_name)
|
|
1764
1764
|
}, [
|
|
1765
|
-
s("h3", ds,
|
|
1765
|
+
s("h3", ds, g(e.label_name), 1),
|
|
1766
1766
|
O(s("input", {
|
|
1767
1767
|
type: "hidden",
|
|
1768
1768
|
"data-i18n": "true",
|
|
@@ -1770,17 +1770,17 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1770
1770
|
id: e.field_name + "_i18n",
|
|
1771
1771
|
ref_key: "input_translate",
|
|
1772
1772
|
ref: i,
|
|
1773
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1773
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1774
1774
|
}, null, 8, us), [
|
|
1775
1775
|
[V, l.inputTranslateValue]
|
|
1776
1776
|
]),
|
|
1777
1777
|
s("p", {
|
|
1778
1778
|
id: e.field_name,
|
|
1779
1779
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1780
|
-
},
|
|
1780
|
+
}, g(e.model_value), 9, cs),
|
|
1781
1781
|
fs
|
|
1782
|
-
], 2)) :
|
|
1783
|
-
e.show ?
|
|
1782
|
+
], 2)) : f("", !0),
|
|
1783
|
+
e.show ? f("", !0) : (d(), u("div", {
|
|
1784
1784
|
key: 1,
|
|
1785
1785
|
class: b(["mb-4", e.field_name])
|
|
1786
1786
|
}, [
|
|
@@ -1791,7 +1791,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1791
1791
|
required: e.is_required
|
|
1792
1792
|
}),
|
|
1793
1793
|
for: e.field_name
|
|
1794
|
-
},
|
|
1794
|
+
}, g(e.label_name), 11, gs),
|
|
1795
1795
|
hs,
|
|
1796
1796
|
s("input", {
|
|
1797
1797
|
class: "mb-4",
|
|
@@ -1799,7 +1799,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1799
1799
|
"data-i18n": "true",
|
|
1800
1800
|
name: e.field_name + "_i18n",
|
|
1801
1801
|
id: e.field_name + "_i18n",
|
|
1802
|
-
onInput: c[1] || (c[1] = (
|
|
1802
|
+
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
1803
1803
|
ref_key: "input_translate",
|
|
1804
1804
|
ref: i
|
|
1805
1805
|
}, null, 40, ms),
|
|
@@ -1812,19 +1812,19 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1812
1812
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1813
1813
|
}),
|
|
1814
1814
|
type: e.type,
|
|
1815
|
-
onInput: c[2] || (c[2] = (
|
|
1816
|
-
onKeydown: c[3] || (c[3] = (
|
|
1815
|
+
onInput: c[2] || (c[2] = (h) => l.$emit("update:modelValue", h.target.value)),
|
|
1816
|
+
onKeydown: c[3] || (c[3] = (h) => l.$emit("keydown", h)),
|
|
1817
1817
|
ref_key: "input",
|
|
1818
1818
|
ref: a,
|
|
1819
1819
|
rows: "4"
|
|
1820
1820
|
}, `
|
|
1821
1821
|
`, 42, bs),
|
|
1822
|
-
s("span", ps,
|
|
1823
|
-
s("small", ys,
|
|
1822
|
+
s("span", ps, g(e.error_message), 1),
|
|
1823
|
+
s("small", ys, g(e.description), 1)
|
|
1824
1824
|
], 2))
|
|
1825
1825
|
], 64));
|
|
1826
1826
|
}
|
|
1827
|
-
}, _s = { class: "font-bold ptext-lg dark:text-white" }, vs = ["name", "id"], xs = ["id"], ws = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ks = ["for"], $s = /* @__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), Cs = ["name", "id"], Ss = ["name", "id", "type"], Ds = { class: "gl-span-form-error" }, Os = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
1827
|
+
}, _s = { class: "font-bold ptext-lg dark:text-white" }, vs = ["name", "id"], xs = ["id"], ws = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ks = ["for"], $s = /* @__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), Cs = ["name", "id"], Ss = ["name", "id", "type"], Ds = { class: "gl-span-form-error" }, Os = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Md = {
|
|
1828
1828
|
__name: "GlTinymceTranslate",
|
|
1829
1829
|
props: {
|
|
1830
1830
|
is_required: {
|
|
@@ -1882,7 +1882,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1882
1882
|
},
|
|
1883
1883
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1884
1884
|
setup(e, { expose: t, emit: r }) {
|
|
1885
|
-
const n = e, o = r, a =
|
|
1885
|
+
const n = e, o = r, a = S(null), i = S(null);
|
|
1886
1886
|
return R(() => {
|
|
1887
1887
|
tinymce.init({
|
|
1888
1888
|
selector: "#" + n.field_name,
|
|
@@ -1902,7 +1902,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1902
1902
|
key: 0,
|
|
1903
1903
|
class: b(e.field_name)
|
|
1904
1904
|
}, [
|
|
1905
|
-
s("h3", _s,
|
|
1905
|
+
s("h3", _s, g(e.label_name), 1),
|
|
1906
1906
|
O(s("input", {
|
|
1907
1907
|
type: "hidden",
|
|
1908
1908
|
"data-i18n": "true",
|
|
@@ -1910,17 +1910,17 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1910
1910
|
id: e.field_name + "_i18n",
|
|
1911
1911
|
ref_key: "input_translate",
|
|
1912
1912
|
ref: i,
|
|
1913
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1913
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1914
1914
|
}, null, 8, vs), [
|
|
1915
1915
|
[V, l.inputTranslateValue]
|
|
1916
1916
|
]),
|
|
1917
1917
|
s("p", {
|
|
1918
1918
|
id: e.field_name,
|
|
1919
1919
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1920
|
-
},
|
|
1920
|
+
}, g(e.model_value), 9, xs),
|
|
1921
1921
|
ws
|
|
1922
|
-
], 2)) :
|
|
1923
|
-
e.show ?
|
|
1922
|
+
], 2)) : f("", !0),
|
|
1923
|
+
e.show ? f("", !0) : (d(), u("div", {
|
|
1924
1924
|
key: 1,
|
|
1925
1925
|
class: b(["mb-4", e.field_name])
|
|
1926
1926
|
}, [
|
|
@@ -1931,7 +1931,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1931
1931
|
required: e.is_required
|
|
1932
1932
|
}),
|
|
1933
1933
|
for: e.field_name
|
|
1934
|
-
},
|
|
1934
|
+
}, g(e.label_name), 11, ks),
|
|
1935
1935
|
$s,
|
|
1936
1936
|
s("input", {
|
|
1937
1937
|
class: "mb-4",
|
|
@@ -1939,7 +1939,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1939
1939
|
"data-i18n": "true",
|
|
1940
1940
|
name: e.field_name + "_i18n",
|
|
1941
1941
|
id: e.field_name + "_i18n",
|
|
1942
|
-
onInput: c[1] || (c[1] = (
|
|
1942
|
+
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
1943
1943
|
ref_key: "input_translate",
|
|
1944
1944
|
ref: i
|
|
1945
1945
|
}, null, 40, Cs),
|
|
@@ -1951,19 +1951,19 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1951
1951
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1952
1952
|
}]),
|
|
1953
1953
|
type: e.type,
|
|
1954
|
-
onInput: c[2] || (c[2] = (
|
|
1955
|
-
onKeydown: c[3] || (c[3] = (
|
|
1954
|
+
onInput: c[2] || (c[2] = (h) => l.$emit("update:modelValue", h.target.value)),
|
|
1955
|
+
onKeydown: c[3] || (c[3] = (h) => l.$emit("keydown", h)),
|
|
1956
1956
|
ref_key: "input",
|
|
1957
1957
|
ref: a,
|
|
1958
1958
|
rows: "4"
|
|
1959
1959
|
}, `
|
|
1960
1960
|
`, 42, Ss),
|
|
1961
|
-
s("span", Ds,
|
|
1962
|
-
s("small", Os,
|
|
1961
|
+
s("span", Ds, g(e.error_message), 1),
|
|
1962
|
+
s("small", Os, g(e.description), 1)
|
|
1963
1963
|
], 2))
|
|
1964
1964
|
], 64));
|
|
1965
1965
|
}
|
|
1966
|
-
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"],
|
|
1966
|
+
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"], Ts = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), As = ["for"], Is = /* @__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), Ms = ["name", "id"], Ns = ["required", "name", "id", "type"], Vs = { class: "gl-span-form-error" }, Ls = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Nd = {
|
|
1967
1967
|
__name: "GlTextTranslate",
|
|
1968
1968
|
props: {
|
|
1969
1969
|
is_required: {
|
|
@@ -2021,7 +2021,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2021
2021
|
},
|
|
2022
2022
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
2023
2023
|
setup(e, { expose: t, emit: r }) {
|
|
2024
|
-
const n = e, o = r, a =
|
|
2024
|
+
const n = e, o = r, a = S(null), i = S(null);
|
|
2025
2025
|
return R(() => {
|
|
2026
2026
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
2027
2027
|
model: n.translatable.model,
|
|
@@ -2037,24 +2037,24 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2037
2037
|
key: 0,
|
|
2038
2038
|
class: b(e.field_name)
|
|
2039
2039
|
}, [
|
|
2040
|
-
s("h3", Ps,
|
|
2040
|
+
s("h3", Ps, g(e.label_name), 1),
|
|
2041
2041
|
O(s("input", {
|
|
2042
2042
|
type: "hidden",
|
|
2043
2043
|
"data-i18n": "true",
|
|
2044
2044
|
name: e.field_name + "_i18n",
|
|
2045
2045
|
id: e.field_name + "_i18n",
|
|
2046
2046
|
ref: "input_translate_s",
|
|
2047
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2047
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
2048
2048
|
}, null, 8, Es), [
|
|
2049
2049
|
[V, l.inputTranslateValue]
|
|
2050
2050
|
]),
|
|
2051
2051
|
s("p", {
|
|
2052
2052
|
id: e.field_name,
|
|
2053
2053
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
2054
|
-
},
|
|
2055
|
-
|
|
2056
|
-
], 2)) :
|
|
2057
|
-
e.show ?
|
|
2054
|
+
}, g(e.model_value), 9, js),
|
|
2055
|
+
Ts
|
|
2056
|
+
], 2)) : f("", !0),
|
|
2057
|
+
e.show ? f("", !0) : (d(), u("div", {
|
|
2058
2058
|
key: 1,
|
|
2059
2059
|
class: b(["mb-4", e.field_name])
|
|
2060
2060
|
}, [
|
|
@@ -2065,7 +2065,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2065
2065
|
required: e.is_required
|
|
2066
2066
|
}),
|
|
2067
2067
|
for: e.field_name
|
|
2068
|
-
},
|
|
2068
|
+
}, g(e.label_name), 11, As),
|
|
2069
2069
|
Is,
|
|
2070
2070
|
s("input", {
|
|
2071
2071
|
class: "mb-4",
|
|
@@ -2073,7 +2073,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2073
2073
|
"data-i18n": "true",
|
|
2074
2074
|
name: e.field_name + "_i18n",
|
|
2075
2075
|
id: e.field_name + "_i18n",
|
|
2076
|
-
onInput: c[1] || (c[1] = (
|
|
2076
|
+
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
2077
2077
|
ref_key: "input_translate",
|
|
2078
2078
|
ref: i
|
|
2079
2079
|
}, null, 40, Ms),
|
|
@@ -2086,17 +2086,17 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2086
2086
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2087
2087
|
}),
|
|
2088
2088
|
type: e.type,
|
|
2089
|
-
onInput: c[2] || (c[2] = (
|
|
2090
|
-
onKeydown: c[3] || (c[3] = (
|
|
2089
|
+
onInput: c[2] || (c[2] = (h) => l.$emit("update:modelValue", h.target.value)),
|
|
2090
|
+
onKeydown: c[3] || (c[3] = (h) => l.$emit("keydown", h)),
|
|
2091
2091
|
ref_key: "input",
|
|
2092
2092
|
ref: a
|
|
2093
2093
|
}, null, 42, Ns),
|
|
2094
|
-
s("span", Vs,
|
|
2095
|
-
s("small", Ls,
|
|
2094
|
+
s("span", Vs, g(e.error_message), 1),
|
|
2095
|
+
s("small", Ls, g(e.description), 1)
|
|
2096
2096
|
], 2))
|
|
2097
2097
|
], 64));
|
|
2098
2098
|
}
|
|
2099
|
-
}, Bs = { class: "font-bold ptext-lg dark:text-white" }, Gs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Rs = ["for"], Us = ["required", "name", "id", "type"], qs = { class: "gl-span-form-error" }, zs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2099
|
+
}, Bs = { class: "font-bold ptext-lg dark:text-white" }, Gs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Rs = ["for"], Us = ["required", "name", "id", "type"], qs = { class: "gl-span-form-error" }, zs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Vd = {
|
|
2100
2100
|
__name: "GlTextInput",
|
|
2101
2101
|
props: {
|
|
2102
2102
|
is_required: {
|
|
@@ -2138,7 +2138,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2138
2138
|
},
|
|
2139
2139
|
emits: ["update:modelValue", "keydown"],
|
|
2140
2140
|
setup(e, { expose: t, emit: r }) {
|
|
2141
|
-
const n = e, o = r, a =
|
|
2141
|
+
const n = e, o = r, a = S(null);
|
|
2142
2142
|
R(() => {
|
|
2143
2143
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2144
2144
|
});
|
|
@@ -2155,11 +2155,11 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2155
2155
|
key: 0,
|
|
2156
2156
|
class: b(e.field_name)
|
|
2157
2157
|
}, [
|
|
2158
|
-
s("h3", Bs,
|
|
2159
|
-
s("p", Gs,
|
|
2158
|
+
s("h3", Bs, g(e.label_name), 1),
|
|
2159
|
+
s("p", Gs, g(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
2160
2160
|
Fs
|
|
2161
|
-
], 2)) :
|
|
2162
|
-
e.show ?
|
|
2161
|
+
], 2)) : f("", !0),
|
|
2162
|
+
e.show ? f("", !0) : (d(), u("div", {
|
|
2163
2163
|
key: 1,
|
|
2164
2164
|
class: b(["mb-4", e.field_name])
|
|
2165
2165
|
}, [
|
|
@@ -2170,7 +2170,7 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2170
2170
|
required: e.is_required
|
|
2171
2171
|
}),
|
|
2172
2172
|
for: e.field_name
|
|
2173
|
-
},
|
|
2173
|
+
}, g(e.label_name), 11, Rs),
|
|
2174
2174
|
O(s("input", {
|
|
2175
2175
|
required: e.is_required,
|
|
2176
2176
|
name: e.field_name,
|
|
@@ -2180,27 +2180,27 @@ const Od = /* @__PURE__ */ S(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2180
2180
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2181
2181
|
}),
|
|
2182
2182
|
type: e.type,
|
|
2183
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2184
|
-
onKeydown: c[1] || (c[1] = (
|
|
2183
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.value = h),
|
|
2184
|
+
onKeydown: c[1] || (c[1] = (h) => l.$emit("keydown", h)),
|
|
2185
2185
|
ref_key: "input",
|
|
2186
2186
|
ref: a
|
|
2187
2187
|
}, null, 42, Us), [
|
|
2188
2188
|
[tt, i.value]
|
|
2189
2189
|
]),
|
|
2190
|
-
s("span", qs,
|
|
2191
|
-
s("small", zs,
|
|
2190
|
+
s("span", qs, g(e.error_message), 1),
|
|
2191
|
+
s("small", zs, g(e.description), 1)
|
|
2192
2192
|
], 2))
|
|
2193
2193
|
], 64));
|
|
2194
2194
|
}
|
|
2195
2195
|
}, Hs = {
|
|
2196
2196
|
setup(e, { slots: t }) {
|
|
2197
|
-
const r =
|
|
2197
|
+
const r = S(t.default().map((o) => o.props)), n = S(r.value[0].title);
|
|
2198
2198
|
return rt("selectedTitle", n), {
|
|
2199
2199
|
tabs: r,
|
|
2200
2200
|
selectedTitle: n
|
|
2201
2201
|
};
|
|
2202
2202
|
}
|
|
2203
|
-
}, Zs = { class: "flex flex-wrap" }, Ks = { class: "w-full" }, Ws = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" },
|
|
2203
|
+
}, Zs = { class: "flex flex-wrap" }, Ks = { class: "w-full" }, Ws = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Ys = ["onClick"], Xs = { class: "relative flex flex-col w-full min-w-0 mb-6 break-words bg-white rounded shadow-lg dark:border-strokedark dark:bg-boxdark" }, Js = { class: "flex-auto px-4 py-5" }, Qs = { class: "tab-content tab-space" };
|
|
2204
2204
|
function ea(e, t, r, n, o, a) {
|
|
2205
2205
|
return d(), u(v, null, [
|
|
2206
2206
|
s("div", Zs, [
|
|
@@ -2217,22 +2217,22 @@ function ea(e, t, r, n, o, a) {
|
|
|
2217
2217
|
s("i", {
|
|
2218
2218
|
class: b([i.icon, "mr-1 text-base"])
|
|
2219
2219
|
}, null, 2),
|
|
2220
|
-
w(" " +
|
|
2220
|
+
w(" " + g(i.title), 1)
|
|
2221
2221
|
], 2)
|
|
2222
|
-
], 8,
|
|
2222
|
+
], 8, Ys))), 128))
|
|
2223
2223
|
])
|
|
2224
2224
|
])
|
|
2225
2225
|
]),
|
|
2226
|
-
s("div",
|
|
2226
|
+
s("div", Xs, [
|
|
2227
2227
|
s("div", Js, [
|
|
2228
2228
|
s("div", Qs, [
|
|
2229
|
-
|
|
2229
|
+
A(e.$slots, "default")
|
|
2230
2230
|
])
|
|
2231
2231
|
])
|
|
2232
2232
|
])
|
|
2233
2233
|
], 64);
|
|
2234
2234
|
}
|
|
2235
|
-
const
|
|
2235
|
+
const Ld = /* @__PURE__ */ $(Hs, [["render", ea]]), ta = {
|
|
2236
2236
|
props: ["title"],
|
|
2237
2237
|
setup() {
|
|
2238
2238
|
return {
|
|
@@ -2242,12 +2242,12 @@ const Td = /* @__PURE__ */ S(Hs, [["render", ea]]), ta = {
|
|
|
2242
2242
|
}, ra = { class: "block" };
|
|
2243
2243
|
function sa(e, t, r, n, o, a) {
|
|
2244
2244
|
return O((d(), u("div", ra, [
|
|
2245
|
-
|
|
2245
|
+
A(e.$slots, "default")
|
|
2246
2246
|
], 512)), [
|
|
2247
2247
|
[F, r.title == n.selectedTitle]
|
|
2248
2248
|
]);
|
|
2249
2249
|
}
|
|
2250
|
-
const
|
|
2250
|
+
const Bd = /* @__PURE__ */ $(ta, [["render", sa]]), aa = {
|
|
2251
2251
|
props: {
|
|
2252
2252
|
elements_to_show_prop: {
|
|
2253
2253
|
type: Number,
|
|
@@ -2309,7 +2309,7 @@ const Id = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2309
2309
|
const r = (o) => {
|
|
2310
2310
|
t.style.cursor = "grabbing";
|
|
2311
2311
|
const a = (l) => {
|
|
2312
|
-
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX,
|
|
2312
|
+
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX, h = l.clientY || l.touches && l.touches[0] && l.touches[0].clientY, m = c - e.initialX, y = h - e.initialY;
|
|
2313
2313
|
Math.abs(m) > Math.abs(y) ? (l.preventDefault(), Math.abs(m) >= 70 && (m < 0 ? e.next() : e.prev(), e.initialX = c)) : t.style.cursor = "grab", Math.abs(y) > Math.abs(m) && (t.style.cursor = "grab");
|
|
2314
2314
|
}, i = () => {
|
|
2315
2315
|
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", i), document.removeEventListener("touchend", i), t.style.cursor = "grab";
|
|
@@ -2433,9 +2433,9 @@ const Id = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2433
2433
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2434
2434
|
}, null, -1)), Pa = [
|
|
2435
2435
|
Oa
|
|
2436
|
-
], Ea = ["onClick"], ja = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)),
|
|
2436
|
+
], Ea = ["onClick"], ja = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), Ta = [
|
|
2437
2437
|
ja
|
|
2438
|
-
],
|
|
2438
|
+
], Aa = {
|
|
2439
2439
|
key: 1,
|
|
2440
2440
|
class: "flex justify-between pl-5 pr-5"
|
|
2441
2441
|
}, Ia = ["onClick"], Ma = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), Na = [
|
|
@@ -2483,9 +2483,9 @@ const Id = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2483
2483
|
"stroke-linecap": "round",
|
|
2484
2484
|
"stroke-linejoin": "round",
|
|
2485
2485
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2486
|
-
}, null, -1)),
|
|
2486
|
+
}, null, -1)), Ya = [
|
|
2487
2487
|
Wa
|
|
2488
|
-
],
|
|
2488
|
+
], Xa = {
|
|
2489
2489
|
key: 1,
|
|
2490
2490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2491
2491
|
class: "w-6 h-6",
|
|
@@ -2543,11 +2543,11 @@ function dn(e, t, r, n, o, a) {
|
|
|
2543
2543
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2544
2544
|
onClick: t[0] || (t[0] = (i) => a.prev())
|
|
2545
2545
|
}, [
|
|
2546
|
-
r.direction_property == "ltr" ? (d(), u("svg", ia, ua)) :
|
|
2547
|
-
r.direction_property == "rtl" ? (d(), u("svg", ca, ga)) :
|
|
2546
|
+
r.direction_property == "ltr" ? (d(), u("svg", ia, ua)) : f("", !0),
|
|
2547
|
+
r.direction_property == "rtl" ? (d(), u("svg", ca, ga)) : f("", !0)
|
|
2548
2548
|
])
|
|
2549
2549
|
])
|
|
2550
|
-
])) :
|
|
2550
|
+
])) : f("", !0),
|
|
2551
2551
|
s("div", {
|
|
2552
2552
|
class: b(["overflow-hidden", a.sliderContainerAction()]),
|
|
2553
2553
|
id: "sliderContainer_" + e.Random_string
|
|
@@ -2565,12 +2565,12 @@ function dn(e, t, r, n, o, a) {
|
|
|
2565
2565
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2566
2566
|
onClick: t[1] || (t[1] = N((i) => a.prev(), ["stop"]))
|
|
2567
2567
|
}, [
|
|
2568
|
-
r.direction_property == "ltr" ? (d(), u("svg", pa, _a)) :
|
|
2569
|
-
r.direction_property == "rtl" ? (d(), u("svg", va, wa)) :
|
|
2568
|
+
r.direction_property == "ltr" ? (d(), u("svg", pa, _a)) : f("", !0),
|
|
2569
|
+
r.direction_property == "rtl" ? (d(), u("svg", va, wa)) : f("", !0)
|
|
2570
2570
|
])
|
|
2571
2571
|
])
|
|
2572
|
-
], 2)) :
|
|
2573
|
-
|
|
2572
|
+
], 2)) : f("", !0),
|
|
2573
|
+
A(e.$slots, "default", {}, void 0, !0),
|
|
2574
2574
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2575
2575
|
key: 1,
|
|
2576
2576
|
class: b(["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"])
|
|
@@ -2580,11 +2580,11 @@ function dn(e, t, r, n, o, a) {
|
|
|
2580
2580
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2581
2581
|
onClick: t[2] || (t[2] = N((i) => a.next(), ["stop"]))
|
|
2582
2582
|
}, [
|
|
2583
|
-
r.direction_property == "ltr" ? (d(), u("svg", $a, Sa)) :
|
|
2584
|
-
r.direction_property == "rtl" ? (d(), u("svg", Da, Pa)) :
|
|
2583
|
+
r.direction_property == "ltr" ? (d(), u("svg", $a, Sa)) : f("", !0),
|
|
2584
|
+
r.direction_property == "rtl" ? (d(), u("svg", Da, Pa)) : f("", !0)
|
|
2585
2585
|
])
|
|
2586
2586
|
])
|
|
2587
|
-
], 2)) :
|
|
2587
|
+
], 2)) : f("", !0)
|
|
2588
2588
|
], 8, ma),
|
|
2589
2589
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2590
2590
|
key: 0,
|
|
@@ -2595,9 +2595,9 @@ function dn(e, t, r, n, o, a) {
|
|
|
2595
2595
|
class: b(["gl-dot", { active: e.currentDot == i }]),
|
|
2596
2596
|
key: i,
|
|
2597
2597
|
onClick: (l) => a.setDot(i)
|
|
2598
|
-
},
|
|
2599
|
-
], 2)) :
|
|
2600
|
-
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div",
|
|
2598
|
+
}, Ta, 10, Ea))), 128))
|
|
2599
|
+
], 2)) : f("", !0),
|
|
2600
|
+
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Aa, [
|
|
2601
2601
|
s("div", {
|
|
2602
2602
|
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2603
2603
|
}, [
|
|
@@ -2615,8 +2615,8 @@ function dn(e, t, r, n, o, a) {
|
|
|
2615
2615
|
class: b(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2616
2616
|
onClick: t[3] || (t[3] = (i) => a.prev())
|
|
2617
2617
|
}, [
|
|
2618
|
-
r.direction_property == "ltr" ? (d(), u("svg", Ga, Ra)) :
|
|
2619
|
-
r.direction_property == "rtl" ? (d(), u("svg", Ua, za)) :
|
|
2618
|
+
r.direction_property == "ltr" ? (d(), u("svg", Ga, Ra)) : f("", !0),
|
|
2619
|
+
r.direction_property == "rtl" ? (d(), u("svg", Ua, za)) : f("", !0)
|
|
2620
2620
|
], 2)
|
|
2621
2621
|
])
|
|
2622
2622
|
]),
|
|
@@ -2626,13 +2626,13 @@ function dn(e, t, r, n, o, a) {
|
|
|
2626
2626
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2627
2627
|
onClick: t[4] || (t[4] = (i) => a.next())
|
|
2628
2628
|
}, [
|
|
2629
|
-
r.direction_property == "ltr" ? (d(), u("svg", Ka,
|
|
2630
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2629
|
+
r.direction_property == "ltr" ? (d(), u("svg", Ka, Ya)) : f("", !0),
|
|
2630
|
+
r.direction_property == "rtl" ? (d(), u("svg", Xa, Qa)) : f("", !0)
|
|
2631
2631
|
])
|
|
2632
2632
|
])
|
|
2633
2633
|
])
|
|
2634
|
-
])) :
|
|
2635
|
-
])) :
|
|
2634
|
+
])) : f("", !0)
|
|
2635
|
+
])) : f("", !0)
|
|
2636
2636
|
], 10, ha),
|
|
2637
2637
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", en, [
|
|
2638
2638
|
s("div", tn, [
|
|
@@ -2640,15 +2640,15 @@ function dn(e, t, r, n, o, a) {
|
|
|
2640
2640
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2641
2641
|
onClick: t[5] || (t[5] = (i) => a.next())
|
|
2642
2642
|
}, [
|
|
2643
|
-
r.direction_property == "ltr" ? (d(), u("svg", rn, an)) :
|
|
2644
|
-
r.direction_property == "rtl" ? (d(), u("svg", nn, ln)) :
|
|
2643
|
+
r.direction_property == "ltr" ? (d(), u("svg", rn, an)) : f("", !0),
|
|
2644
|
+
r.direction_property == "rtl" ? (d(), u("svg", nn, ln)) : f("", !0)
|
|
2645
2645
|
])
|
|
2646
2646
|
])
|
|
2647
|
-
])) :
|
|
2647
|
+
])) : f("", !0)
|
|
2648
2648
|
], 10, na)
|
|
2649
2649
|
]);
|
|
2650
2650
|
}
|
|
2651
|
-
const
|
|
2651
|
+
const Gd = /* @__PURE__ */ $(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9"]]), un = {
|
|
2652
2652
|
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",
|
|
2653
2653
|
tabindex: "-1",
|
|
2654
2654
|
"aria-hidden": "true"
|
|
@@ -2668,7 +2668,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2668
2668
|
])
|
|
2669
2669
|
], -1), mn = [
|
|
2670
2670
|
hn
|
|
2671
|
-
], bn = { 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" },
|
|
2671
|
+
], bn = { 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" }, Fd = {
|
|
2672
2672
|
__name: "GlModal",
|
|
2673
2673
|
props: {
|
|
2674
2674
|
is_open: {
|
|
@@ -2697,7 +2697,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2697
2697
|
}, i = () => {
|
|
2698
2698
|
n("closeModal"), a();
|
|
2699
2699
|
};
|
|
2700
|
-
return
|
|
2700
|
+
return Y(
|
|
2701
2701
|
() => r.is_open,
|
|
2702
2702
|
(l, c) => {
|
|
2703
2703
|
l ? o() : a();
|
|
@@ -2709,7 +2709,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2709
2709
|
}, [
|
|
2710
2710
|
s("div", cn, [
|
|
2711
2711
|
s("div", fn, [
|
|
2712
|
-
s("h5", gn,
|
|
2712
|
+
s("h5", gn, g(e.title), 1),
|
|
2713
2713
|
s("button", {
|
|
2714
2714
|
type: "button",
|
|
2715
2715
|
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",
|
|
@@ -2720,10 +2720,10 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2720
2720
|
s("div", {
|
|
2721
2721
|
class: b(["relative overflow-y-auto", e.bodyClass])
|
|
2722
2722
|
}, [
|
|
2723
|
-
|
|
2723
|
+
A(l.$slots, "body")
|
|
2724
2724
|
], 2),
|
|
2725
2725
|
s("div", bn, [
|
|
2726
|
-
|
|
2726
|
+
A(l.$slots, "buttons"),
|
|
2727
2727
|
s("button", {
|
|
2728
2728
|
onClick: i,
|
|
2729
2729
|
type: "button",
|
|
@@ -2736,7 +2736,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2736
2736
|
[F, e.is_open]
|
|
2737
2737
|
]);
|
|
2738
2738
|
}
|
|
2739
|
-
}, pn = { class: "mb-4" }, yn = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, _n = { class: "relative inline-flex items-center cursor-pointer" }, vn = ["name", "id", "checked"], xn = /* @__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), wn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), kn = { 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" }, $n = { class: "relative inline-flex items-center cursor-pointer" }, Cn = ["name", "id"], Sn = /* @__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), Dn = { class: "gl-span-form-error" }, On = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2739
|
+
}, pn = { class: "mb-4" }, yn = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, _n = { class: "relative inline-flex items-center cursor-pointer" }, vn = ["name", "id", "checked"], xn = /* @__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), wn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), kn = { 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" }, $n = { class: "relative inline-flex items-center cursor-pointer" }, Cn = ["name", "id"], Sn = /* @__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), Dn = { class: "gl-span-form-error" }, On = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Rd = {
|
|
2740
2740
|
__name: "GlToggleBox",
|
|
2741
2741
|
props: {
|
|
2742
2742
|
is_required: {
|
|
@@ -2778,7 +2778,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2778
2778
|
},
|
|
2779
2779
|
emits: ["update:modelValue"],
|
|
2780
2780
|
setup(e, { emit: t }) {
|
|
2781
|
-
const r = e, n = t, o =
|
|
2781
|
+
const r = e, n = t, o = S(null), a = G({
|
|
2782
2782
|
get() {
|
|
2783
2783
|
return r.modelValue;
|
|
2784
2784
|
},
|
|
@@ -2793,7 +2793,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2793
2793
|
}, [
|
|
2794
2794
|
s("div", pn, [
|
|
2795
2795
|
s("li", yn, [
|
|
2796
|
-
w(
|
|
2796
|
+
w(g(e.label_name) + " ", 1),
|
|
2797
2797
|
s("label", _n, [
|
|
2798
2798
|
s("input", {
|
|
2799
2799
|
type: "checkbox",
|
|
@@ -2812,13 +2812,13 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2812
2812
|
])
|
|
2813
2813
|
]),
|
|
2814
2814
|
wn
|
|
2815
|
-
], 2)) :
|
|
2816
|
-
e.show ?
|
|
2815
|
+
], 2)) : f("", !0),
|
|
2816
|
+
e.show ? f("", !0) : (d(), u("div", {
|
|
2817
2817
|
key: 1,
|
|
2818
2818
|
class: b(["mb-4", e.field_name])
|
|
2819
2819
|
}, [
|
|
2820
2820
|
s("li", kn, [
|
|
2821
|
-
w(
|
|
2821
|
+
w(g(e.label_name) + " ", 1),
|
|
2822
2822
|
s("label", $n, [
|
|
2823
2823
|
O(s("input", {
|
|
2824
2824
|
type: "checkbox",
|
|
@@ -2836,12 +2836,12 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2836
2836
|
Sn
|
|
2837
2837
|
])
|
|
2838
2838
|
]),
|
|
2839
|
-
s("span", Dn,
|
|
2840
|
-
s("small", On,
|
|
2839
|
+
s("span", Dn, g(e.error_message), 1),
|
|
2840
|
+
s("small", On, g(e.description), 1)
|
|
2841
2841
|
], 2))
|
|
2842
2842
|
], 64));
|
|
2843
2843
|
}
|
|
2844
|
-
}, Pn = { class: "font-bold ptext-lg dark:text-white" }, En = { class: "mt-3 mb-4" }, jn = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" },
|
|
2844
|
+
}, Pn = { class: "font-bold ptext-lg dark:text-white" }, En = { class: "mt-3 mb-4" }, jn = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, Tn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), An = ["name", "id", "value"], In = {
|
|
2845
2845
|
key: 0,
|
|
2846
2846
|
class: "dropdown"
|
|
2847
2847
|
}, Mn = { 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" }, Nn = { class: "relative showOptions" }, Vn = ["value", "placeholder"], Ln = { 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]" }, Bn = { class: "p-1" }, Gn = /* @__PURE__ */ s("label", {
|
|
@@ -2878,7 +2878,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2878
2878
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
2879
2879
|
}, null, -1), Wn = [
|
|
2880
2880
|
Kn
|
|
2881
|
-
],
|
|
2881
|
+
], Yn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Xn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Ud = {
|
|
2882
2882
|
__name: "GlDropdown",
|
|
2883
2883
|
props: {
|
|
2884
2884
|
modelValue: {
|
|
@@ -2938,9 +2938,9 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2938
2938
|
},
|
|
2939
2939
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2940
2940
|
setup(e, { emit: t }) {
|
|
2941
|
-
const r = e, n = t, o =
|
|
2941
|
+
const r = e, n = t, o = S(null), a = S({}), i = S(0), l = S(!1), c = S(""), h = S("");
|
|
2942
2942
|
R(() => {
|
|
2943
|
-
|
|
2943
|
+
h.value = L(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2944
2944
|
ze(p);
|
|
2945
2945
|
}), document.addEventListener("keypress", (p) => {
|
|
2946
2946
|
p.key === "Enter" && p.target.form && p.preventDefault();
|
|
@@ -2954,7 +2954,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2954
2954
|
}
|
|
2955
2955
|
return p;
|
|
2956
2956
|
});
|
|
2957
|
-
function
|
|
2957
|
+
function C(p) {
|
|
2958
2958
|
if ([
|
|
2959
2959
|
"ArrowLeft",
|
|
2960
2960
|
"ArrowUp",
|
|
@@ -2981,14 +2981,14 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2981
2981
|
return p !== null && typeof p == "object" && Object.keys(p).length > 0;
|
|
2982
2982
|
}
|
|
2983
2983
|
function ze(p) {
|
|
2984
|
-
p.target.id != r.field_name + "search" +
|
|
2984
|
+
p.target.id != r.field_name + "search" + h.value && p.target.id != r.field_name && !p.target.classList.contains("showOptions") && (pe(), i.value = 0);
|
|
2985
2985
|
}
|
|
2986
2986
|
function me(p) {
|
|
2987
|
-
const D = `${p}${
|
|
2987
|
+
const D = `${p}${h.value}`, E = document.getElementById(D);
|
|
2988
2988
|
E && E.scrollIntoView();
|
|
2989
2989
|
}
|
|
2990
2990
|
function He(p) {
|
|
2991
|
-
const D = `${p}${
|
|
2991
|
+
const D = `${p}${h.value}`, E = document.getElementById(D);
|
|
2992
2992
|
E && E.click();
|
|
2993
2993
|
}
|
|
2994
2994
|
function Ze(p) {
|
|
@@ -3017,20 +3017,20 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3017
3017
|
function re() {
|
|
3018
3018
|
r.show || (c.value = "", l.value = !0, ot(() => {
|
|
3019
3019
|
var p = document.getElementById(
|
|
3020
|
-
`${r.field_name}search${
|
|
3020
|
+
`${r.field_name}search${h.value}`
|
|
3021
3021
|
);
|
|
3022
3022
|
p && p.focus();
|
|
3023
3023
|
}));
|
|
3024
3024
|
}
|
|
3025
|
-
function
|
|
3025
|
+
function Ye() {
|
|
3026
3026
|
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), re());
|
|
3027
3027
|
}
|
|
3028
3028
|
function pe() {
|
|
3029
3029
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), l.value = !1;
|
|
3030
3030
|
}
|
|
3031
|
-
return
|
|
3031
|
+
return Y(c, () => {
|
|
3032
3032
|
x.value.length === 0 && (a.value = {});
|
|
3033
|
-
}),
|
|
3033
|
+
}), Y(a, (p) => {
|
|
3034
3034
|
te(p) && n("update:modelValue", p.id);
|
|
3035
3035
|
}), (p, D) => {
|
|
3036
3036
|
var E, B, ye;
|
|
@@ -3039,13 +3039,13 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3039
3039
|
key: 0,
|
|
3040
3040
|
class: b(e.field_name)
|
|
3041
3041
|
}, [
|
|
3042
|
-
s("h3", Pn,
|
|
3042
|
+
s("h3", Pn, g(e.label_name), 1),
|
|
3043
3043
|
s("p", En, [
|
|
3044
|
-
s("span", jn,
|
|
3044
|
+
s("span", jn, g((E = y.value) == null ? void 0 : E.name), 1)
|
|
3045
3045
|
]),
|
|
3046
|
-
|
|
3047
|
-
], 2)) :
|
|
3048
|
-
e.show ?
|
|
3046
|
+
Tn
|
|
3047
|
+
], 2)) : f("", !0),
|
|
3048
|
+
e.show ? f("", !0) : (d(), u("div", {
|
|
3049
3049
|
key: 1,
|
|
3050
3050
|
class: b(["mb-4", e.field_name])
|
|
3051
3051
|
}, [
|
|
@@ -3054,7 +3054,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3054
3054
|
name: e.field_name,
|
|
3055
3055
|
id: e.field_name,
|
|
3056
3056
|
value: (B = y.value) == null ? void 0 : B.id
|
|
3057
|
-
}, null, 8,
|
|
3057
|
+
}, null, 8, An),
|
|
3058
3058
|
e.options ? (d(), u("div", In, [
|
|
3059
3059
|
e.label_name ? (d(), u("label", {
|
|
3060
3060
|
key: 0,
|
|
@@ -3063,7 +3063,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3063
3063
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3064
3064
|
required: e.is_required
|
|
3065
3065
|
})
|
|
3066
|
-
},
|
|
3066
|
+
}, g(e.label_name), 3)) : f("", !0),
|
|
3067
3067
|
s("div", Mn, [
|
|
3068
3068
|
s("div", Nn, [
|
|
3069
3069
|
s("input", {
|
|
@@ -3072,21 +3072,21 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3072
3072
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3073
3073
|
}, "pl-8 pr-2 showOptions"]),
|
|
3074
3074
|
ref: e.field_name,
|
|
3075
|
-
onClick: D[0] || (D[0] = (
|
|
3075
|
+
onClick: D[0] || (D[0] = (T) => re()),
|
|
3076
3076
|
value: (ye = y.value) == null ? void 0 : ye.name,
|
|
3077
3077
|
placeholder: e.placeholder,
|
|
3078
3078
|
autocomplete: "off",
|
|
3079
3079
|
readonly: ""
|
|
3080
3080
|
}, null, 10, Vn),
|
|
3081
3081
|
O(s("i", {
|
|
3082
|
-
onClick: D[1] || (D[1] = N((
|
|
3082
|
+
onClick: D[1] || (D[1] = N((T) => Ye(), ["stop"])),
|
|
3083
3083
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3084
3084
|
style: { top: "13px" }
|
|
3085
3085
|
}, null, 512), [
|
|
3086
3086
|
[F, te(y.value) && e.has_cancel]
|
|
3087
3087
|
]),
|
|
3088
3088
|
s("i", {
|
|
3089
|
-
onClick: D[2] || (D[2] = (
|
|
3089
|
+
onClick: D[2] || (D[2] = (T) => !l.value && re()),
|
|
3090
3090
|
class: b([l.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"]),
|
|
3091
3091
|
style: { top: "11px" }
|
|
3092
3092
|
}, null, 2)
|
|
@@ -3098,11 +3098,11 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3098
3098
|
Rn,
|
|
3099
3099
|
O(s("input", {
|
|
3100
3100
|
type: "search",
|
|
3101
|
-
"onUpdate:modelValue": D[3] || (D[3] = (
|
|
3101
|
+
"onUpdate:modelValue": D[3] || (D[3] = (T) => c.value = T),
|
|
3102
3102
|
ref: o.value,
|
|
3103
|
-
id: `${e.field_name}search${
|
|
3104
|
-
onKeydown:
|
|
3105
|
-
onBlur: D[4] || (D[4] = (
|
|
3103
|
+
id: `${e.field_name}search${h.value}`,
|
|
3104
|
+
onKeydown: C,
|
|
3105
|
+
onBlur: D[4] || (D[4] = (T) => pe()),
|
|
3106
3106
|
autocomplete: "off",
|
|
3107
3107
|
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",
|
|
3108
3108
|
placeholder: "Search ..."
|
|
@@ -3112,18 +3112,18 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3112
3112
|
])
|
|
3113
3113
|
]),
|
|
3114
3114
|
s("div", qn, [
|
|
3115
|
-
(d(!0), u(v, null, k(x.value, (
|
|
3115
|
+
(d(!0), u(v, null, k(x.value, (T, se) => {
|
|
3116
3116
|
var _e;
|
|
3117
3117
|
return d(), u("div", {
|
|
3118
3118
|
class: b(["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", se + 1 == i.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3119
|
-
onClick: (
|
|
3120
|
-
onMousedown: (
|
|
3119
|
+
onClick: (Xe) => be(T),
|
|
3120
|
+
onMousedown: (Xe) => be(T),
|
|
3121
3121
|
key: se,
|
|
3122
|
-
id: `${se + 1}${
|
|
3122
|
+
id: `${se + 1}${h.value}`
|
|
3123
3123
|
}, [
|
|
3124
3124
|
s("div", Hn, [
|
|
3125
|
-
((_e = y.value) == null ? void 0 : _e.id) ===
|
|
3126
|
-
s("span", null,
|
|
3125
|
+
((_e = y.value) == null ? void 0 : _e.id) === T.id ? (d(), u("svg", Zn, Wn)) : f("", !0),
|
|
3126
|
+
s("span", null, g(T.name || T.id || "-"), 1)
|
|
3127
3127
|
])
|
|
3128
3128
|
], 42, zn);
|
|
3129
3129
|
}), 128))
|
|
@@ -3132,14 +3132,14 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3132
3132
|
[F, l.value]
|
|
3133
3133
|
])
|
|
3134
3134
|
])
|
|
3135
|
-
])) :
|
|
3136
|
-
s("span",
|
|
3137
|
-
s("small",
|
|
3135
|
+
])) : f("", !0),
|
|
3136
|
+
s("span", Yn, g(e.error_message), 1),
|
|
3137
|
+
s("small", Xn, g(e.description), 1)
|
|
3138
3138
|
], 2))
|
|
3139
3139
|
], 64);
|
|
3140
3140
|
};
|
|
3141
3141
|
}
|
|
3142
|
-
}, Jn = { class: "font-bold ptext-lg dark:text-white" }, Qn = ["id"], eo = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), to = ["for"], ro = ["required", "name", "id", "type", "placeholder"], so = { class: "gl-span-form-error" }, ao = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
3142
|
+
}, Jn = { class: "font-bold ptext-lg dark:text-white" }, Qn = ["id"], eo = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), to = ["for"], ro = ["required", "name", "id", "type", "placeholder"], so = { class: "gl-span-form-error" }, ao = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, qd = {
|
|
3143
3143
|
__name: "GlTextarea",
|
|
3144
3144
|
props: {
|
|
3145
3145
|
is_required: {
|
|
@@ -3185,7 +3185,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3185
3185
|
},
|
|
3186
3186
|
emits: ["update:modelValue", "keydown"],
|
|
3187
3187
|
setup(e, { expose: t, emit: r }) {
|
|
3188
|
-
const n = e, o = r, a =
|
|
3188
|
+
const n = e, o = r, a = S(null);
|
|
3189
3189
|
return R(() => {
|
|
3190
3190
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.modelValue != "" && (o("update:modelValue", n.modelValue), a.value.value = n.modelValue);
|
|
3191
3191
|
}), t({ focus: () => a.value.focus() }), (i, l) => (d(), u(v, null, [
|
|
@@ -3193,14 +3193,14 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3193
3193
|
key: 0,
|
|
3194
3194
|
class: b(e.field_name)
|
|
3195
3195
|
}, [
|
|
3196
|
-
s("h3", Jn,
|
|
3196
|
+
s("h3", Jn, g(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
|
+
}, g(e.model_value), 9, Qn),
|
|
3201
3201
|
eo
|
|
3202
|
-
], 2)) :
|
|
3203
|
-
e.show ?
|
|
3202
|
+
], 2)) : f("", !0),
|
|
3203
|
+
e.show ? f("", !0) : (d(), u("div", {
|
|
3204
3204
|
key: 1,
|
|
3205
3205
|
class: b(["mb-4", e.field_name])
|
|
3206
3206
|
}, [
|
|
@@ -3211,7 +3211,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3211
3211
|
required: e.is_required
|
|
3212
3212
|
}),
|
|
3213
3213
|
for: e.field_name
|
|
3214
|
-
},
|
|
3214
|
+
}, g(e.label_name), 11, to),
|
|
3215
3215
|
s("textarea", {
|
|
3216
3216
|
required: e.is_required,
|
|
3217
3217
|
name: e.field_name,
|
|
@@ -3227,8 +3227,8 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3227
3227
|
rows: "4",
|
|
3228
3228
|
placeholder: e.place_holder
|
|
3229
3229
|
}, null, 42, ro),
|
|
3230
|
-
s("span", so,
|
|
3231
|
-
s("small", ao,
|
|
3230
|
+
s("span", so, g(e.error_message), 1),
|
|
3231
|
+
s("small", ao, g(e.description), 1)
|
|
3232
3232
|
], 2))
|
|
3233
3233
|
], 64));
|
|
3234
3234
|
}
|
|
@@ -3286,8 +3286,8 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3286
3286
|
return this.lastPage;
|
|
3287
3287
|
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r, o = e + r + 1, a = [], i = [], l, c = 1; c <= t; c++)
|
|
3288
3288
|
(c === 1 || c === t || c >= n && c < o) && a.push(c);
|
|
3289
|
-
return a.forEach(function(
|
|
3290
|
-
l && (
|
|
3289
|
+
return a.forEach(function(h) {
|
|
3290
|
+
l && (h - l === 2 ? i.push(l + 1) : h - l !== 1 && i.push("...")), i.push(h), l = h;
|
|
3291
3291
|
}), i;
|
|
3292
3292
|
}
|
|
3293
3293
|
},
|
|
@@ -3411,7 +3411,7 @@ const Md = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3411
3411
|
})
|
|
3412
3412
|
], -1);
|
|
3413
3413
|
function vo(e, t, r, n, o, a) {
|
|
3414
|
-
const i =
|
|
3414
|
+
const i = X("RenderlessPagination");
|
|
3415
3415
|
return d(), K(i, {
|
|
3416
3416
|
data: r.data,
|
|
3417
3417
|
limit: r.limit,
|
|
@@ -3421,13 +3421,13 @@ function vo(e, t, r, n, o, a) {
|
|
|
3421
3421
|
s("div", lo, [
|
|
3422
3422
|
l.computed.total > l.computed.perPage ? (d(), u("span", io, [
|
|
3423
3423
|
w(" Showing "),
|
|
3424
|
-
s("span", uo,
|
|
3424
|
+
s("span", uo, g(l.computed.from), 1),
|
|
3425
3425
|
w(" to "),
|
|
3426
|
-
s("span", co,
|
|
3426
|
+
s("span", co, g(l.computed.to), 1),
|
|
3427
3427
|
w(" of "),
|
|
3428
|
-
s("span", fo,
|
|
3428
|
+
s("span", fo, g(l.computed.total), 1),
|
|
3429
3429
|
w(" Entries ")
|
|
3430
|
-
])) :
|
|
3430
|
+
])) : f("", !0),
|
|
3431
3431
|
l.computed.total > l.computed.perPage ? (d(), u("ul", W({ key: 1 }, e.$attrs, {
|
|
3432
3432
|
class: ["flex items-center h-8 -space-x-px text-sm", {
|
|
3433
3433
|
"pagination-sm": r.size == "small",
|
|
@@ -3446,15 +3446,15 @@ function vo(e, t, r, n, o, a) {
|
|
|
3446
3446
|
"aria-label": "Previous",
|
|
3447
3447
|
tabindex: !l.computed.prevPageUrl && -1
|
|
3448
3448
|
}, ae(l.prevButtonEvents, !0)), [
|
|
3449
|
-
|
|
3449
|
+
A(e.$slots, "prev-nav", {}, () => [
|
|
3450
3450
|
ho,
|
|
3451
3451
|
mo
|
|
3452
3452
|
])
|
|
3453
3453
|
], 16, go)
|
|
3454
|
-
], 2)) :
|
|
3455
|
-
(d(!0), u(v, null, k(l.computed.pageRange, (c,
|
|
3454
|
+
], 2)) : f("", !0),
|
|
3455
|
+
(d(!0), u(v, null, k(l.computed.pageRange, (c, h) => (d(), u("li", {
|
|
3456
3456
|
class: b(["", { active: c == l.computed.currentPage }]),
|
|
3457
|
-
key:
|
|
3457
|
+
key: h
|
|
3458
3458
|
}, [
|
|
3459
3459
|
s("a", W({
|
|
3460
3460
|
class: "",
|
|
@@ -3462,7 +3462,7 @@ function vo(e, t, r, n, o, a) {
|
|
|
3462
3462
|
}, ae(l.pageButtonEvents(c), !0), {
|
|
3463
3463
|
"aria-current": c == l.computed.currentPage ? "page" : null,
|
|
3464
3464
|
class: c == l.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
|
+
}), g(c), 17, bo)
|
|
3466
3466
|
], 2))), 128)),
|
|
3467
3467
|
l.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3468
3468
|
key: 1,
|
|
@@ -3474,19 +3474,19 @@ function vo(e, t, r, n, o, a) {
|
|
|
3474
3474
|
"aria-label": "Next",
|
|
3475
3475
|
tabindex: !l.computed.nextPageUrl && -1
|
|
3476
3476
|
}, ae(l.nextButtonEvents, !0)), [
|
|
3477
|
-
|
|
3477
|
+
A(e.$slots, "next-nav", {}, () => [
|
|
3478
3478
|
yo,
|
|
3479
3479
|
_o
|
|
3480
3480
|
])
|
|
3481
3481
|
], 16, po)
|
|
3482
|
-
], 2)) :
|
|
3483
|
-
], 16)) :
|
|
3482
|
+
], 2)) : f("", !0)
|
|
3483
|
+
], 16)) : f("", !0)
|
|
3484
3484
|
])
|
|
3485
3485
|
]),
|
|
3486
3486
|
_: 3
|
|
3487
3487
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3488
3488
|
}
|
|
3489
|
-
const xo = /* @__PURE__ */
|
|
3489
|
+
const xo = /* @__PURE__ */ $(oo, [["render", vo]]), wo = {
|
|
3490
3490
|
components: { TailwindPagination: xo },
|
|
3491
3491
|
props: {
|
|
3492
3492
|
data: Array,
|
|
@@ -3579,7 +3579,7 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3579
3579
|
"clip-rule": "evenodd"
|
|
3580
3580
|
})
|
|
3581
3581
|
])
|
|
3582
|
-
], -1),
|
|
3582
|
+
], -1), To = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Ao = { 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" }, Io = { class: "hidden text-sm font-normal text-center text-gray-500 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-200" }, Mo = ["onClick"], No = {
|
|
3583
3583
|
key: 0,
|
|
3584
3584
|
class: "ml-2"
|
|
3585
3585
|
}, Vo = {
|
|
@@ -3632,7 +3632,7 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3632
3632
|
Fo
|
|
3633
3633
|
], Uo = ["data-label"], qo = { class: "overflow-auto max-h-40" }, zo = { 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" };
|
|
3634
3634
|
function Ho(e, t, r, n, o, a) {
|
|
3635
|
-
const i =
|
|
3635
|
+
const i = X("dropdown"), l = X("TailwindPagination");
|
|
3636
3636
|
return d(), u("div", ko, [
|
|
3637
3637
|
s("div", $o, [
|
|
3638
3638
|
s("div", Co, [
|
|
@@ -3667,19 +3667,19 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3667
3667
|
])
|
|
3668
3668
|
])
|
|
3669
3669
|
]),
|
|
3670
|
-
s("div",
|
|
3671
|
-
s("table",
|
|
3670
|
+
s("div", To, [
|
|
3671
|
+
s("table", Ao, [
|
|
3672
3672
|
s("thead", Io, [
|
|
3673
3673
|
s("tr", null, [
|
|
3674
|
-
(d(!0), u(v, null, k(r.columns, (c,
|
|
3675
|
-
key:
|
|
3674
|
+
(d(!0), u(v, null, k(r.columns, (c, h) => (d(), u("th", {
|
|
3675
|
+
key: h,
|
|
3676
3676
|
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3677
3677
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3678
3678
|
}, [
|
|
3679
|
-
w(
|
|
3679
|
+
w(g(c.field_label) + " ", 1),
|
|
3680
3680
|
o.sortField === c.field_name ? (d(), u("span", No, [
|
|
3681
3681
|
o.sortOrder === "asc" ? (d(), u("i", Vo)) : (d(), u("i", Lo))
|
|
3682
|
-
])) :
|
|
3682
|
+
])) : f("", !0)
|
|
3683
3683
|
], 8, Mo))), 128))
|
|
3684
3684
|
])
|
|
3685
3685
|
]),
|
|
@@ -3688,9 +3688,9 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3688
3688
|
s("td", {
|
|
3689
3689
|
colspan: r.columns.length
|
|
3690
3690
|
}, Ro, 8, Go)
|
|
3691
|
-
])) :
|
|
3692
|
-
o.isLoading ?
|
|
3693
|
-
key:
|
|
3691
|
+
])) : f("", !0),
|
|
3692
|
+
o.isLoading ? f("", !0) : (d(!0), u(v, { key: 1 }, k(o.itemLists.data, (c, h) => (d(), u("tr", {
|
|
3693
|
+
key: h,
|
|
3694
3694
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
3695
3695
|
}, [
|
|
3696
3696
|
(d(!0), u(v, null, k(r.columns, (m, y) => (d(), u("td", {
|
|
@@ -3707,7 +3707,7 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3707
3707
|
tdProps: m.tdProps,
|
|
3708
3708
|
onDeleteAction: t[3] || (t[3] = (x) => a.GetItemLists())
|
|
3709
3709
|
}, null, 40, ["row", "field", "xprops", "tdProps"])) : (d(), u(v, { key: 1 }, [
|
|
3710
|
-
w(
|
|
3710
|
+
w(g(c[m.field_name]), 1)
|
|
3711
3711
|
], 64))
|
|
3712
3712
|
])
|
|
3713
3713
|
], 8, Uo))), 128))
|
|
@@ -3727,7 +3727,7 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3727
3727
|
])
|
|
3728
3728
|
]);
|
|
3729
3729
|
}
|
|
3730
|
-
const
|
|
3730
|
+
const zd = /* @__PURE__ */ $(wo, [["render", Ho]]), Zo = {
|
|
3731
3731
|
components: {},
|
|
3732
3732
|
props: {
|
|
3733
3733
|
data: Array,
|
|
@@ -3824,7 +3824,7 @@ const Gd = /* @__PURE__ */ S(wo, [["render", Ho]]), Zo = {
|
|
|
3824
3824
|
mounted() {
|
|
3825
3825
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3826
3826
|
}
|
|
3827
|
-
}, Ko = { class: "p-2" }, Wo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" },
|
|
3827
|
+
}, Ko = { class: "p-2" }, Wo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Yo = { class: "flex items-center gap-2" }, Xo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Jo = { style: { "margin-top": "9px" } }, Qo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), el = /* @__PURE__ */ s("label", {
|
|
3828
3828
|
for: "table-search",
|
|
3829
3829
|
class: "sr-only"
|
|
3830
3830
|
}, "Search", -1), tl = { class: "relative" }, rl = /* @__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" }, [
|
|
@@ -3880,11 +3880,11 @@ const Gd = /* @__PURE__ */ S(wo, [["render", Ho]]), Zo = {
|
|
|
3880
3880
|
Pl
|
|
3881
3881
|
];
|
|
3882
3882
|
function jl(e, t, r, n, o, a) {
|
|
3883
|
-
const i =
|
|
3883
|
+
const i = X("dropdown");
|
|
3884
3884
|
return d(), u("div", Ko, [
|
|
3885
3885
|
s("div", Wo, [
|
|
3886
|
-
s("div",
|
|
3887
|
-
|
|
3886
|
+
s("div", Yo, [
|
|
3887
|
+
Xo,
|
|
3888
3888
|
s("div", Jo, [
|
|
3889
3889
|
Z(i, {
|
|
3890
3890
|
has_cancel: !1,
|
|
@@ -3920,11 +3920,11 @@ function jl(e, t, r, n, o, a) {
|
|
|
3920
3920
|
s("tr", null, [
|
|
3921
3921
|
(d(!0), u(v, null, k(r.columns, (l, c) => (d(), u("th", {
|
|
3922
3922
|
key: c,
|
|
3923
|
-
onClick: (
|
|
3923
|
+
onClick: (h) => a.sort(l),
|
|
3924
3924
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3925
3925
|
}, [
|
|
3926
|
-
w(
|
|
3927
|
-
o.sortKey === l ? (d(), u("span", ll,
|
|
3926
|
+
w(g(l) + " ", 1),
|
|
3927
|
+
o.sortKey === l ? (d(), u("span", ll, g(o.sortOrder === 1 ? "▲" : "▼"), 1)) : f("", !0)
|
|
3928
3928
|
], 8, ol))), 128))
|
|
3929
3929
|
])
|
|
3930
3930
|
]),
|
|
@@ -3933,9 +3933,9 @@ function jl(e, t, r, n, o, a) {
|
|
|
3933
3933
|
key: c,
|
|
3934
3934
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3935
3935
|
}, [
|
|
3936
|
-
(d(!0), u(v, null, k(r.columns, (
|
|
3936
|
+
(d(!0), u(v, null, k(r.columns, (h, m) => (d(), u("td", {
|
|
3937
3937
|
key: m,
|
|
3938
|
-
"data-label":
|
|
3938
|
+
"data-label": h,
|
|
3939
3939
|
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"
|
|
3940
3940
|
}, [
|
|
3941
3941
|
s("p", {
|
|
@@ -3966,11 +3966,11 @@ function jl(e, t, r, n, o, a) {
|
|
|
3966
3966
|
s("div", null, [
|
|
3967
3967
|
s("p", ml, [
|
|
3968
3968
|
w(" Showing "),
|
|
3969
|
-
s("span", bl,
|
|
3969
|
+
s("span", bl, g(a.firstItemIndex), 1),
|
|
3970
3970
|
w(" to "),
|
|
3971
|
-
s("span", pl,
|
|
3971
|
+
s("span", pl, g(a.lastItemIndex), 1),
|
|
3972
3972
|
w(" of "),
|
|
3973
|
-
s("span", yl,
|
|
3973
|
+
s("span", yl, g(a.filteredData.length), 1),
|
|
3974
3974
|
w(" entries ")
|
|
3975
3975
|
])
|
|
3976
3976
|
]),
|
|
@@ -3992,7 +3992,7 @@ function jl(e, t, r, n, o, a) {
|
|
|
3992
3992
|
href: "#",
|
|
3993
3993
|
onClick: (c) => a.goToPage(l),
|
|
3994
3994
|
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"
|
|
3995
|
-
},
|
|
3995
|
+
}, g(l), 9, Cl)) : f("", !0)
|
|
3996
3996
|
]),
|
|
3997
3997
|
s("li", null, [
|
|
3998
3998
|
o.currentPage === l ? (d(), u("a", {
|
|
@@ -4001,7 +4001,7 @@ function jl(e, t, r, n, o, a) {
|
|
|
4001
4001
|
onClick: (c) => a.goToPage(l),
|
|
4002
4002
|
"aria-current": "page",
|
|
4003
4003
|
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"
|
|
4004
|
-
},
|
|
4004
|
+
}, g(l), 9, Sl)) : f("", !0)
|
|
4005
4005
|
])
|
|
4006
4006
|
], 64))), 128)),
|
|
4007
4007
|
s("li", null, [
|
|
@@ -4019,10 +4019,10 @@ function jl(e, t, r, n, o, a) {
|
|
|
4019
4019
|
])
|
|
4020
4020
|
]);
|
|
4021
4021
|
}
|
|
4022
|
-
const
|
|
4022
|
+
const Hd = /* @__PURE__ */ $(Zo, [["render", jl]]), Tl = {
|
|
4023
4023
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
4024
4024
|
role: "alert"
|
|
4025
|
-
},
|
|
4025
|
+
}, Al = {
|
|
4026
4026
|
key: 0,
|
|
4027
4027
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"
|
|
4028
4028
|
}, Il = /* @__PURE__ */ s("svg", {
|
|
@@ -4099,11 +4099,11 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4099
4099
|
setTimeout(() => n("remove"), r.duration);
|
|
4100
4100
|
});
|
|
4101
4101
|
const n = t;
|
|
4102
|
-
return (o, a) => (d(), u("div",
|
|
4103
|
-
r.type === "success" ? (d(), u("div",
|
|
4104
|
-
r.type === "error" ? (d(), u("div", Vl, Gl)) :
|
|
4105
|
-
r.type === "warning" ? (d(), u("div", Fl, ql)) :
|
|
4106
|
-
s("div", zl,
|
|
4102
|
+
return (o, a) => (d(), u("div", Tl, [
|
|
4103
|
+
r.type === "success" ? (d(), u("div", Al, Nl)) : f("", !0),
|
|
4104
|
+
r.type === "error" ? (d(), u("div", Vl, Gl)) : f("", !0),
|
|
4105
|
+
r.type === "warning" ? (d(), u("div", Fl, ql)) : f("", !0),
|
|
4106
|
+
s("div", zl, g(r.message), 1),
|
|
4107
4107
|
s("button", {
|
|
4108
4108
|
onClick: a[0] || (a[0] = (i) => n("remove")),
|
|
4109
4109
|
type: "button",
|
|
@@ -4115,7 +4115,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
}, de = Se({
|
|
4117
4117
|
items: []
|
|
4118
|
-
}),
|
|
4118
|
+
}), Yl = {
|
|
4119
4119
|
add(e) {
|
|
4120
4120
|
de.items.unshift({
|
|
4121
4121
|
key: Symbol(),
|
|
@@ -4129,8 +4129,8 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
}, $e = {
|
|
4131
4131
|
state: de,
|
|
4132
|
-
methods:
|
|
4133
|
-
},
|
|
4132
|
+
methods: Yl
|
|
4133
|
+
}, Zd = {
|
|
4134
4134
|
__name: "GlToastList",
|
|
4135
4135
|
setup(e) {
|
|
4136
4136
|
function t(r) {
|
|
@@ -4156,7 +4156,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4156
4156
|
_: 1
|
|
4157
4157
|
}));
|
|
4158
4158
|
}
|
|
4159
|
-
},
|
|
4159
|
+
}, Xl = {
|
|
4160
4160
|
key: 0,
|
|
4161
4161
|
class: "flex justify-center"
|
|
4162
4162
|
}, Jl = /* @__PURE__ */ s("svg", {
|
|
@@ -4172,7 +4172,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4172
4172
|
], ei = { class: "absolute right-0 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" }, ti = {
|
|
4173
4173
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4174
4174
|
"aria-labelledby": "dropdownDividerButton"
|
|
4175
|
-
}, ri = { key: 0 }, si = ["href"], ai = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ni = { key: 1 }, oi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1),
|
|
4175
|
+
}, ri = { key: 0 }, si = ["href"], ai = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ni = { key: 1 }, oi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Kd = {
|
|
4176
4176
|
__name: "DatatableAction",
|
|
4177
4177
|
props: {
|
|
4178
4178
|
field: {
|
|
@@ -4198,13 +4198,13 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4198
4198
|
},
|
|
4199
4199
|
emits: ["deleteAction"],
|
|
4200
4200
|
setup(e, { emit: t }) {
|
|
4201
|
-
const r = Ee(), n = e, o =
|
|
4201
|
+
const r = Ee(), n = e, o = S(!1), a = S(!1), i = () => {
|
|
4202
4202
|
o.value = !1;
|
|
4203
4203
|
}, l = () => {
|
|
4204
4204
|
o.value = !0;
|
|
4205
4205
|
}, c = () => {
|
|
4206
4206
|
a.value = !1;
|
|
4207
|
-
},
|
|
4207
|
+
}, h = () => {
|
|
4208
4208
|
a.value = !0;
|
|
4209
4209
|
}, m = t, y = () => {
|
|
4210
4210
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4217,7 +4217,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4217
4217
|
console.log(x);
|
|
4218
4218
|
});
|
|
4219
4219
|
};
|
|
4220
|
-
return (x,
|
|
4220
|
+
return (x, C) => {
|
|
4221
4221
|
const L = De("click-outside");
|
|
4222
4222
|
return d(), u(v, null, [
|
|
4223
4223
|
Z(ue, {
|
|
@@ -4225,7 +4225,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4225
4225
|
onConfirmDelete: y,
|
|
4226
4226
|
onCancelDelete: c
|
|
4227
4227
|
}, null, 8, ["isOpen"]),
|
|
4228
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div",
|
|
4228
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div", Xl, [
|
|
4229
4229
|
s("button", {
|
|
4230
4230
|
onClick: l,
|
|
4231
4231
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
@@ -4241,24 +4241,24 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4241
4241
|
ai,
|
|
4242
4242
|
w(" Edit")
|
|
4243
4243
|
], 8, si)
|
|
4244
|
-
])) :
|
|
4244
|
+
])) : f("", !0),
|
|
4245
4245
|
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", ni, [
|
|
4246
4246
|
s("a", {
|
|
4247
4247
|
href: "#",
|
|
4248
|
-
onClick: N(
|
|
4248
|
+
onClick: N(h, ["prevent"]),
|
|
4249
4249
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4250
4250
|
}, [
|
|
4251
4251
|
oi,
|
|
4252
4252
|
w(" Remove")
|
|
4253
4253
|
])
|
|
4254
|
-
])) :
|
|
4254
|
+
])) : f("", !0)
|
|
4255
4255
|
])
|
|
4256
4256
|
], 512), [
|
|
4257
4257
|
[F, o.value]
|
|
4258
4258
|
])
|
|
4259
4259
|
])), [
|
|
4260
4260
|
[L, i]
|
|
4261
|
-
]) :
|
|
4261
|
+
]) : f("", !0)
|
|
4262
4262
|
], 64);
|
|
4263
4263
|
};
|
|
4264
4264
|
}
|
|
@@ -4278,7 +4278,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4278
4278
|
], ui = { class: "absolute right-0 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" }, ci = {
|
|
4279
4279
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4280
4280
|
"aria-labelledby": "dropdownDividerButton"
|
|
4281
|
-
}, fi = { key: 0 }, gi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1),
|
|
4281
|
+
}, fi = { key: 0 }, gi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Wd = {
|
|
4282
4282
|
__name: "DatatableDeleteAction",
|
|
4283
4283
|
props: {
|
|
4284
4284
|
field: {
|
|
@@ -4304,13 +4304,13 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4304
4304
|
},
|
|
4305
4305
|
emits: ["deleteAction"],
|
|
4306
4306
|
setup(e, { emit: t }) {
|
|
4307
|
-
const r = Ee(), n = e, o =
|
|
4307
|
+
const r = Ee(), n = e, o = S(!1), a = S(!1), i = () => {
|
|
4308
4308
|
o.value = !1;
|
|
4309
4309
|
}, l = () => {
|
|
4310
4310
|
o.value = !0;
|
|
4311
4311
|
}, c = () => {
|
|
4312
4312
|
a.value = !1;
|
|
4313
|
-
},
|
|
4313
|
+
}, h = () => {
|
|
4314
4314
|
a.value = !0;
|
|
4315
4315
|
}, m = t, y = () => {
|
|
4316
4316
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4323,7 +4323,7 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4323
4323
|
console.log(x);
|
|
4324
4324
|
});
|
|
4325
4325
|
};
|
|
4326
|
-
return (x,
|
|
4326
|
+
return (x, C) => {
|
|
4327
4327
|
const L = De("click-outside");
|
|
4328
4328
|
return d(), u(v, null, [
|
|
4329
4329
|
Z(ue, {
|
|
@@ -4342,20 +4342,20 @@ const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
|
4342
4342
|
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", fi, [
|
|
4343
4343
|
s("a", {
|
|
4344
4344
|
href: "#",
|
|
4345
|
-
onClick: N(
|
|
4345
|
+
onClick: N(h, ["prevent"]),
|
|
4346
4346
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4347
4347
|
}, [
|
|
4348
4348
|
gi,
|
|
4349
4349
|
w(" Remove")
|
|
4350
4350
|
])
|
|
4351
|
-
])) :
|
|
4351
|
+
])) : f("", !0)
|
|
4352
4352
|
])
|
|
4353
4353
|
], 512), [
|
|
4354
4354
|
[F, o.value]
|
|
4355
4355
|
])
|
|
4356
4356
|
])), [
|
|
4357
4357
|
[L, i]
|
|
4358
|
-
]) :
|
|
4358
|
+
]) : f("", !0)
|
|
4359
4359
|
], 64);
|
|
4360
4360
|
};
|
|
4361
4361
|
}
|
|
@@ -4438,10 +4438,10 @@ function vi(e, t, r, n, o, a) {
|
|
|
4438
4438
|
_i,
|
|
4439
4439
|
w(" Download ")
|
|
4440
4440
|
], 8, yi)
|
|
4441
|
-
])) :
|
|
4441
|
+
])) : f("", !0)
|
|
4442
4442
|
]);
|
|
4443
4443
|
}
|
|
4444
|
-
const
|
|
4444
|
+
const Yd = /* @__PURE__ */ $(hi, [["render", vi]]), xi = {
|
|
4445
4445
|
props: ["field", "row"],
|
|
4446
4446
|
computed: {
|
|
4447
4447
|
isArray() {
|
|
@@ -4514,10 +4514,10 @@ function Di(e, t, r, n, o, a) {
|
|
|
4514
4514
|
Si,
|
|
4515
4515
|
w(" Download ")
|
|
4516
4516
|
], 8, Ci)
|
|
4517
|
-
])) :
|
|
4517
|
+
])) : f("", !0)
|
|
4518
4518
|
]);
|
|
4519
4519
|
}
|
|
4520
|
-
const
|
|
4520
|
+
const Xd = /* @__PURE__ */ $(xi, [["render", Di]]), Oi = {
|
|
4521
4521
|
props: ["field", "row", "tdProps"]
|
|
4522
4522
|
}, Pi = { key: 0 }, Ei = ["innerHTML"];
|
|
4523
4523
|
function ji(e, t, r, n, o, a) {
|
|
@@ -4526,9 +4526,9 @@ function ji(e, t, r, n, o, a) {
|
|
|
4526
4526
|
class: "w-full",
|
|
4527
4527
|
innerHTML: r.row[r.field]
|
|
4528
4528
|
}, null, 8, Ei)
|
|
4529
|
-
])) :
|
|
4529
|
+
])) : f("", !0);
|
|
4530
4530
|
}
|
|
4531
|
-
const
|
|
4531
|
+
const Jd = /* @__PURE__ */ $(Oi, [["render", ji]]), Ti = {
|
|
4532
4532
|
props: ["field", "row", "tdProps"],
|
|
4533
4533
|
computed: {
|
|
4534
4534
|
entry() {
|
|
@@ -4542,19 +4542,19 @@ const Zd = /* @__PURE__ */ S(Oi, [["render", ji]]), Ai = {
|
|
|
4542
4542
|
return typeof this.row[this.entry.key] == "object";
|
|
4543
4543
|
}
|
|
4544
4544
|
}
|
|
4545
|
-
},
|
|
4545
|
+
}, Ai = { class: "flex flex-wrap gap-2" }, Ii = {
|
|
4546
4546
|
key: 1,
|
|
4547
4547
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4548
4548
|
};
|
|
4549
4549
|
function Mi(e, t, r, n, o, a) {
|
|
4550
|
-
return d(), u("div",
|
|
4550
|
+
return d(), u("div", Ai, [
|
|
4551
4551
|
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4552
4552
|
key: l,
|
|
4553
4553
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4554
|
-
},
|
|
4554
|
+
}, g(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Ii, g(r.row[a.entry.key][a.entry.field]), 1)) : f("", !0)
|
|
4555
4555
|
]);
|
|
4556
4556
|
}
|
|
4557
|
-
const
|
|
4557
|
+
const Qd = /* @__PURE__ */ $(Ti, [["render", Mi]]), Ni = {
|
|
4558
4558
|
props: ["field", "row", "tdProps"]
|
|
4559
4559
|
}, Vi = { key: 0 }, Li = { class: "m-1 d-inline-block" }, Bi = ["href", "title"], Gi = ["src", "alt", "title"];
|
|
4560
4560
|
function Fi(e, t, r, n, o, a) {
|
|
@@ -4572,9 +4572,9 @@ function Fi(e, t, r, n, o, a) {
|
|
|
4572
4572
|
}, null, 8, Gi)
|
|
4573
4573
|
], 8, Bi)
|
|
4574
4574
|
])
|
|
4575
|
-
])) :
|
|
4575
|
+
])) : f("", !0);
|
|
4576
4576
|
}
|
|
4577
|
-
const
|
|
4577
|
+
const eu = /* @__PURE__ */ $(Ni, [["render", Fi], ["__scopeId", "data-v-3a28c02c"]]), Ri = {
|
|
4578
4578
|
props: ["field", "row", "tdProps"],
|
|
4579
4579
|
computed: {
|
|
4580
4580
|
isActive() {
|
|
@@ -4593,21 +4593,23 @@ function Ki(e, t, r, n, o, a) {
|
|
|
4593
4593
|
a.isActive ? (d(), u("span", qi, [
|
|
4594
4594
|
zi,
|
|
4595
4595
|
w(" Active ")
|
|
4596
|
-
])) : a.isActive ?
|
|
4596
|
+
])) : a.isActive ? f("", !0) : (d(), u("span", Hi, [
|
|
4597
4597
|
Zi,
|
|
4598
4598
|
w(" Inactive ")
|
|
4599
4599
|
]))
|
|
4600
4600
|
]);
|
|
4601
4601
|
}
|
|
4602
|
-
const
|
|
4602
|
+
const tu = /* @__PURE__ */ $(Ri, [["render", Ki]]), Wi = {
|
|
4603
4603
|
props: ["field", "row", "tdProps"],
|
|
4604
4604
|
computed: {
|
|
4605
4605
|
hasLabelColor(e) {
|
|
4606
|
-
const t = this.tdProps.status_general_labels_color.find(
|
|
4606
|
+
const t = this.tdProps.status_general_labels_color.find(
|
|
4607
|
+
(r) => r.label === this.row[this.field]
|
|
4608
|
+
);
|
|
4607
4609
|
return t ? t.class : "";
|
|
4608
4610
|
}
|
|
4609
4611
|
}
|
|
4610
|
-
},
|
|
4612
|
+
}, Yi = { class: "flex flex-wrap gap-2 text-nowrap" }, Xi = {
|
|
4611
4613
|
key: 0,
|
|
4612
4614
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
4613
4615
|
}, Ji = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Qi = {
|
|
@@ -4619,28 +4621,38 @@ const Xd = /* @__PURE__ */ S(Ri, [["render", Ki]]), Wi = {
|
|
|
4619
4621
|
}, rd = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), sd = {
|
|
4620
4622
|
key: 3,
|
|
4621
4623
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-full dark:bg-gray-700 dark:text-blue-400"
|
|
4622
|
-
}, ad = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1)
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4624
|
+
}, ad = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), nd = {
|
|
4625
|
+
key: 4,
|
|
4626
|
+
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
4627
|
+
}, od = /* @__PURE__ */ s("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4628
|
+
/* @__PURE__ */ s("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4629
|
+
/* @__PURE__ */ s("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4630
|
+
], -1);
|
|
4631
|
+
function ld(e, t, r, n, o, a) {
|
|
4632
|
+
return d(), u("div", Yi, [
|
|
4633
|
+
a.hasLabelColor == "green" ? (d(), u("span", Xi, [
|
|
4626
4634
|
Ji,
|
|
4627
|
-
w(" " +
|
|
4628
|
-
])) :
|
|
4635
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4636
|
+
])) : f("", !0),
|
|
4629
4637
|
a.hasLabelColor == "red" ? (d(), u("span", Qi, [
|
|
4630
4638
|
ed,
|
|
4631
|
-
w(" " +
|
|
4632
|
-
])) :
|
|
4639
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4640
|
+
])) : f("", !0),
|
|
4633
4641
|
a.hasLabelColor == "yellow" ? (d(), u("span", td, [
|
|
4634
4642
|
rd,
|
|
4635
|
-
w(" " +
|
|
4636
|
-
])) :
|
|
4643
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4644
|
+
])) : f("", !0),
|
|
4637
4645
|
a.hasLabelColor == "default" ? (d(), u("span", sd, [
|
|
4638
4646
|
ad,
|
|
4639
|
-
w(" " +
|
|
4640
|
-
])) :
|
|
4647
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4648
|
+
])) : f("", !0),
|
|
4649
|
+
a.hasLabelColor == "animate" ? (d(), u("span", nd, [
|
|
4650
|
+
od,
|
|
4651
|
+
w(" " + g(this.row[this.field]), 1)
|
|
4652
|
+
])) : f("", !0)
|
|
4641
4653
|
]);
|
|
4642
4654
|
}
|
|
4643
|
-
const
|
|
4655
|
+
const ru = /* @__PURE__ */ $(Wi, [["render", ld]]), id = {
|
|
4644
4656
|
props: ["field", "row", "tdProps"],
|
|
4645
4657
|
computed: {
|
|
4646
4658
|
hasLabelColor() {
|
|
@@ -4661,44 +4673,63 @@ const Yd = /* @__PURE__ */ S(Wi, [["render", nd]]), od = {
|
|
|
4661
4673
|
}
|
|
4662
4674
|
}
|
|
4663
4675
|
}
|
|
4664
|
-
},
|
|
4665
|
-
function
|
|
4666
|
-
return d(), u("div",
|
|
4676
|
+
}, dd = { class: "flex flex-wrap gap-2 text-nowrap" };
|
|
4677
|
+
function ud(e, t, r, n, o, a) {
|
|
4678
|
+
return d(), u("div", dd, [
|
|
4667
4679
|
a.hasLabelColor == "Default" ? (d(), u("span", {
|
|
4668
4680
|
key: 0,
|
|
4669
4681
|
class: b(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400", a.badgeType])
|
|
4670
|
-
},
|
|
4682
|
+
}, g(this.row[this.field]), 3)) : f("", !0),
|
|
4671
4683
|
a.hasLabelColor == "Dark" ? (d(), u("span", {
|
|
4672
4684
|
key: 1,
|
|
4673
4685
|
class: b(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500", a.badgeType])
|
|
4674
|
-
},
|
|
4686
|
+
}, g(this.row[this.field]), 3)) : f("", !0),
|
|
4675
4687
|
a.hasLabelColor == "Red" ? (d(), u("span", {
|
|
4676
4688
|
key: 2,
|
|
4677
4689
|
class: b(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400", a.badgeType])
|
|
4678
|
-
},
|
|
4690
|
+
}, g(this.row[this.field]), 3)) : f("", !0),
|
|
4679
4691
|
a.hasLabelColor == "Green" ? (d(), u("span", {
|
|
4680
4692
|
key: 3,
|
|
4681
4693
|
class: b(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400", a.badgeType])
|
|
4682
|
-
},
|
|
4694
|
+
}, g(this.row[this.field]), 3)) : f("", !0),
|
|
4683
4695
|
a.hasLabelColor == "Yellow" ? (d(), u("span", {
|
|
4684
4696
|
key: 4,
|
|
4685
4697
|
class: b(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300", a.badgeType])
|
|
4686
|
-
},
|
|
4698
|
+
}, g(this.row[this.field]), 3)) : f("", !0),
|
|
4687
4699
|
a.hasLabelColor == "Indigo" ? (d(), u("span", {
|
|
4688
4700
|
key: 5,
|
|
4689
4701
|
class: b(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400", a.badgeType])
|
|
4690
|
-
},
|
|
4702
|
+
}, g(this.row[this.field]), 3)) : f("", !0),
|
|
4691
4703
|
a.hasLabelColor == "Purple" ? (d(), u("span", {
|
|
4692
4704
|
key: 6,
|
|
4693
4705
|
class: b(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400", a.badgeType])
|
|
4694
|
-
},
|
|
4706
|
+
}, g(this.row[this.field]), 3)) : f("", !0),
|
|
4695
4707
|
a.hasLabelColor == "Pink" ? (d(), u("span", {
|
|
4696
4708
|
key: 7,
|
|
4697
4709
|
class: b(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400", a.badgeType])
|
|
4698
|
-
},
|
|
4710
|
+
}, g(this.row[this.field]), 3)) : f("", !0)
|
|
4699
4711
|
]);
|
|
4700
4712
|
}
|
|
4701
|
-
const
|
|
4713
|
+
const su = /* @__PURE__ */ $(id, [["render", ud]]), cd = {
|
|
4714
|
+
props: ["field", "row", "tdProps"],
|
|
4715
|
+
computed: {
|
|
4716
|
+
formattedDate() {
|
|
4717
|
+
if (!this.row[this.field])
|
|
4718
|
+
return "";
|
|
4719
|
+
const e = new Date(this.row[this.field]), t = e.getFullYear(), r = e.toLocaleString("default", { month: "long" }), n = e.getDate();
|
|
4720
|
+
let o = e.getHours();
|
|
4721
|
+
const a = e.getMinutes(), i = e.getSeconds(), l = o >= 12 ? "pm" : "am";
|
|
4722
|
+
return o = o % 12, o = o || 12, `${r} ${n}, ${t}, ${o}:${a}:${i} ${l}`;
|
|
4723
|
+
},
|
|
4724
|
+
isActive() {
|
|
4725
|
+
return this.row[this.field] === 1;
|
|
4726
|
+
}
|
|
4727
|
+
}
|
|
4728
|
+
}, fd = { class: "w-full" };
|
|
4729
|
+
function gd(e, t, r, n, o, a) {
|
|
4730
|
+
return d(), u("div", fd, g(a.formattedDate), 1);
|
|
4731
|
+
}
|
|
4732
|
+
const au = /* @__PURE__ */ $(cd, [["render", gd]]), hd = {
|
|
4702
4733
|
props: ["isOpen", "title", "button_text"],
|
|
4703
4734
|
methods: {
|
|
4704
4735
|
confirmAction() {
|
|
@@ -4708,40 +4739,40 @@ const Jd = /* @__PURE__ */ S(od, [["render", id]]), dd = {
|
|
|
4708
4739
|
this.$emit("cancel-action");
|
|
4709
4740
|
}
|
|
4710
4741
|
}
|
|
4711
|
-
},
|
|
4742
|
+
}, md = {
|
|
4712
4743
|
key: 0,
|
|
4713
4744
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4714
4745
|
role: "dialog",
|
|
4715
4746
|
"aria-modal": "true"
|
|
4716
|
-
},
|
|
4747
|
+
}, bd = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, pd = /* @__PURE__ */ s("div", {
|
|
4717
4748
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4718
4749
|
"aria-hidden": "true"
|
|
4719
|
-
}, null, -1),
|
|
4750
|
+
}, null, -1), yd = /* @__PURE__ */ s("span", {
|
|
4720
4751
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4721
4752
|
"aria-hidden": "true"
|
|
4722
|
-
}, "", -1),
|
|
4723
|
-
function
|
|
4724
|
-
return r.isOpen ? (d(), u("div",
|
|
4725
|
-
s("div",
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
s("div",
|
|
4729
|
-
s("div",
|
|
4730
|
-
s("div",
|
|
4731
|
-
s("div",
|
|
4732
|
-
s("h3",
|
|
4733
|
-
s("div",
|
|
4734
|
-
|
|
4753
|
+
}, "", -1), _d = { 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" }, vd = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, xd = { class: "sm:flex sm:items-start" }, wd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, kd = { class: "text-lg font-medium leading-6 text-gray-900" }, $d = { class: "mt-2" }, Cd = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4754
|
+
function Sd(e, t, r, n, o, a) {
|
|
4755
|
+
return r.isOpen ? (d(), u("div", md, [
|
|
4756
|
+
s("div", bd, [
|
|
4757
|
+
pd,
|
|
4758
|
+
yd,
|
|
4759
|
+
s("div", _d, [
|
|
4760
|
+
s("div", vd, [
|
|
4761
|
+
s("div", xd, [
|
|
4762
|
+
s("div", wd, [
|
|
4763
|
+
s("h3", kd, g(r.title), 1),
|
|
4764
|
+
s("div", $d, [
|
|
4765
|
+
A(e.$slots, "default")
|
|
4735
4766
|
])
|
|
4736
4767
|
])
|
|
4737
4768
|
])
|
|
4738
4769
|
]),
|
|
4739
|
-
s("div",
|
|
4770
|
+
s("div", Cd, [
|
|
4740
4771
|
s("button", {
|
|
4741
4772
|
onClick: t[0] || (t[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
4742
4773
|
type: "button",
|
|
4743
4774
|
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"
|
|
4744
|
-
},
|
|
4775
|
+
}, g(r.button_text), 1),
|
|
4745
4776
|
s("button", {
|
|
4746
4777
|
onClick: t[1] || (t[1] = (...i) => a.cancelAction && a.cancelAction(...i)),
|
|
4747
4778
|
type: "button",
|
|
@@ -4750,42 +4781,43 @@ function xd(e, t, r, n, o, a) {
|
|
|
4750
4781
|
])
|
|
4751
4782
|
])
|
|
4752
4783
|
])
|
|
4753
|
-
])) :
|
|
4784
|
+
])) : f("", !0);
|
|
4754
4785
|
}
|
|
4755
|
-
const
|
|
4786
|
+
const nu = /* @__PURE__ */ $(hd, [["render", Sd]]);
|
|
4756
4787
|
export {
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4788
|
+
au as GLDatatableDateTime,
|
|
4789
|
+
Ad as GlButton,
|
|
4790
|
+
jd as GlCard,
|
|
4791
|
+
nu as GlConfirmationModal,
|
|
4792
|
+
Hd as GlDataTable,
|
|
4793
|
+
zd as GlDataTableServerSide,
|
|
4794
|
+
Kd as GlDatatableAction,
|
|
4795
|
+
Wd as GlDatatableDeleteAction,
|
|
4796
|
+
Yd as GlDatatableFileDownload,
|
|
4797
|
+
Xd as GlDatatableFiles,
|
|
4798
|
+
Jd as GlDatatableHtml,
|
|
4799
|
+
Qd as GlDatatableList,
|
|
4800
|
+
eu as GlDatatablePicture,
|
|
4801
|
+
tu as GlDatatableStatus,
|
|
4802
|
+
ru as GlDatatableStatusGeneral,
|
|
4803
|
+
su as GlDatatableStatusSpecficColor,
|
|
4772
4804
|
ue as GlDeleteConfirmationModal,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4805
|
+
Ud as GlDropdown,
|
|
4806
|
+
Od as GlFilesUpload,
|
|
4807
|
+
Ed as GlLanguageSelector,
|
|
4808
|
+
Fd as GlModal,
|
|
4809
|
+
Gd as GlMultiItemSlide,
|
|
4810
|
+
Td as GlMultiSelectDropdown,
|
|
4811
|
+
Pd as GlNotify,
|
|
4812
|
+
Bd as GlTab,
|
|
4813
|
+
Ld as GlTabsWrapper,
|
|
4782
4814
|
xo as GlTailwindPagination,
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4815
|
+
Vd as GlTextInput,
|
|
4816
|
+
Nd as GlTextTranslate,
|
|
4817
|
+
qd as GlTextarea,
|
|
4818
|
+
Id as GlTextareaTranslate,
|
|
4819
|
+
Md as GlTinymceTranslate,
|
|
4788
4820
|
$e as GlToast,
|
|
4789
|
-
|
|
4790
|
-
|
|
4821
|
+
Zd as GlToastList,
|
|
4822
|
+
Rd as GlToggleBox
|
|
4791
4823
|
};
|