golden-logic-ui 1.2.21 → 1.2.23

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.
Files changed (68) hide show
  1. package/dist/ConfirmationModal-i3ekouBw.js +75 -0
  2. package/dist/DatatableAction-D-Qdjj2W.js +113 -0
  3. package/dist/DatatableCommand-BoU5cYJg.js +18 -0
  4. package/dist/DatatableConvertCronToHuman-Coiaa-wa.js +82 -0
  5. package/dist/DatatableDate-DtEktp_Z.js +20 -0
  6. package/dist/DatatableDateTime-PEXV-bY7.js +22 -0
  7. package/dist/DatatableDeleteAction-BQ6MyhV6.js +104 -0
  8. package/dist/DatatableDeleteEditAction-Cx324OUt.js +125 -0
  9. package/dist/DatatableFileDownload-BxP2_lpQ.js +87 -0
  10. package/dist/DatatableFiles-BROH3vBH.js +80 -0
  11. package/dist/DatatableHtml-ChZzeapg.js +17 -0
  12. package/dist/DatatableList-BSVI22pu.js +35 -0
  13. package/dist/DatatableListNested-BWEqWRCc.js +37 -0
  14. package/dist/DatatablePicture-DaWD4uIX.js +26 -0
  15. package/dist/DatatablePictures-xxeghKp3.js +39 -0
  16. package/dist/DatatableStatus-Dx60sa7s.js +31 -0
  17. package/dist/DatatableStatusGeneral-UOub65UY.js +59 -0
  18. package/dist/DatatableStatusServer-Dcq11U5_.js +37 -0
  19. package/dist/DatatableStatusSpecficColor-BYUuGgEb.js +64 -0
  20. package/dist/DatatableStatusTextLabelGeneral-J4MytOnh.js +83 -0
  21. package/dist/DeleteConfirmationModal-CQ07_qiL.js +96 -0
  22. package/dist/DynamicConfirmation-rEhA3jCe.js +115 -0
  23. package/dist/FilesUpload-JKyOru3A.js +300 -0
  24. package/dist/GLButton-ByIDh6vq.js +118 -0
  25. package/dist/GLDataTable-Bixwkdr4.js +278 -0
  26. package/dist/GLDataTableServerSide-Ra5AqDGB.js +16336 -0
  27. package/dist/GLTextarea-j7XXWI7A.js +110 -0
  28. package/dist/GlAccordion-BIAfvctc.js +91 -0
  29. package/dist/GlAccordionsWrapper-DsdunDzi.js +31 -0
  30. package/dist/GlCard-BVXmTv6q.js +37 -0
  31. package/dist/GlCodeCopy-C068yRcM.js +86 -0
  32. package/dist/GlCodeMirror-Ow8TJYSN.js +161 -0
  33. package/dist/GlCodeMirrorTranslate-CFmoM7d6.js +2068 -0
  34. package/dist/GlDataTableComponent-CSsMcDcX.js +366 -0
  35. package/dist/GlDataTableServerSideGroupBy-cG4BhXOA.js +260 -0
  36. package/dist/GlDateRangePicker-BWAEfZTB.js +124 -0
  37. package/dist/GlDropdown-B_zVkmxO.js +414 -0
  38. package/dist/GlLanguageSelector-DmWuIxzK.js +68 -0
  39. package/dist/GlModal-AMtSRssu.js +123 -0
  40. package/dist/GlModalShow-BzbcLu51.js +120 -0
  41. package/dist/GlModalWithoutOverflow-vR50Ulka.js +127 -0
  42. package/dist/GlMultiItemSlide-CxsiUcTr.js +409 -0
  43. package/dist/GlMultiItemSlideDynamic-BhdHrj3L.js +434 -0
  44. package/dist/GlMultiSelectDropdown-OaAC5ouZ.js +383 -0
  45. package/dist/GlTab-CUbU0yit.js +22 -0
  46. package/dist/GlTabShow-BBU3VU7O.js +21 -0
  47. package/dist/GlTabsWrapper-Dw7NAgDw.js +54 -0
  48. package/dist/GlTextCopy-CGgnIqPh.js +93 -0
  49. package/dist/GlTextInput-CoL8oZSw.js +126 -0
  50. package/dist/GlTextInputFile-BE2maeRQ.js +95 -0
  51. package/dist/GlTextInputWithText-C6fzOoYl.js +116 -0
  52. package/dist/GlTextTranslate-C3DzCK6k.js +125 -0
  53. package/dist/GlTextareaTranslate-DyU86Wf_.js +126 -0
  54. package/dist/GlTinymce-CjsbThKo.js +118 -0
  55. package/dist/GlTinymceTranslate-vp6hYqDK.js +188 -0
  56. package/dist/GlToastList-eeZ0hUJQ.js +126 -0
  57. package/dist/GlToggleBox-Dym29cx5.js +120 -0
  58. package/dist/GlToggleBoxTrueFalse-CjvcXXTw.js +112 -0
  59. package/dist/StatusConnectingConnectedDisconnected-CK5YzyQH.js +63 -0
  60. package/dist/StatusRunningSuccessFailed-CxK20462.js +41 -0
  61. package/dist/TailwindPagination-Dz89aS_l.js +276 -0
  62. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  63. package/dist/golden-logic-ui.css +1 -1
  64. package/dist/golden-logic-ui.js +217 -94352
  65. package/dist/golden-logic-ui.umd.cjs +94 -94
  66. package/dist/index-B4V16SEr.js +15668 -0
  67. package/dist/plugin-D6yBFU6i.js +53226 -0
  68. package/package.json +1 -1
