golden-logic-ui 1.2.343 → 1.2.345

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 (64) hide show
  1. package/dist/components/GeneralComponents/GlDropdown.vue.js +25 -22
  2. package/dist/components/GeneralComponents/GlTinymce.vue.js +24 -23
  3. package/dist/components/GeneralComponents/GlTinymceTranslate.vue.js +24 -23
  4. package/dist/golden-logic-ui.css +1 -1
  5. package/package.json +2 -2
  6. package/dist/_virtual/_commonjsHelpers.js +0 -6
  7. package/dist/_virtual/model.js +0 -2
  8. package/dist/_virtual/model2.js +0 -4
  9. package/dist/_virtual/plugin.js +0 -2
  10. package/dist/_virtual/plugin10.js +0 -2
  11. package/dist/_virtual/plugin11.js +0 -2
  12. package/dist/_virtual/plugin12.js +0 -2
  13. package/dist/_virtual/plugin13.js +0 -2
  14. package/dist/_virtual/plugin14.js +0 -2
  15. package/dist/_virtual/plugin15.js +0 -2
  16. package/dist/_virtual/plugin16.js +0 -2
  17. package/dist/_virtual/plugin17.js +0 -4
  18. package/dist/_virtual/plugin18.js +0 -4
  19. package/dist/_virtual/plugin19.js +0 -4
  20. package/dist/_virtual/plugin2.js +0 -2
  21. package/dist/_virtual/plugin20.js +0 -4
  22. package/dist/_virtual/plugin21.js +0 -4
  23. package/dist/_virtual/plugin22.js +0 -4
  24. package/dist/_virtual/plugin23.js +0 -4
  25. package/dist/_virtual/plugin24.js +0 -4
  26. package/dist/_virtual/plugin25.js +0 -4
  27. package/dist/_virtual/plugin26.js +0 -4
  28. package/dist/_virtual/plugin27.js +0 -4
  29. package/dist/_virtual/plugin28.js +0 -4
  30. package/dist/_virtual/plugin29.js +0 -4
  31. package/dist/_virtual/plugin3.js +0 -2
  32. package/dist/_virtual/plugin30.js +0 -4
  33. package/dist/_virtual/plugin31.js +0 -4
  34. package/dist/_virtual/plugin32.js +0 -4
  35. package/dist/_virtual/plugin4.js +0 -2
  36. package/dist/_virtual/plugin5.js +0 -2
  37. package/dist/_virtual/plugin6.js +0 -2
  38. package/dist/_virtual/plugin7.js +0 -2
  39. package/dist/_virtual/plugin8.js +0 -2
  40. package/dist/_virtual/plugin9.js +0 -2
  41. package/dist/_virtual/theme.js +0 -2
  42. package/dist/_virtual/theme2.js +0 -4
  43. package/dist/_virtual/tinymce.js +0 -7
  44. package/dist/_virtual/tinymce2.js +0 -4
  45. package/dist/node_modules/tinymce/icons/default/icons.js +0 -230
  46. package/dist/node_modules/tinymce/models/dom/model.js +0 -4283
  47. package/dist/node_modules/tinymce/plugins/advlist/plugin.js +0 -194
  48. package/dist/node_modules/tinymce/plugins/anchor/plugin.js +0 -124
  49. package/dist/node_modules/tinymce/plugins/autolink/plugin.js +0 -111
  50. package/dist/node_modules/tinymce/plugins/charmap/plugin.js +0 -1474
  51. package/dist/node_modules/tinymce/plugins/code/plugin.js +0 -64
  52. package/dist/node_modules/tinymce/plugins/fullscreen/plugin.js +0 -691
  53. package/dist/node_modules/tinymce/plugins/image/plugin.js +0 -879
  54. package/dist/node_modules/tinymce/plugins/insertdatetime/plugin.js +0 -114
  55. package/dist/node_modules/tinymce/plugins/link/plugin.js +0 -809
  56. package/dist/node_modules/tinymce/plugins/lists/plugin.js +0 -1159
  57. package/dist/node_modules/tinymce/plugins/media/plugin.js +0 -778
  58. package/dist/node_modules/tinymce/plugins/preview/plugin.js +0 -383
  59. package/dist/node_modules/tinymce/plugins/searchreplace/plugin.js +0 -668
  60. package/dist/node_modules/tinymce/plugins/table/plugin.js +0 -2163
  61. package/dist/node_modules/tinymce/plugins/visualblocks/plugin.js +0 -67
  62. package/dist/node_modules/tinymce/plugins/wordcount/plugin.js +0 -261
  63. package/dist/node_modules/tinymce/themes/silver/theme.js +0 -21821
  64. package/dist/node_modules/tinymce/tinymce.js +0 -16987
