@uva-glass/component-library 1.62.12 → 1.64.0

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 (80) hide show
  1. package/dist/LexicalClipboard.prod-C6LsK5E6.js +311 -0
  2. package/dist/LexicalClipboard.prod-C6LsK5E6.js.map +1 -0
  3. package/dist/LexicalTable.prod-DqzrJuYr.js +1221 -0
  4. package/dist/LexicalTable.prod-DqzrJuYr.js.map +1 -0
  5. package/dist/{LexicalUtils.prod-DlLRWqta.js → LexicalUtils.prod-BTFNWAMw.js} +33 -42
  6. package/dist/{LexicalUtils.prod-DlLRWqta.js.map → LexicalUtils.prod-BTFNWAMw.js.map} +1 -1
  7. package/dist/{TablePlugin-B3ZkyOU_.js → TablePlugin-BLzR0g93.js} +58 -55
  8. package/dist/{TablePlugin-B3ZkyOU_.js.map → TablePlugin-BLzR0g93.js.map} +1 -1
  9. package/dist/assets/AccordionCard.css +1 -0
  10. package/dist/components/AccordionCard/AccordionCard.d.ts +10 -0
  11. package/dist/components/AccordionCard/AccordionCard.js +58 -0
  12. package/dist/components/AccordionCard/AccordionCard.js.map +1 -0
  13. package/dist/components/AccordionCard/AccordionCard.stories.d.ts +5 -0
  14. package/dist/components/AccordionCard/AccordionCard.stories.js +33 -0
  15. package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -0
  16. package/dist/components/AccordionCard/index.d.ts +1 -0
  17. package/dist/components/AccordionCard/index.js +5 -0
  18. package/dist/components/AccordionCard/index.js.map +1 -0
  19. package/dist/components/CheckboxTree/CheckboxTree.js +24 -20
  20. package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
  21. package/dist/components/FormInput/FormInput.js +15 -11
  22. package/dist/components/FormInput/FormInput.js.map +1 -1
  23. package/dist/components/InputField/InputField.stories.js +16 -12
  24. package/dist/components/InputField/InputField.stories.js.map +1 -1
  25. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  26. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  27. package/dist/components/MultiSelect/components/MultiSelectHeader.js +6 -2
  28. package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
  29. package/dist/components/MultiSelect/index.js +1 -1
  30. package/dist/components/PeriodSelector/PeriodSelector.js +22 -18
  31. package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
  32. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +20 -16
  33. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  34. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +7 -3
  35. package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +1 -1
  36. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +16 -16
  37. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +19 -16
  38. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
  39. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +7 -3
  40. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +1 -1
  41. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  42. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +100 -98
  43. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
  44. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  45. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +36 -36
  46. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
  47. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.d.ts +1 -0
  48. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +31 -0
  49. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +1 -0
  50. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.d.ts +1 -0
  51. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +5 -0
  52. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js.map +1 -0
  53. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +6 -2
  54. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -1
  55. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +7 -4
  56. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -1
  57. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
  58. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  59. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +36 -36
  60. package/dist/components/RteEditor/Plugins/index.js +1 -1
  61. package/dist/components/RteEditor/RteEditor.js +361 -358
  62. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  63. package/dist/components/RteEditor/helpers.js +27 -27
  64. package/dist/components/index.d.ts +1 -0
  65. package/dist/components/index.js +98 -96
  66. package/dist/components/index.js.map +1 -1
  67. package/dist/helpers-B-pdj8pq.js +168 -0
  68. package/dist/{helpers-CC9_diXm.js.map → helpers-B-pdj8pq.js.map} +1 -1
  69. package/dist/index.js +98 -96
  70. package/dist/index.js.map +1 -1
  71. package/package.json +13 -16
  72. package/dist/Lexical.prod-DOTdxgeo.js +0 -4072
  73. package/dist/Lexical.prod-DOTdxgeo.js.map +0 -1
  74. package/dist/LexicalLink.prod-Cqa5Im8X.js +0 -208
  75. package/dist/LexicalLink.prod-Cqa5Im8X.js.map +0 -1
  76. package/dist/LexicalList.prod-DlqzsJTH.js +0 -564
  77. package/dist/LexicalList.prod-DlqzsJTH.js.map +0 -1
  78. package/dist/LexicalTable.prod-BKz2StgB.js +0 -1525
  79. package/dist/LexicalTable.prod-BKz2StgB.js.map +0 -1
  80. package/dist/helpers-CC9_diXm.js +0 -168
