golden-logic-ui 1.0.72 → 1.0.74
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 +763 -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 kd = /* @__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 $d = /* @__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 Cd = /* @__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
|
+
}, Sd = {
|
|
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 Dd = /* @__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 Od = /* @__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" }, Pd = {
|
|
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" }, Ed = {
|
|
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" }, jd = {
|
|
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" }, Ad = {
|
|
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 Td = /* @__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 Id = /* @__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 Md = /* @__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" }, Nd = {
|
|
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" }, Vd = {
|
|
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" }, Ld = {
|
|
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" }, Bd = {
|
|
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 = ["colspan"], Fo = /* @__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), Ro = [
|
|
3632
|
+
Fo
|
|
3633
|
+
], Uo = ["data-label"], qo = { class: "overflow-auto max-h-40" }, zo = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
3634
|
+
function Ho(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,12 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3643
3684
|
])
|
|
3644
3685
|
]),
|
|
3645
3686
|
s("tbody", null, [
|
|
3646
|
-
|
|
3687
|
+
o.isLoading ? (d(), u("tr", Bo, [
|
|
3688
|
+
s("td", {
|
|
3689
|
+
colspan: r.columns.length
|
|
3690
|
+
}, Ro, 8, Go)
|
|
3691
|
+
])) : g("", !0),
|
|
3692
|
+
o.isLoading ? g("", !0) : (d(!0), u(v, { key: 1 }, k(o.itemLists.data, (c, f) => (d(), u("tr", {
|
|
3647
3693
|
key: f,
|
|
3648
3694
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
3649
3695
|
}, [
|
|
@@ -3652,7 +3698,7 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3652
3698
|
"data-label": m.field_label,
|
|
3653
3699
|
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
3700
|
}, [
|
|
3655
|
-
s("div",
|
|
3701
|
+
s("div", qo, [
|
|
3656
3702
|
m.tdComp ? (d(), K(oe(a.forDynCompIs(m.tdComp)), {
|
|
3657
3703
|
key: 0,
|
|
3658
3704
|
row: c,
|
|
@@ -3664,13 +3710,13 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3664
3710
|
w(h(c[m.field_name]), 1)
|
|
3665
3711
|
], 64))
|
|
3666
3712
|
])
|
|
3667
|
-
], 8,
|
|
3713
|
+
], 8, Uo))), 128))
|
|
3668
3714
|
]))), 128))
|
|
3669
3715
|
])
|
|
3670
3716
|
])
|
|
3671
3717
|
]),
|
|
3672
|
-
s("div",
|
|
3673
|
-
Z(
|
|
3718
|
+
s("div", zo, [
|
|
3719
|
+
Z(l, {
|
|
3674
3720
|
class: "mt-3 mb-0",
|
|
3675
3721
|
data: o.itemLists,
|
|
3676
3722
|
limit: o.limit,
|
|
@@ -3681,7 +3727,7 @@ function Ro(e, t, r, n, o, a) {
|
|
|
3681
3727
|
])
|
|
3682
3728
|
]);
|
|
3683
3729
|
}
|
|
3684
|
-
const
|
|
3730
|
+
const Gd = /* @__PURE__ */ S(wo, [["render", Ho]]), Zo = {
|
|
3685
3731
|
components: {},
|
|
3686
3732
|
props: {
|
|
3687
3733
|
data: Array,
|
|
@@ -3778,10 +3824,10 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3778
3824
|
mounted() {
|
|
3779
3825
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3780
3826
|
}
|
|
3781
|
-
},
|
|
3827
|
+
}, Ko = { class: "p-2" }, Wo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Xo = { class: "flex items-center gap-2" }, Yo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Jo = { style: { "margin-top": "9px" } }, Qo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), el = /* @__PURE__ */ s("label", {
|
|
3782
3828
|
for: "table-search",
|
|
3783
3829
|
class: "sr-only"
|
|
3784
|
-
}, "Search", -1),
|
|
3830
|
+
}, "Search", -1), tl = { class: "relative" }, rl = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3785
3831
|
/* @__PURE__ */ s("svg", {
|
|
3786
3832
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3787
3833
|
"aria-hidden": "true",
|
|
@@ -3795,10 +3841,10 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3795
3841
|
"clip-rule": "evenodd"
|
|
3796
3842
|
})
|
|
3797
3843
|
])
|
|
3798
|
-
], -1),
|
|
3844
|
+
], -1), sl = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, al = { 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" }, nl = { 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" }, ol = ["onClick"], ll = {
|
|
3799
3845
|
key: 0,
|
|
3800
3846
|
class: "ml-2"
|
|
3801
|
-
},
|
|
3847
|
+
}, il = ["data-label"], dl = ["innerHTML"], ul = { 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" }, cl = { class: "flex justify-between flex-1 sm:hidden" }, fl = ["disabled"], gl = ["disabled"], hl = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, ml = { class: "text-sm text-gray-700 dark:text-gray-400" }, bl = { class: "font-medium" }, pl = { class: "font-medium" }, yl = { class: "font-medium" }, _l = { "aria-label": "Page navigation" }, vl = { class: "flex items-center h-8 -space-x-px text-sm" }, xl = ["disabled"], wl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), kl = /* @__PURE__ */ s("svg", {
|
|
3802
3848
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3803
3849
|
"aria-hidden": "true",
|
|
3804
3850
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3812,10 +3858,10 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3812
3858
|
"stroke-width": "2",
|
|
3813
3859
|
d: "M5 1 1 5l4 4"
|
|
3814
3860
|
})
|
|
3815
|
-
], -1),
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
],
|
|
3861
|
+
], -1), $l = [
|
|
3862
|
+
wl,
|
|
3863
|
+
kl
|
|
3864
|
+
], Cl = ["onClick"], Sl = ["onClick"], Dl = ["disabled"], Ol = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), Pl = /* @__PURE__ */ s("svg", {
|
|
3819
3865
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3820
3866
|
"aria-hidden": "true",
|
|
3821
3867
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3829,22 +3875,22 @@ const Nd = /* @__PURE__ */ S(wo, [["render", Ro]]), Uo = {
|
|
|
3829
3875
|
"stroke-width": "2",
|
|
3830
3876
|
d: "m1 9 4-4-4-4"
|
|
3831
3877
|
})
|
|
3832
|
-
], -1),
|
|
3833
|
-
|
|
3834
|
-
|
|
3878
|
+
], -1), El = [
|
|
3879
|
+
Ol,
|
|
3880
|
+
Pl
|
|
3835
3881
|
];
|
|
3836
|
-
function
|
|
3837
|
-
const
|
|
3838
|
-
return d(), u("div",
|
|
3839
|
-
s("div",
|
|
3840
|
-
s("div",
|
|
3841
|
-
|
|
3842
|
-
s("div",
|
|
3843
|
-
Z(
|
|
3882
|
+
function jl(e, t, r, n, o, a) {
|
|
3883
|
+
const i = Y("dropdown");
|
|
3884
|
+
return d(), u("div", Ko, [
|
|
3885
|
+
s("div", Wo, [
|
|
3886
|
+
s("div", Xo, [
|
|
3887
|
+
Yo,
|
|
3888
|
+
s("div", Jo, [
|
|
3889
|
+
Z(i, {
|
|
3844
3890
|
has_cancel: !1,
|
|
3845
3891
|
options: o.showNoOfEntries,
|
|
3846
3892
|
modelValue: o.itemsPerPage,
|
|
3847
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3893
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => o.itemsPerPage = l),
|
|
3848
3894
|
is_required: !1,
|
|
3849
3895
|
field_name: "NoOfEntries",
|
|
3850
3896
|
label_name: "",
|
|
@@ -3853,14 +3899,14 @@ function Di(e, t, r, n, o, a) {
|
|
|
3853
3899
|
placeholder: "Please select an option"
|
|
3854
3900
|
}, null, 8, ["options", "modelValue"])
|
|
3855
3901
|
]),
|
|
3856
|
-
|
|
3902
|
+
Qo
|
|
3857
3903
|
]),
|
|
3858
|
-
|
|
3859
|
-
s("div",
|
|
3860
|
-
|
|
3904
|
+
el,
|
|
3905
|
+
s("div", tl, [
|
|
3906
|
+
rl,
|
|
3861
3907
|
O(s("input", {
|
|
3862
3908
|
type: "text",
|
|
3863
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3909
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => o.search = l),
|
|
3864
3910
|
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
3911
|
placeholder: "Search ..."
|
|
3866
3912
|
}, null, 512), [
|
|
@@ -3868,22 +3914,22 @@ function Di(e, t, r, n, o, a) {
|
|
|
3868
3914
|
])
|
|
3869
3915
|
])
|
|
3870
3916
|
]),
|
|
3871
|
-
s("div",
|
|
3872
|
-
s("table",
|
|
3873
|
-
s("thead",
|
|
3917
|
+
s("div", sl, [
|
|
3918
|
+
s("table", al, [
|
|
3919
|
+
s("thead", nl, [
|
|
3874
3920
|
s("tr", null, [
|
|
3875
|
-
(d(!0), u(v, null, k(r.columns, (
|
|
3921
|
+
(d(!0), u(v, null, k(r.columns, (l, c) => (d(), u("th", {
|
|
3876
3922
|
key: c,
|
|
3877
|
-
onClick: (f) => a.sort(
|
|
3923
|
+
onClick: (f) => a.sort(l),
|
|
3878
3924
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3879
3925
|
}, [
|
|
3880
|
-
w(h(
|
|
3881
|
-
o.sortKey ===
|
|
3882
|
-
], 8,
|
|
3926
|
+
w(h(l) + " ", 1),
|
|
3927
|
+
o.sortKey === l ? (d(), u("span", ll, h(o.sortOrder === 1 ? "▲" : "▼"), 1)) : g("", !0)
|
|
3928
|
+
], 8, ol))), 128))
|
|
3883
3929
|
])
|
|
3884
3930
|
]),
|
|
3885
3931
|
s("tbody", null, [
|
|
3886
|
-
(d(!0), u(v, null, k(a.paginatedData, (
|
|
3932
|
+
(d(!0), u(v, null, k(a.paginatedData, (l, c) => (d(), u("tr", {
|
|
3887
3933
|
key: c,
|
|
3888
3934
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3889
3935
|
}, [
|
|
@@ -3894,77 +3940,77 @@ function Di(e, t, r, n, o, a) {
|
|
|
3894
3940
|
}, [
|
|
3895
3941
|
s("p", {
|
|
3896
3942
|
class: "text-pretty",
|
|
3897
|
-
innerHTML:
|
|
3898
|
-
}, null, 8,
|
|
3899
|
-
], 8,
|
|
3943
|
+
innerHTML: l[m]
|
|
3944
|
+
}, null, 8, dl)
|
|
3945
|
+
], 8, il))), 128))
|
|
3900
3946
|
]))), 128))
|
|
3901
3947
|
])
|
|
3902
3948
|
])
|
|
3903
3949
|
]),
|
|
3904
|
-
s("div",
|
|
3905
|
-
s("div",
|
|
3950
|
+
s("div", ul, [
|
|
3951
|
+
s("div", cl, [
|
|
3906
3952
|
s("a", {
|
|
3907
3953
|
href: "#",
|
|
3908
|
-
onClick: t[2] || (t[2] = (...
|
|
3954
|
+
onClick: t[2] || (t[2] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
3909
3955
|
disabled: o.currentPage === 1,
|
|
3910
3956
|
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,
|
|
3957
|
+
}, "Previous", 8, fl),
|
|
3912
3958
|
s("a", {
|
|
3913
3959
|
href: "#",
|
|
3914
|
-
onClick: t[3] || (t[3] = (...
|
|
3960
|
+
onClick: t[3] || (t[3] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
3915
3961
|
disabled: o.currentPage === a.totalPages,
|
|
3916
3962
|
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,
|
|
3963
|
+
}, "Next", 8, gl)
|
|
3918
3964
|
]),
|
|
3919
|
-
s("div",
|
|
3965
|
+
s("div", hl, [
|
|
3920
3966
|
s("div", null, [
|
|
3921
|
-
s("p",
|
|
3967
|
+
s("p", ml, [
|
|
3922
3968
|
w(" Showing "),
|
|
3923
|
-
s("span",
|
|
3969
|
+
s("span", bl, h(a.firstItemIndex), 1),
|
|
3924
3970
|
w(" to "),
|
|
3925
|
-
s("span",
|
|
3971
|
+
s("span", pl, h(a.lastItemIndex), 1),
|
|
3926
3972
|
w(" of "),
|
|
3927
|
-
s("span",
|
|
3973
|
+
s("span", yl, h(a.filteredData.length), 1),
|
|
3928
3974
|
w(" entries ")
|
|
3929
3975
|
])
|
|
3930
3976
|
]),
|
|
3931
3977
|
s("div", null, [
|
|
3932
|
-
s("nav",
|
|
3933
|
-
s("ul",
|
|
3978
|
+
s("nav", _l, [
|
|
3979
|
+
s("ul", vl, [
|
|
3934
3980
|
s("li", null, [
|
|
3935
3981
|
s("a", {
|
|
3936
3982
|
href: "#",
|
|
3937
|
-
onClick: t[4] || (t[4] = (...
|
|
3983
|
+
onClick: t[4] || (t[4] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
3938
3984
|
disabled: o.currentPage === 1,
|
|
3939
3985
|
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
|
-
},
|
|
3986
|
+
}, $l, 8, xl)
|
|
3941
3987
|
]),
|
|
3942
|
-
(d(!0), u(v, null, k(a.displayedPageNumbers, (
|
|
3988
|
+
(d(!0), u(v, null, k(a.displayedPageNumbers, (l) => (d(), u(v, { key: l }, [
|
|
3943
3989
|
s("li", null, [
|
|
3944
|
-
o.currentPage !==
|
|
3990
|
+
o.currentPage !== l ? (d(), u("a", {
|
|
3945
3991
|
key: 0,
|
|
3946
3992
|
href: "#",
|
|
3947
|
-
onClick: (c) => a.goToPage(
|
|
3993
|
+
onClick: (c) => a.goToPage(l),
|
|
3948
3994
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3949
|
-
}, h(
|
|
3995
|
+
}, h(l), 9, Cl)) : g("", !0)
|
|
3950
3996
|
]),
|
|
3951
3997
|
s("li", null, [
|
|
3952
|
-
o.currentPage ===
|
|
3998
|
+
o.currentPage === l ? (d(), u("a", {
|
|
3953
3999
|
key: 0,
|
|
3954
4000
|
href: "#",
|
|
3955
|
-
onClick: (c) => a.goToPage(
|
|
4001
|
+
onClick: (c) => a.goToPage(l),
|
|
3956
4002
|
"aria-current": "page",
|
|
3957
4003
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
3958
|
-
}, h(
|
|
4004
|
+
}, h(l), 9, Sl)) : g("", !0)
|
|
3959
4005
|
])
|
|
3960
4006
|
], 64))), 128)),
|
|
3961
4007
|
s("li", null, [
|
|
3962
4008
|
s("a", {
|
|
3963
4009
|
href: "#",
|
|
3964
|
-
onClick: t[5] || (t[5] = (...
|
|
4010
|
+
onClick: t[5] || (t[5] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
3965
4011
|
disabled: o.currentPage === a.totalPages,
|
|
3966
4012
|
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
|
-
},
|
|
4013
|
+
}, El, 8, Dl)
|
|
3968
4014
|
])
|
|
3969
4015
|
])
|
|
3970
4016
|
])
|
|
@@ -3973,13 +4019,13 @@ function Di(e, t, r, n, o, a) {
|
|
|
3973
4019
|
])
|
|
3974
4020
|
]);
|
|
3975
4021
|
}
|
|
3976
|
-
const
|
|
4022
|
+
const Fd = /* @__PURE__ */ S(Zo, [["render", jl]]), Al = {
|
|
3977
4023
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
3978
4024
|
role: "alert"
|
|
3979
|
-
},
|
|
4025
|
+
}, Tl = {
|
|
3980
4026
|
key: 0,
|
|
3981
4027
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"
|
|
3982
|
-
},
|
|
4028
|
+
}, Il = /* @__PURE__ */ s("svg", {
|
|
3983
4029
|
class: "w-5 h-5",
|
|
3984
4030
|
"aria-hidden": "true",
|
|
3985
4031
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3987,13 +4033,13 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
3987
4033
|
viewBox: "0 0 20 20"
|
|
3988
4034
|
}, [
|
|
3989
4035
|
/* @__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
|
-
],
|
|
4036
|
+
], -1), Ml = /* @__PURE__ */ s("span", { class: "sr-only" }, "Check icon", -1), Nl = [
|
|
4037
|
+
Il,
|
|
4038
|
+
Ml
|
|
4039
|
+
], Vl = {
|
|
3994
4040
|
key: 1,
|
|
3995
4041
|
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
|
-
},
|
|
4042
|
+
}, Ll = /* @__PURE__ */ s("svg", {
|
|
3997
4043
|
class: "w-5 h-5",
|
|
3998
4044
|
"aria-hidden": "true",
|
|
3999
4045
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4001,13 +4047,13 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4001
4047
|
viewBox: "0 0 20 20"
|
|
4002
4048
|
}, [
|
|
4003
4049
|
/* @__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
|
-
],
|
|
4050
|
+
], -1), Bl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Error icon", -1), Gl = [
|
|
4051
|
+
Ll,
|
|
4052
|
+
Bl
|
|
4053
|
+
], Fl = {
|
|
4008
4054
|
key: 2,
|
|
4009
4055
|
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
|
-
},
|
|
4056
|
+
}, Rl = /* @__PURE__ */ s("svg", {
|
|
4011
4057
|
class: "w-5 h-5",
|
|
4012
4058
|
"aria-hidden": "true",
|
|
4013
4059
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4015,10 +4061,10 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4015
4061
|
viewBox: "0 0 20 20"
|
|
4016
4062
|
}, [
|
|
4017
4063
|
/* @__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
|
-
],
|
|
4064
|
+
], -1), Ul = /* @__PURE__ */ s("span", { class: "sr-only" }, "Warning icon", -1), ql = [
|
|
4065
|
+
Rl,
|
|
4066
|
+
Ul
|
|
4067
|
+
], zl = { class: "ml-3 text-sm font-normal" }, Hl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), Zl = /* @__PURE__ */ s("svg", {
|
|
4022
4068
|
"aria-hidden": "true",
|
|
4023
4069
|
class: "w-5 h-5",
|
|
4024
4070
|
fill: "currentColor",
|
|
@@ -4030,10 +4076,10 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4030
4076
|
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
4077
|
"clip-rule": "evenodd"
|
|
4032
4078
|
})
|
|
4033
|
-
], -1),
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
],
|
|
4079
|
+
], -1), Kl = [
|
|
4080
|
+
Hl,
|
|
4081
|
+
Zl
|
|
4082
|
+
], Wl = {
|
|
4037
4083
|
__name: "ToastListItem",
|
|
4038
4084
|
props: {
|
|
4039
4085
|
message: String,
|
|
@@ -4053,23 +4099,23 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4053
4099
|
setTimeout(() => n("remove"), r.duration);
|
|
4054
4100
|
});
|
|
4055
4101
|
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",
|
|
4102
|
+
return (o, a) => (d(), u("div", Al, [
|
|
4103
|
+
r.type === "success" ? (d(), u("div", Tl, Nl)) : g("", !0),
|
|
4104
|
+
r.type === "error" ? (d(), u("div", Vl, Gl)) : g("", !0),
|
|
4105
|
+
r.type === "warning" ? (d(), u("div", Fl, ql)) : g("", !0),
|
|
4106
|
+
s("div", zl, h(r.message), 1),
|
|
4061
4107
|
s("button", {
|
|
4062
|
-
onClick: a[0] || (a[0] = (
|
|
4108
|
+
onClick: a[0] || (a[0] = (i) => n("remove")),
|
|
4063
4109
|
type: "button",
|
|
4064
4110
|
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
4111
|
"data-dismiss-target": "#toast-default",
|
|
4066
4112
|
"aria-label": "Close"
|
|
4067
|
-
},
|
|
4113
|
+
}, Kl)
|
|
4068
4114
|
]));
|
|
4069
4115
|
}
|
|
4070
4116
|
}, de = Se({
|
|
4071
4117
|
items: []
|
|
4072
|
-
}),
|
|
4118
|
+
}), Xl = {
|
|
4073
4119
|
add(e) {
|
|
4074
4120
|
de.items.unshift({
|
|
4075
4121
|
key: Symbol(),
|
|
@@ -4083,14 +4129,14 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4083
4129
|
}
|
|
4084
4130
|
}, $e = {
|
|
4085
4131
|
state: de,
|
|
4086
|
-
methods:
|
|
4087
|
-
},
|
|
4132
|
+
methods: Xl
|
|
4133
|
+
}, Rd = {
|
|
4088
4134
|
__name: "GlToastList",
|
|
4089
4135
|
setup(e) {
|
|
4090
4136
|
function t(r) {
|
|
4091
4137
|
$e.methods.remove(r);
|
|
4092
4138
|
}
|
|
4093
|
-
return (r, n) => (d(), K(
|
|
4139
|
+
return (r, n) => (d(), K(lt, {
|
|
4094
4140
|
tag: "div",
|
|
4095
4141
|
"enter-from-class": "translate-x-full opacity-0",
|
|
4096
4142
|
"enter-active-class": "duration-500",
|
|
@@ -4099,21 +4145,21 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4099
4145
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4100
4146
|
}, {
|
|
4101
4147
|
default: J(() => [
|
|
4102
|
-
(d(!0), u(v, null, k(
|
|
4148
|
+
(d(!0), u(v, null, k(it($e).state.items, (o, a) => (d(), K(Wl, {
|
|
4103
4149
|
key: o.key,
|
|
4104
4150
|
message: o.message,
|
|
4105
4151
|
type: o.type,
|
|
4106
4152
|
duration: o.duration,
|
|
4107
|
-
onRemove: (
|
|
4153
|
+
onRemove: (i) => t(a)
|
|
4108
4154
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
4109
4155
|
]),
|
|
4110
4156
|
_: 1
|
|
4111
4157
|
}));
|
|
4112
4158
|
}
|
|
4113
|
-
},
|
|
4159
|
+
}, Yl = {
|
|
4114
4160
|
key: 0,
|
|
4115
4161
|
class: "flex justify-center"
|
|
4116
|
-
},
|
|
4162
|
+
}, Jl = /* @__PURE__ */ s("svg", {
|
|
4117
4163
|
class: "w-5 h-5",
|
|
4118
4164
|
"aria-hidden": "true",
|
|
4119
4165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4121,12 +4167,12 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4121
4167
|
viewBox: "0 0 4 15"
|
|
4122
4168
|
}, [
|
|
4123
4169
|
/* @__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
|
-
],
|
|
4170
|
+
], -1), Ql = [
|
|
4171
|
+
Jl
|
|
4172
|
+
], ei = { class: "absolute right-0 z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, ti = {
|
|
4127
4173
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4128
4174
|
"aria-labelledby": "dropdownDividerButton"
|
|
4129
|
-
},
|
|
4175
|
+
}, ri = { key: 0 }, si = ["href"], ai = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ni = { key: 1 }, oi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Ud = {
|
|
4130
4176
|
__name: "DatatableAction",
|
|
4131
4177
|
props: {
|
|
4132
4178
|
field: {
|
|
@@ -4152,9 +4198,9 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4152
4198
|
},
|
|
4153
4199
|
emits: ["deleteAction"],
|
|
4154
4200
|
setup(e, { emit: t }) {
|
|
4155
|
-
const r = Ee(), n = e, o = C(!1), a = C(!1),
|
|
4201
|
+
const r = Ee(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4156
4202
|
o.value = !1;
|
|
4157
|
-
},
|
|
4203
|
+
}, l = () => {
|
|
4158
4204
|
o.value = !0;
|
|
4159
4205
|
}, c = () => {
|
|
4160
4206
|
a.value = !1;
|
|
@@ -4179,30 +4225,30 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4179
4225
|
onConfirmDelete: y,
|
|
4180
4226
|
onCancelDelete: c
|
|
4181
4227
|
}, null, 8, ["isOpen"]),
|
|
4182
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div",
|
|
4228
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? O((d(), u("div", Yl, [
|
|
4183
4229
|
s("button", {
|
|
4184
|
-
onClick:
|
|
4230
|
+
onClick: l,
|
|
4185
4231
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
4186
4232
|
type: "button"
|
|
4187
|
-
},
|
|
4188
|
-
O(s("div",
|
|
4189
|
-
s("ul",
|
|
4190
|
-
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li",
|
|
4233
|
+
}, Ql),
|
|
4234
|
+
O(s("div", ei, [
|
|
4235
|
+
s("ul", ti, [
|
|
4236
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", ri, [
|
|
4191
4237
|
s("a", {
|
|
4192
4238
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4193
4239
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4194
4240
|
}, [
|
|
4195
|
-
|
|
4241
|
+
ai,
|
|
4196
4242
|
w(" Edit")
|
|
4197
|
-
], 8,
|
|
4243
|
+
], 8, si)
|
|
4198
4244
|
])) : g("", !0),
|
|
4199
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4245
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", ni, [
|
|
4200
4246
|
s("a", {
|
|
4201
4247
|
href: "#",
|
|
4202
4248
|
onClick: N(f, ["prevent"]),
|
|
4203
4249
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4204
4250
|
}, [
|
|
4205
|
-
|
|
4251
|
+
oi,
|
|
4206
4252
|
w(" Remove")
|
|
4207
4253
|
])
|
|
4208
4254
|
])) : g("", !0)
|
|
@@ -4211,15 +4257,15 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4211
4257
|
[F, o.value]
|
|
4212
4258
|
])
|
|
4213
4259
|
])), [
|
|
4214
|
-
[L,
|
|
4260
|
+
[L, i]
|
|
4215
4261
|
]) : g("", !0)
|
|
4216
4262
|
], 64);
|
|
4217
4263
|
};
|
|
4218
4264
|
}
|
|
4219
|
-
},
|
|
4265
|
+
}, li = {
|
|
4220
4266
|
key: 0,
|
|
4221
4267
|
class: "flex justify-center"
|
|
4222
|
-
},
|
|
4268
|
+
}, ii = /* @__PURE__ */ s("svg", {
|
|
4223
4269
|
class: "w-5 h-5",
|
|
4224
4270
|
"aria-hidden": "true",
|
|
4225
4271
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4227,12 +4273,12 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4227
4273
|
viewBox: "0 0 4 15"
|
|
4228
4274
|
}, [
|
|
4229
4275
|
/* @__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
|
-
],
|
|
4276
|
+
], -1), di = [
|
|
4277
|
+
ii
|
|
4278
|
+
], ui = { class: "absolute right-0 z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, ci = {
|
|
4233
4279
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4234
4280
|
"aria-labelledby": "dropdownDividerButton"
|
|
4235
|
-
},
|
|
4281
|
+
}, fi = { key: 0 }, gi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), qd = {
|
|
4236
4282
|
__name: "DatatableDeleteAction",
|
|
4237
4283
|
props: {
|
|
4238
4284
|
field: {
|
|
@@ -4258,9 +4304,9 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4258
4304
|
},
|
|
4259
4305
|
emits: ["deleteAction"],
|
|
4260
4306
|
setup(e, { emit: t }) {
|
|
4261
|
-
const r = Ee(), n = e, o = C(!1), a = C(!1),
|
|
4307
|
+
const r = Ee(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4262
4308
|
o.value = !1;
|
|
4263
|
-
},
|
|
4309
|
+
}, l = () => {
|
|
4264
4310
|
o.value = !0;
|
|
4265
4311
|
}, c = () => {
|
|
4266
4312
|
a.value = !1;
|
|
@@ -4285,21 +4331,21 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4285
4331
|
onConfirmDelete: y,
|
|
4286
4332
|
onCancelDelete: c
|
|
4287
4333
|
}, null, 8, ["isOpen"]),
|
|
4288
|
-
e.row && x.can(`delete_${e.xprops.permission}`) ? O((d(), u("div",
|
|
4334
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? O((d(), u("div", li, [
|
|
4289
4335
|
s("button", {
|
|
4290
|
-
onClick:
|
|
4336
|
+
onClick: l,
|
|
4291
4337
|
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
4338
|
type: "button"
|
|
4293
|
-
},
|
|
4294
|
-
O(s("div",
|
|
4295
|
-
s("ul",
|
|
4296
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4339
|
+
}, di),
|
|
4340
|
+
O(s("div", ui, [
|
|
4341
|
+
s("ul", ci, [
|
|
4342
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", fi, [
|
|
4297
4343
|
s("a", {
|
|
4298
4344
|
href: "#",
|
|
4299
4345
|
onClick: N(f, ["prevent"]),
|
|
4300
4346
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4301
4347
|
}, [
|
|
4302
|
-
|
|
4348
|
+
gi,
|
|
4303
4349
|
w(" Remove")
|
|
4304
4350
|
])
|
|
4305
4351
|
])) : g("", !0)
|
|
@@ -4308,12 +4354,12 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4308
4354
|
[F, o.value]
|
|
4309
4355
|
])
|
|
4310
4356
|
])), [
|
|
4311
|
-
[L,
|
|
4357
|
+
[L, i]
|
|
4312
4358
|
]) : g("", !0)
|
|
4313
4359
|
], 64);
|
|
4314
4360
|
};
|
|
4315
4361
|
}
|
|
4316
|
-
},
|
|
4362
|
+
}, hi = {
|
|
4317
4363
|
props: ["field", "row"],
|
|
4318
4364
|
computed: {
|
|
4319
4365
|
isArray() {
|
|
@@ -4329,7 +4375,7 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4329
4375
|
mounted() {
|
|
4330
4376
|
console.log("row : ", this.row);
|
|
4331
4377
|
}
|
|
4332
|
-
},
|
|
4378
|
+
}, mi = ["href", "title"], bi = /* @__PURE__ */ s("svg", {
|
|
4333
4379
|
class: "w-3 h-3 text-white me-2",
|
|
4334
4380
|
"aria-hidden": "true",
|
|
4335
4381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4346,10 +4392,10 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4346
4392
|
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
4393
|
"clip-rule": "evenodd"
|
|
4348
4394
|
})
|
|
4349
|
-
], -1),
|
|
4395
|
+
], -1), pi = {
|
|
4350
4396
|
key: 1,
|
|
4351
4397
|
class: "m-1 d-inline-block"
|
|
4352
|
-
},
|
|
4398
|
+
}, yi = ["href", "title"], _i = /* @__PURE__ */ s("svg", {
|
|
4353
4399
|
class: "w-3 h-3 text-white me-2",
|
|
4354
4400
|
"aria-hidden": "true",
|
|
4355
4401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4367,35 +4413,35 @@ const Vd = /* @__PURE__ */ S(Uo, [["render", Di]]), Oi = {
|
|
|
4367
4413
|
"clip-rule": "evenodd"
|
|
4368
4414
|
})
|
|
4369
4415
|
], -1);
|
|
4370
|
-
function
|
|
4416
|
+
function vi(e, t, r, n, o, a) {
|
|
4371
4417
|
return d(), u("div", null, [
|
|
4372
|
-
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row, (
|
|
4373
|
-
key:
|
|
4418
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row, (i, l) => (d(), u("div", {
|
|
4419
|
+
key: l,
|
|
4374
4420
|
class: "m-1 d-inline-block"
|
|
4375
4421
|
}, [
|
|
4376
4422
|
s("a", {
|
|
4377
|
-
href:
|
|
4378
|
-
title:
|
|
4423
|
+
href: i,
|
|
4424
|
+
title: i,
|
|
4379
4425
|
target: "_blank",
|
|
4380
4426
|
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
4427
|
}, [
|
|
4382
|
-
|
|
4428
|
+
bi,
|
|
4383
4429
|
w(" Download ")
|
|
4384
|
-
], 8,
|
|
4385
|
-
]))), 128)) : a.isString ? (d(), u("div",
|
|
4430
|
+
], 8, mi)
|
|
4431
|
+
]))), 128)) : a.isString ? (d(), u("div", pi, [
|
|
4386
4432
|
s("a", {
|
|
4387
4433
|
href: r.row,
|
|
4388
4434
|
title: r.row,
|
|
4389
4435
|
target: "_blank",
|
|
4390
4436
|
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
4437
|
}, [
|
|
4392
|
-
|
|
4438
|
+
_i,
|
|
4393
4439
|
w(" Download ")
|
|
4394
|
-
], 8,
|
|
4440
|
+
], 8, yi)
|
|
4395
4441
|
])) : g("", !0)
|
|
4396
4442
|
]);
|
|
4397
4443
|
}
|
|
4398
|
-
const
|
|
4444
|
+
const zd = /* @__PURE__ */ S(hi, [["render", vi]]), xi = {
|
|
4399
4445
|
props: ["field", "row"],
|
|
4400
4446
|
computed: {
|
|
4401
4447
|
isArray() {
|
|
@@ -4405,7 +4451,7 @@ const Fd = /* @__PURE__ */ S(ul, [["render", pl]]), bl = {
|
|
|
4405
4451
|
return typeof this.row[this.field] == "object";
|
|
4406
4452
|
}
|
|
4407
4453
|
}
|
|
4408
|
-
},
|
|
4454
|
+
}, wi = ["href", "title"], ki = /* @__PURE__ */ s("svg", {
|
|
4409
4455
|
class: "w-3 h-3 text-white me-2",
|
|
4410
4456
|
"aria-hidden": "true",
|
|
4411
4457
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4422,10 +4468,10 @@ const Fd = /* @__PURE__ */ S(ul, [["render", pl]]), bl = {
|
|
|
4422
4468
|
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
4469
|
"clip-rule": "evenodd"
|
|
4424
4470
|
})
|
|
4425
|
-
], -1),
|
|
4471
|
+
], -1), $i = {
|
|
4426
4472
|
key: 1,
|
|
4427
4473
|
class: "m-1 d-inline-block"
|
|
4428
|
-
},
|
|
4474
|
+
}, Ci = ["href", "title"], Si = /* @__PURE__ */ s("svg", {
|
|
4429
4475
|
class: "w-3 h-3 text-white me-2",
|
|
4430
4476
|
"aria-hidden": "true",
|
|
4431
4477
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4443,46 +4489,46 @@ const Fd = /* @__PURE__ */ S(ul, [["render", pl]]), bl = {
|
|
|
4443
4489
|
"clip-rule": "evenodd"
|
|
4444
4490
|
})
|
|
4445
4491
|
], -1);
|
|
4446
|
-
function
|
|
4492
|
+
function Di(e, t, r, n, o, a) {
|
|
4447
4493
|
return d(), u("div", null, [
|
|
4448
|
-
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[r.field], (
|
|
4449
|
-
key:
|
|
4494
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[r.field], (i) => (d(), u("div", {
|
|
4495
|
+
key: i.id,
|
|
4450
4496
|
class: "m-1 d-inline-block"
|
|
4451
4497
|
}, [
|
|
4452
4498
|
s("a", {
|
|
4453
|
-
href:
|
|
4454
|
-
title:
|
|
4499
|
+
href: i.url,
|
|
4500
|
+
title: i.name,
|
|
4455
4501
|
target: "_blank",
|
|
4456
4502
|
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
4503
|
}, [
|
|
4458
|
-
|
|
4504
|
+
ki,
|
|
4459
4505
|
w(" Download ")
|
|
4460
|
-
], 8,
|
|
4461
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4506
|
+
], 8, wi)
|
|
4507
|
+
]))), 128)) : a.isObject ? (d(), u("div", $i, [
|
|
4462
4508
|
s("a", {
|
|
4463
4509
|
href: r.row[r.field].url,
|
|
4464
4510
|
title: r.row[r.field].name,
|
|
4465
4511
|
target: "_blank",
|
|
4466
4512
|
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
4513
|
}, [
|
|
4468
|
-
|
|
4514
|
+
Si,
|
|
4469
4515
|
w(" Download ")
|
|
4470
|
-
], 8,
|
|
4516
|
+
], 8, Ci)
|
|
4471
4517
|
])) : g("", !0)
|
|
4472
4518
|
]);
|
|
4473
4519
|
}
|
|
4474
|
-
const
|
|
4520
|
+
const Hd = /* @__PURE__ */ S(xi, [["render", Di]]), Oi = {
|
|
4475
4521
|
props: ["field", "row", "tdProps"]
|
|
4476
|
-
},
|
|
4477
|
-
function
|
|
4478
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4522
|
+
}, Pi = { key: 0 }, Ei = ["innerHTML"];
|
|
4523
|
+
function ji(e, t, r, n, o, a) {
|
|
4524
|
+
return r.row[r.field] ? (d(), u("div", Pi, [
|
|
4479
4525
|
s("div", {
|
|
4480
4526
|
class: "w-full",
|
|
4481
4527
|
innerHTML: r.row[r.field]
|
|
4482
|
-
}, null, 8,
|
|
4528
|
+
}, null, 8, Ei)
|
|
4483
4529
|
])) : g("", !0);
|
|
4484
4530
|
}
|
|
4485
|
-
const
|
|
4531
|
+
const Zd = /* @__PURE__ */ S(Oi, [["render", ji]]), Ai = {
|
|
4486
4532
|
props: ["field", "row", "tdProps"],
|
|
4487
4533
|
computed: {
|
|
4488
4534
|
entry() {
|
|
@@ -4496,24 +4542,24 @@ const Ud = /* @__PURE__ */ S($l, [["render", Dl]]), Ol = {
|
|
|
4496
4542
|
return typeof this.row[this.entry.key] == "object";
|
|
4497
4543
|
}
|
|
4498
4544
|
}
|
|
4499
|
-
},
|
|
4545
|
+
}, Ti = { class: "flex flex-wrap gap-2" }, Ii = {
|
|
4500
4546
|
key: 1,
|
|
4501
4547
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4502
4548
|
};
|
|
4503
|
-
function
|
|
4504
|
-
return d(), u("div",
|
|
4505
|
-
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (
|
|
4506
|
-
key:
|
|
4549
|
+
function Mi(e, t, r, n, o, a) {
|
|
4550
|
+
return d(), u("div", Ti, [
|
|
4551
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4552
|
+
key: l,
|
|
4507
4553
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4508
|
-
}, h(
|
|
4554
|
+
}, h(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Ii, h(r.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4509
4555
|
]);
|
|
4510
4556
|
}
|
|
4511
|
-
const
|
|
4557
|
+
const Kd = /* @__PURE__ */ S(Ai, [["render", Mi]]), Ni = {
|
|
4512
4558
|
props: ["field", "row", "tdProps"]
|
|
4513
|
-
},
|
|
4514
|
-
function
|
|
4515
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4516
|
-
s("div",
|
|
4559
|
+
}, Vi = { key: 0 }, Li = { class: "m-1 d-inline-block" }, Bi = ["href", "title"], Gi = ["src", "alt", "title"];
|
|
4560
|
+
function Fi(e, t, r, n, o, a) {
|
|
4561
|
+
return r.row[r.field] ? (d(), u("div", Vi, [
|
|
4562
|
+
s("div", Li, [
|
|
4517
4563
|
s("a", {
|
|
4518
4564
|
href: r.row[r.field].url,
|
|
4519
4565
|
title: r.row[r.field].name,
|
|
@@ -4523,37 +4569,37 @@ function Vl(e, t, r, n, o, a) {
|
|
|
4523
4569
|
src: r.row[r.field].thumbnail,
|
|
4524
4570
|
alt: r.row[r.field].name,
|
|
4525
4571
|
title: r.row[r.field].name
|
|
4526
|
-
}, null, 8,
|
|
4527
|
-
], 8,
|
|
4572
|
+
}, null, 8, Gi)
|
|
4573
|
+
], 8, Bi)
|
|
4528
4574
|
])
|
|
4529
4575
|
])) : g("", !0);
|
|
4530
4576
|
}
|
|
4531
|
-
const
|
|
4577
|
+
const Wd = /* @__PURE__ */ S(Ni, [["render", Fi], ["__scopeId", "data-v-3a28c02c"]]), Ri = {
|
|
4532
4578
|
props: ["field", "row", "tdProps"],
|
|
4533
4579
|
computed: {
|
|
4534
4580
|
isActive() {
|
|
4535
4581
|
return this.row[this.field] === 1;
|
|
4536
4582
|
}
|
|
4537
4583
|
}
|
|
4538
|
-
},
|
|
4584
|
+
}, Ui = { class: "flex flex-wrap gap-2 text-nowrap" }, qi = {
|
|
4539
4585
|
key: 0,
|
|
4540
4586
|
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
|
-
},
|
|
4587
|
+
}, zi = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Hi = {
|
|
4542
4588
|
key: 1,
|
|
4543
4589
|
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
|
-
|
|
4590
|
+
}, Zi = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4591
|
+
function Ki(e, t, r, n, o, a) {
|
|
4592
|
+
return d(), u("div", Ui, [
|
|
4593
|
+
a.isActive ? (d(), u("span", qi, [
|
|
4594
|
+
zi,
|
|
4549
4595
|
w(" Active ")
|
|
4550
|
-
])) : a.isActive ? g("", !0) : (d(), u("span",
|
|
4551
|
-
|
|
4596
|
+
])) : a.isActive ? g("", !0) : (d(), u("span", Hi, [
|
|
4597
|
+
Zi,
|
|
4552
4598
|
w(" Inactive ")
|
|
4553
4599
|
]))
|
|
4554
4600
|
]);
|
|
4555
4601
|
}
|
|
4556
|
-
const
|
|
4602
|
+
const Xd = /* @__PURE__ */ S(Ri, [["render", Ki]]), Wi = {
|
|
4557
4603
|
props: ["field", "row", "tdProps"],
|
|
4558
4604
|
computed: {
|
|
4559
4605
|
hasLabelColor(e) {
|
|
@@ -4561,40 +4607,40 @@ const Hd = /* @__PURE__ */ S(Ll, [["render", ql]]), zl = {
|
|
|
4561
4607
|
return t ? t.class : "";
|
|
4562
4608
|
}
|
|
4563
4609
|
}
|
|
4564
|
-
},
|
|
4610
|
+
}, Xi = { class: "flex flex-wrap gap-2 text-nowrap" }, Yi = {
|
|
4565
4611
|
key: 0,
|
|
4566
4612
|
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
|
-
},
|
|
4613
|
+
}, Ji = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Qi = {
|
|
4568
4614
|
key: 1,
|
|
4569
4615
|
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
|
-
},
|
|
4616
|
+
}, ed = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), td = {
|
|
4571
4617
|
key: 2,
|
|
4572
4618
|
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
|
-
},
|
|
4619
|
+
}, rd = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), sd = {
|
|
4574
4620
|
key: 3,
|
|
4575
4621
|
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
|
-
|
|
4622
|
+
}, ad = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1);
|
|
4623
|
+
function nd(e, t, r, n, o, a) {
|
|
4624
|
+
return d(), u("div", Xi, [
|
|
4625
|
+
a.hasLabelColor == "green" ? (d(), u("span", Yi, [
|
|
4626
|
+
Ji,
|
|
4581
4627
|
w(" " + h(this.row[this.field]), 1)
|
|
4582
4628
|
])) : g("", !0),
|
|
4583
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4584
|
-
|
|
4629
|
+
a.hasLabelColor == "red" ? (d(), u("span", Qi, [
|
|
4630
|
+
ed,
|
|
4585
4631
|
w(" " + h(this.row[this.field]), 1)
|
|
4586
4632
|
])) : g("", !0),
|
|
4587
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4588
|
-
|
|
4633
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", td, [
|
|
4634
|
+
rd,
|
|
4589
4635
|
w(" " + h(this.row[this.field]), 1)
|
|
4590
4636
|
])) : g("", !0),
|
|
4591
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4592
|
-
|
|
4637
|
+
a.hasLabelColor == "default" ? (d(), u("span", sd, [
|
|
4638
|
+
ad,
|
|
4593
4639
|
w(" " + h(this.row[this.field]), 1)
|
|
4594
4640
|
])) : g("", !0)
|
|
4595
4641
|
]);
|
|
4596
4642
|
}
|
|
4597
|
-
const
|
|
4643
|
+
const Yd = /* @__PURE__ */ S(Wi, [["render", nd]]), od = {
|
|
4598
4644
|
props: ["field", "row", "tdProps"],
|
|
4599
4645
|
computed: {
|
|
4600
4646
|
hasLabelColor() {
|
|
@@ -4615,44 +4661,44 @@ const Zd = /* @__PURE__ */ S(zl, [["render", td]]), rd = {
|
|
|
4615
4661
|
}
|
|
4616
4662
|
}
|
|
4617
4663
|
}
|
|
4618
|
-
},
|
|
4619
|
-
function
|
|
4620
|
-
return d(), u("div",
|
|
4664
|
+
}, ld = { class: "flex flex-wrap gap-2 text-nowrap" };
|
|
4665
|
+
function id(e, t, r, n, o, a) {
|
|
4666
|
+
return d(), u("div", ld, [
|
|
4621
4667
|
a.hasLabelColor == "Default" ? (d(), u("span", {
|
|
4622
4668
|
key: 0,
|
|
4623
|
-
class:
|
|
4669
|
+
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
4670
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4625
4671
|
a.hasLabelColor == "Dark" ? (d(), u("span", {
|
|
4626
4672
|
key: 1,
|
|
4627
|
-
class:
|
|
4673
|
+
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
4674
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4629
4675
|
a.hasLabelColor == "Red" ? (d(), u("span", {
|
|
4630
4676
|
key: 2,
|
|
4631
|
-
class:
|
|
4677
|
+
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
4678
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4633
4679
|
a.hasLabelColor == "Green" ? (d(), u("span", {
|
|
4634
4680
|
key: 3,
|
|
4635
|
-
class:
|
|
4681
|
+
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
4682
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4637
4683
|
a.hasLabelColor == "Yellow" ? (d(), u("span", {
|
|
4638
4684
|
key: 4,
|
|
4639
|
-
class:
|
|
4685
|
+
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
4686
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4641
4687
|
a.hasLabelColor == "Indigo" ? (d(), u("span", {
|
|
4642
4688
|
key: 5,
|
|
4643
|
-
class:
|
|
4689
|
+
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
4690
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4645
4691
|
a.hasLabelColor == "Purple" ? (d(), u("span", {
|
|
4646
4692
|
key: 6,
|
|
4647
|
-
class:
|
|
4693
|
+
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
4694
|
}, h(this.row[this.field]), 3)) : g("", !0),
|
|
4649
4695
|
a.hasLabelColor == "Pink" ? (d(), u("span", {
|
|
4650
4696
|
key: 7,
|
|
4651
|
-
class:
|
|
4697
|
+
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
4698
|
}, h(this.row[this.field]), 3)) : g("", !0)
|
|
4653
4699
|
]);
|
|
4654
4700
|
}
|
|
4655
|
-
const
|
|
4701
|
+
const Jd = /* @__PURE__ */ S(od, [["render", id]]), dd = {
|
|
4656
4702
|
props: ["isOpen", "title", "button_text"],
|
|
4657
4703
|
methods: {
|
|
4658
4704
|
confirmAction() {
|
|
@@ -4662,42 +4708,42 @@ const Kd = /* @__PURE__ */ S(rd, [["render", ad]]), nd = {
|
|
|
4662
4708
|
this.$emit("cancel-action");
|
|
4663
4709
|
}
|
|
4664
4710
|
}
|
|
4665
|
-
},
|
|
4711
|
+
}, ud = {
|
|
4666
4712
|
key: 0,
|
|
4667
4713
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4668
4714
|
role: "dialog",
|
|
4669
4715
|
"aria-modal": "true"
|
|
4670
|
-
},
|
|
4716
|
+
}, cd = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, fd = /* @__PURE__ */ s("div", {
|
|
4671
4717
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4672
4718
|
"aria-hidden": "true"
|
|
4673
|
-
}, null, -1),
|
|
4719
|
+
}, null, -1), gd = /* @__PURE__ */ s("span", {
|
|
4674
4720
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4675
4721
|
"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",
|
|
4722
|
+
}, "", -1), hd = { 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" }, md = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, bd = { class: "sm:flex sm:items-start" }, pd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, yd = { class: "text-lg font-medium leading-6 text-gray-900" }, _d = { class: "mt-2" }, vd = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4723
|
+
function xd(e, t, r, n, o, a) {
|
|
4724
|
+
return r.isOpen ? (d(), u("div", ud, [
|
|
4725
|
+
s("div", cd, [
|
|
4726
|
+
fd,
|
|
4727
|
+
gd,
|
|
4728
|
+
s("div", hd, [
|
|
4729
|
+
s("div", md, [
|
|
4730
|
+
s("div", bd, [
|
|
4731
|
+
s("div", pd, [
|
|
4732
|
+
s("h3", yd, h(r.title), 1),
|
|
4733
|
+
s("div", _d, [
|
|
4688
4734
|
T(e.$slots, "default")
|
|
4689
4735
|
])
|
|
4690
4736
|
])
|
|
4691
4737
|
])
|
|
4692
4738
|
]),
|
|
4693
|
-
s("div",
|
|
4739
|
+
s("div", vd, [
|
|
4694
4740
|
s("button", {
|
|
4695
|
-
onClick: t[0] || (t[0] = (...
|
|
4741
|
+
onClick: t[0] || (t[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
4696
4742
|
type: "button",
|
|
4697
4743
|
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
4744
|
}, h(r.button_text), 1),
|
|
4699
4745
|
s("button", {
|
|
4700
|
-
onClick: t[1] || (t[1] = (...
|
|
4746
|
+
onClick: t[1] || (t[1] = (...i) => a.cancelAction && a.cancelAction(...i)),
|
|
4701
4747
|
type: "button",
|
|
4702
4748
|
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
4749
|
}, " Cancel ")
|
|
@@ -4706,40 +4752,40 @@ function bd(e, t, r, n, o, a) {
|
|
|
4706
4752
|
])
|
|
4707
4753
|
])) : g("", !0);
|
|
4708
4754
|
}
|
|
4709
|
-
const
|
|
4755
|
+
const Qd = /* @__PURE__ */ S(dd, [["render", xd]]);
|
|
4710
4756
|
export {
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4757
|
+
Od as GlButton,
|
|
4758
|
+
Sd as GlCard,
|
|
4759
|
+
Qd as GlConfirmationModal,
|
|
4760
|
+
Fd as GlDataTable,
|
|
4761
|
+
Gd as GlDataTableServerSide,
|
|
4762
|
+
Ud as GlDatatableAction,
|
|
4763
|
+
qd as GlDatatableDeleteAction,
|
|
4764
|
+
zd as GlDatatableFileDownload,
|
|
4765
|
+
Hd as GlDatatableFiles,
|
|
4766
|
+
Zd as GlDatatableHtml,
|
|
4767
|
+
Kd as GlDatatableList,
|
|
4768
|
+
Wd as GlDatatablePicture,
|
|
4769
|
+
Xd as GlDatatableStatus,
|
|
4770
|
+
Yd as GlDatatableStatusGeneral,
|
|
4771
|
+
Jd as GlDatatableStatusSpecficColor,
|
|
4726
4772
|
ue as GlDeleteConfirmationModal,
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4773
|
+
Ld as GlDropdown,
|
|
4774
|
+
kd as GlFilesUpload,
|
|
4775
|
+
Cd as GlLanguageSelector,
|
|
4776
|
+
Nd as GlModal,
|
|
4777
|
+
Md as GlMultiItemSlide,
|
|
4778
|
+
Dd as GlMultiSelectDropdown,
|
|
4779
|
+
$d as GlNotify,
|
|
4780
|
+
Id as GlTab,
|
|
4781
|
+
Td as GlTabsWrapper,
|
|
4736
4782
|
xo as GlTailwindPagination,
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4783
|
+
Ad as GlTextInput,
|
|
4784
|
+
jd as GlTextTranslate,
|
|
4785
|
+
Bd as GlTextarea,
|
|
4786
|
+
Pd as GlTextareaTranslate,
|
|
4787
|
+
Ed as GlTinymceTranslate,
|
|
4742
4788
|
$e as GlToast,
|
|
4743
|
-
|
|
4744
|
-
|
|
4789
|
+
Rd as GlToastList,
|
|
4790
|
+
Vd as GlToggleBox
|
|
4745
4791
|
};
|