@uva-glass/component-library 1.62.8 → 1.62.9

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 (44) hide show
  1. package/dist/TablePlugin-DQR5VWGq.js +301 -0
  2. package/dist/TablePlugin-DQR5VWGq.js.map +1 -0
  3. package/dist/assets/favicon/android-chrome-192x192.png +0 -0
  4. package/dist/assets/favicon/android-chrome-512x512.png +0 -0
  5. package/dist/assets/favicon/apple-touch-icon.png +0 -0
  6. package/dist/assets/favicon/favicon-16x16.png +0 -0
  7. package/dist/assets/favicon/favicon-32x32.png +0 -0
  8. package/dist/assets/favicon/favicon.ico +0 -0
  9. package/dist/assets/favicon/favicon.svg +27 -0
  10. package/dist/assets/favicon/site.webmanifest +19 -0
  11. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  12. package/dist/components/FormInput/FormInput.js +1 -1
  13. package/dist/components/InputField/InputField.stories.js +1 -1
  14. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  15. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  16. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  17. package/dist/components/MultiSelect/index.js +1 -1
  18. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  19. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  20. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  21. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
  22. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js +1 -1
  23. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
  24. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  25. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
  26. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +7 -6
  27. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
  28. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  29. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +50 -37
  30. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
  31. package/dist/components/RteEditor/Plugins/index.js +1 -1
  32. package/dist/components/RteEditor/RteEditor.d.ts +1 -1
  33. package/dist/components/RteEditor/RteEditor.js +96 -94
  34. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  35. package/dist/components/RteEditor/RteEditor.stories.js +1 -1
  36. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  37. package/dist/components/index.js +1 -1
  38. package/dist/{helpers-pUTvcL4e.js → helpers-CVB_4CnL.js} +70 -68
  39. package/dist/helpers-CVB_4CnL.js.map +1 -0
  40. package/dist/index.js +1 -1
  41. package/package.json +5 -5
  42. package/dist/TablePlugin-B-yAWpsC.js +0 -310
  43. package/dist/TablePlugin-B-yAWpsC.js.map +0 -1
  44. package/dist/helpers-pUTvcL4e.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { i as et, t as _, $ as ue, U as tt } from "./LexicalUtils.prod-BBoyOK4A.js";
2
- import { k as Tt, X as Et, l as nt, b as T, n as Ot, p as ot, U as rt, w as Ee, q as st, a as $, S as lt, s as Le, u as it, F as ve, y as He, C as Be, D as G, v as A, M as D, A as Mt, B as at, H as Ft, J as Rt, N as B, P as Kt, Q as kt, f as Oe, c as Me, m as Fe, V as Dt, t as Pt, R as Y, W as At, Y as Q, Z as Lt, a0 as Ht, a1 as Bt, a2 as Wt, a3 as It, a4 as We, a5 as zt, a6 as Ut, a7 as Jt, a8 as Yt, d as Xt, a9 as jt, aa as qt, ab as $t, ac as Vt, e as se, z as Gt, E as q, ad as Zt, o as Qt, ae, af as en, L as ct, ag as tn, ah as nn, ai as on, aj as Ie } from "./Lexical.prod-B6kL_nwF.js";
2
+ import { k as Tt, X as Et, l as nt, b as T, n as Ot, p as ot, U as rt, w as Ee, q as st, a as V, S as lt, s as Le, u as it, F as ve, y as He, C as Be, D as z, v as A, M as D, A as Mt, B as at, H as Ft, J as Rt, N as B, P as Kt, Q as kt, f as Oe, c as Me, m as Fe, V as Dt, t as Pt, R as X, W as At, Y as Q, Z as Lt, a0 as Ht, a1 as Bt, a2 as Wt, a3 as It, a4 as We, a5 as zt, a6 as Ut, a7 as Jt, a8 as Yt, d as Xt, a9 as jt, aa as qt, ab as $t, ac as Vt, e as se, z as Gt, E as $, ad as Zt, o as Qt, ae, af as en, L as ct, ag as tn, ah as nn, ai as on, aj as Ie } from "./Lexical.prod-B6kL_nwF.js";
3
3
  function rn(n) {
4
4
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5
5
  }