@@ -0,0 +1 @@
1
+ export * from './PasteHandlerPlugin';
@@ -0,0 +1,5 @@
1
+ import { PasteHandlerPlugin as a } from "./PasteHandlerPlugin.js";
2
+ export {
3
+ a as PasteHandlerPlugin
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as y } from "../../../../TablePlugin-B3ZkyOU_.js";
3
+ import { b as D } from "../../../../TablePlugin-BLzR0g93.js";
4
4
  import "../../../Buttons/Button.js";
5
5
  import "../../../Buttons/LinkButton.js";
6
6
  import "@react-aria/button";
@@ -15,16 +15,20 @@ import "../../../IconButton/IconButton.js";
15
15
  import "../../../Input/Input.js";
16
16
  import "../../../InputField/InputField.js";
17
17
  import "react-router-dom";
18
+ import "lexical";
19
+ import "@lexical/list";
20
+ import "@lexical/link";
18
21
  import "../../helpers.js";
19
22
  import "../../hooks/useTranslation.js";
20
23
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
24
  import "../../hooks/components/Flyout.js";
22
25
  import "../../Providers/LanguageProvider.js";
26
+ import "@staartwind.nl/lexical-paste-from-word";
23
27
  import "../../../SelectListbox/SelectListbox.js";
24
28
  import "../../../SelectListbox/SelectProvider.js";
25
29
  import "../../../Sortable/components/SortableItem.js";
26
30
  import "../../../../SortableProvider-BUsvniX7.js";
27
31
  export {
28
- y as AddTableForm
32
+ D as AddTableForm
29
33
  };
30
34
  //# sourceMappingURL=AddTableFrom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddTableFrom.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"AddTableFrom.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
3
  import "../../../../clsx-OuTLNxxd.js";
4
- import "../../../../LexicalTable.prod-BKz2StgB.js";
5
- import "../../../../Lexical.prod-DOTdxgeo.js";
4
+ import "../../../../LexicalTable.prod-DqzrJuYr.js";
5
+ import "lexical";
6
6
  import "react";
7
- import { T as D } from "../../../../TablePlugin-B3ZkyOU_.js";
7
+ import { T as G } from "../../../../TablePlugin-BLzR0g93.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -20,15 +20,18 @@ import "../../../IconButton/IconButton.js";
20
20
  import "../../../Input/Input.js";
21
21
  import "../../../InputField/InputField.js";
22
22
  import "react-router-dom";
23
+ import "@lexical/list";
24
+ import "@lexical/link";
23
25
  import "../../../../RteEditor.module-DcvGRx3a.js";
24
26
  import "../../hooks/useTranslation.js";
25
27
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
26
28
  import "../../Providers/LanguageProvider.js";
29
+ import "@staartwind.nl/lexical-paste-from-word";
27
30
  import "../../../SelectListbox/SelectListbox.js";
28
31
  import "../../../SelectListbox/SelectProvider.js";
29
32
  import "../../../Sortable/components/SortableItem.js";
30
33
  import "../../../../SortableProvider-BUsvniX7.js";
31
34
  export {
32
- D as TablePlugin
35
+ G as TablePlugin
33
36
  };
34
37
  //# sourceMappingURL=TablePlugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TablePlugin.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"TablePlugin.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
