@uva-glass/component-library 3.2.0 → 3.2.2
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/{Lexical.prod-Bu-Iw9VX.js → Lexical.prod-CniF7zEE.js} +670 -666
- package/dist/Lexical.prod-CniF7zEE.js.map +1 -0
- package/dist/{LexicalClipboard.prod-C5dHfEke.js → LexicalClipboard.prod-BXVNkwwS.js} +42 -42
- package/dist/{LexicalClipboard.prod-C5dHfEke.js.map → LexicalClipboard.prod-BXVNkwwS.js.map} +1 -1
- package/dist/{LexicalLink.prod-DdERpPPj.js → LexicalLink.prod-Du8ZoNsh.js} +3 -3
- package/dist/{LexicalLink.prod-DdERpPPj.js.map → LexicalLink.prod-Du8ZoNsh.js.map} +1 -1
- package/dist/{LexicalList.prod-CzJqqstH.js → LexicalList.prod-BUcoZhe4.js} +35 -35
- package/dist/{LexicalList.prod-CzJqqstH.js.map → LexicalList.prod-BUcoZhe4.js.map} +1 -1
- package/dist/{LexicalSelection.prod-CkM-3E0b.js → LexicalSelection.prod-BfAlhGGm.js} +25 -25
- package/dist/{LexicalSelection.prod-CkM-3E0b.js.map → LexicalSelection.prod-BfAlhGGm.js.map} +1 -1
- package/dist/{LexicalTable.prod-BsmIydKv.js → LexicalTable.prod-CYafu_j9.js} +458 -453
- package/dist/LexicalTable.prod-CYafu_j9.js.map +1 -0
- package/dist/{LexicalUtils.prod-BVZbsLIa.js → LexicalUtils.prod-DVr8VsHc.js} +36 -36
- package/dist/{LexicalUtils.prod-BVZbsLIa.js.map → LexicalUtils.prod-DVr8VsHc.js.map} +1 -1
- package/dist/{TablePlugin-DKzssVbg.js → TablePlugin-MjKuocl4.js} +53 -53
- package/dist/{TablePlugin-DKzssVbg.js.map → TablePlugin-MjKuocl4.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +2 -2
- package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
- package/dist/components/ActionList/ActionList.test.js +2 -2
- package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
- package/dist/components/Attention/Attention.test.js +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +1 -1
- package/dist/components/Card/Card.test.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.test.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/Label/Label.test.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +11 -11
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +29 -29
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +26 -26
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +14 -14
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +22 -22
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +116 -116
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
- package/dist/components/Timeline/Timeline.test.js +2 -2
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/{helpers-D13uK95u.js → helpers-ChM6xtQG.js} +63 -63
- package/dist/{helpers-D13uK95u.js.map → helpers-ChM6xtQG.js.map} +1 -1
- package/dist/{index-DMVXQIB9.js → index-COab4Oy9.js} +2 -2
- package/dist/{index-DMVXQIB9.js.map → index-COab4Oy9.js.map} +1 -1
- package/dist/{index-C7jFUWYs.js → index-DXR-TB1d.js} +2155 -2135
- package/dist/index-DXR-TB1d.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{react.esm-BOUd0cvD.js → react.esm-B8teOYlo.js} +2 -2
- package/dist/{react.esm-BOUd0cvD.js.map → react.esm-B8teOYlo.js.map} +1 -1
- package/dist/storybook__react.d.js +641 -637
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-utils-uaSbIYda.js → test-utils-Brqoydie.js} +279 -259
- package/dist/{test-utils-uaSbIYda.js.map → test-utils-Brqoydie.js.map} +1 -1
- package/package.json +18 -18
- package/dist/Lexical.prod-Bu-Iw9VX.js.map +0 -1
- package/dist/LexicalTable.prod-BsmIydKv.js.map +0 -1
- package/dist/index-C7jFUWYs.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { H as d, T as h, B as m, j as S,
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { H as d, T as h, B as m, j as S, z as w, P as v, v as C, K as p, W as E } from "../../../../LexicalTable.prod-CYafu_j9.js";
|
|
2
|
+
import { w as u } from "../../../../Lexical.prod-CniF7zEE.js";
|
|
3
|
+
const b = 100, P = (e, n) => {
|
|
4
4
|
const t = E(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
6
|
const r = p();
|
|
7
7
|
for (let l = 0; l < n; l++) {
|
|
8
|
-
const s = C(0, void 0,
|
|
8
|
+
const s = C(0, void 0, b / n);
|
|
9
9
|
s.append(u()), r.append(s);
|
|
10
10
|
}
|
|
11
11
|
t.append(r);
|
|
12
12
|
}
|
|
13
13
|
return t;
|
|
14
|
-
},
|
|
14
|
+
}, A = (e) => {
|
|
15
15
|
const n = w(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();
|
|
@@ -19,7 +19,7 @@ const T = 100, A = (e, n) => {
|
|
|
19
19
|
}
|
|
20
20
|
}, I = (e) => {
|
|
21
21
|
d(e).remove();
|
|
22
|
-
},
|
|
22
|
+
}, B = (e, n) => {
|
|
23
23
|
const t = p(), o = w(e), r = o.getChildrenSize();
|
|
24
24
|
for (let s = 0; s < r; s++) {
|
|
25
25
|
const c = C(0);
|
|
@@ -34,21 +34,21 @@ const T = 100, A = (e, n) => {
|
|
|
34
34
|
throw new Error("Selected node is not a TableCellNode");
|
|
35
35
|
const o = v(e), r = t.getChildren().length, l = d(e);
|
|
36
36
|
let s = m(e);
|
|
37
|
-
const c = l.getChildren(),
|
|
38
|
-
for (let i = 0; i <
|
|
37
|
+
const c = l.getChildren(), T = c.length;
|
|
38
|
+
for (let i = 0; i < T; i++) {
|
|
39
39
|
const a = C(0);
|
|
40
40
|
a.append(u());
|
|
41
41
|
const f = c[i].getChildren()[s];
|
|
42
42
|
f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((R) => {
|
|
43
43
|
R.getChildren().forEach((x) => {
|
|
44
|
-
x.setWidth(
|
|
44
|
+
x.setWidth(b / r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
s = n === "insertColumnLeft" ? s : s + 1;
|
|
49
49
|
const g = c[o].getChildren()[s];
|
|
50
50
|
g && g.select();
|
|
51
|
-
},
|
|
51
|
+
}, F = (e) => {
|
|
52
52
|
var r;
|
|
53
53
|
if (!h(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
@@ -56,11 +56,11 @@ const T = 100, A = (e, n) => {
|
|
|
56
56
|
t === 1 ? I(e) : S(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
P as createTable,
|
|
60
|
+
F as deleteColumn,
|
|
61
|
+
A as deleteRow,
|
|
62
62
|
I as deleteTable,
|
|
63
63
|
O as insertColumn,
|
|
64
|
-
|
|
64
|
+
B as insertRow
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { o as
|
|
3
|
-
import { a as
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
1
|
+
import { jsxs as L, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { o as P } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { a as h, c as g, u as y } from "../../../../Lexical.prod-CniF7zEE.js";
|
|
4
|
+
import { useState as C, useRef as E, useCallback as T, useEffect as m } from "react";
|
|
5
|
+
import { L as w } from "../../../../LexicalTable.prod-CYafu_j9.js";
|
|
6
6
|
import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
7
|
import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
|
|
8
8
|
import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
|
|
9
|
-
import { HistoryPlugin as
|
|
10
|
-
import { T as
|
|
11
|
-
import { TableCellContextMenu as
|
|
9
|
+
import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-MjKuocl4.js";
|
|
11
|
+
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
|
-
import { setScrollableContainers as
|
|
13
|
+
import { setScrollableContainers as b, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const Q = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] =
|
|
16
|
-
const e =
|
|
17
|
-
if (
|
|
18
|
-
const l = e.anchor.getNode(), a =
|
|
15
|
+
const [t] = P(), [i, s] = C(null), u = E(null), f = T(() => {
|
|
16
|
+
const e = h();
|
|
17
|
+
if (g(e)) {
|
|
18
|
+
const l = e.anchor.getNode(), a = w(l);
|
|
19
19
|
if (a) {
|
|
20
20
|
const p = t.getElementByKey(a.getKey()), c = p ? p.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
|
|
21
21
|
s({ xPos: c.right, yPos: c.bottom, height: c.height });
|
|
@@ -27,10 +27,10 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
27
27
|
(r = u.current) == null || r.mutateTable(e);
|
|
28
28
|
}, o = () => {
|
|
29
29
|
t.update(() => {
|
|
30
|
-
const e =
|
|
31
|
-
if (
|
|
30
|
+
const e = h();
|
|
31
|
+
if (g(e)) {
|
|
32
32
|
const l = e.anchor.getNode();
|
|
33
|
-
|
|
33
|
+
w(l) && (y(null), s(null));
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
};
|
|
@@ -40,21 +40,21 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
40
40
|
f();
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
|
-
}, [t, f]), m(() => (
|
|
43
|
+
}, [t, f]), m(() => (b(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
|
|
44
44
|
window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
|
|
45
45
|
}), [t]), m(() => {
|
|
46
46
|
const e = () => {
|
|
47
|
-
|
|
47
|
+
b(o);
|
|
48
48
|
};
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */
|
|
52
|
+
}, []), /* @__PURE__ */ L("div", { className: A.editor__toolbar, children: [
|
|
53
53
|
/* @__PURE__ */ n(N, {}),
|
|
54
54
|
/* @__PURE__ */ n(k, {}),
|
|
55
|
-
/* @__PURE__ */ n(
|
|
55
|
+
/* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
|
|
56
56
|
i && /* @__PURE__ */ n(
|
|
57
|
-
|
|
57
|
+
z,
|
|
58
58
|
{
|
|
59
59
|
position: i,
|
|
60
60
|
parentScrollPosition: d,
|
|
@@ -62,7 +62,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ n(x, { parentScrollPosition: d }),
|
|
65
|
-
/* @__PURE__ */ n(
|
|
65
|
+
/* @__PURE__ */ n(B, {})
|
|
66
66
|
] });
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
@@ -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-MjKuocl4.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|