golden-logic-ui 1.0.72 → 1.0.73
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 +759 -717
- package/dist/golden-logic-ui.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Je, inject as Ce, watch as X, effectScope as Qe, computed as G, reactive as Se, resolveComponent as Y, Fragment as v, createVNode as Z, normalizeClass as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Je, inject as Ce, watch as X, effectScope as Qe, computed as G, reactive as Se, resolveComponent as Y, Fragment as v, createVNode as Z, normalizeClass as b, toDisplayString as h, withModifiers as N, withDirectives as O, vModelText as V, renderList as k, normalizeStyle as et, renderSlot as T, createTextVNode as w, vShow as F, createBlock as K, resolveDynamicComponent as oe, mergeProps as W, withCtx as J, ref as C, 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
2
|
const S = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
@@ -20,28 +20,28 @@ const S = (e, t) => {
|
|
|
20
20
|
"aria-labelledby": "modal-title",
|
|
21
21
|
role: "dialog",
|
|
22
22
|
"aria-modal": "true"
|
|
23
|
-
}, ft = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" },
|
|
23
|
+
}, ft = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, gt = /* @__PURE__ */ s("div", {
|
|
24
24
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
25
25
|
"aria-hidden": "true"
|
|
26
|
-
}, null, -1),
|
|
26
|
+
}, null, -1), ht = /* @__PURE__ */ s("span", {
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
}, "", -1), mt = { 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" },
|
|
30
|
-
function
|
|
29
|
+
}, "", -1), mt = { 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" }, bt = /* @__PURE__ */ Je('<div class="px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6 text-gray-900" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm text-gray-500"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), pt = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
+
function yt(e, t, r, n, o, a) {
|
|
31
31
|
return r.isOpen ? (d(), u("div", ct, [
|
|
32
32
|
s("div", ft, [
|
|
33
|
-
ht,
|
|
34
33
|
gt,
|
|
34
|
+
ht,
|
|
35
35
|
s("div", mt, [
|
|
36
|
-
|
|
37
|
-
s("div",
|
|
36
|
+
bt,
|
|
37
|
+
s("div", pt, [
|
|
38
38
|
s("button", {
|
|
39
|
-
onClick: t[0] || (t[0] = (...
|
|
39
|
+
onClick: t[0] || (t[0] = (...i) => a.confirmDeletion && a.confirmDeletion(...i)),
|
|
40
40
|
type: "button",
|
|
41
41
|
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"
|
|
42
42
|
}, " Delete "),
|
|
43
43
|
s("button", {
|
|
44
|
-
onClick: t[1] || (t[1] = (...
|
|
44
|
+
onClick: t[1] || (t[1] = (...i) => a.cancelDeletion && a.cancelDeletion(...i)),
|
|
45
45
|
type: "button",
|
|
46
46
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
47
47
|
}, " Cancel ")
|
|
@@ -50,70 +50,70 @@ function _t(e, t, r, n, o, a) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : g("", !0);
|
|
52
52
|
}
|
|
53
|
-
const ue = /* @__PURE__ */ S(ut, [["render",
|
|
54
|
-
function
|
|
53
|
+
const ue = /* @__PURE__ */ S(ut, [["render", yt]]);
|
|
54
|
+
function _t() {
|
|
55
55
|
return Oe().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
57
|
function Oe() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
60
|
const vt = typeof Proxy == "function", xt = "devtools-plugin:setup", wt = "plugin:settings:set";
|
|
61
|
-
let z,
|
|
61
|
+
let z, le;
|
|
62
62
|
function kt() {
|
|
63
63
|
var e;
|
|
64
|
-
return z !== void 0 || (typeof window < "u" && window.performance ? (z = !0,
|
|
64
|
+
return z !== void 0 || (typeof window < "u" && window.performance ? (z = !0, le = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (z = !0, le = globalThis.perf_hooks.performance) : z = !1), z;
|
|
65
65
|
}
|
|
66
66
|
function $t() {
|
|
67
|
-
return kt() ?
|
|
67
|
+
return kt() ? le.now() : Date.now();
|
|
68
68
|
}
|
|
69
69
|
class Ct {
|
|
70
70
|
constructor(t, r) {
|
|
71
71
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = r;
|
|
72
72
|
const n = {};
|
|
73
73
|
if (t.settings)
|
|
74
|
-
for (const
|
|
75
|
-
const
|
|
76
|
-
n[
|
|
74
|
+
for (const i in t.settings) {
|
|
75
|
+
const l = t.settings[i];
|
|
76
|
+
n[i] = l.defaultValue;
|
|
77
77
|
}
|
|
78
78
|
const o = `__vue-devtools-plugin-settings__${t.id}`;
|
|
79
79
|
let a = Object.assign({}, n);
|
|
80
80
|
try {
|
|
81
|
-
const
|
|
82
|
-
Object.assign(a,
|
|
81
|
+
const i = localStorage.getItem(o), l = JSON.parse(i);
|
|
82
|
+
Object.assign(a, l);
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
85
|
this.fallbacks = {
|
|
86
86
|
getSettings() {
|
|
87
87
|
return a;
|
|
88
88
|
},
|
|
89
|
-
setSettings(
|
|
89
|
+
setSettings(i) {
|
|
90
90
|
try {
|
|
91
|
-
localStorage.setItem(o, JSON.stringify(
|
|
91
|
+
localStorage.setItem(o, JSON.stringify(i));
|
|
92
92
|
} catch {
|
|
93
93
|
}
|
|
94
|
-
a =
|
|
94
|
+
a = i;
|
|
95
95
|
},
|
|
96
96
|
now() {
|
|
97
97
|
return $t();
|
|
98
98
|
}
|
|
99
|
-
}, r && r.on(wt, (
|
|
100
|
-
|
|
99
|
+
}, r && r.on(wt, (i, l) => {
|
|
100
|
+
i === this.plugin.id && this.fallbacks.setSettings(l);
|
|
101
101
|
}), this.proxiedOn = new Proxy({}, {
|
|
102
|
-
get: (
|
|
102
|
+
get: (i, l) => this.target ? this.target.on[l] : (...c) => {
|
|
103
103
|
this.onQueue.push({
|
|
104
|
-
method:
|
|
104
|
+
method: l,
|
|
105
105
|
args: c
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
}), this.proxiedTarget = new Proxy({}, {
|
|
109
|
-
get: (
|
|
110
|
-
method:
|
|
109
|
+
get: (i, l) => this.target ? this.target[l] : l === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(l) ? (...c) => (this.targetQueue.push({
|
|
110
|
+
method: l,
|
|
111
111
|
args: c,
|
|
112
112
|
resolve: () => {
|
|
113
113
|
}
|
|
114
|
-
}), this.fallbacks[
|
|
114
|
+
}), this.fallbacks[l](...c)) : (...c) => new Promise((f) => {
|
|
115
115
|
this.targetQueue.push({
|
|
116
|
-
method:
|
|
116
|
+
method: l,
|
|
117
117
|
args: c,
|
|
118
118
|
resolve: f
|
|
119
119
|
});
|
|
@@ -129,16 +129,16 @@ class Ct {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function St(e, t) {
|
|
132
|
-
const r = e, n = Oe(), o =
|
|
132
|
+
const r = e, n = Oe(), o = _t(), a = vt && r.enableEarlyProxy;
|
|
133
133
|
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
134
|
o.emit(xt, e, t);
|
|
135
135
|
else {
|
|
136
|
-
const
|
|
136
|
+
const i = a ? new Ct(r, o) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
138
138
|
pluginDescriptor: r,
|
|
139
139
|
setupFn: t,
|
|
140
|
-
proxy:
|
|
141
|
-
}),
|
|
140
|
+
proxy: i
|
|
141
|
+
}), i && t(i.proxiedTarget);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
/*!
|
|
@@ -184,14 +184,14 @@ function Te(e, t) {
|
|
|
184
184
|
function ce(e, t, r) {
|
|
185
185
|
var n = e._state, o = e._scope;
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
|
-
var a = e._wrappedGetters,
|
|
187
|
+
var a = e._wrappedGetters, i = {}, l = {}, c = Qe(!0);
|
|
188
188
|
c.run(function() {
|
|
189
189
|
U(a, function(f, m) {
|
|
190
|
-
|
|
191
|
-
return
|
|
190
|
+
i[m] = Ot(f, e), l[m] = G(function() {
|
|
191
|
+
return i[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
194
|
-
return
|
|
194
|
+
return l[m].value;
|
|
195
195
|
},
|
|
196
196
|
enumerable: !0
|
|
197
197
|
// for local getters
|
|
@@ -204,24 +204,24 @@ function ce(e, t, r) {
|
|
|
204
204
|
}), o && o.stop();
|
|
205
205
|
}
|
|
206
206
|
function ee(e, t, r, n, o) {
|
|
207
|
-
var a = !r.length,
|
|
208
|
-
if (n.namespaced && (e._modulesNamespaceMap[
|
|
209
|
-
var
|
|
207
|
+
var a = !r.length, i = e._modules.getNamespace(r);
|
|
208
|
+
if (n.namespaced && (e._modulesNamespaceMap[i] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + i + " for the namespaced module " + r.join("/")), e._modulesNamespaceMap[i] = n), !a && !o) {
|
|
209
|
+
var l = fe(t, r.slice(0, -1)), c = r[r.length - 1];
|
|
210
210
|
e._withCommit(function() {
|
|
211
|
-
process.env.NODE_ENV !== "production" && c in
|
|
211
|
+
process.env.NODE_ENV !== "production" && c in l && console.warn(
|
|
212
212
|
'[vuex] state field "' + c + '" was overridden by a module with the same name at "' + r.join(".") + '"'
|
|
213
|
-
),
|
|
213
|
+
), l[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var f = n.context = Pt(e,
|
|
216
|
+
var f = n.context = Pt(e, i, r);
|
|
217
217
|
n.forEachMutation(function(m, y) {
|
|
218
|
-
var x =
|
|
218
|
+
var x = i + y;
|
|
219
219
|
Et(e, x, m, f);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
|
-
var x = m.root ? y :
|
|
221
|
+
var x = m.root ? y : i + y, $ = m.handler || m;
|
|
222
222
|
jt(e, x, $, f);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
|
-
var x =
|
|
224
|
+
var x = i + y;
|
|
225
225
|
At(e, x, m, f);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
227
|
ee(e, t, r.concat(y), m, o);
|
|
@@ -229,16 +229,16 @@ function ee(e, t, r, n, o) {
|
|
|
229
229
|
}
|
|
230
230
|
function Pt(e, t, r) {
|
|
231
231
|
var n = t === "", o = {
|
|
232
|
-
dispatch: n ? e.dispatch : function(a,
|
|
233
|
-
var c = Q(a,
|
|
232
|
+
dispatch: n ? e.dispatch : function(a, i, l) {
|
|
233
|
+
var c = Q(a, i, l), f = 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
238
|
return e.dispatch(y, f);
|
|
239
239
|
},
|
|
240
|
-
commit: n ? e.commit : function(a,
|
|
241
|
-
var c = Q(a,
|
|
240
|
+
commit: n ? e.commit : function(a, i, l) {
|
|
241
|
+
var c = Q(a, i, l), f = 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;
|
|
@@ -280,24 +280,24 @@ function Ie(e, t) {
|
|
|
280
280
|
}
|
|
281
281
|
function Et(e, t, r, n) {
|
|
282
282
|
var o = e._mutations[t] || (e._mutations[t] = []);
|
|
283
|
-
o.push(function(
|
|
284
|
-
r.call(e, n.state,
|
|
283
|
+
o.push(function(i) {
|
|
284
|
+
r.call(e, n.state, i);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
function jt(e, t, r, n) {
|
|
288
288
|
var o = e._actions[t] || (e._actions[t] = []);
|
|
289
|
-
o.push(function(
|
|
290
|
-
var
|
|
289
|
+
o.push(function(i) {
|
|
290
|
+
var l = r.call(e, {
|
|
291
291
|
dispatch: n.dispatch,
|
|
292
292
|
commit: n.commit,
|
|
293
293
|
getters: n.getters,
|
|
294
294
|
state: n.state,
|
|
295
295
|
rootGetters: e.getters,
|
|
296
296
|
rootState: e.state
|
|
297
|
-
},
|
|
298
|
-
return Dt(
|
|
297
|
+
}, i);
|
|
298
|
+
return Dt(l) || (l = Promise.resolve(l)), e._devtoolHook ? l.catch(function(c) {
|
|
299
299
|
throw e._devtoolHook.emit("vuex:error", c), c;
|
|
300
|
-
}) :
|
|
300
|
+
}) : l;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
function At(e, t, r, n) {
|
|
@@ -409,13 +409,13 @@ function Nt(e, t) {
|
|
|
409
409
|
});
|
|
410
410
|
},
|
|
411
411
|
after: function(n, o) {
|
|
412
|
-
var a = {},
|
|
412
|
+
var a = {}, i = Date.now() - n._time;
|
|
413
413
|
a.duration = {
|
|
414
414
|
_custom: {
|
|
415
415
|
type: "duration",
|
|
416
|
-
display:
|
|
416
|
+
display: i + "ms",
|
|
417
417
|
tooltip: "Action duration",
|
|
418
|
-
value:
|
|
418
|
+
value: i
|
|
419
419
|
}
|
|
420
420
|
}, n.payload && (a.payload = n.payload), a.state = o, r.addTimelineEvent({
|
|
421
421
|
layerId: ne,
|
|
@@ -470,22 +470,22 @@ function Le(e, t, r, n) {
|
|
|
470
470
|
function Bt(e, t, r) {
|
|
471
471
|
t = r === "root" ? t : t[r];
|
|
472
472
|
var n = Object.keys(t), o = {
|
|
473
|
-
state: Object.keys(e.state).map(function(
|
|
473
|
+
state: Object.keys(e.state).map(function(i) {
|
|
474
474
|
return {
|
|
475
|
-
key:
|
|
475
|
+
key: i,
|
|
476
476
|
editable: !0,
|
|
477
|
-
value: e.state[
|
|
477
|
+
value: e.state[i]
|
|
478
478
|
};
|
|
479
479
|
})
|
|
480
480
|
};
|
|
481
481
|
if (n.length) {
|
|
482
482
|
var a = Gt(t);
|
|
483
|
-
o.getters = Object.keys(a).map(function(
|
|
483
|
+
o.getters = Object.keys(a).map(function(i) {
|
|
484
484
|
return {
|
|
485
|
-
key:
|
|
485
|
+
key: i.endsWith("/") ? Ne(i) : i,
|
|
486
486
|
editable: !1,
|
|
487
|
-
value:
|
|
488
|
-
return a[
|
|
487
|
+
value: ie(function() {
|
|
488
|
+
return a[i];
|
|
489
489
|
})
|
|
490
490
|
};
|
|
491
491
|
});
|
|
@@ -498,20 +498,20 @@ function Gt(e) {
|
|
|
498
498
|
var n = r.split("/");
|
|
499
499
|
if (n.length > 1) {
|
|
500
500
|
var o = t, a = n.pop();
|
|
501
|
-
n.forEach(function(
|
|
502
|
-
o[
|
|
501
|
+
n.forEach(function(i) {
|
|
502
|
+
o[i] || (o[i] = {
|
|
503
503
|
_custom: {
|
|
504
504
|
value: {},
|
|
505
|
-
display:
|
|
505
|
+
display: i,
|
|
506
506
|
tooltip: "Module",
|
|
507
507
|
abstract: !0
|
|
508
508
|
}
|
|
509
|
-
}), o = o[
|
|
510
|
-
}), o[a] =
|
|
509
|
+
}), o = o[i]._custom.value;
|
|
510
|
+
}), o[a] = ie(function() {
|
|
511
511
|
return e[r];
|
|
512
512
|
});
|
|
513
513
|
} else
|
|
514
|
-
t[r] =
|
|
514
|
+
t[r] = ie(function() {
|
|
515
515
|
return e[r];
|
|
516
516
|
});
|
|
517
517
|
}), t;
|
|
@@ -522,15 +522,15 @@ function Ft(e, t) {
|
|
|
522
522
|
});
|
|
523
523
|
return r.reduce(
|
|
524
524
|
function(n, o, a) {
|
|
525
|
-
var
|
|
526
|
-
if (!
|
|
525
|
+
var i = n[o];
|
|
526
|
+
if (!i)
|
|
527
527
|
throw new Error('Missing module "' + o + '" for path "' + t + '".');
|
|
528
|
-
return a === r.length - 1 ?
|
|
528
|
+
return a === r.length - 1 ? i : i._children;
|
|
529
529
|
},
|
|
530
530
|
t === "root" ? e : e.root._children
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ie(e) {
|
|
534
534
|
try {
|
|
535
535
|
return e();
|
|
536
536
|
} catch (t) {
|
|
@@ -597,11 +597,11 @@ q.prototype.register = function(t, r, n) {
|
|
|
597
597
|
if (t.length === 0)
|
|
598
598
|
this.root = a;
|
|
599
599
|
else {
|
|
600
|
-
var
|
|
601
|
-
|
|
600
|
+
var i = this.get(t.slice(0, -1));
|
|
601
|
+
i.addChild(t[t.length - 1], a);
|
|
602
602
|
}
|
|
603
|
-
r.modules && U(r.modules, function(
|
|
604
|
-
o.register(t.concat(c),
|
|
603
|
+
r.modules && U(r.modules, function(l, c) {
|
|
604
|
+
o.register(t.concat(c), l, n);
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
q.prototype.unregister = function(t) {
|
|
@@ -675,46 +675,46 @@ 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
|
|
678
|
+
var i = this, l = this, c = l.dispatch, f = l.commit;
|
|
679
679
|
this.dispatch = function(x, $) {
|
|
680
|
-
return c.call(
|
|
680
|
+
return c.call(i, x, $);
|
|
681
681
|
}, this.commit = function(x, $, L) {
|
|
682
|
-
return f.call(
|
|
682
|
+
return f.call(i, x, $, 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) {
|
|
686
686
|
return y(r);
|
|
687
687
|
});
|
|
688
|
-
},
|
|
688
|
+
}, ge = { state: { configurable: !0 } };
|
|
689
689
|
j.prototype.install = function(t, r) {
|
|
690
690
|
t.provide(r || Pe, this), t.config.globalProperties.$store = this;
|
|
691
691
|
var n = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
|
|
692
692
|
n && Nt(t, this);
|
|
693
693
|
};
|
|
694
|
-
|
|
694
|
+
ge.state.get = function() {
|
|
695
695
|
return this._state.data;
|
|
696
696
|
};
|
|
697
|
-
|
|
697
|
+
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),
|
|
701
|
+
var o = this, a = Q(t, r, n), i = a.type, l = a.payload, c = a.options, f = { type: i, payload: l }, m = this._mutations[i];
|
|
702
702
|
if (!m) {
|
|
703
|
-
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " +
|
|
703
|
+
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + i);
|
|
704
704
|
return;
|
|
705
705
|
}
|
|
706
706
|
this._withCommit(function() {
|
|
707
707
|
m.forEach(function(x) {
|
|
708
|
-
x(
|
|
708
|
+
x(l);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(y) {
|
|
711
711
|
return y(f, o.state);
|
|
712
712
|
}), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
|
|
713
|
-
"[vuex] mutation type: " +
|
|
713
|
+
"[vuex] mutation type: " + i + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
|
|
714
714
|
);
|
|
715
715
|
};
|
|
716
716
|
j.prototype.dispatch = function(t, r) {
|
|
717
|
-
var n = this, o = Q(t, r), a = o.type,
|
|
717
|
+
var n = this, o = Q(t, r), a = o.type, i = o.payload, l = { type: a, payload: i }, c = this._actions[a];
|
|
718
718
|
if (!c) {
|
|
719
719
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + a);
|
|
720
720
|
return;
|
|
@@ -723,21 +723,21 @@ j.prototype.dispatch = function(t, r) {
|
|
|
723
723
|
this._actionSubscribers.slice().filter(function(m) {
|
|
724
724
|
return m.before;
|
|
725
725
|
}).forEach(function(m) {
|
|
726
|
-
return m.before(
|
|
726
|
+
return m.before(l, n.state);
|
|
727
727
|
});
|
|
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
731
|
var f = c.length > 1 ? Promise.all(c.map(function(m) {
|
|
732
|
-
return m(
|
|
733
|
-
})) : c[0](
|
|
732
|
+
return m(i);
|
|
733
|
+
})) : c[0](i);
|
|
734
734
|
return new Promise(function(m, y) {
|
|
735
735
|
f.then(function(x) {
|
|
736
736
|
try {
|
|
737
737
|
n._actionSubscribers.filter(function($) {
|
|
738
738
|
return $.after;
|
|
739
739
|
}).forEach(function($) {
|
|
740
|
-
return $.after(
|
|
740
|
+
return $.after(l, n.state);
|
|
741
741
|
});
|
|
742
742
|
} catch ($) {
|
|
743
743
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error($));
|
|
@@ -748,7 +748,7 @@ j.prototype.dispatch = function(t, r) {
|
|
|
748
748
|
n._actionSubscribers.filter(function($) {
|
|
749
749
|
return $.error;
|
|
750
750
|
}).forEach(function($) {
|
|
751
|
-
return $.error(
|
|
751
|
+
return $.error(l, n.state, x);
|
|
752
752
|
});
|
|
753
753
|
} catch ($) {
|
|
754
754
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error($));
|
|
@@ -796,29 +796,29 @@ j.prototype._withCommit = function(t) {
|
|
|
796
796
|
var r = this._committing;
|
|
797
797
|
this._committing = !0, t(), this._committing = r;
|
|
798
798
|
};
|
|
799
|
-
Object.defineProperties(j.prototype,
|
|
799
|
+
Object.defineProperties(j.prototype, ge);
|
|
800
800
|
var qt = Ue(function(e, t) {
|
|
801
801
|
var r = {};
|
|
802
|
-
return process.env.NODE_ENV !== "production" && !
|
|
802
|
+
return process.env.NODE_ENV !== "production" && !he(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Re(t).forEach(function(n) {
|
|
803
803
|
var o = n.key, a = n.val;
|
|
804
804
|
r[o] = function() {
|
|
805
|
-
var
|
|
805
|
+
var l = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
807
|
var f = qe(this.$store, "mapState", e);
|
|
808
808
|
if (!f)
|
|
809
809
|
return;
|
|
810
|
-
|
|
810
|
+
l = f.context.state, c = f.context.getters;
|
|
811
811
|
}
|
|
812
|
-
return typeof a == "function" ? a.call(this,
|
|
812
|
+
return typeof a == "function" ? a.call(this, l, c) : l[a];
|
|
813
813
|
}, r[o].vuex = !0;
|
|
814
814
|
}), r;
|
|
815
815
|
}), zt = Ue(function(e, t) {
|
|
816
816
|
var r = {};
|
|
817
|
-
return process.env.NODE_ENV !== "production" && !
|
|
817
|
+
return process.env.NODE_ENV !== "production" && !he(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Re(t).forEach(function(n) {
|
|
818
818
|
var o = n.key, a = n.val;
|
|
819
819
|
r[o] = function() {
|
|
820
|
-
for (var
|
|
821
|
-
|
|
820
|
+
for (var l = [], c = arguments.length; c--; )
|
|
821
|
+
l[c] = arguments[c];
|
|
822
822
|
var f = this.$store.commit;
|
|
823
823
|
if (e) {
|
|
824
824
|
var m = qe(this.$store, "mapMutations", e);
|
|
@@ -826,18 +826,18 @@ var qt = Ue(function(e, t) {
|
|
|
826
826
|
return;
|
|
827
827
|
f = m.context.commit;
|
|
828
828
|
}
|
|
829
|
-
return typeof a == "function" ? a.apply(this, [f].concat(
|
|
829
|
+
return typeof a == "function" ? a.apply(this, [f].concat(l)) : f.apply(this.$store, [a].concat(l));
|
|
830
830
|
};
|
|
831
831
|
}), r;
|
|
832
832
|
});
|
|
833
833
|
function Re(e) {
|
|
834
|
-
return
|
|
834
|
+
return he(e) ? Array.isArray(e) ? e.map(function(t) {
|
|
835
835
|
return { key: t, val: t };
|
|
836
836
|
}) : Object.keys(e).map(function(t) {
|
|
837
837
|
return { key: t, val: e[t] };
|
|
838
838
|
}) : [];
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function he(e) {
|
|
841
841
|
return Array.isArray(e) || je(e);
|
|
842
842
|
}
|
|
843
843
|
function Ue(e) {
|
|
@@ -969,7 +969,7 @@ const Ht = {
|
|
|
969
969
|
}
|
|
970
970
|
}).then((o) => {
|
|
971
971
|
let a = this.files.findIndex(
|
|
972
|
-
(
|
|
972
|
+
(i) => i.file_name === e.name
|
|
973
973
|
);
|
|
974
974
|
a !== -1 && this.files.splice(a, 1), this.uploadFileList.push({
|
|
975
975
|
file_name: o.data.file_name,
|
|
@@ -983,7 +983,7 @@ const Ht = {
|
|
|
983
983
|
"file"
|
|
984
984
|
) : console.error("An error occurred:", o);
|
|
985
985
|
let a = this.files.findIndex(
|
|
986
|
-
(
|
|
986
|
+
(i) => i.file_name === e.name
|
|
987
987
|
);
|
|
988
988
|
a !== -1 && this.files.splice(a, 1), console.log(o), t();
|
|
989
989
|
});
|
|
@@ -1021,35 +1021,35 @@ const Ht = {
|
|
|
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 = {
|
|
1022
1022
|
key: 0,
|
|
1023
1023
|
class: ""
|
|
1024
|
-
}, nr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, or = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1),
|
|
1024
|
+
}, nr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, or = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), lr = { class: "w-full ml-3" }, ir = { class: "flex items-center justify-between mb-1" }, dr = { class: "text-xs text-black dark:text-white" }, ur = { class: "text-xs text-black dark:text-white" }, cr = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, fr = { class: "overflow-x-scroll max-h-56" }, gr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, hr = { class: "flex items-center" }, mr = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1),
|
|
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
|
|
1029
|
+
const i = Y("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
1031
|
-
Z(
|
|
1031
|
+
Z(i, {
|
|
1032
1032
|
isOpen: o.open_delete_modal,
|
|
1033
1033
|
onConfirmDelete: a.deleteAction,
|
|
1034
1034
|
onCancelDelete: a.closeDeleteModal
|
|
1035
1035
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
1036
1036
|
s("div", {
|
|
1037
|
-
class:
|
|
1037
|
+
class: b([{
|
|
1038
1038
|
"border-red-500 dark:border-red-500": o.error_message_data !== "",
|
|
1039
1039
|
"border-gray-200 dark:border-gray-700": o.error_message_data == ""
|
|
1040
1040
|
}, "w-full p-4 bg-white border rounded-lg shadow dark:bg-gray-800"])
|
|
1041
1041
|
}, [
|
|
1042
1042
|
s("label", {
|
|
1043
|
-
class:
|
|
1043
|
+
class: b({
|
|
1044
1044
|
"gl-label-form": o.error_message_data == "",
|
|
1045
1045
|
"gl-label-form-invalid": o.error_message_data !== "",
|
|
1046
1046
|
required: r.is_required
|
|
1047
1047
|
})
|
|
1048
1048
|
}, h(r.label_name), 3),
|
|
1049
1049
|
s("div", {
|
|
1050
|
-
onDragover: t[3] || (t[3] = N((...
|
|
1051
|
-
onDragleave: t[4] || (t[4] = N((...
|
|
1052
|
-
onDrop: t[5] || (t[5] = N((...
|
|
1050
|
+
onDragover: t[3] || (t[3] = N((...l) => a.onDragOver && a.onDragOver(...l), ["prevent"])),
|
|
1051
|
+
onDragleave: t[4] || (t[4] = N((...l) => a.onDragLeave && a.onDragLeave(...l), ["prevent"])),
|
|
1052
|
+
onDrop: t[5] || (t[5] = N((...l) => a.onDrop && a.onDrop(...l), ["prevent"])),
|
|
1053
1053
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
1054
1054
|
}, [
|
|
1055
1055
|
s("div", Zt, [
|
|
@@ -1058,60 +1058,60 @@ function wr(e, t, r, n, o, a) {
|
|
|
1058
1058
|
ref: "file_input" + r.field_name,
|
|
1059
1059
|
hidden: "",
|
|
1060
1060
|
multiple: r.has_multiple_file,
|
|
1061
|
-
onChange: t[0] || (t[0] = (...
|
|
1061
|
+
onChange: t[0] || (t[0] = (...l) => a.uploadFiles && a.uploadFiles(...l))
|
|
1062
1062
|
}, null, 40, Kt),
|
|
1063
1063
|
O(s("input", {
|
|
1064
1064
|
type: "hidden",
|
|
1065
1065
|
name: r.field_name,
|
|
1066
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1066
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => a.uploadedFileIds = l)
|
|
1067
1067
|
}, null, 8, Wt), [
|
|
1068
1068
|
[V, a.uploadedFileIds]
|
|
1069
1069
|
]),
|
|
1070
1070
|
o.isDragging ? (d(), u("div", Qt, tr)) : (d(), u("div", {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "flex flex-col items-center justify-center",
|
|
1073
|
-
onClick: t[2] || (t[2] = (
|
|
1073
|
+
onClick: t[2] || (t[2] = (l) => e.$refs["file_input" + this.field_name].click())
|
|
1074
1074
|
}, Jt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
1077
|
s("span", rr, h(o.error_message_data), 1),
|
|
1078
1078
|
s("small", sr, h(r.description), 1),
|
|
1079
1079
|
o.files.length > 0 ? (d(), u("section", ar, [
|
|
1080
|
-
(d(!0), u(v, null, k(o.files, (
|
|
1080
|
+
(d(!0), u(v, null, k(o.files, (l, c) => (d(), u("li", nr, [
|
|
1081
1081
|
or,
|
|
1082
|
-
s("div",
|
|
1083
|
-
s("div",
|
|
1084
|
-
s("span", dr, h(a.getFileName(
|
|
1085
|
-
s("span", ur, h(
|
|
1082
|
+
s("div", lr, [
|
|
1083
|
+
s("div", ir, [
|
|
1084
|
+
s("span", dr, h(a.getFileName(l.file_name)), 1),
|
|
1085
|
+
s("span", ur, h(l.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
1087
|
s("div", cr, [
|
|
1088
1088
|
s("div", {
|
|
1089
1089
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
1090
|
-
style: et({ width:
|
|
1090
|
+
style: et({ width: l.loading + "%" })
|
|
1091
1091
|
}, null, 4)
|
|
1092
1092
|
])
|
|
1093
1093
|
])
|
|
1094
1094
|
]))), 256))
|
|
1095
1095
|
])) : g("", !0),
|
|
1096
1096
|
s("section", fr, [
|
|
1097
|
-
(d(!0), u(v, null, k(o.uploadFileList, (
|
|
1098
|
-
s("div",
|
|
1097
|
+
(d(!0), u(v, null, k(o.uploadFileList, (l, c) => (d(), u("li", gr, [
|
|
1098
|
+
s("div", hr, [
|
|
1099
1099
|
mr,
|
|
1100
|
-
s("div",
|
|
1101
|
-
s("span",
|
|
1102
|
-
s("span",
|
|
1100
|
+
s("div", br, [
|
|
1101
|
+
s("span", pr, h(a.getFileName(l.file_name)), 1),
|
|
1102
|
+
s("span", yr, h(a.formatFileSize(l.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
|
-
s("div",
|
|
1105
|
+
s("div", _r, [
|
|
1106
1106
|
s("a", {
|
|
1107
|
-
href:
|
|
1107
|
+
href: l.url,
|
|
1108
1108
|
target: "_blank",
|
|
1109
1109
|
class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
|
|
1110
1110
|
}, null, 8, vr),
|
|
1111
1111
|
r.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
onClick: (f) => {
|
|
1114
|
-
o.media_id =
|
|
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
1117
|
}, null, 8, xr)) : g("", !0)
|
|
@@ -1121,7 +1121,7 @@ function wr(e, t, r, n, o, a) {
|
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const wd = /* @__PURE__ */ S(Ht, [["render", wr]]), kr = {
|
|
1125
1125
|
computed: {
|
|
1126
1126
|
...qt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
@@ -1199,7 +1199,7 @@ const yd = /* @__PURE__ */ S(Ht, [["render", wr]]), kr = {
|
|
|
1199
1199
|
function Er(e, t, r, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
|
-
class:
|
|
1202
|
+
class: b(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg", a.alertClasses]),
|
|
1203
1203
|
role: "alert"
|
|
1204
1204
|
}, [
|
|
1205
1205
|
$r,
|
|
@@ -1207,13 +1207,13 @@ function Er(e, t, r, n, o, a) {
|
|
|
1207
1207
|
s("div", Sr, h(e.notification.message), 1),
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
|
-
onClick: t[0] || (t[0] = (...
|
|
1211
|
-
class:
|
|
1210
|
+
onClick: t[0] || (t[0] = (...i) => a.dismiss && a.dismiss(...i)),
|
|
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
1214
|
], 2)) : g("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const kd = /* @__PURE__ */ S(kr, [["render", Er]]), jr = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1251,31 +1251,31 @@ const vd = /* @__PURE__ */ S(kr, [["render", Er]]), jr = {
|
|
|
1251
1251
|
}, Ar = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Tr = ["name", "value", "id", "checked"], Ir = ["for"];
|
|
1252
1252
|
function Mr(e, t, r, n, o, a) {
|
|
1253
1253
|
return d(), u("ul", Ar, [
|
|
1254
|
-
(d(!0), u(v, null, k(o.locals, (
|
|
1254
|
+
(d(!0), u(v, null, k(o.locals, (i, l) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
1257
1257
|
name: r.trans_selector_name,
|
|
1258
|
-
value:
|
|
1258
|
+
value: i,
|
|
1259
1259
|
class: "hidden peer",
|
|
1260
|
-
id:
|
|
1260
|
+
id: i + "_" + r.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
|
-
checked:
|
|
1262
|
+
checked: i === o.default_language
|
|
1263
1263
|
}, null, 8, Tr),
|
|
1264
1264
|
s("label", {
|
|
1265
|
-
for:
|
|
1266
|
-
class:
|
|
1267
|
-
"border md:!rounded-s-lg":
|
|
1268
|
-
"border md:!rounded-e-lg":
|
|
1269
|
-
"border-t border-b":
|
|
1265
|
+
for: i + "_" + r.field_name,
|
|
1266
|
+
class: b([{
|
|
1267
|
+
"border md:!rounded-s-lg": l === 0,
|
|
1268
|
+
"border md:!rounded-e-lg": l === o.locals.length - 1,
|
|
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
|
-
}, h(
|
|
1271
|
+
}, h(i), 11, Ir)
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const $d = /* @__PURE__ */ S(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
|
+
}, Cd = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1286,7 +1286,7 @@ const xd = /* @__PURE__ */ S(jr, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1286
1286
|
setup(e) {
|
|
1287
1287
|
const t = e, r = G(() => t.class);
|
|
1288
1288
|
return (n, o) => (d(), u("div", {
|
|
1289
|
-
class:
|
|
1289
|
+
class: b(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
1291
|
s("div", Nr, [
|
|
1292
1292
|
s("div", Vr, [
|
|
@@ -1487,27 +1487,27 @@ function ns(e, t, r, n, o, a) {
|
|
|
1487
1487
|
return d(), u(v, null, [
|
|
1488
1488
|
r.show ? (d(), u("div", {
|
|
1489
1489
|
key: 0,
|
|
1490
|
-
class:
|
|
1490
|
+
class: b(r.field_name)
|
|
1491
1491
|
}, [
|
|
1492
1492
|
s("h3", Fr, h(r.label_name), 1),
|
|
1493
1493
|
s("p", Rr, [
|
|
1494
|
-
(d(!0), u(v, null, k(o.selected, (
|
|
1494
|
+
(d(!0), u(v, null, k(o.selected, (i, l) => (d(), u("span", Ur, h(i.name), 1))), 256))
|
|
1495
1495
|
]),
|
|
1496
1496
|
qr
|
|
1497
1497
|
], 2)) : g("", !0),
|
|
1498
1498
|
r.show ? g("", !0) : (d(), u("div", {
|
|
1499
1499
|
key: 1,
|
|
1500
|
-
class:
|
|
1500
|
+
class: b(["mb-4", r.field_name])
|
|
1501
1501
|
}, [
|
|
1502
|
-
(d(!0), u(v, null, k(o.selectedIds, (
|
|
1502
|
+
(d(!0), u(v, null, k(o.selectedIds, (i, l) => (d(), u("input", {
|
|
1503
1503
|
type: "hidden",
|
|
1504
1504
|
name: r.field_name + "[]",
|
|
1505
|
-
key:
|
|
1506
|
-
value:
|
|
1505
|
+
key: l,
|
|
1506
|
+
value: i
|
|
1507
1507
|
}, null, 8, zr))), 128)),
|
|
1508
1508
|
r.options ? (d(), u("div", Hr, [
|
|
1509
1509
|
s("label", {
|
|
1510
|
-
class:
|
|
1510
|
+
class: b({
|
|
1511
1511
|
"gl-label-form": r.error_message == "",
|
|
1512
1512
|
"gl-label-form-invalid": r.error_message !== "",
|
|
1513
1513
|
required: r.is_required
|
|
@@ -1515,12 +1515,12 @@ function ns(e, t, r, n, o, a) {
|
|
|
1515
1515
|
}, h(r.label_name), 3),
|
|
1516
1516
|
s("div", Zr, [
|
|
1517
1517
|
s("button", {
|
|
1518
|
-
onClick: t[0] || (t[0] = (...
|
|
1518
|
+
onClick: t[0] || (t[0] = (...i) => a.selectAll && a.selectAll(...i)),
|
|
1519
1519
|
type: "button",
|
|
1520
1520
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-s-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
1521
1521
|
}, " Select all "),
|
|
1522
1522
|
s("button", {
|
|
1523
|
-
onClick: t[1] || (t[1] = (...
|
|
1523
|
+
onClick: t[1] || (t[1] = (...i) => a.deselectAll && a.deselectAll(...i)),
|
|
1524
1524
|
type: "button",
|
|
1525
1525
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-e-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
1526
1526
|
}, " Deselect all ")
|
|
@@ -1529,21 +1529,21 @@ function ns(e, t, r, n, o, a) {
|
|
|
1529
1529
|
s("div", Wr, [
|
|
1530
1530
|
s("div", {
|
|
1531
1531
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1532
|
-
onClick: t[2] || (t[2] = (
|
|
1532
|
+
onClick: t[2] || (t[2] = (i) => a.showOptions())
|
|
1533
1533
|
}, [
|
|
1534
|
-
(d(!0), u(v, null, k(o.selected, (
|
|
1535
|
-
key:
|
|
1534
|
+
(d(!0), u(v, null, k(o.selected, (i, l) => (d(), u("span", {
|
|
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(h(
|
|
1538
|
+
w(h(i.name) + " ", 1),
|
|
1539
1539
|
s("i", {
|
|
1540
|
-
onClick: N((c) => a.clearOption(
|
|
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
1542
|
}, null, 8, Xr)
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
1546
|
-
class:
|
|
1546
|
+
class: b([o.optionsShown ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700"]),
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
@@ -1554,10 +1554,10 @@ function ns(e, t, r, n, o, a) {
|
|
|
1554
1554
|
ts,
|
|
1555
1555
|
O(s("input", {
|
|
1556
1556
|
type: "search",
|
|
1557
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
1557
|
+
"onUpdate:modelValue": t[3] || (t[3] = (i) => o.searchFilter = i),
|
|
1558
1558
|
id: r.field_name + "search",
|
|
1559
1559
|
ref: r.field_name + "search",
|
|
1560
|
-
onBlur: t[4] || (t[4] = (
|
|
1560
|
+
onBlur: t[4] || (t[4] = (i) => a.exit()),
|
|
1561
1561
|
autocomplete: "off",
|
|
1562
1562
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
1563
1563
|
placeholder: "Search ..."
|
|
@@ -1567,16 +1567,16 @@ function ns(e, t, r, n, o, a) {
|
|
|
1567
1567
|
])
|
|
1568
1568
|
]),
|
|
1569
1569
|
s("div", ss, [
|
|
1570
|
-
(d(!0), u(v, null, k(a.filteredOptions, (
|
|
1571
|
-
class:
|
|
1570
|
+
(d(!0), u(v, null, k(a.filteredOptions, (i, l) => (d(), u("div", {
|
|
1571
|
+
class: b([
|
|
1572
1572
|
"block 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",
|
|
1573
|
-
|
|
1573
|
+
l + 1 == o.count || a.isOptionSelected(i.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
1574
1574
|
]),
|
|
1575
|
-
onClick: (c) => a.selectOption(
|
|
1576
|
-
onMousedown: (c) => a.selectOption(
|
|
1577
|
-
key:
|
|
1578
|
-
id:
|
|
1579
|
-
}, h(
|
|
1575
|
+
onClick: (c) => a.selectOption(i),
|
|
1576
|
+
onMousedown: (c) => a.selectOption(i),
|
|
1577
|
+
key: l,
|
|
1578
|
+
id: l + 1
|
|
1579
|
+
}, h(i.name || i.id || "-"), 43, as))), 128))
|
|
1580
1580
|
])
|
|
1581
1581
|
], 512), [
|
|
1582
1582
|
[F, o.optionsShown]
|
|
@@ -1586,7 +1586,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const Sd = /* @__PURE__ */ S(Gr, [["render", ns]]), os = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1642,7 +1642,7 @@ const kd = /* @__PURE__ */ S(Gr, [["render", ns]]), os = {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
},
|
|
1644
1644
|
methods: {}
|
|
1645
|
-
},
|
|
1645
|
+
}, ls = /* @__PURE__ */ s("svg", {
|
|
1646
1646
|
"aria-hidden": "true",
|
|
1647
1647
|
role: "status",
|
|
1648
1648
|
class: "inline w-4 h-4 me-3 animate-spin",
|
|
@@ -1659,14 +1659,14 @@ const kd = /* @__PURE__ */ S(Gr, [["render", ns]]), os = {
|
|
|
1659
1659
|
fill: "#1C64F2"
|
|
1660
1660
|
})
|
|
1661
1661
|
], -1);
|
|
1662
|
-
function
|
|
1662
|
+
function is(e, t, r, n, o, a) {
|
|
1663
1663
|
return r.is_loading ? (d(), K(oe("button"), {
|
|
1664
1664
|
key: 1,
|
|
1665
1665
|
disabled: "",
|
|
1666
|
-
class:
|
|
1666
|
+
class: b(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
|
|
1667
1667
|
}, {
|
|
1668
1668
|
default: J(() => [
|
|
1669
|
-
|
|
1669
|
+
ls,
|
|
1670
1670
|
w(" Loading... ")
|
|
1671
1671
|
]),
|
|
1672
1672
|
_: 1
|
|
@@ -1681,14 +1681,14 @@ function ls(e, t, r, n, o, a) {
|
|
|
1681
1681
|
default: J(() => [
|
|
1682
1682
|
r.icon ? (d(), u("i", {
|
|
1683
1683
|
key: 0,
|
|
1684
|
-
class:
|
|
1684
|
+
class: b([r.icon, "text-base"])
|
|
1685
1685
|
}, null, 2)) : g("", !0),
|
|
1686
1686
|
T(e.$slots, "default")
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 3
|
|
1689
1689
|
}, 16, ["type", "disabled", "href", "class"]));
|
|
1690
1690
|
}
|
|
1691
|
-
const
|
|
1691
|
+
const Dd = /* @__PURE__ */ S(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" }, Od = {
|
|
1692
1692
|
__name: "GlTextareaTranslate",
|
|
1693
1693
|
props: {
|
|
1694
1694
|
is_required: {
|
|
@@ -1746,21 +1746,21 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), 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 = C(null),
|
|
1749
|
+
const n = e, o = r, a = C(null), i = C(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,
|
|
1753
1753
|
row_id: n.translatable.row_id,
|
|
1754
1754
|
field: n.translatable.field
|
|
1755
|
-
}).then((
|
|
1756
|
-
|
|
1757
|
-
}).catch((
|
|
1758
|
-
console.log(
|
|
1755
|
+
}).then((l) => {
|
|
1756
|
+
i.value.value = JSON.stringify(l.data), o("update:modelValueTranslate", JSON.stringify(l.data)), console.log("input_translate", i.value.value);
|
|
1757
|
+
}).catch((l) => {
|
|
1758
|
+
console.log(l);
|
|
1759
1759
|
});
|
|
1760
|
-
}), t({ focus: () => a.value.focus() }), (
|
|
1760
|
+
}), t({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
1761
1761
|
e.show ? (d(), u("div", {
|
|
1762
1762
|
key: 0,
|
|
1763
|
-
class:
|
|
1763
|
+
class: b(e.field_name)
|
|
1764
1764
|
}, [
|
|
1765
1765
|
s("h3", ds, h(e.label_name), 1),
|
|
1766
1766
|
O(s("input", {
|
|
@@ -1769,10 +1769,10 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1769
1769
|
name: e.field_name + "_i18n",
|
|
1770
1770
|
id: e.field_name + "_i18n",
|
|
1771
1771
|
ref_key: "input_translate",
|
|
1772
|
-
ref:
|
|
1773
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) =>
|
|
1772
|
+
ref: i,
|
|
1773
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.inputTranslateValue = f)
|
|
1774
1774
|
}, null, 8, us), [
|
|
1775
|
-
[V,
|
|
1775
|
+
[V, l.inputTranslateValue]
|
|
1776
1776
|
]),
|
|
1777
1777
|
s("p", {
|
|
1778
1778
|
id: e.field_name,
|
|
@@ -1782,49 +1782,49 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1782
1782
|
], 2)) : g("", !0),
|
|
1783
1783
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1784
1784
|
key: 1,
|
|
1785
|
-
class:
|
|
1785
|
+
class: b(["mb-4", e.field_name])
|
|
1786
1786
|
}, [
|
|
1787
1787
|
s("label", {
|
|
1788
|
-
class:
|
|
1788
|
+
class: b({
|
|
1789
1789
|
"gl-label-translation-form": e.error_message == "",
|
|
1790
1790
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1791
1791
|
required: e.is_required
|
|
1792
1792
|
}),
|
|
1793
1793
|
for: e.field_name
|
|
1794
|
-
}, h(e.label_name), 11,
|
|
1795
|
-
|
|
1794
|
+
}, h(e.label_name), 11, gs),
|
|
1795
|
+
hs,
|
|
1796
1796
|
s("input", {
|
|
1797
1797
|
class: "mb-4",
|
|
1798
1798
|
type: "hidden",
|
|
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] = (f) =>
|
|
1802
|
+
onInput: c[1] || (c[1] = (f) => l.$emit("update:modelValueTranslate", f.target.value)),
|
|
1803
1803
|
ref_key: "input_translate",
|
|
1804
|
-
ref:
|
|
1804
|
+
ref: i
|
|
1805
1805
|
}, null, 40, ms),
|
|
1806
1806
|
s("textarea", {
|
|
1807
1807
|
required: e.is_required,
|
|
1808
1808
|
name: e.field_name,
|
|
1809
1809
|
id: e.field_name,
|
|
1810
|
-
class:
|
|
1810
|
+
class: b({
|
|
1811
1811
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
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] = (f) =>
|
|
1816
|
-
onKeydown: c[3] || (c[3] = (f) =>
|
|
1815
|
+
onInput: c[2] || (c[2] = (f) => l.$emit("update:modelValue", f.target.value)),
|
|
1816
|
+
onKeydown: c[3] || (c[3] = (f) => l.$emit("keydown", f)),
|
|
1817
1817
|
ref_key: "input",
|
|
1818
1818
|
ref: a,
|
|
1819
1819
|
rows: "4"
|
|
1820
1820
|
}, `
|
|
1821
|
-
`, 42,
|
|
1822
|
-
s("span",
|
|
1823
|
-
s("small",
|
|
1821
|
+
`, 42, bs),
|
|
1822
|
+
s("span", ps, h(e.error_message), 1),
|
|
1823
|
+
s("small", ys, h(e.description), 1)
|
|
1824
1824
|
], 2))
|
|
1825
1825
|
], 64));
|
|
1826
1826
|
}
|
|
1827
|
-
},
|
|
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" }, Pd = {
|
|
1828
1828
|
__name: "GlTinymceTranslate",
|
|
1829
1829
|
props: {
|
|
1830
1830
|
is_required: {
|
|
@@ -1882,7 +1882,7 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), 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 = C(null),
|
|
1885
|
+
const n = e, o = r, a = C(null), i = C(null);
|
|
1886
1886
|
return R(() => {
|
|
1887
1887
|
tinymce.init({
|
|
1888
1888
|
selector: "#" + n.field_name,
|
|
@@ -1892,27 +1892,27 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1892
1892
|
model: n.translatable.model,
|
|
1893
1893
|
row_id: n.translatable.row_id,
|
|
1894
1894
|
field: n.translatable.field
|
|
1895
|
-
}).then((
|
|
1896
|
-
|
|
1897
|
-
}).catch((
|
|
1898
|
-
console.log(
|
|
1895
|
+
}).then((l) => {
|
|
1896
|
+
i.value.value = JSON.stringify(l.data), o("update:modelValueTranslate", JSON.stringify(l.data));
|
|
1897
|
+
}).catch((l) => {
|
|
1898
|
+
console.log(l);
|
|
1899
1899
|
});
|
|
1900
|
-
}), t({ focus: () => a.value.focus() }), (
|
|
1900
|
+
}), t({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
1901
1901
|
e.show ? (d(), u("div", {
|
|
1902
1902
|
key: 0,
|
|
1903
|
-
class:
|
|
1903
|
+
class: b(e.field_name)
|
|
1904
1904
|
}, [
|
|
1905
|
-
s("h3",
|
|
1905
|
+
s("h3", _s, h(e.label_name), 1),
|
|
1906
1906
|
O(s("input", {
|
|
1907
1907
|
type: "hidden",
|
|
1908
1908
|
"data-i18n": "true",
|
|
1909
1909
|
name: e.field_name + "_i18n",
|
|
1910
1910
|
id: e.field_name + "_i18n",
|
|
1911
1911
|
ref_key: "input_translate",
|
|
1912
|
-
ref:
|
|
1913
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) =>
|
|
1912
|
+
ref: i,
|
|
1913
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.inputTranslateValue = f)
|
|
1914
1914
|
}, null, 8, vs), [
|
|
1915
|
-
[V,
|
|
1915
|
+
[V, l.inputTranslateValue]
|
|
1916
1916
|
]),
|
|
1917
1917
|
s("p", {
|
|
1918
1918
|
id: e.field_name,
|
|
@@ -1922,10 +1922,10 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1922
1922
|
], 2)) : g("", !0),
|
|
1923
1923
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1924
1924
|
key: 1,
|
|
1925
|
-
class:
|
|
1925
|
+
class: b(["mb-4", e.field_name])
|
|
1926
1926
|
}, [
|
|
1927
1927
|
s("label", {
|
|
1928
|
-
class:
|
|
1928
|
+
class: b({
|
|
1929
1929
|
"gl-label-translation-form": e.error_message == "",
|
|
1930
1930
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1931
1931
|
required: e.is_required
|
|
@@ -1939,20 +1939,20 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), 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] = (f) =>
|
|
1942
|
+
onInput: c[1] || (c[1] = (f) => l.$emit("update:modelValueTranslate", f.target.value)),
|
|
1943
1943
|
ref_key: "input_translate",
|
|
1944
|
-
ref:
|
|
1944
|
+
ref: i
|
|
1945
1945
|
}, null, 40, Cs),
|
|
1946
1946
|
s("textarea", {
|
|
1947
1947
|
name: e.field_name,
|
|
1948
1948
|
id: e.field_name,
|
|
1949
|
-
class:
|
|
1949
|
+
class: b(["tiny", {
|
|
1950
1950
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
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] = (f) =>
|
|
1955
|
-
onKeydown: c[3] || (c[3] = (f) =>
|
|
1954
|
+
onInput: c[2] || (c[2] = (f) => l.$emit("update:modelValue", f.target.value)),
|
|
1955
|
+
onKeydown: c[3] || (c[3] = (f) => l.$emit("keydown", f)),
|
|
1956
1956
|
ref_key: "input",
|
|
1957
1957
|
ref: a,
|
|
1958
1958
|
rows: "4"
|
|
@@ -1963,7 +1963,7 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
1963
1963
|
], 2))
|
|
1964
1964
|
], 64));
|
|
1965
1965
|
}
|
|
1966
|
-
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"], As = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ts = ["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" },
|
|
1966
|
+
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"], As = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ts = ["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" }, Ed = {
|
|
1967
1967
|
__name: "GlTextTranslate",
|
|
1968
1968
|
props: {
|
|
1969
1969
|
is_required: {
|
|
@@ -2021,21 +2021,21 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), 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 = C(null),
|
|
2024
|
+
const n = e, o = r, a = C(null), i = C(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,
|
|
2028
2028
|
row_id: n.translatable.row_id,
|
|
2029
2029
|
field: n.translatable.field
|
|
2030
|
-
}).then((
|
|
2031
|
-
|
|
2032
|
-
}).catch((
|
|
2033
|
-
console.log(
|
|
2030
|
+
}).then((l) => {
|
|
2031
|
+
i.value.value = JSON.stringify(l.data), o("update:modelValueTranslate", JSON.stringify(l.data));
|
|
2032
|
+
}).catch((l) => {
|
|
2033
|
+
console.log(l);
|
|
2034
2034
|
});
|
|
2035
|
-
}), t({ focus: () => a.value.focus() }), (
|
|
2035
|
+
}), t({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
2036
2036
|
e.show ? (d(), u("div", {
|
|
2037
2037
|
key: 0,
|
|
2038
|
-
class:
|
|
2038
|
+
class: b(e.field_name)
|
|
2039
2039
|
}, [
|
|
2040
2040
|
s("h3", Ps, h(e.label_name), 1),
|
|
2041
2041
|
O(s("input", {
|
|
@@ -2044,9 +2044,9 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
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] = (f) =>
|
|
2047
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.inputTranslateValue = f)
|
|
2048
2048
|
}, null, 8, Es), [
|
|
2049
|
-
[V,
|
|
2049
|
+
[V, l.inputTranslateValue]
|
|
2050
2050
|
]),
|
|
2051
2051
|
s("p", {
|
|
2052
2052
|
id: e.field_name,
|
|
@@ -2056,10 +2056,10 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2056
2056
|
], 2)) : g("", !0),
|
|
2057
2057
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2058
2058
|
key: 1,
|
|
2059
|
-
class:
|
|
2059
|
+
class: b(["mb-4", e.field_name])
|
|
2060
2060
|
}, [
|
|
2061
2061
|
s("label", {
|
|
2062
|
-
class:
|
|
2062
|
+
class: b({
|
|
2063
2063
|
"gl-label-translation-form": e.error_message == "",
|
|
2064
2064
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
2065
2065
|
required: e.is_required
|
|
@@ -2073,21 +2073,21 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), 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] = (f) =>
|
|
2076
|
+
onInput: c[1] || (c[1] = (f) => l.$emit("update:modelValueTranslate", f.target.value)),
|
|
2077
2077
|
ref_key: "input_translate",
|
|
2078
|
-
ref:
|
|
2078
|
+
ref: i
|
|
2079
2079
|
}, null, 40, Ms),
|
|
2080
2080
|
s("input", {
|
|
2081
2081
|
required: e.is_required,
|
|
2082
2082
|
name: e.field_name,
|
|
2083
2083
|
id: e.field_name,
|
|
2084
|
-
class:
|
|
2084
|
+
class: b({
|
|
2085
2085
|
" gl-input-form form-input-translation mt-2 ": e.error_message == "",
|
|
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] = (f) =>
|
|
2090
|
-
onKeydown: c[3] || (c[3] = (f) =>
|
|
2089
|
+
onInput: c[2] || (c[2] = (f) => l.$emit("update:modelValue", f.target.value)),
|
|
2090
|
+
onKeydown: c[3] || (c[3] = (f) => l.$emit("keydown", f)),
|
|
2091
2091
|
ref_key: "input",
|
|
2092
2092
|
ref: a
|
|
2093
2093
|
}, null, 42, Ns),
|
|
@@ -2096,7 +2096,7 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
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" }, jd = {
|
|
2100
2100
|
__name: "GlTextInput",
|
|
2101
2101
|
props: {
|
|
2102
2102
|
is_required: {
|
|
@@ -2142,18 +2142,18 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2142
2142
|
R(() => {
|
|
2143
2143
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2144
2144
|
});
|
|
2145
|
-
const
|
|
2145
|
+
const i = G({
|
|
2146
2146
|
get() {
|
|
2147
2147
|
return n.modelValue;
|
|
2148
2148
|
},
|
|
2149
|
-
set(
|
|
2150
|
-
o("update:modelValue",
|
|
2149
|
+
set(l) {
|
|
2150
|
+
o("update:modelValue", l);
|
|
2151
2151
|
}
|
|
2152
2152
|
});
|
|
2153
|
-
return t({ focus: () => a.value.focus() }), (
|
|
2153
|
+
return t({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
2154
2154
|
e.show ? (d(), u("div", {
|
|
2155
2155
|
key: 0,
|
|
2156
|
-
class:
|
|
2156
|
+
class: b(e.field_name)
|
|
2157
2157
|
}, [
|
|
2158
2158
|
s("h3", Bs, h(e.label_name), 1),
|
|
2159
2159
|
s("p", Gs, h(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
@@ -2161,10 +2161,10 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2161
2161
|
], 2)) : g("", !0),
|
|
2162
2162
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2163
2163
|
key: 1,
|
|
2164
|
-
class:
|
|
2164
|
+
class: b(["mb-4", e.field_name])
|
|
2165
2165
|
}, [
|
|
2166
2166
|
s("label", {
|
|
2167
|
-
class:
|
|
2167
|
+
class: b({
|
|
2168
2168
|
"gl-label-form": e.error_message == "",
|
|
2169
2169
|
"gl-label-form-invalid": e.error_message !== "",
|
|
2170
2170
|
required: e.is_required
|
|
@@ -2175,17 +2175,17 @@ const $d = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold pte
|
|
|
2175
2175
|
required: e.is_required,
|
|
2176
2176
|
name: e.field_name,
|
|
2177
2177
|
id: e.field_name,
|
|
2178
|
-
class:
|
|
2178
|
+
class: b({
|
|
2179
2179
|
"gl-input-form": e.error_message == "",
|
|
2180
2180
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2181
2181
|
}),
|
|
2182
2182
|
type: e.type,
|
|
2183
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) =>
|
|
2184
|
-
onKeydown: c[1] || (c[1] = (f) =>
|
|
2183
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
2184
|
+
onKeydown: c[1] || (c[1] = (f) => l.$emit("keydown", f)),
|
|
2185
2185
|
ref_key: "input",
|
|
2186
2186
|
ref: a
|
|
2187
2187
|
}, null, 42, Us), [
|
|
2188
|
-
[tt,
|
|
2188
|
+
[tt, i.value]
|
|
2189
2189
|
]),
|
|
2190
2190
|
s("span", qs, h(e.error_message), 1),
|
|
2191
2191
|
s("small", zs, h(e.description), 1)
|
|
@@ -2206,18 +2206,18 @@ function ea(e, t, r, n, o, a) {
|
|
|
2206
2206
|
s("div", Zs, [
|
|
2207
2207
|
s("div", Ks, [
|
|
2208
2208
|
s("ul", Ws, [
|
|
2209
|
-
(d(!0), u(v, null, k(n.tabs, (
|
|
2210
|
-
key:
|
|
2211
|
-
onClick: (
|
|
2209
|
+
(d(!0), u(v, null, k(n.tabs, (i) => (d(), u("li", {
|
|
2210
|
+
key: i.title,
|
|
2211
|
+
onClick: (l) => n.selectedTitle = i.title,
|
|
2212
2212
|
class: "flex-auto -mb-px text-center"
|
|
2213
2213
|
}, [
|
|
2214
2214
|
s("a", {
|
|
2215
|
-
class:
|
|
2215
|
+
class: b([{ "text-slate-600 bg-white dark:bg-meta-4": n.selectedTitle != i.title, "text-white bg-slate-600 dark:bg-primary": n.selectedTitle === i.title }, "block px-5 py-3 text-xs font-bold leading-normal rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])
|
|
2216
2216
|
}, [
|
|
2217
2217
|
s("i", {
|
|
2218
|
-
class:
|
|
2218
|
+
class: b([i.icon, "mr-1 text-base"])
|
|
2219
2219
|
}, null, 2),
|
|
2220
|
-
w(" " + h(
|
|
2220
|
+
w(" " + h(i.title), 1)
|
|
2221
2221
|
], 2)
|
|
2222
2222
|
], 8, Xs))), 128))
|
|
2223
2223
|
])
|
|
@@ -2232,7 +2232,7 @@ function ea(e, t, r, n, o, a) {
|
|
|
2232
2232
|
])
|
|
2233
2233
|
], 64);
|
|
2234
2234
|
}
|
|
2235
|
-
const
|
|
2235
|
+
const Ad = /* @__PURE__ */ S(Hs, [["render", ea]]), ta = {
|
|
2236
2236
|
props: ["title"],
|
|
2237
2237
|
setup() {
|
|
2238
2238
|
return {
|
|
@@ -2247,7 +2247,7 @@ function sa(e, t, r, n, o, a) {
|
|
|
2247
2247
|
[F, r.title == n.selectedTitle]
|
|
2248
2248
|
]);
|
|
2249
2249
|
}
|
|
2250
|
-
const
|
|
2250
|
+
const Td = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
2251
2251
|
props: {
|
|
2252
2252
|
elements_to_show_prop: {
|
|
2253
2253
|
type: Number,
|
|
@@ -2308,13 +2308,13 @@ const Ed = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2308
2308
|
let e = this, t = document.getElementById("slider_" + this.Random_string);
|
|
2309
2309
|
const r = (o) => {
|
|
2310
2310
|
t.style.cursor = "grabbing";
|
|
2311
|
-
const a = (
|
|
2312
|
-
const c =
|
|
2313
|
-
Math.abs(m) > Math.abs(y) ? (
|
|
2314
|
-
},
|
|
2315
|
-
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup",
|
|
2311
|
+
const a = (l) => {
|
|
2312
|
+
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX, f = l.clientY || l.touches && l.touches[0] && l.touches[0].clientY, m = c - e.initialX, y = f - e.initialY;
|
|
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
|
+
}, i = () => {
|
|
2315
|
+
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", i), document.removeEventListener("touchend", i), t.style.cursor = "grab";
|
|
2316
2316
|
};
|
|
2317
|
-
document.addEventListener("mousemove", a), document.addEventListener("touchmove", a, { passive: !1 }), document.addEventListener("mouseup",
|
|
2317
|
+
document.addEventListener("mousemove", a), document.addEventListener("touchmove", a, { passive: !1 }), document.addEventListener("mouseup", i), document.addEventListener("touchend", i), e.initialX = o.clientX || o.touches && o.touches[0] && o.touches[0].clientX, e.initialY = o.clientY || o.touches && o.touches[0] && o.touches[0].clientY;
|
|
2318
2318
|
}, n = (o) => {
|
|
2319
2319
|
o.key === "ArrowLeft" ? e.prev() : o.key === "ArrowRight" && e.next();
|
|
2320
2320
|
};
|
|
@@ -2327,18 +2327,18 @@ const Ed = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2327
2327
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
2328
2328
|
},
|
|
2329
2329
|
initSlider() {
|
|
2330
|
-
let e = document.getElementById("sliderContainer_" + this.Random_string), t = document.getElementById("mainSliderContainer_" + this.Random_string), r = document.getElementById("slider_" + this.Random_string), n = r.querySelectorAll("li"), o = Array.from(n).filter((
|
|
2331
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1,
|
|
2330
|
+
let e = document.getElementById("sliderContainer_" + this.Random_string), t = document.getElementById("mainSliderContainer_" + this.Random_string), r = document.getElementById("slider_" + this.Random_string), n = r.querySelectorAll("li"), o = Array.from(n).filter((l) => l.parentNode === r), a = e.clientWidth, i = a / this.elementsToShow;
|
|
2331
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, i = this.hide_arrow ? t.clientWidth : a) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, i = this.hide_arrow ? t.clientWidth : a), o.length > 1) {
|
|
2332
2332
|
this.dotsNum = this.elementsToShow == 1 ? o.length : o.length - this.elementsToShow + 1;
|
|
2333
|
-
let
|
|
2333
|
+
let l = this.elementsToShow == 1 ? i * o.length / this.dotsNum : i * (o.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
2334
2334
|
this.dotsNavigation = [];
|
|
2335
2335
|
for (let c = 0; c < this.dotsNum; c++)
|
|
2336
|
-
this.dotsNavigation.push(
|
|
2336
|
+
this.dotsNavigation.push(l * c);
|
|
2337
2337
|
}
|
|
2338
|
-
r.style.width = o.length *
|
|
2339
|
-
for (let
|
|
2340
|
-
const c = o[
|
|
2341
|
-
c.style.width =
|
|
2338
|
+
r.style.width = o.length * i + "px", r.style.transition = "margin", r.style.transitionDuration = "1s";
|
|
2339
|
+
for (let l = 0; l < o.length; l++) {
|
|
2340
|
+
const c = o[l];
|
|
2341
|
+
c.style.width = i + "px";
|
|
2342
2342
|
}
|
|
2343
2343
|
},
|
|
2344
2344
|
setDot(e) {
|
|
@@ -2349,7 +2349,7 @@ const Ed = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2349
2349
|
}, P = (e) => (st("data-v-a94f16a9"), e = e(), at(), e), na = ["id"], oa = {
|
|
2350
2350
|
key: 0,
|
|
2351
2351
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2352
|
-
},
|
|
2352
|
+
}, la = { class: "w-full" }, ia = {
|
|
2353
2353
|
key: 0,
|
|
2354
2354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2355
2355
|
class: "w-6 h-6",
|
|
@@ -2375,9 +2375,9 @@ const Ed = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2375
2375
|
"stroke-linecap": "round",
|
|
2376
2376
|
"stroke-linejoin": "round",
|
|
2377
2377
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2378
|
-
}, null, -1)),
|
|
2378
|
+
}, null, -1)), ga = [
|
|
2379
2379
|
fa
|
|
2380
|
-
],
|
|
2380
|
+
], ha = ["id"], ma = ["id"], ba = { class: "w-full" }, pa = {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2383
2383
|
class: "w-6 h-6",
|
|
@@ -2385,12 +2385,12 @@ const Ed = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2385
2385
|
viewBox: "0 0 24 24",
|
|
2386
2386
|
stroke: "currentColor",
|
|
2387
2387
|
"stroke-width": "2"
|
|
2388
|
-
},
|
|
2388
|
+
}, ya = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2389
2389
|
"stroke-linecap": "round",
|
|
2390
2390
|
"stroke-linejoin": "round",
|
|
2391
2391
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2392
|
-
}, null, -1)),
|
|
2393
|
-
|
|
2392
|
+
}, null, -1)), _a = [
|
|
2393
|
+
ya
|
|
2394
2394
|
], va = {
|
|
2395
2395
|
key: 1,
|
|
2396
2396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2534,22 +2534,22 @@ const Ed = /* @__PURE__ */ S(ta, [["render", sa]]), aa = {
|
|
|
2534
2534
|
function dn(e, t, r, n, o, a) {
|
|
2535
2535
|
return d(), u("div", null, [
|
|
2536
2536
|
s("div", {
|
|
2537
|
-
class:
|
|
2537
|
+
class: b(["", !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
2538
2538
|
id: "mainSliderContainer_" + e.Random_string
|
|
2539
2539
|
}, [
|
|
2540
2540
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", oa, [
|
|
2541
|
-
s("div",
|
|
2541
|
+
s("div", la, [
|
|
2542
2542
|
s("button", {
|
|
2543
2543
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2544
|
-
onClick: t[0] || (t[0] = (
|
|
2544
|
+
onClick: t[0] || (t[0] = (i) => a.prev())
|
|
2545
2545
|
}, [
|
|
2546
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2547
|
-
r.direction_property == "rtl" ? (d(), u("svg", ca,
|
|
2546
|
+
r.direction_property == "ltr" ? (d(), u("svg", ia, ua)) : g("", !0),
|
|
2547
|
+
r.direction_property == "rtl" ? (d(), u("svg", ca, ga)) : g("", !0)
|
|
2548
2548
|
])
|
|
2549
2549
|
])
|
|
2550
2550
|
])) : g("", !0),
|
|
2551
2551
|
s("div", {
|
|
2552
|
-
class:
|
|
2552
|
+
class: b(["overflow-hidden", a.sliderContainerAction()]),
|
|
2553
2553
|
id: "sliderContainer_" + e.Random_string
|
|
2554
2554
|
}, [
|
|
2555
2555
|
s("ul", {
|
|
@@ -2558,14 +2558,14 @@ function dn(e, t, r, n, o, a) {
|
|
|
2558
2558
|
}, [
|
|
2559
2559
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2560
2560
|
key: 0,
|
|
2561
|
-
class:
|
|
2561
|
+
class: b(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", r.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
2562
2562
|
}, [
|
|
2563
|
-
s("div",
|
|
2563
|
+
s("div", ba, [
|
|
2564
2564
|
s("button", {
|
|
2565
2565
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2566
|
-
onClick: t[1] || (t[1] = N((
|
|
2566
|
+
onClick: t[1] || (t[1] = N((i) => a.prev(), ["stop"]))
|
|
2567
2567
|
}, [
|
|
2568
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2568
|
+
r.direction_property == "ltr" ? (d(), u("svg", pa, _a)) : g("", !0),
|
|
2569
2569
|
r.direction_property == "rtl" ? (d(), u("svg", va, wa)) : g("", !0)
|
|
2570
2570
|
])
|
|
2571
2571
|
])
|
|
@@ -2573,12 +2573,12 @@ function dn(e, t, r, n, o, a) {
|
|
|
2573
2573
|
T(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
|
-
class:
|
|
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"])
|
|
2577
2577
|
}, [
|
|
2578
2578
|
s("div", ka, [
|
|
2579
2579
|
s("button", {
|
|
2580
2580
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2581
|
-
onClick: t[2] || (t[2] = N((
|
|
2581
|
+
onClick: t[2] || (t[2] = N((i) => a.next(), ["stop"]))
|
|
2582
2582
|
}, [
|
|
2583
2583
|
r.direction_property == "ltr" ? (d(), u("svg", $a, Sa)) : g("", !0),
|
|
2584
2584
|
r.direction_property == "rtl" ? (d(), u("svg", Da, Pa)) : g("", !0)
|
|
@@ -2588,32 +2588,32 @@ function dn(e, t, r, n, o, a) {
|
|
|
2588
2588
|
], 8, ma),
|
|
2589
2589
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2590
2590
|
key: 0,
|
|
2591
|
-
class:
|
|
2591
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2592
2592
|
}, [
|
|
2593
|
-
(d(!0), u(v, null, k(e.dotsNum, (
|
|
2593
|
+
(d(!0), u(v, null, k(e.dotsNum, (i) => (d(), u("button", {
|
|
2594
2594
|
role: "button",
|
|
2595
|
-
class:
|
|
2596
|
-
key:
|
|
2597
|
-
onClick: (
|
|
2595
|
+
class: b(["gl-dot", { active: e.currentDot == i }]),
|
|
2596
|
+
key: i,
|
|
2597
|
+
onClick: (l) => a.setDot(i)
|
|
2598
2598
|
}, Aa, 10, Ea))), 128))
|
|
2599
2599
|
], 2)) : g("", !0),
|
|
2600
2600
|
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Ta, [
|
|
2601
2601
|
s("div", {
|
|
2602
|
-
class:
|
|
2602
|
+
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2603
2603
|
}, [
|
|
2604
|
-
(d(!0), u(v, null, k(e.dotsNum, (
|
|
2604
|
+
(d(!0), u(v, null, k(e.dotsNum, (i) => (d(), u("button", {
|
|
2605
2605
|
role: "button",
|
|
2606
|
-
class:
|
|
2607
|
-
key:
|
|
2608
|
-
onClick: (
|
|
2606
|
+
class: b(["gl-dot", { active: e.currentDot == i }]),
|
|
2607
|
+
key: i,
|
|
2608
|
+
onClick: (l) => a.setDot(i)
|
|
2609
2609
|
}, Na, 10, Ia))), 128))
|
|
2610
2610
|
], 2),
|
|
2611
2611
|
e.dotsNum > 0 ? (d(), u("div", Va, [
|
|
2612
2612
|
s("div", La, [
|
|
2613
2613
|
s("div", Ba, [
|
|
2614
2614
|
s("button", {
|
|
2615
|
-
class:
|
|
2616
|
-
onClick: t[3] || (t[3] = (
|
|
2615
|
+
class: b(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2616
|
+
onClick: t[3] || (t[3] = (i) => a.prev())
|
|
2617
2617
|
}, [
|
|
2618
2618
|
r.direction_property == "ltr" ? (d(), u("svg", Ga, Ra)) : g("", !0),
|
|
2619
2619
|
r.direction_property == "rtl" ? (d(), u("svg", Ua, za)) : g("", !0)
|
|
@@ -2624,7 +2624,7 @@ function dn(e, t, r, n, o, a) {
|
|
|
2624
2624
|
s("div", Za, [
|
|
2625
2625
|
s("button", {
|
|
2626
2626
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2627
|
-
onClick: t[4] || (t[4] = (
|
|
2627
|
+
onClick: t[4] || (t[4] = (i) => a.next())
|
|
2628
2628
|
}, [
|
|
2629
2629
|
r.direction_property == "ltr" ? (d(), u("svg", Ka, Xa)) : g("", !0),
|
|
2630
2630
|
r.direction_property == "rtl" ? (d(), u("svg", Ya, Qa)) : g("", !0)
|
|
@@ -2633,12 +2633,12 @@ function dn(e, t, r, n, o, a) {
|
|
|
2633
2633
|
])
|
|
2634
2634
|
])) : g("", !0)
|
|
2635
2635
|
])) : g("", !0)
|
|
2636
|
-
], 10,
|
|
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, [
|
|
2639
2639
|
s("button", {
|
|
2640
2640
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2641
|
-
onClick: t[5] || (t[5] = (
|
|
2641
|
+
onClick: t[5] || (t[5] = (i) => a.next())
|
|
2642
2642
|
}, [
|
|
2643
2643
|
r.direction_property == "ltr" ? (d(), u("svg", rn, an)) : g("", !0),
|
|
2644
2644
|
r.direction_property == "rtl" ? (d(), u("svg", nn, ln)) : g("", !0)
|
|
@@ -2648,11 +2648,11 @@ function dn(e, t, r, n, o, a) {
|
|
|
2648
2648
|
], 10, na)
|
|
2649
2649
|
]);
|
|
2650
2650
|
}
|
|
2651
|
-
const
|
|
2651
|
+
const Id = /* @__PURE__ */ S(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"
|
|
2655
|
-
}, cn = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark" }, fn = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" },
|
|
2655
|
+
}, cn = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark" }, fn = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, gn = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, hn = /* @__PURE__ */ s("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2656
2656
|
/* @__PURE__ */ s("svg", {
|
|
2657
2657
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2658
2658
|
fill: "currentColor",
|
|
@@ -2667,8 +2667,8 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2667
2667
|
})
|
|
2668
2668
|
])
|
|
2669
2669
|
], -1), mn = [
|
|
2670
|
-
|
|
2671
|
-
],
|
|
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" }, Md = {
|
|
2672
2672
|
__name: "GlModal",
|
|
2673
2673
|
props: {
|
|
2674
2674
|
is_open: {
|
|
@@ -2694,38 +2694,38 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2694
2694
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2695
2695
|
}, a = () => {
|
|
2696
2696
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2697
|
-
},
|
|
2697
|
+
}, i = () => {
|
|
2698
2698
|
n("closeModal"), a();
|
|
2699
2699
|
};
|
|
2700
2700
|
return X(
|
|
2701
2701
|
() => r.is_open,
|
|
2702
|
-
(
|
|
2703
|
-
|
|
2702
|
+
(l, c) => {
|
|
2703
|
+
l ? o() : a();
|
|
2704
2704
|
},
|
|
2705
2705
|
{ immediate: !0, deep: !0 }
|
|
2706
|
-
), (
|
|
2706
|
+
), (l, c) => O((d(), u("div", un, [
|
|
2707
2707
|
s("div", {
|
|
2708
|
-
class:
|
|
2708
|
+
class: b(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:h-[calc(100%-3.5rem)]", e.max_width])
|
|
2709
2709
|
}, [
|
|
2710
2710
|
s("div", cn, [
|
|
2711
2711
|
s("div", fn, [
|
|
2712
|
-
s("h5",
|
|
2712
|
+
s("h5", gn, h(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",
|
|
2716
|
-
onClick:
|
|
2716
|
+
onClick: i,
|
|
2717
2717
|
"aria-label": "Close"
|
|
2718
2718
|
}, mn)
|
|
2719
2719
|
]),
|
|
2720
2720
|
s("div", {
|
|
2721
|
-
class:
|
|
2721
|
+
class: b(["relative overflow-y-auto", e.bodyClass])
|
|
2722
2722
|
}, [
|
|
2723
|
-
T(
|
|
2723
|
+
T(l.$slots, "body")
|
|
2724
2724
|
], 2),
|
|
2725
|
-
s("div",
|
|
2726
|
-
T(
|
|
2725
|
+
s("div", bn, [
|
|
2726
|
+
T(l.$slots, "buttons"),
|
|
2727
2727
|
s("button", {
|
|
2728
|
-
onClick:
|
|
2728
|
+
onClick: i,
|
|
2729
2729
|
type: "button",
|
|
2730
2730
|
class: "px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
2731
2731
|
}, " Close ")
|
|
@@ -2736,7 +2736,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2736
2736
|
[F, e.is_open]
|
|
2737
2737
|
]);
|
|
2738
2738
|
}
|
|
2739
|
-
},
|
|
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" }, Nd = {
|
|
2740
2740
|
__name: "GlToggleBox",
|
|
2741
2741
|
props: {
|
|
2742
2742
|
is_required: {
|
|
@@ -2782,19 +2782,19 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2782
2782
|
get() {
|
|
2783
2783
|
return r.modelValue;
|
|
2784
2784
|
},
|
|
2785
|
-
set(
|
|
2786
|
-
n("update:modelValue",
|
|
2785
|
+
set(i) {
|
|
2786
|
+
n("update:modelValue", i);
|
|
2787
2787
|
}
|
|
2788
2788
|
});
|
|
2789
|
-
return (
|
|
2789
|
+
return (i, l) => (d(), u(v, null, [
|
|
2790
2790
|
e.show ? (d(), u("div", {
|
|
2791
2791
|
key: 0,
|
|
2792
|
-
class:
|
|
2792
|
+
class: b(e.field_name)
|
|
2793
2793
|
}, [
|
|
2794
|
-
s("div",
|
|
2795
|
-
s("li",
|
|
2794
|
+
s("div", pn, [
|
|
2795
|
+
s("li", yn, [
|
|
2796
2796
|
w(h(e.label_name) + " ", 1),
|
|
2797
|
-
s("label",
|
|
2797
|
+
s("label", _n, [
|
|
2798
2798
|
s("input", {
|
|
2799
2799
|
type: "checkbox",
|
|
2800
2800
|
class: "sr-only peer",
|
|
@@ -2815,7 +2815,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2815
2815
|
], 2)) : g("", !0),
|
|
2816
2816
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2817
2817
|
key: 1,
|
|
2818
|
-
class:
|
|
2818
|
+
class: b(["mb-4", e.field_name])
|
|
2819
2819
|
}, [
|
|
2820
2820
|
s("li", kn, [
|
|
2821
2821
|
w(h(e.label_name) + " ", 1),
|
|
@@ -2829,7 +2829,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2829
2829
|
"false-value": 0,
|
|
2830
2830
|
ref_key: "input",
|
|
2831
2831
|
ref: o,
|
|
2832
|
-
"onUpdate:modelValue":
|
|
2832
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => a.value = c)
|
|
2833
2833
|
}, null, 8, Cn), [
|
|
2834
2834
|
[nt, a.value]
|
|
2835
2835
|
]),
|
|
@@ -2878,7 +2878,7 @@ const jd = /* @__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
|
-
], Xn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Yn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" },
|
|
2881
|
+
], Xn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Yn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Vd = {
|
|
2882
2882
|
__name: "GlDropdown",
|
|
2883
2883
|
props: {
|
|
2884
2884
|
modelValue: {
|
|
@@ -2938,106 +2938,106 @@ const jd = /* @__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 = C(null), a = C({}),
|
|
2941
|
+
const r = e, n = t, o = C(null), a = C({}), i = C(0), l = C(!1), c = C(""), f = C("");
|
|
2942
2942
|
R(() => {
|
|
2943
|
-
f.value = L(), r.show || (document.body.addEventListener("click", (
|
|
2944
|
-
ze(
|
|
2945
|
-
}), document.addEventListener("keypress", (
|
|
2946
|
-
|
|
2943
|
+
f.value = L(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2944
|
+
ze(p);
|
|
2945
|
+
}), document.addEventListener("keypress", (p) => {
|
|
2946
|
+
p.key === "Enter" && p.target.form && p.preventDefault();
|
|
2947
2947
|
}));
|
|
2948
2948
|
});
|
|
2949
2949
|
const m = G(() => Ke()), y = G(() => We()), x = G(() => {
|
|
2950
|
-
const
|
|
2950
|
+
const p = [], D = new RegExp(c.value, "ig");
|
|
2951
2951
|
for (const E of m.value) {
|
|
2952
2952
|
const B = String(E.name);
|
|
2953
|
-
(c.value.length < 1 || B.match(D)) &&
|
|
2953
|
+
(c.value.length < 1 || B.match(D)) && p.length < r.maxItem && p.push(E);
|
|
2954
2954
|
}
|
|
2955
|
-
return
|
|
2955
|
+
return p;
|
|
2956
2956
|
});
|
|
2957
|
-
function $(
|
|
2957
|
+
function $(p) {
|
|
2958
2958
|
if ([
|
|
2959
2959
|
"ArrowLeft",
|
|
2960
2960
|
"ArrowUp",
|
|
2961
2961
|
"ArrowRight",
|
|
2962
2962
|
"ArrowDown",
|
|
2963
2963
|
"Enter"
|
|
2964
|
-
].includes(
|
|
2965
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
2964
|
+
].includes(p.key)) {
|
|
2965
|
+
if (["ArrowUp", "ArrowDown"].includes(p.key) && p.preventDefault(), p.key === "ArrowDown" && r.posts === "")
|
|
2966
2966
|
return;
|
|
2967
|
-
Ze(
|
|
2967
|
+
Ze(p.key);
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
2970
|
function L() {
|
|
2971
|
-
let
|
|
2971
|
+
let p = (/* @__PURE__ */ new Date()).getTime();
|
|
2972
2972
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2973
2973
|
/[xy]/g,
|
|
2974
2974
|
function(E) {
|
|
2975
|
-
const B = (
|
|
2976
|
-
return
|
|
2975
|
+
const B = (p + Math.random() * 16) % 16 | 0;
|
|
2976
|
+
return p = Math.floor(p / 16), (E === "x" ? B : B & 3 | 8).toString(16);
|
|
2977
2977
|
}
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
2980
|
-
function te(
|
|
2981
|
-
return
|
|
2980
|
+
function te(p) {
|
|
2981
|
+
return p !== null && typeof p == "object" && Object.keys(p).length > 0;
|
|
2982
2982
|
}
|
|
2983
|
-
function ze(
|
|
2984
|
-
|
|
2983
|
+
function ze(p) {
|
|
2984
|
+
p.target.id != r.field_name + "search" + f.value && p.target.id != r.field_name && !p.target.classList.contains("showOptions") && (pe(), i.value = 0);
|
|
2985
2985
|
}
|
|
2986
|
-
function me(
|
|
2987
|
-
const D = `${
|
|
2986
|
+
function me(p) {
|
|
2987
|
+
const D = `${p}${f.value}`, E = document.getElementById(D);
|
|
2988
2988
|
E && E.scrollIntoView();
|
|
2989
2989
|
}
|
|
2990
|
-
function He(
|
|
2991
|
-
const D = `${
|
|
2990
|
+
function He(p) {
|
|
2991
|
+
const D = `${p}${f.value}`, E = document.getElementById(D);
|
|
2992
2992
|
E && E.click();
|
|
2993
2993
|
}
|
|
2994
|
-
function Ze(
|
|
2995
|
-
|
|
2994
|
+
function Ze(p) {
|
|
2995
|
+
p === "ArrowDown" && i.value < x.value.length && (i.value++, me(i.value)), p === "ArrowUp" && i.value > 1 && (i.value--, me(i.value)), p === "Enter" && He(i.value);
|
|
2996
2996
|
}
|
|
2997
2997
|
function Ke() {
|
|
2998
|
-
return r.options.map((
|
|
2998
|
+
return r.options.map((p, D) => typeof p == "object" ? p : { id: p, name: p });
|
|
2999
2999
|
}
|
|
3000
3000
|
function We() {
|
|
3001
3001
|
if (te(a.value))
|
|
3002
3002
|
return console.log("selected.value: ", a.value), typeof a.value == "object" ? m.value.find(
|
|
3003
|
-
(
|
|
3003
|
+
(p) => String(p.id) === String(a.value.id)
|
|
3004
3004
|
) || {} : m.value.find(
|
|
3005
|
-
(
|
|
3005
|
+
(p) => String(p.id) === String(a.value)
|
|
3006
3006
|
) || {};
|
|
3007
3007
|
if (r.modelValue)
|
|
3008
3008
|
return console.log("props.modelValue :", r.modelValue), typeof r.modelValue == "object" ? m.value.find(
|
|
3009
|
-
(
|
|
3009
|
+
(p) => String(p.id) === String(r.modelValue.id)
|
|
3010
3010
|
) || {} : m.value.find(
|
|
3011
|
-
(
|
|
3011
|
+
(p) => String(p.id) === String(r.modelValue)
|
|
3012
3012
|
) || {};
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3015
|
-
a.value =
|
|
3014
|
+
function be(p) {
|
|
3015
|
+
a.value = p, l.value = !1, n("selected", a.value), n("selectionChanged", a.value);
|
|
3016
3016
|
}
|
|
3017
3017
|
function re() {
|
|
3018
|
-
r.show || (c.value = "",
|
|
3019
|
-
var
|
|
3018
|
+
r.show || (c.value = "", l.value = !0, ot(() => {
|
|
3019
|
+
var p = document.getElementById(
|
|
3020
3020
|
`${r.field_name}search${f.value}`
|
|
3021
3021
|
);
|
|
3022
|
-
|
|
3022
|
+
p && p.focus();
|
|
3023
3023
|
}));
|
|
3024
3024
|
}
|
|
3025
3025
|
function Xe() {
|
|
3026
3026
|
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), re());
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3029
|
-
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value),
|
|
3028
|
+
function pe() {
|
|
3029
|
+
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), l.value = !1;
|
|
3030
3030
|
}
|
|
3031
3031
|
return X(c, () => {
|
|
3032
3032
|
x.value.length === 0 && (a.value = {});
|
|
3033
|
-
}), X(a, (
|
|
3034
|
-
te(
|
|
3035
|
-
}), (
|
|
3036
|
-
var E, B,
|
|
3033
|
+
}), X(a, (p) => {
|
|
3034
|
+
te(p) && n("update:modelValue", p.id);
|
|
3035
|
+
}), (p, D) => {
|
|
3036
|
+
var E, B, ye;
|
|
3037
3037
|
return d(), u(v, null, [
|
|
3038
3038
|
e.show ? (d(), u("div", {
|
|
3039
3039
|
key: 0,
|
|
3040
|
-
class:
|
|
3040
|
+
class: b(e.field_name)
|
|
3041
3041
|
}, [
|
|
3042
3042
|
s("h3", Pn, h(e.label_name), 1),
|
|
3043
3043
|
s("p", En, [
|
|
@@ -3047,7 +3047,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3047
3047
|
], 2)) : g("", !0),
|
|
3048
3048
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3049
3049
|
key: 1,
|
|
3050
|
-
class:
|
|
3050
|
+
class: b(["mb-4", e.field_name])
|
|
3051
3051
|
}, [
|
|
3052
3052
|
s("input", {
|
|
3053
3053
|
type: "hidden",
|
|
@@ -3058,7 +3058,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3058
3058
|
e.options ? (d(), u("div", In, [
|
|
3059
3059
|
e.label_name ? (d(), u("label", {
|
|
3060
3060
|
key: 0,
|
|
3061
|
-
class:
|
|
3061
|
+
class: b({
|
|
3062
3062
|
"gl-label-form": e.error_message == "",
|
|
3063
3063
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3064
3064
|
required: e.is_required
|
|
@@ -3067,13 +3067,13 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3067
3067
|
s("div", Mn, [
|
|
3068
3068
|
s("div", Nn, [
|
|
3069
3069
|
s("input", {
|
|
3070
|
-
class:
|
|
3070
|
+
class: b([{
|
|
3071
3071
|
"gl-input-form": e.error_message == "",
|
|
3072
3072
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3073
3073
|
}, "pl-8 pr-2 showOptions"]),
|
|
3074
3074
|
ref: e.field_name,
|
|
3075
3075
|
onClick: D[0] || (D[0] = (A) => re()),
|
|
3076
|
-
value: (
|
|
3076
|
+
value: (ye = y.value) == null ? void 0 : ye.name,
|
|
3077
3077
|
placeholder: e.placeholder,
|
|
3078
3078
|
autocomplete: "off",
|
|
3079
3079
|
readonly: ""
|
|
@@ -3086,8 +3086,8 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3086
3086
|
[F, te(y.value) && e.has_cancel]
|
|
3087
3087
|
]),
|
|
3088
3088
|
s("i", {
|
|
3089
|
-
onClick: D[2] || (D[2] = (A) => !
|
|
3090
|
-
class:
|
|
3089
|
+
onClick: D[2] || (D[2] = (A) => !l.value && re()),
|
|
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)
|
|
3093
3093
|
]),
|
|
@@ -3102,7 +3102,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3102
3102
|
ref: o.value,
|
|
3103
3103
|
id: `${e.field_name}search${f.value}`,
|
|
3104
3104
|
onKeydown: $,
|
|
3105
|
-
onBlur: D[4] || (D[4] = (A) =>
|
|
3105
|
+
onBlur: D[4] || (D[4] = (A) => 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 ..."
|
|
@@ -3113,23 +3113,23 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3113
3113
|
]),
|
|
3114
3114
|
s("div", qn, [
|
|
3115
3115
|
(d(!0), u(v, null, k(x.value, (A, se) => {
|
|
3116
|
-
var
|
|
3116
|
+
var _e;
|
|
3117
3117
|
return d(), u("div", {
|
|
3118
|
-
class:
|
|
3119
|
-
onClick: (Ye) =>
|
|
3120
|
-
onMousedown: (Ye) =>
|
|
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: (Ye) => be(A),
|
|
3120
|
+
onMousedown: (Ye) => be(A),
|
|
3121
3121
|
key: se,
|
|
3122
3122
|
id: `${se + 1}${f.value}`
|
|
3123
3123
|
}, [
|
|
3124
3124
|
s("div", Hn, [
|
|
3125
|
-
((
|
|
3125
|
+
((_e = y.value) == null ? void 0 : _e.id) === A.id ? (d(), u("svg", Zn, Wn)) : g("", !0),
|
|
3126
3126
|
s("span", null, h(A.name || A.id || "-"), 1)
|
|
3127
3127
|
])
|
|
3128
3128
|
], 42, zn);
|
|
3129
3129
|
}), 128))
|
|
3130
3130
|
])
|
|
3131
3131
|
], 512), [
|
|
3132
|
-
[F,
|
|
3132
|
+
[F, l.value]
|
|
3133
3133
|
])
|
|
3134
3134
|
])
|
|
3135
3135
|
])) : g("", !0),
|
|
@@ -3139,7 +3139,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
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" }, Ld = {
|
|
3143
3143
|
__name: "GlTextarea",
|
|
3144
3144
|
props: {
|
|
3145
3145
|
is_required: {
|
|
@@ -3188,10 +3188,10 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3188
3188
|
const n = e, o = r, a = C(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
|
-
}), t({ focus: () => a.value.focus() }), (
|
|
3191
|
+
}), t({ focus: () => a.value.focus() }), (i, l) => (d(), u(v, null, [
|
|
3192
3192
|
e.show ? (d(), u("div", {
|
|
3193
3193
|
key: 0,
|
|
3194
|
-
class:
|
|
3194
|
+
class: b(e.field_name)
|
|
3195
3195
|
}, [
|
|
3196
3196
|
s("h3", Jn, h(e.label_name), 1),
|
|
3197
3197
|
s("p", {
|
|
@@ -3202,10 +3202,10 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3202
3202
|
], 2)) : g("", !0),
|
|
3203
3203
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3204
3204
|
key: 1,
|
|
3205
|
-
class:
|
|
3205
|
+
class: b(["mb-4", e.field_name])
|
|
3206
3206
|
}, [
|
|
3207
3207
|
s("label", {
|
|
3208
|
-
class:
|
|
3208
|
+
class: b({
|
|
3209
3209
|
"gl-label-form": e.error_message == "",
|
|
3210
3210
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3211
3211
|
required: e.is_required
|
|
@@ -3216,12 +3216,12 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3216
3216
|
required: e.is_required,
|
|
3217
3217
|
name: e.field_name,
|
|
3218
3218
|
id: e.field_name,
|
|
3219
|
-
class:
|
|
3219
|
+
class: b({
|
|
3220
3220
|
" gl-textarea-form mt-4 ": e.error_message == "",
|
|
3221
3221
|
" gl-textarea-form-invalid mt-4 ": e.error_message !== ""
|
|
3222
3222
|
}),
|
|
3223
3223
|
type: e.type,
|
|
3224
|
-
onInput:
|
|
3224
|
+
onInput: l[0] || (l[0] = (c) => i.$emit("update:modelValue", c.target.value)),
|
|
3225
3225
|
ref_key: "input",
|
|
3226
3226
|
ref: a,
|
|
3227
3227
|
rows: "4",
|
|
@@ -3284,11 +3284,11 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3284
3284
|
return 0;
|
|
3285
3285
|
if (this.limit === 0)
|
|
3286
3286
|
return this.lastPage;
|
|
3287
|
-
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r, o = e + r + 1, a = [],
|
|
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
3289
|
return a.forEach(function(f) {
|
|
3290
|
-
|
|
3291
|
-
}),
|
|
3290
|
+
l && (f - l === 2 ? i.push(l + 1) : f - l !== 1 && i.push("...")), i.push(f), l = f;
|
|
3291
|
+
}), i;
|
|
3292
3292
|
}
|
|
3293
3293
|
},
|
|
3294
3294
|
methods: {
|
|
@@ -3378,10 +3378,10 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3378
3378
|
},
|
|
3379
3379
|
mounted() {
|
|
3380
3380
|
}
|
|
3381
|
-
},
|
|
3381
|
+
}, lo = { class: "flex flex-col items-center" }, io = {
|
|
3382
3382
|
key: 0,
|
|
3383
3383
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
3384
|
-
}, uo = { class: "font-semibold text-gray-900 dark:text-white" }, co = { class: "font-semibold text-gray-900 dark:text-white" }, fo = { class: "font-semibold text-gray-900 dark:text-white" },
|
|
3384
|
+
}, uo = { class: "font-semibold text-gray-900 dark:text-white" }, co = { class: "font-semibold text-gray-900 dark:text-white" }, fo = { class: "font-semibold text-gray-900 dark:text-white" }, go = ["tabindex"], ho = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), mo = /* @__PURE__ */ s("svg", {
|
|
3385
3385
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3386
3386
|
"aria-hidden": "true",
|
|
3387
3387
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3395,7 +3395,7 @@ const jd = /* @__PURE__ */ S(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3395
3395
|
"stroke-width": "2",
|
|
3396
3396
|
d: "M5 1 1 5l4 4"
|
|
3397
3397
|
})
|
|
3398
|
-
], -1),
|
|
3398
|
+
], -1), bo = ["aria-current"], po = ["tabindex"], yo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), _o = /* @__PURE__ */ s("svg", {
|
|
3399
3399
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3400
3400
|
"aria-hidden": "true",
|
|
3401
3401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3411,24 +3411,24 @@ const jd = /* @__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
|
|
3415
|
-
return d(), K(
|
|
3414
|
+
const i = Y("RenderlessPagination");
|
|
3415
|
+
return d(), K(i, {
|
|
3416
3416
|
data: r.data,
|
|
3417
3417
|
limit: r.limit,
|
|
3418
3418
|
onPaginationChangePage: a.onPaginationChangePage
|
|
3419
3419
|
}, {
|
|
3420
|
-
default: J((
|
|
3421
|
-
s("div",
|
|
3422
|
-
|
|
3420
|
+
default: J((l) => [
|
|
3421
|
+
s("div", lo, [
|
|
3422
|
+
l.computed.total > l.computed.perPage ? (d(), u("span", io, [
|
|
3423
3423
|
w(" Showing "),
|
|
3424
|
-
s("span", uo, h(
|
|
3424
|
+
s("span", uo, h(l.computed.from), 1),
|
|
3425
3425
|
w(" to "),
|
|
3426
|
-
s("span", co, h(
|
|
3426
|
+
s("span", co, h(l.computed.to), 1),
|
|
3427
3427
|
w(" of "),
|
|
3428
|
-
s("span", fo, h(
|
|
3428
|
+
s("span", fo, h(l.computed.total), 1),
|
|
3429
3429
|
w(" Entries ")
|
|
3430
3430
|
])) : g("", !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",
|
|
3434
3434
|
"pagination-lg": r.size == "large",
|
|
@@ -3436,49 +3436,49 @@ function vo(e, t, r, n, o, a) {
|
|
|
3436
3436
|
"justify-content-end": r.align == "right"
|
|
3437
3437
|
}]
|
|
3438
3438
|
}), [
|
|
3439
|
-
|
|
3439
|
+
l.computed.prevPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3440
3440
|
key: 0,
|
|
3441
|
-
class:
|
|
3441
|
+
class: b(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg 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", { disabled: !l.computed.prevPageUrl }])
|
|
3442
3442
|
}, [
|
|
3443
3443
|
s("a", W({
|
|
3444
3444
|
class: "page-link",
|
|
3445
3445
|
href: "#",
|
|
3446
3446
|
"aria-label": "Previous",
|
|
3447
|
-
tabindex: !
|
|
3448
|
-
}, ae(
|
|
3447
|
+
tabindex: !l.computed.prevPageUrl && -1
|
|
3448
|
+
}, ae(l.prevButtonEvents, !0)), [
|
|
3449
3449
|
T(e.$slots, "prev-nav", {}, () => [
|
|
3450
|
-
|
|
3450
|
+
ho,
|
|
3451
3451
|
mo
|
|
3452
3452
|
])
|
|
3453
|
-
], 16,
|
|
3453
|
+
], 16, go)
|
|
3454
3454
|
], 2)) : g("", !0),
|
|
3455
|
-
(d(!0), u(v, null, k(
|
|
3456
|
-
class:
|
|
3455
|
+
(d(!0), u(v, null, k(l.computed.pageRange, (c, f) => (d(), u("li", {
|
|
3456
|
+
class: b(["", { active: c == l.computed.currentPage }]),
|
|
3457
3457
|
key: f
|
|
3458
3458
|
}, [
|
|
3459
3459
|
s("a", W({
|
|
3460
3460
|
class: "",
|
|
3461
3461
|
href: "#"
|
|
3462
|
-
}, ae(
|
|
3463
|
-
"aria-current": c ==
|
|
3464
|
-
class: c ==
|
|
3465
|
-
}), h(c), 17,
|
|
3462
|
+
}, ae(l.pageButtonEvents(c), !0), {
|
|
3463
|
+
"aria-current": c == l.computed.currentPage ? "page" : null,
|
|
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
|
+
}), h(c), 17, bo)
|
|
3466
3466
|
], 2))), 128)),
|
|
3467
|
-
|
|
3467
|
+
l.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3468
3468
|
key: 1,
|
|
3469
|
-
class:
|
|
3469
|
+
class: b(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg 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", { disabled: !l.computed.nextPageUrl }])
|
|
3470
3470
|
}, [
|
|
3471
3471
|
s("a", W({
|
|
3472
3472
|
class: "",
|
|
3473
3473
|
href: "#",
|
|
3474
3474
|
"aria-label": "Next",
|
|
3475
|
-
tabindex: !
|
|
3476
|
-
}, ae(
|
|
3475
|
+
tabindex: !l.computed.nextPageUrl && -1
|
|
3476
|
+
}, ae(l.nextButtonEvents, !0)), [
|
|
3477
3477
|
T(e.$slots, "next-nav", {}, () => [
|
|
3478
|
-
|
|
3479
|
-
|
|
3478
|
+
yo,
|
|
3479
|
+
_o
|
|
3480
3480
|
])
|
|
3481
|
-
], 16,
|
|
3481
|
+
], 16, po)
|
|
3482
3482
|
], 2)) : g("", !0)
|
|
3483
3483
|
], 16)) : g("", !0)
|
|
3484
3484
|
])
|
|
@@ -3497,6 +3497,7 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3497
3497
|
},
|
|
3498
3498
|
data() {
|
|
3499
3499
|
return {
|
|
3500
|
+
isLoading: !1,
|
|
3500
3501
|
isMounted: !1,
|
|
3501
3502
|
limit: 5,
|
|
3502
3503
|
showDisabled: !1,
|
|
@@ -3526,7 +3527,7 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3526
3527
|
return typeof e == "object" ? e : null;
|
|
3527
3528
|
},
|
|
3528
3529
|
GetItemLists(e = 1) {
|
|
3529
|
-
this.page = e;
|
|
3530
|
+
this.isLoading = !0, this.page = e;
|
|
3530
3531
|
const t = {
|
|
3531
3532
|
sort: this.sortField,
|
|
3532
3533
|
order: this.sortOrder,
|
|
@@ -3535,9 +3536,9 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3535
3536
|
page: this.page
|
|
3536
3537
|
};
|
|
3537
3538
|
axios.get(this.xprops.route_get_data, { params: t }).then((r) => {
|
|
3538
|
-
this.itemLists = r.data;
|
|
3539
|
+
this.itemLists = r.data, this.isLoading = !1;
|
|
3539
3540
|
}).catch((r) => {
|
|
3540
|
-
console.error(r);
|
|
3541
|
+
console.error(r), this.isLoading = !1;
|
|
3541
3542
|
});
|
|
3542
3543
|
},
|
|
3543
3544
|
updateSortColumn(e, t) {
|
|
@@ -3547,8 +3548,6 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3547
3548
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
3548
3549
|
}
|
|
3549
3550
|
},
|
|
3550
|
-
beforeDestroy() {
|
|
3551
|
-
},
|
|
3552
3551
|
mounted() {
|
|
3553
3552
|
this.GetItemLists(), this.isMounted = !0;
|
|
3554
3553
|
},
|
|
@@ -3589,15 +3588,57 @@ const xo = /* @__PURE__ */ S(oo, [["render", vo]]), wo = {
|
|
|
3589
3588
|
}, Lo = {
|
|
3590
3589
|
key: 1,
|
|
3591
3590
|
class: "fa fa-arrow-down"
|
|
3592
|
-
}, Bo =
|
|
3593
|
-
|
|
3594
|
-
|
|
3591
|
+
}, Bo = { key: 0 }, Go = /* @__PURE__ */ s("div", {
|
|
3592
|
+
role: "status",
|
|
3593
|
+
class: "max-w-md p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"
|
|
3594
|
+
}, [
|
|
3595
|
+
/* @__PURE__ */ s("div", { class: "flex items-center justify-between" }, [
|
|
3596
|
+
/* @__PURE__ */ s("div", null, [
|
|
3597
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3" }),
|
|
3598
|
+
/* @__PURE__ */ s("div", { class: "w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" })
|
|
3599
|
+
]),
|
|
3600
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12" })
|
|
3601
|
+
]),
|
|
3602
|
+
/* @__PURE__ */ s("div", { class: "flex items-center justify-between pt-4" }, [
|
|
3603
|
+
/* @__PURE__ */ s("div", null, [
|
|
3604
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3" }),
|
|
3605
|
+
/* @__PURE__ */ s("div", { class: "w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" })
|
|
3606
|
+
]),
|
|
3607
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12" })
|
|
3608
|
+
]),
|
|
3609
|
+
/* @__PURE__ */ s("div", { class: "flex items-center justify-between pt-4" }, [
|
|
3610
|
+
/* @__PURE__ */ s("div", null, [
|
|
3611
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3" }),
|
|
3612
|
+
/* @__PURE__ */ s("div", { class: "w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" })
|
|
3613
|
+
]),
|
|
3614
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12" })
|
|
3615
|
+
]),
|
|
3616
|
+
/* @__PURE__ */ s("div", { class: "flex items-center justify-between pt-4" }, [
|
|
3617
|
+
/* @__PURE__ */ s("div", null, [
|
|
3618
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3" }),
|
|
3619
|
+
/* @__PURE__ */ s("div", { class: "w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" })
|
|
3620
|
+
]),
|
|
3621
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12" })
|
|
3622
|
+
]),
|
|
3623
|
+
/* @__PURE__ */ s("div", { class: "flex items-center justify-between pt-4" }, [
|
|
3624
|
+
/* @__PURE__ */ s("div", null, [
|
|
3625
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3" }),
|
|
3626
|
+
/* @__PURE__ */ s("div", { class: "w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" })
|
|
3627
|
+
]),
|
|
3628
|
+
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12" })
|
|
3629
|
+
]),
|
|
3630
|
+
/* @__PURE__ */ s("span", { class: "sr-only" }, "Loading...")
|
|
3631
|
+
], -1), Fo = [
|
|
3632
|
+
Go
|
|
3633
|
+
], Ro = ["data-label"], Uo = { class: "overflow-auto max-h-40" }, qo = { 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
|
+
function zo(e, t, r, n, o, a) {
|
|
3635
|
+
const i = Y("dropdown"), l = Y("TailwindPagination");
|
|
3595
3636
|
return d(), u("div", ko, [
|
|
3596
3637
|
s("div", $o, [
|
|
3597
3638
|
s("div", Co, [
|
|
3598
3639
|
So,
|
|
3599
3640
|
s("div", Do, [
|
|
3600
|
-
Z(
|
|
3641
|
+
Z(i, {
|
|
3601
3642
|
has_cancel: !1,
|
|
3602
3643
|
options: o.pageOptions,
|
|
3603
3644
|
modelValue: o.perPage,
|
|
@@ -3643,7 +3684,8 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3643
3684
|
])
|
|
3644
3685
|
]),
|
|
3645
3686
|
s("tbody", null, [
|
|
3646
|
-
(d(
|
|
3687
|
+
o.isLoading ? (d(), u("tr", Bo, Fo)) : g("", !0),
|
|
3688
|
+
o.isLoading ? g("", !0) : (d(!0), u(v, { key: 1 }, k(o.itemLists.data, (c, f) => (d(), u("tr", {
|
|
3647
3689
|
key: f,
|
|
3648
3690
|
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"
|
|
3649
3691
|
}, [
|
|
@@ -3652,7 +3694,7 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3652
3694
|
"data-label": m.field_label,
|
|
3653
3695
|
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"
|
|
3654
3696
|
}, [
|
|
3655
|
-
s("div",
|
|
3697
|
+
s("div", Uo, [
|
|
3656
3698
|
m.tdComp ? (d(), K(oe(a.forDynCompIs(m.tdComp)), {
|
|
3657
3699
|
key: 0,
|
|
3658
3700
|
row: c,
|
|
@@ -3664,13 +3706,13 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3664
3706
|
w(h(c[m.field_name]), 1)
|
|
3665
3707
|
], 64))
|
|
3666
3708
|
])
|
|
3667
|
-
], 8,
|
|
3709
|
+
], 8, Ro))), 128))
|
|
3668
3710
|
]))), 128))
|
|
3669
3711
|
])
|
|
3670
3712
|
])
|
|
3671
3713
|
]),
|
|
3672
|
-
s("div",
|
|
3673
|
-
Z(
|
|
3714
|
+
s("div", qo, [
|
|
3715
|
+
Z(l, {
|
|
3674
3716
|
class: "mt-3 mb-0",
|
|
3675
3717
|
data: o.itemLists,
|
|
3676
3718
|
limit: o.limit,
|
|
@@ -3681,7 +3723,7 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3681
3723
|
])
|
|
3682
3724
|
]);
|
|
3683
3725
|
}
|
|
3684
|
-
const
|
|
3726
|
+
const Bd = /* @__PURE__ */ S(wo, [["render", zo]]), Ho = {
|
|
3685
3727
|
components: {},
|
|
3686
3728
|
props: {
|
|
3687
3729
|
data: Array,
|
|
@@ -3778,10 +3820,10 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3778
3820
|
mounted() {
|
|
3779
3821
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3780
3822
|
}
|
|
3781
|
-
},
|
|
3823
|
+
}, Zo = { class: "p-2" }, Ko = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Wo = { class: "flex items-center gap-2" }, Xo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Yo = { style: { "margin-top": "9px" } }, Jo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Qo = /* @__PURE__ */ s("label", {
|
|
3782
3824
|
for: "table-search",
|
|
3783
3825
|
class: "sr-only"
|
|
3784
|
-
}, "Search", -1),
|
|
3826
|
+
}, "Search", -1), el = { class: "relative" }, tl = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3785
3827
|
/* @__PURE__ */ s("svg", {
|
|
3786
3828
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3787
3829
|
"aria-hidden": "true",
|
|
@@ -3795,10 +3837,10 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3795
3837
|
"clip-rule": "evenodd"
|
|
3796
3838
|
})
|
|
3797
3839
|
])
|
|
3798
|
-
], -1),
|
|
3840
|
+
], -1), rl = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, sl = { 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" }, al = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, nl = ["onClick"], ol = {
|
|
3799
3841
|
key: 0,
|
|
3800
3842
|
class: "ml-2"
|
|
3801
|
-
},
|
|
3843
|
+
}, ll = ["data-label"], il = ["innerHTML"], dl = { 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" }, ul = { class: "flex justify-between flex-1 sm:hidden" }, cl = ["disabled"], fl = ["disabled"], gl = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, hl = { class: "text-sm text-gray-700 dark:text-gray-400" }, ml = { class: "font-medium" }, bl = { class: "font-medium" }, pl = { class: "font-medium" }, yl = { "aria-label": "Page navigation" }, _l = { class: "flex items-center h-8 -space-x-px text-sm" }, vl = ["disabled"], xl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), wl = /* @__PURE__ */ s("svg", {
|
|
3802
3844
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3803
3845
|
"aria-hidden": "true",
|
|
3804
3846
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3812,10 +3854,10 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3812
3854
|
"stroke-width": "2",
|
|
3813
3855
|
d: "M5 1 1 5l4 4"
|
|
3814
3856
|
})
|
|
3815
|
-
], -1),
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
],
|
|
3857
|
+
], -1), kl = [
|
|
3858
|
+
xl,
|
|
3859
|
+
wl
|
|
3860
|
+
], $l = ["onClick"], Cl = ["onClick"], Sl = ["disabled"], Dl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), Ol = /* @__PURE__ */ s("svg", {
|
|
3819
3861
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3820
3862
|
"aria-hidden": "true",
|
|
3821
3863
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3829,22 +3871,22 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3829
3871
|
"stroke-width": "2",
|
|
3830
3872
|
d: "m1 9 4-4-4-4"
|
|
3831
3873
|
})
|
|
3832
|
-
], -1),
|
|
3833
|
-
|
|
3834
|
-
|
|
3874
|
+
], -1), Pl = [
|
|
3875
|
+
Dl,
|
|
3876
|
+
Ol
|
|
3835
3877
|
];
|
|
3836
|
-
function
|
|
3837
|
-
const
|
|
3838
|
-
return d(), u("div",
|
|
3839
|
-
s("div",
|
|
3840
|
-
s("div",
|
|
3841
|
-
|
|
3842
|
-
s("div",
|
|
3843
|
-
Z(
|
|
3878
|
+
function El(e, t, r, n, o, a) {
|
|
3879
|
+
const i = Y("dropdown");
|
|
3880
|
+
return d(), u("div", Zo, [
|
|
3881
|
+
s("div", Ko, [
|
|
3882
|
+
s("div", Wo, [
|
|
3883
|
+
Xo,
|
|
3884
|
+
s("div", Yo, [
|
|
3885
|
+
Z(i, {
|
|
3844
3886
|
has_cancel: !1,
|
|
3845
3887
|
options: o.showNoOfEntries,
|
|
3846
3888
|
modelValue: o.itemsPerPage,
|
|
3847
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3889
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => o.itemsPerPage = l),
|
|
3848
3890
|
is_required: !1,
|
|
3849
3891
|
field_name: "NoOfEntries",
|
|
3850
3892
|
label_name: "",
|
|
@@ -3853,14 +3895,14 @@ function Di(e, t, r, n, o, a) {
|
|
|
3853
3895
|
placeholder: "Please select an option"
|
|
3854
3896
|
}, null, 8, ["options", "modelValue"])
|
|
3855
3897
|
]),
|
|
3856
|
-
|
|
3898
|
+
Jo
|
|
3857
3899
|
]),
|
|
3858
|
-
|
|
3859
|
-
s("div",
|
|
3860
|
-
|
|
3900
|
+
Qo,
|
|
3901
|
+
s("div", el, [
|
|
3902
|
+
tl,
|
|
3861
3903
|
O(s("input", {
|
|
3862
3904
|
type: "text",
|
|
3863
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3905
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => o.search = l),
|
|
3864
3906
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3865
3907
|
placeholder: "Search ..."
|
|
3866
3908
|
}, null, 512), [
|
|
@@ -3868,22 +3910,22 @@ function Di(e, t, r, n, o, a) {
|
|
|
3868
3910
|
])
|
|
3869
3911
|
])
|
|
3870
3912
|
]),
|
|
3871
|
-
s("div",
|
|
3872
|
-
s("table",
|
|
3873
|
-
s("thead",
|
|
3913
|
+
s("div", rl, [
|
|
3914
|
+
s("table", sl, [
|
|
3915
|
+
s("thead", al, [
|
|
3874
3916
|
s("tr", null, [
|
|
3875
|
-
(d(!0), u(v, null, k(r.columns, (
|
|
3917
|
+
(d(!0), u(v, null, k(r.columns, (l, c) => (d(), u("th", {
|
|
3876
3918
|
key: c,
|
|
3877
|
-
onClick: (f) => a.sort(
|
|
3919
|
+
onClick: (f) => a.sort(l),
|
|
3878
3920
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3879
3921
|
}, [
|
|
3880
|
-
w(h(
|
|
3881
|
-
o.sortKey ===
|
|
3882
|
-
], 8,
|
|
3922
|
+
w(h(l) + " ", 1),
|
|
3923
|
+
o.sortKey === l ? (d(), u("span", ol, h(o.sortOrder === 1 ? "▲" : "▼"), 1)) : g("", !0)
|
|
3924
|
+
], 8, nl))), 128))
|
|
3883
3925
|
])
|
|
3884
3926
|
]),
|
|
3885
3927
|
s("tbody", null, [
|
|
3886
|
-
(d(!0), u(v, null, k(a.paginatedData, (
|
|
3928
|
+
(d(!0), u(v, null, k(a.paginatedData, (l, c) => (d(), u("tr", {
|
|
3887
3929
|
key: c,
|
|
3888
3930
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3889
3931
|
}, [
|
|
@@ -3894,77 +3936,77 @@ function Di(e, t, r, n, o, a) {
|
|
|
3894
3936
|
}, [
|
|
3895
3937
|
s("p", {
|
|
3896
3938
|
class: "text-pretty",
|
|
3897
|
-
innerHTML:
|
|
3898
|
-
}, null, 8,
|
|
3899
|
-
], 8,
|
|
3939
|
+
innerHTML: l[m]
|
|
3940
|
+
}, null, 8, il)
|
|
3941
|
+
], 8, ll))), 128))
|
|
3900
3942
|
]))), 128))
|
|
3901
3943
|
])
|
|
3902
3944
|
])
|
|
3903
3945
|
]),
|
|
3904
|
-
s("div",
|
|
3905
|
-
s("div",
|
|
3946
|
+
s("div", dl, [
|
|
3947
|
+
s("div", ul, [
|
|
3906
3948
|
s("a", {
|
|
3907
3949
|
href: "#",
|
|
3908
|
-
onClick: t[2] || (t[2] = (...
|
|
3950
|
+
onClick: t[2] || (t[2] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
3909
3951
|
disabled: o.currentPage === 1,
|
|
3910
3952
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
3911
|
-
}, "Previous", 8,
|
|
3953
|
+
}, "Previous", 8, cl),
|
|
3912
3954
|
s("a", {
|
|
3913
3955
|
href: "#",
|
|
3914
|
-
onClick: t[3] || (t[3] = (...
|
|
3956
|
+
onClick: t[3] || (t[3] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
3915
3957
|
disabled: o.currentPage === a.totalPages,
|
|
3916
3958
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
3917
|
-
}, "Next", 8,
|
|
3959
|
+
}, "Next", 8, fl)
|
|
3918
3960
|
]),
|
|
3919
|
-
s("div",
|
|
3961
|
+
s("div", gl, [
|
|
3920
3962
|
s("div", null, [
|
|
3921
|
-
s("p",
|
|
3963
|
+
s("p", hl, [
|
|
3922
3964
|
w(" Showing "),
|
|
3923
|
-
s("span",
|
|
3965
|
+
s("span", ml, h(a.firstItemIndex), 1),
|
|
3924
3966
|
w(" to "),
|
|
3925
|
-
s("span",
|
|
3967
|
+
s("span", bl, h(a.lastItemIndex), 1),
|
|
3926
3968
|
w(" of "),
|
|
3927
|
-
s("span",
|
|
3969
|
+
s("span", pl, h(a.filteredData.length), 1),
|
|
3928
3970
|
w(" entries ")
|
|
3929
3971
|
])
|
|
3930
3972
|
]),
|
|
3931
3973
|
s("div", null, [
|
|
3932
|
-
s("nav",
|
|
3933
|
-
s("ul",
|
|
3974
|
+
s("nav", yl, [
|
|
3975
|
+
s("ul", _l, [
|
|
3934
3976
|
s("li", null, [
|
|
3935
3977
|
s("a", {
|
|
3936
3978
|
href: "#",
|
|
3937
|
-
onClick: t[4] || (t[4] = (...
|
|
3979
|
+
onClick: t[4] || (t[4] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
3938
3980
|
disabled: o.currentPage === 1,
|
|
3939
3981
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg 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"
|
|
3940
|
-
},
|
|
3982
|
+
}, kl, 8, vl)
|
|
3941
3983
|
]),
|
|
3942
|
-
(d(!0), u(v, null, k(a.displayedPageNumbers, (
|
|
3984
|
+
(d(!0), u(v, null, k(a.displayedPageNumbers, (l) => (d(), u(v, { key: l }, [
|
|
3943
3985
|
s("li", null, [
|
|
3944
|
-
o.currentPage !==
|
|
3986
|
+
o.currentPage !== l ? (d(), u("a", {
|
|
3945
3987
|
key: 0,
|
|
3946
3988
|
href: "#",
|
|
3947
|
-
onClick: (c) => a.goToPage(
|
|
3989
|
+
onClick: (c) => a.goToPage(l),
|
|
3948
3990
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3949
|
-
}, h(
|
|
3991
|
+
}, h(l), 9, $l)) : g("", !0)
|
|
3950
3992
|
]),
|
|
3951
3993
|
s("li", null, [
|
|
3952
|
-
o.currentPage ===
|
|
3994
|
+
o.currentPage === l ? (d(), u("a", {
|
|
3953
3995
|
key: 0,
|
|
3954
3996
|
href: "#",
|
|
3955
|
-
onClick: (c) => a.goToPage(
|
|
3997
|
+
onClick: (c) => a.goToPage(l),
|
|
3956
3998
|
"aria-current": "page",
|
|
3957
3999
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
3958
|
-
}, h(
|
|
4000
|
+
}, h(l), 9, Cl)) : g("", !0)
|
|
3959
4001
|
])
|
|
3960
4002
|
], 64))), 128)),
|
|
3961
4003
|
s("li", null, [
|
|
3962
4004
|
s("a", {
|
|
3963
4005
|
href: "#",
|
|
3964
|
-
onClick: t[5] || (t[5] = (...
|
|
4006
|
+
onClick: t[5] || (t[5] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
3965
4007
|
disabled: o.currentPage === a.totalPages,
|
|
3966
4008
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg 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"
|
|
3967
|
-
},
|
|
4009
|
+
}, Pl, 8, Sl)
|
|
3968
4010
|
])
|
|
3969
4011
|
])
|
|
3970
4012
|
])
|
|
@@ -3973,13 +4015,13 @@ function Di(e, t, r, n, o, a) {
|
|
|
3973
4015
|
])
|
|
3974
4016
|
]);
|
|
3975
4017
|
}
|
|
3976
|
-
const
|
|
4018
|
+
const Gd = /* @__PURE__ */ S(Ho, [["render", El]]), jl = {
|
|
3977
4019
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
3978
4020
|
role: "alert"
|
|
3979
|
-
},
|
|
4021
|
+
}, Al = {
|
|
3980
4022
|
key: 0,
|
|
3981
4023
|
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"
|
|
3982
|
-
},
|
|
4024
|
+
}, Tl = /* @__PURE__ */ s("svg", {
|
|
3983
4025
|
class: "w-5 h-5",
|
|
3984
4026
|
"aria-hidden": "true",
|
|
3985
4027
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3987,13 +4029,13 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
3987
4029
|
viewBox: "0 0 20 20"
|
|
3988
4030
|
}, [
|
|
3989
4031
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z" })
|
|
3990
|
-
], -1),
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
],
|
|
4032
|
+
], -1), Il = /* @__PURE__ */ s("span", { class: "sr-only" }, "Check icon", -1), Ml = [
|
|
4033
|
+
Tl,
|
|
4034
|
+
Il
|
|
4035
|
+
], Nl = {
|
|
3994
4036
|
key: 1,
|
|
3995
4037
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"
|
|
3996
|
-
},
|
|
4038
|
+
}, Vl = /* @__PURE__ */ s("svg", {
|
|
3997
4039
|
class: "w-5 h-5",
|
|
3998
4040
|
"aria-hidden": "true",
|
|
3999
4041
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4001,13 +4043,13 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4001
4043
|
viewBox: "0 0 20 20"
|
|
4002
4044
|
}, [
|
|
4003
4045
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 11.793a1 1 0 1 1-1.414 1.414L10 11.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 0 1 1.414 1.414L11.414 10l2.293 2.293Z" })
|
|
4004
|
-
], -1),
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
],
|
|
4046
|
+
], -1), Ll = /* @__PURE__ */ s("span", { class: "sr-only" }, "Error icon", -1), Bl = [
|
|
4047
|
+
Vl,
|
|
4048
|
+
Ll
|
|
4049
|
+
], Gl = {
|
|
4008
4050
|
key: 2,
|
|
4009
4051
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200"
|
|
4010
|
-
},
|
|
4052
|
+
}, Fl = /* @__PURE__ */ s("svg", {
|
|
4011
4053
|
class: "w-5 h-5",
|
|
4012
4054
|
"aria-hidden": "true",
|
|
4013
4055
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4015,10 +4057,10 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4015
4057
|
viewBox: "0 0 20 20"
|
|
4016
4058
|
}, [
|
|
4017
4059
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z" })
|
|
4018
|
-
], -1),
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
],
|
|
4060
|
+
], -1), Rl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Warning icon", -1), Ul = [
|
|
4061
|
+
Fl,
|
|
4062
|
+
Rl
|
|
4063
|
+
], ql = { class: "ml-3 text-sm font-normal" }, zl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), Hl = /* @__PURE__ */ s("svg", {
|
|
4022
4064
|
"aria-hidden": "true",
|
|
4023
4065
|
class: "w-5 h-5",
|
|
4024
4066
|
fill: "currentColor",
|
|
@@ -4030,10 +4072,10 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4030
4072
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
4031
4073
|
"clip-rule": "evenodd"
|
|
4032
4074
|
})
|
|
4033
|
-
], -1),
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
],
|
|
4075
|
+
], -1), Zl = [
|
|
4076
|
+
zl,
|
|
4077
|
+
Hl
|
|
4078
|
+
], Kl = {
|
|
4037
4079
|
__name: "ToastListItem",
|
|
4038
4080
|
props: {
|
|
4039
4081
|
message: String,
|
|
@@ -4053,23 +4095,23 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4053
4095
|
setTimeout(() => n("remove"), r.duration);
|
|
4054
4096
|
});
|
|
4055
4097
|
const n = t;
|
|
4056
|
-
return (o, a) => (d(), u("div",
|
|
4057
|
-
r.type === "success" ? (d(), u("div",
|
|
4058
|
-
r.type === "error" ? (d(), u("div",
|
|
4059
|
-
r.type === "warning" ? (d(), u("div",
|
|
4060
|
-
s("div",
|
|
4098
|
+
return (o, a) => (d(), u("div", jl, [
|
|
4099
|
+
r.type === "success" ? (d(), u("div", Al, Ml)) : g("", !0),
|
|
4100
|
+
r.type === "error" ? (d(), u("div", Nl, Bl)) : g("", !0),
|
|
4101
|
+
r.type === "warning" ? (d(), u("div", Gl, Ul)) : g("", !0),
|
|
4102
|
+
s("div", ql, h(r.message), 1),
|
|
4061
4103
|
s("button", {
|
|
4062
|
-
onClick: a[0] || (a[0] = (
|
|
4104
|
+
onClick: a[0] || (a[0] = (i) => n("remove")),
|
|
4063
4105
|
type: "button",
|
|
4064
4106
|
class: "-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
4065
4107
|
"data-dismiss-target": "#toast-default",
|
|
4066
4108
|
"aria-label": "Close"
|
|
4067
|
-
},
|
|
4109
|
+
}, Zl)
|
|
4068
4110
|
]));
|
|
4069
4111
|
}
|
|
4070
4112
|
}, de = Se({
|
|
4071
4113
|
items: []
|
|
4072
|
-
}),
|
|
4114
|
+
}), Wl = {
|
|
4073
4115
|
add(e) {
|
|
4074
4116
|
de.items.unshift({
|
|
4075
4117
|
key: Symbol(),
|
|
@@ -4083,14 +4125,14 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4083
4125
|
}
|
|
4084
4126
|
}, $e = {
|
|
4085
4127
|
state: de,
|
|
4086
|
-
methods:
|
|
4087
|
-
},
|
|
4128
|
+
methods: Wl
|
|
4129
|
+
}, Fd = {
|
|
4088
4130
|
__name: "GlToastList",
|
|
4089
4131
|
setup(e) {
|
|
4090
4132
|
function t(r) {
|
|
4091
4133
|
$e.methods.remove(r);
|
|
4092
4134
|
}
|
|
4093
|
-
return (r, n) => (d(), K(
|
|
4135
|
+
return (r, n) => (d(), K(lt, {
|
|
4094
4136
|
tag: "div",
|
|
4095
4137
|
"enter-from-class": "translate-x-full opacity-0",
|
|
4096
4138
|
"enter-active-class": "duration-500",
|
|
@@ -4099,21 +4141,21 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4099
4141
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4100
4142
|
}, {
|
|
4101
4143
|
default: J(() => [
|
|
4102
|
-
(d(!0), u(v, null, k(
|
|
4144
|
+
(d(!0), u(v, null, k(it($e).state.items, (o, a) => (d(), K(Kl, {
|
|
4103
4145
|
key: o.key,
|
|
4104
4146
|
message: o.message,
|
|
4105
4147
|
type: o.type,
|
|
4106
4148
|
duration: o.duration,
|
|
4107
|
-
onRemove: (
|
|
4149
|
+
onRemove: (i) => t(a)
|
|
4108
4150
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
4109
4151
|
]),
|
|
4110
4152
|
_: 1
|
|
4111
4153
|
}));
|
|
4112
4154
|
}
|
|
4113
|
-
},
|
|
4155
|
+
}, Xl = {
|
|
4114
4156
|
key: 0,
|
|
4115
4157
|
class: "flex justify-center"
|
|
4116
|
-
},
|
|
4158
|
+
}, Yl = /* @__PURE__ */ s("svg", {
|
|
4117
4159
|
class: "w-5 h-5",
|
|
4118
4160
|
"aria-hidden": "true",
|
|
4119
4161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4121,12 +4163,12 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4121
4163
|
viewBox: "0 0 4 15"
|
|
4122
4164
|
}, [
|
|
4123
4165
|
/* @__PURE__ */ s("path", { d: "M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })
|
|
4124
|
-
], -1),
|
|
4125
|
-
|
|
4126
|
-
],
|
|
4166
|
+
], -1), Jl = [
|
|
4167
|
+
Yl
|
|
4168
|
+
], Ql = { 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" }, ei = {
|
|
4127
4169
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4128
4170
|
"aria-labelledby": "dropdownDividerButton"
|
|
4129
|
-
},
|
|
4171
|
+
}, ti = { key: 0 }, ri = ["href"], si = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ai = { key: 1 }, ni = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Rd = {
|
|
4130
4172
|
__name: "DatatableAction",
|
|
4131
4173
|
props: {
|
|
4132
4174
|
field: {
|
|
@@ -4152,9 +4194,9 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4152
4194
|
},
|
|
4153
4195
|
emits: ["deleteAction"],
|
|
4154
4196
|
setup(e, { emit: t }) {
|
|
4155
|
-
const r = Ee(), n = e, o = C(!1), a = C(!1),
|
|
4197
|
+
const r = Ee(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4156
4198
|
o.value = !1;
|
|
4157
|
-
},
|
|
4199
|
+
}, l = () => {
|
|
4158
4200
|
o.value = !0;
|
|
4159
4201
|
}, c = () => {
|
|
4160
4202
|
a.value = !1;
|
|
@@ -4179,30 +4221,30 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4179
4221
|
onConfirmDelete: y,
|
|
4180
4222
|
onCancelDelete: c
|
|
4181
4223
|
}, null, 8, ["isOpen"]),
|
|
4182
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div",
|
|
4224
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div", Xl, [
|
|
4183
4225
|
s("button", {
|
|
4184
|
-
onClick:
|
|
4226
|
+
onClick: l,
|
|
4185
4227
|
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",
|
|
4186
4228
|
type: "button"
|
|
4187
|
-
},
|
|
4188
|
-
O(s("div",
|
|
4189
|
-
s("ul",
|
|
4190
|
-
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li",
|
|
4229
|
+
}, Jl),
|
|
4230
|
+
O(s("div", Ql, [
|
|
4231
|
+
s("ul", ei, [
|
|
4232
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", ti, [
|
|
4191
4233
|
s("a", {
|
|
4192
4234
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4193
4235
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4194
4236
|
}, [
|
|
4195
|
-
|
|
4237
|
+
si,
|
|
4196
4238
|
w(" Edit")
|
|
4197
|
-
], 8,
|
|
4239
|
+
], 8, ri)
|
|
4198
4240
|
])) : g("", !0),
|
|
4199
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4241
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", ai, [
|
|
4200
4242
|
s("a", {
|
|
4201
4243
|
href: "#",
|
|
4202
4244
|
onClick: N(f, ["prevent"]),
|
|
4203
4245
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4204
4246
|
}, [
|
|
4205
|
-
|
|
4247
|
+
ni,
|
|
4206
4248
|
w(" Remove")
|
|
4207
4249
|
])
|
|
4208
4250
|
])) : g("", !0)
|
|
@@ -4211,15 +4253,15 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4211
4253
|
[F, o.value]
|
|
4212
4254
|
])
|
|
4213
4255
|
])), [
|
|
4214
|
-
[L,
|
|
4256
|
+
[L, i]
|
|
4215
4257
|
]) : g("", !0)
|
|
4216
4258
|
], 64);
|
|
4217
4259
|
};
|
|
4218
4260
|
}
|
|
4219
|
-
},
|
|
4261
|
+
}, oi = {
|
|
4220
4262
|
key: 0,
|
|
4221
4263
|
class: "flex justify-center"
|
|
4222
|
-
},
|
|
4264
|
+
}, li = /* @__PURE__ */ s("svg", {
|
|
4223
4265
|
class: "w-5 h-5",
|
|
4224
4266
|
"aria-hidden": "true",
|
|
4225
4267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4227,12 +4269,12 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4227
4269
|
viewBox: "0 0 4 15"
|
|
4228
4270
|
}, [
|
|
4229
4271
|
/* @__PURE__ */ s("path", { d: "M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })
|
|
4230
|
-
], -1),
|
|
4231
|
-
|
|
4232
|
-
],
|
|
4272
|
+
], -1), ii = [
|
|
4273
|
+
li
|
|
4274
|
+
], di = { 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" }, ui = {
|
|
4233
4275
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4234
4276
|
"aria-labelledby": "dropdownDividerButton"
|
|
4235
|
-
},
|
|
4277
|
+
}, ci = { key: 0 }, fi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Ud = {
|
|
4236
4278
|
__name: "DatatableDeleteAction",
|
|
4237
4279
|
props: {
|
|
4238
4280
|
field: {
|
|
@@ -4258,9 +4300,9 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4258
4300
|
},
|
|
4259
4301
|
emits: ["deleteAction"],
|
|
4260
4302
|
setup(e, { emit: t }) {
|
|
4261
|
-
const r = Ee(), n = e, o = C(!1), a = C(!1),
|
|
4303
|
+
const r = Ee(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4262
4304
|
o.value = !1;
|
|
4263
|
-
},
|
|
4305
|
+
}, l = () => {
|
|
4264
4306
|
o.value = !0;
|
|
4265
4307
|
}, c = () => {
|
|
4266
4308
|
a.value = !1;
|
|
@@ -4285,21 +4327,21 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4285
4327
|
onConfirmDelete: y,
|
|
4286
4328
|
onCancelDelete: c
|
|
4287
4329
|
}, null, 8, ["isOpen"]),
|
|
4288
|
-
e.row && x.can(`delete_${e.xprops.permission}`) ? O((d(), u("div",
|
|
4330
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? O((d(), u("div", oi, [
|
|
4289
4331
|
s("button", {
|
|
4290
|
-
onClick:
|
|
4332
|
+
onClick: l,
|
|
4291
4333
|
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",
|
|
4292
4334
|
type: "button"
|
|
4293
|
-
},
|
|
4294
|
-
O(s("div",
|
|
4295
|
-
s("ul",
|
|
4296
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4335
|
+
}, ii),
|
|
4336
|
+
O(s("div", di, [
|
|
4337
|
+
s("ul", ui, [
|
|
4338
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", ci, [
|
|
4297
4339
|
s("a", {
|
|
4298
4340
|
href: "#",
|
|
4299
4341
|
onClick: N(f, ["prevent"]),
|
|
4300
4342
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4301
4343
|
}, [
|
|
4302
|
-
|
|
4344
|
+
fi,
|
|
4303
4345
|
w(" Remove")
|
|
4304
4346
|
])
|
|
4305
4347
|
])) : g("", !0)
|
|
@@ -4308,12 +4350,12 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4308
4350
|
[F, o.value]
|
|
4309
4351
|
])
|
|
4310
4352
|
])), [
|
|
4311
|
-
[L,
|
|
4353
|
+
[L, i]
|
|
4312
4354
|
]) : g("", !0)
|
|
4313
4355
|
], 64);
|
|
4314
4356
|
};
|
|
4315
4357
|
}
|
|
4316
|
-
},
|
|
4358
|
+
}, gi = {
|
|
4317
4359
|
props: ["field", "row"],
|
|
4318
4360
|
computed: {
|
|
4319
4361
|
isArray() {
|
|
@@ -4329,7 +4371,7 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4329
4371
|
mounted() {
|
|
4330
4372
|
console.log("row : ", this.row);
|
|
4331
4373
|
}
|
|
4332
|
-
},
|
|
4374
|
+
}, hi = ["href", "title"], mi = /* @__PURE__ */ s("svg", {
|
|
4333
4375
|
class: "w-3 h-3 text-white me-2",
|
|
4334
4376
|
"aria-hidden": "true",
|
|
4335
4377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4346,10 +4388,10 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4346
4388
|
d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
|
|
4347
4389
|
"clip-rule": "evenodd"
|
|
4348
4390
|
})
|
|
4349
|
-
], -1),
|
|
4391
|
+
], -1), bi = {
|
|
4350
4392
|
key: 1,
|
|
4351
4393
|
class: "m-1 d-inline-block"
|
|
4352
|
-
},
|
|
4394
|
+
}, pi = ["href", "title"], yi = /* @__PURE__ */ s("svg", {
|
|
4353
4395
|
class: "w-3 h-3 text-white me-2",
|
|
4354
4396
|
"aria-hidden": "true",
|
|
4355
4397
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4367,35 +4409,35 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4367
4409
|
"clip-rule": "evenodd"
|
|
4368
4410
|
})
|
|
4369
4411
|
], -1);
|
|
4370
|
-
function
|
|
4412
|
+
function _i(e, t, r, n, o, a) {
|
|
4371
4413
|
return d(), u("div", null, [
|
|
4372
|
-
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row, (
|
|
4373
|
-
key:
|
|
4414
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row, (i, l) => (d(), u("div", {
|
|
4415
|
+
key: l,
|
|
4374
4416
|
class: "m-1 d-inline-block"
|
|
4375
4417
|
}, [
|
|
4376
4418
|
s("a", {
|
|
4377
|
-
href:
|
|
4378
|
-
title:
|
|
4419
|
+
href: i,
|
|
4420
|
+
title: i,
|
|
4379
4421
|
target: "_blank",
|
|
4380
4422
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4381
4423
|
}, [
|
|
4382
|
-
|
|
4424
|
+
mi,
|
|
4383
4425
|
w(" Download ")
|
|
4384
|
-
], 8,
|
|
4385
|
-
]))), 128)) : a.isString ? (d(), u("div",
|
|
4426
|
+
], 8, hi)
|
|
4427
|
+
]))), 128)) : a.isString ? (d(), u("div", bi, [
|
|
4386
4428
|
s("a", {
|
|
4387
4429
|
href: r.row,
|
|
4388
4430
|
title: r.row,
|
|
4389
4431
|
target: "_blank",
|
|
4390
4432
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4391
4433
|
}, [
|
|
4392
|
-
|
|
4434
|
+
yi,
|
|
4393
4435
|
w(" Download ")
|
|
4394
|
-
], 8,
|
|
4436
|
+
], 8, pi)
|
|
4395
4437
|
])) : g("", !0)
|
|
4396
4438
|
]);
|
|
4397
4439
|
}
|
|
4398
|
-
const
|
|
4440
|
+
const qd = /* @__PURE__ */ S(gi, [["render", _i]]), vi = {
|
|
4399
4441
|
props: ["field", "row"],
|
|
4400
4442
|
computed: {
|
|
4401
4443
|
isArray() {
|
|
@@ -4405,7 +4447,7 @@ const Fd = /* @__PURE__ */ S(ul, [["render", pl]]), bl = {
|
|
|
4405
4447
|
return typeof this.row[this.field] == "object";
|
|
4406
4448
|
}
|
|
4407
4449
|
}
|
|
4408
|
-
},
|
|
4450
|
+
}, xi = ["href", "title"], wi = /* @__PURE__ */ s("svg", {
|
|
4409
4451
|
class: "w-3 h-3 text-white me-2",
|
|
4410
4452
|
"aria-hidden": "true",
|
|
4411
4453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4422,10 +4464,10 @@ const Fd = /* @__PURE__ */ S(ul, [["render", pl]]), bl = {
|
|
|
4422
4464
|
d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
|
|
4423
4465
|
"clip-rule": "evenodd"
|
|
4424
4466
|
})
|
|
4425
|
-
], -1),
|
|
4467
|
+
], -1), ki = {
|
|
4426
4468
|
key: 1,
|
|
4427
4469
|
class: "m-1 d-inline-block"
|
|
4428
|
-
},
|
|
4470
|
+
}, $i = ["href", "title"], Ci = /* @__PURE__ */ s("svg", {
|
|
4429
4471
|
class: "w-3 h-3 text-white me-2",
|
|
4430
4472
|
"aria-hidden": "true",
|
|
4431
4473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4443,46 +4485,46 @@ const Fd = /* @__PURE__ */ S(ul, [["render", pl]]), bl = {
|
|
|
4443
4485
|
"clip-rule": "evenodd"
|
|
4444
4486
|
})
|
|
4445
4487
|
], -1);
|
|
4446
|
-
function
|
|
4488
|
+
function Si(e, t, r, n, o, a) {
|
|
4447
4489
|
return d(), u("div", null, [
|
|
4448
|
-
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[r.field], (
|
|
4449
|
-
key:
|
|
4490
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[r.field], (i) => (d(), u("div", {
|
|
4491
|
+
key: i.id,
|
|
4450
4492
|
class: "m-1 d-inline-block"
|
|
4451
4493
|
}, [
|
|
4452
4494
|
s("a", {
|
|
4453
|
-
href:
|
|
4454
|
-
title:
|
|
4495
|
+
href: i.url,
|
|
4496
|
+
title: i.name,
|
|
4455
4497
|
target: "_blank",
|
|
4456
4498
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4457
4499
|
}, [
|
|
4458
|
-
|
|
4500
|
+
wi,
|
|
4459
4501
|
w(" Download ")
|
|
4460
|
-
], 8,
|
|
4461
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4502
|
+
], 8, xi)
|
|
4503
|
+
]))), 128)) : a.isObject ? (d(), u("div", ki, [
|
|
4462
4504
|
s("a", {
|
|
4463
4505
|
href: r.row[r.field].url,
|
|
4464
4506
|
title: r.row[r.field].name,
|
|
4465
4507
|
target: "_blank",
|
|
4466
4508
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4467
4509
|
}, [
|
|
4468
|
-
|
|
4510
|
+
Ci,
|
|
4469
4511
|
w(" Download ")
|
|
4470
|
-
], 8,
|
|
4512
|
+
], 8, $i)
|
|
4471
4513
|
])) : g("", !0)
|
|
4472
4514
|
]);
|
|
4473
4515
|
}
|
|
4474
|
-
const
|
|
4516
|
+
const zd = /* @__PURE__ */ S(vi, [["render", Si]]), Di = {
|
|
4475
4517
|
props: ["field", "row", "tdProps"]
|
|
4476
|
-
},
|
|
4477
|
-
function
|
|
4478
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4518
|
+
}, Oi = { key: 0 }, Pi = ["innerHTML"];
|
|
4519
|
+
function Ei(e, t, r, n, o, a) {
|
|
4520
|
+
return r.row[r.field] ? (d(), u("div", Oi, [
|
|
4479
4521
|
s("div", {
|
|
4480
4522
|
class: "w-full",
|
|
4481
4523
|
innerHTML: r.row[r.field]
|
|
4482
|
-
}, null, 8,
|
|
4524
|
+
}, null, 8, Pi)
|
|
4483
4525
|
])) : g("", !0);
|
|
4484
4526
|
}
|
|
4485
|
-
const
|
|
4527
|
+
const Hd = /* @__PURE__ */ S(Di, [["render", Ei]]), ji = {
|
|
4486
4528
|
props: ["field", "row", "tdProps"],
|
|
4487
4529
|
computed: {
|
|
4488
4530
|
entry() {
|
|
@@ -4496,24 +4538,24 @@ const Ud = /* @__PURE__ */ S($l, [["render", Dl]]), Ol = {
|
|
|
4496
4538
|
return typeof this.row[this.entry.key] == "object";
|
|
4497
4539
|
}
|
|
4498
4540
|
}
|
|
4499
|
-
},
|
|
4541
|
+
}, Ai = { class: "flex flex-wrap gap-2" }, Ti = {
|
|
4500
4542
|
key: 1,
|
|
4501
4543
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4502
4544
|
};
|
|
4503
|
-
function
|
|
4504
|
-
return d(), u("div",
|
|
4505
|
-
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (
|
|
4506
|
-
key:
|
|
4545
|
+
function Ii(e, t, r, n, o, a) {
|
|
4546
|
+
return d(), u("div", Ai, [
|
|
4547
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4548
|
+
key: l,
|
|
4507
4549
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4508
|
-
}, h(
|
|
4550
|
+
}, h(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Ti, h(r.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4509
4551
|
]);
|
|
4510
4552
|
}
|
|
4511
|
-
const
|
|
4553
|
+
const Zd = /* @__PURE__ */ S(ji, [["render", Ii]]), Mi = {
|
|
4512
4554
|
props: ["field", "row", "tdProps"]
|
|
4513
|
-
},
|
|
4514
|
-
function
|
|
4515
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4516
|
-
s("div",
|
|
4555
|
+
}, Ni = { key: 0 }, Vi = { class: "m-1 d-inline-block" }, Li = ["href", "title"], Bi = ["src", "alt", "title"];
|
|
4556
|
+
function Gi(e, t, r, n, o, a) {
|
|
4557
|
+
return r.row[r.field] ? (d(), u("div", Ni, [
|
|
4558
|
+
s("div", Vi, [
|
|
4517
4559
|
s("a", {
|
|
4518
4560
|
href: r.row[r.field].url,
|
|
4519
4561
|
title: r.row[r.field].name,
|
|
@@ -4523,37 +4565,37 @@ function Vl(e, t, r, n, o, a) {
|
|
|
4523
4565
|
src: r.row[r.field].thumbnail,
|
|
4524
4566
|
alt: r.row[r.field].name,
|
|
4525
4567
|
title: r.row[r.field].name
|
|
4526
|
-
}, null, 8,
|
|
4527
|
-
], 8,
|
|
4568
|
+
}, null, 8, Bi)
|
|
4569
|
+
], 8, Li)
|
|
4528
4570
|
])
|
|
4529
4571
|
])) : g("", !0);
|
|
4530
4572
|
}
|
|
4531
|
-
const
|
|
4573
|
+
const Kd = /* @__PURE__ */ S(Mi, [["render", Gi], ["__scopeId", "data-v-3a28c02c"]]), Fi = {
|
|
4532
4574
|
props: ["field", "row", "tdProps"],
|
|
4533
4575
|
computed: {
|
|
4534
4576
|
isActive() {
|
|
4535
4577
|
return this.row[this.field] === 1;
|
|
4536
4578
|
}
|
|
4537
4579
|
}
|
|
4538
|
-
},
|
|
4580
|
+
}, Ri = { class: "flex flex-wrap gap-2 text-nowrap" }, Ui = {
|
|
4539
4581
|
key: 0,
|
|
4540
4582
|
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"
|
|
4541
|
-
},
|
|
4583
|
+
}, qi = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), zi = {
|
|
4542
4584
|
key: 1,
|
|
4543
4585
|
class: "inline-flex items-center bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded-full dark:bg-red-900 dark:text-red-300"
|
|
4544
|
-
},
|
|
4545
|
-
function
|
|
4546
|
-
return d(), u("div",
|
|
4547
|
-
a.isActive ? (d(), u("span",
|
|
4548
|
-
|
|
4586
|
+
}, Hi = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4587
|
+
function Zi(e, t, r, n, o, a) {
|
|
4588
|
+
return d(), u("div", Ri, [
|
|
4589
|
+
a.isActive ? (d(), u("span", Ui, [
|
|
4590
|
+
qi,
|
|
4549
4591
|
w(" Active ")
|
|
4550
|
-
])) : a.isActive ? g("", !0) : (d(), u("span",
|
|
4551
|
-
|
|
4592
|
+
])) : a.isActive ? g("", !0) : (d(), u("span", zi, [
|
|
4593
|
+
Hi,
|
|
4552
4594
|
w(" Inactive ")
|
|
4553
4595
|
]))
|
|
4554
4596
|
]);
|
|
4555
4597
|
}
|
|
4556
|
-
const
|
|
4598
|
+
const Wd = /* @__PURE__ */ S(Fi, [["render", Zi]]), Ki = {
|
|
4557
4599
|
props: ["field", "row", "tdProps"],
|
|
4558
4600
|
computed: {
|
|
4559
4601
|
hasLabelColor(e) {
|
|
@@ -4561,40 +4603,40 @@ const Hd = /* @__PURE__ */ S(Ll, [["render", ql]]), zl = {
|
|
|
4561
4603
|
return t ? t.class : "";
|
|
4562
4604
|
}
|
|
4563
4605
|
}
|
|
4564
|
-
},
|
|
4606
|
+
}, Wi = { class: "flex flex-wrap gap-2 text-nowrap" }, Xi = {
|
|
4565
4607
|
key: 0,
|
|
4566
4608
|
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"
|
|
4567
|
-
},
|
|
4609
|
+
}, Yi = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Ji = {
|
|
4568
4610
|
key: 1,
|
|
4569
4611
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-red-800 bg-red-100 rounded-full dark:bg-red-900 dark:text-red-300"
|
|
4570
|
-
},
|
|
4612
|
+
}, Qi = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), ed = {
|
|
4571
4613
|
key: 2,
|
|
4572
4614
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"
|
|
4573
|
-
},
|
|
4615
|
+
}, td = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), rd = {
|
|
4574
4616
|
key: 3,
|
|
4575
4617
|
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"
|
|
4576
|
-
},
|
|
4577
|
-
function
|
|
4578
|
-
return d(), u("div",
|
|
4579
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4580
|
-
|
|
4618
|
+
}, sd = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1);
|
|
4619
|
+
function ad(e, t, r, n, o, a) {
|
|
4620
|
+
return d(), u("div", Wi, [
|
|
4621
|
+
a.hasLabelColor == "green" ? (d(), u("span", Xi, [
|
|
4622
|
+
Yi,
|
|
4581
4623
|
w(" " + h(this.row[this.field]), 1)
|
|
4582
4624
|
])) : g("", !0),
|
|
4583
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4584
|
-
|
|
4625
|
+
a.hasLabelColor == "red" ? (d(), u("span", Ji, [
|
|
4626
|
+
Qi,
|
|
4585
4627
|
w(" " + h(this.row[this.field]), 1)
|
|
4586
4628
|
])) : g("", !0),
|
|
4587
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4588
|
-
|
|
4629
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", ed, [
|
|
4630
|
+
td,
|
|
4589
4631
|
w(" " + h(this.row[this.field]), 1)
|
|
4590
4632
|
])) : g("", !0),
|
|
4591
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4592
|
-
|
|
4633
|
+
a.hasLabelColor == "default" ? (d(), u("span", rd, [
|
|
4634
|
+
sd,
|
|
4593
4635
|
w(" " + h(this.row[this.field]), 1)
|
|
4594
4636
|
])) : g("", !0)
|
|
4595
4637
|
]);
|
|
4596
4638
|
}
|
|
4597
|
-
const
|
|
4639
|
+
const Xd = /* @__PURE__ */ S(Ki, [["render", ad]]), nd = {
|
|
4598
4640
|
props: ["field", "row", "tdProps"],
|
|
4599
4641
|
computed: {
|
|
4600
4642
|
hasLabelColor() {
|
|
@@ -4615,44 +4657,44 @@ const Zd = /* @__PURE__ */ S(zl, [["render", td]]), rd = {
|
|
|
4615
4657
|
}
|
|
4616
4658
|
}
|
|
4617
4659
|
}
|
|
4618
|
-
},
|
|
4619
|
-
function
|
|
4620
|
-
return d(), u("div",
|
|
4660
|
+
}, od = { class: "flex flex-wrap gap-2 text-nowrap" };
|
|
4661
|
+
function ld(e, t, r, n, o, a) {
|
|
4662
|
+
return d(), u("div", od, [
|
|
4621
4663
|
a.hasLabelColor == "Default" ? (d(), u("span", {
|
|
4622
4664
|
key: 0,
|
|
4623
|
-
class:
|
|
4665
|
+
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])
|
|
4624
4666
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4625
4667
|
a.hasLabelColor == "Dark" ? (d(), u("span", {
|
|
4626
4668
|
key: 1,
|
|
4627
|
-
class:
|
|
4669
|
+
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])
|
|
4628
4670
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4629
4671
|
a.hasLabelColor == "Red" ? (d(), u("span", {
|
|
4630
4672
|
key: 2,
|
|
4631
|
-
class:
|
|
4673
|
+
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])
|
|
4632
4674
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4633
4675
|
a.hasLabelColor == "Green" ? (d(), u("span", {
|
|
4634
4676
|
key: 3,
|
|
4635
|
-
class:
|
|
4677
|
+
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])
|
|
4636
4678
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4637
4679
|
a.hasLabelColor == "Yellow" ? (d(), u("span", {
|
|
4638
4680
|
key: 4,
|
|
4639
|
-
class:
|
|
4681
|
+
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])
|
|
4640
4682
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4641
4683
|
a.hasLabelColor == "Indigo" ? (d(), u("span", {
|
|
4642
4684
|
key: 5,
|
|
4643
|
-
class:
|
|
4685
|
+
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])
|
|
4644
4686
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4645
4687
|
a.hasLabelColor == "Purple" ? (d(), u("span", {
|
|
4646
4688
|
key: 6,
|
|
4647
|
-
class:
|
|
4689
|
+
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])
|
|
4648
4690
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4649
4691
|
a.hasLabelColor == "Pink" ? (d(), u("span", {
|
|
4650
4692
|
key: 7,
|
|
4651
|
-
class:
|
|
4693
|
+
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])
|
|
4652
4694
|
}, h(this.row[this.field]), 3)) : g("", !0)
|
|
4653
4695
|
]);
|
|
4654
4696
|
}
|
|
4655
|
-
const
|
|
4697
|
+
const Yd = /* @__PURE__ */ S(nd, [["render", ld]]), id = {
|
|
4656
4698
|
props: ["isOpen", "title", "button_text"],
|
|
4657
4699
|
methods: {
|
|
4658
4700
|
confirmAction() {
|
|
@@ -4662,42 +4704,42 @@ const Kd = /* @__PURE__ */ S(rd, [["render", ad]]), nd = {
|
|
|
4662
4704
|
this.$emit("cancel-action");
|
|
4663
4705
|
}
|
|
4664
4706
|
}
|
|
4665
|
-
},
|
|
4707
|
+
}, dd = {
|
|
4666
4708
|
key: 0,
|
|
4667
4709
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4668
4710
|
role: "dialog",
|
|
4669
4711
|
"aria-modal": "true"
|
|
4670
|
-
},
|
|
4712
|
+
}, ud = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, cd = /* @__PURE__ */ s("div", {
|
|
4671
4713
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4672
4714
|
"aria-hidden": "true"
|
|
4673
|
-
}, null, -1),
|
|
4715
|
+
}, null, -1), fd = /* @__PURE__ */ s("span", {
|
|
4674
4716
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4675
4717
|
"aria-hidden": "true"
|
|
4676
|
-
}, "", -1),
|
|
4677
|
-
function
|
|
4678
|
-
return r.isOpen ? (d(), u("div",
|
|
4679
|
-
s("div",
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
s("div",
|
|
4683
|
-
s("div",
|
|
4684
|
-
s("div",
|
|
4685
|
-
s("div",
|
|
4686
|
-
s("h3",
|
|
4687
|
-
s("div",
|
|
4718
|
+
}, "", -1), gd = { 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" }, hd = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, md = { class: "sm:flex sm:items-start" }, bd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, pd = { class: "text-lg font-medium leading-6 text-gray-900" }, yd = { class: "mt-2" }, _d = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4719
|
+
function vd(e, t, r, n, o, a) {
|
|
4720
|
+
return r.isOpen ? (d(), u("div", dd, [
|
|
4721
|
+
s("div", ud, [
|
|
4722
|
+
cd,
|
|
4723
|
+
fd,
|
|
4724
|
+
s("div", gd, [
|
|
4725
|
+
s("div", hd, [
|
|
4726
|
+
s("div", md, [
|
|
4727
|
+
s("div", bd, [
|
|
4728
|
+
s("h3", pd, h(r.title), 1),
|
|
4729
|
+
s("div", yd, [
|
|
4688
4730
|
T(e.$slots, "default")
|
|
4689
4731
|
])
|
|
4690
4732
|
])
|
|
4691
4733
|
])
|
|
4692
4734
|
]),
|
|
4693
|
-
s("div",
|
|
4735
|
+
s("div", _d, [
|
|
4694
4736
|
s("button", {
|
|
4695
|
-
onClick: t[0] || (t[0] = (...
|
|
4737
|
+
onClick: t[0] || (t[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
4696
4738
|
type: "button",
|
|
4697
4739
|
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"
|
|
4698
4740
|
}, h(r.button_text), 1),
|
|
4699
4741
|
s("button", {
|
|
4700
|
-
onClick: t[1] || (t[1] = (...
|
|
4742
|
+
onClick: t[1] || (t[1] = (...i) => a.cancelAction && a.cancelAction(...i)),
|
|
4701
4743
|
type: "button",
|
|
4702
4744
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4703
4745
|
}, " Cancel ")
|
|
@@ -4706,40 +4748,40 @@ function bd(e, t, r, n, o, a) {
|
|
|
4706
4748
|
])
|
|
4707
4749
|
])) : g("", !0);
|
|
4708
4750
|
}
|
|
4709
|
-
const
|
|
4751
|
+
const Jd = /* @__PURE__ */ S(id, [["render", vd]]);
|
|
4710
4752
|
export {
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4753
|
+
Dd as GlButton,
|
|
4754
|
+
Cd as GlCard,
|
|
4755
|
+
Jd as GlConfirmationModal,
|
|
4756
|
+
Gd as GlDataTable,
|
|
4757
|
+
Bd as GlDataTableServerSide,
|
|
4758
|
+
Rd as GlDatatableAction,
|
|
4759
|
+
Ud as GlDatatableDeleteAction,
|
|
4760
|
+
qd as GlDatatableFileDownload,
|
|
4761
|
+
zd as GlDatatableFiles,
|
|
4762
|
+
Hd as GlDatatableHtml,
|
|
4763
|
+
Zd as GlDatatableList,
|
|
4764
|
+
Kd as GlDatatablePicture,
|
|
4765
|
+
Wd as GlDatatableStatus,
|
|
4766
|
+
Xd as GlDatatableStatusGeneral,
|
|
4767
|
+
Yd as GlDatatableStatusSpecficColor,
|
|
4726
4768
|
ue as GlDeleteConfirmationModal,
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4769
|
+
Vd as GlDropdown,
|
|
4770
|
+
wd as GlFilesUpload,
|
|
4771
|
+
$d as GlLanguageSelector,
|
|
4772
|
+
Md as GlModal,
|
|
4773
|
+
Id as GlMultiItemSlide,
|
|
4774
|
+
Sd as GlMultiSelectDropdown,
|
|
4775
|
+
kd as GlNotify,
|
|
4776
|
+
Td as GlTab,
|
|
4777
|
+
Ad as GlTabsWrapper,
|
|
4736
4778
|
xo as GlTailwindPagination,
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4779
|
+
jd as GlTextInput,
|
|
4780
|
+
Ed as GlTextTranslate,
|
|
4781
|
+
Ld as GlTextarea,
|
|
4782
|
+
Od as GlTextareaTranslate,
|
|
4783
|
+
Pd as GlTinymceTranslate,
|
|
4742
4784
|
$e as GlToast,
|
|
4743
|
-
|
|
4744
|
-
|
|
4785
|
+
Fd as GlToastList,
|
|
4786
|
+
Nd as GlToggleBox
|
|
4745
4787
|
};
|