- import { d as S, a as h, n as d, f as C, p as w, o as m, m as D, C as p, T as E } from "../../../../LexicalTable.prod-BKz2StgB.js";
2
- import { D as u } from "../../../../Lexical.prod-DOTdxgeo.js";
1
+ import { d as S, a as h, n as d, f as C, p as w, o as m, m as E, C as p, T as I } from "../../../../LexicalTable.prod-DqzrJuYr.js";
2
+ import { $createParagraphNode as u } from "lexical";
3
3
  const b = 100, O = (e, n) => {
4
4
  const t = S(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
@@ -11,15 +11,15 @@ const b = 100, O = (e, n) => {
11
11
  t.append(r);
12
12
  }
13
13
  return t;
14
- }, z = (e) => {
14
+ }, P = (e) => {
15
15
  const n = C(e), t = n.getNextSibling() || n.getPreviousSibling(), o = n.getParentOrThrow();
16
16
  if (o.getChildrenSize() > 1 ? n.remove() : o.remove(), t !== null) {
17
17
  const r = t.getFirstDescendant();
18
18
  r && r.select();
19
19
  }
20
- }, I = (e) => {
20
+ }, v = (e) => {
21
21
  w(e).remove();
22
- }, F = (e, n) => {
22
+ }, z = (e, n) => {
23
23
  const t = h(), o = C(e), r = o.getChildrenSize();
24
24
  for (let s = 0; s < r; s++) {
25
25
  const c = d(0);
@@ -28,11 +28,11 @@ const b = 100, O = (e, n) => {
28
28
  n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
29
29
  const l = t.getFirstDescendant();
30
30
  l && l.select();
31
- }, P = (e, n) => {
31
+ }, F = (e, n) => {
32
32
  const t = C(e);
33
33
  if (!m(e))
34
34
  throw new Error("Selected node is not a TableCellNode");
35
- const o = D(e), r = t.getChildren().length, l = w(e);
35
+ const o = E(e), r = t.getChildren().length, l = w(e);
36
36
  let s = p(e);
37
37
  const c = l.getChildren(), T = c.length;
38
38
  for (let i = 0; i < T; i++) {
@@ -53,14 +53,14 @@ const b = 100, O = (e, n) => {
53
53
  if (!m(e))
54
54
  throw new Error("Selected node is not a TableCellNode");
55
55
  const n = w(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = p(e);
56
- t === 1 ? I(e) : E(n, o);
56
+ t === 1 ? v(e) : I(n, o);
57
57
  };
58
58
  export {
59
59
  O as createTable,
60
60
  B as deleteColumn,
61
- z as deleteRow,
62
- I as deleteTable,
63
- P as insertColumn,
64
- F as insertRow
61
+ P as deleteRow,
62
+ v as deleteTable,
63
+ F as insertColumn,
64
+ z as insertRow
65
65
  };
66
66
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-B3ZkyOU_.js";
1
+ import { T as o } from "../../../../TablePlugin-BLzR0g93.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,36 +1,36 @@
1
- import { jsxs as E, jsx as n } from "react/jsx-runtime";
2
- import { u as P } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
- import { M as g, v as h, E as y } from "../../../../Lexical.prod-DOTdxgeo.js";
4
- import { useState as C, useRef as L, useCallback as T, useEffect as m } from "react";
5
- import { g as b } from "../../../../LexicalTable.prod-BKz2StgB.js";
6
- import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
- import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
8
- import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
9
- import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
10
- import { T as S } from "../../../../TablePlugin-B3ZkyOU_.js";
11
- import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
- import { s as A } from "../../../../RteEditor.module-DcvGRx3a.js";
13
- import { setScrollableContainers as v, removeScrollableContainers as K } from "../../helpers.js";
14
- const Q = ({ editorScrollPosition: d }) => {
15
- const [t] = P(), [i, s] = C(null), u = L(null), f = T(() => {
16
- const e = g();
1
+ import { jsxs as P, jsx as n } from "react/jsx-runtime";
2
+ import { u as y } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
+ import { $getSelection as p, $isRangeSelection as h, $setSelection as C } from "lexical";
4
+ import { useState as L, useRef as E, useCallback as S, useEffect as m } from "react";
5
+ import { g as b } from "../../../../LexicalTable.prod-DqzrJuYr.js";
6
+ import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
+ import { ListPlugin as N } from "../ListPlugin/ListPlugin.js";
8
+ import { LinkPlugin as k } from "../LinkPlugin/LinkPlugin.js";
9
+ import { HistoryPlugin as x } from "../HistoryPlugin/HistoryPlugin.js";
10
+ import { T as B } from "../../../../TablePlugin-BLzR0g93.js";
11
+ import { TableCellContextMenu as R } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
+ import { s as z } from "../../../../RteEditor.module-DcvGRx3a.js";
13
+ import { setScrollableContainers as w, removeScrollableContainers as A } from "../../helpers.js";
14
+ const O = ({ editorScrollPosition: d }) => {
15
+ const [t] = y(), [i, l] = L(null), u = E(null), f = S(() => {
16
+ const e = p();
17
17
  if (h(e)) {
18
- const l = e.anchor.getNode(), a = b(l);
19
- if (a) {
20
- const p = t.getElementByKey(a.getKey()), c = p ? p.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
21
- s({ xPos: c.right, yPos: c.bottom, height: c.height });
18
+ const s = e.anchor.getNode(), c = b(s);
19
+ if (c) {
20
+ const g = t.getElementByKey(c.getKey()), a = g ? g.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
21
+ l({ xPos: a.right, yPos: a.bottom, height: a.height });
22
22
  } else
23
- s(null);
23
+ l(null);
24
24
  }
25
- }, [t]), w = (e) => {
25
+ }, [t]), v = (e) => {
26
26
  var r;
27
27
  (r = u.current) == null || r.mutateTable(e);
28
28
  }, o = () => {
29
29
  t.update(() => {
30
- const e = g();
30
+ const e = p();
31
31
  if (h(e)) {
32
- const l = e.anchor.getNode();
33
- b(l) && (y(null), s(null));
32
+ const s = e.anchor.getNode();
33
+ b(s) && (C(null), l(null));
34
34
  }
35
35
  });
36
36
  };
@@ -40,32 +40,32 @@ const Q = ({ editorScrollPosition: d }) => {
40
40
  f();
41
41
  });
42
42
  });
43
- }, [t, f]), m(() => (v(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
- window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
43
+ }, [t, f]), m(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
+ window.removeEventListener("scroll", o), window.removeEventListener("resize", o), A(o);
45
45
  }), [t]), m(() => {
46
46
  const e = () => {
47
- v(o);
47
+ w(o);
48
48
  };
49
49
  return window.addEventListener("keydown", e, { capture: !0 }), () => {
50
50
  window.removeEventListener("keydown", e);
51
51
  };
52
- }, []), /* @__PURE__ */ E("div", { className: A.editor__toolbar, children: [
52
+ }, []), /* @__PURE__ */ P("div", { className: z.editor__toolbar, children: [
53
+ /* @__PURE__ */ n(T, {}),
53
54
  /* @__PURE__ */ n(N, {}),
54
- /* @__PURE__ */ n(k, {}),
55
- /* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
55
+ /* @__PURE__ */ n(B, { isActive: !!i, ref: u }),
56
56
  i && /* @__PURE__ */ n(
57
- z,
57
+ R,
58
58
  {
59
59
  position: i,
60
60
  parentScrollPosition: d,
61
- onAction: w
61
+ onAction: v
62
62
  }
63
63
  ),
64
- /* @__PURE__ */ n(x, { parentScrollPosition: d }),
65
- /* @__PURE__ */ n(B, {})
64
+ /* @__PURE__ */ n(k, { parentScrollPosition: d }),
65
+ /* @__PURE__ */ n(x, {})
66
66
  ] });
67
67
  };
68
68
  export {
69
- Q as ToolBarPlugin
69
+ O as ToolBarPlugin
70
70
  };
71
71
  //# sourceMappingURL=ToolbarPlugin.js.map
@@ -3,7 +3,7 @@ import { BlockFormatPlugin as l } from "./BlockFormatPlugin/BlockFormatPlugin.js
3
3
  import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
4
4
  import { LinkPlugin as m, getLinkNodeTag as x } from "./LinkPlugin/LinkPlugin.js";
5
5
  import { HistoryPlugin as p } from "./HistoryPlugin/HistoryPlugin.js";
6
- import { T as a } from "../../../TablePlugin-B3ZkyOU_.js";
6
+ import { T as a } from "../../../TablePlugin-BLzR0g93.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,