@uva-glass/component-library 3.34.1 → 3.34.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/{Lexical.prod-BjpEXQJZ.js → Lexical.prod-C7FcGFd7.js} +528 -522
- package/dist/Lexical.prod-C7FcGFd7.js.map +1 -0
- package/dist/{LexicalClipboard.prod-B4j0EyWx.js → LexicalClipboard.prod-CeOlk1NB.js} +104 -104
- package/dist/{LexicalClipboard.prod-B4j0EyWx.js.map → LexicalClipboard.prod-CeOlk1NB.js.map} +1 -1
- package/dist/{LexicalLink.prod-CYNCWmMx.js → LexicalLink.prod-CSI9BSPD.js} +46 -46
- package/dist/{LexicalLink.prod-CYNCWmMx.js.map → LexicalLink.prod-CSI9BSPD.js.map} +1 -1
- package/dist/{LexicalList.prod-BRwEushm.js → LexicalList.prod-TMA2LN4v.js} +46 -46
- package/dist/{LexicalList.prod-BRwEushm.js.map → LexicalList.prod-TMA2LN4v.js.map} +1 -1
- package/dist/{LexicalSelection.prod-DYo5_Y2k.js → LexicalSelection.prod-DDwSrdAV.js} +31 -31
- package/dist/{LexicalSelection.prod-DYo5_Y2k.js.map → LexicalSelection.prod-DDwSrdAV.js.map} +1 -1
- package/dist/{LexicalTable.prod-BArw8Dt5.js → LexicalTable.prod-DYP5JQC0.js} +268 -268
- package/dist/{LexicalTable.prod-BArw8Dt5.js.map → LexicalTable.prod-DYP5JQC0.js.map} +1 -1
- package/dist/{LexicalUtils.prod-DJRX2pwP.js → LexicalUtils.prod-D_SPJ6vo.js} +42 -42
- package/dist/{LexicalUtils.prod-DJRX2pwP.js.map → LexicalUtils.prod-D_SPJ6vo.js.map} +1 -1
- package/dist/{TablePlugin-BagQHe1w.js → TablePlugin-CI_6HCsd.js} +56 -56
- package/dist/{TablePlugin-BagQHe1w.js.map → TablePlugin-CI_6HCsd.js.map} +1 -1
- package/dist/assets/ExpandableInfoPanel.css +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +7 -7
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.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 +43 -43
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +30 -30
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +17 -17
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +201 -201
- package/dist/components/RteEditor/helpers.js +6 -6
- package/dist/components/index.js +1 -1
- package/dist/{helpers-DM8qHaKY.js → helpers-CYiLlioz.js} +38 -38
- package/dist/{helpers-DM8qHaKY.js.map → helpers-CYiLlioz.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/dist/Lexical.prod-BjpEXQJZ.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ag as f,
|
|
2
|
-
function
|
|
1
|
+
import { ag as f, x as i, o as a, ah as x, a8 as L, P as y, F as P, _ as S, a5 as _, aa as d, B as p, ab as A, a9 as j, O as I, ai as E, aj as M, ak as c, al as N, am as O } from "./Lexical.prod-C7FcGFd7.js";
|
|
2
|
+
function g(t, ...e) {
|
|
3
3
|
const n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
4
4
|
r.append("code", t);
|
|
5
5
|
for (const o of e) r.append("v", o);
|
|
6
6
|
throw n.search = r.toString(), Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
7
7
|
}
|
|
8
|
-
const m = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0,
|
|
9
|
-
!(!m || !("InputEvent" in window) ||
|
|
8
|
+
const m = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, R = m && "documentMode" in document ? document.documentMode : null;
|
|
9
|
+
!(!m || !("InputEvent" in window) || R) && "getTargetRanges" in new window.InputEvent("input");
|
|
10
10
|
function h(...t) {
|
|
11
11
|
const e = [];
|
|
12
12
|
for (const n of t) if (n && typeof n == "string") for (const [r] of n.matchAll(/\S+/g)) e.push(r);
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function k(...t) {
|
|
16
16
|
return () => {
|
|
17
17
|
for (let e = t.length - 1; e >= 0; e--) t[e]();
|
|
18
18
|
t.length = 0;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function C(t, ...e) {
|
|
22
22
|
const n = h(...e);
|
|
23
23
|
n.length > 0 && t.classList.add(...n);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function K(t, ...e) {
|
|
26
26
|
const n = h(...e);
|
|
27
27
|
n.length > 0 && t.classList.remove(...n);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function U(t, e) {
|
|
30
30
|
let n = t;
|
|
31
31
|
for (; n != null; ) {
|
|
32
32
|
if (n instanceof e) return n;
|
|
@@ -34,11 +34,11 @@ function $(t, e) {
|
|
|
34
34
|
}
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const e =
|
|
39
|
-
return i(e) ||
|
|
37
|
+
function $(t) {
|
|
38
|
+
const e = T(t, (n) => i(n) && !n.isInline());
|
|
39
|
+
return i(e) || g(4, t.__key), e;
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const T = (t, e) => {
|
|
42
42
|
let n = t;
|
|
43
43
|
for (; n !== f() && n != null; ) {
|
|
44
44
|
if (e(n)) return n;
|
|
@@ -46,62 +46,62 @@ const C = (t, e) => {
|
|
|
46
46
|
}
|
|
47
47
|
return null;
|
|
48
48
|
};
|
|
49
|
-
function
|
|
50
|
-
const e = y() ||
|
|
49
|
+
function q(t) {
|
|
50
|
+
const e = y() || P();
|
|
51
51
|
let n;
|
|
52
|
-
if (
|
|
52
|
+
if (S(e)) n = _(e.focus, "next");
|
|
53
53
|
else {
|
|
54
54
|
if (e != null) {
|
|
55
55
|
const l = e.getNodes(), u = l[l.length - 1];
|
|
56
56
|
u && (n = d(u, "next"));
|
|
57
57
|
}
|
|
58
|
-
n = n || a(f(), "previous").getFlipped().insert(
|
|
58
|
+
n = n || a(f(), "previous").getFlipped().insert(p());
|
|
59
59
|
}
|
|
60
|
-
const r =
|
|
61
|
-
return
|
|
60
|
+
const r = B(t, n), o = A(r), s = j(o) ? I(o) : r;
|
|
61
|
+
return E(M(s)), t.getLatest();
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function B(t, e, n) {
|
|
64
64
|
let r = c(e, "next");
|
|
65
65
|
for (let o = r; o; o = N(o, n)) r = o;
|
|
66
|
-
return
|
|
66
|
+
return O(r) && g(283), r.insert(t.isInline() ? p().append(t) : t), c(d(t.getLatest(), "next"), e.direction);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function D(t, e) {
|
|
69
69
|
return t !== null && Object.getPrototypeOf(t).constructor.name === e.name;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function H(t, e) {
|
|
72
72
|
a(t, "next").insert(e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function Q(t, e) {
|
|
75
|
+
return w(t, e, null);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function w(t, e, n) {
|
|
78
78
|
let r = !1;
|
|
79
|
-
for (const o of
|
|
79
|
+
for (const o of v(t)) e(o) ? n !== null && n(o) : (r = !0, i(o) && w(o, e, n || ((s) => o.insertAfter(s))), o.remove());
|
|
80
80
|
return r;
|
|
81
81
|
}
|
|
82
82
|
function X(t, e) {
|
|
83
83
|
const n = [], r = Array.from(t).reverse();
|
|
84
84
|
for (let o = r.pop(); o !== void 0; o = r.pop()) if (e(o)) n.push(o);
|
|
85
|
-
else if (i(o)) for (const s of
|
|
85
|
+
else if (i(o)) for (const s of v(o)) r.push(s);
|
|
86
86
|
return n;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function v(t) {
|
|
89
|
+
return F(a(t, "previous"));
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function F(t) {
|
|
92
|
+
return x({ hasNext: L, initial: t.getAdjacentCaret(), map: (e) => e.origin.getLatest(), step: (e) => e.getAdjacentCaret() });
|
|
93
93
|
}
|
|
94
94
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
D as L,
|
|
96
|
+
H as N,
|
|
97
|
+
q as S,
|
|
98
|
+
Q as T,
|
|
99
99
|
X as _,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
K as i,
|
|
101
|
+
k as j,
|
|
102
|
+
C as r,
|
|
103
|
+
U as v,
|
|
104
|
+
T as w,
|
|
105
|
+
$ as y
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=LexicalUtils.prod-
|
|
107
|
+
//# sourceMappingURL=LexicalUtils.prod-D_SPJ6vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalUtils.prod-DJRX2pwP.js","sources":["../node_modules/@lexical/utils/LexicalUtils.prod.mjs"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{isHTMLElement as t,$getSelection as e,$isRangeSelection as n,$isElementNode as o,getDOMTextNode as r,$getRoot as i,$getChildCaret as l,$getSiblingCaret as u,$getAdjacentChildCaret as s,$getChildCaretOrSelf as c,makeStepwiseIterator as f,$isChildCaret as a,$cloneWithProperties as d,$setSelection as g,$getPreviousSelection as p,$caretFromPoint as m,$createParagraphNode as h,$normalizeCaret as v,$setSelectionFromCaretRange as y,$getCollapsedCaretRange as w,$getCaretInDirection as x,$splitAtPointCaretNext as E,$isTextPointCaret as S,$isSiblingCaret as A,$rewindSiblingCaret as C,$getState as L,$setState as b}from\"lexical\";export{$splitNode,isBlockDomNode,isHTMLAnchorElement,isHTMLElement,isInlineDomNode}from\"lexical\";import{createRectsFromDOMRange as N}from\"@lexical/selection\";function P(t,...e){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",t);for(const t of e)o.append(\"v\",t);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const M=\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,R=M&&\"documentMode\"in document?document.documentMode:null,T=M&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),B=M&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),_=!(!M||!(\"InputEvent\"in window)||R)&&\"getTargetRanges\"in new window.InputEvent(\"input\"),k=M&&/Version\\/[\\d.]+.*Safari/.test(navigator.userAgent),K=M&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,H=M&&/Android/.test(navigator.userAgent),O=M&&/^(?=.*Chrome).*/i.test(navigator.userAgent),$=M&&H&&O,D=M&&/AppleWebKit\\/[\\d.]+/.test(navigator.userAgent)&&!O;function I(...t){const e=[];for(const n of t)if(n&&\"string\"==typeof n)for(const[t]of n.matchAll(/\\S+/g))e.push(t);return e}function j(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}function F(t){return`${t}px`}const U={attributes:!0,characterData:!0,childList:!0,subtree:!0};function z(e,n,o){let r=null,i=null,l=null,u=[];const s=document.createElement(\"div\");function c(){null===r&&P(182),null===i&&P(183);const{left:t,top:l}=i.getBoundingClientRect(),c=N(e,n);var f,a;s.isConnected||(a=s,(f=i).insertBefore(a,f.firstChild));let d=!1;for(let e=0;e<c.length;e++){const n=c[e],o=u[e]||document.createElement(\"div\"),r=o.style;\"absolute\"!==r.position&&(r.position=\"absolute\",d=!0);const i=F(n.left-t);r.left!==i&&(r.left=i,d=!0);const f=F(n.top-l);r.top!==f&&(o.style.top=f,d=!0);const a=F(n.width);r.width!==a&&(o.style.width=a,d=!0);const g=F(n.height);r.height!==g&&(o.style.height=g,d=!0),o.parentNode!==s&&(s.append(o),d=!0),u[e]=o}for(;u.length>c.length;)u.pop();d&&o(u)}function f(){i=null,r=null,null!==l&&l.disconnect(),l=null,s.remove();for(const t of u)t.remove();u=[]}s.style.position=\"relative\";const a=e.registerRootListener((function n(){const o=e.getRootElement();if(null===o)return f();const u=o.parentElement;if(!t(u))return f();f(),r=o,i=u,l=new MutationObserver((t=>{const o=e.getRootElement(),l=o&&o.parentElement;if(o!==r||l!==i)return n();for(const e of t)if(!s.contains(e.target))return c()})),l.observe(u,U),c()}));return()=>{a(),f()}}function V(t,e,n){if(\"text\"!==t.type&&o(e)){const o=e.getDOMSlot(n);return[o.element,o.getFirstChildOffset()+t.offset]}return[r(n)||n,t.offset]}function W(t,o){let r=null,i=null,l=null,u=null,s=null,c=null,f=()=>{};function a(a){a.read((()=>{const a=e();if(!n(a))return r=null,l=null,u=null,c=null,f(),void(f=()=>{});const{anchor:d,focus:g}=a,p=d.getNode(),m=p.getKey(),h=d.offset,v=g.getNode(),y=v.getKey(),w=g.offset,x=t.getElementByKey(m),E=t.getElementByKey(y),S=null===r||x!==i||h!==l||m!==r.getKey(),A=null===u||E!==s||w!==c||y!==u.getKey();if((S||A)&&null!==x&&null!==E){const e=function(t,e,n,o,r,i,l){const u=(t._window?t._window.document:document).createRange();return i.isBefore(n)?(u.setStart(...V(r,i,l)),u.setEnd(...V(e,n,o))):(u.setStart(...V(e,n,o)),u.setEnd(...V(r,i,l))),u}(t,d,p,x,g,v,E);f(),f=z(t,e,(t=>{if(void 0===o)for(const e of t){const t=e.style;\"Highlight\"!==t.background&&(t.background=\"Highlight\"),\"HighlightText\"!==t.color&&(t.color=\"HighlightText\"),t.marginTop!==F(-1.5)&&(t.marginTop=F(-1.5)),t.paddingTop!==F(4)&&(t.paddingTop=F(4)),t.paddingBottom!==F(0)&&(t.paddingBottom=F(0))}else o(t)}))}r=p,i=x,l=h,u=v,s=E,c=w}))}return a(t.getEditorState()),j(t.registerUpdateListener((({editorState:t})=>a(t))),(()=>{f()}))}function G(t){let e=null;const n=()=>{const n=getSelection(),o=n&&n.anchorNode,r=t.getRootElement();null!==o&&null!==r&&r.contains(o)?null!==e&&(e(),e=null):null===e&&(e=W(t))};return document.addEventListener(\"selectionchange\",n),()=>{null!==e&&e(),document.removeEventListener(\"selectionchange\",n)}}const q=_,J=M,Q=H,X=$,Y=T,Z=D,tt=O,et=B,nt=K,ot=k;function rt(t,...e){const n=I(...e);n.length>0&&t.classList.add(...n)}function it(t,...e){const n=I(...e);n.length>0&&t.classList.remove(...n)}function lt(t,e){for(const n of e)if(t.type.startsWith(n))return!0;return!1}function ut(t,e){const n=t[Symbol.iterator]();return new Promise(((t,o)=>{const r=[],i=()=>{const{done:l,value:u}=n.next();if(l)return t(r);const s=new FileReader;s.addEventListener(\"error\",o),s.addEventListener(\"load\",(()=>{const t=s.result;\"string\"==typeof t&&r.push({file:u,result:t}),i()})),lt(u,e)?s.readAsDataURL(u):i()};i()}))}function st(t,e){return Array.from(at(t,e))}function ct(t){return t?t.getAdjacentCaret():null}function ft(t,e){return Array.from(ht(t,e))}function at(t,e){return dt(\"next\",t,e)}function dt(t,e,n){const r=i(),d=e||r,g=o(d)?l(d,t):u(d,t),p=pt(d),m=n?s(c(u(n,t))):function(t,e){const n=$t(u(t,e));return n&&n[0]}(d,t);let h=p;return f({hasNext:t=>null!==t,initial:g,map:t=>({depth:h,node:t.origin}),step:t=>{if(t.isSameNodeCaret(m))return null;a(t)&&h++;const e=$t(t);return!e||e[0].isSameNodeCaret(m)?null:(h+=e[1],e[0])}})}function gt(t){const e=$t(u(t,\"next\"));return e&&[e[0].origin,e[1]]}function pt(t){let e=-1;for(let n=t;null!==n;n=n.getParent())e++;return e}function mt(t){const e=$t(c(u(t,\"previous\")),\"root\");return e&&e[0].origin}function ht(t,e){return dt(\"previous\",t,e)}function vt(t,e){let n=t;for(;null!=n;){if(n instanceof e)return n;n=n.getParent()}return null}function yt(t){const e=wt(t,(t=>o(t)&&!t.isInline()));return o(e)||P(4,t.__key),e}const wt=(t,e)=>{let n=t;for(;n!==i()&&null!=n;){if(e(n))return n;n=n.getParent()}return null};function xt(t,e,n,o){const r=t=>t instanceof e;return t.registerNodeTransform(e,(t=>{const e=(t=>{const e=t.getChildren();for(let t=0;t<e.length;t++){const n=e[t];if(r(n))return null}let n=t,o=t;for(;null!==n;)if(o=n,n=n.getParent(),r(n))return{child:o,parent:n};return null})(t);if(null!==e){const{child:r,parent:i}=e;if(r.is(t)){o(i,t);const e=r.getNextSiblings(),l=e.length;if(i.insertAfter(r),0!==l){const t=n(i);r.insertAfter(t);for(let n=0;n<l;n++)t.append(e[n])}i.canBeEmpty()||0!==i.getChildrenSize()||i.remove()}}}))}function Et(t,e){const n=new Map,o=t._pendingEditorState;for(const[t,o]of e._nodeMap)n.set(t,d(o));o&&(o._nodeMap=n),t._dirtyType=2;const r=e._selection;g(null===r?null:r.clone())}function St(t){const o=e()||p();let r;if(n(o))r=m(o.focus,\"next\");else{if(null!=o){const t=o.getNodes(),e=t[t.length-1];e&&(r=u(e,\"next\"))}r=r||l(i(),\"previous\").getFlipped().insert(h())}const c=At(t,r),f=s(c),d=a(f)?v(f):c;return y(w(d)),t.getLatest()}function At(t,e,n){let o=x(e,\"next\");for(let t=o;t;t=E(t,n))o=t;return S(o)&&P(283),o.insert(t.isInline()?h().append(t):t),x(u(t.getLatest(),\"next\"),e.direction)}function Ct(t,e){const n=e();return t.replace(n),n.append(t),n}function Lt(t,e){return null!==t&&Object.getPrototypeOf(t).constructor.name===e.name}function bt(t,e){const n=[];for(let o=0;o<t.length;o++){const r=e(t[o]);null!==r&&n.push(r)}return n}function Nt(t,e){l(t,\"next\").insert(e)}let Pt=!(et||!J)&&void 0;function Mt(t){let e=1;if(function(){if(void 0===Pt){const t=document.createElement(\"div\");t.style.cssText=\"position: absolute; opacity: 0; width: 100px; left: -1000px;\",document.body.appendChild(t);const e=t.getBoundingClientRect();t.style.setProperty(\"zoom\",\"2\"),Pt=t.getBoundingClientRect().width===e.width,document.body.removeChild(t)}return Pt}())for(;t;)e*=Number(window.getComputedStyle(t).getPropertyValue(\"zoom\")),t=t.parentElement;return e}function Rt(t){return null!==t._parentEditor}function Tt(t,e){return Bt(t,e,null)}function Bt(t,e,n){let r=!1;for(const i of Kt(t))e(i)?null!==n&&n(i):(r=!0,o(i)&&Bt(i,e,n||(t=>i.insertAfter(t))),i.remove());return r}function _t(t,e){const n=[],r=Array.from(t).reverse();for(let t=r.pop();void 0!==t;t=r.pop())if(e(t))n.push(t);else if(o(t))for(const e of Kt(t))r.push(e);return n}function kt(t){return Ht(l(t,\"next\"))}function Kt(t){return Ht(l(t,\"previous\"))}function Ht(t){return f({hasNext:A,initial:t.getAdjacentCaret(),map:t=>t.origin.getLatest(),step:t=>t.getAdjacentCaret()})}function Ot(t){C(u(t,\"next\")).splice(1,t.getChildren())}function $t(t,e=\"root\"){let n=0,o=t,r=s(o);for(;null===r;){if(n--,r=o.getParentCaret(e),!r)return null;o=r,r=s(o)}return r&&[r,n]}function Dt(t){const e=e=>L(e,t),n=(e,n)=>b(e,t,n);return{$get:e,$set:n,accessors:[e,n],makeGetterMethod:()=>function(){return e(this)},makeSetterMethod:()=>function(t){return n(this,t)},stateConfig:t}}export{_t as $descendantsMatching,st as $dfs,at as $dfsIterator,bt as $filter,wt as $findMatchingParent,kt as $firstToLastIterator,ct as $getAdjacentCaret,$t as $getAdjacentSiblingOrParentSiblingCaret,pt as $getDepth,yt as $getNearestBlockElementAncestorOrThrow,vt as $getNearestNodeOfType,mt as $getNextRightPreorderNode,gt as $getNextSiblingOrParentSibling,Nt as $insertFirst,St as $insertNodeToNearestRoot,At as $insertNodeToNearestRootAtCaret,Rt as $isEditorIsNestedEditor,Kt as $lastToFirstIterator,Et as $restoreEditorState,ft as $reverseDfs,ht as $reverseDfsIterator,Tt as $unwrapAndFilterDescendants,Ot as $unwrapNode,Ct as $wrapNodeInElement,q as CAN_USE_BEFORE_INPUT,J as CAN_USE_DOM,Q as IS_ANDROID,X as IS_ANDROID_CHROME,Y as IS_APPLE,Z as IS_APPLE_WEBKIT,tt as IS_CHROME,et as IS_FIREFOX,nt as IS_IOS,ot as IS_SAFARI,rt as addClassNamesToElement,Mt as calculateZoomLevel,lt as isMimeType,Dt as makeStateWrapper,W as markSelection,ut as mediaFileReader,j as mergeRegister,Lt as objectKlassEquals,z as positionNodeOnRange,xt as registerNestedElementResolver,it as removeClassNamesFromElement,G as selectionAlwaysOnDisplay};\n"],"names":["P","o","t","M","R","I","j","rt","it","vt","yt","wt","i","St","e","p","r","n","m","u","l","h","c","At","f","s","d","a","v","y","w","x","E","S","Lt","Nt","Tt","Bt","Kt","_t","Ht","A"],"mappings":";AAQsxB,SAASA,EAAE,MAAK,GAAE;AAAC,QAAM,IAAE,IAAI,IAAI,gCAAgC,GAAEC,IAAE,IAAI;AAAgB,EAAAA,EAAE,OAAO,QAAO,CAAC;AAAE,aAAUC,KAAK,EAAE,CAAAD,EAAE,OAAO,KAAIC,CAAC;AAAE,QAAM,EAAE,SAAOD,EAAE,SAAQ,GAAG,MAAM,2BAA2B,CAAC,WAAW,EAAE,SAAQ,CAAE,gHAAgH;AAAC;AAAM,MAACE,IAAe,OAAO,SAApB,OAAqC,OAAO,aAAhB,UAAmC,OAAO,SAAS,kBAAzB,QAAuCC,IAAED,KAAG,kBAAiB,WAAS,SAAS,eAAa;AAA8H,EAAE,CAACA,KAAG,EAAE,gBAAe,WAASC,MAAI,qBAAoB,IAAI,OAAO,WAAW,OAAO;AAA6R,SAASC,KAAK,GAAE;AAAC,QAAM,IAAE;AAAG,aAAU,KAAK,EAAE,KAAG,KAAa,OAAO,KAAjB,SAAmB,YAAS,CAACH,CAAC,KAAI,EAAE,SAAS,MAAM,EAAE,GAAE,KAAKA,CAAC;AAAE,SAAO;AAAC;AAAC,SAASI,KAAK,GAAE;AAAC,SAAM,MAAI;AAAC,aAAQ,IAAE,EAAE,SAAO,GAAE,KAAG,GAAE,IAAI,GAAE,CAAC,EAAC;AAAG,MAAE,SAAO;AAAA,EAAC;AAAC;AAA8zF,SAASC,EAAG,MAAK,GAAE;AAAC,QAAM,IAAEF,EAAE,GAAG,CAAC;AAAE,IAAE,SAAO,KAAG,EAAE,UAAU,IAAI,GAAG,CAAC;AAAC;AAAC,SAASG,EAAG,MAAK,GAAE;AAAC,QAAM,IAAEH,EAAE,GAAG,CAAC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,SAAOE,EAAGpB,EAAE,GAAE,UAAU,CAAC;AAAC;AAAC,SAASoB,EAAG,GAAE;AAAC,SAAOhB,EAAE,EAAC,SAAQiB,GAAE,SAAQ,EAAE,iBAAgB,GAAG,KAAI,CAAAvC,MAAGA,EAAE,OAAO,UAAS,GAAG,MAAK,CAAAA,MAAGA,EAAE,iBAAgB,EAAE,CAAC;AAAC;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"LexicalUtils.prod-D_SPJ6vo.js","sources":["../node_modules/@lexical/utils/LexicalUtils.prod.mjs"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{isHTMLElement as t,$getSelection as e,$isRangeSelection as n,$isElementNode as o,getDOMTextNode as r,$getRoot as i,$getChildCaret as l,$getSiblingCaret as u,$getAdjacentChildCaret as s,$getChildCaretOrSelf as c,makeStepwiseIterator as f,$isChildCaret as a,$cloneWithProperties as d,$setSelection as g,$getPreviousSelection as p,$caretFromPoint as m,$createParagraphNode as h,$normalizeCaret as v,$setSelectionFromCaretRange as y,$getCollapsedCaretRange as w,$getCaretInDirection as x,$splitAtPointCaretNext as E,$isTextPointCaret as S,$isSiblingCaret as A,$rewindSiblingCaret as C,$getState as L,$setState as b}from\"lexical\";export{$splitNode,isBlockDomNode,isHTMLAnchorElement,isHTMLElement,isInlineDomNode}from\"lexical\";import{createRectsFromDOMRange as N}from\"@lexical/selection\";function P(t,...e){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",t);for(const t of e)o.append(\"v\",t);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const M=\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,R=M&&\"documentMode\"in document?document.documentMode:null,T=M&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),B=M&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),_=!(!M||!(\"InputEvent\"in window)||R)&&\"getTargetRanges\"in new window.InputEvent(\"input\"),k=M&&/Version\\/[\\d.]+.*Safari/.test(navigator.userAgent),K=M&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,H=M&&/Android/.test(navigator.userAgent),O=M&&/^(?=.*Chrome).*/i.test(navigator.userAgent),$=M&&H&&O,D=M&&/AppleWebKit\\/[\\d.]+/.test(navigator.userAgent)&&!O;function I(...t){const e=[];for(const n of t)if(n&&\"string\"==typeof n)for(const[t]of n.matchAll(/\\S+/g))e.push(t);return e}function j(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}function F(t){return`${t}px`}const U={attributes:!0,characterData:!0,childList:!0,subtree:!0};function z(e,n,o){let r=null,i=null,l=null,u=[];const s=document.createElement(\"div\");function c(){null===r&&P(182),null===i&&P(183);const{left:t,top:l}=i.getBoundingClientRect(),c=N(e,n);var f,a;s.isConnected||(a=s,(f=i).insertBefore(a,f.firstChild));let d=!1;for(let e=0;e<c.length;e++){const n=c[e],o=u[e]||document.createElement(\"div\"),r=o.style;\"absolute\"!==r.position&&(r.position=\"absolute\",d=!0);const i=F(n.left-t);r.left!==i&&(r.left=i,d=!0);const f=F(n.top-l);r.top!==f&&(o.style.top=f,d=!0);const a=F(n.width);r.width!==a&&(o.style.width=a,d=!0);const g=F(n.height);r.height!==g&&(o.style.height=g,d=!0),o.parentNode!==s&&(s.append(o),d=!0),u[e]=o}for(;u.length>c.length;)u.pop();d&&o(u)}function f(){i=null,r=null,null!==l&&l.disconnect(),l=null,s.remove();for(const t of u)t.remove();u=[]}s.style.position=\"relative\";const a=e.registerRootListener((function n(){const o=e.getRootElement();if(null===o)return f();const u=o.parentElement;if(!t(u))return f();f(),r=o,i=u,l=new MutationObserver((t=>{const o=e.getRootElement(),l=o&&o.parentElement;if(o!==r||l!==i)return n();for(const e of t)if(!s.contains(e.target))return c()})),l.observe(u,U),c()}));return()=>{a(),f()}}function V(t,e,n){if(\"text\"!==t.type&&o(e)){const o=e.getDOMSlot(n);return[o.element,o.getFirstChildOffset()+t.offset]}return[r(n)||n,t.offset]}function W(t,o){let r=null,i=null,l=null,u=null,s=null,c=null,f=()=>{};function a(a){a.read((()=>{const a=e();if(!n(a))return r=null,l=null,u=null,c=null,f(),void(f=()=>{});const{anchor:d,focus:g}=a,p=d.getNode(),m=p.getKey(),h=d.offset,v=g.getNode(),y=v.getKey(),w=g.offset,x=t.getElementByKey(m),E=t.getElementByKey(y),S=null===r||x!==i||h!==l||m!==r.getKey(),A=null===u||E!==s||w!==c||y!==u.getKey();if((S||A)&&null!==x&&null!==E){const e=function(t,e,n,o,r,i,l){const u=(t._window?t._window.document:document).createRange();return i.isBefore(n)?(u.setStart(...V(r,i,l)),u.setEnd(...V(e,n,o))):(u.setStart(...V(e,n,o)),u.setEnd(...V(r,i,l))),u}(t,d,p,x,g,v,E);f(),f=z(t,e,(t=>{if(void 0===o)for(const e of t){const t=e.style;\"Highlight\"!==t.background&&(t.background=\"Highlight\"),\"HighlightText\"!==t.color&&(t.color=\"HighlightText\"),t.marginTop!==F(-1.5)&&(t.marginTop=F(-1.5)),t.paddingTop!==F(4)&&(t.paddingTop=F(4)),t.paddingBottom!==F(0)&&(t.paddingBottom=F(0))}else o(t)}))}r=p,i=x,l=h,u=v,s=E,c=w}))}return a(t.getEditorState()),j(t.registerUpdateListener((({editorState:t})=>a(t))),(()=>{f()}))}function G(t){let e=null;const n=()=>{const n=getSelection(),o=n&&n.anchorNode,r=t.getRootElement();null!==o&&null!==r&&r.contains(o)?null!==e&&(e(),e=null):null===e&&(e=W(t))};return document.addEventListener(\"selectionchange\",n),()=>{null!==e&&e(),document.removeEventListener(\"selectionchange\",n)}}const q=_,J=M,Q=H,X=$,Y=T,Z=D,tt=O,et=B,nt=K,ot=k;function rt(t,...e){const n=I(...e);n.length>0&&t.classList.add(...n)}function it(t,...e){const n=I(...e);n.length>0&&t.classList.remove(...n)}function lt(t,e){for(const n of e)if(t.type.startsWith(n))return!0;return!1}function ut(t,e){const n=t[Symbol.iterator]();return new Promise(((t,o)=>{const r=[],i=()=>{const{done:l,value:u}=n.next();if(l)return t(r);const s=new FileReader;s.addEventListener(\"error\",o),s.addEventListener(\"load\",(()=>{const t=s.result;\"string\"==typeof t&&r.push({file:u,result:t}),i()})),lt(u,e)?s.readAsDataURL(u):i()};i()}))}function st(t,e){return Array.from(at(t,e))}function ct(t){return t?t.getAdjacentCaret():null}function ft(t,e){return Array.from(ht(t,e))}function at(t,e){return dt(\"next\",t,e)}function dt(t,e,n){const r=i(),d=e||r,g=o(d)?l(d,t):u(d,t),p=pt(d),m=n?s(c(u(n,t))):function(t,e){const n=$t(u(t,e));return n&&n[0]}(d,t);let h=p;return f({hasNext:t=>null!==t,initial:g,map:t=>({depth:h,node:t.origin}),step:t=>{if(t.isSameNodeCaret(m))return null;a(t)&&h++;const e=$t(t);return!e||e[0].isSameNodeCaret(m)?null:(h+=e[1],e[0])}})}function gt(t){const e=$t(u(t,\"next\"));return e&&[e[0].origin,e[1]]}function pt(t){let e=-1;for(let n=t;null!==n;n=n.getParent())e++;return e}function mt(t){const e=$t(c(u(t,\"previous\")),\"root\");return e&&e[0].origin}function ht(t,e){return dt(\"previous\",t,e)}function vt(t,e){let n=t;for(;null!=n;){if(n instanceof e)return n;n=n.getParent()}return null}function yt(t){const e=wt(t,(t=>o(t)&&!t.isInline()));return o(e)||P(4,t.__key),e}const wt=(t,e)=>{let n=t;for(;n!==i()&&null!=n;){if(e(n))return n;n=n.getParent()}return null};function xt(t,e,n,o){const r=t=>t instanceof e;return t.registerNodeTransform(e,(t=>{const e=(t=>{const e=t.getChildren();for(let t=0;t<e.length;t++){const n=e[t];if(r(n))return null}let n=t,o=t;for(;null!==n;)if(o=n,n=n.getParent(),r(n))return{child:o,parent:n};return null})(t);if(null!==e){const{child:r,parent:i}=e;if(r.is(t)){o(i,t);const e=r.getNextSiblings(),l=e.length;if(i.insertAfter(r),0!==l){const t=n(i);r.insertAfter(t);for(let n=0;n<l;n++)t.append(e[n])}i.canBeEmpty()||0!==i.getChildrenSize()||i.remove()}}}))}function Et(t,e){const n=new Map,o=t._pendingEditorState;for(const[t,o]of e._nodeMap)n.set(t,d(o));o&&(o._nodeMap=n),t._dirtyType=2;const r=e._selection;g(null===r?null:r.clone())}function St(t){const o=e()||p();let r;if(n(o))r=m(o.focus,\"next\");else{if(null!=o){const t=o.getNodes(),e=t[t.length-1];e&&(r=u(e,\"next\"))}r=r||l(i(),\"previous\").getFlipped().insert(h())}const c=At(t,r),f=s(c),d=a(f)?v(f):c;return y(w(d)),t.getLatest()}function At(t,e,n){let o=x(e,\"next\");for(let t=o;t;t=E(t,n))o=t;return S(o)&&P(283),o.insert(t.isInline()?h().append(t):t),x(u(t.getLatest(),\"next\"),e.direction)}function Ct(t,e){const n=e();return t.replace(n),n.append(t),n}function Lt(t,e){return null!==t&&Object.getPrototypeOf(t).constructor.name===e.name}function bt(t,e){const n=[];for(let o=0;o<t.length;o++){const r=e(t[o]);null!==r&&n.push(r)}return n}function Nt(t,e){l(t,\"next\").insert(e)}let Pt=!(et||!J)&&void 0;function Mt(t){let e=1;if(function(){if(void 0===Pt){const t=document.createElement(\"div\");t.style.cssText=\"position: absolute; opacity: 0; width: 100px; left: -1000px;\",document.body.appendChild(t);const e=t.getBoundingClientRect();t.style.setProperty(\"zoom\",\"2\"),Pt=t.getBoundingClientRect().width===e.width,document.body.removeChild(t)}return Pt}())for(;t;)e*=Number(window.getComputedStyle(t).getPropertyValue(\"zoom\")),t=t.parentElement;return e}function Rt(t){return null!==t._parentEditor}function Tt(t,e){return Bt(t,e,null)}function Bt(t,e,n){let r=!1;for(const i of Kt(t))e(i)?null!==n&&n(i):(r=!0,o(i)&&Bt(i,e,n||(t=>i.insertAfter(t))),i.remove());return r}function _t(t,e){const n=[],r=Array.from(t).reverse();for(let t=r.pop();void 0!==t;t=r.pop())if(e(t))n.push(t);else if(o(t))for(const e of Kt(t))r.push(e);return n}function kt(t){return Ht(l(t,\"next\"))}function Kt(t){return Ht(l(t,\"previous\"))}function Ht(t){return f({hasNext:A,initial:t.getAdjacentCaret(),map:t=>t.origin.getLatest(),step:t=>t.getAdjacentCaret()})}function Ot(t){C(u(t,\"next\")).splice(1,t.getChildren())}function $t(t,e=\"root\"){let n=0,o=t,r=s(o);for(;null===r;){if(n--,r=o.getParentCaret(e),!r)return null;o=r,r=s(o)}return r&&[r,n]}function Dt(t){const e=e=>L(e,t),n=(e,n)=>b(e,t,n);return{$get:e,$set:n,accessors:[e,n],makeGetterMethod:()=>function(){return e(this)},makeSetterMethod:()=>function(t){return n(this,t)},stateConfig:t}}export{_t as $descendantsMatching,st as $dfs,at as $dfsIterator,bt as $filter,wt as $findMatchingParent,kt as $firstToLastIterator,ct as $getAdjacentCaret,$t as $getAdjacentSiblingOrParentSiblingCaret,pt as $getDepth,yt as $getNearestBlockElementAncestorOrThrow,vt as $getNearestNodeOfType,mt as $getNextRightPreorderNode,gt as $getNextSiblingOrParentSibling,Nt as $insertFirst,St as $insertNodeToNearestRoot,At as $insertNodeToNearestRootAtCaret,Rt as $isEditorIsNestedEditor,Kt as $lastToFirstIterator,Et as $restoreEditorState,ft as $reverseDfs,ht as $reverseDfsIterator,Tt as $unwrapAndFilterDescendants,Ot as $unwrapNode,Ct as $wrapNodeInElement,q as CAN_USE_BEFORE_INPUT,J as CAN_USE_DOM,Q as IS_ANDROID,X as IS_ANDROID_CHROME,Y as IS_APPLE,Z as IS_APPLE_WEBKIT,tt as IS_CHROME,et as IS_FIREFOX,nt as IS_IOS,ot as IS_SAFARI,rt as addClassNamesToElement,Mt as calculateZoomLevel,lt as isMimeType,Dt as makeStateWrapper,W as markSelection,ut as mediaFileReader,j as mergeRegister,Lt as objectKlassEquals,z as positionNodeOnRange,xt as registerNestedElementResolver,it as removeClassNamesFromElement,G as selectionAlwaysOnDisplay};\n"],"names":["P","o","t","M","I","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AAE,EAAC,SAAQiB,GAAE,SAAQ,EAAE,iBAAgB,GAAG,KAAI,CAAAtC,MAAGA,EAAE,OAAO,UAAS,GAAG,MAAK,CAAAA,MAAGA,EAAE,iBAAgB,EAAE,CAAC;AAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e, Fragment as Z } from "react/jsx-runtime";
|
|
2
2
|
import { o as ee } from "./LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import { c as $ } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { W as te, R as re } from "./LexicalTable.prod-
|
|
5
|
-
import { ar as oe,
|
|
6
|
-
import { forwardRef as A, useState as C, useRef as T, useId as q, useImperativeHandle as B, useEffect as
|
|
4
|
+
import { W as te, R as re } from "./LexicalTable.prod-DYP5JQC0.js";
|
|
5
|
+
import { ar as oe, J as le, P as U, _ as z, ag as ne } from "./Lexical.prod-C7FcGFd7.js";
|
|
6
|
+
import { forwardRef as A, useState as C, useRef as T, useId as q, useImperativeHandle as B, useEffect as R } from "react";
|
|
7
7
|
import { Button as L } from "./components/Buttons/Button.js";
|
|
8
8
|
import "./components/Buttons/LinkButton.js";
|
|
9
9
|
import "@react-aria/button";
|
|
@@ -13,48 +13,48 @@ import "@react-aria/dialog";
|
|
|
13
13
|
import "@react-aria/focus";
|
|
14
14
|
import "@react-aria/overlays";
|
|
15
15
|
import "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
16
|
-
import { FormField as
|
|
16
|
+
import { FormField as D } from "./components/FormField/FormField.js";
|
|
17
17
|
import "./components/GridRow/GridRow.js";
|
|
18
18
|
import "./components/IconButton/IconButton.js";
|
|
19
19
|
import "./components/Input/Input.js";
|
|
20
20
|
import { InputField as M } from "./components/InputField/InputField.js";
|
|
21
21
|
import "react-router";
|
|
22
|
-
import { s as
|
|
22
|
+
import { s as g, M as ie } from "./MultiSelectItem-DbOdEllV.js";
|
|
23
23
|
import "./components/RteEditor/Providers/LanguageProvider.js";
|
|
24
|
-
import { e as ae, v as se } from "./helpers-
|
|
25
|
-
import { Icon as
|
|
24
|
+
import { e as ae, v as se } from "./helpers-CYiLlioz.js";
|
|
25
|
+
import { Icon as K } from "./components/Icon/Icon.js";
|
|
26
26
|
import { FeedbackBox as V } from "./components/FeedbackBox/FeedbackBox.js";
|
|
27
27
|
import { useTranslation as H } from "./components/RteEditor/hooks/useTranslation.js";
|
|
28
28
|
import "./components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
29
29
|
import "./components/RteEditor/hooks/components/Flyout.js";
|
|
30
30
|
import { deleteTable as ce, deleteColumn as me, insertColumn as ue, deleteRow as de, insertRow as fe, createTable as pe } from "./components/RteEditor/Plugins/TablePlugin/helpers.js";
|
|
31
|
-
import { useFlyout as
|
|
31
|
+
import { useFlyout as _e } from "./components/RteEditor/hooks/useFlyout.js";
|
|
32
32
|
import { s as I } from "./RteEditor.module-B_3uFnFu.js";
|
|
33
33
|
import "./index-nrPtQ1dv.js";
|
|
34
34
|
import "./components/SelectListbox/SelectListbox.js";
|
|
35
35
|
import "./components/SelectListbox/SelectProvider.js";
|
|
36
36
|
import "./components/Sortable/components/SortableItem.js";
|
|
37
37
|
import "./SortableProvider-l8-7ClBJ.js";
|
|
38
|
-
import { setScrollableContainers as
|
|
39
|
-
import './assets/TablePlugin.css';function he({ label:
|
|
40
|
-
return /* @__PURE__ */ m("header", { className:
|
|
41
|
-
/* @__PURE__ */ e(E, { htmlFor: "multi-select-list", children:
|
|
38
|
+
import { setScrollableContainers as be, removeScrollableContainers as ke } from "./components/RteEditor/helpers.js";
|
|
39
|
+
import './assets/TablePlugin.css';function he({ label: _, clearTrigger: d, onClear: a }) {
|
|
40
|
+
return /* @__PURE__ */ m("header", { className: g["multi-select__header"], children: [
|
|
41
|
+
/* @__PURE__ */ e(E, { htmlFor: "multi-select-list", children: _ }),
|
|
42
42
|
d && /* @__PURE__ */ e(L, { variant: "blank", onClick: a, children: d })
|
|
43
43
|
] });
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const W = ({ scrollable: _ = !0, noBorder: d, header: a, children: r }) => /* @__PURE__ */ m(Z, { children: [
|
|
46
46
|
a,
|
|
47
47
|
/* @__PURE__ */ e(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
|
-
className: $(
|
|
51
|
-
[
|
|
50
|
+
className: $(g["multi-select"], {
|
|
51
|
+
[g["multi-select--no-border"]]: d
|
|
52
52
|
}),
|
|
53
53
|
children: /* @__PURE__ */ e(
|
|
54
54
|
"ul",
|
|
55
55
|
{
|
|
56
|
-
className: $(
|
|
57
|
-
[
|
|
56
|
+
className: $(g["multi-select__list"], {
|
|
57
|
+
[g["multi-select__list--scrollable"]]: _
|
|
58
58
|
}),
|
|
59
59
|
id: "multi-select-list",
|
|
60
60
|
children: r
|
|
@@ -63,8 +63,8 @@ const K = ({ scrollable: b = !0, noBorder: d, header: a, children: r }) => /* @_
|
|
|
63
63
|
}
|
|
64
64
|
)
|
|
65
65
|
] });
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
W.MultiSelectHeader = he;
|
|
67
|
+
W.MultiSelectItem = ie;
|
|
68
68
|
const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
69
69
|
linkform: ve,
|
|
70
70
|
"linkform__input-field": "_linkform__input-field_ki2qx_5",
|
|
@@ -72,20 +72,20 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
72
72
|
"linkform__input-url-wrapper": "_linkform__input-url-wrapper_ki2qx_19",
|
|
73
73
|
"linkform__open-url-button": "_linkform__open-url-button_ki2qx_31"
|
|
74
74
|
}, ct = A(
|
|
75
|
-
({ onCloseHandler:
|
|
76
|
-
const o = H(), [f, u] = C(a.url || ""), [s,
|
|
75
|
+
({ onCloseHandler: _, onSaveHandler: d, isLink: a = { active: !1, url: "", linktext: "" } }, r) => {
|
|
76
|
+
const o = H(), [f, u] = C(a.url || ""), [s, b] = C(a.linktext || ""), [w, k] = C(!1), [F, h] = C(null), [v, p] = C(null), l = T(null), y = `link_${q()}`, t = `text_${q()}`, n = () => {
|
|
77
77
|
window.open(ae(f), "_blank");
|
|
78
78
|
}, x = (i) => {
|
|
79
79
|
u(i.target.value);
|
|
80
80
|
}, c = (i) => {
|
|
81
|
-
|
|
82
|
-
}, S = (i) => se(i) === !1 || i.trim() === "" ? (h(o.errortext.urlNotValid), !1) : (h(null), !0), j = (i) => i.trim() === "" ? (p(o.errortext.linkTextNotValid), !1) : (p(null), !0),
|
|
81
|
+
b(i.target.value);
|
|
82
|
+
}, S = (i) => se(i) === !1 || i.trim() === "" ? (h(o.errortext.urlNotValid), !1) : (h(null), !0), j = (i) => i.trim() === "" ? (p(o.errortext.linkTextNotValid), !1) : (p(null), !0), J = () => {
|
|
83
83
|
!S(f) || w && !j(s) || (d(f, s), O());
|
|
84
|
-
},
|
|
85
|
-
|
|
84
|
+
}, Y = () => {
|
|
85
|
+
_(), O();
|
|
86
86
|
}, O = () => {
|
|
87
87
|
u(""), k(!1), h(null), p(null);
|
|
88
|
-
},
|
|
88
|
+
}, G = (i, X) => {
|
|
89
89
|
u(i), !X && !i && k(!0);
|
|
90
90
|
}, Q = () => {
|
|
91
91
|
l.current && l.current.focus();
|
|
@@ -93,9 +93,9 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
93
93
|
return B(r, () => ({
|
|
94
94
|
clearForm: O,
|
|
95
95
|
focusFirstField: Q,
|
|
96
|
-
setDefaults:
|
|
96
|
+
setDefaults: G
|
|
97
97
|
})), /* @__PURE__ */ m("div", { className: N.linkform, children: [
|
|
98
|
-
/* @__PURE__ */ m(
|
|
98
|
+
/* @__PURE__ */ m(D, { className: N["linkform__input-field"], children: [
|
|
99
99
|
/* @__PURE__ */ e(E, { htmlFor: y, children: o.links.linkLabel }),
|
|
100
100
|
/* @__PURE__ */ m("div", { className: N["linkform__input-url-wrapper"], children: [
|
|
101
101
|
/* @__PURE__ */ e(
|
|
@@ -110,11 +110,11 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
110
110
|
"aria-label": o.aria.labels.linkField
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
f && /* @__PURE__ */ e("button", { type: "button", onClick: n, className: N["linkform__open-url-button"], children: /* @__PURE__ */ e(
|
|
113
|
+
f && /* @__PURE__ */ e("button", { type: "button", onClick: n, className: N["linkform__open-url-button"], children: /* @__PURE__ */ e(K, { name: "ArrowTopRightOnSquare", size: 20 }) })
|
|
114
114
|
] }),
|
|
115
115
|
F && /* @__PURE__ */ e(V, { level: "error", feedback: F })
|
|
116
116
|
] }),
|
|
117
|
-
w && /* @__PURE__ */ m(
|
|
117
|
+
w && /* @__PURE__ */ m(D, { className: N["linkform__input-field"], children: [
|
|
118
118
|
/* @__PURE__ */ e(E, { htmlFor: t, children: o.links.linkText }),
|
|
119
119
|
/* @__PURE__ */ e(
|
|
120
120
|
M,
|
|
@@ -129,38 +129,38 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
129
129
|
v && /* @__PURE__ */ e(V, { level: "error", feedback: v })
|
|
130
130
|
] }),
|
|
131
131
|
/* @__PURE__ */ m("div", { className: N.linkform__footer, children: [
|
|
132
|
-
/* @__PURE__ */ e(L, { variant: "secondary", onClick:
|
|
133
|
-
/* @__PURE__ */ e(L, { variant: "primary", onClick:
|
|
132
|
+
/* @__PURE__ */ e(L, { variant: "secondary", onClick: Y, "aria-label": o.common.cancel, type: "button", children: o.common.cancel }),
|
|
133
|
+
/* @__PURE__ */ e(L, { variant: "primary", onClick: J, "aria-label": o.aria.labels.linkOkButton, type: "button", children: o.links.addLink })
|
|
134
134
|
] })
|
|
135
135
|
] });
|
|
136
136
|
}
|
|
137
|
-
), Fe = "_tableform_t5fpq_1", Ce = "_tableform__footer_t5fpq_12",
|
|
137
|
+
), Fe = "_tableform_t5fpq_1", Ce = "_tableform__footer_t5fpq_12", P = {
|
|
138
138
|
tableform: Fe,
|
|
139
139
|
"tableform__input-field": "_tableform__input-field_t5fpq_5",
|
|
140
140
|
tableform__footer: Ce
|
|
141
|
-
}, ye = A(({ onCloseHandler:
|
|
142
|
-
const r = H(), [o, f] = C(), [u, s] = C(),
|
|
141
|
+
}, ye = A(({ onCloseHandler: _, onSaveHandler: d }, a) => {
|
|
142
|
+
const r = H(), [o, f] = C(), [u, s] = C(), b = T(null), w = `row_${q()}`, k = `column_${q()}`, F = (l, y) => {
|
|
143
143
|
const t = l.target.value;
|
|
144
144
|
y === "row" ? f(parseInt(t)) : s(parseInt(t));
|
|
145
145
|
}, h = () => {
|
|
146
146
|
o !== void 0 && u !== void 0 && (d(o, u), p());
|
|
147
147
|
}, v = () => {
|
|
148
|
-
|
|
148
|
+
_(), p();
|
|
149
149
|
}, p = () => {
|
|
150
150
|
f(void 0), s(void 0);
|
|
151
151
|
};
|
|
152
152
|
return B(a, () => ({
|
|
153
153
|
clearForm: p,
|
|
154
|
-
focusFirstField: () =>
|
|
155
|
-
})),
|
|
154
|
+
focusFirstField: () => b.current?.focus()
|
|
155
|
+
})), R(() => {
|
|
156
156
|
const l = () => {
|
|
157
157
|
v();
|
|
158
158
|
};
|
|
159
|
-
return
|
|
159
|
+
return be(l), window.addEventListener("scroll", l), window.addEventListener("resize", l), () => {
|
|
160
160
|
window.removeEventListener("scroll", l), window.removeEventListener("resize", l), ke(l);
|
|
161
161
|
};
|
|
162
|
-
}, []), /* @__PURE__ */ m("div", { className:
|
|
163
|
-
/* @__PURE__ */ m(
|
|
162
|
+
}, []), /* @__PURE__ */ m("div", { className: P.tableform, children: [
|
|
163
|
+
/* @__PURE__ */ m(D, { className: P["tableform__input-field"], children: [
|
|
164
164
|
/* @__PURE__ */ e(E, { htmlFor: w, children: r.table.nrofRows }),
|
|
165
165
|
/* @__PURE__ */ e(
|
|
166
166
|
M,
|
|
@@ -170,11 +170,11 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
170
170
|
value: o || "",
|
|
171
171
|
onChange: (l) => F(l, "row"),
|
|
172
172
|
"aria-label": r.aria.labels.tableRowfield,
|
|
173
|
-
ref:
|
|
173
|
+
ref: b
|
|
174
174
|
}
|
|
175
175
|
)
|
|
176
176
|
] }),
|
|
177
|
-
/* @__PURE__ */ m(
|
|
177
|
+
/* @__PURE__ */ m(D, { className: P["tableform__input-field"], children: [
|
|
178
178
|
/* @__PURE__ */ e(E, { htmlFor: k, children: r.table.nrofColumns }),
|
|
179
179
|
/* @__PURE__ */ e(
|
|
180
180
|
M,
|
|
@@ -187,7 +187,7 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
187
187
|
}
|
|
188
188
|
)
|
|
189
189
|
] }),
|
|
190
|
-
/* @__PURE__ */ m("div", { className:
|
|
190
|
+
/* @__PURE__ */ m("div", { className: P.tableform__footer, children: [
|
|
191
191
|
/* @__PURE__ */ e(L, { variant: "secondary", onClick: v, "aria-label": r.common.cancel, children: r.common.cancel }),
|
|
192
192
|
/* @__PURE__ */ e(
|
|
193
193
|
L,
|
|
@@ -201,8 +201,8 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
201
201
|
)
|
|
202
202
|
] })
|
|
203
203
|
] });
|
|
204
|
-
}), xe = 200, mt = A(({ isActive:
|
|
205
|
-
const a = H(), [r] = ee(), { flyout: o, showFlyout: f, hideFlyout: u, isVisible: s } =
|
|
204
|
+
}), xe = 200, mt = A(({ isActive: _ }, d) => {
|
|
205
|
+
const a = H(), [r] = ee(), { flyout: o, showFlyout: f, hideFlyout: u, isVisible: s } = _e(), b = T(void 0), w = T(null), k = T(!1), F = T(s), h = () => {
|
|
206
206
|
const t = w.current?.getBoundingClientRect();
|
|
207
207
|
!k.current && t && f({ position: { top: t.bottom, left: t.left }, ...y });
|
|
208
208
|
}, v = () => {
|
|
@@ -247,13 +247,13 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
247
247
|
{
|
|
248
248
|
onCloseHandler: v,
|
|
249
249
|
onSaveHandler: (t, n) => p(t, n),
|
|
250
|
-
ref:
|
|
250
|
+
ref: b
|
|
251
251
|
}
|
|
252
252
|
)
|
|
253
253
|
};
|
|
254
|
-
return
|
|
255
|
-
s ? (k.current = !0,
|
|
256
|
-
}, [
|
|
254
|
+
return R(() => {
|
|
255
|
+
s ? (k.current = !0, b.current?.focusFirstField()) : (b.current?.clearForm(), setTimeout(() => k.current = !1, xe));
|
|
256
|
+
}, [b, s]), R(() => {
|
|
257
257
|
const t = r.registerCommand(
|
|
258
258
|
oe,
|
|
259
259
|
(n) => n.ctrlKey && n.shiftKey && n.code === "Digit9" ? (n.preventDefault(), h(), !0) : !1,
|
|
@@ -262,9 +262,9 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
262
262
|
return () => {
|
|
263
263
|
t();
|
|
264
264
|
};
|
|
265
|
-
}, [r]),
|
|
265
|
+
}, [r]), R(() => {
|
|
266
266
|
F.current = s;
|
|
267
|
-
}, [s]),
|
|
267
|
+
}, [s]), R(() => {
|
|
268
268
|
const t = (n) => {
|
|
269
269
|
n.key === "Escape" && F.current && (n.preventDefault(), n.stopPropagation(), v());
|
|
270
270
|
};
|
|
@@ -279,12 +279,12 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
279
279
|
{
|
|
280
280
|
onClick: h,
|
|
281
281
|
title: a.table.tableTooltip,
|
|
282
|
-
className: $(I["editor__toolbar-button"],
|
|
282
|
+
className: $(I["editor__toolbar-button"], _ && I["editor__toolbar-button--active"]),
|
|
283
283
|
"aria-label": a.aria.labels.table,
|
|
284
284
|
"aria-keyshortcuts": a.aria.keyshortcuts.table,
|
|
285
285
|
ref: w,
|
|
286
286
|
type: "button",
|
|
287
|
-
children: /* @__PURE__ */ e(
|
|
287
|
+
children: /* @__PURE__ */ e(K, { name: "Table", size: 24 })
|
|
288
288
|
}
|
|
289
289
|
),
|
|
290
290
|
o
|
|
@@ -292,9 +292,9 @@ const ve = "_linkform_ki2qx_1", we = "_linkform__footer_ki2qx_12", N = {
|
|
|
292
292
|
});
|
|
293
293
|
export {
|
|
294
294
|
ct as A,
|
|
295
|
-
|
|
295
|
+
W as M,
|
|
296
296
|
mt as T,
|
|
297
297
|
he as a,
|
|
298
298
|
ye as b
|
|
299
299
|
};
|
|
300
|
-
//# sourceMappingURL=TablePlugin-
|
|
300
|
+
//# sourceMappingURL=TablePlugin-CI_6HCsd.js.map
|