oasis-editor 0.0.415 → 0.0.416
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/oasis-editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{At as e,Bi as t,Br as a,Bt as o,Ct as r,Dt as i,Et as s,Fi as n,Ft as l,Gr as d,Hi as g,Hr as c,Ht as p,Ii as u,Ir as m,It as b,Ki as f,Kr as h,Li as S,Lr as C,Mi as x,Mt as T,Ni as P,Nr as F,Nt as k,Ot as v,Pi as y,Pr as A,Pt as B,Qi as w,Ri as _,Rr as D,Rt as R,St as L,Tt as I,Ur as O,Ut as H,Vi as N,Vr as E,Vt as M,Wi as W,Wr as j,Xi as z,_a as U,_t as V,bt as q,ca as K,di as $,dt as G,fa as J,ft as X,ga as Q,gi as Y,hi as Z,ji as ee,jt as te,kt as ae,li as oe,lt as re,ma as ie,ni as se,oa as ne,pt as le,qr as de,ra as ge,ri as ce,sn as pe,t as ue,ta as me,ui as be,ut as fe,va as he,vi as Se,vt as Ce,wt as xe,xt as Te,yt as Pe,zr as Fe,zt as ke}from"./defaultToolbar-B8aZzV4B.js";function ve(e={}){const t=f(()=>e.ui?.locale??"pt-BR"),[a,o]=J(0),[r,i]=J(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return U(()=>{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),Q(()=>{t=!0}),import("./OasisEditorApp-Blf411AF.js").then(e=>{t=!0,o(1),setTimeout(()=>i(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),K(W,{translator:t,get children(){return K(ne,{get when(){return r()},get fallback(){return K(g,{variant:"fill",get progress(){return a()},get label(){return s()?.label},get class(){return s()?.class},get style(){return s()?.style}})},children:t=>{const a=t();return K(a,e)}})}})}function ye(e,t={}){const a=Z(),o=w(()=>ve({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Ae(e){return K(ve,ie(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Be(e,t={}){const a=Z(),o=w(()=>Ae({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function we(e){return{execute(t,a){const o=N(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=N(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=N(t);return e.commands.state(a.name,a.payload)}}}var _e=["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","toggleRevisionMarkup","showMarkupOptions","applyShowMarkup","toggleOutlinePanel","toggleRevisionsPanel","openCommandSearch","repeatLastAction","acceptRevisions","rejectRevisions","setReviewDisplayMode","acceptAllRevisions","rejectAllRevisions","requestAcceptAllRevisions","requestRejectAllRevisions","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","saveDocument","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","restartList","continueList","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","updateBodyFields","updateSelectedFields","insertFieldCode","editFieldCode","editFieldCodeAtSelection","toggleFieldLock","toggleFieldCodes","nextField","previousField","markAuthorityEntry","insertTableOfAuthorities","updateTableOfAuthorities","insertTableOfFigures","updateTableOfFigures","previewMergeRecord","mergeToNewDocuments","updateVariableFields","setFormFieldValue","toggleFormCheckbox","insertDateTime","insertCrossReference","markIndexEntry","insertIndex","updateIndex","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","tableSetCellAlignment","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","openFontDialog","openParagraphDialog"];function De(e,t={}){const a=Z(),o=w(()=>K(ve,ie(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/ge("<div>");function Le(e){const[t,a]=he(e,["align","wrap","class","classList","children"]);return o=Re(),me(o,ie({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),z(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/ge("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function He(e){const[t,a]=he(e,["align","class","style","children"]);return o=Ie(),me(o,ie({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":Oe[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},a),!1,!0),z(o,()=>t.children),o;var o}var Ne=/*#__PURE__*/ge("<div>");function Ee(e){const[t,a]=he(e,["align","class","classList","children"]);return o=Ne(),me(o,ie({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),z(o,()=>t.children),o;var o}var Me={saveDocument:"editor-toolbar-save-document",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"},We={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{Le as ActionRow,B as BalloonShell,pe as Button,r as Checkbox,xe as ColorField,Fe as ColorPicker,Fe as ToolbarColorPicker,be as CommandRegistry,C as DEFAULT_PALETTE,k as Dialog,Ee as DialogFooter,b as DocumentShell,ee as EDITOR_SCHEMA_VERSION,oe as Editor,Ce as FieldGroup,He as FieldRow,H as FloatingActionButton,i as FormField,v as Grid,D as GridPicker,D as ToolbarGridPicker,te as Heading,R as IconButton,l as InlineShell,O as Menu,O as ToolbarMenu,re as MenuRegistry,Te as NumberField,_e as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,ve as OasisEditorAppLazy,Ae as OasisEditorContainer,g as OasisEditorLoading,$ as PluginCollection,j as Popover,de as RIBBON_TABS,Pe as Radio,q as RadioGroup,c as Select,c as ToolbarSelect,L as SelectField,E as Separator,E as ToolbarSeparator,ke as SidePanel,o as SidePanelBody,M as SidePanelFooter,p as SidePanelHeader,a as SplitButton,a as ToolbarSplitButton,ae as Stack,e as StatusText,m as StyleGallery,ce as SurfaceButton,T as Tabs,se as Text,I as TextAreaField,s as TextField,V as ToggleChip,F as Toolbar,d as ToolbarButton,h as buildRibbonTabDefinitions,x as cloneDocument,t as commandRefName,ue as createDefaultToolbarPreset,P as createDocument,we as createEditorCommandBus,y as createHeading,ye as createOasisEditor,Be as createOasisEditorContainer,n as createParagraph,u as createTable,fe as createToolbarRegistry,Y as exportEditorDocumentToHtml,Se as importHtmlToEditorDocument,De as mount,S as normalizeDocument,G as projectTrackedRevisions,A as registerToolbarRenderer,X as resolveAllTrackedRevisions,N as resolveCommandRef,le as resolveTrackedRevision,_ as validateDocument};
|
|
1
|
+
import{At as e,Bi as t,Br as a,Bt as o,Ct as r,Dt as i,Et as s,Fi as n,Ft as l,Gr as d,Hi as g,Hr as c,Ht as p,Ii as u,Ir as m,It as b,Ki as f,Kr as h,Li as S,Lr as C,Mi as x,Mt as T,Ni as P,Nr as F,Nt as k,Ot as v,Pi as y,Pr as A,Pt as B,Qi as w,Ri as _,Rr as D,Rt as R,St as L,Tt as I,Ur as O,Ut as H,Vi as N,Vr as E,Vt as M,Wi as W,Wr as j,Xi as z,_a as U,_t as V,bt as q,ca as K,di as $,dt as G,fa as J,ft as X,ga as Q,gi as Y,hi as Z,ji as ee,jt as te,kt as ae,li as oe,lt as re,ma as ie,ni as se,oa as ne,pt as le,qr as de,ra as ge,ri as ce,sn as pe,t as ue,ta as me,ui as be,ut as fe,va as he,vi as Se,vt as Ce,wt as xe,xt as Te,yt as Pe,zr as Fe,zt as ke}from"./defaultToolbar-DzDVVDsk.js";function ve(e={}){const t=f(()=>e.ui?.locale??"pt-BR"),[a,o]=J(0),[r,i]=J(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return U(()=>{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),Q(()=>{t=!0}),import("./OasisEditorApp-BN_8lhHA.js").then(e=>{t=!0,o(1),setTimeout(()=>i(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),K(W,{translator:t,get children(){return K(ne,{get when(){return r()},get fallback(){return K(g,{variant:"fill",get progress(){return a()},get label(){return s()?.label},get class(){return s()?.class},get style(){return s()?.style}})},children:t=>{const a=t();return K(a,e)}})}})}function ye(e,t={}){const a=Z(),o=w(()=>ve({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Ae(e){return K(ve,ie(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Be(e,t={}){const a=Z(),o=w(()=>Ae({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function we(e){return{execute(t,a){const o=N(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=N(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=N(t);return e.commands.state(a.name,a.payload)}}}var _e=["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","toggleRevisionMarkup","showMarkupOptions","applyShowMarkup","toggleOutlinePanel","toggleRevisionsPanel","openCommandSearch","repeatLastAction","acceptRevisions","rejectRevisions","setReviewDisplayMode","acceptAllRevisions","rejectAllRevisions","requestAcceptAllRevisions","requestRejectAllRevisions","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","saveDocument","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","restartList","continueList","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","updateBodyFields","updateSelectedFields","insertFieldCode","editFieldCode","editFieldCodeAtSelection","toggleFieldLock","toggleFieldCodes","nextField","previousField","markAuthorityEntry","insertTableOfAuthorities","updateTableOfAuthorities","insertTableOfFigures","updateTableOfFigures","previewMergeRecord","mergeToNewDocuments","updateVariableFields","setFormFieldValue","toggleFormCheckbox","insertDateTime","insertCrossReference","markIndexEntry","insertIndex","updateIndex","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","tableSetCellAlignment","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","openFontDialog","openParagraphDialog"];function De(e,t={}){const a=Z(),o=w(()=>K(ve,ie(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/ge("<div>");function Le(e){const[t,a]=he(e,["align","wrap","class","classList","children"]);return o=Re(),me(o,ie({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),z(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/ge("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function He(e){const[t,a]=he(e,["align","class","style","children"]);return o=Ie(),me(o,ie({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":Oe[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},a),!1,!0),z(o,()=>t.children),o;var o}var Ne=/*#__PURE__*/ge("<div>");function Ee(e){const[t,a]=he(e,["align","class","classList","children"]);return o=Ne(),me(o,ie({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),z(o,()=>t.children),o;var o}var Me={saveDocument:"editor-toolbar-save-document",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"},We={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{Le as ActionRow,B as BalloonShell,pe as Button,r as Checkbox,xe as ColorField,Fe as ColorPicker,Fe as ToolbarColorPicker,be as CommandRegistry,C as DEFAULT_PALETTE,k as Dialog,Ee as DialogFooter,b as DocumentShell,ee as EDITOR_SCHEMA_VERSION,oe as Editor,Ce as FieldGroup,He as FieldRow,H as FloatingActionButton,i as FormField,v as Grid,D as GridPicker,D as ToolbarGridPicker,te as Heading,R as IconButton,l as InlineShell,O as Menu,O as ToolbarMenu,re as MenuRegistry,Te as NumberField,_e as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,ve as OasisEditorAppLazy,Ae as OasisEditorContainer,g as OasisEditorLoading,$ as PluginCollection,j as Popover,de as RIBBON_TABS,Pe as Radio,q as RadioGroup,c as Select,c as ToolbarSelect,L as SelectField,E as Separator,E as ToolbarSeparator,ke as SidePanel,o as SidePanelBody,M as SidePanelFooter,p as SidePanelHeader,a as SplitButton,a as ToolbarSplitButton,ae as Stack,e as StatusText,m as StyleGallery,ce as SurfaceButton,T as Tabs,se as Text,I as TextAreaField,s as TextField,V as ToggleChip,F as Toolbar,d as ToolbarButton,h as buildRibbonTabDefinitions,x as cloneDocument,t as commandRefName,ue as createDefaultToolbarPreset,P as createDocument,we as createEditorCommandBus,y as createHeading,ye as createOasisEditor,Be as createOasisEditorContainer,n as createParagraph,u as createTable,fe as createToolbarRegistry,Y as exportEditorDocumentToHtml,Se as importHtmlToEditorDocument,De as mount,S as normalizeDocument,G as projectTrackedRevisions,A as registerToolbarRenderer,X as resolveAllTrackedRevisions,N as resolveCommandRef,le as resolveTrackedRevision,_ as validateDocument};
|