@@ -1,5 +1,5 @@
1
- import { ref as m, shallowRef as X, onMounted as fe, onBeforeUnmount as ve, watch as M, createElementBlock as c, openBlock as f, Fragment as Y, createCommentVNode as p, normalizeClass as E, createElementVNode as s, toDisplayString as w, withDirectives as P, withModifiers as Z, vShow as ee, vModelText as me, renderList as ge, nextTick as he } from "vue";
2
- const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3 mb-4" }, xe = {
1
+ import { ref as m, shallowRef as X, onMounted as fe, onBeforeUnmount as ve, watch as M, createElementBlock as c, openBlock as f, Fragment as Y, createCommentVNode as h, normalizeClass as E, createElementVNode as s, toDisplayString as w, withDirectives as P, withModifiers as Z, vShow as ee, vModelText as me, renderList as ge, nextTick as pe } from "vue";
2
+ const he = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3 mb-4" }, xe = {
3
3
  key: 0,
4
4
  class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded-sm dark:bg-blue-900 dark:text-blue-300"
5
5
  }, we = ["name", "id", "value"], be = {
@@ -111,16 +111,16 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
111
111
  emits: ["update:modelValue", "selected", "selectionChanged"],
112
112
  setup(r, { emit: te }) {
113
113
  const o = r, b = te, a = m({}), R = m(!1), y = m(0), x = m(!1), v = m(""), g = m(""), B = m(!1), C = m(1), D = m(null), $ = m(1), i = X([]), L = X([]), T = m([]), le = m(null), F = m(null);
114
- let O = !1, h = null, U = 0, k = null;
114
+ let O = !1, p = null, U = 0, k = null;
115
115
  const H = (e) => e?.name === "CanceledError" || e?.name === "AbortError" || typeof axios < "u" && axios.isCancel?.(e), V = async (e = "down") => {
116
116
  if (B.value || !o.api_url) return;
117
- h && h.abort(), h = new AbortController();
117
+ p && p.abort(), p = new AbortController();
118
118
  const t = ++U;
119
119
  B.value = !0;
120
120
  try {
121
121
  const l = e === "up" ? Math.max(C.value - 1, $.value) : C.value, { data: n } = await axios.get(o.api_url, {
122
122
  params: { search: v.value, page: l, per_page: 20 },
123
- signal: h.signal
123
+ signal: p.signal
124
124
  });
125
125
  if (O || t !== U) return;
126
126
  if (!n || !n.data) {
@@ -137,7 +137,7 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
137
137
  if (H(l)) return;
138
138
  console.error("Error fetching data:", l);
139
139
  } finally {
140
- !O && t === U && (B.value = !1, h = null);
140
+ !O && t === U && (B.value = !1, p = null);
141
141
  }
142
142
  }, ne = async (e) => {
143
143
  if (!o.api_url || e === null || e === void 0 || e === "") return null;
@@ -179,7 +179,7 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
179
179
  x.value = !1;
180
180
  return;
181
181
  }
182
- v.value = "", x.value = !0, o.api_url && i.value.length === 0 && V("down"), he(() => {
182
+ v.value = "", x.value = !0, o.api_url && i.value.length === 0 && V("down"), pe(() => {
183
183
  const e = document.getElementById(
184
184
  `${o.field_name}search${g.value}`
185
185
  );
@@ -207,7 +207,7 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
207
207
  fe(() => {
208
208
  g.value = se(), o.show || (document.body.addEventListener("click", K), document.addEventListener("focusin", z));
209
209
  }), ve(() => {
210
- O = !0, h && (h.abort(), h = null), k && (clearTimeout(k), k = null), document.body.removeEventListener("click", K), document.removeEventListener("focusin", z);
210
+ O = !0, p && (p.abort(), p = null), k && (clearTimeout(k), k = null), document.body.removeEventListener("click", K), document.removeEventListener("focusin", z);
211
211
  });
212
212
  function re() {
213
213
  const e = L.value, t = o.maxItem, l = v.value;
@@ -302,7 +302,7 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
302
302
  }), M(
303
303
  () => o.api_url,
304
304
  () => {
305
- h && (h.abort(), h = null), C.value = 1, D.value = null, $.value = 1, i.value = [];
305
+ p && (p.abort(), p = null), C.value = 1, D.value = null, $.value = 1, i.value = [];
306
306
  },
307
307
  { immediate: !0 }
308
308
  ), M(
@@ -327,19 +327,22 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
327
327
  L.value = l, i.value = l, a.value = j();
328
328
  }
329
329
  },
330
- { immediate: !0 }
330
+ // deep so the list still updates when options load late by mutating the SAME
331
+ // array in place (e.g. column.options.push(...)) — a reference-only watch
332
+ // would miss that and leave the dropdown list empty.
333
+ { immediate: !0, deep: !0 }
331
334
  ), (e, t) => (f(), c(Y, null, [
332
335
  r.show ? (f(), c("div", {
333
336
  key: 0,
334
337
  class: E(r.field_name)
335
338
  }, [
336
- s("h3", pe, w(r.label_name), 1),
339
+ s("h3", he, w(r.label_name), 1),
337
340
  s("p", ye, [
338
- S(a.value) ? (f(), c("span", xe, w(a.value?.name), 1)) : p("", !0)
341
+ S(a.value) ? (f(), c("span", xe, w(a.value?.name), 1)) : h("", !0)
339
342
  ]),
340
343
  t[6] || (t[6] = s("hr", { class: "opacity-100! bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
341
- ], 2)) : p("", !0),
342
- r.show ? p("", !0) : (f(), c("div", {
344
+ ], 2)) : h("", !0),
345
+ r.show ? h("", !0) : (f(), c("div", {
343
346
  key: 1,
344
347
  class: E(r.field_name)
345
348
  }, [
@@ -357,7 +360,7 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
357
360
  "gl-label-form-invalid": r.error_message !== "",
358
361
  required: r.is_required
359
362
  })
360
- }, w(r.label_name), 3)) : p("", !0),
363
+ }, w(r.label_name), 3)) : h("", !0),
361
364
  s("div", ke, [
362
365
  s("div", Se, [
363
366
  s("input", {
@@ -420,7 +423,7 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
420
423
  ]), 2))
421
424
  ]),
422
425
  P(s("div", Ce, [
423
- r.hide_search ? p("", !0) : (f(), c("div", De, [
426
+ r.hide_search ? h("", !0) : (f(), c("div", De, [
424
427
  t[10] || (t[10] = s("label", {
425
428
  for: "default-search",
426
429
  class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
@@ -456,7 +459,7 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
456
459
  s("div", Be, [
457
460
  s("span", null, w(r.custom_option_label) + ' "' + w(v.value) + '"', 1)
458
461
  ])
459
- ], 32)) : p("", !0),
462
+ ], 32)) : h("", !0),
460
463
  i.value.length ? (f(!0), c(Y, { key: 1 }, ge(i.value, (l, n) => (f(), c("div", {
461
464
  class: E([
462
465
  "relative px-2 py-0.5 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 dark:hover:text-white hover:rounded-sm",
@@ -476,21 +479,21 @@ const pe = { class: "font-bold ptext-lg dark:text-white" }, ye = { class: "mt-3
476
479
  "stroke-width": "2",
477
480
  d: "M1 5.917 5.724 10.5 15 1.5"
478
481
  }, null, -1)
479
- ]))) : p("", !0),
482
+ ]))) : h("", !0),
480
483
  s("span", {
481
484
  innerHTML: l.name || l.id || "-"
482
485
  }, null, 8, Ie)
483
486
  ])
484
- ], 42, $e))), 128)) : p("", !0),
485
- B.value ? (f(), c("div", Te, " Loading... ")) : p("", !0),
486
- !B.value && i.value.length === 0 && !(r.allow_custom && v.value) ? (f(), c("div", Ue, w(r.no_results_found_placeholder), 1)) : p("", !0)
487
+ ], 42, $e))), 128)) : h("", !0),
488
+ B.value ? (f(), c("div", Te, " Loading... ")) : h("", !0),
489
+ !B.value && i.value.length === 0 && !(r.allow_custom && v.value) ? (f(), c("div", Ue, w(r.no_results_found_placeholder), 1)) : h("", !0)
487
490
  ], 544)
