oasis-editor 0.0.228 → 0.0.230
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-B7XbE1cT.js +1 -0
- package/dist/core/plugin.d.ts +4 -1
- package/dist/core/pluginUiTypes.d.ts +4 -1
- package/dist/defaultToolbar-D2zbRedt.js +1 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/pt-BR.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/components/Toolbar/primitives/SplitButton.d.ts +1 -0
- package/dist/ui/components/Toolbar/primitives/popoverBranch.d.ts +7 -0
- package/dist/ui/components/Toolbar/primitives/useDismiss.d.ts +3 -1
- package/dist/ui/components/Toolbar/ribbon/RibbonGroup.d.ts +2 -1
- package/dist/ui/components/Toolbar/ribbon/measureRibbonGroups.d.ts +8 -0
- package/dist/ui/components/Toolbar/ribbon/ribbonModel.d.ts +14 -1
- package/dist/ui/components/Toolbar/schema/items.d.ts +13 -4
- package/dist/ui/utils/IconManager.d.ts +5 -1
- package/dist/ui/utils/customIcons.d.ts +1 -4
- package/package.json +9 -2
- package/dist/OasisEditorApp-CpKYMW3z.js +0 -1
- package/dist/defaultToolbar-Em7_omZA.js +0 -1
package/dist/oasis-editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$r as t,At as a,Ci as o,Co as i,Ct as r,Dt as s,Eo as n,Gi as l,Go as g,Ho as d,Io as c,Ji as m,Ki as u,Ko as p,Lo as b,Mt as f,Nn as h,No as S,Oi as C,Oo as x,Ot as T,Qr as P,Si as _,So as F,St as B,Tt as k,Vo as w,Wi as y,Wo as v,Xi as A,Yi as D,Zi as L,_o as R,_t as I,ai as H,bi as O,bo as N,bt as E,ci as W,ct as M,di as j,dt as $,ei as z,et as K,fi as U,ft as q,go as G,gt as V,ht as J,ii as X,jo as Y,jt as Q,ki as Z,kt as ee,li as te,lt as ae,mt as oe,nt as ie,oi as re,pt as se,qi as ne,ri as le,rt as ge,si as de,st as ce,t as me,ti as ue,tt as pe,ui as be,ut as fe,vo as he,vt as Se,wi as Ce,wt as xe,xt as Te,yi as Pe,yt as _e,zi as Fe}from"./defaultToolbar-Em7_omZA.js";function Be(e={}){const t=F(()=>e.ui?.locale??"pt-BR"),[a,o]=w(0),[i,r]=w(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return g(()=>{const e=performance.now();let t=!1;const a=()=>{if(t)return;const i=performance.now()-e;o(.9*(1-Math.exp(-i/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),v(()=>{t=!0}),import("./OasisEditorApp-CpKYMW3z.js").then(e=>{t=!0,o(1),setTimeout(()=>r(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),b(N,{translator:t,get children(){return b(c,{get when(){return i()},get fallback(){return b(he,{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 b(a,e)}})}})}function ke(e,t={}){const a=C(),o=x(()=>Be({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function we(e){return b(Be,d(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function ye(e,t={}){const a=C(),o=x(()=>we({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ve(e){return{execute(t,a){const o=R(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=R(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=R(t);return e.commands.state(a.name,a.payload)}}}var Ae=["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","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 De(e,t={}){const a=C(),o=x(()=>b(Be,d(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]=p(e,["level","class","classList","children"]),o=t.level??2;return b(i,d({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__*/S("<div>");function Ie(e){const[t,a]=p(e,["align","wrap","class","classList","children"]);return o=Re(),Y(o,d({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),n(o,()=>t.children),o;var o}var He=/*#__PURE__*/S("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ne(e){const[t,a]=p(e,["align","class","style","children"]);return o=He(),Y(o,d({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),n(o,()=>t.children),o;var o}var Ee=/*#__PURE__*/S("<div>");function We(e){const[t,a]=p(e,["align","class","classList","children"]);return o=Ee(),Y(o,d({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),n(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,r as BalloonShell,h as Button,se as Checkbox,oe as ColorField,re as ColorPicker,re as ToolbarColorPicker,o as CommandRegistry,X as DEFAULT_PALETTE,B as Dialog,We as DialogFooter,k as DocumentShell,y as EDITOR_SCHEMA_VERSION,_ as Editor,M as FieldGroup,Ne as FieldRow,f as FloatingActionButton,I as FormField,Se as Grid,H as GridPicker,H as ToolbarGridPicker,Le as Heading,s as IconButton,xe as InlineShell,be as Menu,be as ToolbarMenu,e as MenuRegistry,$ as NumberField,Ae as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,Be as OasisEditorAppLazy,we as OasisEditorContainer,he as OasisEditorLoading,Ce as PluginCollection,j as Popover,z as RIBBON_TABS,ae as Radio,fe as RadioGroup,te as Select,te as ToolbarSelect,q as SelectField,W as Separator,W as ToolbarSeparator,T as SidePanel,ee as SidePanelBody,a as SidePanelFooter,Q as SidePanelHeader,de as SplitButton,de as ToolbarSplitButton,_e as Stack,E as StatusText,le as StyleGallery,O as SurfaceButton,Te as Tabs,Pe as Text,J as TextAreaField,V as TextField,ce as ToggleChip,P as Toolbar,U as ToolbarButton,t as buildRibbonTabDefinitions,l as cloneDocument,G as commandRefName,me as createDefaultToolbarPreset,u as createDocument,ve as createEditorCommandBus,ne as createHeading,ke as createOasisEditor,ye as createOasisEditorContainer,m as createParagraph,D as createTable,K as createToolbarRegistry,Z as exportEditorDocumentToHtml,Fe as importHtmlToEditorDocument,De as mount,A as normalizeDocument,pe as projectTrackedRevisions,ue as registerToolbarRenderer,ie as resolveAllTrackedRevisions,R as resolveCommandRef,ge as resolveTrackedRevision,L as validateDocument};
|
|
1
|
+
import{$ as e,$i as t,$r as a,Ai as o,Ao as r,At as i,Ct as s,Dt as n,Ei as l,Fo as g,Ji as d,Jo as c,Ki as m,Ko as u,Mt as p,Nn as b,No as f,Oo as h,Ot as S,Qi as C,Qr as x,Ro as T,So as P,St as F,Ti as _,To as w,Tt as B,Uo as k,Vi as y,Wo as v,Xi as A,Yi as D,Zi as L,Zr as R,_t as I,ai as H,bo as N,bt as O,ci as E,ct as W,di as M,dt as j,ei as $,et as z,ft as K,gt as U,ht as q,ii as J,ji as V,jt as G,kt as Q,li as X,lt as Y,mt as Z,ni as ee,nt as te,oi as ae,pt as oe,qi as re,qo as ie,ri as se,rt as ne,si as le,st as ge,t as de,tt as ce,ui as me,ut as ue,vi as pe,vo as be,vt as fe,wi as he,wo as Se,wt as Ce,xt as xe,yi as Te,yo as Pe,yt as Fe,zo as _e}from"./defaultToolbar-D2zbRedt.js";function we(e={}){const t=Se(()=>e.ui?.locale??"pt-BR"),[a,o]=k(0),[r,i]=k(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return ie(()=>{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-B7XbE1cT.js").then(e=>{t=!0,o(1),setTimeout(()=>i(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),_e(P,{translator:t,get children(){return _e(T,{get when(){return r()},get fallback(){return _e(N,{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 _e(a,e)}})}})}function Be(e,t={}){const a=o(),i=r(()=>we({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{i(),e.innerHTML=""}),a}function ke(e){return _e(we,v(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function ye(e,t={}){const a=o(),i=r(()=>ke({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{i(),e.innerHTML=""}),a}function ve(e){return{execute(t,a){const o=Pe(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=Pe(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=Pe(t);return e.commands.state(a.name,a.payload)}}}var Ae=["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","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 De(e,t={}){const a=o(),i=r(()=>_e(we,v(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{i(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}function Le(e){const[t,a]=c(e,["level","class","classList","children"]),o=t.level??2;return _e(w,v({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__*/g("<div>");function Ie(e){const[t,a]=c(e,["align","wrap","class","classList","children"]);return o=Re(),f(o,v({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),h(o,()=>t.children),o;var o}var He=/*#__PURE__*/g("<div>"),Ne={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Oe(e){const[t,a]=c(e,["align","class","style","children"]);return o=He(),f(o,v({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":Ne[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},a),!1,!0),h(o,()=>t.children),o;var o}var Ee=/*#__PURE__*/g("<div>");function We(e){const[t,a]=c(e,["align","class","classList","children"]);return o=Ee(),f(o,v({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),h(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,b as Button,oe as Checkbox,Z as ColorField,H as ColorPicker,H as ToolbarColorPicker,_ as CommandRegistry,se as DEFAULT_PALETTE,F as Dialog,We as DialogFooter,B as DocumentShell,m as EDITOR_SCHEMA_VERSION,he as Editor,W as FieldGroup,Oe as FieldRow,p as FloatingActionButton,I as FormField,fe as Grid,J as GridPicker,J as ToolbarGridPicker,Le as Heading,n as IconButton,Ce as InlineShell,X as Menu,X as ToolbarMenu,e as MenuRegistry,j as NumberField,Ae as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,we as OasisEditorAppLazy,ke as OasisEditorContainer,N as OasisEditorLoading,l as PluginCollection,me as Popover,a as RIBBON_TABS,Y as Radio,ue as RadioGroup,E as Select,E as ToolbarSelect,K as SelectField,le as Separator,le as ToolbarSeparator,S as SidePanel,Q as SidePanelBody,i as SidePanelFooter,G as SidePanelHeader,ae as SplitButton,ae as ToolbarSplitButton,Fe as Stack,O as StatusText,ee as StyleGallery,Te as SurfaceButton,xe as Tabs,pe as Text,q as TextAreaField,U as TextField,ge as ToggleChip,R as Toolbar,M as ToolbarButton,x as buildRibbonTabDefinitions,re as cloneDocument,be as commandRefName,de as createDefaultToolbarPreset,d as createDocument,ve as createEditorCommandBus,D as createHeading,Be as createOasisEditor,ye as createOasisEditorContainer,A as createParagraph,L as createTable,z as createToolbarRegistry,V as exportEditorDocumentToHtml,y as importHtmlToEditorDocument,De as mount,C as normalizeDocument,ce as projectTrackedRevisions,$ as registerToolbarRenderer,te as resolveAllTrackedRevisions,Pe as resolveCommandRef,ne as resolveTrackedRevision,t as validateDocument};
|