@uva-glass/component-library 3.19.2 → 3.19.4
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/StatusPill.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/TablePlugin.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/VarIndicator.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/StatusPill/StatusPill.js +5 -5
- package/dist/components/TextArea/TextArea.js +12 -12
- package/dist/components/ToggleSwitch/ToggleSwitch.js +26 -26
- package/dist/components/Tooltip/Tooltip.js +24 -24
- package/dist/components/VarIndicator/VarIndicator.js +13 -13
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +11 -13
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +11 -13
- package/dist/index.js.map +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
- package/dist/TimelineItem-ClDZJkaZ.js +0 -60
- package/dist/TimelineItem-ClDZJkaZ.js.map +0 -1
- package/dist/assets/TimelineItem.css +0 -1
- package/dist/components/Timeline/Timeline.d.ts +0 -23
- package/dist/components/Timeline/Timeline.js +0 -29
- package/dist/components/Timeline/Timeline.js.map +0 -1
- package/dist/components/Timeline/Timeline.stories.d.ts +0 -5
- package/dist/components/Timeline/Timeline.stories.js +0 -43
- package/dist/components/Timeline/Timeline.stories.js.map +0 -1
- package/dist/components/Timeline/Timeline.test.d.ts +0 -0
- package/dist/components/Timeline/Timeline.test.js +0 -80
- package/dist/components/Timeline/Timeline.test.js.map +0 -1
- package/dist/components/Timeline/TimelineItem.d.ts +0 -2
- package/dist/components/Timeline/TimelineItem.js +0 -7
- package/dist/components/Timeline/TimelineItem.js.map +0 -1
- package/dist/components/Timeline/index.d.ts +0 -1
- package/dist/components/Timeline/index.js +0 -5
- package/dist/components/Timeline/index.js.map +0 -1
- package/dist/components/Timeline/mockTimelineItem.d.ts +0 -30
- package/dist/components/Timeline/mockTimelineItem.js +0 -95
- package/dist/components/Timeline/mockTimelineItem.js.map +0 -1
|
@@ -8,21 +8,21 @@ import { Backdrop as Y } from "../Backdrop/Backdrop.js";
|
|
|
8
8
|
import { OverlayCloseButton as Z } from "../OverlayCloseButton/OverlayCloseButton.js";
|
|
9
9
|
import { Spinner as oo } from "../Spinner/Spinner.js";
|
|
10
10
|
import '../../assets/ModalDialog.css';const o = {
|
|
11
|
-
"modal-dialog": "_modal-
|
|
12
|
-
"modal-dialog--padded": "_modal-dialog--
|
|
13
|
-
"modal-dialog__content": "_modal-
|
|
14
|
-
"modal-dialog__children": "_modal-
|
|
15
|
-
"modal-dialog__title": "_modal-
|
|
16
|
-
"modal-dialog--confirm": "_modal-dialog--
|
|
17
|
-
"modal-dialog__buttons": "_modal-
|
|
18
|
-
"modal-dialog__buttons--border": "_modal-dialog__buttons--
|
|
19
|
-
"modal-dialog__buttons--shadow": "_modal-dialog__buttons--
|
|
20
|
-
"modal-dialog__close": "_modal-
|
|
21
|
-
"modal-dialog--small": "_modal-dialog--
|
|
22
|
-
"modal-dialog--regular": "_modal-dialog--
|
|
23
|
-
"modal-dialog--medium": "_modal-dialog--
|
|
24
|
-
"modal-dialog--large": "_modal-dialog--
|
|
25
|
-
"modal-dialog--content-with-buttons": "_modal-dialog--content-with-
|
|
11
|
+
"modal-dialog": "_modal-dialog_1s7u8_1",
|
|
12
|
+
"modal-dialog--padded": "_modal-dialog--padded_1s7u8_18",
|
|
13
|
+
"modal-dialog__content": "_modal-dialog__content_1s7u8_22",
|
|
14
|
+
"modal-dialog__children": "_modal-dialog__children_1s7u8_33",
|
|
15
|
+
"modal-dialog__title": "_modal-dialog__title_1s7u8_37",
|
|
16
|
+
"modal-dialog--confirm": "_modal-dialog--confirm_1s7u8_44",
|
|
17
|
+
"modal-dialog__buttons": "_modal-dialog__buttons_1s7u8_48",
|
|
18
|
+
"modal-dialog__buttons--border": "_modal-dialog__buttons--border_1s7u8_61",
|
|
19
|
+
"modal-dialog__buttons--shadow": "_modal-dialog__buttons--shadow_1s7u8_78",
|
|
20
|
+
"modal-dialog__close": "_modal-dialog__close_1s7u8_82",
|
|
21
|
+
"modal-dialog--small": "_modal-dialog--small_1s7u8_99",
|
|
22
|
+
"modal-dialog--regular": "_modal-dialog--regular_1s7u8_103",
|
|
23
|
+
"modal-dialog--medium": "_modal-dialog--medium_1s7u8_107",
|
|
24
|
+
"modal-dialog--large": "_modal-dialog--large_1s7u8_111",
|
|
25
|
+
"modal-dialog--content-with-buttons": "_modal-dialog--content-with-buttons_1s7u8_125"
|
|
26
26
|
};
|
|
27
27
|
function _o(y) {
|
|
28
28
|
const {
|
|
@@ -35,17 +35,17 @@ function _o(y) {
|
|
|
35
35
|
closeButtonAriaValueText: C = "Close",
|
|
36
36
|
isOpen: e,
|
|
37
37
|
noValidate: E = !1,
|
|
38
|
-
onClose:
|
|
38
|
+
onClose: u,
|
|
39
39
|
onSubmit: L,
|
|
40
40
|
role: N = "dialog",
|
|
41
|
-
title:
|
|
42
|
-
headerContent:
|
|
41
|
+
title: s,
|
|
42
|
+
headerContent: r,
|
|
43
43
|
variant: n = "dialog",
|
|
44
|
-
padded:
|
|
44
|
+
padded: g,
|
|
45
45
|
size: z = "regular",
|
|
46
46
|
noButtonBorder: f = !1
|
|
47
47
|
} = y, m = w(null), p = w(null), [F, H] = T(!1), [O, V] = T(!1), { dialogProps: k, titleProps: A } = $({ role: N }, m), { modalProps: I } = G({ isDisabled: !e }), { overlayProps: M, underlayProps: R } = J(
|
|
48
|
-
{ isDismissable: c, isKeyboardDismissDisabled: B, isOpen: e, onClose:
|
|
48
|
+
{ isDismissable: c, isKeyboardDismissDisabled: B, isOpen: e, onClose: u },
|
|
49
49
|
m
|
|
50
50
|
);
|
|
51
51
|
Q({ isDisabled: !e }), X(() => {
|
|
@@ -66,7 +66,7 @@ function _o(y) {
|
|
|
66
66
|
return () => {
|
|
67
67
|
l && l.removeEventListener("scroll", d), window.removeEventListener("resize", d), clearTimeout(K);
|
|
68
68
|
};
|
|
69
|
-
}, [e,
|
|
69
|
+
}, [e, r]);
|
|
70
70
|
function j(l) {
|
|
71
71
|
l.stopPropagation();
|
|
72
72
|
}
|
|
@@ -78,21 +78,21 @@ function _o(y) {
|
|
|
78
78
|
...M,
|
|
79
79
|
className: i(o["modal-dialog"], [o[`modal-dialog--${z}`]], {
|
|
80
80
|
[o["modal-dialog--confirm"]]: n === "confirm",
|
|
81
|
-
[o["modal-dialog--padded"]]:
|
|
81
|
+
[o["modal-dialog--padded"]]: g
|
|
82
82
|
}),
|
|
83
83
|
onKeyUp: j,
|
|
84
84
|
role: "presentation",
|
|
85
85
|
ref: m,
|
|
86
86
|
children: [
|
|
87
|
-
(
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
(s || r) && n === "dialog" && /* @__PURE__ */ _(S, { children: [
|
|
88
|
+
s && /* @__PURE__ */ a("h1", { ...A, className: o["modal-dialog__title"], children: s }),
|
|
89
|
+
r,
|
|
90
90
|
n === "dialog" && /* @__PURE__ */ a("span", { className: o["modal-dialog__close"], children: /* @__PURE__ */ a(
|
|
91
91
|
Z,
|
|
92
92
|
{
|
|
93
93
|
"aria-label": C,
|
|
94
|
-
onClick:
|
|
95
|
-
paddedModal:
|
|
94
|
+
onClick: u,
|
|
95
|
+
paddedModal: g
|
|
96
96
|
}
|
|
97
97
|
) })
|
|
98
98
|
] }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import "../../MultiSelectItem-
|
|
4
|
-
import { M as p } from "../../TablePlugin-
|
|
3
|
+
import "../../MultiSelectItem-DbOdEllV.js";
|
|
4
|
+
import { M as p } from "../../TablePlugin-hxs9O_ox.js";
|
|
5
5
|
export {
|
|
6
6
|
p as MultiSelect
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { fn as d } from "../../index-BCvy9BiK.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-hxs9O_ox.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const C = `
|
|
7
7
|
// MultiSelectHeader can be added optionally
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../MultiSelectItem-
|
|
2
|
+
import "../../../MultiSelectItem-DbOdEllV.js";
|
|
3
3
|
import "../../Label/Label.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../Buttons/Button.js";
|
|
@@ -15,7 +15,7 @@ import "../../IconButton/IconButton.js";
|
|
|
15
15
|
import "../../Input/Input.js";
|
|
16
16
|
import "../../InputField/InputField.js";
|
|
17
17
|
import "react-router";
|
|
18
|
-
import { a as y } from "../../../TablePlugin-
|
|
18
|
+
import { a as y } from "../../../TablePlugin-hxs9O_ox.js";
|
|
19
19
|
import "../../RteEditor/Providers/LanguageProvider.js";
|
|
20
20
|
import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "../../RteEditor/hooks/components/Flyout.js";
|
|
@@ -23,7 +23,7 @@ import "../../../index-DllfJcv4.js";
|
|
|
23
23
|
import "../../SelectListbox/SelectListbox.js";
|
|
24
24
|
import "../../SelectListbox/SelectProvider.js";
|
|
25
25
|
import "../../Sortable/components/SortableItem.js";
|
|
26
|
-
import "../../../SortableProvider-
|
|
26
|
+
import "../../../SortableProvider-B3_u0pKv.js";
|
|
27
27
|
export {
|
|
28
28
|
y as MultiSelectHeader
|
|
29
29
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useId as U, useState as b, useRef as S, useCallback as
|
|
1
|
+
import { jsxs as f, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useId as U, useState as b, useRef as S, useCallback as g, useEffect as w } from "react";
|
|
3
3
|
import { c as I } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Icon as H } from "../Icon/Icon.js";
|
|
5
5
|
import { Checkbox as q } from "../Checkbox/Checkbox.js";
|
|
6
6
|
import { usePositionedFloaters as G } from "../hooks/usePositionedFloaters.js";
|
|
7
7
|
import '../../assets/MultiSelectBox.css';const n = {
|
|
8
|
-
"multi-select-box-wrapper": "_multi-select-box-
|
|
9
|
-
"multi-select-box-trigger": "_multi-select-box-
|
|
10
|
-
"multi-select-box-trigger-label": "_multi-select-box-trigger-
|
|
11
|
-
"multi-select-box-trigger-icon": "_multi-select-box-trigger-
|
|
12
|
-
"multi-select-box-trigger-icon--open": "_multi-select-box-trigger-icon--
|
|
13
|
-
"multi-select-box-listbox--wrapper": "_multi-select-box-listbox--
|
|
14
|
-
"multi-select-box-listbox": "_multi-select-box-
|
|
15
|
-
"multi-select-box-listbox-option": "_multi-select-box-listbox-
|
|
16
|
-
"multi-select-box-listbox-option--active": "_multi-select-box-listbox-option--
|
|
17
|
-
"multi-select-box-listbox-option-content": "_multi-select-box-listbox-option-
|
|
18
|
-
"multi-select-box-listbox-option--disabled": "_multi-select-box-listbox-option--
|
|
8
|
+
"multi-select-box-wrapper": "_multi-select-box-wrapper_1yhht_1",
|
|
9
|
+
"multi-select-box-trigger": "_multi-select-box-trigger_1yhht_5",
|
|
10
|
+
"multi-select-box-trigger-label": "_multi-select-box-trigger-label_1yhht_32",
|
|
11
|
+
"multi-select-box-trigger-icon": "_multi-select-box-trigger-icon_1yhht_41",
|
|
12
|
+
"multi-select-box-trigger-icon--open": "_multi-select-box-trigger-icon--open_1yhht_46",
|
|
13
|
+
"multi-select-box-listbox--wrapper": "_multi-select-box-listbox--wrapper_1yhht_50",
|
|
14
|
+
"multi-select-box-listbox": "_multi-select-box-listbox_1yhht_50",
|
|
15
|
+
"multi-select-box-listbox-option": "_multi-select-box-listbox-option_1yhht_77",
|
|
16
|
+
"multi-select-box-listbox-option--active": "_multi-select-box-listbox-option--active_1yhht_88",
|
|
17
|
+
"multi-select-box-listbox-option-content": "_multi-select-box-listbox-option-content_1yhht_99",
|
|
18
|
+
"multi-select-box-listbox-option--disabled": "_multi-select-box-listbox-option--disabled_1yhht_113"
|
|
19
19
|
}, Z = ({
|
|
20
20
|
selectData: c,
|
|
21
21
|
onChange: m,
|
|
22
|
-
defaultSelectedItems:
|
|
22
|
+
defaultSelectedItems: h,
|
|
23
23
|
labelSuffix: E = "geselecteerd",
|
|
24
24
|
disabled: P = !1,
|
|
25
25
|
fullWidth: C = !1,
|
|
26
26
|
maxOptionHeight: L,
|
|
27
27
|
optionPositionRight: O
|
|
28
28
|
}) => {
|
|
29
|
-
const
|
|
29
|
+
const _ = U(), [r, y] = b(h || []), [N, v] = b((h == null ? void 0 : h.length) || 0), [i, a] = b(!1), [d, x] = b(-1), k = S(null), A = S(null), [F, K] = b(null), [R, $] = b(null), { style: D } = G(F, R, {
|
|
30
30
|
mouseEvent: "click",
|
|
31
31
|
offset: 4,
|
|
32
32
|
maxFixedHeight: L,
|
|
33
33
|
horizontalPosition: O ? "right" : "left",
|
|
34
34
|
mobileBreakpoint: "28rem",
|
|
35
35
|
fullWidth: C
|
|
36
|
-
}), p =
|
|
36
|
+
}), p = g(
|
|
37
37
|
({ target: e }) => {
|
|
38
|
-
!e || !
|
|
38
|
+
!e || !k.current || k.current.contains(e) || a(!1);
|
|
39
39
|
},
|
|
40
40
|
[a]
|
|
41
|
-
), M =
|
|
41
|
+
), M = g(
|
|
42
42
|
(e) => {
|
|
43
43
|
switch (e.key) {
|
|
44
44
|
case "Enter":
|
|
@@ -50,7 +50,7 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
[i]
|
|
53
|
-
), T =
|
|
53
|
+
), T = g(
|
|
54
54
|
(e) => {
|
|
55
55
|
if (i)
|
|
56
56
|
switch (e.key) {
|
|
@@ -79,7 +79,7 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
79
79
|
const t = c[d];
|
|
80
80
|
if (!t || t.disabled) break;
|
|
81
81
|
const l = r.some((s) => s.value === t.value) ? r.filter((s) => s.value !== t.value) : [...r, t];
|
|
82
|
-
|
|
82
|
+
y(l), v(l.length), m(l);
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
case "Tab":
|
|
@@ -94,8 +94,8 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
94
94
|
), j = (e, t) => {
|
|
95
95
|
if (t.disabled || e.target.tagName === "INPUT") return;
|
|
96
96
|
const l = r.some((s) => s.value === t.value) ? r.filter((s) => s.value !== t.value) : [...r, t];
|
|
97
|
-
|
|
98
|
-
}, z =
|
|
97
|
+
y(l), v(l.length), m(l);
|
|
98
|
+
}, z = g(
|
|
99
99
|
(e) => {
|
|
100
100
|
const { checked: t, value: o } = e.target;
|
|
101
101
|
let l = [...r];
|
|
@@ -104,23 +104,23 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
104
104
|
s && l.push(s);
|
|
105
105
|
} else
|
|
106
106
|
l = l.filter((s) => s.value !== o);
|
|
107
|
-
|
|
107
|
+
y(l), v(l.length), m(l);
|
|
108
108
|
},
|
|
109
109
|
[c, r, m]
|
|
110
110
|
);
|
|
111
|
-
return
|
|
111
|
+
return w(() => {
|
|
112
112
|
i && x(0);
|
|
113
|
-
}, [i]),
|
|
113
|
+
}, [i]), w(() => {
|
|
114
114
|
var t;
|
|
115
115
|
const e = (t = A.current) == null ? void 0 : t.children[d];
|
|
116
116
|
e == null || e.focus();
|
|
117
|
-
}, [d]),
|
|
117
|
+
}, [d]), w(() => {
|
|
118
118
|
if (i)
|
|
119
119
|
return document.addEventListener("click", p, !0), document.addEventListener("scroll", p, !0), () => {
|
|
120
120
|
document.removeEventListener("click", p, !0), document.removeEventListener("scroll", p, !0);
|
|
121
121
|
};
|
|
122
|
-
}, [p, i]), /* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
122
|
+
}, [p, i]), /* @__PURE__ */ f("div", { className: n["multi-select-box-wrapper"], ref: k, children: [
|
|
123
|
+
/* @__PURE__ */ f(
|
|
124
124
|
"button",
|
|
125
125
|
{
|
|
126
126
|
className: n["multi-select-box-trigger"],
|
|
@@ -133,10 +133,10 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
133
133
|
"aria-haspopup": "listbox",
|
|
134
134
|
"aria-label": `${N} ${E}`,
|
|
135
135
|
disabled: P,
|
|
136
|
-
...i && { "aria-controls":
|
|
136
|
+
...i && { "aria-controls": _ },
|
|
137
137
|
ref: $,
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ f("span", { className: n["multi-select-box-trigger-label"], children: [
|
|
140
140
|
N,
|
|
141
141
|
" ",
|
|
142
142
|
E
|
|
@@ -157,7 +157,7 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
157
157
|
/* @__PURE__ */ u(
|
|
158
158
|
"div",
|
|
159
159
|
{
|
|
160
|
-
id:
|
|
160
|
+
id: _,
|
|
161
161
|
className: I(n["multi-select-box-listbox--wrapper"]),
|
|
162
162
|
style: { ...D.style, visibility: i ? "visible" : "hidden" },
|
|
163
163
|
role: "listbox",
|
|
@@ -176,11 +176,11 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
176
176
|
onFocus: () => x(l),
|
|
177
177
|
tabIndex: 0,
|
|
178
178
|
"aria-selected": r.some((s) => s.value === t),
|
|
179
|
-
children: /* @__PURE__ */
|
|
179
|
+
children: /* @__PURE__ */ f("label", { htmlFor: e, className: n["multi-select-box-listbox-option-content"], tabIndex: -1, children: [
|
|
180
180
|
/* @__PURE__ */ u(
|
|
181
181
|
q,
|
|
182
182
|
{
|
|
183
|
-
id: `${e}-${
|
|
183
|
+
id: `${e}-${_}`,
|
|
184
184
|
onChange: z,
|
|
185
185
|
value: t,
|
|
186
186
|
tabIndex: -1,
|
|
@@ -3,8 +3,8 @@ import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
4
|
import { Icon as n } from "../Icon/Icon.js";
|
|
5
5
|
import '../../assets/OverlayCloseButton.css';const t = {
|
|
6
|
-
"overlay-close-button": "_overlay-close-
|
|
7
|
-
"overlay-close-button--padded": "_overlay-close-button--
|
|
6
|
+
"overlay-close-button": "_overlay-close-button_1gbam_1",
|
|
7
|
+
"overlay-close-button--padded": "_overlay-close-button--padded_1gbam_39"
|
|
8
8
|
}, p = a(
|
|
9
9
|
({ paddedModal: e, ...r }, s) => /* @__PURE__ */ o(
|
|
10
10
|
"button",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as s, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import '../../assets/OverlayStepBar.css';const r = {
|
|
4
|
-
"overlay-step-bar__container": "_overlay-step-
|
|
5
|
-
"overlay-step-bar__step-wrapper": "_overlay-step-bar__step-
|
|
6
|
-
"overlay-step-bar__step": "_overlay-step-
|
|
7
|
-
"overlay-step-bar__step--label": "_overlay-step-bar__step--
|
|
8
|
-
"overlay-step-bar__step--index": "_overlay-step-bar__step--
|
|
9
|
-
"overlay-step-bar__step--active": "_overlay-step-bar__step--
|
|
4
|
+
"overlay-step-bar__container": "_overlay-step-bar__container_olxm1_1",
|
|
5
|
+
"overlay-step-bar__step-wrapper": "_overlay-step-bar__step-wrapper_olxm1_10",
|
|
6
|
+
"overlay-step-bar__step": "_overlay-step-bar__step_olxm1_10",
|
|
7
|
+
"overlay-step-bar__step--label": "_overlay-step-bar__step--label_olxm1_56",
|
|
8
|
+
"overlay-step-bar__step--index": "_overlay-step-bar__step--index_olxm1_62",
|
|
9
|
+
"overlay-step-bar__step--active": "_overlay-step-bar__step--active_olxm1_87"
|
|
10
10
|
}, v = ({ stepLabels: _, activeStep: a = 0, onStepClick: t }) => (a > _.length && console.error("activeStep is greater than the number of steps"), /* @__PURE__ */ s("div", { className: r["overlay-step-bar__container"], children: _.length && _.map((p, e) => /* @__PURE__ */ s("span", { className: r["overlay-step-bar__step-wrapper"], children: /* @__PURE__ */ l(
|
|
11
11
|
"button",
|
|
12
12
|
{
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as o, Fragment as j, jsxs as
|
|
1
|
+
import { jsx as o, Fragment as j, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useDialog as A } from "@react-aria/dialog";
|
|
3
3
|
import { FocusScope as C } from "@react-aria/focus";
|
|
4
4
|
import { useModal as K, useOverlay as M, usePreventScroll as U, OverlayContainer as V } from "@react-aria/overlays";
|
|
5
5
|
import { c as i } from "../../clsx-OuTLNxxd.js";
|
|
6
|
-
import { useRef as
|
|
6
|
+
import { useRef as d, useState as f, useEffect as $ } from "react";
|
|
7
7
|
import { OverlayCloseButton as q } from "../OverlayCloseButton/OverlayCloseButton.js";
|
|
8
8
|
import { Spinner as G } from "../Spinner/Spinner.js";
|
|
9
9
|
import { Backdrop as J } from "../Backdrop/Backdrop.js";
|
|
10
10
|
import '../../assets/PageOverlay.css';const e = {
|
|
11
|
-
"page-overlay__container": "_page-
|
|
12
|
-
"page-overlay": "_page-
|
|
13
|
-
"page-overlay--full-screen": "_page-overlay--full-
|
|
14
|
-
"page-overlay--with-gutters": "_page-overlay--with-
|
|
15
|
-
"page-overlay__content": "_page-
|
|
16
|
-
"page-overlay__children": "_page-
|
|
17
|
-
"page-overlay__title-wrapper": "_page-overlay__title-
|
|
18
|
-
"page-overlay__title": "_page-
|
|
19
|
-
"page-overlay__buttons-bar": "_page-overlay__buttons-
|
|
20
|
-
"page-overlay__buttons-bar--shadow": "_page-overlay__buttons-bar--
|
|
21
|
-
"page-overlay__close": "_page-
|
|
11
|
+
"page-overlay__container": "_page-overlay__container_g079c_1",
|
|
12
|
+
"page-overlay": "_page-overlay_g079c_1",
|
|
13
|
+
"page-overlay--full-screen": "_page-overlay--full-screen_g079c_18",
|
|
14
|
+
"page-overlay--with-gutters": "_page-overlay--with-gutters_g079c_22",
|
|
15
|
+
"page-overlay__content": "_page-overlay__content_g079c_27",
|
|
16
|
+
"page-overlay__children": "_page-overlay__children_g079c_39",
|
|
17
|
+
"page-overlay__title-wrapper": "_page-overlay__title-wrapper_g079c_43",
|
|
18
|
+
"page-overlay__title": "_page-overlay__title_g079c_43",
|
|
19
|
+
"page-overlay__buttons-bar": "_page-overlay__buttons-bar_g079c_54",
|
|
20
|
+
"page-overlay__buttons-bar--shadow": "_page-overlay__buttons-bar--shadow_g079c_80",
|
|
21
|
+
"page-overlay__close": "_page-overlay__close_g079c_85"
|
|
22
22
|
};
|
|
23
23
|
function ae({
|
|
24
24
|
buttons: t,
|
|
@@ -31,50 +31,50 @@ function ae({
|
|
|
31
31
|
onClose: p,
|
|
32
32
|
onSubmit: P,
|
|
33
33
|
title: s,
|
|
34
|
-
headerContent:
|
|
35
|
-
variant:
|
|
34
|
+
headerContent: c,
|
|
35
|
+
variant: g = "full-screen"
|
|
36
36
|
}) {
|
|
37
|
-
const
|
|
37
|
+
const n = d(null), v = d(null), [T, E] = f(!1), [x, L] = f(!1), { dialogProps: B, titleProps: F } = A({ role: "dialog" }, n), { modalProps: H } = K({ isDisabled: !a }), { overlayProps: k, underlayProps: z } = M({ isOpen: a, onClose: p }, n);
|
|
38
38
|
U({ isDisabled: !a }), $(() => {
|
|
39
|
-
const r =
|
|
39
|
+
const r = v.current;
|
|
40
40
|
if (!r) return;
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
E(
|
|
41
|
+
function u() {
|
|
42
|
+
const y = r.scrollHeight, m = r.clientHeight, R = r.scrollTop;
|
|
43
|
+
E(y > m), L(R + m >= y);
|
|
44
44
|
}
|
|
45
45
|
function l() {
|
|
46
|
-
|
|
46
|
+
u();
|
|
47
47
|
}
|
|
48
48
|
r.addEventListener("scroll", l), window.addEventListener("resize", l);
|
|
49
49
|
const I = setTimeout(() => {
|
|
50
|
-
|
|
50
|
+
u();
|
|
51
51
|
}, 0);
|
|
52
52
|
return () => {
|
|
53
53
|
r.removeEventListener("scroll", l), window.removeEventListener("resize", l), clearTimeout(I);
|
|
54
54
|
};
|
|
55
|
-
}, [a,
|
|
55
|
+
}, [a, c]);
|
|
56
56
|
function D(r) {
|
|
57
57
|
r.stopPropagation();
|
|
58
58
|
}
|
|
59
|
-
return a ? /* @__PURE__ */ o(V, { className: e["page-overlay__container"], children: /* @__PURE__ */ o(J, { ...z, children: b ? /* @__PURE__ */ o(G, { ariaValueText: w }) : /* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(C, { autoFocus: !0, contain: !0, restoreFocus: !0, children: /* @__PURE__ */
|
|
59
|
+
return a ? /* @__PURE__ */ o(V, { className: e["page-overlay__container"], children: /* @__PURE__ */ o(J, { ...z, children: b ? /* @__PURE__ */ o(G, { ariaValueText: w }) : /* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(C, { autoFocus: !0, contain: !0, restoreFocus: !0, children: /* @__PURE__ */ _(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
...B,
|
|
63
63
|
...H,
|
|
64
64
|
...k,
|
|
65
65
|
className: i(e["page-overlay"], {
|
|
66
|
-
[e[`page-overlay--${
|
|
66
|
+
[e[`page-overlay--${g}`]]: g
|
|
67
67
|
}),
|
|
68
68
|
onKeyUp: D,
|
|
69
69
|
role: "presentation",
|
|
70
|
-
ref:
|
|
70
|
+
ref: n,
|
|
71
71
|
children: [
|
|
72
|
-
(s ||
|
|
72
|
+
(s || c) && /* @__PURE__ */ _("div", { className: e["page-overlay__title-wrapper"], children: [
|
|
73
73
|
s && /* @__PURE__ */ o("h1", { ...F, className: e["page-overlay__title"], children: s }),
|
|
74
|
-
|
|
74
|
+
c,
|
|
75
75
|
/* @__PURE__ */ o("span", { className: e["page-overlay__close"], children: /* @__PURE__ */ o(q, { "aria-label": S, onClick: p }) })
|
|
76
76
|
] }),
|
|
77
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ _(
|
|
78
78
|
"form",
|
|
79
79
|
{
|
|
80
80
|
className: i(e["page-overlay__content"], {
|
|
@@ -82,7 +82,7 @@ function ae({
|
|
|
82
82
|
}),
|
|
83
83
|
onSubmit: P,
|
|
84
84
|
noValidate: N,
|
|
85
|
-
ref:
|
|
85
|
+
ref: v,
|
|
86
86
|
children: [
|
|
87
87
|
/* @__PURE__ */ o("div", { className: e["page-overlay__children"], children: h }),
|
|
88
88
|
t && /* @__PURE__ */ o(
|
|
@@ -17,7 +17,7 @@ import "../Input/Input.js";
|
|
|
17
17
|
import "../InputField/InputField.js";
|
|
18
18
|
import { Label as D } from "../Label/Label.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-hxs9O_ox.js";
|
|
21
21
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
22
22
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
23
23
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -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
|
import '../../assets/PeriodSelector.css';const l = {
|
|
30
30
|
"period-selector__container": "_period-selector__container_10t7p_1",
|
|
31
31
|
"period-selector__container--label-left": "_period-selector__container--label-left_10t7p_6",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { c as P } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { useId as
|
|
4
|
-
import '../../assets/Periods.css';const
|
|
5
|
-
periods__container:
|
|
6
|
-
periods__item:
|
|
7
|
-
"periods__item--active": "_periods__item--
|
|
8
|
-
},
|
|
9
|
-
const
|
|
3
|
+
import { useId as j } from "react";
|
|
4
|
+
import '../../assets/Periods.css';const N = "_periods__container_13djf_1", g = "_periods__item_13djf_6", _ = {
|
|
5
|
+
periods__container: N,
|
|
6
|
+
periods__item: g,
|
|
7
|
+
"periods__item--active": "_periods__item--active_13djf_23"
|
|
8
|
+
}, v = 6, O = ({ periods: i, tooltipTranslations: d, maxPeriods: p = v }) => {
|
|
9
|
+
const l = Array.from({ length: p }, (e, t) => t + 1), $ = j(), u = i.some((e) => typeof e == "number"), b = (e) => {
|
|
10
10
|
const t = {};
|
|
11
|
-
return
|
|
11
|
+
return u ? i.forEach((s) => {
|
|
12
12
|
if (typeof s == "number") {
|
|
13
13
|
const r = Math.ceil(s / 3), o = (s - 1) % 3 + 1;
|
|
14
14
|
t[r] || (t[r] = []), t[r].push(o);
|
|
@@ -19,21 +19,21 @@ import '../../assets/Periods.css';const g = "_periods__container_197yl_1", v = "
|
|
|
19
19
|
}), Object.keys(t).reduce((s, r, o) => {
|
|
20
20
|
const c = Number(r), n = t[c];
|
|
21
21
|
let m = "";
|
|
22
|
-
const
|
|
22
|
+
const a = n.length > 1 ? e.periods : e.period;
|
|
23
23
|
if (n.length > 1) {
|
|
24
|
-
const
|
|
25
|
-
m = `Semester ${c} ${
|
|
24
|
+
const y = n.pop();
|
|
25
|
+
m = `Semester ${c} ${a} ${n.join(", ")} ${e.and} ${y}`;
|
|
26
26
|
} else
|
|
27
|
-
m = `Semester ${c} ${
|
|
27
|
+
m = `Semester ${c} ${a} ${n[0]}`;
|
|
28
28
|
return `${s}${o > 0 ? ". " : ""}${m}`;
|
|
29
29
|
}, "").trim() + ".";
|
|
30
|
-
},
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
}, h = (e) => u ? i.includes(e) : !!i.find((t) => t.number === e);
|
|
31
|
+
return /* @__PURE__ */ f("div", { className: _.periods__container, title: d ? b(d) : "", children: l.map((e) => /* @__PURE__ */ f(
|
|
32
32
|
"span",
|
|
33
33
|
{
|
|
34
34
|
className: P(
|
|
35
35
|
_.periods__item,
|
|
36
|
-
|
|
36
|
+
h(e) ? _["periods__item--active"] : ""
|
|
37
37
|
)
|
|
38
38
|
},
|
|
39
39
|
`${$}-${e}`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as d, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useNavigate as s } from "react-router";
|
|
3
3
|
import '../../assets/ProgrammeCard.css';const o = {
|
|
4
|
-
"programme-card": "_programme-
|
|
5
|
-
"programme-card__divider": "_programme-
|
|
6
|
-
},
|
|
4
|
+
"programme-card": "_programme-card_3w5ln_1",
|
|
5
|
+
"programme-card__divider": "_programme-card__divider_3w5ln_18"
|
|
6
|
+
}, p = ({ href: a, header: e, details: m }) => {
|
|
7
7
|
const c = s();
|
|
8
8
|
return /* @__PURE__ */ d(
|
|
9
9
|
"a",
|
|
@@ -22,6 +22,6 @@ import '../../assets/ProgrammeCard.css';const o = {
|
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
p as ProgrammeCard
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=ProgrammeCard.js.map
|
|
@@ -17,7 +17,7 @@ import "../GridRow/GridRow.js";
|
|
|
17
17
|
import "../IconButton/IconButton.js";
|
|
18
18
|
import "../Input/Input.js";
|
|
19
19
|
import "../InputField/InputField.js";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-hxs9O_ox.js";
|
|
21
21
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
22
22
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
23
23
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -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
|
const p = "<ProgrammeCard key={key} header={header} details={details} href={href} />", J = {
|
|
30
30
|
title: "Atoms/ProgrammeCard",
|
|
31
31
|
component: o,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import '../../assets/RadioButton.css';const t = {
|
|
4
|
-
"radio-button": "_radio-
|
|
5
|
-
"radio-button__input": "_radio-
|
|
6
|
-
"radio-button__label": "_radio-
|
|
7
|
-
"radio-button__description": "_radio-
|
|
8
|
-
"radio-button--gap-large": "_radio-button--gap-
|
|
9
|
-
},
|
|
4
|
+
"radio-button": "_radio-button_175ij_1",
|
|
5
|
+
"radio-button__input": "_radio-button__input_175ij_8",
|
|
6
|
+
"radio-button__label": "_radio-button__label_175ij_13",
|
|
7
|
+
"radio-button__description": "_radio-button__description_175ij_19",
|
|
8
|
+
"radio-button--gap-large": "_radio-button--gap-large_175ij_34"
|
|
9
|
+
}, s = ({ id: o, label: r, gap: _ = "normal", description: i, ...n }) => /* @__PURE__ */ d("div", { className: b(t["radio-button"], t[`radio-button--gap-${_}`]), children: [
|
|
10
10
|
/* @__PURE__ */ a(
|
|
11
11
|
"input",
|
|
12
12
|
{
|
|
@@ -21,6 +21,6 @@ import '../../assets/RadioButton.css';const t = {
|
|
|
21
21
|
i && /* @__PURE__ */ a("p", { id: `${o}-description`, className: t["radio-button__description"], children: i })
|
|
22
22
|
] });
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
s as RadioButton
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=RadioButton.js.map
|