@uva-glass/component-library 3.31.0 → 3.32.1
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/SortableProvider-DisCfTTN.js +160 -0
- package/dist/SortableProvider-DisCfTTN.js.map +1 -0
- package/dist/{TablePlugin-Dmy98Epb.js → TablePlugin-oF-gInNx.js} +2 -2
- package/dist/{TablePlugin-Dmy98Epb.js.map → TablePlugin-oF-gInNx.js.map} +1 -1
- package/dist/assets/TextArea.css +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/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- 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/LinkPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +2 -2
- package/dist/components/Sortable/Sortable.d.ts +5 -3
- package/dist/components/Sortable/Sortable.js +36 -31
- package/dist/components/Sortable/Sortable.js.map +1 -1
- package/dist/components/Sortable/Sortable.stories.d.ts +3 -3
- package/dist/components/Sortable/Sortable.stories.js +19 -12
- package/dist/components/Sortable/Sortable.stories.js.map +1 -1
- package/dist/components/Sortable/SortableProvider.d.ts +9 -6
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +1 -1
- package/dist/components/TextArea/TextArea.d.ts +3 -1
- package/dist/components/TextArea/TextArea.js +28 -23
- package/dist/components/TextArea/TextArea.js.map +1 -1
- package/dist/components/TextArea/TextArea.stories.d.ts +1 -0
- package/dist/components/TextArea/TextArea.stories.js +18 -19
- package/dist/components/TextArea/TextArea.stories.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/SortableProvider-C2T7b-pm.js +0 -153
- package/dist/SortableProvider-C2T7b-pm.js.map +0 -1
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as x, useEffect as N, cloneElement as O, createContext as A, useReducer as L, Children as E, useContext as j } from "react";
|
|
3
|
-
import { sortableReducer as q, initialState as B } from "./components/Sortable/sortableReducer.js";
|
|
4
|
-
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { s as c } from "./Sortable.module--kgnzOjW.js";
|
|
6
|
-
import { setDraggingTarget as H, setDraggingSource as X, setClone as Y, reset as k, moveToPosition as z, drop as F, dragStart as G, dragEnd as J, clearDraggingTarget as K, clearDraggingSource as M } from "./components/Sortable/actions.js";
|
|
7
|
-
function Q({ scrollable: i, hideNumbers: g, onSort: l }) {
|
|
8
|
-
const { clone: n, draggingTarget: p, drop: D, sortableItems: S, setDraggingTarget: o, reset: T, indices: a } = V(), d = x(null), s = x(null), u = x(a);
|
|
9
|
-
function m(r) {
|
|
10
|
-
const t = d.current;
|
|
11
|
-
if (!t?.hasChildNodes()) return;
|
|
12
|
-
const e = r.currentTarget;
|
|
13
|
-
return Array.from(t.childNodes).findIndex((v) => v.isEqualNode(e));
|
|
14
|
-
}
|
|
15
|
-
function C(r) {
|
|
16
|
-
const t = m(r);
|
|
17
|
-
t !== void 0 && (n && s.current && s.current.removeChild(n), D(t));
|
|
18
|
-
}
|
|
19
|
-
function $(r) {
|
|
20
|
-
if (r.preventDefault(), r.dataTransfer.dropEffect = "move", n) {
|
|
21
|
-
const { clientX: e, clientY: b } = r, { x: h, y: v, width: P, height: w } = r.currentTarget.getBoundingClientRect(), R = w / 2 - (b - v);
|
|
22
|
-
n.setAttribute(
|
|
23
|
-
"style",
|
|
24
|
-
`
|
|
25
|
-
left: ${e - (e - h)}px;
|
|
26
|
-
top: ${v - R}px;
|
|
27
|
-
height: ${w}px;
|
|
28
|
-
width: ${P}px;
|
|
29
|
-
visibility: visible;
|
|
30
|
-
`
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
const t = m(r);
|
|
34
|
-
t === void 0 || t === p || o(t);
|
|
35
|
-
}
|
|
36
|
-
function I(r) {
|
|
37
|
-
const { relatedTarget: t } = r;
|
|
38
|
-
t !== null && d.current?.contains(t) || (T(), n && n.setAttribute("style", "visibility: hidden;"));
|
|
39
|
-
}
|
|
40
|
-
return N(() => {
|
|
41
|
-
if (!(!n || !s.current))
|
|
42
|
-
return s.current.appendChild(n), function() {
|
|
43
|
-
n.remove();
|
|
44
|
-
};
|
|
45
|
-
}, [n]), N(() => {
|
|
46
|
-
l && a.valueOf() !== u.current.valueOf() && (l(a), u.current = a);
|
|
47
|
-
}, [a, u, l]), /* @__PURE__ */ f(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
className: _(c.sortable__wrapper, { [c["sortable__wrapper--scrollable"]]: i }),
|
|
51
|
-
ref: s,
|
|
52
|
-
children: /* @__PURE__ */ f(
|
|
53
|
-
"ul",
|
|
54
|
-
{
|
|
55
|
-
className: _(c.sortable__container, {
|
|
56
|
-
[c["sortable__container--drag-over"]]: n !== void 0
|
|
57
|
-
}),
|
|
58
|
-
onDragLeave: I,
|
|
59
|
-
ref: d,
|
|
60
|
-
role: "presentation",
|
|
61
|
-
children: S.map((r, t) => /* @__PURE__ */ f(
|
|
62
|
-
"li",
|
|
63
|
-
{
|
|
64
|
-
className: _(c["sortable__drop-target"], {
|
|
65
|
-
[c["sortable__drop-target--no-number"]]: g
|
|
66
|
-
}),
|
|
67
|
-
draggable: !1,
|
|
68
|
-
onDragOver: $,
|
|
69
|
-
onDrop: C,
|
|
70
|
-
role: "presentation",
|
|
71
|
-
children: O(r, { index: t })
|
|
72
|
-
},
|
|
73
|
-
t
|
|
74
|
-
))
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
const y = A(void 0), U = (i) => ({
|
|
81
|
-
...B,
|
|
82
|
-
indices: E.map(i, ({ props: g }) => g.index),
|
|
83
|
-
maxIndex: E.count(i) - 1,
|
|
84
|
-
sortableItems: i
|
|
85
|
-
});
|
|
86
|
-
function oe({ children: i, items: g, scrollable: l, hideNumbers: n, onSort: p }) {
|
|
87
|
-
const D = x(g), [S, o] = L(q, i, U);
|
|
88
|
-
function T(e) {
|
|
89
|
-
o(X(e));
|
|
90
|
-
}
|
|
91
|
-
function a(e) {
|
|
92
|
-
o(H(e));
|
|
93
|
-
}
|
|
94
|
-
function d(e) {
|
|
95
|
-
o(z(e));
|
|
96
|
-
}
|
|
97
|
-
function s() {
|
|
98
|
-
o(K());
|
|
99
|
-
}
|
|
100
|
-
function u() {
|
|
101
|
-
o(M());
|
|
102
|
-
}
|
|
103
|
-
function m(e) {
|
|
104
|
-
o(F(e));
|
|
105
|
-
}
|
|
106
|
-
function C(e) {
|
|
107
|
-
o(G(e));
|
|
108
|
-
}
|
|
109
|
-
function $() {
|
|
110
|
-
o(J());
|
|
111
|
-
}
|
|
112
|
-
function I() {
|
|
113
|
-
o(k());
|
|
114
|
-
}
|
|
115
|
-
function r(e) {
|
|
116
|
-
o(Y(e));
|
|
117
|
-
}
|
|
118
|
-
function t(e) {
|
|
119
|
-
const b = e.map((h) => D.current[h]);
|
|
120
|
-
p && p(b);
|
|
121
|
-
}
|
|
122
|
-
return /* @__PURE__ */ f(
|
|
123
|
-
y.Provider,
|
|
124
|
-
{
|
|
125
|
-
value: {
|
|
126
|
-
...S,
|
|
127
|
-
clearDraggingSource: u,
|
|
128
|
-
clearDraggingTarget: s,
|
|
129
|
-
dragEnd: $,
|
|
130
|
-
dragStart: C,
|
|
131
|
-
drop: m,
|
|
132
|
-
moveToPosition: d,
|
|
133
|
-
reset: I,
|
|
134
|
-
setClone: r,
|
|
135
|
-
setDraggingSource: T,
|
|
136
|
-
setDraggingTarget: a
|
|
137
|
-
},
|
|
138
|
-
children: /* @__PURE__ */ f(Q, { scrollable: l, hideNumbers: n, onSort: t })
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
function V() {
|
|
143
|
-
const i = j(y);
|
|
144
|
-
if (i === void 0)
|
|
145
|
-
throw new Error("useSortable must be used within a SortableProvider");
|
|
146
|
-
return i;
|
|
147
|
-
}
|
|
148
|
-
export {
|
|
149
|
-
oe as S,
|
|
150
|
-
Q as a,
|
|
151
|
-
V as u
|
|
152
|
-
};
|
|
153
|
-
//# sourceMappingURL=SortableProvider-C2T7b-pm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SortableProvider-C2T7b-pm.js","sources":["../src/components/Sortable/components/SortableContainer.tsx","../src/components/Sortable/SortableProvider.tsx"],"sourcesContent":["import { cloneElement, useEffect, useRef } from 'react';\nimport { clsx } from 'clsx';\n\nimport type { DragEvent } from 'react';\n\nimport styles from 'components/Sortable/Sortable.module.css';\nimport { useSortable } from 'components/Sortable/SortableProvider';\n\nexport type OnSort = (indices: number[]) => void;\n\ninterface SortableContainerProps {\n scrollable?: boolean;\n hideNumbers?: boolean;\n onSort?: OnSort;\n}\n\nexport function SortableContainer({ scrollable, hideNumbers, onSort }: SortableContainerProps) {\n const { clone, draggingTarget, drop, sortableItems, setDraggingTarget, reset, indices } = useSortable();\n const containerRef = useRef<HTMLUListElement>(null);\n const wrapperRef = useRef<HTMLDivElement>(null);\n const indicesRef = useRef<number[]>(indices);\n\n function getTargetIndex(event: DragEvent<HTMLLIElement>) {\n const sortableContainer = containerRef.current;\n\n if (!sortableContainer?.hasChildNodes()) return;\n\n const listItemNode = event.currentTarget;\n const childNodes = Array.from(sortableContainer.childNodes);\n const targetIndex = childNodes.findIndex((node) => node.isEqualNode(listItemNode));\n\n return targetIndex;\n }\n\n function handleDrop(event: DragEvent<HTMLLIElement>) {\n const targetIndex = getTargetIndex(event);\n\n if (targetIndex === undefined) return;\n\n if (clone && wrapperRef.current) wrapperRef.current.removeChild(clone);\n\n drop(targetIndex);\n }\n\n function handleDragOver(event: DragEvent<HTMLLIElement>) {\n // Prevent default to allow drop\n event.preventDefault();\n event.dataTransfer.dropEffect = 'move';\n\n if (clone) {\n const { clientX, clientY } = event;\n const { x, y, width, height } = event.currentTarget.getBoundingClientRect();\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n const grabPosition = height / 2 - (clientY - y);\n\n // lock drag image movement to x-axis and mouse pointer\n clone.setAttribute(\n 'style',\n `\n left: ${clientX - (clientX - x)}px;\n top: ${y - grabPosition}px;\n height: ${height}px;\n width: ${width}px;\n visibility: visible;\n `\n );\n }\n\n const targetIndex = getTargetIndex(event);\n\n if (targetIndex === undefined || targetIndex === draggingTarget) return;\n\n setDraggingTarget(targetIndex);\n }\n\n function handleContainerDragLeave(event: DragEvent<HTMLUListElement>) {\n const { relatedTarget } = event;\n\n const within = relatedTarget !== null && containerRef.current?.contains(relatedTarget as Node);\n\n if (!within) {\n reset();\n\n if (clone) {\n clone.setAttribute('style', 'visibility: hidden;');\n }\n }\n }\n\n useEffect(() => {\n if (!clone || !wrapperRef.current) return;\n\n wrapperRef.current.appendChild(clone);\n\n return function () {\n clone.remove();\n };\n }, [clone]);\n\n useEffect(() => {\n if (!onSort) return;\n\n if (indices.valueOf() !== indicesRef.current.valueOf()) {\n onSort(indices);\n\n indicesRef.current = indices;\n }\n }, [indices, indicesRef, onSort]);\n\n return (\n <div\n className={clsx(styles['sortable__wrapper'], { [styles['sortable__wrapper--scrollable']]: scrollable })}\n ref={wrapperRef}\n >\n <ul\n className={clsx(styles['sortable__container'], {\n [styles['sortable__container--drag-over']]: clone !== undefined,\n })}\n onDragLeave={handleContainerDragLeave}\n ref={containerRef}\n role=\"presentation\"\n >\n {sortableItems.map((child, index) => (\n <li\n className={clsx(styles['sortable__drop-target'], {\n [styles['sortable__drop-target--no-number']]: hideNumbers,\n })}\n draggable={false}\n key={index}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n role=\"presentation\"\n >\n {cloneElement(child, { index })}\n </li>\n ))}\n </ul>\n </div>\n );\n}\n","import { Children, createContext, useContext, useReducer, useRef } from 'react';\n\nimport type { ReactElement } from 'react';\nimport type { SortableStateType } from './sortableReducer';\n\nimport { sortableReducer, initialState } from './sortableReducer';\nimport { SortableContainer } from './components/SortableContainer';\nimport * as actions from './actions';\n\ntype SortableContextType = {\n clearDraggingSource: () => void;\n clearDraggingTarget: () => void;\n dragEnd: () => void;\n dragStart: (index: number) => void;\n drop: (index: number) => void;\n moveToPosition: (index: number) => void;\n reset: () => void;\n setClone: (node: Element) => void;\n setDraggingSource: (index: number) => void;\n setDraggingTarget: (index: number) => void;\n};\n\nconst SortableContext = createContext<(SortableContextType & SortableStateType) | undefined>(undefined);\n\ninterface Props {\n children: SortableStateType['sortableItems'];\n items: ReactElement[] | string[];\n scrollable?: boolean;\n hideNumbers?: boolean;\n onSort?: (items: (string | ReactElement)[]) => void;\n}\n\nconst init = (children: Props['children']): SortableStateType => ({\n ...initialState,\n indices: Children.map(children, ({ props }) => props.index),\n maxIndex: Children.count(children) - 1,\n sortableItems: children,\n});\n\nexport function SortableProvider({ children, items, scrollable, hideNumbers, onSort }: Props) {\n const persistentItems = useRef(items);\n\n const [state, dispatch] = useReducer(sortableReducer, children, init);\n\n function setDraggingSource(index: number) {\n dispatch(actions.setDraggingSource(index));\n }\n\n function setDraggingTarget(index: number) {\n dispatch(actions.setDraggingTarget(index));\n }\n\n function moveToPosition(index: number) {\n dispatch(actions.moveToPosition(index));\n }\n\n function clearDraggingTarget() {\n dispatch(actions.clearDraggingTarget());\n }\n\n function clearDraggingSource() {\n dispatch(actions.clearDraggingSource());\n }\n\n function drop(index: number) {\n dispatch(actions.drop(index));\n }\n\n function dragStart(index: number) {\n dispatch(actions.dragStart(index));\n }\n\n function dragEnd() {\n dispatch(actions.dragEnd());\n }\n\n function reset() {\n dispatch(actions.reset());\n }\n\n function setClone(node: Element) {\n dispatch(actions.setClone(node));\n }\n\n function onHandleSort(sortedIndices: number[]) {\n const sortedItems = sortedIndices.map((index) => persistentItems.current[index]);\n onSort && onSort(sortedItems);\n }\n\n return (\n <SortableContext.Provider\n value={{\n ...state,\n clearDraggingSource,\n clearDraggingTarget,\n dragEnd,\n dragStart,\n drop,\n moveToPosition,\n reset,\n setClone,\n setDraggingSource,\n setDraggingTarget,\n }}\n >\n <SortableContainer scrollable={scrollable} hideNumbers={hideNumbers} onSort={onHandleSort} />\n </SortableContext.Provider>\n );\n}\n\nexport function useSortable() {\n const context = useContext(SortableContext);\n\n if (context === undefined) {\n throw new Error('useSortable must be used within a SortableProvider');\n }\n\n return context;\n}\n"],"names":["SortableContainer","scrollable","hideNumbers","onSort","clone","draggingTarget","drop","sortableItems","setDraggingTarget","reset","indices","useSortable","containerRef","useRef","wrapperRef","indicesRef","getTargetIndex","event","sortableContainer","listItemNode","node","handleDrop","targetIndex","handleDragOver","clientX","clientY","x","y","width","height","grabPosition","handleContainerDragLeave","relatedTarget","useEffect","jsx","clsx","styles","child","index","cloneElement","SortableContext","createContext","init","children","initialState","Children","props","SortableProvider","items","persistentItems","state","dispatch","useReducer","sortableReducer","setDraggingSource","actions.setDraggingSource","actions.setDraggingTarget","moveToPosition","actions.moveToPosition","clearDraggingTarget","actions.clearDraggingTarget","clearDraggingSource","actions.clearDraggingSource","actions.drop","dragStart","actions.dragStart","dragEnd","actions.dragEnd","actions.reset","setClone","actions.setClone","onHandleSort","sortedIndices","sortedItems","context","useContext"],"mappings":";;;;;;AAgBO,SAASA,EAAkB,EAAE,YAAAC,GAAY,aAAAC,GAAa,QAAAC,KAAkC;AAC7F,QAAM,EAAE,OAAAC,GAAO,gBAAAC,GAAgB,MAAAC,GAAM,eAAAC,GAAe,mBAAAC,GAAmB,OAAAC,GAAO,SAAAC,EAAA,IAAYC,EAAA,GACpFC,IAAeC,EAAyB,IAAI,GAC5CC,IAAaD,EAAuB,IAAI,GACxCE,IAAaF,EAAiBH,CAAO;AAE3C,WAASM,EAAeC,GAAiC;AACvD,UAAMC,IAAoBN,EAAa;AAEvC,QAAI,CAACM,GAAmB,gBAAiB;AAEzC,UAAMC,IAAeF,EAAM;AAI3B,WAHmB,MAAM,KAAKC,EAAkB,UAAU,EAC3B,UAAU,CAACE,MAASA,EAAK,YAAYD,CAAY,CAAC;AAAA,EAE1E;AAGT,WAASE,EAAWJ,GAAiC;AACnD,UAAMK,IAAcN,EAAeC,CAAK;AAExC,IAAIK,MAAgB,WAEhBlB,KAASU,EAAW,WAASA,EAAW,QAAQ,YAAYV,CAAK,GAErEE,EAAKgB,CAAW;AAAA,EAAA;AAGlB,WAASC,EAAeN,GAAiC;AAKvD,QAHAA,EAAM,eAAA,GACNA,EAAM,aAAa,aAAa,QAE5Bb,GAAO;AACT,YAAM,EAAE,SAAAoB,GAAS,SAAAC,EAAA,IAAYR,GACvB,EAAE,GAAAS,GAAG,GAAAC,GAAG,OAAAC,GAAO,QAAAC,MAAWZ,EAAM,cAAc,sBAAA,GAE9Ca,IAAeD,IAAS,KAAKJ,IAAUE;AAG7C,MAAAvB,EAAM;AAAA,QACJ;AAAA,QACA;AAAA,gBACQoB,KAAWA,IAAUE,EAAE;AAAA,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