@@ -0,0 +1,80 @@
1
+ import { createElementBlock as i, createCommentVNode as o, openBlock as a, Fragment as s, renderList as u, createElementVNode as e, createTextVNode as n } from "vue";
2
+ import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const f = {
4
+ props: ["field", "row"],
5
+ computed: {
6
+ isArray() {
7
+ return Array.isArray(this.row[this.field]);
8
+ },
9
+ isObject() {
10
+ return typeof this.row[this.field] == "object";
11
+ }
12
+ }
13
+ }, h = ["href", "title"], b = {
14
+ key: 1,
15
+ class: "m-1 d-inline-block"
16
+ }, v = ["href", "title"];
17
+ function g(w, l, t, m, x, d) {
18
+ return d.isArray ? (a(!0), i(s, { key: 0 }, u(t.row[t.field], (r) => (a(), i("div", {
19
+ key: r.id,
20
+ class: "m-1 d-inline-block"
21
+ }, [
22
+ e("a", {
23
+ href: r.url,
24
+ title: r.name,
25
+ target: "_blank",
26
+ class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
27
+ }, l[0] || (l[0] = [
28
+ e("svg", {
29
+ class: "w-3 h-3 text-white me-2",
30
+ "aria-hidden": "true",
31
+ xmlns: "http://www.w3.org/2000/svg",
32
+ fill: "currentColor",
33
+ viewBox: "0 0 24 24"
34
+ }, [
35
+ e("path", {
36
+ "fill-rule": "evenodd",
37
+ d: "M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z",
38
+ "clip-rule": "evenodd"
39
+ }),
40
+ e("path", {
41
+ "fill-rule": "evenodd",
42
+ d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
43
+ "clip-rule": "evenodd"
44
+ })
45
+ ], -1),
46
+ n(" Download ")
47
+ ]), 8, h)
48
+ ]))), 128)) : d.isObject ? (a(), i("div", b, [
49
+ e("a", {
50
+ href: t.row[t.field].url,
51
+ title: t.row[t.field].name,
52
+ target: "_blank",
53
+ class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
54
+ }, l[1] || (l[1] = [
55
+ e("svg", {
56
+ class: "w-3 h-3 text-white me-2",
57
+ "aria-hidden": "true",
58
+ xmlns: "http://www.w3.org/2000/svg",
59
+ fill: "currentColor",
60
+ viewBox: "0 0 24 24"
61
+ }, [
62
+ e("path", {
63
+ "fill-rule": "evenodd",
64
+ d: "M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z",
65
+ "clip-rule": "evenodd"
66
+ }),
67
+ e("path", {
68
+ "fill-rule": "evenodd",
69
+ d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
70
+ "clip-rule": "evenodd"
71
+ })
72
+ ], -1),
73
+ n(" Download ")
74
+ ]), 8, v)
75
+ ])) : o("", !0);
76
+ }
77
+ const _ = /* @__PURE__ */ c(f, [["render", g]]);
78
+ export {
79
+ _ as default
80
+ };
@@ -0,0 +1,17 @@
1
+ import { createElementBlock as t, createCommentVNode as o, openBlock as n, createElementVNode as r } from "vue";
2
+ import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const l = {
4
+ props: ["field", "row", "tdProps"]
5
+ }, a = { key: 0 }, d = ["innerHTML"];
6
+ function i(s, _, e, f, m, u) {
7
+ return e.row[e.field] ? (n(), t("div", a, [
8
+ r("div", {
9
+ class: "w-full",
10
+ innerHTML: e.row[e.field]
11
+ }, null, 8, d)
12
+ ])) : o("", !0);
13
+ }
14
+ const h = /* @__PURE__ */ c(l, [["render", i]]);
15
+ export {
16
+ h as default
17
+ };
@@ -0,0 +1,35 @@
1
+ import { createElementBlock as t, createCommentVNode as d, openBlock as r, Fragment as o, renderList as u, toDisplayString as i, markRaw as c } from "vue";
2
+ import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const k = {
4
+ props: ["field", "row", "tdProps"],
5
+ computed: {
6
+ entry() {
7
+ const [s, a] = this.field.split(".");
8
+ return c({ key: s, field: a });
9
+ },
10
+ isArray() {
11
+ return Array.isArray(this.row[this.entry.key]);
12
+ },
13
+ isObject() {
14
+ return typeof this.row[this.entry.key] == "object";
15
+ }
16
+ }
17
+ }, m = {
18
+ key: 0,
19
+ class: "flex flex-wrap gap-2"
20
+ }, b = {
21
+ key: 1,
22
+ class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"
23
+ };
24
+ function x(s, a, n, p, _, e) {
25
+ return this.row[this.entry.key] ? (r(), t("div", m, [
26
+ e.isArray ? (r(!0), t(o, { key: 0 }, u(n.row[e.entry.key], (y, l) => (r(), t("span", {
27
+ key: l,
28
+ class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"
29
+ }, i(y[e.entry.field]), 1))), 128)) : e.isObject ? (r(), t("span", b, i(n.row[e.entry.key][e.entry.field]), 1)) : d("", !0)
30
+ ])) : d("", !0);
31
+ }
32
+ const g = /* @__PURE__ */ f(k, [["render", x]]);
33
+ export {
34
+ g as default
35
+ };
@@ -0,0 +1,37 @@
1
+ import { createElementBlock as a, openBlock as d, createCommentVNode as i, Fragment as y, renderList as o, toDisplayString as u } from "vue";
2
+ import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const m = {
4
+ props: ["field", "row", "tdProps"],
5
+ computed: {
6
+ entry() {
7
+ const t = this.field.split("."), r = t.pop();
8
+ return { keys: t, field: r };
9
+ },
10
+ isArray() {
11
+ return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
12
+ },
13
+ isObject() {
14
+ return typeof this.getNestedValue(this.row, this.entry.keys) == "object";
15
+ }
16
+ },
17
+ methods: {
18
+ getNestedValue(t, r) {
19
+ return r.reduce((s, l) => (s || {})[l], t);
20
+ }
21
+ }
22
+ }, b = { class: "flex flex-wrap gap-2" }, x = {
23
+ key: 1,
24
+ class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"
25
+ };
26
+ function k(t, r, s, l, p, e) {
27
+ return d(), a("div", b, [
28
+ e.isArray ? (d(!0), a(y, { key: 0 }, o(e.getNestedValue(s.row, e.entry.keys), (n, c) => (d(), a("span", {
29
+ key: c,
30
+ class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"
31
+ }, u(n[e.entry.field]), 1))), 128)) : e.isObject ? (d(), a("span", x, u(e.getNestedValue(s.row, e.entry.keys)[e.entry.field]), 1)) : i("", !0)
32
+ ]);
33
+ }
34
+ const h = /* @__PURE__ */ f(m, [["render", k]]);
35
+ export {
36
+ h as default
37
+ };
@@ -0,0 +1,26 @@
1
+ import { createElementBlock as i, createCommentVNode as l, openBlock as a, createElementVNode as t } from "vue";
2
+ import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const n = {
4
+ props: ["field", "row", "tdProps"]
5
+ }, o = { key: 0 }, d = { class: "m-1 d-inline-block" }, r = ["href", "title"], _ = ["src", "alt", "title"];
6
+ function f(m, s, e, u, h, w) {
7
+ return e.row[e.field] ? (a(), i("div", o, [
8
+ t("div", d, [
9
+ t("a", {
10
+ href: e.row[e.field].url,
11
+ title: e.row[e.field].name,
12
+ target: "_blank"
13
+ }, [
14
+ t("img", {
15
+ src: e.row[e.field].thumbnail,
16
+ alt: e.row[e.field].name,
17
+ title: e.row[e.field].name
18
+ }, null, 8, _)
19
+ ], 8, r)
20
+ ])
21
+ ])) : l("", !0);
22
+ }
23
+ const v = /* @__PURE__ */ c(n, [["render", f], ["__scopeId", "data-v-18c4893e"]]);
24
+ export {
25
+ v as default
26
+ };
@@ -0,0 +1,39 @@
1
+ import { createElementBlock as t, createCommentVNode as s, openBlock as r, Fragment as o, renderList as c, createElementVNode as i } from "vue";
2
+ import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const n = {
4
+ props: ["field", "row", "tdProps"],
5
+ computed: {
6
+ isArray() {
7
+ return Array.isArray(this.row[this.field]);
8
+ },
9
+ isObject() {
10
+ return typeof this.row[this.field] == "object";
11
+ }
12
+ }
13
+ }, u = {
14
+ key: 0,
15
+ class: "grid grid-cols-2 gap-4"
16
+ }, _ = ["src", "alt"], f = { key: 1 }, m = ["src", "alt"];
17
+ function h(g, w, e, y, b, a) {
18
+ return a.isArray ? (r(), t("div", u, [
19
+ (r(!0), t(o, null, c(e.row[e.field], (l) => (r(), t("div", {
20
+ key: l.id
21
+ }, [
22
+ i("img", {
23
+ class: "h-auto max-w-full rounded-lg",
24
+ src: l.thumbnail,
25
+ alt: l.file_name
26
+ }, null, 8, _)
27
+ ]))), 128))
28
+ ])) : a.isObject ? (r(), t("div", f, [
29
+ i("img", {
30
+ class: "h-auto max-w-full rounded-lg",
31
+ src: e.row[e.field].thumbnail,
32
+ alt: e.row[e.field].file_name
33
+ }, null, 8, m)
34
+ ])) : s("", !0);
35
+ }
36
+ const A = /* @__PURE__ */ d(n, [["render", h]]);
37
+ export {
38
+ A as default
39
+ };
@@ -0,0 +1,31 @@
1
+ import { createElementBlock as t, openBlock as r, createCommentVNode as o, createElementVNode as s, createTextVNode as d } from "vue";
2
+ import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const a = {
4
+ props: ["field", "row", "tdProps"],
5
+ computed: {
6
+ isActive() {
7
+ return this.row[this.field] === 1;
8
+ }
9
+ }
10
+ }, i = { class: "flex flex-wrap gap-2 text-nowrap" }, c = {
11
+ key: 0,
12
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
13
+ }, p = {
14
+ key: 1,
15
+ class: "inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"
16
+ };
17
+ function u(f, e, x, m, g, n) {
18
+ return r(), t("div", i, [
19
+ n.isActive ? (r(), t("span", c, e[0] || (e[0] = [
20
+ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1),
21
+ d(" Active ")
22
+ ]))) : n.isActive ? o("", !0) : (r(), t("span", p, e[1] || (e[1] = [
23
+ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1),
24
+ d(" Inactive ")
25
+ ])))
26
+ ]);
27
+ }
28
+ const b = /* @__PURE__ */ l(a, [["render", u]]);
29
+ export {
30
+ b as default
31
+ };
@@ -0,0 +1,59 @@
1
+ import { createElementBlock as t, openBlock as s, createCommentVNode as n, createElementVNode as l, createTextVNode as a, toDisplayString as o } from "vue";
2
+ import { _ as i } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const f = {
4
+ props: ["field", "row", "tdProps"],
5
+ computed: {
6
+ hasLabelColor(u) {
7
+ const e = this.tdProps.status_general_labels_color.find(
8
+ (d) => d.label === this.row[this.field]
9
+ );
10
+ return e ? e.class : "";
11
+ }
12
+ }
13
+ }, x = { class: "flex flex-wrap gap-2 text-nowrap" }, b = {
14
+ key: 0,
15
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
16
+ }, p = {
17
+ key: 1,
18
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-red-800 bg-red-100 rounded-full dark:bg-red-900 dark:text-red-300"
19
+ }, m = {
20
+ key: 2,
21
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"
22
+ }, g = {
23
+ key: 3,
24
+ 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"
25
+ }, c = {
26
+ key: 4,
27
+ class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
28
+ };
29
+ function h(u, e, d, w, y, r) {
30
+ return s(), t("div", x, [
31
+ r.hasLabelColor == "green" ? (s(), t("span", b, [
32
+ e[0] || (e[0] = l("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1)),
33
+ a(" " + o(this.row[this.field]), 1)
34
+ ])) : n("", !0),
35
+ r.hasLabelColor == "red" ? (s(), t("span", p, [
36
+ e[1] || (e[1] = l("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1)),
37
+ a(" " + o(this.row[this.field]), 1)
38
+ ])) : n("", !0),
39
+ r.hasLabelColor == "yellow" ? (s(), t("span", m, [
40
+ e[2] || (e[2] = l("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1)),
41
+ a(" " + o(this.row[this.field]), 1)
42
+ ])) : n("", !0),
43
+ r.hasLabelColor == "default" ? (s(), t("span", g, [
44
+ e[3] || (e[3] = l("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1)),
45
+ a(" " + o(this.row[this.field]), 1)
46
+ ])) : n("", !0),
47
+ r.hasLabelColor == "animate" ? (s(), t("span", c, [
48
+ e[4] || (e[4] = l("span", { class: "relative flex w-2 h-2 mr-1" }, [
49
+ l("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
50
+ l("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
51
+ ], -1)),
52
+ a(" " + o(this.row[this.field]), 1)
53
+ ])) : n("", !0)
54
+ ]);
55
+ }
56
+ const C = /* @__PURE__ */ i(f, [["render", h]]);
57
+ export {
58
+ C as default
59
+ };
@@ -0,0 +1,37 @@
1
+ import { createElementBlock as n, openBlock as r, createCommentVNode as s, createElementVNode as t, createTextVNode as o } from "vue";
2
+ import { _ as a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const d = {
4
+ props: ["field", "row", "tdProps"]
5
+ }, i = { class: "flex flex-wrap gap-2 text-nowrap" }, u = {
6
+ key: 0,
7
+ class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
8
+ }, f = {
9
+ key: 1,
10
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"
11
+ }, x = {
12
+ key: 2,
13
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
14
+ };
15
+ function m(c, e, l, g, b, p) {
16
+ return r(), n("div", i, [
17
+ l.row[l.field] === 0 ? (r(), n("span", u, e[0] || (e[0] = [
18
+ t("span", { class: "relative flex w-2 h-2 mr-1" }, [
19
+ t("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
20
+ t("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
21
+ ], -1),
22
+ o(" Provisioning")
23
+ ]))) : s("", !0),
24
+ l.row[l.field] === 2 ? (r(), n("span", f, e[1] || (e[1] = [
25
+ t("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1),
26
+ o(" Paused ")
27
+ ]))) : s("", !0),
28
+ l.row[l.field] === 1 ? (r(), n("span", x, e[2] || (e[2] = [
29
+ t("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1),
30
+ o(" Active ")
31
+ ]))) : s("", !0)
32
+ ]);
33
+ }
34
+ const y = /* @__PURE__ */ a(d, [["render", m]]);
35
+ export {
36
+ y as default
37
+ };
@@ -0,0 +1,64 @@
1
+ import { createElementBlock as r, openBlock as t, createCommentVNode as a, normalizeClass as d, toDisplayString as l } from "vue";
2
+ import { _ as o } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const p = {
4
+ props: ["field", "row", "tdProps"],
5
+ computed: {
6
+ hasLabelColor() {
7
+ return this.tdProps.specfic_color ?? "";
8
+ },
9
+ badgeType() {
10
+ switch (this.tdProps.badge_type) {
11
+ case "Default":
12
+ return "rounded-sm text-xs";
13
+ case "Large":
14
+ return "rounded-sm text-sm ";
15
+ case "Bordered":
16
+ return "rounded-sm text-xs border";
17
+ case "Pills":
18
+ return "rounded-full text-xs";
19
+ default:
20
+ return "";
21
+ }
22
+ }
23
+ }
24
+ }, i = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
25
+ function b(s, u, g, n, m, e) {
26
+ return t(), r("div", i, [
27
+ e.hasLabelColor == "Default" ? (t(), r("span", {
28
+ key: 0,
29
+ class: d(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400", e.badgeType])
30
+ }, l(this.row[this.field]), 3)) : a("", !0),
31
+ e.hasLabelColor == "Dark" ? (t(), r("span", {
32
+ key: 1,
33
+ class: d(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500", e.badgeType])
34
+ }, l(this.row[this.field]), 3)) : a("", !0),
35
+ e.hasLabelColor == "Red" ? (t(), r("span", {
36
+ key: 2,
37
+ class: d(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400", e.badgeType])
38
+ }, l(this.row[this.field]), 3)) : a("", !0),
39
+ e.hasLabelColor == "Green" ? (t(), r("span", {
40
+ key: 3,
41
+ class: d(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400", e.badgeType])
42
+ }, l(this.row[this.field]), 3)) : a("", !0),
43
+ e.hasLabelColor == "Yellow" ? (t(), r("span", {
44
+ key: 4,
45
+ class: d(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300", e.badgeType])
46
+ }, l(this.row[this.field]), 3)) : a("", !0),
47
+ e.hasLabelColor == "Indigo" ? (t(), r("span", {
48
+ key: 5,
49
+ class: d(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400", e.badgeType])
50
+ }, l(this.row[this.field]), 3)) : a("", !0),
51
+ e.hasLabelColor == "Purple" ? (t(), r("span", {
52
+ key: 6,
53
+ class: d(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400", e.badgeType])
54
+ }, l(this.row[this.field]), 3)) : a("", !0),
55
+ e.hasLabelColor == "Pink" ? (t(), r("span", {
56
+ key: 7,
57
+ class: d(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400", e.badgeType])
58
+ }, l(this.row[this.field]), 3)) : a("", !0)
59
+ ]);
60
+ }
61
+ const c = /* @__PURE__ */ o(p, [["render", b]]);
62
+ export {
63
+ c as default
64
+ };
@@ -0,0 +1,83 @@
1
+ import { createElementBlock as r, openBlock as a, createCommentVNode as n, createElementVNode as s, createTextVNode as u, toDisplayString as d } from "vue";
2
+ import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const f = {
4
+ props: ["field", "row", "tdProps"],
5
+ computed: {
6
+ entry() {
7
+ const l = this.field.split("."), e = l.pop();
8
+ return { keys: l, field: e };
9
+ },
10
+ isArray() {
11
+ return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
12
+ },
13
+ isObject() {
14
+ return typeof this.getNestedValue(this.row, this.entry.keys) == "object";
15
+ },
16
+ hasLabelColor(l) {
17
+ const e = this.tdProps.status_general_labels_color.find(
18
+ (o) => o.text === this.getValue()
19
+ );
20
+ return e ? e.class : "";
21
+ },
22
+ getLabel() {
23
+ const l = this.tdProps.status_general_labels_color.find(
24
+ (e) => e.text === this.getValue()
25
+ );
26
+ return l ? l.label : "";
27
+ }
28
+ },
29
+ methods: {
30
+ getValue() {
31
+ return this.isObject ? this.getNestedValue(this.row, this.entry.keys)[this.entry.field] : this.row[this.field];
32
+ },
33
+ getNestedValue(l, e) {
34
+ return e.reduce((o, i) => (o || {})[i], l);
35
+ }
36
+ }
37
+ }, g = { class: "flex flex-wrap gap-2 text-nowrap" }, x = {
38
+ key: 0,
39
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
40
+ }, p = {
41
+ key: 1,
42
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-red-800 bg-red-100 rounded-full dark:bg-red-900 dark:text-red-300"
43
+ }, m = {
44
+ key: 2,
45
+ class: "inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"
46
+ }, c = {
47
+ key: 3,
48
+ 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"
49
+ }, y = {
50
+ key: 4,
51
+ class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
52
+ };
53
+ function h(l, e, o, i, k, t) {
54
+ return a(), r("div", g, [
55
+ t.hasLabelColor == "green" ? (a(), r("span", x, [
56
+ e[0] || (e[0] = s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1)),
57
+ u(" " + d(t.getLabel), 1)
58
+ ])) : n("", !0),
59
+ t.hasLabelColor == "red" ? (a(), r("span", p, [
60
+ e[1] || (e[1] = s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1)),
61
+ u(" " + d(t.getLabel), 1)
62
+ ])) : n("", !0),
63
+ t.hasLabelColor == "yellow" ? (a(), r("span", m, [
64
+ e[2] || (e[2] = s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1)),
65
+ u(" " + d(t.getLabel), 1)
66
+ ])) : n("", !0),
67
+ t.hasLabelColor == "default" ? (a(), r("span", c, [
68
+ e[3] || (e[3] = s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1)),
69
+ u(" " + d(t.getLabel), 1)
70
+ ])) : n("", !0),
71
+ t.hasLabelColor == "animate" ? (a(), r("span", y, [
72
+ e[4] || (e[4] = s("span", { class: "relative flex w-2 h-2 mr-1" }, [
73
+ s("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
74
+ s("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
75
+ ], -1)),
76
+ u(" " + d(t.getLabel), 1)
77
+ ])) : n("", !0)
78
+ ]);
79
+ }
80
+ const L = /* @__PURE__ */ b(f, [["render", h]]);
81
+ export {
82
+ L as default
83
+ };
@@ -0,0 +1,96 @@
1
+ import _ from "./GLButton-ByIDh6vq.js";
2
+ import { resolveComponent as u, createElementBlock as f, createCommentVNode as g, openBlock as p, createElementVNode as e, toDisplayString as i, createVNode as r, withCtx as c, createTextVNode as m } from "vue";
3
+ import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const h = {
5
+ components: {
6
+ GlButton: _
7
+ },
8
+ props: {
9
+ isOpen: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ language: {
14
+ type: Object,
15
+ default: () => {
16
+ }
17
+ }
18
+ },
19
+ methods: {
20
+ confirmDeletion() {
21
+ this.$emit("confirm-delete");
22
+ },
23
+ cancelDeletion() {
24
+ this.$emit("cancel-delete");
25
+ }
26
+ }
27
+ }, x = {
28
+ key: 0,
29
+ class: "fixed inset-0 z-50 overflow-y-auto",
30
+ "aria-labelledby": "modal-title",
31
+ role: "dialog",
32
+ "aria-modal": "true"
33
+ }, y = { class: "flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:p-0" }, v = { class: "inline-block relative overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, k = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, C = { class: "sm:flex sm:items-start" }, w = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, D = {
34
+ class: "text-lg font-medium leading-6",
35
+ id: "modal-title"
36
+ }, B = { class: "mt-2" }, N = { class: "text-sm" }, V = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse gap-2" };
37
+ function O(j, n, t, E, T, l) {
38
+ var a, d;
39
+ const s = u("gl-button");
40
+ return t.isOpen ? (p(), f("div", x, [
41
+ e("div", y, [
42
+ n[0] || (n[0] = e("div", {
43
+ class: "fixed inset-0 transition-opacity bg-gray-500/75",
44
+ "aria-hidden": "true"
45
+ }, null, -1)),
46
+ n[1] || (n[1] = e("span", {
47
+ class: "hidden sm:inline-block sm:align-middle sm:h-screen",
48
+ "aria-hidden": "true"
49
+ }, "​", -1)),
50
+ e("div", v, [
51
+ e("div", k, [
52
+ e("div", C, [
53
+ e("div", w, [
54
+ e("h3", D, i(((a = t.language) == null ? void 0 : a.title_delete_confirmation) ?? "Confirm Deletion"), 1),
55
+ e("div", B, [
56
+ e("p", N, i(((d = t.language) == null ? void 0 : d.message_delete_confirmation) ?? "Are you sure you want to delete this item? This action cannot be undone."), 1)
57
+ ])
58
+ ])
59
+ ])
60
+ ]),
61
+ e("div", V, [
62
+ r(s, {
63
+ onClick: l.confirmDeletion,
64
+ tag: "button",
65
+ button_type: "red"
66
+ }, {
67
+ default: c(() => {
68
+ var o;
69
+ return [
70
+ m(i(((o = t.language) == null ? void 0 : o.okbutton_delete_confirmation) ?? "Delete"), 1)
71
+ ];
72
+ }),
73
+ _: 1
74
+ }, 8, ["onClick"]),
75
+ r(s, {
76
+ onClick: l.cancelDeletion,
77
+ tag: "button",
78
+ button_type: "light"
79
+ }, {
80
+ default: c(() => {
81
+ var o;
82
+ return [
83
+ m(i(((o = t.language) == null ? void 0 : o.cancelbutton_delete_confirmation) ?? "Cancel"), 1)
84
+ ];
85
+ }),
86
+ _: 1
87
+ }, 8, ["onClick"])
88
+ ])
89
+ ])
90
+ ])
91
+ ])) : g("", !0);
92
+ }
93
+ const M = /* @__PURE__ */ b(h, [["render", O]]);
94
+ export {
95
+ M as default
96
+ };