@uva-glass/component-library 3.0.6 → 3.0.8
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-D0woeN3R.js +4770 -0
- package/dist/Lexical.prod-D0woeN3R.js.map +1 -0
- package/dist/LexicalClipboard.prod-D9CvlqSO.js +258 -0
- package/dist/LexicalClipboard.prod-D9CvlqSO.js.map +1 -0
- package/dist/LexicalComposerContext.prod--Rm7-Z9o.js +26 -0
- package/dist/LexicalComposerContext.prod--Rm7-Z9o.js.map +1 -0
- package/dist/{LexicalLink.prod-JpC4y56U.js → LexicalLink.prod-__08uNAw.js} +51 -51
- package/dist/LexicalLink.prod-__08uNAw.js.map +1 -0
- package/dist/{LexicalList.prod-w0kSq9sB.js → LexicalList.prod-BgI8r9BS.js} +44 -44
- package/dist/LexicalList.prod-BgI8r9BS.js.map +1 -0
- package/dist/LexicalSelection.prod-B-SXpOS9.js +86 -0
- package/dist/LexicalSelection.prod-B-SXpOS9.js.map +1 -0
- package/dist/LexicalTable.prod-DJWDvnB3.js +1494 -0
- package/dist/LexicalTable.prod-DJWDvnB3.js.map +1 -0
- package/dist/LexicalUtils.prod-BYrJ1Iih.js +112 -0
- package/dist/LexicalUtils.prod-BYrJ1Iih.js.map +1 -0
- package/dist/{TablePlugin-Co5vgBHF.js → TablePlugin-BHY7_5Z8.js} +44 -44
- package/dist/{TablePlugin-Co5vgBHF.js.map → TablePlugin-BHY7_5Z8.js.map} +1 -1
- package/dist/assets/variables.css +21 -21
- package/dist/components/Accordion/Accordion.test.d.ts +0 -0
- package/dist/components/Accordion/Accordion.test.js +29 -0
- package/dist/components/Accordion/Accordion.test.js.map +1 -0
- package/dist/components/AccordionCard/AccordionCard.test.d.ts +0 -0
- package/dist/components/AccordionCard/AccordionCard.test.js +33 -0
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -0
- package/dist/components/ActionList/ActionList.test.d.ts +0 -0
- package/dist/components/ActionList/ActionList.test.js +60 -0
- package/dist/components/ActionList/ActionList.test.js.map +1 -0
- package/dist/components/AppStatusBar/AppStatusBar.test.d.ts +0 -0
- package/dist/components/AppStatusBar/AppStatusBar.test.js +10 -0
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -0
- package/dist/components/Attention/Attention.test.d.ts +0 -0
- package/dist/components/Attention/Attention.test.js +10 -0
- package/dist/components/Attention/Attention.test.js.map +1 -0
- package/dist/components/Backdrop/Backdrop.test.d.ts +0 -0
- package/dist/components/Backdrop/Backdrop.test.js +10 -0
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -0
- package/dist/components/Buttons/Button.test.d.ts +0 -0
- package/dist/components/Buttons/Button.test.js +35 -0
- package/dist/components/Buttons/Button.test.js.map +1 -0
- package/dist/components/Buttons/LinkButton.test.d.ts +0 -0
- package/dist/components/Buttons/LinkButton.test.js +67 -0
- package/dist/components/Buttons/LinkButton.test.js.map +1 -0
- package/dist/components/Buttons/MenuButton.test.d.ts +0 -0
- package/dist/components/Buttons/MenuButton.test.js +66 -0
- package/dist/components/Buttons/MenuButton.test.js.map +1 -0
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/Label/Label.test.js +19 -4254
- package/dist/components/Label/Label.test.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 +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 +6 -6
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +10 -10
- 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 +66 -66
- 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 +14 -14
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
- 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 +9 -9
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +350 -350
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +5 -5
- package/dist/components/index.js +1 -1
- package/dist/helpers-Cgw7V6LR.js +168 -0
- package/dist/helpers-Cgw7V6LR.js.map +1 -0
- package/dist/index-CcK2jjMp.js.map +1 -1
- package/dist/index-OJvb7CGo.js +2962 -0
- package/dist/index-OJvb7CGo.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/react.esm-BZoQ2TxA.js +4271 -0
- package/dist/react.esm-BZoQ2TxA.js.map +1 -0
- package/dist/setupTests.js.map +1 -1
- package/package.json +27 -26
- package/dist/Lexical.prod-DTADK2yJ.js +0 -4263
- package/dist/Lexical.prod-DTADK2yJ.js.map +0 -1
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js +0 -258
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js.map +0 -1
- package/dist/LexicalComposerContext.prod-BCXERl09.js +0 -26
- package/dist/LexicalComposerContext.prod-BCXERl09.js.map +0 -1
- package/dist/LexicalLink.prod-JpC4y56U.js.map +0 -1
- package/dist/LexicalList.prod-w0kSq9sB.js.map +0 -1
- package/dist/LexicalSelection.prod-DQLHaigk.js +0 -78
- package/dist/LexicalSelection.prod-DQLHaigk.js.map +0 -1
- package/dist/LexicalTable.prod-DjfZc87j.js +0 -1465
- package/dist/LexicalTable.prod-DjfZc87j.js.map +0 -1
- package/dist/LexicalUtils.prod-BBwue2Aj.js +0 -122
- package/dist/LexicalUtils.prod-BBwue2Aj.js.map +0 -1
- package/dist/helpers-DgTW1vIO.js +0 -168
- package/dist/helpers-DgTW1vIO.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../../LexicalComposerContext.prod-
|
|
2
|
+
import "../../../../LexicalComposerContext.prod--Rm7-Z9o.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-DJWDvnB3.js";
|
|
5
|
+
import "../../../../Lexical.prod-D0woeN3R.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-BHY7_5Z8.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
const t =
|
|
1
|
+
import { O as d, m as h, k as m, P as S, F as w, A as E, f as C, b, R as I } from "../../../../LexicalTable.prod-DJWDvnB3.js";
|
|
2
|
+
import { f as u } from "../../../../Lexical.prod-D0woeN3R.js";
|
|
3
|
+
const p = 100, D = (e, n) => {
|
|
4
|
+
const t = I(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
|
-
const r =
|
|
6
|
+
const r = b();
|
|
7
7
|
for (let l = 0; l < n; l++) {
|
|
8
|
-
const s = C(0, void 0,
|
|
9
|
-
s.append(
|
|
8
|
+
const s = C(0, void 0, p / n);
|
|
9
|
+
s.append(u()), r.append(s);
|
|
10
10
|
}
|
|
11
11
|
t.append(r);
|
|
12
12
|
}
|
|
13
13
|
return t;
|
|
14
|
-
},
|
|
14
|
+
}, F = (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();
|
|
18
18
|
r && r.select();
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, A = (e) => {
|
|
21
21
|
d(e).remove();
|
|
22
|
-
},
|
|
23
|
-
const t =
|
|
22
|
+
}, P = (e, n) => {
|
|
23
|
+
const t = b(), o = w(e), r = o.getChildrenSize();
|
|
24
24
|
for (let s = 0; s < r; s++) {
|
|
25
25
|
const c = C(0);
|
|
26
|
-
c.append(
|
|
26
|
+
c.append(u()), t.append(c);
|
|
27
27
|
}
|
|
28
28
|
n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
|
|
29
29
|
const l = t.getFirstDescendant();
|
|
@@ -32,35 +32,35 @@ const b = 100, F = (e, n) => {
|
|
|
32
32
|
const t = w(e);
|
|
33
33
|
if (!h(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 = d(e);
|
|
36
36
|
let s = m(e);
|
|
37
37
|
const c = l.getChildren(), R = c.length;
|
|
38
38
|
for (let i = 0; i < R; i++) {
|
|
39
39
|
const a = C(0);
|
|
40
|
-
a.append(
|
|
40
|
+
a.append(u());
|
|
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(p / r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
s = n === "insertColumnLeft" ? s : s + 1;
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
49
|
+
const g = c[o].getChildren()[s];
|
|
50
|
+
g && g.select();
|
|
51
|
+
}, k = (e) => {
|
|
52
52
|
var r;
|
|
53
53
|
if (!h(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
55
55
|
const n = d(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = m(e);
|
|
56
|
-
t === 1 ?
|
|
56
|
+
t === 1 ? A(e) : S(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
D as createTable,
|
|
60
|
+
k as deleteColumn,
|
|
61
|
+
F as deleteRow,
|
|
62
|
+
A as deleteTable,
|
|
63
63
|
z as insertColumn,
|
|
64
|
-
|
|
64
|
+
P as insertRow
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { useState as
|
|
5
|
-
import { T as b } from "../../../../LexicalTable.prod-
|
|
1
|
+
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { u as y } from "../../../../LexicalComposerContext.prod--Rm7-Z9o.js";
|
|
3
|
+
import { h, G as g, q as C } from "../../../../Lexical.prod-D0woeN3R.js";
|
|
4
|
+
import { useState as L, useRef as T, useCallback as E, useEffect as m } from "react";
|
|
5
|
+
import { T as b } from "../../../../LexicalTable.prod-DJWDvnB3.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
9
|
import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
-
import { T as S } from "../../../../TablePlugin-
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-BHY7_5Z8.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const Q = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] =
|
|
15
|
+
const [t] = y(), [i, s] = L(null), u = T(null), f = E(() => {
|
|
16
16
|
const e = h();
|
|
17
17
|
if (g(e)) {
|
|
18
18
|
const l = e.anchor.getNode(), a = b(l);
|
|
@@ -30,7 +30,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
30
30
|
const e = h();
|
|
31
31
|
if (g(e)) {
|
|
32
32
|
const l = e.anchor.getNode();
|
|
33
|
-
b(l) && (
|
|
33
|
+
b(l) && (C(null), s(null));
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
};
|
|
@@ -49,7 +49,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
|
|
53
53
|
/* @__PURE__ */ n(N, {}),
|
|
54
54
|
/* @__PURE__ */ n(k, {}),
|
|
55
55
|
/* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
|
|
@@ -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-BHY7_5Z8.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|