@@ -84,7 +84,7 @@ function dt(n, e, t, o = null) {
84
84
  let l = e;
85
85
  if (o !== null) {
86
86
  let g = st(e);
87
- g = $(g) && o !== null ? ut(o, g) : g, l = g;
87
+ g = V(g) && o !== null ? ut(o, g) : g, l = g;
88
88
  }
89
89
  const a = T(l) ? l.getChildren() : [], d = n._nodes.get(l.getType());
90
90
  let h;
@@ -135,7 +135,7 @@ function gt(n, e, t, o, s = /* @__PURE__ */ new Map(), r) {
135
135
  return i != null && (u = i(u)), He(n) && (u = gn(n, u, g ? () => {
136
136
  const f = new ot();
137
137
  return t.push(f), f;
138
- } : G)), a == null ? u.length > 0 ? l = l.concat(u) : He(n) && function(f) {
138
+ } : z)), a == null ? u.length > 0 ? l = l.concat(u) : He(n) && function(f) {
139
139
  return f.nextSibling == null || f.previousSibling == null ? !1 : Be(f.nextSibling) && Be(f.previousSibling);
140
140
  }(n) && (l = l.concat(rt())) : T(a) && a.append(...u), l;
141
141
  }
@@ -208,7 +208,7 @@ function mt(n, e, t, o = []) {
208
208
  let l = t;
209
209
  if (e !== null) {
210
210
  let h = st(t);
211
- h = $(h) && e !== null ? ut(e, h) : h, l = h;
211
+ h = V(h) && e !== null ? ut(e, h) : h, l = h;
212
212
  }
213
213
  const a = T(l) ? l.getChildren() : [], d = function(h) {
214
214
  const i = h.exportJSON(), c = h.constructor;
@@ -218,7 +218,7 @@ function mt(n, e, t, o = []) {
218
218
  }
219
219
  return i;
220
220
  }(l);
221
- if ($(l)) {
221
+ if (V(l)) {
222
222
  const h = l.__text;
223
223
  h.length > 0 ? d.text = h : s = !1;
224
224
  }
@@ -243,7 +243,7 @@ function Sn(n) {
243
243
  const e = [];
244
244
  for (let t = 0; t < n.length; t++) {
245
245
  const o = n[t], s = Ft(o);
246
- $(s) && an(s), e.push(s);
246
+ V(s) && an(s), e.push(s);
247
247
  }
248
248
  return e;
249
249
  }
@@ -410,11 +410,11 @@ function Je(n) {
410
410
  const r = e.style.backgroundColor;
411
411
  r !== "" && (s.__backgroundColor = r);
412
412
  const l = e.style, a = (l && l.textDecoration || "").split(" "), d = l.fontWeight === "700" || l.fontWeight === "bold", h = a.includes("line-through"), i = l.fontStyle === "italic", c = a.includes("underline");
413
- return { after: (u) => (u.length === 0 && u.push(G()), u), forChild: (u, g) => {
413
+ return { after: (u) => (u.length === 0 && u.push(z()), u), forChild: (u, g) => {
414
414
  if (m(g) && !T(u)) {
415
- const f = G();
415
+ const f = z();
416
416
  return Dt(u) && u.getTextContent() === `
417
- ` ? null : ($(u) && (d && u.toggleFormat("bold"), h && u.toggleFormat("strikethrough"), i && u.toggleFormat("italic"), c && u.toggleFormat("underline")), f.append(u), f);
417
+ ` ? null : (V(u) && (d && u.toggleFormat("bold"), h && u.toggleFormat("strikethrough"), i && u.toggleFormat("italic"), c && u.toggleFormat("underline")), f.append(u), f);
418
418
  }
419
419
  return u;
420
420
  }, node: s };
@@ -496,7 +496,7 @@ function Tn(n, e, t = !0) {
496
496
  for (let l = 0; l < e; l++) {
497
497
  let a = I.NO_STATUS;
498
498
  typeof t == "object" ? (s === 0 && t.rows && (a |= I.ROW), l === 0 && t.columns && (a |= I.COLUMN)) : t && (s === 0 && (a |= I.ROW), l === 0 && (a |= I.COLUMN));
499
- const d = oe(a), h = G();
499
+ const d = oe(a), h = z();
500
500
  h.append(Me()), d.append(h), r.append(d);
501
501
  }
502
502
  o.append(r);
@@ -781,7 +781,7 @@ class Rn {
781
781
  const t = e.getElementByKey(this.tableNodeKey);
782
782
  if (!t) throw new Error("Expected to find TableElement in DOM");
783
783
  const o = ce(t);
784
- me(e, o, null), q(null), e.dispatchCommand(se, void 0);
784
+ me(e, o, null), $(null), e.dispatchCommand(se, void 0);
785
785
  });
786
786
  }
787
787
  enableHighlightStyle() {
@@ -821,17 +821,17 @@ class Rn {
821
821
  if (r === this.focusX && l === this.focusY) return;
822
822
  } else this.isHighlightingCells = !0, this.disableHighlightStyle();
823
823
  if (this.focusX = r, this.focusY = l, this.isHighlightingCells) {
824
- const a = Y(e.elem);
824
+ const a = X(e.elem);
825
825
  if (this.tableSelection != null && this.anchorCellNodeKey != null && m(a) && s.is(te(a))) {
826
826
  const d = a.getKey();
827
- this.tableSelection = this.tableSelection.clone() || Xe(), this.focusCellNodeKey = d, this.tableSelection.set(this.tableNodeKey, this.anchorCellNodeKey, this.focusCellNodeKey), q(this.tableSelection), o.dispatchCommand(se, void 0), me(o, this.table, this.tableSelection);
827
+ this.tableSelection = this.tableSelection.clone() || Xe(), this.focusCellNodeKey = d, this.tableSelection.set(this.tableNodeKey, this.anchorCellNodeKey, this.focusCellNodeKey), $(this.tableSelection), o.dispatchCommand(se, void 0), me(o, this.table, this.tableSelection);
828
828
  }
829
829
  }
830
830
  });
831
831
  }
832
832
  setAnchorCellForSelection(e) {
833
833
  this.isHighlightingCells = !1, this.anchorCell = e, this.anchorX = e.x, this.anchorY = e.y, this.editor.update(() => {
834
- const t = Y(e.elem);
834
+ const t = X(e.elem);
835
835
  if (m(t)) {
836
836
  const o = t.getKey();
837
837
  this.tableSelection = this.tableSelection != null ? this.tableSelection.clone() : Xe(), this.anchorCellNodeKey = o;
@@ -845,7 +845,7 @@ class Rn {
845
845
  const o = en(), s = o.anchor, r = o.focus, l = t.getNodes().filter(m), a = l[0].getFirstChild(), d = ct(a) ? a.getFormatFlags(e, null) : null;
846
846
  l.forEach((h) => {
847
847
  s.set(h.getKey(), 0, "element"), r.set(h.getKey(), h.getChildrenSize(), "element"), o.formatText(e, d);
848
- }), q(t), this.editor.dispatchCommand(se, void 0);
848
+ }), $(t), this.editor.dispatchCommand(se, void 0);
849
849
  });
850
850
  }
851
851
  clearText() {
@@ -858,12 +858,12 @@ class Rn {
858
858
  const s = o.getNodes().filter(m);
859
859
  s.length !== this.table.columns * this.table.rows ? (s.forEach((r) => {
860
860
  if (T(r)) {
861
- const l = G(), a = Me();
861
+ const l = z(), a = Me();
862
862
  l.append(a), r.append(l), r.getChildren().forEach((d) => {
863
863
  d !== l && d.remove();
864
864
  });
865
865
  }
866
- }), me(e, this.table, null), q(null), e.dispatchCommand(se, void 0)) : (t.selectPrevious(), t.remove(), Ee().selectStart());
866
+ }), me(e, this.table, null), $(null), e.dispatchCommand(se, void 0)) : (t.selectPrevious(), t.remove(), Ee().selectStart());
867
867
  });
868
868
  }
869
869
  }
@@ -893,7 +893,7 @@ function zn(n, e, t, o) {
893
893
  setTimeout(() => {
894
894
  if (i.button !== 0 || !l) return;
895
895
  const c = qe(i.target);
896
- c !== null && (J(i), r.setAnchorCellForSelection(c));
896
+ c !== null && (Y(i), r.setAnchorCellForSelection(c));
897
897
  const { onMouseUp: u, onMouseMove: g } = a();
898
898
  r.isSelecting = !0, l.addEventListener("mouseup", u, r.listenerOptions), l.addEventListener("mousemove", g, r.listenerOptions);
899
899
  }, 0);
@@ -906,13 +906,13 @@ function zn(n, e, t, o) {
906
906
  const c = D();
907
907
  if (R(c)) {
908
908
  const u = _(c.focus.getNode(), m);
909
- if (m(u)) return J(i), u.selectEnd(), !0;
909
+ if (m(u)) return Y(i), u.selectEnd(), !0;
910
910
  }
911
911
  return !1;
912
912
  }, Q)), [It, We, zt].forEach((i) => {
913
913
  r.listenersToRemove.add(t.registerCommand(i, /* @__PURE__ */ ((c) => () => {
914
914
  const u = D();
915
- if (!V(u, n)) return !1;
915
+ if (!G(u, n)) return !1;
916
916
  if (R(u)) return r.clearText(), !0;
917
917
  if (A(u)) {
918
918
  const g = _(u.anchor.getNode(), (v) => m(v));
@@ -951,7 +951,7 @@ function zn(n, e, t, o) {
951
951
  return !1;
952
952
  }, B)), r.listenersToRemove.add(t.registerCommand(Xt, (i) => {
953
953
  const c = D();
954
- if (!V(c, n)) return !1;
954
+ if (!G(c, n)) return !1;
955
955
  if (R(c)) return r.formatCells(i), !0;
956
956
  if (A(c)) {
957
957
  const u = _(c.anchor.getNode(), (g) => m(g));
@@ -960,7 +960,7 @@ function zn(n, e, t, o) {
960
960
  return !1;
961
961
  }, B)), r.listenersToRemove.add(t.registerCommand(jt, (i) => {
962
962
  const c = D();
963
- if (!R(c) || !V(c, n)) return !1;
963
+ if (!R(c) || !G(c, n)) return !1;
964
964
  const u = c.anchor.getNode(), g = c.focus.getNode();
965
965
  if (!m(u) || !m(g)) return !1;
966
966
  const [f, p, w] = ne(n, u, g), C = Math.max(p.startRow, w.startRow), N = Math.max(p.startColumn, w.startColumn), E = Math.min(p.startRow, w.startRow), v = Math.min(p.startColumn, w.startColumn);
@@ -976,7 +976,7 @@ function zn(n, e, t, o) {
976
976
  return !0;
977
977
  }, B)), r.listenersToRemove.add(t.registerCommand(qt, (i) => {
978
978
  const c = D();
979
- if (!V(c, n)) return !1;
979
+ if (!G(c, n)) return !1;
980
980
  if (R(c)) return r.clearHighlight(), !1;
981
981
  if (A(c)) {
982
982
  const u = _(c.anchor.getNode(), (g) => m(g));
@@ -989,10 +989,10 @@ function zn(n, e, t, o) {
989
989
  return !1;
990
990
  }, B)), o && r.listenersToRemove.add(t.registerCommand($t, (i) => {
991
991
  const c = D();
992
- if (!A(c) || !c.isCollapsed() || !V(c, n)) return !1;
992
+ if (!A(c) || !c.isCollapsed() || !G(c, n)) return !1;
993
993
  const u = xe(c.anchor.getNode());
994
994
  if (u === null) return !1;
995
- J(i);
995
+ Y(i);
996
996
  const g = n.getCordsFromCellNode(u, r.table);
997
997
  return St(r, n, g.x, g.y, i.shiftKey ? "backward" : "forward"), !0;
998
998
  }, B)), r.listenersToRemove.add(t.registerCommand(Vt, (i) => n.isSelected(), Q)), r.listenersToRemove.add(t.registerCommand(at, (i) => {
@@ -1000,26 +1000,26 @@ function zn(n, e, t, o) {
1000
1000
  if (c.length !== 1 || !M(c[0]) || !p || g === null) return !1;
1001
1001
  const [w] = g, C = c[0], N = C.getChildren(), E = C.getFirstChildOrThrow().getChildrenSize(), v = C.getChildrenSize(), K = _(w.getNode(), (k) => m(k)), O = K && _(K, (k) => W(k)), F = O && _(O, (k) => M(k));
1002
1002
  if (!m(K) || !W(O) || !M(F)) return !1;
1003
- const b = O.getIndexWithinParent(), y = Math.min(F.getChildrenSize() - 1, b + v - 1), S = K.getIndexWithinParent(), P = Math.min(O.getChildrenSize() - 1, S + E - 1), L = Math.min(S, P), H = Math.min(b, y), X = Math.max(S, P), z = Math.max(b, y), j = F.getChildren();
1004
- let U = 0;
1005
- for (let k = H; k <= z; k++) {
1006
- const re = j[k];
1003
+ const b = O.getIndexWithinParent(), y = Math.min(F.getChildrenSize() - 1, b + v - 1), S = K.getIndexWithinParent(), P = Math.min(O.getChildrenSize() - 1, S + E - 1), L = Math.min(S, P), H = Math.min(b, y), j = Math.max(S, P), U = Math.max(b, y), q = F.getChildren();
1004
+ let J = 0;
1005
+ for (let k = H; k <= U; k++) {
1006
+ const re = q[k];
1007
1007
  if (!W(re)) return !1;
1008
- const De = N[U];
1008
+ const De = N[J];
1009
1009
  if (!W(De)) return !1;
1010
1010
  const Nt = re.getChildren(), xt = De.getChildren();
1011
1011
  let Pe = 0;
1012
- for (let _e = L; _e <= X; _e++) {
1012
+ for (let _e = L; _e <= j; _e++) {
1013
1013
  const fe = Nt[_e];
1014
1014
  if (!m(fe)) return !1;
1015
1015
  const Ae = xt[Pe];
1016
1016
  if (!m(Ae)) return !1;
1017
1017
  const vt = fe.getChildren();
1018
1018
  Ae.getChildren().forEach((Z) => {
1019
- $(Z) && G().append(Z), fe.append(Z);
1019
+ V(Z) && z().append(Z), fe.append(Z);
1020
1020
  }), vt.forEach((Z) => Z.remove()), Pe++;
1021
1021
  }
1022
- U++;
1022
+ J++;
1023
1023
  }
1024
1024
  return !0;
1025
1025
  }, B)), r.listenersToRemove.add(t.registerCommand(se, () => {
@@ -1035,7 +1035,7 @@ function zn(n, e, t, o) {
1035
1035
  const [b] = ne(n, w, w), y = b[0][0].cell, S = b[b.length - 1].at(-1).cell;
1036
1036
  F.anchor.set(O ? S.getKey() : y.getKey(), O ? S.getChildrenSize() : 0, "element");
1037
1037
  }
1038
- q(F), $e(t, r);
1038
+ $(F), $e(t, r);
1039
1039
  } else K && (w.is(C) || (r.setAnchorCellForSelection(h(w)), r.setFocusCellForSelection(h(C), !0), r.isSelecting || setTimeout(() => {
1040
1040
  const { onMouseUp: F, onMouseMove: b } = a();
1041
1041
  r.isSelecting = !0, l.addEventListener("mouseup", F), l.addEventListener("mousemove", b);
@@ -1043,10 +1043,10 @@ function zn(n, e, t, o) {
1043
1043
  } else if (i && R(i) && i.is(c) && i.tableKey === n.getKey()) {
1044
1044
  const u = Ct(t._window);
1045
1045
  if (u && u.anchorNode && u.focusNode) {
1046
- const g = Y(u.focusNode), f = g && !n.is(te(g)), p = Y(u.anchorNode), w = p && n.is(te(p));
1046
+ const g = X(u.focusNode), f = g && !n.is(te(g)), p = X(u.anchorNode), w = p && n.is(te(p));
1047
1047
  if (f && w && u.rangeCount > 0) {
1048
1048
  const C = Zt(u, t);
1049
- C && (C.anchor.set(n.getKey(), i.isBackward() ? n.getChildrenSize() : 0, "element"), u.removeAllRanges(), q(C));
1049
+ C && (C.anchor.set(n.getKey(), i.isBackward() ? n.getChildrenSize() : 0, "element"), u.removeAllRanges(), $(C));
1050
1050
  }
1051
1051
  }
1052
1052
  }
@@ -1058,7 +1058,7 @@ function zn(n, e, t, o) {
1058
1058
  }(t, r) : !r.hasHijackedSelectionStyles && n.isSelected() && $e(t, r), !1);
1059
1059
  }, B)), r.listenersToRemove.add(t.registerCommand(Qt, () => {
1060
1060
  const i = D();
1061
- if (!A(i) || !i.isCollapsed() || !V(i, n)) return !1;
1061
+ if (!A(i) || !i.isCollapsed() || !G(i, n)) return !1;
1062
1062
  const c = Ge(t, i, n);
1063
1063
  return !!c && (Ve(c, n), !0);
1064
1064
  }, B)), r;
@@ -1123,7 +1123,7 @@ function Ke(n, e) {
1123
1123
  if (s) for (let r = 0; r < s.length; r++) {
1124
1124
  const l = s[r];
1125
1125
  if (!l) continue;
1126
- const a = Y(l.elem);
1126
+ const a = X(l.elem);
1127
1127
  a !== null && e(l, a, { x: r, y: o });
1128
1128
  }
1129
1129
  }
@@ -1160,7 +1160,7 @@ const St = (n, e, t, o, s) => {
1160
1160
  return !1;
1161
1161
  }
1162
1162
  };
1163
- function V(n, e) {
1163
+ function G(n, e) {
1164
1164
  if (A(n) || R(n)) {
1165
1165
  const t = e.isParentOf(n.anchor.getNode()), o = e.isParentOf(n.focus.getNode());
1166
1166
  return t && o;
@@ -1172,11 +1172,11 @@ function pe(n, e) {
1172
1172
  }
1173
1173
  const Ne = "172,206,247";
1174
1174
  function bt(n, e) {
1175
- const t = e.elem, o = Y(t);
1175
+ const t = e.elem, o = X(t);
1176
1176
  m(o) || x(131), o.getBackgroundColor() === null ? t.style.setProperty("background-color", `rgb(${Ne})`) : t.style.setProperty("background-image", `linear-gradient(to right, rgba(${Ne},0.85), rgba(${Ne},0.85))`), t.style.setProperty("caret-color", "transparent");
1177
1177
  }
1178
1178
  function yt(n, e) {
1179
- const t = e.elem, o = Y(t);
1179
+ const t = e.elem, o = X(t);
1180
1180
  m(o) || x(131), o.getBackgroundColor() === null && t.style.removeProperty("background-color"), t.style.removeProperty("background-image"), t.style.removeProperty("caret-color");
1181
1181
  }
1182
1182
  function xe(n) {
@@ -1193,7 +1193,7 @@ function ie(n, e, t, o, s) {
1193
1193
  return a ? a.hasAttribute("aria-controls") && a.getAttribute("aria-controls") === "typeahead-menu" : !1;
1194
1194
  }(n)) return !1;
1195
1195
  const r = D();
1196
- if (!V(r, o)) {
1196
+ if (!G(r, o)) {
1197
1197
  if (A(r)) {
1198
1198
  if (r.isCollapsed() && t === "backward") {
1199
1199
  const l = r.anchor.type, a = r.anchor.offset;
@@ -1203,7 +1203,7 @@ function ie(n, e, t, o, s) {
1203
1203
  const h = _(d, (c) => T(c) && !c.isInline());
1204
1204
  if (!h) return !1;
1205
1205
  const i = h.getPreviousSibling();
1206
- return !(!i || !M(i)) && (J(e), i.selectEnd(), !0);
1206
+ return !(!i || !M(i)) && (Y(e), i.selectEnd(), !0);
1207
1207
  }
1208
1208
  if (e.shiftKey && (t === "up" || t === "down")) {
1209
1209
  const l = r.focus.getNode();
@@ -1215,9 +1215,9 @@ function ie(n, e, t, o, s) {
1215
1215
  let h = 0;
1216
1216
  t === "up" && T(d) && (h = d.getChildrenSize());
1217
1217
  let i = d;
1218
- t === "up" && T(d) && (i = d.getLastChild() || d, h = $(i) ? i.getTextContentSize() : 0);
1218
+ t === "up" && T(d) && (i = d.getLastChild() || d, h = V(i) ? i.getTextContentSize() : 0);
1219
1219
  const c = r.clone();
1220
- return c.focus.set(i.getKey(), h, $(i) ? "text" : "element"), q(c), J(e), !0;
1220
+ return c.focus.set(i.getKey(), h, V(i) ? "text" : "element"), $(c), Y(e), !0;
1221
1221
  }
1222
1222
  if (it(l)) {
1223
1223
  const a = t === "up" ? r.getNodes()[r.getNodes().length - 1] : r.getNodes()[0];
@@ -1240,7 +1240,7 @@ function ie(n, e, t, o, s) {
1240
1240
  const h = d.getFirstDescendant(), i = d.getLastDescendant();
1241
1241
  if (!h || !i) return !1;
1242
1242
  const [c] = le(h), [u] = le(i), g = r.clone();
1243
- return g.focus.set((t === "up" ? c : u).getKey(), t === "up" ? 0 : u.getChildrenSize(), "element"), J(e), q(g), !0;
1243
+ return g.focus.set((t === "up" ? c : u).getKey(), t === "up" ? 0 : u.getChildrenSize(), "element"), Y(e), $(g), !0;
1244
1244
  }
1245
1245
  }
1246
1246
  }
@@ -1263,26 +1263,26 @@ function ie(n, e, t, o, s) {
1263
1263
  return function(y, S, P) {
1264
1264
  return y === "element" && (P === "backward" ? S.getPreviousSibling() === null : S.getNextSibling() === null);
1265
1265
  }(K, F, b) || function(y, S, P, L) {
1266
- const H = _(P, (z) => T(z) && !z.isInline());
1266
+ const H = _(P, (U) => T(U) && !U.isInline());
1267
1267
  if (!H) return !1;
1268
- const X = L === "backward" ? S === 0 : S === P.getTextContentSize();
1269
- return y === "text" && X && (L === "backward" ? H.getPreviousSibling() === null : H.getNextSibling() === null);
1268
+ const j = L === "backward" ? S === 0 : S === P.getTextContentSize();
1269
+ return y === "text" && j && (L === "backward" ? H.getPreviousSibling() === null : H.getNextSibling() === null);
1270
1270
  }(K, O, F, b);
1271
1271
  }(C, N, E, t) && function(K, O, F, b) {
1272
1272
  const y = _(O, m);
1273
1273
  if (!m(y)) return !1;
1274
1274
  const [S, P] = ne(F, y, y);
1275
- if (!function(H, X, z) {
1276
- const j = H[0][0], U = H[H.length - 1][H[0].length - 1], { startColumn: k, startRow: re } = X;
1277
- return z === "backward" ? k === j.startColumn && re === j.startRow : k === U.startColumn && re === U.startRow;
1275
+ if (!function(H, j, U) {
1276
+ const q = H[0][0], J = H[H.length - 1][H[0].length - 1], { startColumn: k, startRow: re } = j;
1277
+ return U === "backward" ? k === q.startColumn && re === q.startRow : k === J.startColumn && re === J.startRow;
1278
1278
  }(S, P, b)) return !1;
1279
- const L = function(H, X, z) {
1280
- const j = _(H, (k) => T(k) && !k.isInline());
1281
- if (!j) return;
1282
- const U = X === "backward" ? j.getPreviousSibling() : j.getNextSibling();
1283
- return U && M(U) ? U : X === "backward" ? z.getPreviousSibling() : z.getNextSibling();
1279
+ const L = function(H, j, U) {
1280
+ const q = _(H, (k) => T(k) && !k.isInline());
1281
+ if (!q) return;
1282
+ const J = j === "backward" ? q.getPreviousSibling() : q.getNextSibling();
1283
+ return J && M(J) ? J : j === "backward" ? U.getPreviousSibling() : U.getNextSibling();
1284
1284
  }(O, b, F);
1285
- return !L || M(L) ? !1 : (J(K), b === "backward" ? L.selectEnd() : L.selectStart(), !0);
1285
+ return !L || M(L) ? !1 : (Y(K), b === "backward" ? L.selectEnd() : L.selectStart(), !0);
1286
1286
  }(e, E, o, t);
1287
1287
  }
1288
1288
  const c = n.getElementByKey(d.__key), u = n.getElementByKey(l.key);
@@ -1300,7 +1300,7 @@ function ie(n, e, t, o, s) {
1300
1300
  if (p == null) return !1;
1301
1301
  const w = p.getBoundingClientRect();
1302
1302
  if (t === "up" ? w.top > g.top - g.height : g.bottom + g.height > w.bottom) {
1303
- J(e);
1303
+ Y(e);
1304
1304
  const C = o.getCordsFromCellNode(d, s.table);
1305
1305
  if (!e.shiftKey) return St(s, o, C.x, C.y, t);
1306
1306
  {
@@ -1314,7 +1314,7 @@ function ie(n, e, t, o, s) {
1314
1314
  if (!m(d) || !m(h) || !M(i) || c == null) return !1;
1315
1315
  s.updateTableTableSelection(r);
1316
1316
  const u = ce(c), g = o.getCordsFromCellNode(d, u), f = o.getDOMCellFromCordsOrThrow(g.x, g.y, u);
1317
- if (s.setAnchorCellForSelection(f), J(e), e.shiftKey) {
1317
+ if (s.setAnchorCellForSelection(f), Y(e), e.shiftKey) {
1318
1318
  const p = o.getCordsFromCellNode(h, u);
1319
1319
  return Kn(s, i, p.x, p.y, t);
1320
1320
  }
@@ -1322,11 +1322,11 @@ function ie(n, e, t, o, s) {
1322
1322
  }
1323
1323
  return !1;
1324
1324
  }
1325
- function J(n) {
1325
+ function Y(n) {
1326
1326
  n.preventDefault(), n.stopImmediatePropagation(), n.stopPropagation();
1327
1327
  }
1328
1328
  function Ve(n, e, t) {
1329
- const o = G();
1329
+ const o = z();
1330
1330
  n === "first" ? e.insertBefore(o) : e.insertAfter(o), o.append(...t || []), o.selectEnd();
1331
1331
  }
1332
1332
  function Ge(n, e, t) {
@@ -1421,7 +1421,7 @@ class ye extends Fe {
1421
1421
  const a = l.findIndex((d) => {
1422
1422
  if (!d) return;
1423
1423
  const { elem: h } = d;
1424
- return Y(h) === e;
1424
+ return X(h) === e;
1425
1425
  });
1426
1426
  if (a !== -1) return { x: a, y: r };
1427
1427
  }
@@ -1441,7 +1441,7 @@ class ye extends Fe {
1441
1441
  getCellNodeFromCords(e, t, o) {
1442
1442
  const s = this.getDOMCellFromCords(e, t, o);
1443
1443
  if (s == null) return null;
1444
- const r = Y(s.elem);
1444
+ const r = X(s.elem);
1445
1445
  return m(r) ? r : null;
1446
1446
  }
1447
1447
  getCellNodeFromCordsOrThrow(e, t, o) {
@@ -1500,7 +1500,7 @@ const _t = 100, Un = (n, e) => {
1500
1500
  const s = he();
1501
1501
  for (let r = 0; r < e; r++) {
1502
1502
  const l = oe(0, void 0, _t / e);
1503
- s.append(l);
1503
+ l.append(z()), s.append(l);
1504
1504
  }
1505
1505
  t.append(s);
1506
1506
  }
@@ -1517,7 +1517,7 @@ const _t = 100, Un = (n, e) => {
1517
1517
  const t = he(), o = ge(n), s = o.getChildrenSize();
1518
1518
  for (let l = 0; l < s; l++) {
1519
1519
  const a = oe(0);
1520
- t.append(a);
1520
+ a.append(z()), t.append(a);
1521
1521
  }
1522
1522
  e === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
1523
1523
  const r = t.getFirstDescendant();
@@ -1530,7 +1530,9 @@ const _t = 100, Un = (n, e) => {
1530
1530
  let l = wt(n);
1531
1531
  const a = r.getChildren(), d = a.length;
1532
1532
  for (let i = 0; i < d; i++) {
1533
- const c = oe(0), u = a[i].getChildren()[l];
1533
+ const c = oe(0);
1534
+ c.append(z());
1535
+ const u = a[i].getChildren()[l];
1534
1536
  u && (e === "insertColumnLeft" ? u.insertBefore(c) : u.insertAfter(c)), a.forEach((g) => {
1535
1537
  g.getChildren().forEach((f) => {
1536
1538
  f.setWidth(_t / s);
@@ -1575,4 +1577,4 @@ export {
1575
1577
  Wn as r,
1576
1578
  ye as u
1577
1579
  };
1578
- //# sourceMappingURL=helpers-pUTvcL4e.js.map
1580
+ //# sourceMappingURL=helpers-CVB_4CnL.js.map