@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.
- package/dist/LexicalClipboard.prod-C6LsK5E6.js +311 -0
- package/dist/LexicalClipboard.prod-C6LsK5E6.js.map +1 -0
- package/dist/LexicalTable.prod-DqzrJuYr.js +1221 -0
- package/dist/LexicalTable.prod-DqzrJuYr.js.map +1 -0
- package/dist/{LexicalUtils.prod-DlLRWqta.js → LexicalUtils.prod-BTFNWAMw.js} +33 -42
- package/dist/{LexicalUtils.prod-DlLRWqta.js.map → LexicalUtils.prod-BTFNWAMw.js.map} +1 -1
- package/dist/{TablePlugin-B3ZkyOU_.js → TablePlugin-BLzR0g93.js} +58 -55
- package/dist/{TablePlugin-B3ZkyOU_.js.map → TablePlugin-BLzR0g93.js.map} +1 -1
- package/dist/assets/AccordionCard.css +1 -0
- package/dist/components/AccordionCard/AccordionCard.d.ts +10 -0
- package/dist/components/AccordionCard/AccordionCard.js +58 -0
- package/dist/components/AccordionCard/AccordionCard.js.map +1 -0
- package/dist/components/AccordionCard/AccordionCard.stories.d.ts +5 -0
- package/dist/components/AccordionCard/AccordionCard.stories.js +33 -0
- package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -0
- package/dist/components/AccordionCard/index.d.ts +1 -0
- package/dist/components/AccordionCard/index.js +5 -0
- package/dist/components/AccordionCard/index.js.map +1 -0
- package/dist/components/CheckboxTree/CheckboxTree.js +24 -20
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/FormInput/FormInput.js +15 -11
- package/dist/components/FormInput/FormInput.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +16 -12
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +6 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +22 -18
- package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +20 -16
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +7 -3
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +16 -16
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +19 -16
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +7 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +100 -98
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +36 -36
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +31 -0
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +6 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +7 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +36 -36
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +361 -358
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +27 -27
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +98 -96
- package/dist/components/index.js.map +1 -1
- package/dist/helpers-B-pdj8pq.js +168 -0
- package/dist/{helpers-CC9_diXm.js.map → helpers-B-pdj8pq.js.map} +1 -1
- package/dist/index.js +98 -96
- package/dist/index.js.map +1 -1
- package/package.json +13 -16
- package/dist/Lexical.prod-DOTdxgeo.js +0 -4072
- package/dist/Lexical.prod-DOTdxgeo.js.map +0 -1
- package/dist/LexicalLink.prod-Cqa5Im8X.js +0 -208
- package/dist/LexicalLink.prod-Cqa5Im8X.js.map +0 -1
- package/dist/LexicalList.prod-DlqzsJTH.js +0 -564
- package/dist/LexicalList.prod-DlqzsJTH.js.map +0 -1
- package/dist/LexicalTable.prod-BKz2StgB.js +0 -1525
- package/dist/LexicalTable.prod-BKz2StgB.js.map +0 -1
- package/dist/helpers-CC9_diXm.js +0 -168
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PasteHandlerPlugin';
|
|
@@ -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
|
|
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
|
-
|
|
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-
|
|
5
|
-
import "
|
|
4
|
+
import "../../../../LexicalTable.prod-DqzrJuYr.js";
|
|
5
|
+
import "lexical";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as
|
|
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
|
-
|
|
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
|
|
2
|
-
import {
|
|
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
|
-
},
|
|
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
|
-
},
|
|
20
|
+
}, v = (e) => {
|
|
21
21
|
w(e).remove();
|
|
22
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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 ?
|
|
56
|
+
t === 1 ? v(e) : I(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
59
|
O as createTable,
|
|
60
60
|
B as deleteColumn,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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,36 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { useState as
|
|
5
|
-
import { g as b } from "../../../../LexicalTable.prod-
|
|
6
|
-
import { BlockFormatPlugin as
|
|
7
|
-
import { ListPlugin as
|
|
8
|
-
import { LinkPlugin as
|
|
9
|
-
import { HistoryPlugin as
|
|
10
|
-
import { T as
|
|
11
|
-
import { TableCellContextMenu as
|
|
12
|
-
import { s as
|
|
13
|
-
import { setScrollableContainers as
|
|
14
|
-
const
|
|
15
|
-
const [t] =
|
|
16
|
-
const e =
|
|
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
|
|
19
|
-
if (
|
|
20
|
-
const
|
|
21
|
-
|
|
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
|
-
|
|
23
|
+
l(null);
|
|
24
24
|
}
|
|
25
|
-
}, [t]),
|
|
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 =
|
|
30
|
+
const e = p();
|
|
31
31
|
if (h(e)) {
|
|
32
|
-
const
|
|
33
|
-
b(
|
|
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(() => (
|
|
44
|
-
window.removeEventListener("scroll", o), window.removeEventListener("resize", 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
|
-
|
|
47
|
+
w(o);
|
|
48
48
|
};
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: z.editor__toolbar, children: [
|
|
53
|
+
/* @__PURE__ */ n(T, {}),
|
|
53
54
|
/* @__PURE__ */ n(N, {}),
|
|
54
|
-
/* @__PURE__ */ n(
|
|
55
|
-
/* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
|
|
55
|
+
/* @__PURE__ */ n(B, { isActive: !!i, ref: u }),
|
|
56
56
|
i && /* @__PURE__ */ n(
|
|
57
|
-
|
|
57
|
+
R,
|
|
58
58
|
{
|
|
59
59
|
position: i,
|
|
60
60
|
parentScrollPosition: d,
|
|
61
|
-
onAction:
|
|
61
|
+
onAction: v
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
/* @__PURE__ */ n(
|
|
65
|
-
/* @__PURE__ */ n(
|
|
64
|
+
/* @__PURE__ */ n(k, { parentScrollPosition: d }),
|
|
65
|
+
/* @__PURE__ */ n(x, {})
|
|
66
66
|
] });
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
69
|
-
|
|
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-
|
|
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,
|