@iqworksai/common-components 0.1.6 → 0.1.7

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.
@@ -1,8 +1,8 @@
1
- import { r as te } from "./jquery-CZKSOerm.mjs";
1
+ import { a as te } from "./jquery-PS7a9kWs.mjs";
2
2
  var ie = { exports: {} };
3
3
  (function(G) {
4
4
  (function(l) {
5
- G.exports ? G.exports = l(te()) : l(jQuery);
5
+ G.exports ? G.exports = l(te) : l(jQuery);
6
6
  })(function(l, y) {
7
7
  /*!
8
8
  * jsTree 3.3.17
@@ -18,7 +18,7 @@ var ie = { exports: {} };
18
18
  * jslint: loopfunc: true, browser: true, ass: true, bitwise: true, continue: true, nomen: true, plusplus: true, regexp: true, unparam: true, todo: true, white: true
19
19
  */
20
20
  if (!l.jstree) {
21
- var ee = 0, D = !1, q = !1, J = !1, Z = [], R = l("script:last").attr("src"), T = window.document, W = window.setImmediate, b = window.Promise;
21
+ var ee = 0, D = !1, q = !1, X = !1, Z = [], R = l("script:last").attr("src"), T = window.document, W = window.setImmediate, b = window.Promise;
22
22
  !W && b && (W = function(e, s) {
23
23
  b.resolve(s).then(e);
24
24
  }), l.jstree = {
@@ -1089,7 +1089,7 @@ var ie = { exports: {} };
1089
1089
  for (v && v.children && v.children === !0 && (k.state.loaded = !1, k.children = [], k.children_d = []), x[k.id] = k, w = 0, B = k.children.length; w < B; w++)
1090
1090
  z = F(x[k.children[w]], k.id, E), Y = x[z], k.children_d.push(z), Y.children_d.length && (k.children_d = k.children_d.concat(Y.children_d));
1091
1091
  return delete v.data, delete v.children, x[k.id].original = v, k.state.selected && p.push(k.id), k.id;
1092
- }, X = function(v, j, E) {
1092
+ }, J = function(v, j, E) {
1093
1093
  E ? E = E.concat() : E = [], j && E.unshift(j);
1094
1094
  var H = !1, w, B, z, Y, k;
1095
1095
  do
@@ -1125,7 +1125,7 @@ var ie = { exports: {} };
1125
1125
  v.a_attr.hasOwnProperty(w) && (k.a_attr[w] = v.a_attr[w]);
1126
1126
  if (v && v.children && v.children.length) {
1127
1127
  for (w = 0, B = v.children.length; w < B; w++)
1128
- z = X(v.children[w], k.id, E), Y = x[z], k.children.push(z), Y.children_d.length && (k.children_d = k.children_d.concat(Y.children_d));
1128
+ z = J(v.children[w], k.id, E), Y = x[z], k.children.push(z), Y.children_d.length && (k.children_d = k.children_d.concat(Y.children_d));
1129
1129
  k.children_d = k.children_d.concat(k.children);
1130
1130
  }
1131
1131
  return v && v.children && v.children === !0 && (k.state.loaded = !1, k.children = [], k.children_d = []), delete v.data, delete v.children, k.original = v, x[k.id] = k, k.state.selected && p.push(k.id), k.id;
@@ -1154,7 +1154,7 @@ var ie = { exports: {} };
1154
1154
  };
1155
1155
  } else {
1156
1156
  for (C = 0, S = f.length; C < S; C++)
1157
- P = X(f[C], _, A.parents.concat()), P && (u.push(P), g.push(P), x[P].children_d.length && (g = g.concat(x[P].children_d)));
1157
+ P = J(f[C], _, A.parents.concat()), P && (u.push(P), g.push(P), x[P].children_d.length && (g = g.concat(x[P].children_d)));
1158
1158
  for (A.children = u, A.children_d = g, C = 0, S = A.parents.length; C < S; C++)
1159
1159
  x[A.parents[C]].children_d = x[A.parents[C]].children_d.concat(g);
1160
1160
  L = {
@@ -2311,7 +2311,7 @@ var ie = { exports: {} };
2311
2311
  t = this.get_node(e[i]), t && (t.id || t.id === 0) && t.id !== l.jstree.root && s.push(t);
2312
2312
  if (!s.length)
2313
2313
  return !1;
2314
- D = s, J = this, q = "move_node", this.trigger("cut", { node: e });
2314
+ D = s, X = this, q = "move_node", this.trigger("cut", { node: e });
2315
2315
  },
2316
2316
  /**
2317
2317
  * copy a node (a later call to `paste(obj)` would copy the node)
@@ -2327,7 +2327,7 @@ var ie = { exports: {} };
2327
2327
  t = this.get_node(e[i]), t && t.id !== y && t.id !== l.jstree.root && s.push(t);
2328
2328
  if (!s.length)
2329
2329
  return !1;
2330
- D = s, J = this, q = "copy_node", this.trigger("copy", { node: e });
2330
+ D = s, X = this, q = "copy_node", this.trigger("copy", { node: e });
2331
2331
  },
2332
2332
  /**
2333
2333
  * get the current buffer (any nodes that are waiting for a paste operation)
@@ -2335,7 +2335,7 @@ var ie = { exports: {} };
2335
2335
  * @return {Object} an object consisting of `mode` ("copy_node" or "move_node"), `node` (an array of objects) and `inst` (the instance)
2336
2336
  */
2337
2337
  get_buffer: function() {
2338
- return { mode: q, node: D, inst: J };
2338
+ return { mode: q, node: D, inst: X };
2339
2339
  },
2340
2340
  /**
2341
2341
  * check if there is something in the buffer to paste
@@ -2355,7 +2355,7 @@ var ie = { exports: {} };
2355
2355
  paste: function(e, s) {
2356
2356
  if (e = this.get_node(e), !e || !q || !q.match(/^(copy_node|move_node)$/) || !D)
2357
2357
  return !1;
2358
- this[q](D, e, s, !1, !1, !1, J) && this.trigger("paste", { parent: e.id, node: D, mode: q }), D = !1, q = !1, J = !1;
2358
+ this[q](D, e, s, !1, !1, !1, X) && this.trigger("paste", { parent: e.id, node: D, mode: q }), D = !1, q = !1, X = !1;
2359
2359
  },
2360
2360
  /**
2361
2361
  * clear the buffer of previously copied or cut nodes
@@ -2363,7 +2363,7 @@ var ie = { exports: {} };
2363
2363
  * @trigger clear_buffer.jstree
2364
2364
  */
2365
2365
  clear_buffer: function() {
2366
- D = !1, q = !1, J = !1, this.trigger("clear_buffer");
2366
+ D = !1, q = !1, X = !1, this.trigger("clear_buffer");
2367
2367
  },
2368
2368
  /**
2369
2369
  * put a node in edit mode (input field to rename the node)
@@ -3493,7 +3493,7 @@ var ie = { exports: {} };
3493
3493
  var c = n.event.target !== t.target;
3494
3494
  if (i && (!n.event || n.event.type !== "dragover" || c) && clearTimeout(i), !(!n || !n.data || !n.data.jstree) && !(n.event.target.id && n.event.target.id === "jstree-marker")) {
3495
3495
  t = n.event;
3496
- var d = l.jstree.reference(n.event.target), h = !1, o = !1, f = !1, _, u, g, p, m, N, O, x, A, K, P, C, S, L, F, X, v;
3496
+ var d = l.jstree.reference(n.event.target), h = !1, o = !1, f = !1, _, u, g, p, m, N, O, x, A, K, P, C, S, L, F, J, v;
3497
3497
  if (d && d._data && d._data.dnd) {
3498
3498
  if (r.attr("class", "jstree-" + d.get_theme() + (d.settings.core.themes.responsive ? " jstree-dnd-responsive" : "")), F = n.data.origin && (n.data.origin.settings.dnd.always_copy || n.data.origin.settings.dnd.copy && (n.event.metaKey || n.event.ctrlKey)), n.helper.children().attr("class", "jstree-" + d.get_theme() + " jstree-" + d.get_theme() + "-" + d.get_theme_variant() + " " + (d.settings.core.themes.responsive ? " jstree-dnd-responsive" : "")).find(".jstree-copy").first()[F ? "show" : "hide"](), (n.event.target === d.element[0] || n.event.target === d.get_container_ul()[0]) && (d.get_container_ul().children().length === 0 || d.settings.dnd.blank_space_drop)) {
3499
3499
  for (O = !0, x = 0, A = n.data.nodes.length; x < A && (O = O && d.check(n.data.origin && (n.data.origin.settings.dnd.always_copy || n.data.origin.settings.dnd.copy && (n.event.metaKey || n.event.ctrlKey)) ? "copy_node" : "move_node", n.data.origin && n.data.origin !== d ? n.data.origin.get_node(n.data.nodes[x]) : n.data.nodes[x], l.jstree.root, "last", { dnd: !0, ref: d.get_node(l.jstree.root), pos: "i", origin: n.data.origin, is_multi: n.data.origin && n.data.origin !== d, is_foreign: !n.data.origin }), !!O); x++)
@@ -3524,7 +3524,7 @@ var ie = { exports: {} };
3524
3524
  H.open_node(w);
3525
3525
  };
3526
3526
  }(d, h), d.settings.dnd.open_timeout)), O)
3527
- return X = d.get_node(p, !0), X.hasClass(".jstree-dnd-parent") || (l(".jstree-dnd-parent").removeClass("jstree-dnd-parent"), X.addClass("jstree-dnd-parent")), e = { ins: d, par: p, pos: E === "i" && S === "last" && m === 0 && !d.is_loaded(L) ? "last" : m }, r.css({ left: _ + "px", top: u + "px" }).show(), r.removeClass("jstree-above jstree-inside jstree-below").addClass(v), n.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"), n.event.originalEvent && n.event.originalEvent.dataTransfer && (n.event.originalEvent.dataTransfer.dropEffect = F ? "copy" : "move"), s = {}, N = !0, !1;
3527
+ return J = d.get_node(p, !0), J.hasClass(".jstree-dnd-parent") || (l(".jstree-dnd-parent").removeClass("jstree-dnd-parent"), J.addClass("jstree-dnd-parent")), e = { ins: d, par: p, pos: E === "i" && S === "last" && m === 0 && !d.is_loaded(L) ? "last" : m }, r.css({ left: _ + "px", top: u + "px" }).show(), r.removeClass("jstree-above jstree-inside jstree-below").addClass(v), n.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"), n.event.originalEvent && n.event.originalEvent.dataTransfer && (n.event.originalEvent.dataTransfer.dropEffect = F ? "copy" : "move"), s = {}, N = !0, !1;
3528
3528
  }), N === !0))
3529
3529
  return;
3530
3530
  }