golden-logic-ui 1.0.50 → 1.0.51
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 +516 -516
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ke, inject as xe, watch as W, effectScope as We, computed as B, reactive as we, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as p, toDisplayString as h, withModifiers as M, withDirectives as P, vModelText as V, renderList as $, normalizeStyle as Xe, renderSlot as A, createTextVNode as w, vShow as G, createBlock as Z, resolveDynamicComponent as se, mergeProps as K, withCtx as Y, ref as O, onMounted as F, vModelDynamic as Ye, provide as Je, pushScopeId as Qe, popScopeId as et, vModelCheckbox as tt, nextTick as rt, toHandlers as te, TransitionGroup as st, unref as nt, resolveDirective as ke, markRaw as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ke, inject as xe, watch as W, effectScope as We, computed as B, reactive as we, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as p, toDisplayString as h, withModifiers as M, withDirectives as P, vModelText as V, renderList as $, normalizeStyle as Xe, renderSlot as A, createTextVNode as w, vShow as G, createBlock as Z, resolveDynamicComponent as se, mergeProps as K, withCtx as Y, ref as O, onMounted as F, vModelDynamic as Ye, provide as Je, pushScopeId as Qe, popScopeId as et, vModelCheckbox as tt, nextTick as rt, toHandlers as te, TransitionGroup as st, unref as nt, resolveDirective as ke, markRaw as at } from "vue";
|
|
2
2
|
const D = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
|
-
for (const [n,
|
|
5
|
-
r[n] =
|
|
4
|
+
for (const [n, o] of t)
|
|
5
|
+
r[n] = o;
|
|
6
6
|
return r;
|
|
7
|
-
},
|
|
7
|
+
}, ot = {
|
|
8
8
|
props: ["isOpen"],
|
|
9
9
|
methods: {
|
|
10
10
|
confirmDeletion() {
|
|
@@ -27,7 +27,7 @@ const D = (e, t) => {
|
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
29
|
}, "", -1), ct = { 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" }, ft = /* @__PURE__ */ Ke('<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), ht = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
-
function gt(e, t, r, n,
|
|
30
|
+
function gt(e, t, r, n, o, a) {
|
|
31
31
|
return r.isOpen ? (d(), u("div", it, [
|
|
32
32
|
s("div", lt, [
|
|
33
33
|
dt,
|
|
@@ -36,12 +36,12 @@ function gt(e, t, r, n, a, o) {
|
|
|
36
36
|
ft,
|
|
37
37
|
s("div", ht, [
|
|
38
38
|
s("button", {
|
|
39
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
39
|
+
onClick: t[0] || (t[0] = (...l) => a.confirmDeletion && a.confirmDeletion(...l)),
|
|
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] = (...l) =>
|
|
44
|
+
onClick: t[1] || (t[1] = (...l) => a.cancelDeletion && a.cancelDeletion(...l)),
|
|
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,7 +50,7 @@ function gt(e, t, r, n, a, o) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : g("", !0);
|
|
52
52
|
}
|
|
53
|
-
const ie = /* @__PURE__ */ D(
|
|
53
|
+
const ie = /* @__PURE__ */ D(ot, [["render", gt]]);
|
|
54
54
|
function mt() {
|
|
55
55
|
return $e().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
@@ -75,23 +75,23 @@ class xt {
|
|
|
75
75
|
const i = t.settings[l];
|
|
76
76
|
n[l] = i.defaultValue;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
let
|
|
78
|
+
const o = `__vue-devtools-plugin-settings__${t.id}`;
|
|
79
|
+
let a = Object.assign({}, n);
|
|
80
80
|
try {
|
|
81
|
-
const l = localStorage.getItem(
|
|
82
|
-
Object.assign(
|
|
81
|
+
const l = localStorage.getItem(o), i = JSON.parse(l);
|
|
82
|
+
Object.assign(a, i);
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
85
|
this.fallbacks = {
|
|
86
86
|
getSettings() {
|
|
87
|
-
return
|
|
87
|
+
return a;
|
|
88
88
|
},
|
|
89
89
|
setSettings(l) {
|
|
90
90
|
try {
|
|
91
|
-
localStorage.setItem(
|
|
91
|
+
localStorage.setItem(o, JSON.stringify(l));
|
|
92
92
|
} catch {
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
a = l;
|
|
95
95
|
},
|
|
96
96
|
now() {
|
|
97
97
|
return vt();
|
|
@@ -129,11 +129,11 @@ class xt {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function wt(e, t) {
|
|
132
|
-
const r = e, n = $e(),
|
|
133
|
-
if (
|
|
134
|
-
|
|
132
|
+
const r = e, n = $e(), o = mt(), a = _t && r.enableEarlyProxy;
|
|
133
|
+
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
|
+
o.emit(pt, e, t);
|
|
135
135
|
else {
|
|
136
|
-
const l =
|
|
136
|
+
const l = a ? new xt(r, o) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
138
138
|
pluginDescriptor: r,
|
|
139
139
|
setupFn: t,
|
|
@@ -182,11 +182,11 @@ function Pe(e, t) {
|
|
|
182
182
|
Q(e, r, [], e._modules.root, !0), le(e, r, t);
|
|
183
183
|
}
|
|
184
184
|
function le(e, t, r) {
|
|
185
|
-
var n = e._state,
|
|
185
|
+
var n = e._state, o = e._scope;
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
|
-
var
|
|
187
|
+
var a = e._wrappedGetters, l = {}, i = {}, c = We(!0);
|
|
188
188
|
c.run(function() {
|
|
189
|
-
R(
|
|
189
|
+
R(a, function(f, m) {
|
|
190
190
|
l[m] = $t(f, e), i[m] = B(function() {
|
|
191
191
|
return l[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
@@ -201,11 +201,11 @@ function le(e, t, r) {
|
|
|
201
201
|
data: t
|
|
202
202
|
}), e._scope = c, e.strict && Pt(e), n && r && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
|
-
}),
|
|
204
|
+
}), o && o.stop();
|
|
205
205
|
}
|
|
206
|
-
function Q(e, t, r, n,
|
|
207
|
-
var
|
|
208
|
-
if (n.namespaced && (e._modulesNamespaceMap[l] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + l + " for the namespaced module " + r.join("/")), e._modulesNamespaceMap[l] = n), !
|
|
206
|
+
function Q(e, t, r, n, o) {
|
|
207
|
+
var a = !r.length, l = e._modules.getNamespace(r);
|
|
208
|
+
if (n.namespaced && (e._modulesNamespaceMap[l] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + l + " for the namespaced module " + r.join("/")), e._modulesNamespaceMap[l] = n), !a && !o) {
|
|
209
209
|
var i = de(t, r.slice(0, -1)), c = r[r.length - 1];
|
|
210
210
|
e._withCommit(function() {
|
|
211
211
|
process.env.NODE_ENV !== "production" && c in i && console.warn(
|
|
@@ -224,21 +224,21 @@ function Q(e, t, r, n, a) {
|
|
|
224
224
|
var x = l + y;
|
|
225
225
|
Dt(e, x, m, f);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
|
-
Q(e, t, r.concat(y), m,
|
|
227
|
+
Q(e, t, r.concat(y), m, o);
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
function Ct(e, t, r) {
|
|
231
|
-
var n = t === "",
|
|
232
|
-
dispatch: n ? e.dispatch : function(
|
|
233
|
-
var c = J(
|
|
231
|
+
var n = t === "", o = {
|
|
232
|
+
dispatch: n ? e.dispatch : function(a, l, i) {
|
|
233
|
+
var c = J(a, l, i), 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(
|
|
241
|
-
var c = J(
|
|
240
|
+
commit: n ? e.commit : function(a, l, i) {
|
|
241
|
+
var c = J(a, l, i), 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;
|
|
@@ -246,7 +246,7 @@ function Ct(e, t, r) {
|
|
|
246
246
|
e.commit(y, f, m);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
return Object.defineProperties(
|
|
249
|
+
return Object.defineProperties(o, {
|
|
250
250
|
getters: {
|
|
251
251
|
get: n ? function() {
|
|
252
252
|
return e.getters;
|
|
@@ -259,17 +259,17 @@ function Ct(e, t, r) {
|
|
|
259
259
|
return de(e.state, r);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
}),
|
|
262
|
+
}), o;
|
|
263
263
|
}
|
|
264
264
|
function Ee(e, t) {
|
|
265
265
|
if (!e._makeLocalGettersCache[t]) {
|
|
266
266
|
var r = {}, n = t.length;
|
|
267
|
-
Object.keys(e.getters).forEach(function(
|
|
268
|
-
if (
|
|
269
|
-
var
|
|
270
|
-
Object.defineProperty(r,
|
|
267
|
+
Object.keys(e.getters).forEach(function(o) {
|
|
268
|
+
if (o.slice(0, n) === t) {
|
|
269
|
+
var a = o.slice(n);
|
|
270
|
+
Object.defineProperty(r, a, {
|
|
271
271
|
get: function() {
|
|
272
|
-
return e.getters[
|
|
272
|
+
return e.getters[o];
|
|
273
273
|
},
|
|
274
274
|
enumerable: !0
|
|
275
275
|
});
|
|
@@ -279,14 +279,14 @@ function Ee(e, t) {
|
|
|
279
279
|
return e._makeLocalGettersCache[t];
|
|
280
280
|
}
|
|
281
281
|
function St(e, t, r, n) {
|
|
282
|
-
var
|
|
283
|
-
|
|
282
|
+
var o = e._mutations[t] || (e._mutations[t] = []);
|
|
283
|
+
o.push(function(l) {
|
|
284
284
|
r.call(e, n.state, l);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
function Ot(e, t, r, n) {
|
|
288
|
-
var
|
|
289
|
-
|
|
288
|
+
var o = e._actions[t] || (e._actions[t] = []);
|
|
289
|
+
o.push(function(l) {
|
|
290
290
|
var i = r.call(e, {
|
|
291
291
|
dispatch: n.dispatch,
|
|
292
292
|
commit: n.commit,
|
|
@@ -305,15 +305,15 @@ function Dt(e, t, r, n) {
|
|
|
305
305
|
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
|
-
e._wrappedGetters[t] = function(
|
|
308
|
+
e._wrappedGetters[t] = function(a) {
|
|
309
309
|
return r(
|
|
310
310
|
n.state,
|
|
311
311
|
// local state
|
|
312
312
|
n.getters,
|
|
313
313
|
// local getters
|
|
314
|
-
|
|
314
|
+
a.state,
|
|
315
315
|
// root state
|
|
316
|
-
|
|
316
|
+
a.getters
|
|
317
317
|
// root getters
|
|
318
318
|
);
|
|
319
319
|
};
|
|
@@ -362,69 +362,69 @@ function At(e, t) {
|
|
|
362
362
|
}), r.on.getInspectorTree(function(n) {
|
|
363
363
|
if (n.app === e && n.inspectorId === z)
|
|
364
364
|
if (n.filter) {
|
|
365
|
-
var
|
|
366
|
-
Te(
|
|
365
|
+
var o = [];
|
|
366
|
+
Te(o, t._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
369
|
Ie(t._modules.root, "")
|
|
370
370
|
];
|
|
371
371
|
}), r.on.getInspectorState(function(n) {
|
|
372
372
|
if (n.app === e && n.inspectorId === z) {
|
|
373
|
-
var
|
|
374
|
-
Ee(t,
|
|
375
|
-
Vt(t._modules,
|
|
376
|
-
|
|
377
|
-
|
|
373
|
+
var o = n.nodeId;
|
|
374
|
+
Ee(t, o), n.state = Mt(
|
|
375
|
+
Vt(t._modules, o),
|
|
376
|
+
o === "root" ? t.getters : t._makeLocalGettersCache,
|
|
377
|
+
o
|
|
378
378
|
);
|
|
379
379
|
}
|
|
380
380
|
}), r.on.editInspectorState(function(n) {
|
|
381
381
|
if (n.app === e && n.inspectorId === z) {
|
|
382
|
-
var
|
|
383
|
-
|
|
384
|
-
n.set(t._state.data,
|
|
382
|
+
var o = n.nodeId, a = n.path;
|
|
383
|
+
o !== "root" && (a = o.split("/").filter(Boolean).concat(a)), t._withCommit(function() {
|
|
384
|
+
n.set(t._state.data, a, n.state.value);
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
}), t.subscribe(function(n,
|
|
388
|
-
var
|
|
389
|
-
n.payload && (
|
|
387
|
+
}), t.subscribe(function(n, o) {
|
|
388
|
+
var a = {};
|
|
389
|
+
n.payload && (a.payload = n.payload), a.state = o, r.notifyComponentUpdate(), r.sendInspectorTree(z), r.sendInspectorState(z), r.addTimelineEvent({
|
|
390
390
|
layerId: _e,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
394
|
-
data:
|
|
394
|
+
data: a
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), t.subscribeAction({
|
|
398
|
-
before: function(n,
|
|
399
|
-
var
|
|
400
|
-
n.payload && (
|
|
398
|
+
before: function(n, o) {
|
|
399
|
+
var a = {};
|
|
400
|
+
n.payload && (a.payload = n.payload), n._id = jt++, n._time = Date.now(), a.state = o, r.addTimelineEvent({
|
|
401
401
|
layerId: re,
|
|
402
402
|
event: {
|
|
403
403
|
time: n._time,
|
|
404
404
|
title: n.type,
|
|
405
405
|
groupId: n._id,
|
|
406
406
|
subtitle: "start",
|
|
407
|
-
data:
|
|
407
|
+
data: a
|
|
408
408
|
}
|
|
409
409
|
});
|
|
410
410
|
},
|
|
411
|
-
after: function(n,
|
|
412
|
-
var
|
|
413
|
-
|
|
411
|
+
after: function(n, o) {
|
|
412
|
+
var a = {}, l = Date.now() - n._time;
|
|
413
|
+
a.duration = {
|
|
414
414
|
_custom: {
|
|
415
415
|
type: "duration",
|
|
416
416
|
display: l + "ms",
|
|
417
417
|
tooltip: "Action duration",
|
|
418
418
|
value: l
|
|
419
419
|
}
|
|
420
|
-
}, n.payload && (
|
|
420
|
+
}, n.payload && (a.payload = n.payload), a.state = o, r.addTimelineEvent({
|
|
421
421
|
layerId: re,
|
|
422
422
|
event: {
|
|
423
423
|
time: Date.now(),
|
|
424
424
|
title: n.type,
|
|
425
425
|
groupId: n._id,
|
|
426
426
|
subtitle: "end",
|
|
427
|
-
data:
|
|
427
|
+
data: a
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
}
|
|
@@ -463,13 +463,13 @@ function Te(e, t, r, n) {
|
|
|
463
463
|
id: n || "root",
|
|
464
464
|
label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
|
|
465
465
|
tags: t.namespaced ? [je] : []
|
|
466
|
-
}), Object.keys(t._children).forEach(function(
|
|
467
|
-
Te(e, t._children[
|
|
466
|
+
}), Object.keys(t._children).forEach(function(o) {
|
|
467
|
+
Te(e, t._children[o], r, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
function Mt(e, t, r) {
|
|
471
471
|
t = r === "root" ? t : t[r];
|
|
472
|
-
var n = Object.keys(t),
|
|
472
|
+
var n = Object.keys(t), o = {
|
|
473
473
|
state: Object.keys(e.state).map(function(l) {
|
|
474
474
|
return {
|
|
475
475
|
key: l,
|
|
@@ -479,39 +479,39 @@ function Mt(e, t, r) {
|
|
|
479
479
|
})
|
|
480
480
|
};
|
|
481
481
|
if (n.length) {
|
|
482
|
-
var
|
|
483
|
-
|
|
482
|
+
var a = Nt(t);
|
|
483
|
+
o.getters = Object.keys(a).map(function(l) {
|
|
484
484
|
return {
|
|
485
485
|
key: l.endsWith("/") ? Ae(l) : l,
|
|
486
486
|
editable: !1,
|
|
487
|
-
value:
|
|
488
|
-
return
|
|
487
|
+
value: ae(function() {
|
|
488
|
+
return a[l];
|
|
489
489
|
})
|
|
490
490
|
};
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
|
-
return
|
|
493
|
+
return o;
|
|
494
494
|
}
|
|
495
495
|
function Nt(e) {
|
|
496
496
|
var t = {};
|
|
497
497
|
return Object.keys(e).forEach(function(r) {
|
|
498
498
|
var n = r.split("/");
|
|
499
499
|
if (n.length > 1) {
|
|
500
|
-
var
|
|
500
|
+
var o = t, a = n.pop();
|
|
501
501
|
n.forEach(function(l) {
|
|
502
|
-
|
|
502
|
+
o[l] || (o[l] = {
|
|
503
503
|
_custom: {
|
|
504
504
|
value: {},
|
|
505
505
|
display: l,
|
|
506
506
|
tooltip: "Module",
|
|
507
507
|
abstract: !0
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
510
|
-
}), a
|
|
509
|
+
}), o = o[l]._custom.value;
|
|
510
|
+
}), o[a] = ae(function() {
|
|
511
511
|
return e[r];
|
|
512
512
|
});
|
|
513
513
|
} else
|
|
514
|
-
t[r] =
|
|
514
|
+
t[r] = ae(function() {
|
|
515
515
|
return e[r];
|
|
516
516
|
});
|
|
517
517
|
}), t;
|
|
@@ -521,16 +521,16 @@ function Vt(e, t) {
|
|
|
521
521
|
return n;
|
|
522
522
|
});
|
|
523
523
|
return r.reduce(
|
|
524
|
-
function(n,
|
|
525
|
-
var l = n[
|
|
524
|
+
function(n, o, a) {
|
|
525
|
+
var l = n[o];
|
|
526
526
|
if (!l)
|
|
527
|
-
throw new Error('Missing module "' +
|
|
528
|
-
return
|
|
527
|
+
throw new Error('Missing module "' + o + '" for path "' + t + '".');
|
|
528
|
+
return a === r.length - 1 ? l : l._children;
|
|
529
529
|
},
|
|
530
530
|
t === "root" ? e : e.root._children
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ae(e) {
|
|
534
534
|
try {
|
|
535
535
|
return e();
|
|
536
536
|
} catch (t) {
|
|
@@ -583,36 +583,36 @@ U.prototype.get = function(t) {
|
|
|
583
583
|
};
|
|
584
584
|
U.prototype.getNamespace = function(t) {
|
|
585
585
|
var r = this.root;
|
|
586
|
-
return t.reduce(function(n,
|
|
587
|
-
return r = r.getChild(
|
|
586
|
+
return t.reduce(function(n, o) {
|
|
587
|
+
return r = r.getChild(o), n + (r.namespaced ? o + "/" : "");
|
|
588
588
|
}, "");
|
|
589
589
|
};
|
|
590
590
|
U.prototype.update = function(t) {
|
|
591
591
|
Ne([], this.root, t);
|
|
592
592
|
};
|
|
593
593
|
U.prototype.register = function(t, r, n) {
|
|
594
|
-
var
|
|
594
|
+
var o = this;
|
|
595
595
|
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Ve(t, r);
|
|
596
|
-
var
|
|
596
|
+
var a = new T(r, n);
|
|
597
597
|
if (t.length === 0)
|
|
598
|
-
this.root =
|
|
598
|
+
this.root = a;
|
|
599
599
|
else {
|
|
600
600
|
var l = this.get(t.slice(0, -1));
|
|
601
|
-
l.addChild(t[t.length - 1],
|
|
601
|
+
l.addChild(t[t.length - 1], a);
|
|
602
602
|
}
|
|
603
603
|
r.modules && R(r.modules, function(i, c) {
|
|
604
|
-
|
|
604
|
+
o.register(t.concat(c), i, n);
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
U.prototype.unregister = function(t) {
|
|
608
|
-
var r = this.get(t.slice(0, -1)), n = t[t.length - 1],
|
|
609
|
-
if (!
|
|
608
|
+
var r = this.get(t.slice(0, -1)), n = t[t.length - 1], o = r.getChild(n);
|
|
609
|
+
if (!o) {
|
|
610
610
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
611
611
|
"[vuex] trying to unregister module '" + n + "', which is not registered"
|
|
612
612
|
);
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
o.runtime && r.removeChild(n);
|
|
616
616
|
};
|
|
617
617
|
U.prototype.isRegistered = function(t) {
|
|
618
618
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
|
@@ -653,34 +653,34 @@ function Ve(e, t) {
|
|
|
653
653
|
Object.keys(ye).forEach(function(r) {
|
|
654
654
|
if (t[r]) {
|
|
655
655
|
var n = ye[r];
|
|
656
|
-
R(t[r], function(
|
|
656
|
+
R(t[r], function(o, a) {
|
|
657
657
|
I(
|
|
658
|
-
n.assert(
|
|
659
|
-
Bt(e, r,
|
|
658
|
+
n.assert(o),
|
|
659
|
+
Bt(e, r, a, o, n.expected)
|
|
660
660
|
);
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
|
-
function Bt(e, t, r, n,
|
|
666
|
-
var
|
|
667
|
-
return e.length > 0 && (
|
|
665
|
+
function Bt(e, t, r, n, o) {
|
|
666
|
+
var a = t + " should be " + o + ' but "' + t + "." + r + '"';
|
|
667
|
+
return e.length > 0 && (a += ' in module "' + e.join(".") + '"'), a += " is " + JSON.stringify(n) + ".", a;
|
|
668
668
|
}
|
|
669
669
|
var j = function e(t) {
|
|
670
670
|
var r = this;
|
|
671
671
|
t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (I(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), I(this instanceof e, "store must be called with the new operator."));
|
|
672
672
|
var n = t.plugins;
|
|
673
673
|
n === void 0 && (n = []);
|
|
674
|
-
var
|
|
675
|
-
|
|
676
|
-
var
|
|
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 U(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools =
|
|
674
|
+
var o = t.strict;
|
|
675
|
+
o === void 0 && (o = !1);
|
|
676
|
+
var a = t.devtools;
|
|
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 U(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
678
|
var l = this, i = this, c = i.dispatch, f = i.commit;
|
|
679
679
|
this.dispatch = function(x, S) {
|
|
680
680
|
return c.call(l, x, S);
|
|
681
681
|
}, this.commit = function(x, S, L) {
|
|
682
682
|
return f.call(l, x, S, L);
|
|
683
|
-
}, this.strict =
|
|
683
|
+
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
685
|
Q(this, m, [], this._modules.root), le(this, m), n.forEach(function(y) {
|
|
686
686
|
return y(r);
|
|
@@ -698,7 +698,7 @@ ue.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
|
|
701
|
+
var o = this, a = J(t, r, n), l = a.type, i = a.payload, c = a.options, f = { type: l, payload: i }, m = this._mutations[l];
|
|
702
702
|
if (!m) {
|
|
703
703
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + l);
|
|
704
704
|
return;
|
|
@@ -708,15 +708,15 @@ j.prototype.commit = function(t, r, n) {
|
|
|
708
708
|
x(i);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(y) {
|
|
711
|
-
return y(f,
|
|
711
|
+
return y(f, o.state);
|
|
712
712
|
}), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
|
|
713
713
|
"[vuex] mutation type: " + l + ". 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,
|
|
717
|
+
var n = this, o = J(t, r), a = o.type, l = o.payload, i = { type: a, payload: l }, c = this._actions[a];
|
|
718
718
|
if (!c) {
|
|
719
|
-
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " +
|
|
719
|
+
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + a);
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
722
|
try {
|
|
@@ -765,9 +765,9 @@ j.prototype.subscribeAction = function(t, r) {
|
|
|
765
765
|
return De(n, this._actionSubscribers, r);
|
|
766
766
|
};
|
|
767
767
|
j.prototype.watch = function(t, r, n) {
|
|
768
|
-
var
|
|
768
|
+
var o = this;
|
|
769
769
|
return process.env.NODE_ENV !== "production" && I(typeof t == "function", "store.watch only accepts a function."), W(function() {
|
|
770
|
-
return t(
|
|
770
|
+
return t(o.state, o.getters);
|
|
771
771
|
}, r, Object.assign({}, n));
|
|
772
772
|
};
|
|
773
773
|
j.prototype.replaceState = function(t) {
|
|
@@ -800,8 +800,8 @@ Object.defineProperties(j.prototype, ue);
|
|
|
800
800
|
var Gt = Be(function(e, t) {
|
|
801
801
|
var r = {};
|
|
802
802
|
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Le(t).forEach(function(n) {
|
|
803
|
-
var
|
|
804
|
-
r[
|
|
803
|
+
var o = n.key, a = n.val;
|
|
804
|
+
r[o] = function() {
|
|
805
805
|
var i = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
807
|
var f = Ge(this.$store, "mapState", e);
|
|
@@ -809,14 +809,14 @@ var Gt = Be(function(e, t) {
|
|
|
809
809
|
return;
|
|
810
810
|
i = f.context.state, c = f.context.getters;
|
|
811
811
|
}
|
|
812
|
-
return typeof
|
|
813
|
-
}, r[
|
|
812
|
+
return typeof a == "function" ? a.call(this, i, c) : i[a];
|
|
813
|
+
}, r[o].vuex = !0;
|
|
814
814
|
}), r;
|
|
815
815
|
}), Ft = Be(function(e, t) {
|
|
816
816
|
var r = {};
|
|
817
817
|
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Le(t).forEach(function(n) {
|
|
818
|
-
var
|
|
819
|
-
r[
|
|
818
|
+
var o = n.key, a = n.val;
|
|
819
|
+
r[o] = function() {
|
|
820
820
|
for (var i = [], c = arguments.length; c--; )
|
|
821
821
|
i[c] = arguments[c];
|
|
822
822
|
var f = this.$store.commit;
|
|
@@ -826,7 +826,7 @@ var Gt = Be(function(e, t) {
|
|
|
826
826
|
return;
|
|
827
827
|
f = m.context.commit;
|
|
828
828
|
}
|
|
829
|
-
return typeof
|
|
829
|
+
return typeof a == "function" ? a.apply(this, [f].concat(i)) : f.apply(this.$store, [a].concat(i));
|
|
830
830
|
};
|
|
831
831
|
}), r;
|
|
832
832
|
});
|
|
@@ -959,33 +959,33 @@ const Rt = {
|
|
|
959
959
|
return new Promise((t, r) => {
|
|
960
960
|
e || t();
|
|
961
961
|
const n = new FormData();
|
|
962
|
-
n.append("file", e), Object.entries(this.file_config).forEach(([
|
|
963
|
-
n.append(
|
|
962
|
+
n.append("file", e), Object.entries(this.file_config).forEach(([o, a]) => {
|
|
963
|
+
n.append(o, a);
|
|
964
964
|
}), this.files.push({ file_name: e.name, loading: 0 }), axios.post(this.route_url + "/media", n, {
|
|
965
|
-
onUploadProgress: (
|
|
965
|
+
onUploadProgress: (o) => {
|
|
966
966
|
this.files[this.files.length - 1].loading = Math.floor(
|
|
967
|
-
|
|
967
|
+
o.loaded / o.total * 100
|
|
968
968
|
);
|
|
969
969
|
}
|
|
970
|
-
}).then((
|
|
971
|
-
let
|
|
970
|
+
}).then((o) => {
|
|
971
|
+
let a = this.files.findIndex(
|
|
972
972
|
(l) => l.file_name === e.name
|
|
973
973
|
);
|
|
974
|
-
|
|
975
|
-
file_name:
|
|
976
|
-
size:
|
|
977
|
-
id:
|
|
978
|
-
url:
|
|
974
|
+
a !== -1 && this.files.splice(a, 1), this.uploadFileList.push({
|
|
975
|
+
file_name: o.data.file_name,
|
|
976
|
+
size: o.data.size,
|
|
977
|
+
id: o.data.id,
|
|
978
|
+
url: o.data.url
|
|
979
979
|
}), this.error_message_data = "", t();
|
|
980
|
-
}).catch((
|
|
981
|
-
|
|
982
|
-
|
|
980
|
+
}).catch((o) => {
|
|
981
|
+
o.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
982
|
+
o.response.data.errors,
|
|
983
983
|
"file"
|
|
984
|
-
) : console.error("An error occurred:",
|
|
985
|
-
let
|
|
984
|
+
) : console.error("An error occurred:", o);
|
|
985
|
+
let a = this.files.findIndex(
|
|
986
986
|
(l) => l.file_name === e.name
|
|
987
987
|
);
|
|
988
|
-
|
|
988
|
+
a !== -1 && this.files.splice(a, 1), console.log(o), t();
|
|
989
989
|
});
|
|
990
990
|
});
|
|
991
991
|
}
|
|
@@ -1021,35 +1021,35 @@ const Rt = {
|
|
|
1021
1021
|
], Jt = { class: "mt-2 gl-span-form-error" }, Qt = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, er = {
|
|
1022
1022
|
key: 0,
|
|
1023
1023
|
class: ""
|
|
1024
|
-
}, tr = { 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" }, rr = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), sr = { class: "w-full ml-3" }, nr = { class: "flex items-center justify-between mb-1" },
|
|
1024
|
+
}, tr = { 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" }, rr = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), sr = { class: "w-full ml-3" }, nr = { class: "flex items-center justify-between mb-1" }, ar = { class: "text-xs text-black dark:text-white" }, or = { class: "text-xs text-black dark:text-white" }, ir = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, lr = { class: "overflow-x-scroll max-h-56" }, dr = { 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" }, ur = { class: "flex items-center" }, cr = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
1027
|
}, null, -1), fr = { class: "flex flex-col ml-3" }, hr = { class: "text-xs" }, gr = { class: "text-xs" }, mr = { class: "flex gap-2" }, _r = ["href"], pr = ["onClick"];
|
|
1028
|
-
function br(e, t, r, n,
|
|
1028
|
+
function br(e, t, r, n, o, a) {
|
|
1029
1029
|
const l = X("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
1031
1031
|
H(l, {
|
|
1032
|
-
isOpen:
|
|
1033
|
-
onConfirmDelete:
|
|
1034
|
-
onCancelDelete:
|
|
1032
|
+
isOpen: o.open_delete_modal,
|
|
1033
|
+
onConfirmDelete: a.deleteAction,
|
|
1034
|
+
onCancelDelete: a.closeDeleteModal
|
|
1035
1035
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
1036
1036
|
s("div", {
|
|
1037
1037
|
class: p([{
|
|
1038
|
-
"border-red-500 dark:border-red-500":
|
|
1039
|
-
"border-gray-200 dark:border-gray-700":
|
|
1038
|
+
"border-red-500 dark:border-red-500": o.error_message_data !== "",
|
|
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
1043
|
class: p({
|
|
1044
|
-
"gl-label-form":
|
|
1045
|
-
"gl-label-form-invalid":
|
|
1044
|
+
"gl-label-form": o.error_message_data == "",
|
|
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] = M((...i) =>
|
|
1051
|
-
onDragleave: t[4] || (t[4] = M((...i) =>
|
|
1052
|
-
onDrop: t[5] || (t[5] = M((...i) =>
|
|
1050
|
+
onDragover: t[3] || (t[3] = M((...i) => a.onDragOver && a.onDragOver(...i), ["prevent"])),
|
|
1051
|
+
onDragleave: t[4] || (t[4] = M((...i) => a.onDragLeave && a.onDragLeave(...i), ["prevent"])),
|
|
1052
|
+
onDrop: t[5] || (t[5] = M((...i) => a.onDrop && a.onDrop(...i), ["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", Ut, [
|
|
@@ -1058,31 +1058,31 @@ function br(e, t, r, n, a, o) {
|
|
|
1058
1058
|
ref: "file_input" + r.field_name,
|
|
1059
1059
|
hidden: "",
|
|
1060
1060
|
multiple: r.has_multiple_file,
|
|
1061
|
-
onChange: t[0] || (t[0] = (...i) =>
|
|
1061
|
+
onChange: t[0] || (t[0] = (...i) => a.uploadFiles && a.uploadFiles(...i))
|
|
1062
1062
|
}, null, 40, qt),
|
|
1063
1063
|
P(s("input", {
|
|
1064
1064
|
type: "hidden",
|
|
1065
1065
|
name: r.field_name,
|
|
1066
|
-
"onUpdate:modelValue": t[1] || (t[1] = (i) =>
|
|
1066
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => a.uploadedFileIds = i)
|
|
1067
1067
|
}, null, 8, zt), [
|
|
1068
|
-
[V,
|
|
1068
|
+
[V, a.uploadedFileIds]
|
|
1069
1069
|
]),
|
|
1070
|
-
|
|
1070
|
+
o.isDragging ? (d(), u("div", Wt, Yt)) : (d(), u("div", {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "flex flex-col items-center justify-center",
|
|
1073
1073
|
onClick: t[2] || (t[2] = (i) => e.$refs["file_input" + this.field_name].click())
|
|
1074
1074
|
}, Kt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
|
-
s("span", Jt, h(
|
|
1077
|
+
s("span", Jt, h(o.error_message_data), 1),
|
|
1078
1078
|
s("small", Qt, h(r.description), 1),
|
|
1079
|
-
|
|
1080
|
-
(d(!0), u(v, null, $(
|
|
1079
|
+
o.files.length > 0 ? (d(), u("section", er, [
|
|
1080
|
+
(d(!0), u(v, null, $(o.files, (i, c) => (d(), u("li", tr, [
|
|
1081
1081
|
rr,
|
|
1082
1082
|
s("div", sr, [
|
|
1083
1083
|
s("div", nr, [
|
|
1084
|
-
s("span",
|
|
1085
|
-
s("span",
|
|
1084
|
+
s("span", ar, h(a.getFileName(i.file_name)), 1),
|
|
1085
|
+
s("span", or, h(i.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
1087
|
s("div", ir, [
|
|
1088
1088
|
s("div", {
|
|
@@ -1094,12 +1094,12 @@ function br(e, t, r, n, a, o) {
|
|
|
1094
1094
|
]))), 256))
|
|
1095
1095
|
])) : g("", !0),
|
|
1096
1096
|
s("section", lr, [
|
|
1097
|
-
(d(!0), u(v, null, $(
|
|
1097
|
+
(d(!0), u(v, null, $(o.uploadFileList, (i, c) => (d(), u("li", dr, [
|
|
1098
1098
|
s("div", ur, [
|
|
1099
1099
|
cr,
|
|
1100
1100
|
s("div", fr, [
|
|
1101
|
-
s("span", hr, h(
|
|
1102
|
-
s("span", gr, h(
|
|
1101
|
+
s("span", hr, h(a.getFileName(i.file_name)), 1),
|
|
1102
|
+
s("span", gr, h(a.formatFileSize(i.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
1105
|
s("div", mr, [
|
|
@@ -1111,7 +1111,7 @@ function br(e, t, r, n, a, o) {
|
|
|
1111
1111
|
r.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
onClick: (f) => {
|
|
1114
|
-
|
|
1114
|
+
o.media_id = i.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, pr)) : g("", !0)
|
|
@@ -1196,10 +1196,10 @@ const hd = /* @__PURE__ */ D(Rt, [["render", br]]), yr = {
|
|
|
1196
1196
|
kr,
|
|
1197
1197
|
$r
|
|
1198
1198
|
];
|
|
1199
|
-
function Sr(e, t, r, n,
|
|
1199
|
+
function Sr(e, t, r, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
|
-
class: p(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg",
|
|
1202
|
+
class: p(["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
|
vr,
|
|
@@ -1207,8 +1207,8 @@ function Sr(e, t, r, n, a, o) {
|
|
|
1207
1207
|
s("div", wr, h(e.notification.message), 1),
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
1211
|
-
class: p(["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",
|
|
1210
|
+
onClick: t[0] || (t[0] = (...l) => a.dismiss && a.dismiss(...l)),
|
|
1211
|
+
class: p(["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
|
}, Cr, 2)
|
|
1214
1214
|
], 2)) : g("", !0);
|
|
@@ -1249,9 +1249,9 @@ const gd = /* @__PURE__ */ D(yr, [["render", Sr]]), Or = {
|
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
1251
|
}, Dr = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Pr = ["name", "value", "id", "checked"], Er = ["for"];
|
|
1252
|
-
function jr(e, t, r, n,
|
|
1252
|
+
function jr(e, t, r, n, o, a) {
|
|
1253
1253
|
return d(), u("ul", Dr, [
|
|
1254
|
-
(d(!0), u(v, null, $(
|
|
1254
|
+
(d(!0), u(v, null, $(o.locals, (l, i) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
1257
1257
|
name: r.trans_selector_name,
|
|
@@ -1259,14 +1259,14 @@ function jr(e, t, r, n, a, o) {
|
|
|
1259
1259
|
class: "hidden peer",
|
|
1260
1260
|
id: l + "_" + r.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
|
-
checked: l ===
|
|
1262
|
+
checked: l === o.default_language
|
|
1263
1263
|
}, null, 8, Pr),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: l + "_" + r.field_name,
|
|
1266
1266
|
class: p([{
|
|
1267
1267
|
"border md:!rounded-s-lg": i === 0,
|
|
1268
|
-
"border md:!rounded-e-lg": i ===
|
|
1269
|
-
"border-t border-b": i !== 0 && i !==
|
|
1268
|
+
"border md:!rounded-e-lg": i === o.locals.length - 1,
|
|
1269
|
+
"border-t border-b": i !== 0 && i !== o.locals.length - 1
|
|
1270
1270
|
}, "w-full p-1 font-bold text-center text-gray-500 uppercase bg-white border-gray-200 rounded-lg cursor-pointer md:rounded-none dark:hover:text-gray-300 dark:border-gray-700 dark:peer-checked:text-blue-500 peer-checked:border-blue-600 peer-checked:text-blue-600 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:hover:bg-gray-700"])
|
|
1271
1271
|
}, h(l), 11, Er)
|
|
1272
1272
|
]))), 256))
|
|
@@ -1285,7 +1285,7 @@ const md = /* @__PURE__ */ D(Or, [["render", jr]]), Ar = { class: "bg-white bord
|
|
|
1285
1285
|
},
|
|
1286
1286
|
setup(e) {
|
|
1287
1287
|
const t = e, r = B(() => t.class);
|
|
1288
|
-
return (n,
|
|
1288
|
+
return (n, o) => (d(), u("div", {
|
|
1289
1289
|
class: p(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
1291
|
s("div", Ar, [
|
|
@@ -1483,7 +1483,7 @@ const md = /* @__PURE__ */ D(Or, [["render", jr]]), Ar = { class: "bg-white bord
|
|
|
1483
1483
|
})
|
|
1484
1484
|
])
|
|
1485
1485
|
], -1), Jr = ["id"], Qr = { class: "overflow-y-auto max-h-64" }, es = ["onClick", "onMousedown", "id"];
|
|
1486
|
-
function ts(e, t, r, n,
|
|
1486
|
+
function ts(e, t, r, n, o, a) {
|
|
1487
1487
|
return d(), u(v, null, [
|
|
1488
1488
|
r.show ? (d(), u("div", {
|
|
1489
1489
|
key: 0,
|
|
@@ -1491,7 +1491,7 @@ function ts(e, t, r, n, a, o) {
|
|
|
1491
1491
|
}, [
|
|
1492
1492
|
s("h3", Vr, h(r.label_name), 1),
|
|
1493
1493
|
s("p", Lr, [
|
|
1494
|
-
(d(!0), u(v, null, $(
|
|
1494
|
+
(d(!0), u(v, null, $(o.selected, (l, i) => (d(), u("span", Br, h(l.name), 1))), 256))
|
|
1495
1495
|
]),
|
|
1496
1496
|
Gr
|
|
1497
1497
|
], 2)) : g("", !0),
|
|
@@ -1499,7 +1499,7 @@ function ts(e, t, r, n, a, o) {
|
|
|
1499
1499
|
key: 1,
|
|
1500
1500
|
class: p(["mb-4", r.field_name])
|
|
1501
1501
|
}, [
|
|
1502
|
-
(d(!0), u(v, null, $(
|
|
1502
|
+
(d(!0), u(v, null, $(o.selectedIds, (l, i) => (d(), u("input", {
|
|
1503
1503
|
type: "hidden",
|
|
1504
1504
|
name: r.field_name + "[]",
|
|
1505
1505
|
key: i,
|
|
@@ -1515,12 +1515,12 @@ function ts(e, t, r, n, a, o) {
|
|
|
1515
1515
|
}, h(r.label_name), 3),
|
|
1516
1516
|
s("div", Ur, [
|
|
1517
1517
|
s("button", {
|
|
1518
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
1518
|
+
onClick: t[0] || (t[0] = (...l) => a.selectAll && a.selectAll(...l)),
|
|
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] = (...l) =>
|
|
1523
|
+
onClick: t[1] || (t[1] = (...l) => a.deselectAll && a.deselectAll(...l)),
|
|
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 ts(e, t, r, n, a, o) {
|
|
|
1529
1529
|
s("div", zr, [
|
|
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] = (l) =>
|
|
1532
|
+
onClick: t[2] || (t[2] = (l) => a.showOptions())
|
|
1533
1533
|
}, [
|
|
1534
|
-
(d(!0), u(v, null, $(
|
|
1534
|
+
(d(!0), u(v, null, $(o.selected, (l, i) => (d(), u("span", {
|
|
1535
1535
|
key: i,
|
|
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
1538
|
w(h(l.name) + " ", 1),
|
|
1539
1539
|
s("i", {
|
|
1540
|
-
onClick: M((c) =>
|
|
1540
|
+
onClick: M((c) => a.clearOption(l), ["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, Hr)
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
1546
|
-
class: p([
|
|
1546
|
+
class: p([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,32 +1554,32 @@ function ts(e, t, r, n, a, o) {
|
|
|
1554
1554
|
Yr,
|
|
1555
1555
|
P(s("input", {
|
|
1556
1556
|
type: "search",
|
|
1557
|
-
"onUpdate:modelValue": t[3] || (t[3] = (l) =>
|
|
1557
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => o.searchFilter = l),
|
|
1558
1558
|
id: r.field_name + "search",
|
|
1559
1559
|
ref: r.field_name + "search",
|
|
1560
|
-
onBlur: t[4] || (t[4] = (l) =>
|
|
1560
|
+
onBlur: t[4] || (t[4] = (l) => 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 ..."
|
|
1564
1564
|
}, null, 40, Jr), [
|
|
1565
|
-
[V,
|
|
1565
|
+
[V, o.searchFilter]
|
|
1566
1566
|
])
|
|
1567
1567
|
])
|
|
1568
1568
|
]),
|
|
1569
1569
|
s("div", Qr, [
|
|
1570
|
-
(d(!0), u(v, null, $(
|
|
1570
|
+
(d(!0), u(v, null, $(a.filteredOptions, (l, i) => (d(), u("div", {
|
|
1571
1571
|
class: p([
|
|
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
|
-
i + 1 ==
|
|
1573
|
+
i + 1 == o.count || a.isOptionSelected(l.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
1574
1574
|
]),
|
|
1575
|
-
onClick: (c) =>
|
|
1576
|
-
onMousedown: (c) =>
|
|
1575
|
+
onClick: (c) => a.selectOption(l),
|
|
1576
|
+
onMousedown: (c) => a.selectOption(l),
|
|
1577
1577
|
key: i,
|
|
1578
1578
|
id: i + 1
|
|
1579
1579
|
}, h(l.name || l.id || "-"), 43, es))), 128))
|
|
1580
1580
|
])
|
|
1581
1581
|
], 512), [
|
|
1582
|
-
[G,
|
|
1582
|
+
[G, o.optionsShown]
|
|
1583
1583
|
])
|
|
1584
1584
|
])
|
|
1585
1585
|
])) : g("", !0)
|
|
@@ -1655,11 +1655,11 @@ const pd = /* @__PURE__ */ D(Nr, [["render", ts]]), rs = {
|
|
|
1655
1655
|
fill: "#1C64F2"
|
|
1656
1656
|
})
|
|
1657
1657
|
], -1);
|
|
1658
|
-
function ns(e, t, r, n,
|
|
1658
|
+
function ns(e, t, r, n, o, a) {
|
|
1659
1659
|
return r.is_loading ? (d(), Z(se("button"), {
|
|
1660
1660
|
key: 1,
|
|
1661
1661
|
disabled: "",
|
|
1662
|
-
class: p(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${
|
|
1662
|
+
class: p(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
|
|
1663
1663
|
}, {
|
|
1664
1664
|
default: Y(() => [
|
|
1665
1665
|
ss,
|
|
@@ -1671,7 +1671,7 @@ function ns(e, t, r, n, a, o) {
|
|
|
1671
1671
|
type: r.is_submit
|
|
1672
1672
|
}, { type: r.is_submit ? "submit" : void 0 }, {
|
|
1673
1673
|
href: r.tag === "a" ? r.href : void 0,
|
|
1674
|
-
class: `flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${
|
|
1674
|
+
class: `flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`
|
|
1675
1675
|
}), {
|
|
1676
1676
|
default: Y(() => [
|
|
1677
1677
|
r.icon ? (d(), u("i", {
|
|
@@ -1683,7 +1683,7 @@ function ns(e, t, r, n, a, o) {
|
|
|
1683
1683
|
_: 3
|
|
1684
1684
|
}, 16, ["type", "href", "class"]));
|
|
1685
1685
|
}
|
|
1686
|
-
const bd = /* @__PURE__ */ D(rs, [["render", ns]]),
|
|
1686
|
+
const bd = /* @__PURE__ */ D(rs, [["render", ns]]), as = { class: "font-bold ptext-lg dark:text-white" }, os = ["name", "id"], is = ["id"], ls = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ds = ["for"], us = /* @__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"], fs = ["required", "name", "id", "type"], hs = { class: "gl-span-form-error" }, gs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, yd = {
|
|
1687
1687
|
__name: "GlTextareaTranslate",
|
|
1688
1688
|
props: {
|
|
1689
1689
|
is_required: {
|
|
@@ -1741,23 +1741,23 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
1741
1741
|
},
|
|
1742
1742
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1743
1743
|
setup(e, { expose: t, emit: r }) {
|
|
1744
|
-
const n = e,
|
|
1744
|
+
const n = e, o = r, a = O(null), l = O(null);
|
|
1745
1745
|
return F(() => {
|
|
1746
|
-
|
|
1746
|
+
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", {
|
|
1747
1747
|
model: n.translatable.model,
|
|
1748
1748
|
row_id: n.translatable.row_id,
|
|
1749
1749
|
field: n.translatable.field
|
|
1750
1750
|
}).then((i) => {
|
|
1751
|
-
l.value.value = JSON.stringify(i.data),
|
|
1751
|
+
l.value.value = JSON.stringify(i.data), o("update:modelValueTranslate", JSON.stringify(i.data)), console.log("input_translate", l.value.value);
|
|
1752
1752
|
}).catch((i) => {
|
|
1753
1753
|
console.log(i);
|
|
1754
1754
|
});
|
|
1755
|
-
}), t({ focus: () =>
|
|
1755
|
+
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1756
1756
|
e.show ? (d(), u("div", {
|
|
1757
1757
|
key: 0,
|
|
1758
1758
|
class: p(e.field_name)
|
|
1759
1759
|
}, [
|
|
1760
|
-
s("h3",
|
|
1760
|
+
s("h3", as, h(e.label_name), 1),
|
|
1761
1761
|
P(s("input", {
|
|
1762
1762
|
type: "hidden",
|
|
1763
1763
|
"data-i18n": "true",
|
|
@@ -1766,7 +1766,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
1766
1766
|
ref_key: "input_translate",
|
|
1767
1767
|
ref: l,
|
|
1768
1768
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.inputTranslateValue = f)
|
|
1769
|
-
}, null, 8,
|
|
1769
|
+
}, null, 8, os), [
|
|
1770
1770
|
[V, i.inputTranslateValue]
|
|
1771
1771
|
]),
|
|
1772
1772
|
s("p", {
|
|
@@ -1810,7 +1810,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
1810
1810
|
onInput: c[2] || (c[2] = (f) => i.$emit("update:modelValue", f.target.value)),
|
|
1811
1811
|
onKeydown: c[3] || (c[3] = (f) => i.$emit("keydown", f)),
|
|
1812
1812
|
ref_key: "input",
|
|
1813
|
-
ref:
|
|
1813
|
+
ref: a,
|
|
1814
1814
|
rows: "4"
|
|
1815
1815
|
}, `
|
|
1816
1816
|
`, 42, fs),
|
|
@@ -1877,22 +1877,22 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
1877
1877
|
},
|
|
1878
1878
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1879
1879
|
setup(e, { expose: t, emit: r }) {
|
|
1880
|
-
const n = e,
|
|
1880
|
+
const n = e, o = r, a = O(null), l = O(null);
|
|
1881
1881
|
return F(() => {
|
|
1882
1882
|
tinymce.init({
|
|
1883
1883
|
selector: "#" + n.field_name,
|
|
1884
1884
|
width: "100%",
|
|
1885
1885
|
height: 300
|
|
1886
|
-
}), console.log("tinymce ", n.model_value),
|
|
1886
|
+
}), console.log("tinymce ", n.model_value), 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", {
|
|
1887
1887
|
model: n.translatable.model,
|
|
1888
1888
|
row_id: n.translatable.row_id,
|
|
1889
1889
|
field: n.translatable.field
|
|
1890
1890
|
}).then((i) => {
|
|
1891
|
-
l.value.value = JSON.stringify(i.data),
|
|
1891
|
+
l.value.value = JSON.stringify(i.data), o("update:modelValueTranslate", JSON.stringify(i.data));
|
|
1892
1892
|
}).catch((i) => {
|
|
1893
1893
|
console.log(i);
|
|
1894
1894
|
});
|
|
1895
|
-
}), t({ focus: () =>
|
|
1895
|
+
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1896
1896
|
e.show ? (d(), u("div", {
|
|
1897
1897
|
key: 0,
|
|
1898
1898
|
class: p(e.field_name)
|
|
@@ -1949,7 +1949,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
1949
1949
|
onInput: c[2] || (c[2] = (f) => i.$emit("update:modelValue", f.target.value)),
|
|
1950
1950
|
onKeydown: c[3] || (c[3] = (f) => i.$emit("keydown", f)),
|
|
1951
1951
|
ref_key: "input",
|
|
1952
|
-
ref:
|
|
1952
|
+
ref: a,
|
|
1953
1953
|
rows: "4"
|
|
1954
1954
|
}, `
|
|
1955
1955
|
`, 42, ws),
|
|
@@ -2016,18 +2016,18 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
2016
2016
|
},
|
|
2017
2017
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
2018
2018
|
setup(e, { expose: t, emit: r }) {
|
|
2019
|
-
const n = e,
|
|
2019
|
+
const n = e, o = r, a = O(null), l = O(null);
|
|
2020
2020
|
return F(() => {
|
|
2021
|
-
|
|
2021
|
+
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", {
|
|
2022
2022
|
model: n.translatable.model,
|
|
2023
2023
|
row_id: n.translatable.row_id,
|
|
2024
2024
|
field: n.translatable.field
|
|
2025
2025
|
}).then((i) => {
|
|
2026
|
-
l.value.value = JSON.stringify(i.data),
|
|
2026
|
+
l.value.value = JSON.stringify(i.data), o("update:modelValueTranslate", JSON.stringify(i.data));
|
|
2027
2027
|
}).catch((i) => {
|
|
2028
2028
|
console.log(i);
|
|
2029
2029
|
});
|
|
2030
|
-
}), t({ focus: () =>
|
|
2030
|
+
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2031
2031
|
e.show ? (d(), u("div", {
|
|
2032
2032
|
key: 0,
|
|
2033
2033
|
class: p(e.field_name)
|
|
@@ -2084,7 +2084,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
2084
2084
|
onInput: c[2] || (c[2] = (f) => i.$emit("update:modelValue", f.target.value)),
|
|
2085
2085
|
onKeydown: c[3] || (c[3] = (f) => i.$emit("keydown", f)),
|
|
2086
2086
|
ref_key: "input",
|
|
2087
|
-
ref:
|
|
2087
|
+
ref: a
|
|
2088
2088
|
}, null, 42, As),
|
|
2089
2089
|
s("span", Is, h(e.error_message), 1),
|
|
2090
2090
|
s("small", Ts, h(e.description), 1)
|
|
@@ -2133,19 +2133,19 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
2133
2133
|
},
|
|
2134
2134
|
emits: ["update:modelValue", "keydown"],
|
|
2135
2135
|
setup(e, { expose: t, emit: r }) {
|
|
2136
|
-
const n = e,
|
|
2136
|
+
const n = e, o = r, a = O(null);
|
|
2137
2137
|
F(() => {
|
|
2138
|
-
|
|
2138
|
+
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2139
2139
|
});
|
|
2140
2140
|
const l = B({
|
|
2141
2141
|
get() {
|
|
2142
2142
|
return n.modelValue;
|
|
2143
2143
|
},
|
|
2144
2144
|
set(i) {
|
|
2145
|
-
|
|
2145
|
+
o("update:modelValue", i);
|
|
2146
2146
|
}
|
|
2147
2147
|
});
|
|
2148
|
-
return t({ focus: () =>
|
|
2148
|
+
return t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2149
2149
|
e.show ? (d(), u("div", {
|
|
2150
2150
|
key: 0,
|
|
2151
2151
|
class: p(e.field_name)
|
|
@@ -2178,7 +2178,7 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
2178
2178
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.value = f),
|
|
2179
2179
|
onKeydown: c[1] || (c[1] = (f) => i.$emit("keydown", f)),
|
|
2180
2180
|
ref_key: "input",
|
|
2181
|
-
ref:
|
|
2181
|
+
ref: a
|
|
2182
2182
|
}, null, 42, Bs), [
|
|
2183
2183
|
[Ye, l.value]
|
|
2184
2184
|
]),
|
|
@@ -2189,14 +2189,14 @@ const bd = /* @__PURE__ */ D(rs, [["render", ns]]), os = { class: "font-bold pte
|
|
|
2189
2189
|
}
|
|
2190
2190
|
}, Rs = {
|
|
2191
2191
|
setup(e, { slots: t }) {
|
|
2192
|
-
const r = O(t.default().map((
|
|
2192
|
+
const r = O(t.default().map((o) => o.props)), n = O(r.value[0].title);
|
|
2193
2193
|
return Je("selectedTitle", n), {
|
|
2194
2194
|
tabs: r,
|
|
2195
2195
|
selectedTitle: n
|
|
2196
2196
|
};
|
|
2197
2197
|
}
|
|
2198
2198
|
}, Us = { class: "flex flex-wrap" }, qs = { class: "w-full" }, zs = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Hs = ["onClick"], Zs = { class: "relative flex flex-col w-full min-w-0 mb-6 break-words bg-white rounded shadow-lg dark:border-strokedark dark:bg-boxdark" }, Ks = { class: "flex-auto px-4 py-5" }, Ws = { class: "tab-content tab-space" };
|
|
2199
|
-
function Xs(e, t, r, n,
|
|
2199
|
+
function Xs(e, t, r, n, o, a) {
|
|
2200
2200
|
return d(), u(v, null, [
|
|
2201
2201
|
s("div", Us, [
|
|
2202
2202
|
s("div", qs, [
|
|
@@ -2235,7 +2235,7 @@ const kd = /* @__PURE__ */ D(Rs, [["render", Xs]]), Ys = {
|
|
|
2235
2235
|
};
|
|
2236
2236
|
}
|
|
2237
2237
|
}, Js = { class: "block" };
|
|
2238
|
-
function Qs(e, t, r, n,
|
|
2238
|
+
function Qs(e, t, r, n, o, a) {
|
|
2239
2239
|
return P((d(), u("div", Js, [
|
|
2240
2240
|
A(e.$slots, "default")
|
|
2241
2241
|
], 512)), [
|
|
@@ -2295,23 +2295,23 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2295
2295
|
generateRandomString(e) {
|
|
2296
2296
|
let t = "";
|
|
2297
2297
|
const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n = r.length;
|
|
2298
|
-
for (let
|
|
2298
|
+
for (let o = 0; o < e; o++)
|
|
2299
2299
|
t += r.charAt(Math.floor(Math.random() * n));
|
|
2300
2300
|
return t;
|
|
2301
2301
|
},
|
|
2302
2302
|
movingActions() {
|
|
2303
2303
|
let e = this, t = document.getElementById("slider_" + this.Random_string);
|
|
2304
|
-
const r = (
|
|
2304
|
+
const r = (o) => {
|
|
2305
2305
|
t.style.cursor = "grabbing";
|
|
2306
|
-
const
|
|
2306
|
+
const a = (i) => {
|
|
2307
2307
|
const c = i.clientX || i.touches && i.touches[0] && i.touches[0].clientX, f = i.clientY || i.touches && i.touches[0] && i.touches[0].clientY, m = c - e.initialX, y = f - e.initialY;
|
|
2308
2308
|
Math.abs(m) > Math.abs(y) ? (i.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");
|
|
2309
2309
|
}, l = () => {
|
|
2310
|
-
document.removeEventListener("mousemove",
|
|
2310
|
+
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", l), document.removeEventListener("touchend", l), t.style.cursor = "grab";
|
|
2311
2311
|
};
|
|
2312
|
-
document.addEventListener("mousemove",
|
|
2313
|
-
}, n = (
|
|
2314
|
-
|
|
2312
|
+
document.addEventListener("mousemove", a), document.addEventListener("touchmove", a, { passive: !1 }), document.addEventListener("mouseup", l), document.addEventListener("touchend", l), 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;
|
|
2313
|
+
}, n = (o) => {
|
|
2314
|
+
o.key === "ArrowLeft" ? e.prev() : o.key === "ArrowRight" && e.next();
|
|
2315
2315
|
};
|
|
2316
2316
|
t.addEventListener("mousedown", r), t.addEventListener("touchstart", r), document.addEventListener("keydown", n);
|
|
2317
2317
|
},
|
|
@@ -2322,17 +2322,17 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2322
2322
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
2323
2323
|
},
|
|
2324
2324
|
initSlider() {
|
|
2325
|
-
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"),
|
|
2326
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, l = this.hide_arrow ? t.clientWidth :
|
|
2327
|
-
this.dotsNum = this.elementsToShow == 1 ?
|
|
2328
|
-
let i = this.elementsToShow == 1 ? l *
|
|
2325
|
+
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((i) => i.parentNode === r), a = e.clientWidth, l = a / this.elementsToShow;
|
|
2326
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, l = this.hide_arrow ? t.clientWidth : a) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, l = this.hide_arrow ? t.clientWidth : a), o.length > 1) {
|
|
2327
|
+
this.dotsNum = this.elementsToShow == 1 ? o.length : o.length - this.elementsToShow + 1;
|
|
2328
|
+
let i = this.elementsToShow == 1 ? l * o.length / this.dotsNum : l * (o.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
2329
2329
|
this.dotsNavigation = [];
|
|
2330
2330
|
for (let c = 0; c < this.dotsNum; c++)
|
|
2331
2331
|
this.dotsNavigation.push(i * c);
|
|
2332
2332
|
}
|
|
2333
|
-
r.style.width =
|
|
2334
|
-
for (let i = 0; i <
|
|
2335
|
-
const c =
|
|
2333
|
+
r.style.width = o.length * l + "px", r.style.transition = "margin", r.style.transitionDuration = "1s";
|
|
2334
|
+
for (let i = 0; i < o.length; i++) {
|
|
2335
|
+
const c = o[i];
|
|
2336
2336
|
c.style.width = l + "px";
|
|
2337
2337
|
}
|
|
2338
2338
|
},
|
|
@@ -2352,12 +2352,12 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2352
2352
|
viewBox: "0 0 24 24",
|
|
2353
2353
|
stroke: "currentColor",
|
|
2354
2354
|
"stroke-width": "2"
|
|
2355
|
-
},
|
|
2355
|
+
}, an = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2356
2356
|
"stroke-linecap": "round",
|
|
2357
2357
|
"stroke-linejoin": "round",
|
|
2358
2358
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2359
|
-
}, null, -1)),
|
|
2360
|
-
|
|
2359
|
+
}, null, -1)), on = [
|
|
2360
|
+
an
|
|
2361
2361
|
], ln = {
|
|
2362
2362
|
key: 1,
|
|
2363
2363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2505,13 +2505,13 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2505
2505
|
viewBox: "0 0 24 24",
|
|
2506
2506
|
stroke: "currentColor",
|
|
2507
2507
|
"stroke-width": "2"
|
|
2508
|
-
},
|
|
2508
|
+
}, ea = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2509
2509
|
"stroke-linecap": "round",
|
|
2510
2510
|
"stroke-linejoin": "round",
|
|
2511
2511
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2512
|
-
}, null, -1)),
|
|
2513
|
-
|
|
2514
|
-
],
|
|
2512
|
+
}, null, -1)), ta = [
|
|
2513
|
+
ea
|
|
2514
|
+
], ra = {
|
|
2515
2515
|
key: 1,
|
|
2516
2516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2517
2517
|
class: "w-6 h-6",
|
|
@@ -2519,14 +2519,14 @@ const $d = /* @__PURE__ */ D(Ys, [["render", Qs]]), en = {
|
|
|
2519
2519
|
viewBox: "0 0 24 24",
|
|
2520
2520
|
stroke: "currentColor",
|
|
2521
2521
|
"stroke-width": "2"
|
|
2522
|
-
},
|
|
2522
|
+
}, sa = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2523
2523
|
"stroke-linecap": "round",
|
|
2524
2524
|
"stroke-linejoin": "round",
|
|
2525
2525
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2526
|
-
}, null, -1)),
|
|
2527
|
-
|
|
2526
|
+
}, null, -1)), na = [
|
|
2527
|
+
sa
|
|
2528
2528
|
];
|
|
2529
|
-
function
|
|
2529
|
+
function aa(e, t, r, n, o, a) {
|
|
2530
2530
|
return d(), u("div", null, [
|
|
2531
2531
|
s("div", {
|
|
2532
2532
|
class: p(["", !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
@@ -2536,15 +2536,15 @@ function oo(e, t, r, n, a, o) {
|
|
|
2536
2536
|
s("div", sn, [
|
|
2537
2537
|
s("button", {
|
|
2538
2538
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2539
|
-
onClick: t[0] || (t[0] = (l) =>
|
|
2539
|
+
onClick: t[0] || (t[0] = (l) => a.prev())
|
|
2540
2540
|
}, [
|
|
2541
|
-
r.direction_property == "ltr" ? (d(), u("svg", nn,
|
|
2541
|
+
r.direction_property == "ltr" ? (d(), u("svg", nn, on)) : g("", !0),
|
|
2542
2542
|
r.direction_property == "rtl" ? (d(), u("svg", ln, un)) : g("", !0)
|
|
2543
2543
|
])
|
|
2544
2544
|
])
|
|
2545
2545
|
])) : g("", !0),
|
|
2546
2546
|
s("div", {
|
|
2547
|
-
class: p(["overflow-hidden",
|
|
2547
|
+
class: p(["overflow-hidden", a.sliderContainerAction()]),
|
|
2548
2548
|
id: "sliderContainer_" + e.Random_string
|
|
2549
2549
|
}, [
|
|
2550
2550
|
s("ul", {
|
|
@@ -2558,7 +2558,7 @@ function oo(e, t, r, n, a, o) {
|
|
|
2558
2558
|
s("div", hn, [
|
|
2559
2559
|
s("button", {
|
|
2560
2560
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2561
|
-
onClick: t[1] || (t[1] = M((l) =>
|
|
2561
|
+
onClick: t[1] || (t[1] = M((l) => a.prev(), ["stop"]))
|
|
2562
2562
|
}, [
|
|
2563
2563
|
r.direction_property == "ltr" ? (d(), u("svg", gn, _n)) : g("", !0),
|
|
2564
2564
|
r.direction_property == "rtl" ? (d(), u("svg", pn, yn)) : g("", !0)
|
|
@@ -2573,7 +2573,7 @@ function oo(e, t, r, n, a, o) {
|
|
|
2573
2573
|
s("div", vn, [
|
|
2574
2574
|
s("button", {
|
|
2575
2575
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2576
|
-
onClick: t[2] || (t[2] = M((l) =>
|
|
2576
|
+
onClick: t[2] || (t[2] = M((l) => a.next(), ["stop"]))
|
|
2577
2577
|
}, [
|
|
2578
2578
|
r.direction_property == "ltr" ? (d(), u("svg", xn, kn)) : g("", !0),
|
|
2579
2579
|
r.direction_property == "rtl" ? (d(), u("svg", $n, Sn)) : g("", !0)
|
|
@@ -2583,24 +2583,24 @@ function oo(e, t, r, n, a, o) {
|
|
|
2583
2583
|
], 8, fn),
|
|
2584
2584
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2585
2585
|
key: 0,
|
|
2586
|
-
class: p(["flex justify-center mb-1 space-x-1",
|
|
2586
|
+
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2587
2587
|
}, [
|
|
2588
2588
|
(d(!0), u(v, null, $(e.dotsNum, (l) => (d(), u("button", {
|
|
2589
2589
|
role: "button",
|
|
2590
2590
|
class: p(["gl-dot", { active: e.currentDot == l }]),
|
|
2591
2591
|
key: l,
|
|
2592
|
-
onClick: (i) =>
|
|
2592
|
+
onClick: (i) => a.setDot(l)
|
|
2593
2593
|
}, Pn, 10, On))), 128))
|
|
2594
2594
|
], 2)) : g("", !0),
|
|
2595
2595
|
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", En, [
|
|
2596
2596
|
s("div", {
|
|
2597
|
-
class: p(["flex justify-center mb-1 space-x-1",
|
|
2597
|
+
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2598
2598
|
}, [
|
|
2599
2599
|
(d(!0), u(v, null, $(e.dotsNum, (l) => (d(), u("button", {
|
|
2600
2600
|
role: "button",
|
|
2601
2601
|
class: p(["gl-dot", { active: e.currentDot == l }]),
|
|
2602
2602
|
key: l,
|
|
2603
|
-
onClick: (i) =>
|
|
2603
|
+
onClick: (i) => a.setDot(l)
|
|
2604
2604
|
}, In, 10, jn))), 128))
|
|
2605
2605
|
], 2),
|
|
2606
2606
|
e.dotsNum > 0 ? (d(), u("div", Tn, [
|
|
@@ -2608,7 +2608,7 @@ function oo(e, t, r, n, a, o) {
|
|
|
2608
2608
|
s("div", Nn, [
|
|
2609
2609
|
s("button", {
|
|
2610
2610
|
class: p(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2611
|
-
onClick: t[3] || (t[3] = (l) =>
|
|
2611
|
+
onClick: t[3] || (t[3] = (l) => a.prev())
|
|
2612
2612
|
}, [
|
|
2613
2613
|
r.direction_property == "ltr" ? (d(), u("svg", Vn, Bn)) : g("", !0),
|
|
2614
2614
|
r.direction_property == "rtl" ? (d(), u("svg", Gn, Rn)) : g("", !0)
|
|
@@ -2619,7 +2619,7 @@ function oo(e, t, r, n, a, o) {
|
|
|
2619
2619
|
s("div", qn, [
|
|
2620
2620
|
s("button", {
|
|
2621
2621
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2622
|
-
onClick: t[4] || (t[4] = (l) =>
|
|
2622
|
+
onClick: t[4] || (t[4] = (l) => a.next())
|
|
2623
2623
|
}, [
|
|
2624
2624
|
r.direction_property == "ltr" ? (d(), u("svg", zn, Zn)) : g("", !0),
|
|
2625
2625
|
r.direction_property == "rtl" ? (d(), u("svg", Kn, Xn)) : g("", !0)
|
|
@@ -2633,21 +2633,21 @@ function oo(e, t, r, n, a, o) {
|
|
|
2633
2633
|
s("div", Jn, [
|
|
2634
2634
|
s("button", {
|
|
2635
2635
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2636
|
-
onClick: t[5] || (t[5] = (l) =>
|
|
2636
|
+
onClick: t[5] || (t[5] = (l) => a.next())
|
|
2637
2637
|
}, [
|
|
2638
|
-
r.direction_property == "ltr" ? (d(), u("svg", Qn,
|
|
2639
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2638
|
+
r.direction_property == "ltr" ? (d(), u("svg", Qn, ta)) : g("", !0),
|
|
2639
|
+
r.direction_property == "rtl" ? (d(), u("svg", ra, na)) : g("", !0)
|
|
2640
2640
|
])
|
|
2641
2641
|
])
|
|
2642
2642
|
])) : g("", !0)
|
|
2643
2643
|
], 10, tn)
|
|
2644
2644
|
]);
|
|
2645
2645
|
}
|
|
2646
|
-
const Cd = /* @__PURE__ */ D(en, [["render",
|
|
2646
|
+
const Cd = /* @__PURE__ */ D(en, [["render", aa], ["__scopeId", "data-v-a94f16a9"]]), oa = {
|
|
2647
2647
|
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",
|
|
2648
2648
|
tabindex: "-1",
|
|
2649
2649
|
"aria-hidden": "true"
|
|
2650
|
-
},
|
|
2650
|
+
}, ia = { 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" }, la = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, da = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, ua = /* @__PURE__ */ s("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2651
2651
|
/* @__PURE__ */ s("svg", {
|
|
2652
2652
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2653
2653
|
fill: "currentColor",
|
|
@@ -2661,9 +2661,9 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2661
2661
|
d: "M6 18L18 6M6 6l12 12"
|
|
2662
2662
|
})
|
|
2663
2663
|
])
|
|
2664
|
-
], -1),
|
|
2665
|
-
|
|
2666
|
-
],
|
|
2664
|
+
], -1), ca = [
|
|
2665
|
+
ua
|
|
2666
|
+
], fa = { class: "relative p-4 overflow-y-auto" }, ha = { 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" }, Sd = {
|
|
2667
2667
|
__name: "GlModal",
|
|
2668
2668
|
props: {
|
|
2669
2669
|
is_open: {
|
|
@@ -2681,37 +2681,37 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2681
2681
|
},
|
|
2682
2682
|
emits: ["closeModal"],
|
|
2683
2683
|
setup(e, { emit: t }) {
|
|
2684
|
-
const r = e, n = t,
|
|
2684
|
+
const r = e, n = t, o = () => {
|
|
2685
2685
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2686
|
-
},
|
|
2686
|
+
}, a = () => {
|
|
2687
2687
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2688
2688
|
}, l = () => {
|
|
2689
|
-
n("closeModal"),
|
|
2689
|
+
n("closeModal"), a();
|
|
2690
2690
|
};
|
|
2691
2691
|
return W(
|
|
2692
2692
|
() => r.is_open,
|
|
2693
2693
|
(i, c) => {
|
|
2694
|
-
i ?
|
|
2694
|
+
i ? o() : a();
|
|
2695
2695
|
},
|
|
2696
2696
|
{ immediate: !0, deep: !0 }
|
|
2697
|
-
), (i, c) => P((d(), u("div",
|
|
2697
|
+
), (i, c) => P((d(), u("div", oa, [
|
|
2698
2698
|
s("div", {
|
|
2699
2699
|
class: p(["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])
|
|
2700
2700
|
}, [
|
|
2701
|
-
s("div",
|
|
2702
|
-
s("div",
|
|
2703
|
-
s("h5",
|
|
2701
|
+
s("div", ia, [
|
|
2702
|
+
s("div", la, [
|
|
2703
|
+
s("h5", da, h(e.title), 1),
|
|
2704
2704
|
s("button", {
|
|
2705
2705
|
type: "button",
|
|
2706
2706
|
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",
|
|
2707
2707
|
onClick: l,
|
|
2708
2708
|
"aria-label": "Close"
|
|
2709
|
-
},
|
|
2709
|
+
}, ca)
|
|
2710
2710
|
]),
|
|
2711
|
-
s("div",
|
|
2711
|
+
s("div", fa, [
|
|
2712
2712
|
A(i.$slots, "body")
|
|
2713
2713
|
]),
|
|
2714
|
-
s("div",
|
|
2714
|
+
s("div", ha, [
|
|
2715
2715
|
A(i.$slots, "buttons"),
|
|
2716
2716
|
s("button", {
|
|
2717
2717
|
onClick: l,
|
|
@@ -2725,7 +2725,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2725
2725
|
[G, e.is_open]
|
|
2726
2726
|
]);
|
|
2727
2727
|
}
|
|
2728
|
-
},
|
|
2728
|
+
}, ga = { class: "mb-4" }, ma = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, _a = { class: "relative inline-flex items-center cursor-pointer" }, pa = ["name", "id", "checked"], ba = /* @__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), ya = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), va = { 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" }, xa = { class: "relative inline-flex items-center cursor-pointer" }, wa = ["name", "id"], ka = /* @__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), $a = { class: "gl-span-form-error" }, Ca = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Od = {
|
|
2729
2729
|
__name: "GlToggleBox",
|
|
2730
2730
|
props: {
|
|
2731
2731
|
is_required: {
|
|
@@ -2767,7 +2767,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2767
2767
|
},
|
|
2768
2768
|
emits: ["update:modelValue"],
|
|
2769
2769
|
setup(e, { emit: t }) {
|
|
2770
|
-
const r = e, n = t,
|
|
2770
|
+
const r = e, n = t, o = O(null), a = B({
|
|
2771
2771
|
get() {
|
|
2772
2772
|
return r.modelValue;
|
|
2773
2773
|
},
|
|
@@ -2780,10 +2780,10 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
class: p(e.field_name)
|
|
2782
2782
|
}, [
|
|
2783
|
-
s("div",
|
|
2784
|
-
s("li",
|
|
2783
|
+
s("div", ga, [
|
|
2784
|
+
s("li", ma, [
|
|
2785
2785
|
w(h(e.label_name) + " ", 1),
|
|
2786
|
-
s("label",
|
|
2786
|
+
s("label", _a, [
|
|
2787
2787
|
s("input", {
|
|
2788
2788
|
type: "checkbox",
|
|
2789
2789
|
class: "sr-only peer",
|
|
@@ -2793,22 +2793,22 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2793
2793
|
"true-value": 1,
|
|
2794
2794
|
"false-value": 0,
|
|
2795
2795
|
ref_key: "input",
|
|
2796
|
-
ref:
|
|
2796
|
+
ref: o,
|
|
2797
2797
|
disabled: ""
|
|
2798
|
-
}, null, 8,
|
|
2799
|
-
|
|
2798
|
+
}, null, 8, pa),
|
|
2799
|
+
ba
|
|
2800
2800
|
])
|
|
2801
2801
|
])
|
|
2802
2802
|
]),
|
|
2803
|
-
|
|
2803
|
+
ya
|
|
2804
2804
|
], 2)) : g("", !0),
|
|
2805
2805
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2806
2806
|
key: 1,
|
|
2807
2807
|
class: p(["mb-4", e.field_name])
|
|
2808
2808
|
}, [
|
|
2809
|
-
s("li",
|
|
2809
|
+
s("li", va, [
|
|
2810
2810
|
w(h(e.label_name) + " ", 1),
|
|
2811
|
-
s("label",
|
|
2811
|
+
s("label", xa, [
|
|
2812
2812
|
P(s("input", {
|
|
2813
2813
|
type: "checkbox",
|
|
2814
2814
|
class: "sr-only peer",
|
|
@@ -2817,26 +2817,26 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2817
2817
|
"true-value": 1,
|
|
2818
2818
|
"false-value": 0,
|
|
2819
2819
|
ref_key: "input",
|
|
2820
|
-
ref:
|
|
2821
|
-
"onUpdate:modelValue": i[0] || (i[0] = (c) =>
|
|
2822
|
-
}, null, 8,
|
|
2823
|
-
[tt,
|
|
2820
|
+
ref: o,
|
|
2821
|
+
"onUpdate:modelValue": i[0] || (i[0] = (c) => a.value = c)
|
|
2822
|
+
}, null, 8, wa), [
|
|
2823
|
+
[tt, a.value]
|
|
2824
2824
|
]),
|
|
2825
|
-
|
|
2825
|
+
ka
|
|
2826
2826
|
])
|
|
2827
2827
|
]),
|
|
2828
|
-
s("span",
|
|
2829
|
-
s("small",
|
|
2828
|
+
s("span", $a, h(e.error_message), 1),
|
|
2829
|
+
s("small", Ca, h(e.description), 1)
|
|
2830
2830
|
], 2))
|
|
2831
2831
|
], 64));
|
|
2832
2832
|
}
|
|
2833
|
-
},
|
|
2833
|
+
}, Sa = { class: "font-bold ptext-lg dark:text-white" }, Oa = { class: "mt-3 mb-4" }, Da = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, Pa = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ea = ["name", "id", "value"], ja = {
|
|
2834
2834
|
key: 0,
|
|
2835
2835
|
class: "dropdown"
|
|
2836
|
-
},
|
|
2836
|
+
}, Aa = { class: "border border-gray-200 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Ia = { class: "relative showOptions" }, Ta = ["value", "placeholder"], Ma = { class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l absolute w-full z-[999999999]" }, Na = { class: "p-1" }, Va = /* @__PURE__ */ s("label", {
|
|
2837
2837
|
for: "default-search",
|
|
2838
2838
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
2839
|
-
}, "Search", -1),
|
|
2839
|
+
}, "Search", -1), La = { class: "relative" }, Ba = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
2840
2840
|
/* @__PURE__ */ s("svg", {
|
|
2841
2841
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
2842
2842
|
"aria-hidden": "true",
|
|
@@ -2852,22 +2852,22 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2852
2852
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
2853
2853
|
})
|
|
2854
2854
|
])
|
|
2855
|
-
], -1),
|
|
2855
|
+
], -1), Ga = ["id"], Fa = { class: "overflow-y-auto max-h-64" }, Ra = ["onClick", "onMousedown", "id"], Ua = { class: "flex items-center py-2 pl-10 pr-4" }, qa = {
|
|
2856
2856
|
key: 0,
|
|
2857
2857
|
class: "absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400",
|
|
2858
2858
|
"aria-hidden": "true",
|
|
2859
2859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2860
2860
|
fill: "none",
|
|
2861
2861
|
viewBox: "0 0 16 12"
|
|
2862
|
-
},
|
|
2862
|
+
}, za = /* @__PURE__ */ s("path", {
|
|
2863
2863
|
stroke: "currentColor",
|
|
2864
2864
|
"stroke-linecap": "round",
|
|
2865
2865
|
"stroke-linejoin": "round",
|
|
2866
2866
|
"stroke-width": "2",
|
|
2867
2867
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
2868
|
-
}, null, -1),
|
|
2869
|
-
|
|
2870
|
-
],
|
|
2868
|
+
}, null, -1), Ha = [
|
|
2869
|
+
za
|
|
2870
|
+
], Za = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Ka = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Dd = {
|
|
2871
2871
|
__name: "GlDropdown",
|
|
2872
2872
|
props: {
|
|
2873
2873
|
modelValue: {
|
|
@@ -2927,17 +2927,17 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2927
2927
|
},
|
|
2928
2928
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2929
2929
|
setup(e, { emit: t }) {
|
|
2930
|
-
const r = e, n = t,
|
|
2930
|
+
const r = e, n = t, o = O(null), a = O({}), l = O(0), i = O(!1), c = O(""), f = O("");
|
|
2931
2931
|
F(() => {
|
|
2932
|
-
n("selected",
|
|
2932
|
+
n("selected", a.value), f.value = L(), r.show || (document.body.addEventListener("click", (b) => {
|
|
2933
2933
|
Fe(b);
|
|
2934
2934
|
}), document.addEventListener("keypress", (b) => {
|
|
2935
2935
|
b.key === "Enter" && b.target.form && b.preventDefault();
|
|
2936
2936
|
}));
|
|
2937
2937
|
});
|
|
2938
|
-
const m = B(() =>
|
|
2938
|
+
const m = B(() => qe()), y = B(() => ze()), x = B(() => {
|
|
2939
2939
|
const b = [], k = new RegExp(c.value, "ig");
|
|
2940
|
-
for (const C of
|
|
2940
|
+
for (const C of m.value) {
|
|
2941
2941
|
const N = String(C.name);
|
|
2942
2942
|
(c.value.length < 1 || N.match(k)) && b.length < r.maxItem && b.push(C);
|
|
2943
2943
|
}
|
|
@@ -2978,12 +2978,12 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2978
2978
|
return r.options.map((b, k) => typeof b == "object" ? b : { id: b, name: b });
|
|
2979
2979
|
}
|
|
2980
2980
|
function ze() {
|
|
2981
|
-
var b =
|
|
2982
|
-
if (console.log(
|
|
2983
|
-
return typeof b == "object" ?
|
|
2981
|
+
var b = a.value || r.modelValue;
|
|
2982
|
+
if (console.log(a.value, " - ", r.modelValue, " - ", b), b)
|
|
2983
|
+
return typeof b == "object" ? m.value.find((k) => String(k.id) === String(b.id)) || {} : m.value.find((k) => String(k.id) === String(b)) || {};
|
|
2984
2984
|
}
|
|
2985
2985
|
function ge(b) {
|
|
2986
|
-
|
|
2986
|
+
a.value = b, i.value = !1, n("selected", a.value), n("selectionChanged", a.value);
|
|
2987
2987
|
}
|
|
2988
2988
|
function ee() {
|
|
2989
2989
|
r.show || (c.value = "", i.value = !0, rt(() => {
|
|
@@ -2992,25 +2992,25 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
2992
2992
|
}));
|
|
2993
2993
|
}
|
|
2994
2994
|
function He() {
|
|
2995
|
-
r.show || (
|
|
2995
|
+
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), ee());
|
|
2996
2996
|
}
|
|
2997
2997
|
function me() {
|
|
2998
|
-
|
|
2998
|
+
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), i.value = !1;
|
|
2999
2999
|
}
|
|
3000
3000
|
return W(c, () => {
|
|
3001
|
-
x.value.length === 0 && (
|
|
3002
|
-
}), W(
|
|
3001
|
+
x.value.length === 0 && (a.value = {});
|
|
3002
|
+
}), W(a, (b) => {
|
|
3003
3003
|
fe(b) && n("update:modelValue", b.id);
|
|
3004
3004
|
}), (b, k) => (d(), u(v, null, [
|
|
3005
3005
|
e.show ? (d(), u("div", {
|
|
3006
3006
|
key: 0,
|
|
3007
3007
|
class: p(e.field_name)
|
|
3008
3008
|
}, [
|
|
3009
|
-
s("h3",
|
|
3010
|
-
s("p",
|
|
3011
|
-
s("span",
|
|
3009
|
+
s("h3", Sa, h(e.label_name), 1),
|
|
3010
|
+
s("p", Oa, [
|
|
3011
|
+
s("span", Da, h(b.selectedValue.name), 1)
|
|
3012
3012
|
]),
|
|
3013
|
-
|
|
3013
|
+
Pa
|
|
3014
3014
|
], 2)) : g("", !0),
|
|
3015
3015
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3016
3016
|
key: 1,
|
|
@@ -3020,9 +3020,9 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3020
3020
|
type: "hidden",
|
|
3021
3021
|
name: e.field_name,
|
|
3022
3022
|
id: e.field_name,
|
|
3023
|
-
value:
|
|
3024
|
-
}, null, 8,
|
|
3025
|
-
e.options ? (d(), u("div",
|
|
3023
|
+
value: a.value.id
|
|
3024
|
+
}, null, 8, Ea),
|
|
3025
|
+
e.options ? (d(), u("div", ja, [
|
|
3026
3026
|
e.label_name ? (d(), u("label", {
|
|
3027
3027
|
key: 0,
|
|
3028
3028
|
class: p({
|
|
@@ -3031,8 +3031,8 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3031
3031
|
required: e.is_required
|
|
3032
3032
|
})
|
|
3033
3033
|
}, h(e.label_name), 3)) : g("", !0),
|
|
3034
|
-
s("div",
|
|
3035
|
-
s("div",
|
|
3034
|
+
s("div", Aa, [
|
|
3035
|
+
s("div", Ia, [
|
|
3036
3036
|
s("input", {
|
|
3037
3037
|
class: p([{
|
|
3038
3038
|
"gl-input-form": e.error_message == "",
|
|
@@ -3040,17 +3040,17 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3040
3040
|
}, "pl-8 pr-2 showOptions"]),
|
|
3041
3041
|
ref: e.field_name,
|
|
3042
3042
|
onClick: k[0] || (k[0] = (C) => ee()),
|
|
3043
|
-
value:
|
|
3043
|
+
value: y.value.name,
|
|
3044
3044
|
placeholder: e.placeholder,
|
|
3045
3045
|
autocomplete: "off",
|
|
3046
3046
|
readonly: ""
|
|
3047
|
-
}, null, 10,
|
|
3047
|
+
}, null, 10, Ta),
|
|
3048
3048
|
P(s("i", {
|
|
3049
3049
|
onClick: k[1] || (k[1] = M((C) => He(), ["stop"])),
|
|
3050
3050
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3051
3051
|
style: { top: "13px" }
|
|
3052
3052
|
}, null, 512), [
|
|
3053
|
-
[G, fe(
|
|
3053
|
+
[G, fe(y.value) && e.has_cancel]
|
|
3054
3054
|
]),
|
|
3055
3055
|
s("i", {
|
|
3056
3056
|
onClick: k[2] || (k[2] = (C) => !i.value && ee()),
|
|
@@ -3058,27 +3058,27 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3058
3058
|
style: { top: "11px" }
|
|
3059
3059
|
}, null, 2)
|
|
3060
3060
|
]),
|
|
3061
|
-
P(s("div",
|
|
3062
|
-
s("div",
|
|
3063
|
-
|
|
3064
|
-
s("div",
|
|
3065
|
-
|
|
3061
|
+
P(s("div", Ma, [
|
|
3062
|
+
s("div", Na, [
|
|
3063
|
+
Va,
|
|
3064
|
+
s("div", La, [
|
|
3065
|
+
Ba,
|
|
3066
3066
|
P(s("input", {
|
|
3067
3067
|
type: "search",
|
|
3068
3068
|
"onUpdate:modelValue": k[3] || (k[3] = (C) => c.value = C),
|
|
3069
|
-
ref:
|
|
3069
|
+
ref: o.value,
|
|
3070
3070
|
id: `${e.field_name}search${f.value}`,
|
|
3071
3071
|
onKeydown: S,
|
|
3072
3072
|
onBlur: k[4] || (k[4] = (C) => me()),
|
|
3073
3073
|
autocomplete: "off",
|
|
3074
3074
|
class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
|
|
3075
3075
|
placeholder: "Search ..."
|
|
3076
|
-
}, null, 40,
|
|
3076
|
+
}, null, 40, Ga), [
|
|
3077
3077
|
[V, c.value]
|
|
3078
3078
|
])
|
|
3079
3079
|
])
|
|
3080
3080
|
]),
|
|
3081
|
-
s("div",
|
|
3081
|
+
s("div", Fa, [
|
|
3082
3082
|
(d(!0), u(v, null, $(x.value, (C, N) => (d(), u("div", {
|
|
3083
3083
|
class: p(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", N + 1 == l.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3084
3084
|
onClick: (Ze) => ge(C),
|
|
@@ -3086,23 +3086,23 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3086
3086
|
key: N,
|
|
3087
3087
|
id: `${N + 1}${f.value}`
|
|
3088
3088
|
}, [
|
|
3089
|
-
s("div",
|
|
3090
|
-
|
|
3089
|
+
s("div", Ua, [
|
|
3090
|
+
y.value.id === C.id ? (d(), u("svg", qa, Ha)) : g("", !0),
|
|
3091
3091
|
s("span", null, h(C.name || C.id || "-"), 1)
|
|
3092
3092
|
])
|
|
3093
|
-
], 42,
|
|
3093
|
+
], 42, Ra))), 128))
|
|
3094
3094
|
])
|
|
3095
3095
|
], 512), [
|
|
3096
3096
|
[G, i.value]
|
|
3097
3097
|
])
|
|
3098
3098
|
])
|
|
3099
3099
|
])) : g("", !0),
|
|
3100
|
-
s("span",
|
|
3101
|
-
s("small",
|
|
3100
|
+
s("span", Za, h(e.error_message), 1),
|
|
3101
|
+
s("small", Ka, h(e.description), 1)
|
|
3102
3102
|
], 2))
|
|
3103
3103
|
], 64));
|
|
3104
3104
|
}
|
|
3105
|
-
},
|
|
3105
|
+
}, Wa = { class: "font-bold ptext-lg dark:text-white" }, Xa = ["id"], Ya = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ja = ["for"], Qa = ["required", "name", "id", "type", "placeholder"], eo = { class: "gl-span-form-error" }, to = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Pd = {
|
|
3106
3106
|
__name: "GlTextarea",
|
|
3107
3107
|
props: {
|
|
3108
3108
|
is_required: {
|
|
@@ -3148,20 +3148,20 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3148
3148
|
},
|
|
3149
3149
|
emits: ["update:modelValue", "keydown"],
|
|
3150
3150
|
setup(e, { expose: t, emit: r }) {
|
|
3151
|
-
const n = e,
|
|
3151
|
+
const n = e, o = r, a = O(null);
|
|
3152
3152
|
return F(() => {
|
|
3153
|
-
|
|
3154
|
-
}), t({ focus: () =>
|
|
3153
|
+
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);
|
|
3154
|
+
}), t({ focus: () => a.value.focus() }), (l, i) => (d(), u(v, null, [
|
|
3155
3155
|
e.show ? (d(), u("div", {
|
|
3156
3156
|
key: 0,
|
|
3157
3157
|
class: p(e.field_name)
|
|
3158
3158
|
}, [
|
|
3159
|
-
s("h3",
|
|
3159
|
+
s("h3", Wa, h(e.label_name), 1),
|
|
3160
3160
|
s("p", {
|
|
3161
3161
|
id: e.field_name,
|
|
3162
3162
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
3163
|
-
}, h(e.model_value), 9,
|
|
3164
|
-
|
|
3163
|
+
}, h(e.model_value), 9, Xa),
|
|
3164
|
+
Ya
|
|
3165
3165
|
], 2)) : g("", !0),
|
|
3166
3166
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3167
3167
|
key: 1,
|
|
@@ -3174,7 +3174,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3174
3174
|
required: e.is_required
|
|
3175
3175
|
}),
|
|
3176
3176
|
for: e.field_name
|
|
3177
|
-
}, h(e.label_name), 11,
|
|
3177
|
+
}, h(e.label_name), 11, Ja),
|
|
3178
3178
|
s("textarea", {
|
|
3179
3179
|
required: e.is_required,
|
|
3180
3180
|
name: e.field_name,
|
|
@@ -3186,16 +3186,16 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3186
3186
|
type: e.type,
|
|
3187
3187
|
onInput: i[0] || (i[0] = (c) => l.$emit("update:modelValue", c.target.value)),
|
|
3188
3188
|
ref_key: "input",
|
|
3189
|
-
ref:
|
|
3189
|
+
ref: a,
|
|
3190
3190
|
rows: "4",
|
|
3191
3191
|
placeholder: e.place_holder
|
|
3192
|
-
}, null, 42,
|
|
3193
|
-
s("span",
|
|
3194
|
-
s("small",
|
|
3192
|
+
}, null, 42, Qa),
|
|
3193
|
+
s("span", eo, h(e.error_message), 1),
|
|
3194
|
+
s("small", to, h(e.description), 1)
|
|
3195
3195
|
], 2))
|
|
3196
3196
|
], 64));
|
|
3197
3197
|
}
|
|
3198
|
-
},
|
|
3198
|
+
}, ro = {
|
|
3199
3199
|
emits: ["pagination-change-page"],
|
|
3200
3200
|
props: {
|
|
3201
3201
|
data: {
|
|
@@ -3247,9 +3247,9 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3247
3247
|
return 0;
|
|
3248
3248
|
if (this.limit === 0)
|
|
3249
3249
|
return this.lastPage;
|
|
3250
|
-
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r,
|
|
3251
|
-
(c === 1 || c === t || c >= n && c <
|
|
3252
|
-
return
|
|
3250
|
+
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r, o = e + r + 1, a = [], l = [], i, c = 1; c <= t; c++)
|
|
3251
|
+
(c === 1 || c === t || c >= n && c < o) && a.push(c);
|
|
3252
|
+
return a.forEach(function(f) {
|
|
3253
3253
|
i && (f - i === 2 ? l.push(i + 1) : f - i !== 1 && l.push("...")), l.push(f), i = f;
|
|
3254
3254
|
}), l;
|
|
3255
3255
|
}
|
|
@@ -3300,14 +3300,14 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3300
3300
|
})
|
|
3301
3301
|
});
|
|
3302
3302
|
}
|
|
3303
|
-
},
|
|
3303
|
+
}, so = {
|
|
3304
3304
|
compatConfig: {
|
|
3305
3305
|
MODE: 3
|
|
3306
3306
|
},
|
|
3307
3307
|
inheritAttrs: !1,
|
|
3308
3308
|
emits: ["pagination-change-page"],
|
|
3309
3309
|
components: {
|
|
3310
|
-
RenderlessPagination:
|
|
3310
|
+
RenderlessPagination: ro
|
|
3311
3311
|
},
|
|
3312
3312
|
props: {
|
|
3313
3313
|
data: {
|
|
@@ -3341,10 +3341,10 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3341
3341
|
},
|
|
3342
3342
|
mounted() {
|
|
3343
3343
|
}
|
|
3344
|
-
},
|
|
3344
|
+
}, no = { class: "flex flex-col items-center" }, ao = {
|
|
3345
3345
|
key: 0,
|
|
3346
3346
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
3347
|
-
},
|
|
3347
|
+
}, oo = { class: "font-semibold text-gray-900 dark:text-white" }, io = { class: "font-semibold text-gray-900 dark:text-white" }, lo = { class: "font-semibold text-gray-900 dark:text-white" }, uo = ["tabindex"], co = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), fo = /* @__PURE__ */ s("svg", {
|
|
3348
3348
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3349
3349
|
"aria-hidden": "true",
|
|
3350
3350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3358,7 +3358,7 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3358
3358
|
"stroke-width": "2",
|
|
3359
3359
|
d: "M5 1 1 5l4 4"
|
|
3360
3360
|
})
|
|
3361
|
-
], -1),
|
|
3361
|
+
], -1), ho = ["aria-current"], go = ["tabindex"], mo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), _o = /* @__PURE__ */ s("svg", {
|
|
3362
3362
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3363
3363
|
"aria-hidden": "true",
|
|
3364
3364
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3373,22 +3373,22 @@ const Cd = /* @__PURE__ */ D(en, [["render", oo], ["__scopeId", "data-v-a94f16a9
|
|
|
3373
3373
|
d: "m1 9 4-4-4-4"
|
|
3374
3374
|
})
|
|
3375
3375
|
], -1);
|
|
3376
|
-
function
|
|
3376
|
+
function po(e, t, r, n, o, a) {
|
|
3377
3377
|
const l = X("RenderlessPagination");
|
|
3378
3378
|
return d(), Z(l, {
|
|
3379
3379
|
data: r.data,
|
|
3380
3380
|
limit: r.limit,
|
|
3381
|
-
onPaginationChangePage:
|
|
3381
|
+
onPaginationChangePage: a.onPaginationChangePage
|
|
3382
3382
|
}, {
|
|
3383
3383
|
default: Y((i) => [
|
|
3384
|
-
s("div",
|
|
3385
|
-
i.computed.total > i.computed.perPage ? (d(), u("span",
|
|
3384
|
+
s("div", no, [
|
|
3385
|
+
i.computed.total > i.computed.perPage ? (d(), u("span", ao, [
|
|
3386
3386
|
w(" Showing "),
|
|
3387
|
-
s("span",
|
|
3387
|
+
s("span", oo, h(i.computed.from), 1),
|
|
3388
3388
|
w(" to "),
|
|
3389
|
-
s("span",
|
|
3389
|
+
s("span", io, h(i.computed.to), 1),
|
|
3390
3390
|
w(" of "),
|
|
3391
|
-
s("span",
|
|
3391
|
+
s("span", lo, h(i.computed.total), 1),
|
|
3392
3392
|
w(" Entries ")
|
|
3393
3393
|
])) : g("", !0),
|
|
3394
3394
|
i.computed.total > i.computed.perPage ? (d(), u("ul", K({ key: 1 }, e.$attrs, {
|
|
@@ -3410,10 +3410,10 @@ function pa(e, t, r, n, a, o) {
|
|
|
3410
3410
|
tabindex: !i.computed.prevPageUrl && -1
|
|
3411
3411
|
}, te(i.prevButtonEvents, !0)), [
|
|
3412
3412
|
A(e.$slots, "prev-nav", {}, () => [
|
|
3413
|
-
|
|
3414
|
-
|
|
3413
|
+
co,
|
|
3414
|
+
fo
|
|
3415
3415
|
])
|
|
3416
|
-
], 16,
|
|
3416
|
+
], 16, uo)
|
|
3417
3417
|
], 2)) : g("", !0),
|
|
3418
3418
|
(d(!0), u(v, null, $(i.computed.pageRange, (c, f) => (d(), u("li", {
|
|
3419
3419
|
class: p(["", { active: c == i.computed.currentPage }]),
|
|
@@ -3425,7 +3425,7 @@ function pa(e, t, r, n, a, o) {
|
|
|
3425
3425
|
}, te(i.pageButtonEvents(c), !0), {
|
|
3426
3426
|
"aria-current": c == i.computed.currentPage ? "page" : null,
|
|
3427
3427
|
class: c == i.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3428
|
-
}), h(c), 17,
|
|
3428
|
+
}), h(c), 17, ho)
|
|
3429
3429
|
], 2))), 128)),
|
|
3430
3430
|
i.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3431
3431
|
key: 1,
|
|
@@ -3438,10 +3438,10 @@ function pa(e, t, r, n, a, o) {
|
|
|
3438
3438
|
tabindex: !i.computed.nextPageUrl && -1
|
|
3439
3439
|
}, te(i.nextButtonEvents, !0)), [
|
|
3440
3440
|
A(e.$slots, "next-nav", {}, () => [
|
|
3441
|
-
|
|
3442
|
-
|
|
3441
|
+
mo,
|
|
3442
|
+
_o
|
|
3443
3443
|
])
|
|
3444
|
-
], 16,
|
|
3444
|
+
], 16, go)
|
|
3445
3445
|
], 2)) : g("", !0)
|
|
3446
3446
|
], 16)) : g("", !0)
|
|
3447
3447
|
])
|
|
@@ -3449,8 +3449,8 @@ function pa(e, t, r, n, a, o) {
|
|
|
3449
3449
|
_: 3
|
|
3450
3450
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3451
3451
|
}
|
|
3452
|
-
const
|
|
3453
|
-
components: { TailwindPagination:
|
|
3452
|
+
const bo = /* @__PURE__ */ D(so, [["render", po]]), yo = {
|
|
3453
|
+
components: { TailwindPagination: bo },
|
|
3454
3454
|
props: {
|
|
3455
3455
|
data: Array,
|
|
3456
3456
|
columns: Array,
|
|
@@ -3526,10 +3526,10 @@ const ba = /* @__PURE__ */ D(na, [["render", pa]]), ya = {
|
|
|
3526
3526
|
this.isMounted && e !== t && this.GetItemLists();
|
|
3527
3527
|
}
|
|
3528
3528
|
}
|
|
3529
|
-
},
|
|
3529
|
+
}, vo = { class: "p-2" }, xo = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, wo = { class: "flex items-center gap-2" }, ko = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), $o = { style: { "margin-top": "9px" } }, Co = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), So = /* @__PURE__ */ s("label", {
|
|
3530
3530
|
for: "table-search",
|
|
3531
3531
|
class: "sr-only"
|
|
3532
|
-
}, "Search", -1),
|
|
3532
|
+
}, "Search", -1), Oo = { class: "relative" }, Do = /* @__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" }, [
|
|
3533
3533
|
/* @__PURE__ */ s("svg", {
|
|
3534
3534
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3535
3535
|
"aria-hidden": "true",
|
|
@@ -3543,28 +3543,28 @@ const ba = /* @__PURE__ */ D(na, [["render", pa]]), ya = {
|
|
|
3543
3543
|
"clip-rule": "evenodd"
|
|
3544
3544
|
})
|
|
3545
3545
|
])
|
|
3546
|
-
], -1),
|
|
3546
|
+
], -1), Po = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Eo = { 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" }, jo = { 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" }, Ao = ["onClick"], Io = {
|
|
3547
3547
|
key: 0,
|
|
3548
3548
|
class: "ml-2"
|
|
3549
|
-
},
|
|
3549
|
+
}, To = {
|
|
3550
3550
|
key: 0,
|
|
3551
3551
|
class: "fa fa-arrow-up"
|
|
3552
|
-
},
|
|
3552
|
+
}, Mo = {
|
|
3553
3553
|
key: 1,
|
|
3554
3554
|
class: "fa fa-arrow-down"
|
|
3555
|
-
},
|
|
3556
|
-
function
|
|
3555
|
+
}, No = ["data-label"], Vo = { class: "overflow-auto max-h-40" }, Lo = { 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" };
|
|
3556
|
+
function Bo(e, t, r, n, o, a) {
|
|
3557
3557
|
const l = X("dropdown"), i = X("TailwindPagination");
|
|
3558
|
-
return d(), u("div",
|
|
3559
|
-
s("div",
|
|
3560
|
-
s("div",
|
|
3561
|
-
|
|
3562
|
-
s("div", $
|
|
3558
|
+
return d(), u("div", vo, [
|
|
3559
|
+
s("div", xo, [
|
|
3560
|
+
s("div", wo, [
|
|
3561
|
+
ko,
|
|
3562
|
+
s("div", $o, [
|
|
3563
3563
|
H(l, {
|
|
3564
3564
|
has_cancel: !1,
|
|
3565
|
-
options:
|
|
3566
|
-
modelValue:
|
|
3567
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) =>
|
|
3565
|
+
options: o.pageOptions,
|
|
3566
|
+
modelValue: o.perPage,
|
|
3567
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => o.perPage = c),
|
|
3568
3568
|
is_required: !1,
|
|
3569
3569
|
field_name: "perPage",
|
|
3570
3570
|
label_name: "",
|
|
@@ -3573,40 +3573,40 @@ function Ba(e, t, r, n, a, o) {
|
|
|
3573
3573
|
placeholder: "Please select an option"
|
|
3574
3574
|
}, null, 8, ["options", "modelValue"])
|
|
3575
3575
|
]),
|
|
3576
|
-
|
|
3576
|
+
Co
|
|
3577
3577
|
]),
|
|
3578
|
-
|
|
3579
|
-
s("div",
|
|
3580
|
-
|
|
3578
|
+
So,
|
|
3579
|
+
s("div", Oo, [
|
|
3580
|
+
Do,
|
|
3581
3581
|
P(s("input", {
|
|
3582
3582
|
type: "text",
|
|
3583
|
-
"onUpdate:modelValue": t[1] || (t[1] = (c) =>
|
|
3584
|
-
onInput: t[2] || (t[2] = (c) =>
|
|
3583
|
+
"onUpdate:modelValue": t[1] || (t[1] = (c) => o.search = c),
|
|
3584
|
+
onInput: t[2] || (t[2] = (c) => a.handleSearch()),
|
|
3585
3585
|
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",
|
|
3586
3586
|
placeholder: "Search ..."
|
|
3587
3587
|
}, null, 544), [
|
|
3588
|
-
[V,
|
|
3588
|
+
[V, o.search]
|
|
3589
3589
|
])
|
|
3590
3590
|
])
|
|
3591
3591
|
]),
|
|
3592
|
-
s("div",
|
|
3593
|
-
s("table",
|
|
3594
|
-
s("thead",
|
|
3592
|
+
s("div", Po, [
|
|
3593
|
+
s("table", Eo, [
|
|
3594
|
+
s("thead", jo, [
|
|
3595
3595
|
s("tr", null, [
|
|
3596
3596
|
(d(!0), u(v, null, $(r.columns, (c, f) => (d(), u("th", {
|
|
3597
3597
|
key: f,
|
|
3598
|
-
onClick: (m) =>
|
|
3598
|
+
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3599
3599
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3600
3600
|
}, [
|
|
3601
3601
|
w(h(c.field_label) + " ", 1),
|
|
3602
|
-
|
|
3603
|
-
|
|
3602
|
+
o.sortField === c.field_name ? (d(), u("span", Io, [
|
|
3603
|
+
o.sortOrder === "asc" ? (d(), u("i", To)) : (d(), u("i", Mo))
|
|
3604
3604
|
])) : g("", !0)
|
|
3605
|
-
], 8,
|
|
3605
|
+
], 8, Ao))), 128))
|
|
3606
3606
|
])
|
|
3607
3607
|
]),
|
|
3608
3608
|
s("tbody", null, [
|
|
3609
|
-
(d(!0), u(v, null, $(
|
|
3609
|
+
(d(!0), u(v, null, $(o.itemLists.data, (c, f) => (d(), u("tr", {
|
|
3610
3610
|
key: f,
|
|
3611
3611
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3612
3612
|
}, [
|
|
@@ -3615,36 +3615,36 @@ function Ba(e, t, r, n, a, o) {
|
|
|
3615
3615
|
"data-label": m.field_label,
|
|
3616
3616
|
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"
|
|
3617
3617
|
}, [
|
|
3618
|
-
s("div",
|
|
3619
|
-
m.tdComp ? (d(), Z(se(
|
|
3618
|
+
s("div", Vo, [
|
|
3619
|
+
m.tdComp ? (d(), Z(se(a.forDynCompIs(m.tdComp)), {
|
|
3620
3620
|
key: 0,
|
|
3621
3621
|
row: c,
|
|
3622
3622
|
field: m.field_name,
|
|
3623
3623
|
xprops: r.xprops,
|
|
3624
3624
|
tdProps: m.tdProps,
|
|
3625
|
-
onDeleteAction: t[3] || (t[3] = (x) =>
|
|
3625
|
+
onDeleteAction: t[3] || (t[3] = (x) => a.GetItemLists())
|
|
3626
3626
|
}, null, 40, ["row", "field", "xprops", "tdProps"])) : (d(), u(v, { key: 1 }, [
|
|
3627
3627
|
w(h(c[m.field_name]), 1)
|
|
3628
3628
|
], 64))
|
|
3629
3629
|
])
|
|
3630
|
-
], 8,
|
|
3630
|
+
], 8, No))), 128))
|
|
3631
3631
|
]))), 128))
|
|
3632
3632
|
])
|
|
3633
3633
|
])
|
|
3634
3634
|
]),
|
|
3635
|
-
s("div",
|
|
3635
|
+
s("div", Lo, [
|
|
3636
3636
|
H(i, {
|
|
3637
3637
|
class: "mt-3 mb-0",
|
|
3638
|
-
data:
|
|
3639
|
-
limit:
|
|
3640
|
-
size:
|
|
3641
|
-
align:
|
|
3642
|
-
onPaginationChangePage:
|
|
3638
|
+
data: o.itemLists,
|
|
3639
|
+
limit: o.limit,
|
|
3640
|
+
size: o.size,
|
|
3641
|
+
align: o.align,
|
|
3642
|
+
onPaginationChangePage: a.GetItemLists
|
|
3643
3643
|
}, null, 8, ["data", "limit", "size", "align", "onPaginationChangePage"])
|
|
3644
3644
|
])
|
|
3645
3645
|
]);
|
|
3646
3646
|
}
|
|
3647
|
-
const Ed = /* @__PURE__ */ D(
|
|
3647
|
+
const Ed = /* @__PURE__ */ D(yo, [["render", Bo]]), Go = {
|
|
3648
3648
|
components: {},
|
|
3649
3649
|
props: {
|
|
3650
3650
|
data: Array,
|
|
@@ -3741,10 +3741,10 @@ const Ed = /* @__PURE__ */ D(ya, [["render", Ba]]), Ga = {
|
|
|
3741
3741
|
mounted() {
|
|
3742
3742
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3743
3743
|
}
|
|
3744
|
-
},
|
|
3744
|
+
}, Fo = { class: "p-2" }, Ro = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Uo = { class: "flex items-center gap-2" }, qo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), zo = { style: { "margin-top": "9px" } }, Ho = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Zo = /* @__PURE__ */ s("label", {
|
|
3745
3745
|
for: "table-search",
|
|
3746
3746
|
class: "sr-only"
|
|
3747
|
-
}, "Search", -1),
|
|
3747
|
+
}, "Search", -1), Ko = { class: "relative" }, Wo = /* @__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" }, [
|
|
3748
3748
|
/* @__PURE__ */ s("svg", {
|
|
3749
3749
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3750
3750
|
"aria-hidden": "true",
|
|
@@ -3758,10 +3758,10 @@ const Ed = /* @__PURE__ */ D(ya, [["render", Ba]]), Ga = {
|
|
|
3758
3758
|
"clip-rule": "evenodd"
|
|
3759
3759
|
})
|
|
3760
3760
|
])
|
|
3761
|
-
], -1),
|
|
3761
|
+
], -1), Xo = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Yo = { 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" }, Jo = { 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" }, Qo = ["onClick"], ei = {
|
|
3762
3762
|
key: 0,
|
|
3763
3763
|
class: "ml-2"
|
|
3764
|
-
}, ti = ["data-label"], ri = ["innerHTML"], si = { 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" }, ni = { class: "flex justify-between flex-1 sm:hidden" },
|
|
3764
|
+
}, ti = ["data-label"], ri = ["innerHTML"], si = { 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" }, ni = { class: "flex justify-between flex-1 sm:hidden" }, ai = ["disabled"], oi = ["disabled"], ii = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, li = { class: "text-sm text-gray-700 dark:text-gray-400" }, di = { class: "font-medium" }, ui = { class: "font-medium" }, ci = { class: "font-medium" }, fi = { "aria-label": "Page navigation" }, hi = { class: "flex items-center h-8 -space-x-px text-sm" }, gi = ["disabled"], mi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), _i = /* @__PURE__ */ s("svg", {
|
|
3765
3765
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3766
3766
|
"aria-hidden": "true",
|
|
3767
3767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3796,18 +3796,18 @@ const Ed = /* @__PURE__ */ D(ya, [["render", Ba]]), Ga = {
|
|
|
3796
3796
|
xi,
|
|
3797
3797
|
wi
|
|
3798
3798
|
];
|
|
3799
|
-
function $i(e, t, r, n,
|
|
3799
|
+
function $i(e, t, r, n, o, a) {
|
|
3800
3800
|
const l = X("dropdown");
|
|
3801
|
-
return d(), u("div",
|
|
3802
|
-
s("div",
|
|
3803
|
-
s("div",
|
|
3804
|
-
|
|
3805
|
-
s("div",
|
|
3801
|
+
return d(), u("div", Fo, [
|
|
3802
|
+
s("div", Ro, [
|
|
3803
|
+
s("div", Uo, [
|
|
3804
|
+
qo,
|
|
3805
|
+
s("div", zo, [
|
|
3806
3806
|
H(l, {
|
|
3807
3807
|
has_cancel: !1,
|
|
3808
|
-
options:
|
|
3809
|
-
modelValue:
|
|
3810
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) =>
|
|
3808
|
+
options: o.showNoOfEntries,
|
|
3809
|
+
modelValue: o.itemsPerPage,
|
|
3810
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => o.itemsPerPage = i),
|
|
3811
3811
|
is_required: !1,
|
|
3812
3812
|
field_name: "NoOfEntries",
|
|
3813
3813
|
label_name: "",
|
|
@@ -3816,37 +3816,37 @@ function $i(e, t, r, n, a, o) {
|
|
|
3816
3816
|
placeholder: "Please select an option"
|
|
3817
3817
|
}, null, 8, ["options", "modelValue"])
|
|
3818
3818
|
]),
|
|
3819
|
-
|
|
3819
|
+
Ho
|
|
3820
3820
|
]),
|
|
3821
|
-
|
|
3822
|
-
s("div",
|
|
3823
|
-
|
|
3821
|
+
Zo,
|
|
3822
|
+
s("div", Ko, [
|
|
3823
|
+
Wo,
|
|
3824
3824
|
P(s("input", {
|
|
3825
3825
|
type: "text",
|
|
3826
|
-
"onUpdate:modelValue": t[1] || (t[1] = (i) =>
|
|
3826
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => o.search = i),
|
|
3827
3827
|
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",
|
|
3828
3828
|
placeholder: "Search ..."
|
|
3829
3829
|
}, null, 512), [
|
|
3830
|
-
[V,
|
|
3830
|
+
[V, o.search]
|
|
3831
3831
|
])
|
|
3832
3832
|
])
|
|
3833
3833
|
]),
|
|
3834
|
-
s("div",
|
|
3835
|
-
s("table",
|
|
3836
|
-
s("thead",
|
|
3834
|
+
s("div", Xo, [
|
|
3835
|
+
s("table", Yo, [
|
|
3836
|
+
s("thead", Jo, [
|
|
3837
3837
|
s("tr", null, [
|
|
3838
3838
|
(d(!0), u(v, null, $(r.columns, (i, c) => (d(), u("th", {
|
|
3839
3839
|
key: c,
|
|
3840
|
-
onClick: (f) =>
|
|
3840
|
+
onClick: (f) => a.sort(i),
|
|
3841
3841
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3842
3842
|
}, [
|
|
3843
3843
|
w(h(i) + " ", 1),
|
|
3844
|
-
|
|
3845
|
-
], 8,
|
|
3844
|
+
o.sortKey === i ? (d(), u("span", ei, h(o.sortOrder === 1 ? "▲" : "▼"), 1)) : g("", !0)
|
|
3845
|
+
], 8, Qo))), 128))
|
|
3846
3846
|
])
|
|
3847
3847
|
]),
|
|
3848
3848
|
s("tbody", null, [
|
|
3849
|
-
(d(!0), u(v, null, $(
|
|
3849
|
+
(d(!0), u(v, null, $(a.paginatedData, (i, c) => (d(), u("tr", {
|
|
3850
3850
|
key: c,
|
|
3851
3851
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3852
3852
|
}, [
|
|
@@ -3868,26 +3868,26 @@ function $i(e, t, r, n, a, o) {
|
|
|
3868
3868
|
s("div", ni, [
|
|
3869
3869
|
s("a", {
|
|
3870
3870
|
href: "#",
|
|
3871
|
-
onClick: t[2] || (t[2] = (...i) =>
|
|
3872
|
-
disabled:
|
|
3871
|
+
onClick: t[2] || (t[2] = (...i) => a.previousPage && a.previousPage(...i)),
|
|
3872
|
+
disabled: o.currentPage === 1,
|
|
3873
3873
|
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"
|
|
3874
|
-
}, "Previous", 8,
|
|
3874
|
+
}, "Previous", 8, ai),
|
|
3875
3875
|
s("a", {
|
|
3876
3876
|
href: "#",
|
|
3877
|
-
onClick: t[3] || (t[3] = (...i) =>
|
|
3878
|
-
disabled:
|
|
3877
|
+
onClick: t[3] || (t[3] = (...i) => a.nextPage && a.nextPage(...i)),
|
|
3878
|
+
disabled: o.currentPage === a.totalPages,
|
|
3879
3879
|
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"
|
|
3880
|
-
}, "Next", 8,
|
|
3880
|
+
}, "Next", 8, oi)
|
|
3881
3881
|
]),
|
|
3882
3882
|
s("div", ii, [
|
|
3883
3883
|
s("div", null, [
|
|
3884
3884
|
s("p", li, [
|
|
3885
3885
|
w(" Showing "),
|
|
3886
|
-
s("span", di, h(
|
|
3886
|
+
s("span", di, h(a.firstItemIndex), 1),
|
|
3887
3887
|
w(" to "),
|
|
3888
|
-
s("span", ui, h(
|
|
3888
|
+
s("span", ui, h(a.lastItemIndex), 1),
|
|
3889
3889
|
w(" of "),
|
|
3890
|
-
s("span", ci, h(
|
|
3890
|
+
s("span", ci, h(a.filteredData.length), 1),
|
|
3891
3891
|
w(" entries ")
|
|
3892
3892
|
])
|
|
3893
3893
|
]),
|
|
@@ -3897,25 +3897,25 @@ function $i(e, t, r, n, a, o) {
|
|
|
3897
3897
|
s("li", null, [
|
|
3898
3898
|
s("a", {
|
|
3899
3899
|
href: "#",
|
|
3900
|
-
onClick: t[4] || (t[4] = (...i) =>
|
|
3901
|
-
disabled:
|
|
3900
|
+
onClick: t[4] || (t[4] = (...i) => a.previousPage && a.previousPage(...i)),
|
|
3901
|
+
disabled: o.currentPage === 1,
|
|
3902
3902
|
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"
|
|
3903
3903
|
}, pi, 8, gi)
|
|
3904
3904
|
]),
|
|
3905
|
-
(d(!0), u(v, null, $(
|
|
3905
|
+
(d(!0), u(v, null, $(a.displayedPageNumbers, (i) => (d(), u(v, { key: i }, [
|
|
3906
3906
|
s("li", null, [
|
|
3907
|
-
|
|
3907
|
+
o.currentPage !== i ? (d(), u("a", {
|
|
3908
3908
|
key: 0,
|
|
3909
3909
|
href: "#",
|
|
3910
|
-
onClick: (c) =>
|
|
3910
|
+
onClick: (c) => a.goToPage(i),
|
|
3911
3911
|
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"
|
|
3912
3912
|
}, h(i), 9, bi)) : g("", !0)
|
|
3913
3913
|
]),
|
|
3914
3914
|
s("li", null, [
|
|
3915
|
-
|
|
3915
|
+
o.currentPage === i ? (d(), u("a", {
|
|
3916
3916
|
key: 0,
|
|
3917
3917
|
href: "#",
|
|
3918
|
-
onClick: (c) =>
|
|
3918
|
+
onClick: (c) => a.goToPage(i),
|
|
3919
3919
|
"aria-current": "page",
|
|
3920
3920
|
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"
|
|
3921
3921
|
}, h(i), 9, yi)) : g("", !0)
|
|
@@ -3924,8 +3924,8 @@ function $i(e, t, r, n, a, o) {
|
|
|
3924
3924
|
s("li", null, [
|
|
3925
3925
|
s("a", {
|
|
3926
3926
|
href: "#",
|
|
3927
|
-
onClick: t[5] || (t[5] = (...i) =>
|
|
3928
|
-
disabled:
|
|
3927
|
+
onClick: t[5] || (t[5] = (...i) => a.nextPage && a.nextPage(...i)),
|
|
3928
|
+
disabled: o.currentPage === a.totalPages,
|
|
3929
3929
|
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"
|
|
3930
3930
|
}, ki, 8, vi)
|
|
3931
3931
|
])
|
|
@@ -3936,7 +3936,7 @@ function $i(e, t, r, n, a, o) {
|
|
|
3936
3936
|
])
|
|
3937
3937
|
]);
|
|
3938
3938
|
}
|
|
3939
|
-
const jd = /* @__PURE__ */ D(
|
|
3939
|
+
const jd = /* @__PURE__ */ D(Go, [["render", $i]]), Ci = {
|
|
3940
3940
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
3941
3941
|
role: "alert"
|
|
3942
3942
|
}, Si = {
|
|
@@ -4016,13 +4016,13 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4016
4016
|
setTimeout(() => n("remove"), r.duration);
|
|
4017
4017
|
});
|
|
4018
4018
|
const n = t;
|
|
4019
|
-
return (
|
|
4019
|
+
return (o, a) => (d(), u("div", Ci, [
|
|
4020
4020
|
r.type === "success" ? (d(), u("div", Si, Pi)) : g("", !0),
|
|
4021
4021
|
r.type === "error" ? (d(), u("div", Ei, Ii)) : g("", !0),
|
|
4022
4022
|
r.type === "warning" ? (d(), u("div", Ti, Vi)) : g("", !0),
|
|
4023
4023
|
s("div", Li, h(r.message), 1),
|
|
4024
4024
|
s("button", {
|
|
4025
|
-
onClick:
|
|
4025
|
+
onClick: a[0] || (a[0] = (l) => n("remove")),
|
|
4026
4026
|
type: "button",
|
|
4027
4027
|
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",
|
|
4028
4028
|
"data-dismiss-target": "#toast-default",
|
|
@@ -4030,11 +4030,11 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4030
4030
|
}, Fi)
|
|
4031
4031
|
]));
|
|
4032
4032
|
}
|
|
4033
|
-
},
|
|
4033
|
+
}, oe = we({
|
|
4034
4034
|
items: []
|
|
4035
4035
|
}), Ui = {
|
|
4036
4036
|
add(e) {
|
|
4037
|
-
|
|
4037
|
+
oe.items.unshift({
|
|
4038
4038
|
key: Symbol(),
|
|
4039
4039
|
message: e.message,
|
|
4040
4040
|
type: e.type,
|
|
@@ -4042,10 +4042,10 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4042
4042
|
});
|
|
4043
4043
|
},
|
|
4044
4044
|
remove(e) {
|
|
4045
|
-
|
|
4045
|
+
oe.items.splice(e, 1);
|
|
4046
4046
|
}
|
|
4047
4047
|
}, ve = {
|
|
4048
|
-
state:
|
|
4048
|
+
state: oe,
|
|
4049
4049
|
methods: Ui
|
|
4050
4050
|
}, Ad = {
|
|
4051
4051
|
__name: "GlToastList",
|
|
@@ -4062,12 +4062,12 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4062
4062
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4063
4063
|
}, {
|
|
4064
4064
|
default: Y(() => [
|
|
4065
|
-
(d(!0), u(v, null, $(nt(ve).state.items, (
|
|
4066
|
-
key:
|
|
4067
|
-
message:
|
|
4068
|
-
type:
|
|
4069
|
-
duration:
|
|
4070
|
-
onRemove: (l) => t(
|
|
4065
|
+
(d(!0), u(v, null, $(nt(ve).state.items, (o, a) => (d(), Z(Ri, {
|
|
4066
|
+
key: o.key,
|
|
4067
|
+
message: o.message,
|
|
4068
|
+
type: o.type,
|
|
4069
|
+
duration: o.duration,
|
|
4070
|
+
onRemove: (l) => t(a)
|
|
4071
4071
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
4072
4072
|
]),
|
|
4073
4073
|
_: 1
|
|
@@ -4115,14 +4115,14 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4115
4115
|
},
|
|
4116
4116
|
emits: ["deleteAction"],
|
|
4117
4117
|
setup(e, { emit: t }) {
|
|
4118
|
-
const r = Se(), n = e,
|
|
4119
|
-
|
|
4118
|
+
const r = Se(), n = e, o = O(!1), a = O(!1), l = () => {
|
|
4119
|
+
o.value = !1;
|
|
4120
4120
|
}, i = () => {
|
|
4121
|
-
|
|
4121
|
+
o.value = !0;
|
|
4122
4122
|
}, c = () => {
|
|
4123
|
-
|
|
4123
|
+
a.value = !1;
|
|
4124
4124
|
}, f = () => {
|
|
4125
|
-
|
|
4125
|
+
a.value = !0;
|
|
4126
4126
|
}, m = t, y = () => {
|
|
4127
4127
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
4128
4128
|
c(), m("deleteAction"), r.commit("notification/SHOW_NOTIFICATION", {
|
|
@@ -4138,7 +4138,7 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4138
4138
|
const L = ke("click-outside");
|
|
4139
4139
|
return d(), u(v, null, [
|
|
4140
4140
|
H(ie, {
|
|
4141
|
-
isOpen:
|
|
4141
|
+
isOpen: a.value,
|
|
4142
4142
|
onConfirmDelete: y,
|
|
4143
4143
|
onCancelDelete: c
|
|
4144
4144
|
}, null, 8, ["isOpen"]),
|
|
@@ -4171,7 +4171,7 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4171
4171
|
])) : g("", !0)
|
|
4172
4172
|
])
|
|
4173
4173
|
], 512), [
|
|
4174
|
-
[G,
|
|
4174
|
+
[G, o.value]
|
|
4175
4175
|
])
|
|
4176
4176
|
])), [
|
|
4177
4177
|
[L, l]
|
|
@@ -4195,7 +4195,7 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4195
4195
|
], sl = { class: "absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, nl = {
|
|
4196
4196
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4197
4197
|
"aria-labelledby": "dropdownDividerButton"
|
|
4198
|
-
},
|
|
4198
|
+
}, al = { key: 0 }, ol = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Td = {
|
|
4199
4199
|
__name: "DatatableDeleteAction",
|
|
4200
4200
|
props: {
|
|
4201
4201
|
field: {
|
|
@@ -4221,14 +4221,14 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4221
4221
|
},
|
|
4222
4222
|
emits: ["deleteAction"],
|
|
4223
4223
|
setup(e, { emit: t }) {
|
|
4224
|
-
const r = Se(), n = e,
|
|
4225
|
-
|
|
4224
|
+
const r = Se(), n = e, o = O(!1), a = O(!1), l = () => {
|
|
4225
|
+
o.value = !1;
|
|
4226
4226
|
}, i = () => {
|
|
4227
|
-
|
|
4227
|
+
o.value = !0;
|
|
4228
4228
|
}, c = () => {
|
|
4229
|
-
|
|
4229
|
+
a.value = !1;
|
|
4230
4230
|
}, f = () => {
|
|
4231
|
-
|
|
4231
|
+
a.value = !0;
|
|
4232
4232
|
}, m = t, y = () => {
|
|
4233
4233
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
4234
4234
|
c(), m("deleteAction"), r.commit("notification/SHOW_NOTIFICATION", {
|
|
@@ -4244,7 +4244,7 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4244
4244
|
const L = ke("click-outside");
|
|
4245
4245
|
return d(), u(v, null, [
|
|
4246
4246
|
H(ie, {
|
|
4247
|
-
isOpen:
|
|
4247
|
+
isOpen: a.value,
|
|
4248
4248
|
onConfirmDelete: y,
|
|
4249
4249
|
onCancelDelete: c
|
|
4250
4250
|
}, null, 8, ["isOpen"]),
|
|
@@ -4256,19 +4256,19 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4256
4256
|
}, rl),
|
|
4257
4257
|
P(s("div", sl, [
|
|
4258
4258
|
s("ul", nl, [
|
|
4259
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4259
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", al, [
|
|
4260
4260
|
s("a", {
|
|
4261
4261
|
href: "#",
|
|
4262
4262
|
onClick: M(f, ["prevent"]),
|
|
4263
4263
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4264
4264
|
}, [
|
|
4265
|
-
|
|
4265
|
+
ol,
|
|
4266
4266
|
w(" Remove")
|
|
4267
4267
|
])
|
|
4268
4268
|
])) : g("", !0)
|
|
4269
4269
|
])
|
|
4270
4270
|
], 512), [
|
|
4271
|
-
[G,
|
|
4271
|
+
[G, o.value]
|
|
4272
4272
|
])
|
|
4273
4273
|
])), [
|
|
4274
4274
|
[L, l]
|
|
@@ -4330,9 +4330,9 @@ const jd = /* @__PURE__ */ D(Ga, [["render", $i]]), Ci = {
|
|
|
4330
4330
|
"clip-rule": "evenodd"
|
|
4331
4331
|
})
|
|
4332
4332
|
], -1);
|
|
4333
|
-
function hl(e, t, r, n,
|
|
4333
|
+
function hl(e, t, r, n, o, a) {
|
|
4334
4334
|
return d(), u("div", null, [
|
|
4335
|
-
|
|
4335
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row, (l, i) => (d(), u("div", {
|
|
4336
4336
|
key: i,
|
|
4337
4337
|
class: "m-1 d-inline-block"
|
|
4338
4338
|
}, [
|
|
@@ -4345,7 +4345,7 @@ function hl(e, t, r, n, a, o) {
|
|
|
4345
4345
|
dl,
|
|
4346
4346
|
w(" Download ")
|
|
4347
4347
|
], 8, ll)
|
|
4348
|
-
]))), 128)) :
|
|
4348
|
+
]))), 128)) : a.isString ? (d(), u("div", ul, [
|
|
4349
4349
|
s("a", {
|
|
4350
4350
|
href: r.row,
|
|
4351
4351
|
title: r.row,
|
|
@@ -4406,9 +4406,9 @@ const Md = /* @__PURE__ */ D(il, [["render", hl]]), gl = {
|
|
|
4406
4406
|
"clip-rule": "evenodd"
|
|
4407
4407
|
})
|
|
4408
4408
|
], -1);
|
|
4409
|
-
function vl(e, t, r, n,
|
|
4409
|
+
function vl(e, t, r, n, o, a) {
|
|
4410
4410
|
return d(), u("div", null, [
|
|
4411
|
-
|
|
4411
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row[r.field], (l) => (d(), u("div", {
|
|
4412
4412
|
key: l.id,
|
|
4413
4413
|
class: "m-1 d-inline-block"
|
|
4414
4414
|
}, [
|
|
@@ -4421,7 +4421,7 @@ function vl(e, t, r, n, a, o) {
|
|
|
4421
4421
|
_l,
|
|
4422
4422
|
w(" Download ")
|
|
4423
4423
|
], 8, ml)
|
|
4424
|
-
]))), 128)) :
|
|
4424
|
+
]))), 128)) : a.isObject ? (d(), u("div", pl, [
|
|
4425
4425
|
s("a", {
|
|
4426
4426
|
href: r.row[r.field].url,
|
|
4427
4427
|
title: r.row[r.field].name,
|
|
@@ -4437,7 +4437,7 @@ function vl(e, t, r, n, a, o) {
|
|
|
4437
4437
|
const Nd = /* @__PURE__ */ D(gl, [["render", vl]]), xl = {
|
|
4438
4438
|
props: ["field", "row", "tdProps"]
|
|
4439
4439
|
}, wl = { key: 0 }, kl = ["innerHTML"];
|
|
4440
|
-
function $l(e, t, r, n,
|
|
4440
|
+
function $l(e, t, r, n, o, a) {
|
|
4441
4441
|
return r.row[r.field] ? (d(), u("div", wl, [
|
|
4442
4442
|
s("div", {
|
|
4443
4443
|
class: "w-full",
|
|
@@ -4450,7 +4450,7 @@ const Vd = /* @__PURE__ */ D(xl, [["render", $l]]), Cl = {
|
|
|
4450
4450
|
computed: {
|
|
4451
4451
|
entry() {
|
|
4452
4452
|
const [e, t] = this.field.split(".");
|
|
4453
|
-
return
|
|
4453
|
+
return at({ key: e, field: t });
|
|
4454
4454
|
},
|
|
4455
4455
|
isArray() {
|
|
4456
4456
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -4463,18 +4463,18 @@ const Vd = /* @__PURE__ */ D(xl, [["render", $l]]), Cl = {
|
|
|
4463
4463
|
key: 1,
|
|
4464
4464
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4465
4465
|
};
|
|
4466
|
-
function Dl(e, t, r, n,
|
|
4466
|
+
function Dl(e, t, r, n, o, a) {
|
|
4467
4467
|
return d(), u("div", Sl, [
|
|
4468
|
-
|
|
4468
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row[a.entry.key], (l, i) => (d(), u("span", {
|
|
4469
4469
|
key: i,
|
|
4470
4470
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4471
|
-
}, h(l[
|
|
4471
|
+
}, h(l[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Ol, h(r.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4472
4472
|
]);
|
|
4473
4473
|
}
|
|
4474
4474
|
const Ld = /* @__PURE__ */ D(Cl, [["render", Dl]]), Pl = {
|
|
4475
4475
|
props: ["field", "row", "tdProps"]
|
|
4476
4476
|
}, El = { key: 0 }, jl = { class: "m-1 d-inline-block" }, Al = ["href", "title"], Il = ["src", "alt", "title"];
|
|
4477
|
-
function Tl(e, t, r, n,
|
|
4477
|
+
function Tl(e, t, r, n, o, a) {
|
|
4478
4478
|
return r.row[r.field] ? (d(), u("div", El, [
|
|
4479
4479
|
s("div", jl, [
|
|
4480
4480
|
s("a", {
|
|
@@ -4505,12 +4505,12 @@ const Bd = /* @__PURE__ */ D(Pl, [["render", Tl], ["__scopeId", "data-v-3a28c02c
|
|
|
4505
4505
|
key: 1,
|
|
4506
4506
|
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"
|
|
4507
4507
|
}, Gl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4508
|
-
function Fl(e, t, r, n,
|
|
4508
|
+
function Fl(e, t, r, n, o, a) {
|
|
4509
4509
|
return d(), u("div", Nl, [
|
|
4510
|
-
|
|
4510
|
+
a.isActive ? (d(), u("span", Vl, [
|
|
4511
4511
|
Ll,
|
|
4512
4512
|
w(" Active ")
|
|
4513
|
-
])) :
|
|
4513
|
+
])) : a.isActive ? g("", !0) : (d(), u("span", Bl, [
|
|
4514
4514
|
Gl,
|
|
4515
4515
|
w(" Inactive ")
|
|
4516
4516
|
]))
|
|
@@ -4537,21 +4537,21 @@ const Gd = /* @__PURE__ */ D(Ml, [["render", Fl]]), Rl = {
|
|
|
4537
4537
|
key: 3,
|
|
4538
4538
|
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"
|
|
4539
4539
|
}, Yl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1);
|
|
4540
|
-
function Jl(e, t, r, n,
|
|
4540
|
+
function Jl(e, t, r, n, o, a) {
|
|
4541
4541
|
return d(), u("div", Ul, [
|
|
4542
|
-
|
|
4542
|
+
a.hasLabelColor == "green" ? (d(), u("span", ql, [
|
|
4543
4543
|
zl,
|
|
4544
4544
|
w(" " + h(this.row[this.field]), 1)
|
|
4545
4545
|
])) : g("", !0),
|
|
4546
|
-
|
|
4546
|
+
a.hasLabelColor == "red" ? (d(), u("span", Hl, [
|
|
4547
4547
|
Zl,
|
|
4548
4548
|
w(" " + h(this.row[this.field]), 1)
|
|
4549
4549
|
])) : g("", !0),
|
|
4550
|
-
|
|
4550
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", Kl, [
|
|
4551
4551
|
Wl,
|
|
4552
4552
|
w(" " + h(this.row[this.field]), 1)
|
|
4553
4553
|
])) : g("", !0),
|
|
4554
|
-
|
|
4554
|
+
a.hasLabelColor == "default" ? (d(), u("span", Xl, [
|
|
4555
4555
|
Yl,
|
|
4556
4556
|
w(" " + h(this.row[this.field]), 1)
|
|
4557
4557
|
])) : g("", !0)
|
|
@@ -4578,15 +4578,15 @@ const Fd = /* @__PURE__ */ D(Rl, [["render", Jl]]), Ql = {
|
|
|
4578
4578
|
}, null, -1), sd = /* @__PURE__ */ s("span", {
|
|
4579
4579
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4580
4580
|
"aria-hidden": "true"
|
|
4581
|
-
}, "", -1), nd = { 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" },
|
|
4582
|
-
function cd(e, t, r, n,
|
|
4581
|
+
}, "", -1), nd = { 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" }, ad = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, od = { class: "sm:flex sm:items-start" }, id = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, ld = { class: "text-lg font-medium leading-6 text-gray-900" }, dd = { class: "mt-2" }, ud = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4582
|
+
function cd(e, t, r, n, o, a) {
|
|
4583
4583
|
return r.isOpen ? (d(), u("div", ed, [
|
|
4584
4584
|
s("div", td, [
|
|
4585
4585
|
rd,
|
|
4586
4586
|
sd,
|
|
4587
4587
|
s("div", nd, [
|
|
4588
|
-
s("div",
|
|
4589
|
-
s("div",
|
|
4588
|
+
s("div", ad, [
|
|
4589
|
+
s("div", od, [
|
|
4590
4590
|
s("div", id, [
|
|
4591
4591
|
s("h3", ld, h(r.title), 1),
|
|
4592
4592
|
s("div", dd, [
|
|
@@ -4597,12 +4597,12 @@ function cd(e, t, r, n, a, o) {
|
|
|
4597
4597
|
]),
|
|
4598
4598
|
s("div", ud, [
|
|
4599
4599
|
s("button", {
|
|
4600
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
4600
|
+
onClick: t[0] || (t[0] = (...l) => a.confirmAction && a.confirmAction(...l)),
|
|
4601
4601
|
type: "button",
|
|
4602
4602
|
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"
|
|
4603
4603
|
}, h(r.button_text), 1),
|
|
4604
4604
|
s("button", {
|
|
4605
|
-
onClick: t[1] || (t[1] = (...l) =>
|
|
4605
|
+
onClick: t[1] || (t[1] = (...l) => a.cancelAction && a.cancelAction(...l)),
|
|
4606
4606
|
type: "button",
|
|
4607
4607
|
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"
|
|
4608
4608
|
}, " Cancel ")
|
|
@@ -4637,7 +4637,7 @@ export {
|
|
|
4637
4637
|
gd as GlNotify,
|
|
4638
4638
|
$d as GlTab,
|
|
4639
4639
|
kd as GlTabsWrapper,
|
|
4640
|
-
|
|
4640
|
+
bo as GlTailwindPagination,
|
|
4641
4641
|
wd as GlTextInput,
|
|
4642
4642
|
xd as GlTextTranslate,
|
|
4643
4643
|
Pd as GlTextarea,
|