@uva-glass/component-library 3.19.2 → 3.19.3
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/Button.module-BVsTgdTe.js +15 -0
- package/dist/Button.module-BVsTgdTe.js.map +1 -0
- package/dist/MultiSelectItem-DbOdEllV.js +24 -0
- package/dist/{MultiSelectItem-D9PxdX43.js.map → MultiSelectItem-DbOdEllV.js.map} +1 -1
- package/dist/RteEditor.module-45648CA2.js +41 -0
- package/dist/RteEditor.module-45648CA2.js.map +1 -0
- package/dist/{SelectListbox.module-ignbxWNU.js → SelectListbox.module-N3Kg0UvL.js} +21 -21
- package/dist/SelectListbox.module-N3Kg0UvL.js.map +1 -0
- package/dist/Sortable.module-CuvuQhr8.js +23 -0
- package/dist/Sortable.module-CuvuQhr8.js.map +1 -0
- package/dist/{SortableProvider-DZggDO3M.js → SortableProvider-B3_u0pKv.js} +2 -2
- package/dist/{SortableProvider-DZggDO3M.js.map → SortableProvider-B3_u0pKv.js.map} +1 -1
- package/dist/{TablePlugin-CE20cPhW.js → TablePlugin-hxs9O_ox.js} +28 -28
- package/dist/{TablePlugin-CE20cPhW.js.map → TablePlugin-hxs9O_ox.js.map} +1 -1
- package/dist/assets/AccordionCard.css +1 -1
- package/dist/assets/ActionList.css +1 -1
- package/dist/assets/AppStatusBar.css +1 -1
- package/dist/assets/Backdrop.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/LinkContextMenu.css +1 -1
- package/dist/assets/MetaDataList.css +1 -1
- package/dist/assets/ModalDialog.css +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/MultiSelectItem.css +1 -1
- package/dist/assets/OverlayCloseButton.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/ProgrammeCard.css +1 -1
- package/dist/assets/RadioButton.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SectionNotification.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/Spinner.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/TablePlugin.css +1 -1
- package/dist/components/AccordionCard/AccordionCard.js +22 -22
- package/dist/components/ActionList/ActionList.js +14 -14
- package/dist/components/AppStatusBar/AppStatusBar.js +5 -5
- package/dist/components/Backdrop/Backdrop.js +5 -5
- package/dist/components/Buttons/Button.js +1 -1
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/MenuButton.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/MetaDataList/MetaDataList.js +4 -4
- package/dist/components/ModalDialog/ModalDialog.js +27 -27
- package/dist/components/MultiSelect/MultiSelect.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectItem.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js +33 -33
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +2 -2
- package/dist/components/OverlayStepBar/OverlayStepBar.js +6 -6
- package/dist/components/PageOverlay/PageOverlay.js +30 -30
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/Periods/Periods.js +16 -16
- package/dist/components/ProgrammeCard/ProgrammeCard.js +4 -4
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioButton/RadioButton.js +9 -9
- package/dist/components/RadioGroup/RadioGroup.js +27 -27
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +23 -23
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +37 -37
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +3 -3
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +2 -2
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +2 -2
- package/dist/components/Sortable/components/SortableHandle.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Timeline/Timeline.test.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Button.module-FL3-CODh.js +0 -15
- package/dist/Button.module-FL3-CODh.js.map +0 -1
- package/dist/MultiSelectItem-D9PxdX43.js +0 -24
- package/dist/RteEditor.module-oFMKEW6f.js +0 -41
- package/dist/RteEditor.module-oFMKEW6f.js.map +0 -1
- package/dist/SelectListbox.module-ignbxWNU.js.map +0 -1
- package/dist/Sortable.module-DDhRFD1T.js +0 -23
- package/dist/Sortable.module-DDhRFD1T.js.map +0 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import { RadioButton as
|
|
1
|
+
import { jsxs as u, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { c as h } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { RadioButton as j } from "../RadioButton/RadioButton.js";
|
|
5
5
|
import '../../assets/RadioGroup.css';const r = {
|
|
6
|
-
"radio-group__wrapper": "_radio-
|
|
7
|
-
"radio-group__header": "_radio-
|
|
8
|
-
"radio-group": "_radio-
|
|
9
|
-
"radio-group__option": "_radio-
|
|
10
|
-
"radio-group__option--disabled": "_radio-group__option--
|
|
11
|
-
},
|
|
12
|
-
const [s,
|
|
13
|
-
_ || (
|
|
6
|
+
"radio-group__wrapper": "_radio-group__wrapper_1jilo_1",
|
|
7
|
+
"radio-group__header": "_radio-group__header_1jilo_7",
|
|
8
|
+
"radio-group": "_radio-group_1jilo_1",
|
|
9
|
+
"radio-group__option": "_radio-group__option_1jilo_21",
|
|
10
|
+
"radio-group__option--disabled": "_radio-group__option--disabled_1jilo_36"
|
|
11
|
+
}, y = ({ label: d, options: t, onChange: n, disabled: _ }) => {
|
|
12
|
+
const [s, l] = m(null), p = (o) => {
|
|
13
|
+
_ || (l(o), n(o));
|
|
14
14
|
};
|
|
15
15
|
return /* @__PURE__ */ u("div", { className: r["radio-group__wrapper"], children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ a("h2", { className: r["radio-group__header"], children: d }),
|
|
17
|
+
/* @__PURE__ */ a("div", { className: r["radio-group"], children: t.map(({ id: o, descriptionLabel: c, titleLabel: g, value: i }) => /* @__PURE__ */ a(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
|
-
className:
|
|
20
|
+
className: h(r["radio-group__option"], {
|
|
21
21
|
[r["radio-group__option--disabled"]]: _
|
|
22
22
|
}),
|
|
23
|
-
onClick: () => p(
|
|
24
|
-
onKeyDown: (
|
|
25
|
-
(
|
|
23
|
+
onClick: () => p(i),
|
|
24
|
+
onKeyDown: (e) => {
|
|
25
|
+
(e.key === "Enter" || e.key === " ") && p(i);
|
|
26
26
|
},
|
|
27
27
|
role: "presentation",
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
-
|
|
28
|
+
children: /* @__PURE__ */ a(
|
|
29
|
+
j,
|
|
30
30
|
{
|
|
31
31
|
id: o,
|
|
32
|
-
label:
|
|
33
|
-
description:
|
|
32
|
+
label: g,
|
|
33
|
+
description: c,
|
|
34
34
|
name: d,
|
|
35
|
-
onChange: (
|
|
36
|
-
p(
|
|
35
|
+
onChange: (e) => {
|
|
36
|
+
p(e.target.value);
|
|
37
37
|
},
|
|
38
|
-
value:
|
|
39
|
-
checked: s ===
|
|
38
|
+
value: i,
|
|
39
|
+
checked: s === i,
|
|
40
40
|
disabled: _,
|
|
41
41
|
gap: "large"
|
|
42
42
|
}
|
|
@@ -47,6 +47,6 @@ import '../../assets/RadioGroup.css';const r = {
|
|
|
47
47
|
] });
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
y as RadioGroup
|
|
51
51
|
};
|
|
52
52
|
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -14,7 +14,7 @@ import "../../IconButton/IconButton.js";
|
|
|
14
14
|
import "../../Input/Input.js";
|
|
15
15
|
import "../../InputField/InputField.js";
|
|
16
16
|
import "react-router";
|
|
17
|
-
import "../../../TablePlugin-
|
|
17
|
+
import "../../../TablePlugin-hxs9O_ox.js";
|
|
18
18
|
import "../Providers/LanguageProvider.js";
|
|
19
19
|
import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
20
20
|
import "../hooks/components/Flyout.js";
|
|
@@ -22,7 +22,7 @@ import "../../../index-DllfJcv4.js";
|
|
|
22
22
|
import "../../SelectListbox/SelectListbox.js";
|
|
23
23
|
import "../../SelectListbox/SelectProvider.js";
|
|
24
24
|
import "../../Sortable/components/SortableItem.js";
|
|
25
|
-
import "../../../SortableProvider-
|
|
25
|
+
import "../../../SortableProvider-B3_u0pKv.js";
|
|
26
26
|
import '../../../assets/EditorHeader.css';const t = {
|
|
27
27
|
"editor-header__container": "_editor-header__container_nsi6h_1",
|
|
28
28
|
"editor-header__info": "_editor-header__info_nsi6h_10"
|
|
@@ -4,7 +4,7 @@ import { c as f } from "../../../../clsx-OuTLNxxd.js";
|
|
|
4
4
|
import { N as _, c as p, M as h } from "../../../../Lexical.prod-DcAfce4S.js";
|
|
5
5
|
import { useState as l, useEffect as k } from "react";
|
|
6
6
|
import { Icon as I } from "../../../Icon/Icon.js";
|
|
7
|
-
import { s as a } from "../../../../RteEditor.module-
|
|
7
|
+
import { s as a } from "../../../../RteEditor.module-45648CA2.js";
|
|
8
8
|
import { useTranslation as B } from "../../hooks/useTranslation.js";
|
|
9
9
|
const C = {
|
|
10
10
|
bold: "Bold",
|
|
@@ -17,8 +17,8 @@ import "../../../IconButton/IconButton.js";
|
|
|
17
17
|
import "../../../Input/Input.js";
|
|
18
18
|
import "../../../InputField/InputField.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../../../TablePlugin-
|
|
21
|
-
import { s as r } from "../../../../RteEditor.module-
|
|
20
|
+
import "../../../../TablePlugin-hxs9O_ox.js";
|
|
21
|
+
import { s as r } from "../../../../RteEditor.module-45648CA2.js";
|
|
22
22
|
import { useTranslation as x } from "../../hooks/useTranslation.js";
|
|
23
23
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
24
24
|
import "../../hooks/components/Flyout.js";
|
|
@@ -27,7 +27,7 @@ import "../../../../index-DllfJcv4.js";
|
|
|
27
27
|
import "../../../SelectListbox/SelectListbox.js";
|
|
28
28
|
import "../../../SelectListbox/SelectProvider.js";
|
|
29
29
|
import "../../../Sortable/components/SortableItem.js";
|
|
30
|
-
import "../../../../SortableProvider-
|
|
30
|
+
import "../../../../SortableProvider-B3_u0pKv.js";
|
|
31
31
|
const Z = () => {
|
|
32
32
|
const o = x(), [t] = h(), [p, d] = s(!1), [l, c] = s(!1), u = () => {
|
|
33
33
|
t.dispatchCommand(y, void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { A as D } from "../../../../../TablePlugin-
|
|
3
|
+
import { A as D } from "../../../../../TablePlugin-hxs9O_ox.js";
|
|
4
4
|
import "../../../../../helpers-Dpx3BPyY.js";
|
|
5
5
|
import "../../../../Icon/Icon.js";
|
|
6
6
|
import "../../../../Buttons/Button.js";
|
|
@@ -27,7 +27,7 @@ import "../../../../../index-DllfJcv4.js";
|
|
|
27
27
|
import "../../../../SelectListbox/SelectListbox.js";
|
|
28
28
|
import "../../../../SelectListbox/SelectProvider.js";
|
|
29
29
|
import "../../../../Sortable/components/SortableItem.js";
|
|
30
|
-
import "../../../../../SortableProvider-
|
|
30
|
+
import "../../../../../SortableProvider-B3_u0pKv.js";
|
|
31
31
|
export {
|
|
32
32
|
D as AddLinkForm
|
|
33
33
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as k, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { e as
|
|
1
|
+
import { jsxs as k, Fragment as K, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, useState as b, useRef as T, useImperativeHandle as g, useLayoutEffect as E } from "react";
|
|
3
|
+
import { e as R } from "../../../../../helpers-Dpx3BPyY.js";
|
|
4
4
|
import { Icon as m } from "../../../../Icon/Icon.js";
|
|
5
|
-
import { useTranslation as
|
|
5
|
+
import { useTranslation as S } from "../../../hooks/useTranslation.js";
|
|
6
6
|
import { Button as y } from "../../../../Buttons/Button.js";
|
|
7
7
|
import "../../../../Buttons/LinkButton.js";
|
|
8
8
|
import "@react-aria/button";
|
|
9
|
-
import '../../../../../assets/LinkContextMenu.css';const
|
|
10
|
-
"link-context-menu__wrapper": "_link-context-
|
|
11
|
-
"link-context-menu__input": "_link-context-
|
|
12
|
-
"link-context-menu__button": "_link-context-
|
|
13
|
-
"link-context-menu__actions": "_link-context-
|
|
14
|
-
}, O =
|
|
15
|
-
const e =
|
|
9
|
+
import '../../../../../assets/LinkContextMenu.css';const l = {
|
|
10
|
+
"link-context-menu__wrapper": "_link-context-menu__wrapper_139l7_1",
|
|
11
|
+
"link-context-menu__input": "_link-context-menu__input_139l7_7",
|
|
12
|
+
"link-context-menu__button": "_link-context-menu__button_139l7_25",
|
|
13
|
+
"link-context-menu__actions": "_link-context-menu__actions_139l7_36"
|
|
14
|
+
}, O = N(({ url: a, onSave: f, onDelete: h, onClose: x }, w) => {
|
|
15
|
+
const e = S(), [_, s] = b(a), [c, u] = b(!1), o = T(null), r = () => {
|
|
16
16
|
var t;
|
|
17
|
-
s(
|
|
17
|
+
s(a), u(!1), (t = o.current) == null || t.blur();
|
|
18
18
|
}, C = () => {
|
|
19
19
|
f(_), r();
|
|
20
20
|
}, p = () => {
|
|
@@ -22,12 +22,12 @@ import '../../../../../assets/LinkContextMenu.css';const a = {
|
|
|
22
22
|
}, L = () => {
|
|
23
23
|
r(), x();
|
|
24
24
|
}, d = () => {
|
|
25
|
-
window.open(
|
|
25
|
+
window.open(R(a), "_blank");
|
|
26
26
|
};
|
|
27
|
-
return
|
|
27
|
+
return g(w, () => ({
|
|
28
28
|
clearForm: r
|
|
29
|
-
})),
|
|
30
|
-
s(
|
|
29
|
+
})), E(() => {
|
|
30
|
+
s(a), window.addEventListener("keydown", (t) => {
|
|
31
31
|
t.ctrlKey && t.shiftKey && t.key === "L" && (u(!0), setTimeout(() => {
|
|
32
32
|
var i;
|
|
33
33
|
return (i = o.current) == null ? void 0 : i.focus();
|
|
@@ -39,15 +39,15 @@ import '../../../../../assets/LinkContextMenu.css';const a = {
|
|
|
39
39
|
return (i = o.current) == null ? void 0 : i.focus();
|
|
40
40
|
}, 0));
|
|
41
41
|
});
|
|
42
|
-
}, [
|
|
43
|
-
/* @__PURE__ */ k("div", { className:
|
|
42
|
+
}, [a]), /* @__PURE__ */ k(K, { children: [
|
|
43
|
+
/* @__PURE__ */ k("div", { className: l["link-context-menu__wrapper"], children: [
|
|
44
44
|
/* @__PURE__ */ n(
|
|
45
45
|
"input",
|
|
46
46
|
{
|
|
47
47
|
type: "text",
|
|
48
48
|
value: _,
|
|
49
49
|
onChange: (t) => s(t.target.value),
|
|
50
|
-
className:
|
|
50
|
+
className: l["link-context-menu__input"],
|
|
51
51
|
disabled: !c,
|
|
52
52
|
ref: o
|
|
53
53
|
}
|
|
@@ -56,7 +56,7 @@ import '../../../../../assets/LinkContextMenu.css';const a = {
|
|
|
56
56
|
"button",
|
|
57
57
|
{
|
|
58
58
|
type: "button",
|
|
59
|
-
className:
|
|
59
|
+
className: l["link-context-menu__button"],
|
|
60
60
|
onClick: () => u(!0),
|
|
61
61
|
title: e.links.linkEdittip,
|
|
62
62
|
"aria-label": e.aria.labels.link,
|
|
@@ -68,7 +68,7 @@ import '../../../../../assets/LinkContextMenu.css';const a = {
|
|
|
68
68
|
"button",
|
|
69
69
|
{
|
|
70
70
|
type: "button",
|
|
71
|
-
className:
|
|
71
|
+
className: l["link-context-menu__button"],
|
|
72
72
|
onClick: d,
|
|
73
73
|
title: e.links.linkTesttip,
|
|
74
74
|
"aria-label": e.aria.labels.link,
|
|
@@ -80,7 +80,7 @@ import '../../../../../assets/LinkContextMenu.css';const a = {
|
|
|
80
80
|
"button",
|
|
81
81
|
{
|
|
82
82
|
type: "button",
|
|
83
|
-
className:
|
|
83
|
+
className: l["link-context-menu__button"],
|
|
84
84
|
onClick: p,
|
|
85
85
|
title: e.links.linkDeletetip,
|
|
86
86
|
"aria-label": e.aria.labels.link,
|
|
@@ -89,7 +89,7 @@ import '../../../../../assets/LinkContextMenu.css';const a = {
|
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
] }),
|
|
92
|
-
c && /* @__PURE__ */ k("div", { className:
|
|
92
|
+
c && /* @__PURE__ */ k("div", { className: l["link-context-menu__actions"], children: [
|
|
93
93
|
/* @__PURE__ */ n(y, { variant: "secondary", onClick: L, "aria-label": e.common.cancel, type: "button", children: e.common.cancel }),
|
|
94
94
|
/* @__PURE__ */ n(y, { variant: "primary", onClick: C, "aria-label": e.aria.labels.linkOkButton, type: "button", children: e.links.addLink })
|
|
95
95
|
] })
|
|
@@ -4,7 +4,7 @@ import { c as q } from "../../../../clsx-OuTLNxxd.js";
|
|
|
4
4
|
import { p as U, k as G, N as J } from "../../../../LexicalLink.prod-BVtqGtVB.js";
|
|
5
5
|
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
6
|
import { Y as Z, N as f, n as $, ap as tt, c as N, L as et, y as ot, X as rt } from "../../../../Lexical.prod-DcAfce4S.js";
|
|
7
|
-
import { A as nt } from "../../../../TablePlugin-
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-hxs9O_ox.js";
|
|
8
8
|
import { e as it } from "../../../../helpers-Dpx3BPyY.js";
|
|
9
9
|
import { LinkContextMenu as st } from "./LinkContextMenu/LinkContextMenu.js";
|
|
10
10
|
import { useFlyout as ct } from "../../hooks/useFlyout.js";
|
|
@@ -23,14 +23,14 @@ import "../../../Input/Input.js";
|
|
|
23
23
|
import "../../../InputField/InputField.js";
|
|
24
24
|
import "react-router";
|
|
25
25
|
import { setScrollableContainers as z, removeScrollableContainers as at } from "../../helpers.js";
|
|
26
|
-
import { s as h } from "../../../../RteEditor.module-
|
|
26
|
+
import { s as h } from "../../../../RteEditor.module-45648CA2.js";
|
|
27
27
|
import { useTranslation as ut } from "../../hooks/useTranslation.js";
|
|
28
28
|
import "../../Providers/LanguageProvider.js";
|
|
29
29
|
import "../../../../index-DllfJcv4.js";
|
|
30
30
|
import "../../../SelectListbox/SelectListbox.js";
|
|
31
31
|
import "../../../SelectListbox/SelectProvider.js";
|
|
32
32
|
import "../../../Sortable/components/SortableItem.js";
|
|
33
|
-
import "../../../../SortableProvider-
|
|
33
|
+
import "../../../../SortableProvider-B3_u0pKv.js";
|
|
34
34
|
const mt = 200, I = (p) => {
|
|
35
35
|
let n = p;
|
|
36
36
|
for (; n; ) {
|
|
@@ -6,7 +6,7 @@ import { useState as p, useEffect as I } from "react";
|
|
|
6
6
|
import { c as O } from "../../../../clsx-OuTLNxxd.js";
|
|
7
7
|
import { ap as U, L as w, V as B, N as b, c as h, I as E, P as $ } from "../../../../Lexical.prod-DcAfce4S.js";
|
|
8
8
|
import { Icon as j } from "../../../Icon/Icon.js";
|
|
9
|
-
import { s as l } from "../../../../RteEditor.module-
|
|
9
|
+
import { s as l } from "../../../../RteEditor.module-45648CA2.js";
|
|
10
10
|
import { useTranslation as z } from "../../hooks/useTranslation.js";
|
|
11
11
|
const V = {
|
|
12
12
|
bullet: "BulletList",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as B } from "../../../../TablePlugin-
|
|
3
|
+
import { b as B } from "../../../../TablePlugin-hxs9O_ox.js";
|
|
4
4
|
import "../../../Buttons/Button.js";
|
|
5
5
|
import "../../../Buttons/LinkButton.js";
|
|
6
6
|
import "@react-aria/button";
|
|
@@ -25,7 +25,7 @@ import "../../../../index-DllfJcv4.js";
|
|
|
25
25
|
import "../../../SelectListbox/SelectListbox.js";
|
|
26
26
|
import "../../../SelectListbox/SelectProvider.js";
|
|
27
27
|
import "../../../Sortable/components/SortableItem.js";
|
|
28
|
-
import "../../../../SortableProvider-
|
|
28
|
+
import "../../../../SortableProvider-B3_u0pKv.js";
|
|
29
29
|
export {
|
|
30
30
|
B as AddTableForm
|
|
31
31
|
};
|
package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { jsxs as y, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as _, useRef as
|
|
2
|
+
import { useState as _, useRef as d, useEffect as R } from "react";
|
|
3
3
|
import { c as w } from "../../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { o as
|
|
5
|
-
import { Icon as
|
|
4
|
+
import { o as $ } from "../../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
5
|
+
import { Icon as k } from "../../../../Icon/Icon.js";
|
|
6
6
|
import { useTranslation as H } from "../../../hooks/useTranslation.js";
|
|
7
7
|
import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
8
|
-
"context-menu__wrapper": "_context-
|
|
9
|
-
"context-menu__button": "_context-
|
|
10
|
-
"context-menu": "_context-
|
|
11
|
-
"context-menu--open": "_context-menu--
|
|
12
|
-
"context-menu__item": "_context-
|
|
13
|
-
"context-menu__item-divider": "_context-menu__item-
|
|
14
|
-
"context-menu__wrapper--hidden": "_context-menu__wrapper--
|
|
15
|
-
}, O = 25, N = 10, f = 4, A = 25, M = (
|
|
16
|
-
const r =
|
|
8
|
+
"context-menu__wrapper": "_context-menu__wrapper_17pea_1",
|
|
9
|
+
"context-menu__button": "_context-menu__button_17pea_10",
|
|
10
|
+
"context-menu": "_context-menu_17pea_1",
|
|
11
|
+
"context-menu--open": "_context-menu--open_17pea_38",
|
|
12
|
+
"context-menu__item": "_context-menu__item_17pea_43",
|
|
13
|
+
"context-menu__item-divider": "_context-menu__item-divider_17pea_57",
|
|
14
|
+
"context-menu__wrapper--hidden": "_context-menu__wrapper--hidden_17pea_61"
|
|
15
|
+
}, O = 25, N = 10, f = 4, A = 25, M = (u) => {
|
|
16
|
+
const r = u.cloneNode(!0);
|
|
17
17
|
r.style.height = "auto", r.style.left = "-3000px", document.body.appendChild(r);
|
|
18
|
-
const
|
|
19
|
-
return document.body.removeChild(r),
|
|
20
|
-
}, W = ({ position:
|
|
21
|
-
const t = H(), [
|
|
22
|
-
|
|
18
|
+
const b = r.getBoundingClientRect().height;
|
|
19
|
+
return document.body.removeChild(r), b;
|
|
20
|
+
}, W = ({ position: u, parentScrollPosition: r, onAction: b }) => {
|
|
21
|
+
const t = H(), [T, p] = _(!1), [E, x] = _(!1), [c, B] = _({ xPos: 0, yPos: 0, height: 0 }), [m, I] = _(0), C = d(0), i = d(null), s = d(null), o = d(null), [v] = $(), a = (l) => {
|
|
22
|
+
b(l), p(!1);
|
|
23
23
|
}, g = () => {
|
|
24
|
-
const l =
|
|
25
|
-
|
|
26
|
-
},
|
|
24
|
+
const l = i.current ? i.current.getBoundingClientRect().width : 0;
|
|
25
|
+
s.current && i.current && o.current && (c.xPos < l && s.current ? (s.current.style.left = `${l - c.xPos + N}px`, o.current.style.right = `${l - c.xPos + f + N}px`) : (s.current.style.left = "0px", o.current.style.right = `${f}px`), m || I(M(i.current)), m > document.documentElement.clientHeight - c.yPos ? (s.current.style.top = `-${m + c.height}px`, o.current.style.top = `${m + f}px`, o.current.style.transform = "rotate(180deg)") : (s.current.style.top = "0px", o.current.style.top = `-${A}px`, o.current.style.transform = "none"));
|
|
26
|
+
}, P = () => (g(), `translate(${((c == null ? void 0 : c.xPos) ?? 0) - (i.current ? i.current.getBoundingClientRect().width : 0)}px, ${c.yPos - (r - C.current)}px)`);
|
|
27
27
|
return R(() => {
|
|
28
|
-
|
|
29
|
-
}, [
|
|
28
|
+
B(u), u && (C.current = r), p(!1), x(!1);
|
|
29
|
+
}, [u]), R(() => {
|
|
30
30
|
if (o.current) {
|
|
31
|
-
const l = o.current.getBoundingClientRect(), h =
|
|
31
|
+
const l = o.current.getBoundingClientRect(), h = v.getRootElement();
|
|
32
32
|
if (!h) return;
|
|
33
|
-
l.top - h.getBoundingClientRect().top <= 0 || l.top - h.getBoundingClientRect().bottom + O >= 0 ?
|
|
33
|
+
l.top - h.getBoundingClientRect().top <= 0 || l.top - h.getBoundingClientRect().bottom + O >= 0 ? x(!0) : x(!1), g();
|
|
34
34
|
}
|
|
35
35
|
}, [r]), /* @__PURE__ */ y(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
className: w(n["context-menu__wrapper"], [
|
|
38
|
+
className: w(n["context-menu__wrapper"], [E && n["context-menu__wrapper--hidden"]]),
|
|
39
39
|
style: {
|
|
40
|
-
transform: `${
|
|
40
|
+
transform: `${P()}`
|
|
41
41
|
},
|
|
42
|
-
ref:
|
|
42
|
+
ref: s,
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ e(
|
|
45
45
|
"button",
|
|
46
46
|
{
|
|
47
47
|
type: "button",
|
|
48
|
-
onClick: () =>
|
|
48
|
+
onClick: () => p((l) => !l),
|
|
49
49
|
className: n["context-menu__button"],
|
|
50
50
|
ref: o,
|
|
51
|
-
children: /* @__PURE__ */ e(
|
|
51
|
+
children: /* @__PURE__ */ e(k, { name: "CheveronDown", size: 16 })
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */ y("ul", { ref:
|
|
54
|
+
/* @__PURE__ */ y("ul", { ref: i, className: w(n["context-menu"], T && n["context-menu--open"]), children: [
|
|
55
55
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
56
56
|
"button",
|
|
57
57
|
{
|
|
58
58
|
type: "button",
|
|
59
|
-
onClick: () =>
|
|
59
|
+
onClick: () => a("insertRowAbove"),
|
|
60
60
|
className: n["context-menu__item"],
|
|
61
61
|
"aria-label": t.aria.labels.tableInsertRowAbove,
|
|
62
62
|
children: t.table.insertRowAbove
|
|
@@ -66,7 +66,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
66
66
|
"button",
|
|
67
67
|
{
|
|
68
68
|
type: "button",
|
|
69
|
-
onClick: () =>
|
|
69
|
+
onClick: () => a("insertRowBelow"),
|
|
70
70
|
className: n["context-menu__item"],
|
|
71
71
|
"aria-label": t.aria.labels.tableInsertRowBelow,
|
|
72
72
|
children: t.table.insertRowBelow
|
|
@@ -76,7 +76,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
76
76
|
"button",
|
|
77
77
|
{
|
|
78
78
|
type: "button",
|
|
79
|
-
onClick: () =>
|
|
79
|
+
onClick: () => a("deleteRow"),
|
|
80
80
|
className: n["context-menu__item"],
|
|
81
81
|
"aria-label": t.aria.labels.tableDeleteRow,
|
|
82
82
|
children: t.table.deleteRow
|
|
@@ -86,7 +86,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
86
86
|
"button",
|
|
87
87
|
{
|
|
88
88
|
type: "button",
|
|
89
|
-
onClick: () =>
|
|
89
|
+
onClick: () => a("insertColumnLeft"),
|
|
90
90
|
className: n["context-menu__item"],
|
|
91
91
|
"aria-label": t.aria.labels.tableInsertColumnLeft,
|
|
92
92
|
children: t.table.insertColumnLeft
|
|
@@ -96,7 +96,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
96
96
|
"button",
|
|
97
97
|
{
|
|
98
98
|
type: "button",
|
|
99
|
-
onClick: () =>
|
|
99
|
+
onClick: () => a("insertColumnRight"),
|
|
100
100
|
className: n["context-menu__item"],
|
|
101
101
|
"aria-label": t.aria.labels.tableInsertColumnRight,
|
|
102
102
|
children: t.table.insertColumnRight
|
|
@@ -106,7 +106,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
106
106
|
"button",
|
|
107
107
|
{
|
|
108
108
|
type: "button",
|
|
109
|
-
onClick: () =>
|
|
109
|
+
onClick: () => a("deleteColumn"),
|
|
110
110
|
className: n["context-menu__item"],
|
|
111
111
|
"aria-label": t.aria.labels.tableDeleteColumn,
|
|
112
112
|
children: t.table.deleteColumn
|
|
@@ -116,7 +116,7 @@ import '../../../../../assets/TableCellContextMenu.css';const n = {
|
|
|
116
116
|
"button",
|
|
117
117
|
{
|
|
118
118
|
type: "button",
|
|
119
|
-
onClick: () =>
|
|
119
|
+
onClick: () => a("deleteTable"),
|
|
120
120
|
className: n["context-menu__item"],
|
|
121
121
|
"aria-label": t.aria.labels.tableDeleteTable,
|
|
122
122
|
children: t.table.deleteTable
|
|
@@ -4,7 +4,7 @@ import "../../../../clsx-OuTLNxxd.js";
|
|
|
4
4
|
import "../../../../LexicalTable.prod-CphD9tIW.js";
|
|
5
5
|
import "../../../../Lexical.prod-DcAfce4S.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-hxs9O_ox.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -21,7 +21,7 @@ import "../../../IconButton/IconButton.js";
|
|
|
21
21
|
import "../../../Input/Input.js";
|
|
22
22
|
import "../../../InputField/InputField.js";
|
|
23
23
|
import "react-router";
|
|
24
|
-
import "../../../../RteEditor.module-
|
|
24
|
+
import "../../../../RteEditor.module-45648CA2.js";
|
|
25
25
|
import "../../hooks/useTranslation.js";
|
|
26
26
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
27
27
|
import "../../Providers/LanguageProvider.js";
|
|
@@ -29,7 +29,7 @@ import "../../../../index-DllfJcv4.js";
|
|
|
29
29
|
import "../../../SelectListbox/SelectListbox.js";
|
|
30
30
|
import "../../../SelectListbox/SelectProvider.js";
|
|
31
31
|
import "../../../Sortable/components/SortableItem.js";
|
|
32
|
-
import "../../../../SortableProvider-
|
|
32
|
+
import "../../../../SortableProvider-B3_u0pKv.js";
|
|
33
33
|
export {
|
|
34
34
|
F as TablePlugin
|
|
35
35
|
};
|
|
@@ -7,9 +7,9 @@ import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.j
|
|
|
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-hxs9O_ox.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
|
-
import { s as A } from "../../../../RteEditor.module-
|
|
12
|
+
import { s as A } from "../../../../RteEditor.module-45648CA2.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const O = ({ editorScrollPosition: d }) => {
|
|
15
15
|
const [t] = P(), [i, s] = L(null), u = E(null), f = N(() => {
|
|
@@ -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-hxs9O_ox.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|
|
@@ -13,10 +13,10 @@ import { s as Yt, c as Qt, a as je, b as Zt, w as er, S as tr, y as Je, O as rr
|
|
|
13
13
|
import { a as nr, w as or, M as ar } from "../../helpers-Dpx3BPyY.js";
|
|
14
14
|
import { c as sr } from "../../clsx-OuTLNxxd.js";
|
|
15
15
|
import { exportMap as ir, isStartingWithHtmlTag as lr, mergeBoldStrongTags as ur } from "./helpers.js";
|
|
16
|
-
import { s as I } from "../../RteEditor.module-
|
|
16
|
+
import { s as I } from "../../RteEditor.module-45648CA2.js";
|
|
17
17
|
import { ToolBarPlugin as cr } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
18
18
|
import { useTranslation as dr } from "./hooks/useTranslation.js";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-hxs9O_ox.js";
|
|
20
20
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "./hooks/components/Flyout.js";
|
|
22
22
|
import "../Buttons/Button.js";
|
|
@@ -36,7 +36,7 @@ import "react-router";
|
|
|
36
36
|
import "../SelectListbox/SelectListbox.js";
|
|
37
37
|
import "../SelectListbox/SelectProvider.js";
|
|
38
38
|
import "../Sortable/components/SortableItem.js";
|
|
39
|
-
import "../../SortableProvider-
|
|
39
|
+
import "../../SortableProvider-B3_u0pKv.js";
|
|
40
40
|
import { UvaTheme as mr } from "./UvaTheme/UvaTheme.js";
|
|
41
41
|
import { EditorHeader as pr } from "./EditorHeader/EditorHeader.js";
|
|
42
42
|
import { LanguageProvider as gr, useLanguage as hr } from "./Providers/LanguageProvider.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import '../../assets/SectionNotification.css';const i = {
|
|
4
|
-
"section-notification": "_section-
|
|
5
|
-
"section-notification--fullwidth": "_section-notification--
|
|
4
|
+
"section-notification": "_section-notification_10vkx_1",
|
|
5
|
+
"section-notification--fullwidth": "_section-notification--fullwidth_10vkx_10"
|
|
6
6
|
}, a = ({ fullWidth: t = !1, children: o }) => /* @__PURE__ */ n(
|
|
7
7
|
"div",
|
|
8
8
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { forwardRef as E, useRef as g, useEffect as c } from "react";
|
|
4
|
-
import { s as t } from "../../../SelectListbox.module-
|
|
4
|
+
import { s as t } from "../../../SelectListbox.module-N3Kg0UvL.js";
|
|
5
5
|
import { Icon as L } from "../../Icon/Icon.js";
|
|
6
6
|
import { useSelect as N } from "../SelectProvider.js";
|
|
7
7
|
const O = E((d, u) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as i, useCallback as u, useEffect as l } from "react";
|
|
3
3
|
import { useSelect as m } from "../SelectProvider.js";
|
|
4
|
-
import { s as f } from "../../../SelectListbox.module-
|
|
4
|
+
import { s as f } from "../../../SelectListbox.module-N3Kg0UvL.js";
|
|
5
5
|
const E = ({ children: o }) => {
|
|
6
6
|
const { isOpen: r, setIsOpen: n } = m(), t = i(null), e = u(
|
|
7
7
|
({ target: s }) => {
|
|
@@ -2,7 +2,7 @@ import { jsxs as D, Fragment as h, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as y } from "../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useRef as O, useEffect as d } from "react";
|
|
4
4
|
import { useSelect as x } from "../SelectProvider.js";
|
|
5
|
-
import { s as o } from "../../../SelectListbox.module-
|
|
5
|
+
import { s as o } from "../../../SelectListbox.module-N3Kg0UvL.js";
|
|
6
6
|
const j = ({ option: l, index: t, dividerAfter: u, children: v }) => {
|
|
7
7
|
const i = O(null), { isOpen: r, activeIndex: s, setActiveIndex: c, selectedValue: f, setSelectedValue: p, setIsOpen: n, options: a } = x(), w = (e) => {
|
|
8
8
|
p(a[e]), n(!1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m, useRef as x } from "react";
|
|
3
|
-
import { s as i } from "../../../SelectListbox.module-
|
|
3
|
+
import { s as i } from "../../../SelectListbox.module-N3Kg0UvL.js";
|
|
4
4
|
import { useSelect as a } from "../SelectProvider.js";
|
|
5
5
|
const h = m((l, e) => {
|
|
6
6
|
const { style: t, children: o } = l, { listboxId: r, isOpen: c } = a(), n = x(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Children as e } from "react";
|
|
3
3
|
import { SortableItem as b } from "./components/SortableItem.js";
|
|
4
|
-
import { S as n } from "../../SortableProvider-
|
|
4
|
+
import { S as n } from "../../SortableProvider-B3_u0pKv.js";
|
|
5
5
|
const S = ({ children: t, ItemHandlePlacement: m = "left", scrollable: a, disabled: l, onSort: i }) => /* @__PURE__ */ o(
|
|
6
6
|
n,
|
|
7
7
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "./sortableReducer.js";
|
|
4
|
-
import { S as p, u as a } from "../../SortableProvider-
|
|
4
|
+
import { S as p, u as a } from "../../SortableProvider-B3_u0pKv.js";
|
|
5
5
|
import "./actions.js";
|
|
6
6
|
export {
|
|
7
7
|
p as SortableProvider,
|