@uva-glass/component-library 2.6.0 → 2.6.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-BAr6tzpa.js +4236 -0
- package/dist/Lexical.prod-BAr6tzpa.js.map +1 -0
- package/dist/{LexicalClipboard.prod-Dg23ixPD.js → LexicalClipboard.prod-CLCBYtDj.js} +56 -56
- package/dist/LexicalClipboard.prod-CLCBYtDj.js.map +1 -0
- package/dist/LexicalLink.prod-CBgZ4B3x.js +263 -0
- package/dist/LexicalLink.prod-CBgZ4B3x.js.map +1 -0
- package/dist/LexicalList.prod-haeqjypw.js +576 -0
- package/dist/LexicalList.prod-haeqjypw.js.map +1 -0
- package/dist/{LexicalSelection.prod-CNWFGVlh.js → LexicalSelection.prod-C8x7KK4L.js} +38 -38
- package/dist/LexicalSelection.prod-C8x7KK4L.js.map +1 -0
- package/dist/LexicalTable.prod-8RqiGUG-.js +1447 -0
- package/dist/LexicalTable.prod-8RqiGUG-.js.map +1 -0
- package/dist/LexicalUtils.prod-Dsec_Kl-.js +122 -0
- package/dist/LexicalUtils.prod-Dsec_Kl-.js.map +1 -0
- package/dist/{TablePlugin-E6UFlCgy.js → TablePlugin-sPSGmCno.js} +69 -69
- package/dist/{TablePlugin-E6UFlCgy.js.map → TablePlugin-sPSGmCno.js.map} +1 -1
- package/dist/assets/CheckboxTree.css +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +42 -42
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +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 +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- 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 +37 -37
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +23 -23
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
- 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 +26 -26
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +17 -17
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +501 -557
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +11 -11
- package/dist/components/index.js +1 -1
- package/dist/{helpers-BVGma1u6.js → helpers-DHHQR5ys.js} +44 -44
- package/dist/{helpers-BVGma1u6.js.map → helpers-DHHQR5ys.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +16 -16
- package/dist/Lexical.prod-Bzma_w4s.js +0 -4216
- package/dist/Lexical.prod-Bzma_w4s.js.map +0 -1
- package/dist/LexicalClipboard.prod-Dg23ixPD.js.map +0 -1
- package/dist/LexicalLink.prod-C1RDJLfo.js +0 -208
- package/dist/LexicalLink.prod-C1RDJLfo.js.map +0 -1
- package/dist/LexicalList.prod-BGzfDPU0.js +0 -568
- package/dist/LexicalList.prod-BGzfDPU0.js.map +0 -1
- package/dist/LexicalSelection.prod-CNWFGVlh.js.map +0 -1
- package/dist/LexicalTable.prod-D-4NN9o5.js +0 -1366
- package/dist/LexicalTable.prod-D-4NN9o5.js.map +0 -1
- package/dist/LexicalUtils.prod-Cg2siy-c.js +0 -94
- package/dist/LexicalUtils.prod-Cg2siy-c.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
const t =
|
|
1
|
+
import { x as S, _ as h, d, T as w, R as C, g as m, O as E, F as p, L as I } from "../../../../LexicalTable.prod-8RqiGUG-.js";
|
|
2
|
+
import { V as g } from "../../../../Lexical.prod-BAr6tzpa.js";
|
|
3
|
+
const b = 100, F = (e, n) => {
|
|
4
|
+
const t = S(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
6
|
const r = h();
|
|
7
7
|
for (let l = 0; l < n; l++) {
|
|
8
|
-
const s = d(0, void 0,
|
|
9
|
-
s.append(
|
|
8
|
+
const s = d(0, void 0, b / n);
|
|
9
|
+
s.append(g()), 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,48 +19,48 @@ const m = 100, A = (e, n) => {
|
|
|
19
19
|
}
|
|
20
20
|
}, v = (e) => {
|
|
21
21
|
C(e).remove();
|
|
22
|
-
},
|
|
22
|
+
}, L = (e, n) => {
|
|
23
23
|
const t = h(), o = w(e), r = o.getChildrenSize();
|
|
24
24
|
for (let s = 0; s < r; s++) {
|
|
25
25
|
const c = d(0);
|
|
26
|
-
c.append(
|
|
26
|
+
c.append(g()), t.append(c);
|
|
27
27
|
}
|
|
28
28
|
n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
|
|
29
29
|
const l = t.getFirstDescendant();
|
|
30
30
|
l && l.select();
|
|
31
|
-
},
|
|
31
|
+
}, z = (e, n) => {
|
|
32
32
|
const t = w(e);
|
|
33
|
-
if (!
|
|
33
|
+
if (!m(e))
|
|
34
34
|
throw new Error("Selected node is not a TableCellNode");
|
|
35
35
|
const o = E(e), r = t.getChildren().length, l = C(e);
|
|
36
|
-
let s =
|
|
36
|
+
let s = p(e);
|
|
37
37
|
const c = l.getChildren(), R = c.length;
|
|
38
38
|
for (let i = 0; i < R; i++) {
|
|
39
39
|
const a = d(0);
|
|
40
|
-
a.append(
|
|
40
|
+
a.append(g());
|
|
41
41
|
const f = c[i].getChildren()[s];
|
|
42
|
-
f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((T) => {
|
|
43
|
+
T.getChildren().forEach((x) => {
|
|
44
|
+
x.setWidth(b / r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
s = n === "insertColumnLeft" ? s : s + 1;
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
49
|
+
const u = c[o].getChildren()[s];
|
|
50
|
+
u && u.select();
|
|
51
|
+
}, P = (e) => {
|
|
52
52
|
var r;
|
|
53
|
-
if (!
|
|
53
|
+
if (!m(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
55
|
-
const n = C(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o =
|
|
55
|
+
const n = C(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = p(e);
|
|
56
56
|
t === 1 ? v(e) : I(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
F as createTable,
|
|
60
|
+
P as deleteColumn,
|
|
61
|
+
A as deleteRow,
|
|
62
62
|
v as deleteTable,
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
z as insertColumn,
|
|
64
|
+
L as insertRow
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { u as y } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
-
import {
|
|
3
|
+
import { H as h, a as g, M as C } from "../../../../Lexical.prod-BAr6tzpa.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as T, useEffect as m } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { BlockFormatPlugin as
|
|
7
|
-
import { ListPlugin as
|
|
5
|
+
import { v as b } from "../../../../LexicalTable.prod-8RqiGUG-.js";
|
|
6
|
+
import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
|
+
import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
|
|
8
8
|
import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
|
|
9
9
|
import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
-
import { T as
|
|
11
|
-
import { TableCellContextMenu as
|
|
12
|
-
import { s as
|
|
13
|
-
import { setScrollableContainers as
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-sPSGmCno.js";
|
|
11
|
+
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
|
+
import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
|
+
import { setScrollableContainers as v, removeScrollableContainers as H } from "../../helpers.js";
|
|
14
14
|
const Q = ({ editorScrollPosition: d }) => {
|
|
15
15
|
const [t] = y(), [i, s] = L(null), u = E(null), f = T(() => {
|
|
16
16
|
const e = h();
|
|
@@ -22,7 +22,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
22
22
|
} else
|
|
23
23
|
s(null);
|
|
24
24
|
}
|
|
25
|
-
}, [t]),
|
|
25
|
+
}, [t]), w = (e) => {
|
|
26
26
|
var r;
|
|
27
27
|
(r = u.current) == null || r.mutateTable(e);
|
|
28
28
|
}, o = () => {
|
|
@@ -40,25 +40,25 @@ 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(() => (v(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
|
|
44
|
+
window.removeEventListener("scroll", o), window.removeEventListener("resize", o), H(o);
|
|
45
45
|
}), [t]), m(() => {
|
|
46
46
|
const e = () => {
|
|
47
|
-
|
|
47
|
+
v(o);
|
|
48
48
|
};
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */ P("div", { className:
|
|
53
|
-
/* @__PURE__ */ n(k, {}),
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
|
|
54
53
|
/* @__PURE__ */ n(N, {}),
|
|
55
|
-
/* @__PURE__ */ n(
|
|
54
|
+
/* @__PURE__ */ n(k, {}),
|
|
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,
|
|
61
|
-
onAction:
|
|
61
|
+
onAction: w
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ n(x, { parentScrollPosition: d }),
|
|
@@ -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-sPSGmCno.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|