oasis-editor 0.0.232 → 0.0.233
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/OasisEditorApp-CGLDZfDa.js +1 -0
- package/dist/defaultToolbar-AtRSIJFx.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/app/createEditorFormatPainter.d.ts +10 -9
- package/dist/ui/app/createEditorInteractionRuntime.d.ts +1 -8
- package/package.json +3 -2
- package/dist/OasisEditorApp-QuRS1JVm.js +0 -1
- package/dist/defaultToolbar-BLpx6Q1W.js +0 -1
package/dist/oasis-editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$i as t,$r as a,At as o,Bo as r,Co as i,Ct as s,Di as n,Dt as l,Ei as g,Eo as d,Hi as c,Io as m,Ji as p,Jo as u,Ko as b,Mi as f,Mt as h,Nn as S,Ot as C,Po as x,Qi as T,Qr as P,St as B,Ti as F,To as _,Tt as y,Wo as k,Xi as w,Xo as v,Yi as D,Yo as A,Zi as L,Zr as R,_t as I,ai as H,bo as E,bt as N,ci as O,ct as W,di as M,dt as j,ea as $,ei as z,et as U,ft as K,gt as q,ht as J,ii as V,ji as G,jo as X,jt as Y,ko as Q,kt as Z,li as ee,lt as te,mt as ae,ni as oe,nt as re,oi as ie,pt as se,qi as ne,ri as le,rt as ge,si as de,st as ce,t as me,tt as pe,ui as ue,ut as be,vi as fe,vt as he,wt as Se,xo as Ce,xt as xe,yi as Te,yo as Pe,yt as Be,zo as Fe}from"./defaultToolbar-BLpx6Q1W.js";function _e(e={}){const t=_(()=>e.ui?.locale??"pt-BR"),[a,o]=k(0),[s,n]=k(null),l=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return A(()=>{const e=performance.now();let t=!1;const a=()=>{if(t)return;const r=performance.now()-e;o(.9*(1-Math.exp(-r/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),u(()=>{t=!0}),import("./OasisEditorApp-QuRS1JVm.js").then(e=>{t=!0,o(1),setTimeout(()=>n(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),r(i,{translator:t,get children(){return r(Fe,{get when(){return s()},get fallback(){return r(Ce,{variant:"fill",get progress(){return a()},get label(){return l()?.label},get class(){return l()?.class},get style(){return l()?.style}})},children:t=>{const a=t();return r(a,e)}})}})}function ye(e,t={}){const a=G(),o=X(()=>_e({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ke(e){return r(_e,b(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function we(e,t={}){const a=G(),o=X(()=>ke({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ve(e){return{execute(t,a){const o=E(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=E(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=E(t);return e.commands.state(a.name,a.payload)}}}var De=["selectAll","selectWord","selectSentence","selectParagraph","selectCollapse","selectText","selectRange","insertFootnote","insertText","insertEquation","updateEquation","insertTableOfContents","updateTableOfContents","pastePlainText","paste","pasteAsPlainText","pasteMergeFormatting","formatPainter","formatPainterContinuous","cancelFormatPainter","bold","italic","underline","doubleUnderline","wordUnderline","strike","doubleStrike","smallCaps","allCaps","hidden","noProof","webHidden","specVanish","contextualAlternates","characterBorder","shadow","emboss","engrave","outline","superscript","subscript","link","unlink","alignLeft","alignCenter","alignRight","alignJustify","orderedList","bulletList","find","replace","replaceAll","toggleTrackChanges","acceptRevisions","rejectRevisions","acceptAllRevisions","rejectAllRevisions","nextRevision","previousRevision","nextComment","previousComment","newComment","replyComment","editComment","toggleCommentsPanel","resolveComment","reopenComment","deleteComment","toggleShowMargins","toggleShowParagraphMarks","togglePreciseFonts","undo","redo","pageBreak","lineBreak","columnBreak","splitBlock","insertNonBreakingSpace","insertNonBreakingHyphen","insertOptionalHyphen","insertEmDash","insertEllipsis","insertCopyright","insertRegistered","insertTrademark","setFontFamily","setFontSize","increaseFontSize","decreaseFontSize","growFont1","shrinkFont1","changeTextCase","clearFormatting","setColor","setHighlight","setTextShading","setStyleId","setCharacterStyleId","setUnderlineStyle","applyUnderlineStyle","setUnderlineColor","setCharacterScale","setCharacterSpacing","setRunSnapToGrid","setFitText","setBaselineShift","setEmphasisMark","setTextEffect","setKerning","setLigatures","setNumberSpacing","setNumberForm","setStylisticSet","documentStyles","print","copy","cut","newDocument","exportDocx","exportPdf","importDocument","insertHtml","insertImage","editImageAlt","insertImageCaption","imageContext","imageWidthCm","imageHeightCm","imageCrop","imageCropAspect","imageCropShape","imageCropFill","imageCropFit","imageCropReset","imageFlip","imageRotate","imageBorder","imageTransparency","resetImage","outdent","indent","moveParagraphsUp","moveParagraphsDown","togglePageBreakBefore","toggleKeepWithNext","toggleKeepLinesTogether","toggleWidowControl","toggleParagraphBidi","setParagraphBidi","setParagraphAlign","sortParagraphs","promote","demote","resetParagraphFormatting","setParagraphTabStops","setOutlineLevel","setSpacingAfter","setSpacingBefore","setContextualSpacing","setMirrorIndents","setLineRule","setTextDirection","setSuppressAutoHyphens","setSuppressLineNumbers","setKinsoku","setOverflowPunct","setWordWrap","setAutoSpaceDE","setAutoSpaceDN","setAdjustRightInd","setTopLinePunct","setPageBreakBefore","setKeepWithNext","setKeepLinesTogether","setWidowControl","setIndentLeft","setIndentRight","setIndentFirstLine","setIndentHanging","setSpecialIndent","setParagraphShading","applyParagraphBorders","applyHorizontalLine","setDropCap","setLineHeight","setListFormat","setListStartAt","setListLevel","toggleOrientation","setOrientation","sectionBreakNextPage","sectionBreakContinuous","sectionBreakEvenPage","sectionBreakOddPage","sectionBreakNextColumn","setPageMargins","setMarginsPreset","setSectionPageNumbering","setPaperSize","setPaperSizePreset","setColumns","setColumnsPreset","setSectionVerticalAlign","setSectionStart","setSectionBidi","setHyphenation","editHeader","editFooter","editFirstPageHeader","editEvenPageHeader","editFirstPageFooter","editEvenPageFooter","insertPageNumber","insertPageNumberXOfY","placePageNumberTop","placePageNumberBottom","insertBookmark","removeBookmark","insertDateField","insertDateTime","insertCrossReference","setNoteOptions","exitHeaderFooter","setDifferentFirstPage","setDifferentOddEven","applyDocumentTheme","setDocumentColorScheme","setDocumentFontScheme","setDocumentParagraphSpacing","setDocumentEffects","setDocumentPageColor","setDocumentWatermark","setDocumentPageBorder","setDocumentDesignDefault","tableContext","tableMerge","tableSplit","tableInsertColumnBefore","tableInsertColumnAfter","tableDeleteColumn","tableDeleteCells","tableInsertRowBefore","tableInsertRowAfter","tableDeleteRow","tableCellShading","tableCellBorders","tableCellNoBorders","tableApplyBorderPreset","toggleTableDrawBorders","toggleTableGridlines","tableWidth100","tableAlignLeft","tableAlignCenter","tableAlignRight","tableSetCellVerticalAlign","tableSetCellTextDirection","tableToText","textToTable","tableSplitAtRow","tableSortAscending","tableSortDescending","tableDelete","tableRepeatHeaderRows","tableSetCellMargins","tableSetCellSpacing","tableSetTableIndent","tableSetAlignment","tableFormula","tableSelectCell","tableSelectRow","tableSelectColumn","tableSelectTable","tableSetRowHeight","tableSetBreakAcrossPages","tableSetHeaderRow","tableSetColumnWidth","tableSetTableWidth","tableSetCellWidth","tableSetCellNoWrap","tableSetCellFitText","tableToggleHeaderRow","tableToggleTotalRow","tableToggleBandedRows","tableToggleFirstColumn","tableToggleLastColumn","tableToggleBandedColumns","setTableStyle","tableToggleAutoFit","tableAutoFit","tableDistributeColumns","tableDistributeRows","insertTable","insertShape","setShapeFill","setShapeOutline","setShapeOutlineWidth","alignFloatingObject","reorderFloatingObject","nudgeFloatingObject","setFloatingFixedPosition","setFloatingRotation","setFloatingWrapPreset","setFloatingWrapText","setFloatingPositionPreset","setShapePreset","setTextBoxTextDirection","setTextBoxVerticalAlign","editTextBoxAlt","rotateTextBox","textBoxWidthCm","textBoxHeightCm","openSymbolDialog","openEquationDialog","tableProperties"];function Ae(e,t={}){const a=G(),o=X(()=>r(_e,b(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}function Le(e){const[t,a]=v(e,["level","class","classList","children"]),o=t.level??2;return r(d,b({component:`h${o}`,get class(){return`oasis-editor-ui-heading ${t.class??""}`},get classList(){return{[`oasis-editor-ui-heading-${o}`]:!0,...t.classList}}},a,{get children(){return t.children}}))}var Re=/*#__PURE__*/m("<div>");function Ie(e){const[t,a]=v(e,["align","wrap","class","classList","children"]);return o=Re(),x(o,b({get class(){return`oasis-editor-ui-action-row ${t.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${t.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===t.wrap,...t.classList}}},a),!1,!0),Q(o,()=>t.children),o;var o}var He=/*#__PURE__*/m("<div>"),Ee={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ne(e){const[t,a]=v(e,["align","class","style","children"]);return o=He(),x(o,b({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":Ee[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},a),!1,!0),Q(o,()=>t.children),o;var o}var Oe=/*#__PURE__*/m("<div>");function We(e){const[t,a]=v(e,["align","class","classList","children"]);return o=Oe(),x(o,b({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},a),!1,!0),Q(o,()=>t.children),o;var o}var Me={newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},je={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{Ie as ActionRow,s as BalloonShell,S as Button,se as Checkbox,ae as ColorField,H as ColorPicker,H as ToolbarColorPicker,g as CommandRegistry,le as DEFAULT_PALETTE,B as Dialog,We as DialogFooter,y as DocumentShell,ne as EDITOR_SCHEMA_VERSION,F as Editor,W as FieldGroup,Ne as FieldRow,h as FloatingActionButton,I as FormField,he as Grid,V as GridPicker,V as ToolbarGridPicker,Le as Heading,l as IconButton,Se as InlineShell,ee as Menu,ee as ToolbarMenu,e as MenuRegistry,j as NumberField,De as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,_e as OasisEditorAppLazy,ke as OasisEditorContainer,Ce as OasisEditorLoading,n as PluginCollection,ue as Popover,a as RIBBON_TABS,te as Radio,be as RadioGroup,O as Select,O as ToolbarSelect,K as SelectField,de as Separator,de as ToolbarSeparator,C as SidePanel,Z as SidePanelBody,o as SidePanelFooter,Y as SidePanelHeader,ie as SplitButton,ie as ToolbarSplitButton,Be as Stack,N as StatusText,oe as StyleGallery,Te as SurfaceButton,xe as Tabs,fe as Text,J as TextAreaField,q as TextField,ce as ToggleChip,R as Toolbar,M as ToolbarButton,P as buildRibbonTabDefinitions,p as cloneDocument,Pe as commandRefName,me as createDefaultToolbarPreset,D as createDocument,ve as createEditorCommandBus,w as createHeading,ye as createOasisEditor,we as createOasisEditorContainer,L as createParagraph,T as createTable,U as createToolbarRegistry,f as exportEditorDocumentToHtml,c as importHtmlToEditorDocument,Ae as mount,t as normalizeDocument,pe as projectTrackedRevisions,z as registerToolbarRenderer,re as resolveAllTrackedRevisions,E as resolveCommandRef,ge as resolveTrackedRevision,$ as validateDocument};
|
|
1
|
+
import{$ as e,$i as t,$r as a,At as o,Co as r,Ct as i,Di as s,Dt as n,Ei as l,Eo as g,Go as d,Hi as c,Io as m,Ji as p,Mi as u,Mt as b,Nn as f,Ot as h,Po as S,Qi as C,Qr as x,St as T,Ti as P,To as F,Tt as _,Vo as y,Xi as B,Xo as k,Yi as w,Yo as v,Zi as D,Zo as A,Zr as L,_t as R,ai as I,bo as H,bt as E,ci as N,ct as O,di as M,dt as W,ea as j,ei as $,et as z,ft as U,gt as q,ht as K,ii as V,ji as G,jo as J,jt as X,ko as Y,kt as Z,li as Q,lt as ee,mt as te,ni as ae,nt as oe,oi as re,pt as ie,qi as se,qo as ne,ri as le,rt as ge,si as de,st as ce,t as me,tt as pe,ui as ue,ut as be,vi as fe,vt as he,wt as Se,xo as Ce,xt as xe,yi as Te,yo as Pe,yt as Fe,zo as _e}from"./defaultToolbar-AtRSIJFx.js";function ye(e={}){const t=F(()=>e.ui?.locale??"pt-BR"),[a,o]=d(0),[i,s]=d(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return k(()=>{const e=performance.now();let t=!1;const a=()=>{if(t)return;const r=performance.now()-e;o(.9*(1-Math.exp(-r/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),v(()=>{t=!0}),import("./OasisEditorApp-CGLDZfDa.js").then(e=>{t=!0,o(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),y(r,{translator:t,get children(){return y(_e,{get when(){return i()},get fallback(){return y(Ce,{variant:"fill",get progress(){return a()},get label(){return n()?.label},get class(){return n()?.class},get style(){return n()?.style}})},children:t=>{const a=t();return y(a,e)}})}})}function Be(e,t={}){const a=G(),o=J(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ke(e){return y(ye,ne(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function we(e,t={}){const a=G(),o=J(()=>ke({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ve(e){return{execute(t,a){const o=H(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=H(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=H(t);return e.commands.state(a.name,a.payload)}}}var De=["selectAll","selectWord","selectSentence","selectParagraph","selectCollapse","selectText","selectRange","insertFootnote","insertText","insertEquation","updateEquation","insertTableOfContents","updateTableOfContents","pastePlainText","paste","pasteAsPlainText","pasteMergeFormatting","formatPainter","formatPainterContinuous","cancelFormatPainter","bold","italic","underline","doubleUnderline","wordUnderline","strike","doubleStrike","smallCaps","allCaps","hidden","noProof","webHidden","specVanish","contextualAlternates","characterBorder","shadow","emboss","engrave","outline","superscript","subscript","link","unlink","alignLeft","alignCenter","alignRight","alignJustify","orderedList","bulletList","find","replace","replaceAll","toggleTrackChanges","acceptRevisions","rejectRevisions","acceptAllRevisions","rejectAllRevisions","nextRevision","previousRevision","nextComment","previousComment","newComment","replyComment","editComment","toggleCommentsPanel","resolveComment","reopenComment","deleteComment","toggleShowMargins","toggleShowParagraphMarks","togglePreciseFonts","undo","redo","pageBreak","lineBreak","columnBreak","splitBlock","insertNonBreakingSpace","insertNonBreakingHyphen","insertOptionalHyphen","insertEmDash","insertEllipsis","insertCopyright","insertRegistered","insertTrademark","setFontFamily","setFontSize","increaseFontSize","decreaseFontSize","growFont1","shrinkFont1","changeTextCase","clearFormatting","setColor","setHighlight","setTextShading","setStyleId","setCharacterStyleId","setUnderlineStyle","applyUnderlineStyle","setUnderlineColor","setCharacterScale","setCharacterSpacing","setRunSnapToGrid","setFitText","setBaselineShift","setEmphasisMark","setTextEffect","setKerning","setLigatures","setNumberSpacing","setNumberForm","setStylisticSet","documentStyles","print","copy","cut","newDocument","exportDocx","exportPdf","importDocument","insertHtml","insertImage","editImageAlt","insertImageCaption","imageContext","imageWidthCm","imageHeightCm","imageCrop","imageCropAspect","imageCropShape","imageCropFill","imageCropFit","imageCropReset","imageFlip","imageRotate","imageBorder","imageTransparency","resetImage","outdent","indent","moveParagraphsUp","moveParagraphsDown","togglePageBreakBefore","toggleKeepWithNext","toggleKeepLinesTogether","toggleWidowControl","toggleParagraphBidi","setParagraphBidi","setParagraphAlign","sortParagraphs","promote","demote","resetParagraphFormatting","setParagraphTabStops","setOutlineLevel","setSpacingAfter","setSpacingBefore","setContextualSpacing","setMirrorIndents","setLineRule","setTextDirection","setSuppressAutoHyphens","setSuppressLineNumbers","setKinsoku","setOverflowPunct","setWordWrap","setAutoSpaceDE","setAutoSpaceDN","setAdjustRightInd","setTopLinePunct","setPageBreakBefore","setKeepWithNext","setKeepLinesTogether","setWidowControl","setIndentLeft","setIndentRight","setIndentFirstLine","setIndentHanging","setSpecialIndent","setParagraphShading","applyParagraphBorders","applyHorizontalLine","setDropCap","setLineHeight","setListFormat","setListStartAt","setListLevel","toggleOrientation","setOrientation","sectionBreakNextPage","sectionBreakContinuous","sectionBreakEvenPage","sectionBreakOddPage","sectionBreakNextColumn","setPageMargins","setMarginsPreset","setSectionPageNumbering","setPaperSize","setPaperSizePreset","setColumns","setColumnsPreset","setSectionVerticalAlign","setSectionStart","setSectionBidi","setHyphenation","editHeader","editFooter","editFirstPageHeader","editEvenPageHeader","editFirstPageFooter","editEvenPageFooter","insertPageNumber","insertPageNumberXOfY","placePageNumberTop","placePageNumberBottom","insertBookmark","removeBookmark","insertDateField","insertDateTime","insertCrossReference","setNoteOptions","exitHeaderFooter","setDifferentFirstPage","setDifferentOddEven","applyDocumentTheme","setDocumentColorScheme","setDocumentFontScheme","setDocumentParagraphSpacing","setDocumentEffects","setDocumentPageColor","setDocumentWatermark","setDocumentPageBorder","setDocumentDesignDefault","tableContext","tableMerge","tableSplit","tableInsertColumnBefore","tableInsertColumnAfter","tableDeleteColumn","tableDeleteCells","tableInsertRowBefore","tableInsertRowAfter","tableDeleteRow","tableCellShading","tableCellBorders","tableCellNoBorders","tableApplyBorderPreset","toggleTableDrawBorders","toggleTableGridlines","tableWidth100","tableAlignLeft","tableAlignCenter","tableAlignRight","tableSetCellVerticalAlign","tableSetCellTextDirection","tableToText","textToTable","tableSplitAtRow","tableSortAscending","tableSortDescending","tableDelete","tableRepeatHeaderRows","tableSetCellMargins","tableSetCellSpacing","tableSetTableIndent","tableSetAlignment","tableFormula","tableSelectCell","tableSelectRow","tableSelectColumn","tableSelectTable","tableSetRowHeight","tableSetBreakAcrossPages","tableSetHeaderRow","tableSetColumnWidth","tableSetTableWidth","tableSetCellWidth","tableSetCellNoWrap","tableSetCellFitText","tableToggleHeaderRow","tableToggleTotalRow","tableToggleBandedRows","tableToggleFirstColumn","tableToggleLastColumn","tableToggleBandedColumns","setTableStyle","tableToggleAutoFit","tableAutoFit","tableDistributeColumns","tableDistributeRows","insertTable","insertShape","setShapeFill","setShapeOutline","setShapeOutlineWidth","alignFloatingObject","reorderFloatingObject","nudgeFloatingObject","setFloatingFixedPosition","setFloatingRotation","setFloatingWrapPreset","setFloatingWrapText","setFloatingPositionPreset","setShapePreset","setTextBoxTextDirection","setTextBoxVerticalAlign","editTextBoxAlt","rotateTextBox","textBoxWidthCm","textBoxHeightCm","openSymbolDialog","openEquationDialog","tableProperties"];function Ae(e,t={}){const a=G(),o=J(()=>y(ye,ne(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}function Le(e){const[t,a]=A(e,["level","class","classList","children"]),o=t.level??2;return y(g,ne({component:`h${o}`,get class(){return`oasis-editor-ui-heading ${t.class??""}`},get classList(){return{[`oasis-editor-ui-heading-${o}`]:!0,...t.classList}}},a,{get children(){return t.children}}))}var Re=/*#__PURE__*/m("<div>");function Ie(e){const[t,a]=A(e,["align","wrap","class","classList","children"]);return o=Re(),S(o,ne({get class(){return`oasis-editor-ui-action-row ${t.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${t.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===t.wrap,...t.classList}}},a),!1,!0),Y(o,()=>t.children),o;var o}var He=/*#__PURE__*/m("<div>"),Ee={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ne(e){const[t,a]=A(e,["align","class","style","children"]);return o=He(),S(o,ne({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":Ee[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},a),!1,!0),Y(o,()=>t.children),o;var o}var Oe=/*#__PURE__*/m("<div>");function Me(e){const[t,a]=A(e,["align","class","classList","children"]);return o=Oe(),S(o,ne({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},a),!1,!0),Y(o,()=>t.children),o;var o}var We={newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},je={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{Ie as ActionRow,i as BalloonShell,f as Button,ie as Checkbox,te as ColorField,I as ColorPicker,I as ToolbarColorPicker,l as CommandRegistry,le as DEFAULT_PALETTE,T as Dialog,Me as DialogFooter,_ as DocumentShell,se as EDITOR_SCHEMA_VERSION,P as Editor,O as FieldGroup,Ne as FieldRow,b as FloatingActionButton,R as FormField,he as Grid,V as GridPicker,V as ToolbarGridPicker,Le as Heading,n as IconButton,Se as InlineShell,Q as Menu,Q as ToolbarMenu,e as MenuRegistry,W as NumberField,De as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,We as OASIS_TOOLBAR_ITEMS,ye as OasisEditorAppLazy,ke as OasisEditorContainer,Ce as OasisEditorLoading,s as PluginCollection,ue as Popover,a as RIBBON_TABS,ee as Radio,be as RadioGroup,N as Select,N as ToolbarSelect,U as SelectField,de as Separator,de as ToolbarSeparator,h as SidePanel,Z as SidePanelBody,o as SidePanelFooter,X as SidePanelHeader,re as SplitButton,re as ToolbarSplitButton,Fe as Stack,E as StatusText,ae as StyleGallery,Te as SurfaceButton,xe as Tabs,fe as Text,K as TextAreaField,q as TextField,ce as ToggleChip,L as Toolbar,M as ToolbarButton,x as buildRibbonTabDefinitions,p as cloneDocument,Pe as commandRefName,me as createDefaultToolbarPreset,w as createDocument,ve as createEditorCommandBus,B as createHeading,Be as createOasisEditor,we as createOasisEditorContainer,D as createParagraph,C as createTable,z as createToolbarRegistry,u as exportEditorDocumentToHtml,c as importHtmlToEditorDocument,Ae as mount,t as normalizeDocument,pe as projectTrackedRevisions,$ as registerToolbarRenderer,oe as resolveAllTrackedRevisions,H as resolveCommandRef,ge as resolveTrackedRevision,j as validateDocument};
|