@uva-glass/component-library 1.55.1 → 1.57.0
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-FL3-CODh.js +15 -0
- package/dist/Button.module-FL3-CODh.js.map +1 -0
- package/dist/{Lexical.prod-BiuZHlIm.js → Lexical.prod-CO0gPAfo.js} +583 -607
- package/dist/Lexical.prod-CO0gPAfo.js.map +1 -0
- package/dist/LexicalComposerContext.prod-Dyvim1tK.js +27 -0
- package/dist/LexicalComposerContext.prod-Dyvim1tK.js.map +1 -0
- package/dist/LexicalList.prod-BceA-cJD.js +562 -0
- package/dist/LexicalList.prod-BceA-cJD.js.map +1 -0
- package/dist/{LexicalUtils.prod-BZOm66mY.js → LexicalUtils.prod-PbdOb6JG.js} +6 -6
- package/dist/{LexicalUtils.prod-BZOm66mY.js.map → LexicalUtils.prod-PbdOb6JG.js.map} +1 -1
- package/dist/RteEditor.module-Dz9a8vaK.js +29 -0
- package/dist/RteEditor.module-Dz9a8vaK.js.map +1 -0
- package/dist/Sortable.module-uk_YuFs1.js +24 -0
- package/dist/{Sortable.module-B-93knlb.js.map → Sortable.module-uk_YuFs1.js.map} +1 -1
- package/dist/{SortableProvider-BMm77PpY.js → SortableProvider-i4PDjRS_.js} +2 -2
- package/dist/{SortableProvider-BMm77PpY.js.map → SortableProvider-i4PDjRS_.js.map} +1 -1
- package/dist/TablePlugin-1L5UZfDH.js +249 -0
- package/dist/TablePlugin-1L5UZfDH.js.map +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/EditorHeader.css +1 -0
- package/dist/assets/Flyout.css +1 -0
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -0
- package/dist/assets/TablePlugin.css +1 -0
- package/dist/components/Buttons/Button.js +1 -1
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +13 -5
- package/dist/components/Buttons/LinkButton.stories.js.map +1 -1
- package/dist/components/Buttons/MenuButton.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +13 -11
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/Icon/icons/index.d.ts +21 -18
- package/dist/components/Icon/icons/index.js +125 -120
- package/dist/components/Icon/icons/index.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +16 -14
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +5 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/Periods/Periods.js +12 -12
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +6 -4
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.d.ts +7 -0
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +53 -0
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +1 -0
- package/dist/components/RteEditor/EditorHeader/index.d.ts +1 -0
- package/dist/components/RteEditor/EditorHeader/index.js +5 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +11 -10
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +18 -15
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.d.ts +2 -0
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js +7 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.d.ts +2 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +63 -49
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.d.ts +3 -0
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +6 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +31 -8
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +6 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.d.ts +8 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +44 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +5 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.d.ts +9 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +8 -6
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.d.ts +7 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +10 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +4 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.d.ts +4 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +48 -38
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/index.js +10 -8
- package/dist/components/RteEditor/Plugins/index.js.map +1 -1
- package/dist/components/RteEditor/Providers/LanguageProvider.d.ts +10 -0
- package/dist/components/RteEditor/Providers/LanguageProvider.js +18 -0
- package/dist/components/RteEditor/Providers/LanguageProvider.js.map +1 -0
- package/dist/components/RteEditor/RteEditor.d.ts +9 -1
- package/dist/components/RteEditor/RteEditor.js +476 -401
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/RteEditor.stories.d.ts +1 -0
- package/dist/components/RteEditor/RteEditor.stories.js +106 -15
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
- package/dist/components/RteEditor/hooks/components/Flyout.d.ts +7 -0
- package/dist/components/RteEditor/hooks/components/Flyout.js +14 -0
- package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -0
- package/dist/components/RteEditor/hooks/useFlyout.js +16 -20
- package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
- package/dist/components/RteEditor/hooks/useTranslation.d.ts +61 -0
- package/dist/components/RteEditor/hooks/useTranslation.js +10 -0
- package/dist/components/RteEditor/hooks/useTranslation.js.map +1 -0
- package/dist/components/RteEditor/index.js +3 -2
- package/dist/components/RteEditor/mockRteContent.d.ts +1 -0
- package/dist/components/RteEditor/mockRteContent.js +98 -0
- package/dist/components/RteEditor/mockRteContent.js.map +1 -0
- package/dist/components/RteEditor/translations.d.ts +64 -0
- package/dist/components/RteEditor/translations.js +68 -0
- package/dist/components/RteEditor/translations.js.map +1 -0
- 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/index.js +20 -19
- package/dist/helpers-BewZrn6E.js +1512 -0
- package/dist/helpers-BewZrn6E.js.map +1 -0
- package/dist/{helpers-CJF7fErD.js → helpers-Ec7CfNnA.js} +72 -59
- package/dist/helpers-Ec7CfNnA.js.map +1 -0
- package/dist/index.js +20 -19
- package/dist/storyComponents/Container/Container.d.ts +1 -1
- package/dist/storyComponents/Container/Container.js +18 -16
- package/dist/storyComponents/Container/Container.js.map +1 -1
- package/dist/types/UserInterface.d.ts +1 -1
- package/package.json +12 -12
- package/dist/AddTableFrom-u1gSA461.js +0 -162
- package/dist/AddTableFrom-u1gSA461.js.map +0 -1
- package/dist/Button.module-Gr3KvBvb.js +0 -14
- package/dist/Button.module-Gr3KvBvb.js.map +0 -1
- package/dist/Lexical.prod-BiuZHlIm.js.map +0 -1
- package/dist/ListPlugin-DFFbKLaN.js +0 -588
- package/dist/ListPlugin-DFFbKLaN.js.map +0 -1
- package/dist/RteEditor.module-BBbfV1rk.js +0 -24
- package/dist/RteEditor.module-BBbfV1rk.js.map +0 -1
- package/dist/Sortable.module-B-93knlb.js +0 -24
- package/dist/TablePlugin-acQeRCt0.js +0 -1506
- package/dist/TablePlugin-acQeRCt0.js.map +0 -1
- package/dist/assets/AddTableFrom.css +0 -1
- package/dist/assets/useFlyout.css +0 -1
- package/dist/components/RteEditor/hooks/index.d.ts +0 -1
- package/dist/components/RteEditor/hooks/index.js +0 -5
- package/dist/helpers-CJF7fErD.js.map +0 -1
- /package/dist/components/RteEditor/{hooks → EditorHeader}/index.js.map +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as d, A as g, m as p,
|
|
1
|
+
import { I as d, A as g, m as p, b as m, l as h, c as w, w as a, P as v, y as u } from "./Lexical.prod-CO0gPAfo.js";
|
|
2
2
|
function P(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
4
|
}
|
|
@@ -38,12 +38,12 @@ function T(e, n) {
|
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
40
|
function b(e) {
|
|
41
|
-
const n = I(e, (t) =>
|
|
42
|
-
return
|
|
41
|
+
const n = I(e, (t) => u(t) && !t.isInline());
|
|
42
|
+
return u(n) || y(4, e.__key), n;
|
|
43
43
|
}
|
|
44
44
|
const I = (e, n) => {
|
|
45
45
|
let t = e;
|
|
46
|
-
for (; t !==
|
|
46
|
+
for (; t !== a() && t != null; ) {
|
|
47
47
|
if (n(t)) return t;
|
|
48
48
|
t = t.getParent();
|
|
49
49
|
}
|
|
@@ -67,7 +67,7 @@ function M(e) {
|
|
|
67
67
|
const o = n.getNodes();
|
|
68
68
|
o[o.length - 1].getTopLevelElementOrThrow().insertAfter(e);
|
|
69
69
|
} else
|
|
70
|
-
|
|
70
|
+
a().append(e);
|
|
71
71
|
const t = v();
|
|
72
72
|
e.insertAfter(t), t.select();
|
|
73
73
|
}
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
I as t,
|
|
92
92
|
B as u
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=LexicalUtils.prod-
|
|
94
|
+
//# sourceMappingURL=LexicalUtils.prod-PbdOb6JG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalUtils.prod-BZOm66mY.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{$getSelection as e,$isRangeSelection as t,TextNode as n,$getRoot as o,$isElementNode as r,$cloneWithProperties as l,$setSelection as i,$getPreviousSelection as s,$isRootOrShadowRoot as u,$isTextNode as c,$splitNode as f,$createParagraphNode as a}from\"lexical\";export{$splitNode,isBlockDomNode,isHTMLAnchorElement,isHTMLElement,isInlineDomNode}from\"lexical\";import{createRectsFromDOMRange as d}from\"@lexical/selection\";function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var p=g((function(e){const t=new URLSearchParams;t.append(\"code\",e);for(let e=1;e<arguments.length;e++)t.append(\"v\",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const h=\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,m=h&&\"documentMode\"in document?document.documentMode:null,v=h&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),y=h&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),w=!(!h||!(\"InputEvent\"in window)||m)&&\"getTargetRanges\"in new window.InputEvent(\"input\"),E=h&&/Version\\/[\\d.]+.*Safari/.test(navigator.userAgent),P=h&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,S=h&&/Android/.test(navigator.userAgent),x=h&&/^(?=.*Chrome).*/i.test(navigator.userAgent),A=h&&S&&x,N=h&&/AppleWebKit\\/[\\d.]+/.test(navigator.userAgent)&&!x;function b(...e){const t=[];for(const n of e)if(n&&\"string\"==typeof n)for(const[e]of n.matchAll(/\\S+/g))t.push(e);return t}function L(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function T(e){return`${e}px`}const M={attributes:!0,characterData:!0,childList:!0,subtree:!0};function C(e,t,n){let o=null,r=null,l=null,i=[];const s=document.createElement(\"div\");function u(){null===o&&p(182),null===r&&p(183);const{left:l,top:u}=o.getBoundingClientRect(),c=r,f=d(e,t);s.isConnected||c.append(s);let a=!1;for(let e=0;e<f.length;e++){const t=f[e],n=i[e]||document.createElement(\"div\"),o=n.style;\"absolute\"!==o.position&&(o.position=\"absolute\",a=!0);const r=T(t.left-l);o.left!==r&&(o.left=r,a=!0);const c=T(t.top-u);o.top!==c&&(n.style.top=c,a=!0);const d=T(t.width);o.width!==d&&(n.style.width=d,a=!0);const g=T(t.height);o.height!==g&&(n.style.height=g,a=!0),n.parentNode!==s&&(s.append(n),a=!0),i[e]=n}for(;i.length>f.length;)i.pop();a&&n(i)}function c(){r=null,o=null,null!==l&&l.disconnect(),l=null,s.remove();for(const e of i)e.remove();i=[]}const f=e.registerRootListener((function t(){const n=e.getRootElement();if(null===n)return c();const i=n.parentElement;if(!(i instanceof HTMLElement))return c();c(),o=n,r=i,l=new MutationObserver((n=>{const l=e.getRootElement(),i=l&&l.parentElement;if(l!==o||i!==r)return t();for(const e of n)if(!s.contains(e.target))return u()})),l.observe(i,M),u()}));return()=>{f(),c()}}function B(o,r){let l=null,i=null,s=null,u=null,c=()=>{};function f(f){f.read((()=>{const f=e();if(!t(f))return l=null,i=null,s=null,u=null,c(),void(c=()=>{});const{anchor:a,focus:d}=f,g=a.getNode(),h=g.getKey(),m=a.offset,v=d.getNode(),y=v.getKey(),w=d.offset,E=o.getElementByKey(h),P=o.getElementByKey(y),S=null===l||null===E||m!==i||h!==l.getKey()||g!==l&&(!(l instanceof n)||g.updateDOM(l,E,o._config)),x=null===s||null===P||w!==u||y!==s.getKey()||v!==s&&(!(s instanceof n)||v.updateDOM(s,P,o._config));if(S||x){const e=o.getElementByKey(a.getNode().getKey()),t=o.getElementByKey(d.getNode().getKey());if(null!==e&&null!==t&&\"SPAN\"===e.tagName&&\"SPAN\"===t.tagName){const n=document.createRange();let l,i,s,u;d.isBefore(a)?(l=t,i=d.offset,s=e,u=a.offset):(l=e,i=a.offset,s=t,u=d.offset);const f=l.firstChild;null===f&&p(181);const g=s.firstChild;null===g&&p(181),n.setStart(f,i),n.setEnd(g,u),c(),c=C(o,n,(e=>{for(const t of e){const e=t.style;\"Highlight\"!==e.background&&(e.background=\"Highlight\"),\"HighlightText\"!==e.color&&(e.color=\"HighlightText\"),\"-1\"!==e.zIndex&&(e.zIndex=\"-1\"),\"none\"!==e.pointerEvents&&(e.pointerEvents=\"none\"),e.marginTop!==T(-1.5)&&(e.marginTop=T(-1.5)),e.paddingTop!==T(4)&&(e.paddingTop=T(4)),e.paddingBottom!==T(0)&&(e.paddingBottom=T(0))}void 0!==r&&r(e)}))}}l=g,i=m,s=v,u=w}))}return f(o.getEditorState()),L(o.registerUpdateListener((({editorState:e})=>f(e))),c,(()=>{c()}))}const _=w,K=h,O=S,R=A,I=v,H=N,z=x,D=y,k=P,F=E;function $(e,...t){const n=b(...t);n.length>0&&e.classList.add(...n)}function U(e,...t){const n=b(...t);n.length>0&&e.classList.remove(...n)}function W(e,t){for(const n of t)if(e.type.startsWith(n))return!0;return!1}function j(e,t){const n=e[Symbol.iterator]();return new Promise(((e,o)=>{const r=[],l=()=>{const{done:i,value:s}=n.next();if(i)return e(r);const u=new FileReader;u.addEventListener(\"error\",o),u.addEventListener(\"load\",(()=>{const e=u.result;\"string\"==typeof e&&r.push({file:s,result:e}),l()})),W(s,t)?u.readAsDataURL(s):l()};l()}))}function V(e,t){return Array.from(J(e,t))}const q={done:!0,value:void 0},G=e=>({done:!1,value:e});function J(e,t){const n=(e||o()).getLatest(),l=X(n),i=t;let s=n,u=l,c=!0;const f={next(){if(null===s)return q;if(c)return c=!1,G({depth:u,node:s});if(s===i)return q;if(r(s)&&s.getChildrenSize()>0)s=s.getFirstChild(),u++;else{let e;[s,e]=Q(s)||[null,0],u+=e,null==i&&u<=l&&(s=null)}return null===s?q:G({depth:u,node:s})},[Symbol.iterator]:()=>f};return f}function Q(e){let t=e,n=null,o=0;for(;null===n&&null!==t;)n=t.getNextSibling(),null===n?(t=t.getParent(),o--):t=n;return null===t?null:[t,o]}function X(e){let t=e,n=0;for(;null!==(t=t.getParent());)n++;return n}function Y(e){let t=e;if(r(t)&&t.getChildrenSize()>0)t=t.getLastChild();else{let e=null;for(;null===e&&null!==t;)e=t.getPreviousSibling(),t=null===e?t.getParent():e}return t}function Z(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function ee(e){const t=te(e,(e=>r(e)&&!e.isInline()));return r(t)||p(4,e.__key),t}const te=(e,t)=>{let n=e;for(;n!==o()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function ne(e,t,n,o){const r=e=>e instanceof t;return e.registerNodeTransform(t,(e=>{const t=(e=>{const t=e.getChildren();for(let e=0;e<t.length;e++){const n=t[e];if(r(n))return null}let n=e,o=e;for(;null!==n;)if(o=n,n=n.getParent(),r(n))return{child:o,parent:n};return null})(e);if(null!==t){const{child:r,parent:l}=t;if(r.is(e)){o(l,e);const t=r.getNextSiblings(),i=t.length;if(l.insertAfter(r),0!==i){const e=n(l);r.insertAfter(e);for(let n=0;n<i;n++)e.append(t[n])}l.canBeEmpty()||0!==l.getChildrenSize()||l.remove()}}}))}function oe(e,t){const n=new Map,o=e._pendingEditorState;for(const[e,o]of t._nodeMap)n.set(e,l(o));o&&(o._nodeMap=n),e._dirtyType=2;const r=t._selection;i(null===r?null:r.clone())}function re(n){const r=e()||s();if(t(r)){const{focus:e}=r,t=e.getNode(),o=e.offset;if(u(t)){const e=t.getChildAtIndex(o);null==e?t.append(n):e.insertBefore(n),n.selectNext()}else{let e,r;c(t)?(e=t.getParentOrThrow(),r=t.getIndexWithinParent(),o>0&&(r+=1,t.splitText(o))):(e=t,r=o);const[,l]=f(e,r);l.insertBefore(n),l.selectStart()}}else{if(null!=r){const e=r.getNodes();e[e.length-1].getTopLevelElementOrThrow().insertAfter(n)}else{o().append(n)}const e=a();n.insertAfter(e),e.select()}return n.getLatest()}function le(e,t){const n=t();return e.replace(n),n.append(e),n}function ie(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function se(e,t){const n=[];for(let o=0;o<e.length;o++){const r=t(e[o]);null!==r&&n.push(r)}return n}function ue(e,t){const n=e.getFirstChild();null!==n?n.insertBefore(t):e.append(t)}function ce(e){if(D)return 1;let t=1;for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue(\"zoom\")),e=e.parentElement;return t}function fe(e){return null!==e._parentEditor}export{V as $dfs,J as $dfsIterator,se as $filter,te as $findMatchingParent,X as $getDepth,ee as $getNearestBlockElementAncestorOrThrow,Z as $getNearestNodeOfType,Y as $getNextRightPreorderNode,Q as $getNextSiblingOrParentSibling,ue as $insertFirst,re as $insertNodeToNearestRoot,fe as $isEditorIsNestedEditor,oe as $restoreEditorState,le as $wrapNodeInElement,_ as CAN_USE_BEFORE_INPUT,K as CAN_USE_DOM,O as IS_ANDROID,R as IS_ANDROID_CHROME,I as IS_APPLE,H as IS_APPLE_WEBKIT,z as IS_CHROME,D as IS_FIREFOX,k as IS_IOS,F as IS_SAFARI,$ as addClassNamesToElement,ce as calculateZoomLevel,W as isMimeType,B as markSelection,j as mediaFileReader,L as mergeRegister,ie as objectKlassEquals,C as positionNodeOnRange,ne as registerNestedElementResolver,U as removeClassNamesFromElement};\n"],"names":["g","p","t","e","h","m","b","n","L","$","U","Z","ee","te","r","o","re","s","u","c","f","a","ie","ue"],"mappings":";AAQya,SAASA,EAAE,GAAE;AAAC,SAAO,KAAG,EAAE,cAAY,OAAO,UAAU,eAAe,KAAK,GAAE,SAAS,IAAE,EAAE,UAAQ;AAAC;AAAC,IAAIC,IAAED,EAAG,SAAS,GAAE;AAAC,QAAME,IAAE,IAAI;AAAgB,EAAAA,EAAE,OAAO,QAAO,CAAC;AAAE,WAAQC,IAAE,GAAEA,IAAE,UAAU,QAAOA,IAAI,CAAAD,EAAE,OAAO,KAAI,UAAUC,CAAC,CAAC;AAAE,QAAM,MAAM,2BAA2B,CAAC,0CAA0CD,CAAC,gHAAgH;AAAC,CAAG;AAAM,MAACE,IAAe,OAAO,SAApB,OAAqC,OAAO,aAAhB,UAAmC,OAAO,SAAS,kBAAzB,QAAuCC,IAAED,KAAG,kBAAiB,WAAS,SAAS,eAA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IAAE,EAAE,OAAOA,CAAC;AAAC;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"LexicalUtils.prod-PbdOb6JG.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{$getSelection as e,$isRangeSelection as t,TextNode as n,$getRoot as o,$isElementNode as r,$cloneWithProperties as l,$setSelection as i,$getPreviousSelection as s,$isRootOrShadowRoot as u,$isTextNode as c,$splitNode as f,$createParagraphNode as a}from\"lexical\";export{$splitNode,isBlockDomNode,isHTMLAnchorElement,isHTMLElement,isInlineDomNode}from\"lexical\";import{createRectsFromDOMRange as d}from\"@lexical/selection\";function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var p=g((function(e){const t=new URLSearchParams;t.append(\"code\",e);for(let e=1;e<arguments.length;e++)t.append(\"v\",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const h=\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,m=h&&\"documentMode\"in document?document.documentMode:null,v=h&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),y=h&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),w=!(!h||!(\"InputEvent\"in window)||m)&&\"getTargetRanges\"in new window.InputEvent(\"input\"),E=h&&/Version\\/[\\d.]+.*Safari/.test(navigator.userAgent),P=h&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,S=h&&/Android/.test(navigator.userAgent),x=h&&/^(?=.*Chrome).*/i.test(navigator.userAgent),A=h&&S&&x,N=h&&/AppleWebKit\\/[\\d.]+/.test(navigator.userAgent)&&!x;function b(...e){const t=[];for(const n of e)if(n&&\"string\"==typeof n)for(const[e]of n.matchAll(/\\S+/g))t.push(e);return t}function L(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function T(e){return`${e}px`}const M={attributes:!0,characterData:!0,childList:!0,subtree:!0};function C(e,t,n){let o=null,r=null,l=null,i=[];const s=document.createElement(\"div\");function u(){null===o&&p(182),null===r&&p(183);const{left:l,top:u}=o.getBoundingClientRect(),c=r,f=d(e,t);s.isConnected||c.append(s);let a=!1;for(let e=0;e<f.length;e++){const t=f[e],n=i[e]||document.createElement(\"div\"),o=n.style;\"absolute\"!==o.position&&(o.position=\"absolute\",a=!0);const r=T(t.left-l);o.left!==r&&(o.left=r,a=!0);const c=T(t.top-u);o.top!==c&&(n.style.top=c,a=!0);const d=T(t.width);o.width!==d&&(n.style.width=d,a=!0);const g=T(t.height);o.height!==g&&(n.style.height=g,a=!0),n.parentNode!==s&&(s.append(n),a=!0),i[e]=n}for(;i.length>f.length;)i.pop();a&&n(i)}function c(){r=null,o=null,null!==l&&l.disconnect(),l=null,s.remove();for(const e of i)e.remove();i=[]}const f=e.registerRootListener((function t(){const n=e.getRootElement();if(null===n)return c();const i=n.parentElement;if(!(i instanceof HTMLElement))return c();c(),o=n,r=i,l=new MutationObserver((n=>{const l=e.getRootElement(),i=l&&l.parentElement;if(l!==o||i!==r)return t();for(const e of n)if(!s.contains(e.target))return u()})),l.observe(i,M),u()}));return()=>{f(),c()}}function B(o,r){let l=null,i=null,s=null,u=null,c=()=>{};function f(f){f.read((()=>{const f=e();if(!t(f))return l=null,i=null,s=null,u=null,c(),void(c=()=>{});const{anchor:a,focus:d}=f,g=a.getNode(),h=g.getKey(),m=a.offset,v=d.getNode(),y=v.getKey(),w=d.offset,E=o.getElementByKey(h),P=o.getElementByKey(y),S=null===l||null===E||m!==i||h!==l.getKey()||g!==l&&(!(l instanceof n)||g.updateDOM(l,E,o._config)),x=null===s||null===P||w!==u||y!==s.getKey()||v!==s&&(!(s instanceof n)||v.updateDOM(s,P,o._config));if(S||x){const e=o.getElementByKey(a.getNode().getKey()),t=o.getElementByKey(d.getNode().getKey());if(null!==e&&null!==t&&\"SPAN\"===e.tagName&&\"SPAN\"===t.tagName){const n=document.createRange();let l,i,s,u;d.isBefore(a)?(l=t,i=d.offset,s=e,u=a.offset):(l=e,i=a.offset,s=t,u=d.offset);const f=l.firstChild;null===f&&p(181);const g=s.firstChild;null===g&&p(181),n.setStart(f,i),n.setEnd(g,u),c(),c=C(o,n,(e=>{for(const t of e){const e=t.style;\"Highlight\"!==e.background&&(e.background=\"Highlight\"),\"HighlightText\"!==e.color&&(e.color=\"HighlightText\"),\"-1\"!==e.zIndex&&(e.zIndex=\"-1\"),\"none\"!==e.pointerEvents&&(e.pointerEvents=\"none\"),e.marginTop!==T(-1.5)&&(e.marginTop=T(-1.5)),e.paddingTop!==T(4)&&(e.paddingTop=T(4)),e.paddingBottom!==T(0)&&(e.paddingBottom=T(0))}void 0!==r&&r(e)}))}}l=g,i=m,s=v,u=w}))}return f(o.getEditorState()),L(o.registerUpdateListener((({editorState:e})=>f(e))),c,(()=>{c()}))}const _=w,K=h,O=S,R=A,I=v,H=N,z=x,D=y,k=P,F=E;function $(e,...t){const n=b(...t);n.length>0&&e.classList.add(...n)}function U(e,...t){const n=b(...t);n.length>0&&e.classList.remove(...n)}function W(e,t){for(const n of t)if(e.type.startsWith(n))return!0;return!1}function j(e,t){const n=e[Symbol.iterator]();return new Promise(((e,o)=>{const r=[],l=()=>{const{done:i,value:s}=n.next();if(i)return e(r);const u=new FileReader;u.addEventListener(\"error\",o),u.addEventListener(\"load\",(()=>{const e=u.result;\"string\"==typeof e&&r.push({file:s,result:e}),l()})),W(s,t)?u.readAsDataURL(s):l()};l()}))}function V(e,t){return Array.from(J(e,t))}const q={done:!0,value:void 0},G=e=>({done:!1,value:e});function J(e,t){const n=(e||o()).getLatest(),l=X(n),i=t;let s=n,u=l,c=!0;const f={next(){if(null===s)return q;if(c)return c=!1,G({depth:u,node:s});if(s===i)return q;if(r(s)&&s.getChildrenSize()>0)s=s.getFirstChild(),u++;else{let e;[s,e]=Q(s)||[null,0],u+=e,null==i&&u<=l&&(s=null)}return null===s?q:G({depth:u,node:s})},[Symbol.iterator]:()=>f};return f}function Q(e){let t=e,n=null,o=0;for(;null===n&&null!==t;)n=t.getNextSibling(),null===n?(t=t.getParent(),o--):t=n;return null===t?null:[t,o]}function X(e){let t=e,n=0;for(;null!==(t=t.getParent());)n++;return n}function Y(e){let t=e;if(r(t)&&t.getChildrenSize()>0)t=t.getLastChild();else{let e=null;for(;null===e&&null!==t;)e=t.getPreviousSibling(),t=null===e?t.getParent():e}return t}function Z(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function ee(e){const t=te(e,(e=>r(e)&&!e.isInline()));return r(t)||p(4,e.__key),t}const te=(e,t)=>{let n=e;for(;n!==o()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function ne(e,t,n,o){const r=e=>e instanceof t;return e.registerNodeTransform(t,(e=>{const t=(e=>{const t=e.getChildren();for(let e=0;e<t.length;e++){const n=t[e];if(r(n))return null}let n=e,o=e;for(;null!==n;)if(o=n,n=n.getParent(),r(n))return{child:o,parent:n};return null})(e);if(null!==t){const{child:r,parent:l}=t;if(r.is(e)){o(l,e);const t=r.getNextSiblings(),i=t.length;if(l.insertAfter(r),0!==i){const e=n(l);r.insertAfter(e);for(let n=0;n<i;n++)e.append(t[n])}l.canBeEmpty()||0!==l.getChildrenSize()||l.remove()}}}))}function oe(e,t){const n=new Map,o=e._pendingEditorState;for(const[e,o]of t._nodeMap)n.set(e,l(o));o&&(o._nodeMap=n),e._dirtyType=2;const r=t._selection;i(null===r?null:r.clone())}function re(n){const r=e()||s();if(t(r)){const{focus:e}=r,t=e.getNode(),o=e.offset;if(u(t)){const e=t.getChildAtIndex(o);null==e?t.append(n):e.insertBefore(n),n.selectNext()}else{let e,r;c(t)?(e=t.getParentOrThrow(),r=t.getIndexWithinParent(),o>0&&(r+=1,t.splitText(o))):(e=t,r=o);const[,l]=f(e,r);l.insertBefore(n),l.selectStart()}}else{if(null!=r){const e=r.getNodes();e[e.length-1].getTopLevelElementOrThrow().insertAfter(n)}else{o().append(n)}const e=a();n.insertAfter(e),e.select()}return n.getLatest()}function le(e,t){const n=t();return e.replace(n),n.append(e),n}function ie(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function se(e,t){const n=[];for(let o=0;o<e.length;o++){const r=t(e[o]);null!==r&&n.push(r)}return n}function ue(e,t){const n=e.getFirstChild();null!==n?n.insertBefore(t):e.append(t)}function ce(e){if(D)return 1;let t=1;for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue(\"zoom\")),e=e.parentElement;return t}function fe(e){return null!==e._parentEditor}export{V as $dfs,J as $dfsIterator,se as $filter,te as $findMatchingParent,X as $getDepth,ee as $getNearestBlockElementAncestorOrThrow,Z as $getNearestNodeOfType,Y as $getNextRightPreorderNode,Q as $getNextSiblingOrParentSibling,ue as $insertFirst,re as $insertNodeToNearestRoot,fe as $isEditorIsNestedEditor,oe as $restoreEditorState,le as $wrapNodeInElement,_ as CAN_USE_BEFORE_INPUT,K as CAN_USE_DOM,O as IS_ANDROID,R as IS_ANDROID_CHROME,I as IS_APPLE,H as IS_APPLE_WEBKIT,z as IS_CHROME,D as IS_FIREFOX,k as IS_IOS,F as IS_SAFARI,$ as addClassNamesToElement,ce as calculateZoomLevel,W as isMimeType,B as markSelection,j as mediaFileReader,L as mergeRegister,ie as objectKlassEquals,C as positionNodeOnRange,ne as registerNestedElementResolver,U as removeClassNamesFromElement};\n"],"names":["g","p","t","e","h","m","b","n","L","$","U","Z","ee","te","r","o","re","s","u","c","f","a","ie","ue"],"mappings":";AAQya,SAASA,EAAE,GAAE;AAAC,SAAO,KAAG,EAAE,cAAY,OAAO,UAAU,eAAe,KAAK,GAAE,SAAS,IAAE,EAAE,UAAQ;AAAC;AAAC,IAAIC,IAAED,EAAG,SAAS,GAAE;AAAC,QAAME,IAAE,IAAI;AAAgB,EAAAA,EAA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;AAAG,IAAAd,EAAE,YAAYJ,CAAC,GAAEA,EAAE,OAAM;AAAA,EAAE;AAAC,SAAOI,EAAE;AAAW;AAAgE,SAASe,EAAG,GAAEpB,GAAE;AAAC,SAAc,MAAP,QAAU,OAAO,eAAe,CAAC,EAAE,YAAY,SAAOA,EAAE;AAAI;AAAsG,SAASqB,EAAG,GAAErB,GAAE;AAAC,QAAMK,IAAE,EAAE,cAAe;AAAC,EAAOA,MAAP,OAASA,EAAE,aAAaL,CAAC,IAAE,EAAE,OAAOA,CAAC;AAAC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './assets/RteEditor.css';const _ = "_editor__container_1hthm_1", t = "_editor__header_1hthm_7", o = "_editor__field_1hthm_28", r = "_editor_1hthm_1", e = "_editor__toolbar_1hthm_42", i = "_editor__placeholder_1hthm_144", d = "_editor__error_1hthm_153", h = "_editor__listitem_1hthm_182", l = "_editor__link_1hthm_192", a = "_editor__table_1hthm_198", n = {
|
|
2
|
+
editor__container: _,
|
|
3
|
+
editor__header: t,
|
|
4
|
+
"editor__header-word-count": "_editor__header-word-count_1hthm_15",
|
|
5
|
+
"editor__header-word-count--alert": "_editor__header-word-count--alert_1hthm_24",
|
|
6
|
+
editor__field: o,
|
|
7
|
+
editor: r,
|
|
8
|
+
editor__toolbar: e,
|
|
9
|
+
"editor__toolbar-button-group": "_editor__toolbar-button-group_1hthm_51",
|
|
10
|
+
"editor__toolbar-button": "_editor__toolbar-button_1hthm_51",
|
|
11
|
+
"editor__toolbar-button--bold": "_editor__toolbar-button--bold_1hthm_95",
|
|
12
|
+
"editor__toolbar-button--italic": "_editor__toolbar-button--italic_1hthm_99",
|
|
13
|
+
"editor__toolbar-button--active": "_editor__toolbar-button--active_1hthm_103",
|
|
14
|
+
"editor__toolbar-button-flyoutwrapper": "_editor__toolbar-button-flyoutwrapper_1hthm_113",
|
|
15
|
+
"editor__field-wrapper": "_editor__field-wrapper_1hthm_117",
|
|
16
|
+
editor__placeholder: i,
|
|
17
|
+
editor__error: d,
|
|
18
|
+
"editor__text--bold": "_editor__text--bold_1hthm_168",
|
|
19
|
+
"editor__text--italic": "_editor__text--italic_1hthm_172",
|
|
20
|
+
"editor__list--ul": "_editor__list--ul_1hthm_176",
|
|
21
|
+
"editor__list--ol": "_editor__list--ol_1hthm_177",
|
|
22
|
+
editor__listitem: h,
|
|
23
|
+
editor__link: l,
|
|
24
|
+
editor__table: a
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
n as s
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=RteEditor.module-Dz9a8vaK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RteEditor.module-Dz9a8vaK.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import './assets/Sortable.css';const _ = "_sortable__wrapper_td575_1", t = "_sortable__container_td575_13", e = "_sortable__handle_td575_154", r = {
|
|
2
|
+
sortable__wrapper: _,
|
|
3
|
+
"sortable__wrapper--scrollable": "_sortable__wrapper--scrollable_td575_5",
|
|
4
|
+
sortable__container: t,
|
|
5
|
+
"sortable__drop-target": "_sortable__drop-target_td575_25",
|
|
6
|
+
"sortable__sort-item": "_sortable__sort-item_td575_56",
|
|
7
|
+
"sortable__sort-item--ghost": "_sortable__sort-item--ghost_td575_72",
|
|
8
|
+
"sortable__container--drag-over": "_sortable__container--drag-over_td575_83",
|
|
9
|
+
"sortable__sort-item__handle": "_sortable__sort-item__handle_td575_88",
|
|
10
|
+
"sortable__sort-item__button-container": "_sortable__sort-item__button-container_td575_98",
|
|
11
|
+
"sortable__sort-item__handle--icon": "_sortable__sort-item__handle--icon_td575_117",
|
|
12
|
+
"sortable__sort-item__handle--up": "_sortable__sort-item__handle--up_td575_124",
|
|
13
|
+
"sortable__sort-item__handle--down": "_sortable__sort-item__handle--down_td575_125",
|
|
14
|
+
"sortable__sort-item--dragging": "_sortable__sort-item--dragging_td575_136",
|
|
15
|
+
"sortable__sort-item__contents": "_sortable__sort-item__contents_td575_140",
|
|
16
|
+
"sortable__sort-item__contents--handle-right": "_sortable__sort-item__contents--handle-right_td575_149",
|
|
17
|
+
sortable__handle: e,
|
|
18
|
+
"sortable__handle--right": "_sortable__handle--right_td575_160",
|
|
19
|
+
"sortable__visually-hidden": "_sortable__visually-hidden_td575_178"
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
r as s
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Sortable.module-uk_YuFs1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sortable.module-
|
|
1
|
+
{"version":3,"file":"Sortable.module-uk_YuFs1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { jsx as f } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as b, useEffect as w, cloneElement as R, createContext as O, useReducer as A, useContext as L, Children as _ } from "react";
|
|
3
3
|
import { sortableReducer as j, initialState as q } from "./components/Sortable/sortableReducer.js";
|
|
4
4
|
import { c as N } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { s as u } from "./Sortable.module-
|
|
5
|
+
import { s as u } from "./Sortable.module-uk_YuFs1.js";
|
|
6
6
|
import { setDraggingSource as B, setDraggingTarget as H, moveToPosition as X, clearDraggingTarget as Y, clearDraggingSource as k, drop as z, dragStart as F, dragEnd as G, reset as J, setClone as K } from "./components/Sortable/actions.js";
|
|
7
7
|
function M({ scrollable: i, onSort: a }) {
|
|
8
8
|
const { clone: n, draggingTarget: p, drop: x, sortableItems: D, setDraggingTarget: o, reset: S, indices: s } = U(), l = b(null), c = b(null), d = b(s);
|
|
@@ -149,4 +149,4 @@ export {
|
|
|
149
149
|
M as a,
|
|
150
150
|
U as u
|
|
151
151
|
};
|
|
152
|
-
//# sourceMappingURL=SortableProvider-
|
|
152
|
+
//# sourceMappingURL=SortableProvider-i4PDjRS_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableProvider-BMm77PpY.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 onSort?: OnSort;\n}\n\nexport function SortableContainer({ scrollable, 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={styles['sortable__drop-target']}\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 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, 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} 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","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","_a","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":";;;;;;AAeO,SAASA,EAAkB,EAAE,YAAAC,GAAY,QAAAC,KAAkC;AAC1E,QAAA,EAAE,OAAAC,GAAO,gBAAAC,GAAgB,MAAAC,GAAM,eAAAC,GAAe,mBAAAC,GAAmB,OAAAC,GAAO,SAAAC,MAAYC,KACpFC,IAAeC,EAAyB,IAAI,GAC5CC,IAAaD,EAAuB,IAAI,GACxCE,IAAaF,EAAiBH,CAAO;AAE3C,WAASM,EAAeC,GAAiC;AACvD,UAAMC,IAAoBN,EAAa;AAEnC,QAAA,EAACM,KAAA,QAAAA,EAAmB,iBAAiB;AAEzC,UAAMC,IAAeF,EAAM;AAIpB,WAHY,MAAM,KAAKC,EAAkB,UAAU,EAC3B,UAAU,CAACE,MAASA,EAAK,YAAYD,CAAY,CAAC;AAAA,EAGnF;AAEA,WAASE,EAAWJ,GAAiC;AAC7C,UAAAK,IAAcN,EAAeC,CAAK;AAExC,IAAIK,MAAgB,WAEhBlB,KAASU,EAAW,WAAoBA,EAAA,QAAQ,YAAYV,CAAK,GAErEE,EAAKgB,CAAW;AAAA,EAClB;AAEA,WAASC,EAAeN,GAAiC;AAKvD,QAHAA,EAAM,eAAe,GACrBA,EAAM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AAR,EAAAS,GAA6B;AAAA,EACxC;AAEA,WAASC,IAAsB;AACpB,IAAAV,EAAAW,GAA6B;AAAA,EACxC;AAEA,WAASzD,EAAKiC,GAAe;AAClB,IAAAa,EAAAY,EAAazB,CAAK,CAAC;AAAA,EAC9B;AAEA,WAAS0B,EAAU1B,GAAe;AACvB,IAAAa,EAAAc,EAAkB3B,CAAK,CAAC;AAAA,EACnC;AAEA,WAAS4B,IAAU;AACR,IAAAf,EAAAgB,GAAiB;AAAA,EAC5B;AAEA,WAAS3D,IAAQ;AACN,IAAA2C,EAAAiB,GAAe;AAAA,EAC1B;AAEA,WAASC,EAASlD,GAAe;AACtB,IAAAgC,EAAAmB,EAAiBnD,CAAI,CAAC;AAAA,EACjC;AAEA,WAASoD,EAAaC,GAAyB;AACvC,UAAAC,IAAcD,EAAc,IAAI,CAAClC,MAAUW,EAAgB,QAAQX,CAAK,CAAC;AAC/E,IAAApC,KAAUA,EAAOuE,CAAW;AAAA,EAC9B;AAGE,SAAA,gBAAAvC;AAAA,IAACM,EAAgB;AAAA,IAAhB;AAAA,MACC,OAAO;AAAA,QACL,GAAGU;AAAA,QAAA,qBACHW;AAAAA,QAAA,qBACAF;AAAAA,QAAA,SACAO;AAAAA,QAAA,WACAF;AAAAA,QAAA,MACA3D;AAAAA,QAAA,gBACAoD;AAAAA,QAAA,OACAjD;AAAAA,QAAA,UACA6D;AAAAA,QAAA,mBACAf;AAAAA,QAAA,mBACA/C;AAAAA,MACF;AAAA,MAEA,UAAC,gBAAA2B,EAAAlC,GAAA,EAAkB,YAAAC,GAAwB,QAAQsE,GAAc;AAAA,IAAA;AAAA,EAAA;AAGvE;AAEO,SAAS7D,IAAc;AACtB,QAAAgE,IAAUC,EAAWnC,CAAe;AAE1C,MAAIkC,MAAY;AACR,UAAA,IAAI,MAAM,oDAAoD;AAG/D,SAAAA;AACT;"}
|
|
1
|
+
{"version":3,"file":"SortableProvider-i4PDjRS_.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 onSort?: OnSort;\n}\n\nexport function SortableContainer({ scrollable, 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={styles['sortable__drop-target']}\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 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, 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} 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","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","_a","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":";;;;;;AAeO,SAASA,EAAkB,EAAE,YAAAC,GAAY,QAAAC,KAAkC;AAC1E,QAAA,EAAE,OAAAC,GAAO,gBAAAC,GAAgB,MAAAC,GAAM,eAAAC,GAAe,mBAAAC,GAAmB,OAAAC,GAAO,SAAAC,MAAYC,KACpFC,IAAeC,EAAyB,IAAI,GAC5CC,IAAaD,EAAuB,IAAI,GACxCE,IAAaF,EAAiBH,CAAO;AAE3C,WAASM,EAAeC,GAAiC;AACvD,UAAMC,IAAoBN,EAAa;AAEnC,QAAA,EAACM,KAAA,QAAAA,EAAmB,iBAAiB;AAEzC,UAAMC,IAAeF,EAAM;AAIpB,WAHY,MAAM,KAAKC,EAAkB,UAAU,EAC3B,UAAU,CAACE,MAASA,EAAK,YAAYD,CAAY,CAAC;AAAA,EAGnF;AAEA,WAASE,EAAWJ,GAAiC;AAC7C,UAAAK,IAAcN,EAAeC,CAAK;AAExC,IAAIK,MAAgB,WAEhBlB,KAASU,EAAW,WAAoBA,EAAA,QAAQ,YAAYV,CAAK,GAErEE,EAAKgB,CAAW;AAAA,EAClB;AAEA,WAASC,EAAeN,GAAiC;AAKvD,QAHAA,EAAM,eAAe,GACrBA,EAAM,aAAa,aAAa,QAE5Bb,GAAO;AACH,YAAA,EAAE,SAAAoB,GAAS,SAAAC,EAAY,IAAAR,GACvB,EAAE,GAAAS,GAAG,GAAAC,GAAG,OAAAC,GAAO,QAAAC,MAAWZ,EAAM,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AC;AAAA,EAC9B;AAEA,WAAS0B,EAAU1B,GAAe;AACvB,IAAAa,EAAAc,EAAkB3B,CAAK,CAAC;AAAA,EACnC;AAEA,WAAS4B,IAAU;AACR,IAAAf,EAAAgB,GAAiB;AAAA,EAC5B;AAEA,WAAS3D,IAAQ;AACN,IAAA2C,EAAAiB,GAAe;AAAA,EAC1B;AAEA,WAASC,EAASlD,GAAe;AACtB,IAAAgC,EAAAmB,EAAiBnD,CAAI,CAAC;AAAA,EACjC;AAEA,WAASoD,EAAaC,GAAyB;AACvC,UAAAC,IAAcD,EAAc,IAAI,CAAClC,MAAUW,EAAgB,QAAQX,CAAK,CAAC;AAC/E,IAAApC,KAAUA,EAAOuE,CAAW;AAAA,EAC9B;AAGE,SAAA,gBAAAvC;AAAA,IAACM,EAAgB;AAAA,IAAhB;AAAA,MACC,OAAO;AAAA,QACL,GAAGU;AAAA,QAAA,qBACHW;AAAAA,QAAA,qBACAF;AAAAA,QAAA,SACAO;AAAAA,QAAA,WACAF;AAAAA,QAAA,MACA3D;AAAAA,QAAA,gBACAoD;AAAAA,QAAA,OACAjD;AAAAA,QAAA,UACA6D;AAAAA,QAAA,mBACAf;AAAAA,QAAA,mBACA/C;AAAAA,MACF;AAAA,MAEA,UAAC,gBAAA2B,EAAAlC,GAAA,EAAkB,YAAAC,GAAwB,QAAQsE,GAAc;AAAA,IAAA;AAAA,EAAA;AAGvE;AAEO,SAAS7D,IAAc;AACtB,QAAAgE,IAAUC,EAAWnC,CAAe;AAE1C,MAAIkC,MAAY;AACR,UAAA,IAAI,MAAM,oDAAoD;AAG/D,SAAAA;AACT;"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { u as j } from "./LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
+
import { c as L } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { n as z, d as W, a as Y, i as G, b as J, c as K, e as Q } from "./helpers-BewZrn6E.js";
|
|
5
|
+
import { I as U, m as x, w as X } from "./Lexical.prod-CO0gPAfo.js";
|
|
6
|
+
import { forwardRef as O, useState as g, useRef as N, useImperativeHandle as P, useEffect as Z } from "react";
|
|
7
|
+
import { Button as C } from "./components/Buttons/Button.js";
|
|
8
|
+
import "./components/Buttons/LinkButton.js";
|
|
9
|
+
import "@react-aria/button";
|
|
10
|
+
import { Label as w } from "./components/Label/Label.js";
|
|
11
|
+
import "@react-aria/dialog";
|
|
12
|
+
import "@react-aria/focus";
|
|
13
|
+
import "@react-aria/overlays";
|
|
14
|
+
import "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
15
|
+
import { FormField as S } from "./components/FormField/FormField.js";
|
|
16
|
+
import "./components/GridRow/GridRow.js";
|
|
17
|
+
import "./components/IconButton/IconButton.js";
|
|
18
|
+
import "./components/Input/Input.js";
|
|
19
|
+
import { InputField as M } from "./components/InputField/InputField.js";
|
|
20
|
+
import "react-router-dom";
|
|
21
|
+
import { s as F, M as ee } from "./MultiSelectItem-D9PxdX43.js";
|
|
22
|
+
import { v as te } from "./helpers-Ec7CfNnA.js";
|
|
23
|
+
import { Checkbox as oe } from "./components/Checkbox/Checkbox.js";
|
|
24
|
+
import { FeedbackBox as re } from "./components/FeedbackBox/FeedbackBox.js";
|
|
25
|
+
import "./components/RteEditor/hooks/components/Flyout.js";
|
|
26
|
+
import { useFlyout as le } from "./components/RteEditor/hooks/useFlyout.js";
|
|
27
|
+
import { Icon as ne } from "./components/Icon/Icon.js";
|
|
28
|
+
import { s as R } from "./RteEditor.module-Dz9a8vaK.js";
|
|
29
|
+
import "./components/RteEditor/Providers/LanguageProvider.js";
|
|
30
|
+
import "./components/SelectListbox/SelectListbox.js";
|
|
31
|
+
import "./components/SelectListbox/SelectProvider.js";
|
|
32
|
+
import "./components/Sortable/components/SortableItem.js";
|
|
33
|
+
import "./SortableProvider-i4PDjRS_.js";
|
|
34
|
+
import { useTranslation as A } from "./components/RteEditor/hooks/useTranslation.js";
|
|
35
|
+
import './assets/TablePlugin.css';function se({ label: p, clearTrigger: d, onClear: s }) {
|
|
36
|
+
return /* @__PURE__ */ m("header", { className: F["multi-select__header"], children: [
|
|
37
|
+
/* @__PURE__ */ e(w, { htmlFor: "multi-select-list", children: p }),
|
|
38
|
+
d && /* @__PURE__ */ e(C, { variant: "blank", onClick: s, children: d })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
const D = ({ scrollable: p = !0, noBorder: d, header: s, children: l }) => /* @__PURE__ */ m($, { children: [
|
|
42
|
+
s,
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: L(F["multi-select"], {
|
|
47
|
+
[F["multi-select--no-border"]]: d
|
|
48
|
+
}),
|
|
49
|
+
children: /* @__PURE__ */ e(
|
|
50
|
+
"ul",
|
|
51
|
+
{
|
|
52
|
+
className: L(F["multi-select__list"], {
|
|
53
|
+
[F["multi-select__list--scrollable"]]: p
|
|
54
|
+
}),
|
|
55
|
+
id: "multi-select-list",
|
|
56
|
+
children: l
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] });
|
|
62
|
+
D.MultiSelectHeader = se;
|
|
63
|
+
D.MultiSelectItem = ee;
|
|
64
|
+
const ie = "_linkform_1u5p2_1", ae = "_linkform__footer_1u5p2_12", E = {
|
|
65
|
+
linkform: ie,
|
|
66
|
+
"linkform__input-field": "_linkform__input-field_1u5p2_5",
|
|
67
|
+
linkform__footer: ae
|
|
68
|
+
}, Ye = O(
|
|
69
|
+
({
|
|
70
|
+
onCloseHandler: p,
|
|
71
|
+
onSaveHandler: d,
|
|
72
|
+
onRemoveHandler: s,
|
|
73
|
+
isLink: l = { active: !1, url: "", target: "_self" }
|
|
74
|
+
}, _) => {
|
|
75
|
+
const n = A(), [i, u] = g(l.target === "_blank"), [a, f] = g(l.url), [v, b] = g(null), h = N(null), t = (c) => {
|
|
76
|
+
f(c.target.value);
|
|
77
|
+
}, r = () => {
|
|
78
|
+
u((c) => !c);
|
|
79
|
+
}, k = (c) => !c && c.trim() === "" || te(c) === !1 ? (b(n.errortext.urlNotValid), !1) : (b(null), !0), o = () => {
|
|
80
|
+
k(a) && (d(a, i ? "_blank" : "_self"), y());
|
|
81
|
+
}, T = () => {
|
|
82
|
+
p(), y();
|
|
83
|
+
}, y = () => {
|
|
84
|
+
f(""), b(null);
|
|
85
|
+
}, H = () => {
|
|
86
|
+
s && (s(), y());
|
|
87
|
+
}, q = (c, V) => {
|
|
88
|
+
f(c), u(V);
|
|
89
|
+
}, B = () => {
|
|
90
|
+
h.current && h.current.focus();
|
|
91
|
+
};
|
|
92
|
+
return P(_, () => ({
|
|
93
|
+
clearForm: y,
|
|
94
|
+
focusFirstField: B,
|
|
95
|
+
setDefaults: q
|
|
96
|
+
})), /* @__PURE__ */ m("div", { className: E.linkform, children: [
|
|
97
|
+
/* @__PURE__ */ m(S, { className: E["linkform__input-field"], children: [
|
|
98
|
+
/* @__PURE__ */ e(w, { htmlFor: "linkUrl", children: n.links.linkLabel }),
|
|
99
|
+
/* @__PURE__ */ e(
|
|
100
|
+
M,
|
|
101
|
+
{
|
|
102
|
+
id: "linkUrl",
|
|
103
|
+
placeholder: "http(s)://",
|
|
104
|
+
value: a || "",
|
|
105
|
+
onChange: (c) => t(c),
|
|
106
|
+
onFocus: () => b(null),
|
|
107
|
+
ref: h
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
v && /* @__PURE__ */ e(re, { level: "error", feedback: v })
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ m(S, { inline: !0, children: [
|
|
113
|
+
/* @__PURE__ */ e(oe, { id: "linkTarget", onChange: r, checked: i }),
|
|
114
|
+
/* @__PURE__ */ e(w, { htmlFor: "linkTarget", children: n.links.linkTarget })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ m("div", { className: E.linkform__footer, children: [
|
|
117
|
+
/* @__PURE__ */ e(C, { variant: "secondary", onClick: T, children: n.common.cancel }),
|
|
118
|
+
a && /* @__PURE__ */ e(C, { variant: "secondary", onClick: H, children: n.links.deleteLink }),
|
|
119
|
+
/* @__PURE__ */ e(C, { variant: "primary", onClick: o, children: a ? n.links.changeLink : n.links.addLink })
|
|
120
|
+
] })
|
|
121
|
+
] });
|
|
122
|
+
}
|
|
123
|
+
), ce = "_tableform_t5fpq_1", me = "_tableform__footer_t5fpq_12", I = {
|
|
124
|
+
tableform: ce,
|
|
125
|
+
"tableform__input-field": "_tableform__input-field_t5fpq_5",
|
|
126
|
+
tableform__footer: me
|
|
127
|
+
}, de = O(({ onCloseHandler: p, onSaveHandler: d }, s) => {
|
|
128
|
+
const l = A(), [_, n] = g(), [i, u] = g(), a = N(null), f = (t, r) => {
|
|
129
|
+
const k = t.target.value;
|
|
130
|
+
r === "row" ? n(parseInt(k)) : u(parseInt(k));
|
|
131
|
+
}, v = () => {
|
|
132
|
+
_ !== void 0 && i !== void 0 && (d(_, i), h());
|
|
133
|
+
}, b = () => {
|
|
134
|
+
p(), h();
|
|
135
|
+
}, h = () => {
|
|
136
|
+
n(void 0), u(void 0);
|
|
137
|
+
};
|
|
138
|
+
return P(s, () => ({
|
|
139
|
+
clearForm: h,
|
|
140
|
+
focusFirstField: () => {
|
|
141
|
+
var t;
|
|
142
|
+
return (t = a.current) == null ? void 0 : t.focus();
|
|
143
|
+
}
|
|
144
|
+
})), /* @__PURE__ */ m("div", { className: I.tableform, children: [
|
|
145
|
+
/* @__PURE__ */ m(S, { className: I["tableform__input-field"], children: [
|
|
146
|
+
/* @__PURE__ */ e(w, { htmlFor: "nrOfRows", children: l.table.nrofRows }),
|
|
147
|
+
/* @__PURE__ */ e(
|
|
148
|
+
M,
|
|
149
|
+
{
|
|
150
|
+
id: "nrOfRows",
|
|
151
|
+
placeholder: l.table.nrofRowsPlaceholder,
|
|
152
|
+
value: _ || "",
|
|
153
|
+
onChange: (t) => f(t, "row"),
|
|
154
|
+
ref: a
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
] }),
|
|
158
|
+
/* @__PURE__ */ m(S, { className: I["tableform__input-field"], children: [
|
|
159
|
+
/* @__PURE__ */ e(w, { htmlFor: "nrOfColumns", children: l.table.nrofColumns }),
|
|
160
|
+
/* @__PURE__ */ e(
|
|
161
|
+
M,
|
|
162
|
+
{
|
|
163
|
+
id: "nrOfColumns",
|
|
164
|
+
placeholder: l.table.nrofColumnsPlaceholder,
|
|
165
|
+
value: i || "",
|
|
166
|
+
onChange: (t) => f(t, "column")
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
] }),
|
|
170
|
+
/* @__PURE__ */ m("div", { className: I.tableform__footer, children: [
|
|
171
|
+
/* @__PURE__ */ e(C, { variant: "secondary", onClick: b, children: l.common.cancel }),
|
|
172
|
+
/* @__PURE__ */ e(C, { variant: "primary", onClick: v, disabled: !_ || !i, children: l.common.add })
|
|
173
|
+
] })
|
|
174
|
+
] });
|
|
175
|
+
}), ue = 200, Ge = O(({ isActive: p }, d) => {
|
|
176
|
+
const [s] = j(), { flyout: l, showFlyout: _, closeFlyout: n, isVisible: i } = le(), u = N(), a = N(null), f = N(!1), v = (t, r) => {
|
|
177
|
+
s.update(() => {
|
|
178
|
+
const k = U(), o = Q(t, r);
|
|
179
|
+
x(k) ? k.insertNodes([o]) : X().append(o);
|
|
180
|
+
const T = o.getFirstDescendant();
|
|
181
|
+
T && T.select();
|
|
182
|
+
}), n();
|
|
183
|
+
}, b = (t) => {
|
|
184
|
+
s.update(() => {
|
|
185
|
+
const r = U();
|
|
186
|
+
if (x(r)) {
|
|
187
|
+
let o = r.anchor.getNode();
|
|
188
|
+
for (; o !== null; ) {
|
|
189
|
+
if (x(r) && z(o))
|
|
190
|
+
switch (t) {
|
|
191
|
+
case "insertRowAbove":
|
|
192
|
+
case "insertRowBelow":
|
|
193
|
+
K(o, t);
|
|
194
|
+
break;
|
|
195
|
+
case "deleteRow":
|
|
196
|
+
J(o);
|
|
197
|
+
break;
|
|
198
|
+
case "insertColumnLeft":
|
|
199
|
+
case "insertColumnRight":
|
|
200
|
+
G(o, t);
|
|
201
|
+
break;
|
|
202
|
+
case "deleteColumn":
|
|
203
|
+
Y(o);
|
|
204
|
+
break;
|
|
205
|
+
case "deleteTable":
|
|
206
|
+
W(o);
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
o = o.getParent();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}, h = {
|
|
214
|
+
children: /* @__PURE__ */ e(
|
|
215
|
+
de,
|
|
216
|
+
{
|
|
217
|
+
onCloseHandler: n,
|
|
218
|
+
onSaveHandler: (t, r) => v(t, r),
|
|
219
|
+
ref: u
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
};
|
|
223
|
+
return Z(() => {
|
|
224
|
+
var t, r;
|
|
225
|
+
i ? (f.current = !0, (r = u.current) == null || r.focusFirstField()) : ((t = u.current) == null || t.clearForm(), setTimeout(() => f.current = !1, ue));
|
|
226
|
+
}, [u, i]), P(d, () => ({
|
|
227
|
+
mutateTable: b
|
|
228
|
+
})), /* @__PURE__ */ e("div", { className: R["editor__toolbar-button-group"], children: /* @__PURE__ */ m("div", { className: R["editor__toolbar-button-flyoutwrapper"], children: [
|
|
229
|
+
/* @__PURE__ */ e(
|
|
230
|
+
"button",
|
|
231
|
+
{
|
|
232
|
+
onClick: () => !f.current && _(h),
|
|
233
|
+
className: L(R["editor__toolbar-button"], p && R["editor__toolbar-button--active"]),
|
|
234
|
+
"aria-label": "Table",
|
|
235
|
+
ref: a,
|
|
236
|
+
children: /* @__PURE__ */ e(ne, { name: "Table", size: 24 })
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
l
|
|
240
|
+
] }) });
|
|
241
|
+
});
|
|
242
|
+
export {
|
|
243
|
+
Ye as A,
|
|
244
|
+
D as M,
|
|
245
|
+
Ge as T,
|
|
246
|
+
se as a,
|
|
247
|
+
de as b
|
|
248
|
+
};
|
|
249
|
+
//# sourceMappingURL=TablePlugin-1L5UZfDH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TablePlugin-1L5UZfDH.js","sources":["../src/components/MultiSelect/components/MultiSelectHeader.tsx","../src/components/MultiSelect/MultiSelect.tsx","../src/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.tsx","../src/components/RteEditor/Plugins/TablePlugin/AddTableFrom.tsx","../src/components/RteEditor/Plugins/TablePlugin/TablePlugin.tsx"],"sourcesContent":["import styles from 'components/MultiSelect/MultiSelect.module.css';\nimport { Label } from 'components/Label';\nimport { Button } from 'components';\n\nexport interface MultiSelectHeaderProps {\n label: string;\n clearTrigger?: string;\n onClear?: () => void;\n}\n\nexport function MultiSelectHeader({ label, clearTrigger, onClear }: MultiSelectHeaderProps) {\n return (\n <header className={styles['multi-select__header']}>\n <Label htmlFor=\"multi-select-list\">{label}</Label>\n {clearTrigger && (\n <Button variant={'blank'} onClick={onClear}>\n {clearTrigger}\n </Button>\n )}\n </header>\n );\n}\n","import clsx from 'clsx';\n\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './MultiSelect.module.css';\n\nimport { MultiSelectItem } from 'components/MultiSelect/components/MultiSelectItem';\nimport { MultiSelectHeader } from 'components/MultiSelect/components/MultiSelectHeader';\n\nexport interface MultiSelectProps {\n /** `true` if the container should scroll on overflow; otherwise, `false` to resize the container to its contents. The default is `true`. */\n scrollable?: boolean;\n /** `true` to disable the border around the container; otherwise, `false`. The default is `false`. */\n noBorder?: boolean;\n /** The header contents. */\n header?: ReactNode;\n}\n\n/** Represents a component to list a number of checkboxes. */\nexport const MultiSelect = ({ scrollable = true, noBorder, header, children }: PropsWithChildren<MultiSelectProps>) => (\n <>\n {header}\n <div\n className={clsx(styles['multi-select'], {\n [styles['multi-select--no-border']]: noBorder,\n })}\n >\n <ul\n className={clsx(styles['multi-select__list'], {\n [styles['multi-select__list--scrollable']]: scrollable,\n })}\n id=\"multi-select-list\"\n >\n {children}\n </ul>\n </div>\n </>\n);\n\nMultiSelect.MultiSelectHeader = MultiSelectHeader;\nMultiSelect.MultiSelectItem = MultiSelectItem;\n","import { useState, forwardRef, useImperativeHandle, useRef } from 'react';\n\nimport type { ChangeEvent } from 'react';\nimport type { LinkType } from 'components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin';\n\nimport { validateUrlWithProtocol } from './helpers';\nimport styles from './AddLinkForm.module.css';\n\nimport { Button, Checkbox, FeedbackBox, FormField, InputField, Label } from 'components';\nimport { useTranslation } from 'components/RteEditor/hooks/useTranslation';\n\ninterface AddLinkFormProps {\n onCloseHandler: () => void;\n onSaveHandler: (url: string, target: string) => void;\n onRemoveHandler?: () => void;\n isLink: LinkType;\n}\n\nexport interface addLinkFormMethods {\n clearForm: () => void;\n focusFirstField: () => void;\n setDefaults: (url: string, target: boolean) => void;\n}\n\nexport const AddLinkForm = forwardRef(\n (\n {\n onCloseHandler,\n onSaveHandler,\n onRemoveHandler,\n isLink = { active: false, url: '', target: '_self' },\n }: AddLinkFormProps,\n ref\n ): JSX.Element => {\n const t = useTranslation();\n const [target, setTarget] = useState<boolean>(isLink.target === '_blank');\n const [url, setUrl] = useState<string>(isLink.url);\n const [urlError, setUrlError] = useState<string | null>(null);\n const firstField = useRef<HTMLInputElement>(null);\n\n const handleUrl = (event: ChangeEvent<HTMLInputElement>) => {\n setUrl(event.target.value);\n };\n\n const handleTargetChange = () => {\n setTarget((prev) => !prev);\n };\n\n const validateUrl = (url: string): boolean => {\n if ((!url && url.trim() === '') || validateUrlWithProtocol(url) === false) {\n setUrlError(t.errortext.urlNotValid);\n return false;\n }\n setUrlError(null);\n return true;\n };\n\n const handleSave = () => {\n if (!validateUrl(url)) {\n return;\n }\n onSaveHandler(url, target ? '_blank' : '_self');\n resetForm();\n };\n\n const handleClose = () => {\n onCloseHandler();\n resetForm();\n };\n\n const resetForm = () => {\n setUrl('');\n setUrlError(null);\n };\n\n const handleRemoveHandler = () => {\n if (onRemoveHandler) {\n onRemoveHandler();\n resetForm();\n }\n };\n\n const setDefaults = (url: string, target: boolean) => {\n setUrl(url);\n setTarget(target);\n };\n\n const focusFirstField = () => {\n if (firstField.current) {\n firstField.current.focus();\n }\n };\n\n useImperativeHandle(ref, () => ({\n clearForm: resetForm,\n focusFirstField,\n setDefaults,\n }));\n\n return (\n <div className={styles['linkform']}>\n <FormField className={styles['linkform__input-field']}>\n <Label htmlFor=\"linkUrl\">{t.links.linkLabel}</Label>\n <InputField\n id=\"linkUrl\"\n placeholder=\"http(s)://\"\n value={url ? url : ''}\n onChange={(event) => handleUrl(event)}\n onFocus={() => setUrlError(null)}\n ref={firstField}\n />\n {urlError && <FeedbackBox level=\"error\" feedback={urlError} />}\n </FormField>\n <FormField inline>\n <Checkbox id=\"linkTarget\" onChange={handleTargetChange} checked={target} />\n <Label htmlFor=\"linkTarget\">{t.links.linkTarget}</Label>\n </FormField>\n <div className={styles['linkform__footer']}>\n <Button variant={'secondary'} onClick={handleClose}>\n {t.common.cancel}\n </Button>\n {url && (\n <Button variant={'secondary'} onClick={handleRemoveHandler}>\n {t.links.deleteLink}\n </Button>\n )}\n <Button variant={'primary'} onClick={handleSave}>\n {url ? t.links.changeLink : t.links.addLink}\n </Button>\n </div>\n </div>\n );\n }\n);\n","import { useState, forwardRef, useImperativeHandle, useRef } from 'react';\n\nimport type { ChangeEvent } from 'react';\n\nimport styles from './AddTableFrom.module.css';\n\nimport { Button, FormField, InputField, Label } from 'components';\nimport { useTranslation } from 'components/RteEditor/hooks/useTranslation';\n\ninterface AddTableFormProps {\n onCloseHandler: () => void;\n onSaveHandler: (nrfOfRows: number, nrOfColumns: number) => void;\n}\n\nexport interface addTableForm {\n clearForm: () => void;\n focusFirstField: () => void;\n}\n\nexport const AddTableForm = forwardRef(({ onCloseHandler, onSaveHandler }: AddTableFormProps, ref) => {\n const t = useTranslation();\n const [rowCount, setRowCount] = useState<number>();\n const [columnCount, setColumnCount] = useState<number>();\n const firstField = useRef<HTMLInputElement>(null);\n\n const handleDimentionChange = (event: ChangeEvent<HTMLInputElement>, type: string) => {\n const value = event.target.value;\n type === 'row' ? setRowCount(parseInt(value)) : setColumnCount(parseInt(value));\n };\n\n const handleSave = () => {\n if (rowCount !== undefined && columnCount !== undefined) {\n onSaveHandler(rowCount, columnCount);\n resetForm();\n }\n };\n\n const handleClose = () => {\n onCloseHandler();\n resetForm();\n };\n\n const resetForm = () => {\n setRowCount(undefined);\n setColumnCount(undefined);\n };\n\n useImperativeHandle(ref, () => ({\n clearForm: resetForm,\n focusFirstField: () => firstField.current?.focus(),\n }));\n\n return (\n <div className={styles['tableform']}>\n <FormField className={styles['tableform__input-field']}>\n <Label htmlFor=\"nrOfRows\">{t.table.nrofRows}</Label>\n <InputField\n id=\"nrOfRows\"\n placeholder={t.table.nrofRowsPlaceholder}\n value={rowCount ? rowCount : ''}\n onChange={(event) => handleDimentionChange(event, 'row')}\n ref={firstField}\n />\n </FormField>\n <FormField className={styles['tableform__input-field']}>\n <Label htmlFor=\"nrOfColumns\">{t.table.nrofColumns}</Label>\n <InputField\n id=\"nrOfColumns\"\n placeholder={t.table.nrofColumnsPlaceholder}\n value={columnCount ? columnCount : ''}\n onChange={(event) => handleDimentionChange(event, 'column')}\n />\n </FormField>\n <div className={styles['tableform__footer']}>\n <Button variant={'secondary'} onClick={handleClose}>\n {t.common.cancel}\n </Button>\n <Button variant={'primary'} onClick={handleSave} disabled={!rowCount || !columnCount}>\n {t.common.add}\n </Button>\n </div>\n </div>\n );\n});\n","import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';\nimport clsx from 'clsx';\nimport { $isTableCellNode } from '@lexical/table';\nimport { $getSelection, $isRangeSelection, $getRoot } from 'lexical';\nimport { useRef, useEffect, useImperativeHandle, forwardRef } from 'react';\n\nimport type { TextNode, ElementNode } from 'lexical';\nimport type { addTableForm } from './AddTableFrom';\nimport type { Actions } from './TableCellContextMenu';\n\nimport { AddTableForm } from './AddTableFrom';\nimport { createTable, deleteColumn, deleteRow, deleteTable, insertColumn, insertRow } from './helpers';\n\nimport { useFlyout } from 'components/RteEditor/hooks/useFlyout';\nimport { Icon } from 'components';\nimport styles from 'components/RteEditor/RteEditor.module.css';\n\nconst PREVENT_OPEN_DELAY = 200;\n\ninterface TablePluginProps {\n isActive: boolean;\n}\n\nexport interface TableMutation {\n mutateTable: (type: Actions) => void;\n}\n\nexport const TablePlugin = forwardRef(({ isActive }: TablePluginProps, ref): JSX.Element => {\n const [editor] = useLexicalComposerContext();\n const { flyout, showFlyout, closeFlyout, isVisible } = useFlyout();\n const addTableForm = useRef<addTableForm>();\n const buttonRef = useRef<HTMLButtonElement>(null);\n const preventOpen = useRef(false);\n\n const insertTable = (nrOfRows: number, nrOfColumns: number) => {\n editor.update(() => {\n const selection = $getSelection();\n const tableNode = createTable(nrOfRows, nrOfColumns);\n if ($isRangeSelection(selection)) {\n selection.insertNodes([tableNode]);\n } else {\n $getRoot().append(tableNode);\n }\n const firstDescendant = tableNode.getFirstDescendant();\n if (firstDescendant) {\n (firstDescendant as TextNode).select();\n }\n });\n\n closeFlyout();\n };\n\n const mutateTable = (action: Actions) => {\n editor.update(() => {\n const selection = $getSelection();\n if ($isRangeSelection(selection)) {\n const anchorNode = selection.anchor.getNode();\n let currentNode: TextNode | ElementNode | null = anchorNode;\n\n while (currentNode !== null) {\n if ($isRangeSelection(selection)) {\n if ($isTableCellNode(currentNode)) {\n switch (action) {\n case 'insertRowAbove':\n case 'insertRowBelow':\n insertRow(currentNode, action);\n break;\n case 'deleteRow':\n deleteRow(currentNode);\n break;\n case 'insertColumnLeft':\n case 'insertColumnRight':\n insertColumn(currentNode, action);\n break;\n case 'deleteColumn':\n deleteColumn(currentNode);\n break;\n case 'deleteTable':\n deleteTable(currentNode);\n break;\n }\n }\n }\n currentNode = currentNode.getParent();\n }\n }\n });\n };\n\n const flyoutOptions = {\n children: (\n <AddTableForm\n onCloseHandler={closeFlyout}\n onSaveHandler={(rows, columns) => insertTable(rows, columns)}\n ref={addTableForm}\n />\n ),\n };\n\n useEffect(() => {\n if (!isVisible) {\n addTableForm.current?.clearForm();\n setTimeout(() => (preventOpen.current = false), PREVENT_OPEN_DELAY);\n } else {\n preventOpen.current = true;\n addTableForm.current?.focusFirstField();\n }\n }, [addTableForm, isVisible]);\n\n useImperativeHandle(ref, () => ({\n mutateTable,\n }));\n\n return (\n <div className={styles['editor__toolbar-button-group']}>\n <div className={styles['editor__toolbar-button-flyoutwrapper']}>\n <button\n onClick={() => !preventOpen.current && showFlyout(flyoutOptions)}\n className={clsx(styles['editor__toolbar-button'], isActive && styles[`editor__toolbar-button--active`])}\n aria-label={`Table`}\n ref={buttonRef}\n >\n <Icon name=\"Table\" size={24} />\n </button>\n {flyout}\n </div>\n </div>\n );\n});\n"],"names":["MultiSelectHeader","label","clearTrigger","onClear","jsxs","styles","jsx","Label","Button","MultiSelect","scrollable","noBorder","header","children","Fragment","clsx","MultiSelectItem","AddLinkForm","forwardRef","onCloseHandler","onSaveHandler","onRemoveHandler","isLink","ref","t","useTranslation","target","setTarget","useState","url","setUrl","urlError","setUrlError","firstField","useRef","handleUrl","event","handleTargetChange","prev","validateUrl","validateUrlWithProtocol","handleSave","resetForm","handleClose","handleRemoveHandler","setDefaults","focusFirstField","useImperativeHandle","FormField","InputField","FeedbackBox","Checkbox","AddTableForm","rowCount","setRowCount","columnCount","setColumnCount","handleDimentionChange","type","value","_a","PREVENT_OPEN_DELAY","TablePlugin","isActive","editor","useLexicalComposerContext","flyout","showFlyout","closeFlyout","isVisible","useFlyout","addTableForm","buttonRef","preventOpen","insertTable","nrOfRows","nrOfColumns","selection","$getSelection","tableNode","createTable","$isRangeSelection","$getRoot","firstDescendant","mutateTable","action","currentNode","$isTableCellNode","insertRow","deleteRow","insertColumn","deleteColumn","deleteTable","flyoutOptions","rows","columns","useEffect","_b","Icon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,SAASA,G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,MAAM,IAAI;AAAA,MAAA;AAAA,IAC/B;AAAA,IACChC;AAAA,EAAA,EACH,CAAA,EACF,CAAA;AAEJ,CAAC;"}
|
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_wigjh_1{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:1px solid transparent;border-radius:.5rem;cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--font-size-default);gap:.5rem;height:2.75rem;justify-content:center;line-height:inherit;margin:0;padding:.75rem 1rem;transition:var(--transition-colors);white-space:nowrap}._button_wigjh_1[href]{text-decoration:none}._button_wigjh_1:focus-visible{outline:.125rem dotted var(--color-cobalt);outline-offset:.125rem}._button_wigjh_1:hover{background-color:var(--color-lavender);outline:0}._button--blank_wigjh_35,._button--blank-subtle_wigjh_36,._button--blank-icon_wigjh_37{border:0;border-radius:0;gap:0;height:auto;padding:0;text-decoration:underline;vertical-align:middle}._button--blank_wigjh_35,._button--blank-icon_wigjh_37{color:var(--color-uva-black)}._button--blank-subtle_wigjh_36{color:var(--color-grey-500)}._button--blank-icon_wigjh_37{border:1px solid transparent;border-radius:.5rem;height:2.5rem;width:2.5rem}._button--blank_wigjh_35:focus,._button--blank_wigjh_35:not([disabled]):hover{background:none;text-decoration:underline}._button--blank-subtle_wigjh_36:focus,._button--blank-subtle_wigjh_36:not([disabled]):hover{background:none;color:var(--color-uva-black);text-decoration:underline}._button--blank-icon_wigjh_37:focus,._button--blank-icon_wigjh_37:not([disabled]):hover{background-color:var(--color-grey-100);border-color:var(--color-grey-400)}._button--primary_wigjh_82{background-color:var(--color-black);border-color:var(--color-black);color:var(--color-white)}._button--primary_wigjh_82:hover{background-color:var(--color-scarpa-flow);border-color:var(--color-scarpa-flow)}._button--primary_wigjh_82[disabled]{background-color:var(--color-black);color:var(--color-white)}._button--secondary_wigjh_98{background-color:transparent;border-color:var(--color-black);color:var(--color-black)}._button--secondary_wigjh_98:hover{background-color:var(--color-black);color:var(--color-white)}._button--secondary_wigjh_98[disabled]{background-color:transparent;color:var(--color-black)}._button--destructive-primary_wigjh_114{background-color:var(--color-uva-red);border-color:var(--color-uva-red);color:var(--color-white)}._button--destructive-primary_wigjh_114:hover{background-color:var(--color-uva-red-dark);border-color:var(--color-uva-red-dark);color:var(--color-white)}._button--destructive-primary_wigjh_114[disabled]{background-color:var(--color-uva-red);border-color:var(--color-uva-red);color:var(--color-white)}._button--destructive-secondary_wigjh_132{background-color:var(--color-white);border-color:var(--color-uva-red);color:var(--color-uva-red)}._button--destructive-secondary_wigjh_132:hover{background-color:var(--color-uva-red);border-color:var(--color-uva-red);color:var(--color-white)}._button--destructive-secondary_wigjh_132[disabled]{background-color:var(--color-white);border-color:var(--color-uva-red);color:var(--color-uva-red)}._button--wide-column_wigjh_150{display:flex;flex-direction:column;font-size:var(--font-size-text-non-essential);gap:.25rem;height:unset;padding:.5rem .25rem;width:100%}._button_wigjh_1[disabled]{cursor:unset;opacity:.4;text-decoration:none;transition-delay:.25s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_17w82_1{background-color:var(--color-white);border:2px dotted var(--color-black);overflow:auto}._container--padded_17w82_7{padding:1rem}._container--small_17w82_11{height:10rem;width:10rem}._container--medium_17w82_16{height:30rem;width:30rem}._container--large_17w82_21{height:50rem;width:50rem}._container--large-full-height_17w82_26{width:50rem}._container--hidden_17w82_30{display:none}._container--centered-content_17w82_34{align-items:center;display:flex;justify-content:center}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._editor-header__container_1kv3n_1{align-items:flex-start;display:flex;flex:1;flex-direction:column;justify-content:flex-start;-webkit-user-select:none;user-select:none}._editor-header__info-icon_1kv3n_10{color:var(--color-grey-500);cursor:pointer;margin-left:.25rem;margin-top:-.2rem;vertical-align:middle}._editor-header__info_1kv3n_10{color:var(--color-grey-500);display:none;font-size:14px;max-width:calc(100% - 5rem)}._editor-header__info--visible_1kv3n_25{display:block}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._flyout__wrapper_1l8xp_1{background-color:var(--color-white);border-radius:.25rem;box-shadow:0 3px 6px #0006;display:none;flex-direction:column;left:0;padding:1rem;position:absolute;top:calc(100% + .25rem);z-index:1500}._flyout__open_1l8xp_14{display:flex}._flyout__header_1l8xp_18{display:flex;justify-content:flex-end;margin-bottom:.5rem;width:100%}
|
package/dist/assets/Periods.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._period__container_1ilj5_1{display:flex;flex-wrap:nowrap}._period__item_1ilj5_6{background-color:var(--color-grey-200);border:1px solid var(--color-grey-300);display:inline-block;height:.75rem;margin-right:.125rem;width:.5rem}._period__item_1ilj5_6:nth-child(3n){margin-right:.5rem}._period__item--active_1ilj5_19{background-color:var(--color-grey-500);border:unset}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._editor__container_1hthm_1{background-color:var(--color-white);display:flex;flex-direction:column}._editor__header_1hthm_7{align-items:center;display:flex;justify-content:space-between;margin-bottom:.5rem;min-height:1.5rem}._editor__header-word-count_1hthm_15{align-self:flex-end;display:flex;font-size:.875rem;margin-left:.5rem;visibility:hidden;white-space:nowrap}._editor__header-word-count--alert_1hthm_24{color:var(--color-red-500)}._editor__container_1hthm_1:has(._editor__field_1hthm_28:focus-visible) ._editor__header-word-count_1hthm_15{visibility:visible}._editor_1hthm_1{border:1px solid var(--color-grey-400);border-radius:4px;padding:.25rem}._editor_1hthm_1:has(._editor__field_1hthm_28:focus-visible){outline:1px solid var(--color-blue-500)}._editor__toolbar_1hthm_42{align-items:center;display:flex;gap:.25rem;justify-content:flex-start;margin-bottom:.25rem;padding:.25rem}._editor__toolbar-button-group_1hthm_51{align-items:center;display:flex;gap:.125rem;justify-content:center}._editor__toolbar-button_1hthm_51{align-items:center;background-color:var(--color-white);border:none;border-radius:.25rem;cursor:pointer;display:flex;font-size:1.1rem;height:2rem;justify-content:center;width:2rem}._editor__toolbar-button_1hthm_51:hover{background-color:var(--color-grey-200);border:1px solid var(--color-grey-500)}._editor__toolbar-button_1hthm_51:focus-visible{outline:.125rem dotted var(--color-cobalt);outline-offset:.125rem;z-index:1}._editor__toolbar-button_1hthm_51:disabled{border-color:var(--color-grey-100);color:var(--color-grey-200);cursor:not-allowed}._editor__toolbar-button_1hthm_51:hover:disabled{background-color:var(--color-grey-100);border-color:var(--color-grey-100);color:var(--color-grey-300);cursor:not-allowed}._editor__toolbar-button--bold_1hthm_95{font-weight:700}._editor__toolbar-button--italic_1hthm_99{font-style:italic}._editor__toolbar-button--active_1hthm_103{background-color:var(--color-black);border-color:var(--color-black);color:var(--color-white)}._editor__toolbar-button--active_1hthm_103:hover{color:var(--color-black)}._editor__toolbar-button-flyoutwrapper_1hthm_113,._editor__field-wrapper_1hthm_117{position:relative}._editor__field-wrapper_1hthm_117:before{border-top:1px solid var(--color-grey-400);content:"";display:block;height:0;left:-.25rem;position:absolute;top:0;width:calc(100% + .5rem);z-index:1}._editor__field_1hthm_28{background-color:var(--color-white);min-height:8rem;padding:.5rem;position:relative}._editor__field_1hthm_28:focus-visible{outline:none}._editor__placeholder_1hthm_144{color:var(--color-grey-300);left:0;padding:.25rem;pointer-events:none;position:absolute;top:.25rem}._editor__error_1hthm_153{align-items:center;color:var(--color-red-500);display:flex;font-size:var(--font-size-small);gap:.5rem;line-height:normal;margin-top:.5rem}._editor__field_1hthm_28 p{margin:0}._editor__text--bold_1hthm_168{font-weight:700}._editor__text--italic_1hthm_172{font-style:italic}._editor__list--ul_1hthm_176,._editor__list--ol_1hthm_177{margin:0;padding:0}._editor__list--ul_1hthm_176>._editor__listitem_1hthm_182{list-style-type:disc;margin-left:1rem}._editor__list--ol_1hthm_177>._editor__listitem_1hthm_182{list-style-type:decimal;margin-left:1rem}._editor__link_1hthm_192{color:var(--color-blue-500);cursor:pointer;text-decoration:underline}._editor__table_1hthm_198{border:1px solid var(--color-grey-300);border-collapse:collapse;margin:.5rem 0;width:100%}._editor__table_1hthm_198 tr{width:100%}._editor__table_1hthm_198 td{border:1px solid var(--color-grey-300);padding:.125rem .25rem;vertical-align:top;width:auto}
|
package/dist/assets/Sortable.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._sortable__wrapper_td575_1{position:relative}._sortable__wrapper--scrollable_td575_5{border-bottom:1px solid var(--color-pattens-blue);border-top:1px solid var(--color-pattens-blue);margin-bottom:1rem;max-height:21rem;overflow-y:auto}._sortable__container_td575_13{--item-min-height: 3.75rem;counter-reset:container;display:flex;flex-direction:column;gap:1rem;list-style:none;margin:1rem 1rem 1rem 0;padding:0}._sortable__drop-target_td575_25{display:flex;gap:1rem;min-height:var(--item-min-height);position:relative}._sortable__drop-target_td575_25:before{align-items:center;content:counter(container);counter-increment:container;display:flex;opacity:1;position:relative;transition:opacity .25s}._sortable__drop-target_td575_25:after{content:"";display:block;height:1px;left:0;position:absolute;width:100%;z-index:1}._sortable__drop-target_td575_25:last-child:after{display:inline}._sortable__sort-item_td575_56{align-items:center;background-color:var(--color-grey-50);border-radius:.5rem;display:flex;gap:1rem;min-height:var(--item-min-height);position:relative;width:100%;z-index:0}._sortable__sort-item_td575_56:focus{z-index:2}._sortable__sort-item--ghost_td575_72{margin:0 1rem;opacity:.5;padding:.5rem 0;pointer-events:none;position:fixed;-webkit-user-drag:none;visibility:hidden;z-index:2}._sortable__container--drag-over_td575_83 ._sortable__drop-target_td575_25:before,._sortable__sort-item--ghost_td575_72:before{opacity:0}._sortable__sort-item__handle_td575_88{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;background-color:var(--color-white);border:0;cursor:grab;height:2.625rem;width:2.625rem}._sortable__sort-item__button-container_td575_98{align-items:center;background-color:var(--color-pattens-blue);border-left:1px solid var(--color-pattens-blue);border-radius:0 .5rem .5rem 0;display:flex;flex-direction:column;inset:0 0 0 auto;margin-right:1px;overflow:hidden;position:absolute;width:2.625rem;z-index:20}._sortable__sort-item__button-container_td575_98[data-touch=false]{display:none}._sortable__sort-item__handle--icon_td575_117{align-items:center;display:flex;height:1rem;width:1rem}._sortable__sort-item__handle--up_td575_124,._sortable__sort-item__handle--down_td575_125{color:#000;display:none;height:100%;right:.5rem}._sortable__sort-item__handle--up_td575_124{transform:rotate(180deg)}._sortable__sort-item--dragging_td575_136 ._sortable__sort-item__handle_td575_88{cursor:grabbing}._sortable__sort-item__contents_td575_140{align-items:center;color:var(--color-uva-black);display:flex;gap:.5rem;padding:.5rem;width:100%}._sortable__sort-item__contents--handle-right_td575_149{padding-left:1rem;padding-right:2.5rem}._sortable__handle_td575_154{color:var(--color-grey-500);cursor:grab;display:flex}._sortable__handle--right_td575_160{position:absolute;right:.5rem}._sortable__sort-item__button-container_td575_98[data-touch=true]{gap:1px;justify-content:center}._sortable__sort-item__button-container_td575_98[data-touch=true] ._sortable__sort-item__handle--up_td575_124,._sortable__sort-item__button-container_td575_98[data-touch=true] ._sortable__sort-item__handle--down_td575_125{align-items:center;display:flex;justify-content:center}._sortable__visually-hidden_td575_178{border:0;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}
|