oasis-editor 0.0.383 → 0.0.385
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-B76y-ON9.js +1 -0
- package/dist/core/document/fieldEvaluation.d.ts +54 -0
- package/dist/core/document/fieldMutation.d.ts +6 -5
- package/dist/defaultToolbar-COX52AZ2.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/sourcePackage-Dyc-Bhoh.js +1 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-DoKpcAWM.js +0 -1
- package/dist/defaultToolbar-DNFoaxfg.js +0 -1
- package/dist/sourcePackage-ChMwgXKX.js +0 -1
package/dist/oasis-editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ai as e,Ar as t,At as a,Bi as o,Br as r,Bt as i,Ct as s,Di as n,Dr as l,Dt as g,Ei as d,Et as c,Fi as p,Fr as m,Ft as u,Ht as b,Ii as f,Ir as h,Ki as S,Lr as C,Lt as x,Mi as T,Mr as P,Mt as F,Nr as B,Nt as k,Oi as A,Or as D,Ot as v,Pi as w,Pr as _,Pt as y,Ri as R,Rr as L,Rt as I,St as O,Ti as H,Tt as M,Vr as E,Vt as N,Wi as W,Xr as j,Yi as z,Zi as U,Zr as q,_t as K,ai as V,bt as $,ca as G,ct as J,da as X,dt as Y,ea as Z,fa as Q,fi as ee,ft as te,gt as ae,ii as oe,ji as re,jr as ie,jt as se,ki as ne,kt as le,li as ge,lt as de,na as ce,oa as pe,ri as me,sn as ue,t as be,ua as fe,ui as he,ut as Se,vt as Ce,wt as xe,xt as Te,yt as Pe,zr as Fe,zt as Be}from"./defaultToolbar-DNFoaxfg.js";function ke(e={}){const t=o(()=>e.ui?.locale??"pt-BR"),[a,r]=pe(0),[i,s]=pe(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return X(()=>{const e=performance.now();let t=!1;const a=()=>{if(t)return;const o=performance.now()-e;r(.9*(1-Math.exp(-o/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),fe(()=>{t=!0}),import("./OasisEditorApp-DoKpcAWM.js").then(e=>{t=!0,r(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),ce(R,{translator:t,get children(){return ce(Z,{get when(){return i()},get fallback(){return ce(f,{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 ce(a,e)}})}})}function Ae(e,t={}){const a=ge(),o=S(()=>ke({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function De(e){return ce(ke,G(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function ve(e,t={}){const a=ge(),o=S(()=>De({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function we(e){return{execute(t,a){const o=p(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=p(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=p(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","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","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 ye(e,t={}){const a=ge(),o=S(()=>ce(ke,G(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/U("<div>");function Le(e){const[t,a]=Q(e,["align","wrap","class","classList","children"]);return o=Re(),z(o,G({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),W(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/U("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function He(e){const[t,a]=Q(e,["align","class","style","children"]);return o=Ie(),z(o,G({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),W(o,()=>t.children),o;var o}var Me=/*#__PURE__*/U("<div>");function Ee(e){const[t,a]=Q(e,["align","class","classList","children"]);return o=Me(),z(o,G({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),W(o,()=>t.children),o;var o}var Ne={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,k as BalloonShell,ue as Button,O as Checkbox,s as ColorField,B as ColorPicker,B as ToolbarColorPicker,oe as CommandRegistry,ie as DEFAULT_PALETTE,F as Dialog,Ee as DialogFooter,u as DocumentShell,H as EDITOR_SCHEMA_VERSION,me as Editor,K as FieldGroup,He as FieldRow,b as FloatingActionButton,c as FormField,g as Grid,P as GridPicker,P as ToolbarGridPicker,a as Heading,x as IconButton,y as InlineShell,C as Menu,C as ToolbarMenu,J as MenuRegistry,$ as NumberField,_e as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Ne as OASIS_TOOLBAR_ITEMS,ke as OasisEditorAppLazy,De as OasisEditorContainer,f as OasisEditorLoading,V as PluginCollection,L as Popover,E as RIBBON_TABS,Ce as Radio,Pe as RadioGroup,h as Select,h as ToolbarSelect,Te as SelectField,m as Separator,m as ToolbarSeparator,I as SidePanel,Be as SidePanelBody,i as SidePanelFooter,N as SidePanelHeader,_ as SplitButton,_ as ToolbarSplitButton,v as Stack,le as StatusText,t as StyleGallery,q as SurfaceButton,se as Tabs,j as Text,xe as TextAreaField,M as TextField,ae as ToggleChip,l as Toolbar,Fe as ToolbarButton,r as buildRibbonTabDefinitions,d as cloneDocument,w as commandRefName,be as createDefaultToolbarPreset,n as createDocument,we as createEditorCommandBus,A as createHeading,Ae as createOasisEditor,ve as createOasisEditorContainer,ne as createParagraph,e as createTable,de as createToolbarRegistry,he as exportEditorDocumentToHtml,ee as importHtmlToEditorDocument,ye as mount,re as normalizeDocument,Se as projectTrackedRevisions,D as registerToolbarRenderer,Y as resolveAllTrackedRevisions,p as resolveCommandRef,te as resolveTrackedRevision,T as validateDocument};
|
|
1
|
+
import{Ai as e,At as t,Br as a,Bt as o,Ct as r,Di as i,Dt as s,Ei as n,Et as l,Fi as g,Fr as d,Ft as c,Gi as p,Hr as m,Ht as u,Ii as b,Ir as f,It as h,Li as S,Lr as C,Mi as x,Mr as T,Mt as P,Ni as F,Nr as k,Nt as B,Oi as v,Or as w,Ot as A,Pr as D,Pt as _,Qi as y,Qr as R,Rr as L,Rt as I,St as H,Tt as O,Ut as M,Vi as N,Vr as E,Vt as W,Xi as j,Zr as z,_t as U,ai as q,bt as V,cn as K,da as $,di as G,dt as J,fa as Q,ft as X,ii as Y,ji as Z,jr as ee,jt as te,ki as ae,kr as oe,kt as re,la as ie,lt as se,oi as ne,pa as le,pi as ge,pt as de,qi as ce,ra as pe,sa as me,t as ue,ta as be,ui as fe,ut as he,vt as Se,wt as Ce,xt as xe,yt as Te,zi as Pe,zr as Fe,zt as ke}from"./defaultToolbar-COX52AZ2.js";function Be(e={}){const t=N(()=>e.ui?.locale??"pt-BR"),[a,o]=me(0),[r,i]=me(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return Q(()=>{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),$(()=>{t=!0}),import("./OasisEditorApp-B76y-ON9.js").then(e=>{t=!0,o(1),setTimeout(()=>i(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),pe(Pe,{translator:t,get children(){return pe(be,{get when(){return r()},get fallback(){return pe(S,{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 pe(a,e)}})}})}function ve(e,t={}){const a=fe(),o=ce(()=>Be({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function we(e){return pe(Be,ie(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Ae(e,t={}){const a=fe(),o=ce(()=>we({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function De(e){return{execute(t,a){const o=b(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=b(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=b(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","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","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 ye(e,t={}){const a=fe(),o=ce(()=>pe(Be,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__*/y("<div>");function Le(e){const[t,a]=le(e,["align","wrap","class","classList","children"]);return o=Re(),j(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),p(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/y("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Oe(e){const[t,a]=le(e,["align","class","style","children"]);return o=Ie(),j(o,ie({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":He[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},a),!1,!0),p(o,()=>t.children),o;var o}var Me=/*#__PURE__*/y("<div>");function Ne(e){const[t,a]=le(e,["align","class","classList","children"]);return o=Me(),j(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),p(o,()=>t.children),o;var o}var Ee={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,_ as BalloonShell,K as Button,r as Checkbox,Ce as ColorField,D as ColorPicker,D as ToolbarColorPicker,q as CommandRegistry,T as DEFAULT_PALETTE,B as Dialog,Ne as DialogFooter,h as DocumentShell,n as EDITOR_SCHEMA_VERSION,Y as Editor,Se as FieldGroup,Oe as FieldRow,M as FloatingActionButton,s as FormField,A as Grid,k as GridPicker,k as ToolbarGridPicker,te as Heading,I as IconButton,c as InlineShell,L as Menu,L as ToolbarMenu,se as MenuRegistry,xe as NumberField,_e as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Ee as OASIS_TOOLBAR_ITEMS,Be as OasisEditorAppLazy,we as OasisEditorContainer,S as OasisEditorLoading,ne as PluginCollection,Fe as Popover,m as RIBBON_TABS,Te as Radio,V as RadioGroup,C as Select,C as ToolbarSelect,H as SelectField,f as Separator,f as ToolbarSeparator,ke as SidePanel,o as SidePanelBody,W as SidePanelFooter,u as SidePanelHeader,d as SplitButton,d as ToolbarSplitButton,re as Stack,t as StatusText,ee as StyleGallery,R as SurfaceButton,P as Tabs,z as Text,O as TextAreaField,l as TextField,U as ToggleChip,w as Toolbar,a as ToolbarButton,E as buildRibbonTabDefinitions,i as cloneDocument,g as commandRefName,ue as createDefaultToolbarPreset,v as createDocument,De as createEditorCommandBus,ae as createHeading,ve as createOasisEditor,Ae as createOasisEditorContainer,e as createParagraph,Z as createTable,he as createToolbarRegistry,G as exportEditorDocumentToHtml,ge as importHtmlToEditorDocument,ye as mount,x as normalizeDocument,J as projectTrackedRevisions,oe as registerToolbarRenderer,X as resolveAllTrackedRevisions,b as resolveCommandRef,de as resolveTrackedRevision,F as validateDocument};
|