488
491
  ], 512), [
489
492
  [ee, x.value]
490
493
  ])
491
494
  ])
492
495
  ])
493
- ])) : p("", !0),
496
+ ])) : h("", !0),
494
497
  s("span", Ve, w(r.error_message), 1),
495
498
  s("small", Ae, w(r.description), 1)
496
499
  ], 2))
@@ -1,26 +1,27 @@
1
1
  import { ref as g, onMounted as h, onBeforeUnmount as k, watch as x, computed as v, createElementBlock as s, openBlock as d, Fragment as w, createCommentVNode as y, normalizeClass as r, createElementVNode as a, toDisplayString as n, withDirectives as V, vModelText as C, nextTick as S } from "vue";
2
- import B from "../../_virtual/tinymce.js";
3
- import "../../node_modules/tinymce/icons/default/icons.js";
4
- import "../../_virtual/theme.js";
5
- import "../../_virtual/model.js";
6
- /* empty css */
7
- import "../../_virtual/plugin.js";
8
- import "../../_virtual/plugin2.js";
9
- import "../../_virtual/plugin3.js";
10
- import "../../_virtual/plugin4.js";
11
- import "../../_virtual/plugin5.js";
12
- import "../../_virtual/plugin6.js";
13
- import "../../_virtual/plugin7.js";
14
- import "../../_virtual/plugin8.js";
15
- import "../../_virtual/plugin9.js";
16
- import "../../_virtual/plugin10.js";
17
- import "../../_virtual/plugin11.js";
18
- import "../../_virtual/plugin12.js";
19
- import "../../_virtual/plugin13.js";
20
- import "../../_virtual/plugin14.js";
21
- import "../../_virtual/plugin15.js";
22
- import "../../_virtual/plugin16.js";
23
- const T = { class: "font-bold ptext-lg dark:text-white" }, E = ["id"], M = ["for"], N = ["name", "id", "type"], q = { class: "gl-span-form-error" }, D = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, le = {
2
+ import B from "tinymce";
3
+ import "tinymce/icons/default/icons";
4
+ import "tinymce/themes/silver/theme";
5
+ import "tinymce/models/dom/model";
6
+ import "tinymce/skins/ui/oxide/skin.css";
7
+ import "tinymce/plugins/lists/plugin";
8
+ import "tinymce/plugins/link/plugin";
9
+ import "tinymce/plugins/image/plugin";
10
+ import "tinymce/plugins/media/plugin";
11
+ import "tinymce/plugins/table/plugin";
12
+ import "tinymce/plugins/code/plugin";
13
+ import "tinymce/plugins/wordcount/plugin";
14
+ import "tinymce/plugins/fullscreen/plugin";
15
+ import "tinymce/plugins/preview/plugin";
16
+ import "tinymce/plugins/advlist/plugin";
17
+ import "tinymce/plugins/searchreplace/plugin";
18
+ import "tinymce/plugins/anchor/plugin";
19
+ import "tinymce/plugins/autolink/plugin";
20
+ import "tinymce/plugins/charmap/plugin";
21
+ import "tinymce/plugins/insertdatetime/plugin";
22
+ import "tinymce/plugins/visualblocks/plugin";
23
+ import "tinymce/plugins/help/plugin";
24
+ const T = { class: "font-bold ptext-lg dark:text-white" }, E = ["id"], M = ["for"], N = ["name", "id", "type"], q = { class: "gl-span-form-error" }, D = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, ae = {
24
25
  __name: "GlTinymce",
25
26
  props: {
26
27
  is_required: { type: Boolean, default: !1 },
@@ -134,5 +135,5 @@ const T = { class: "font-bold ptext-lg dark:text-white" }, E = ["id"], M = ["for
134
135
  }
135
136
  };
136
137
  export {
137
- le as default
138
+ ae as default
138
139
  };
@@ -1,26 +1,27 @@
1
1
  import { ref as f, onMounted as b, onBeforeUnmount as w, watch as S, computed as C, createElementBlock as g, openBlock as c, Fragment as _, createCommentVNode as v, normalizeClass as m, createElementVNode as i, withDirectives as V, toDisplayString as d, vModelText as k, nextTick as j } from "vue";
2
- import B from "../../_virtual/tinymce.js";
3
- import "../../node_modules/tinymce/icons/default/icons.js";
4
- import "../../_virtual/theme.js";
5
- import "../../_virtual/model.js";
6
- /* empty css */
7
- import "../../_virtual/plugin.js";
8
- import "../../_virtual/plugin2.js";
9
- import "../../_virtual/plugin3.js";
10
- import "../../_virtual/plugin4.js";
11
- import "../../_virtual/plugin5.js";
12
- import "../../_virtual/plugin6.js";
13
- import "../../_virtual/plugin7.js";
14
- import "../../_virtual/plugin8.js";
15
- import "../../_virtual/plugin9.js";
16
- import "../../_virtual/plugin10.js";
17
- import "../../_virtual/plugin11.js";
18
- import "../../_virtual/plugin12.js";
19
- import "../../_virtual/plugin13.js";
20
- import "../../_virtual/plugin14.js";
21
- import "../../_virtual/plugin15.js";
22
- import "../../_virtual/plugin16.js";
23
- const N = { class: "font-bold ptext-lg dark:text-white" }, q = ["name", "id"], E = ["id"], I = ["for"], M = ["name", "id"], O = ["name", "id", "type"], U = { class: "gl-span-form-error" }, D = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, oe = {
2
+ import B from "tinymce";
3
+ import "tinymce/icons/default/icons";
4
+ import "tinymce/themes/silver/theme";
5
+ import "tinymce/models/dom/model";
6
+ import "tinymce/skins/ui/oxide/skin.css";
7
+ import "tinymce/plugins/lists/plugin";
8
+ import "tinymce/plugins/link/plugin";
9
+ import "tinymce/plugins/image/plugin";
10
+ import "tinymce/plugins/media/plugin";
11
+ import "tinymce/plugins/table/plugin";
12
+ import "tinymce/plugins/code/plugin";
13
+ import "tinymce/plugins/wordcount/plugin";
14
+ import "tinymce/plugins/fullscreen/plugin";
15
+ import "tinymce/plugins/preview/plugin";
16
+ import "tinymce/plugins/advlist/plugin";
17
+ import "tinymce/plugins/searchreplace/plugin";
18
+ import "tinymce/plugins/anchor/plugin";
19
+ import "tinymce/plugins/autolink/plugin";
20
+ import "tinymce/plugins/charmap/plugin";
21
+ import "tinymce/plugins/insertdatetime/plugin";
22
+ import "tinymce/plugins/visualblocks/plugin";
23
+ import "tinymce/plugins/help/plugin";
24
+ const N = { class: "font-bold ptext-lg dark:text-white" }, q = ["name", "id"], E = ["id"], I = ["for"], M = ["name", "id"], O = ["name", "id", "type"], U = { class: "gl-span-form-error" }, D = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, re = {
24
25
  __name: "GlTinymceTranslate",
25
26
  props: {
26
27
  is_required: {
@@ -204,5 +205,5 @@ const N = { class: "font-bold ptext-lg dark:text-white" }, q = ["name", "id"], E
204
205
  }
205
206
  };
206
207
  export {
207
- oe as default
208
+ re as default
208
209
  };