oasis-editor 0.0.329 → 0.0.331
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-CAUL_Qbk.js +1 -0
- package/dist/assets/{importDocxWorker-Ci29uUzG.js → importDocxWorker-DOTpDpIk.js} +1258 -1149
- package/dist/core/editorState/migrateBuiltinStyles.d.ts +7 -0
- package/dist/core/model/builtinStyles.d.ts +12 -0
- package/dist/core/model/types/styles.d.ts +6 -0
- package/dist/defaultToolbar-DYrAE6Ln.js +1 -0
- package/dist/i18n/locales/en.d.ts +11 -0
- package/dist/i18n/locales/pt-BR.d.ts +11 -0
- 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/app/essentials/builtinStyleLabel.d.ts +4 -3
- package/dist/ui/components/Toolbar/styleGalleryLayout.d.ts +4 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-CBbANoKL.js +0 -1
- package/dist/defaultToolbar-DQT_deI6.js +0 -1
package/dist/oasis-editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$i as t,$r as a,Ai as o,Ao as r,At as i,Co as s,Ct as n,Do as l,Dt as g,Fi as d,Gi as c,Io as p,Ko as m,Mt as u,Oi as b,Ot as f,Pi as h,Pn as S,Po as C,Qi as x,Qo as T,Si as P,St as k,To as v,Tt as F,Vo as w,Wo as A,Xi as D,Xo as _,Xr as y,Zi as B,Zr as L,_t as R,bt as I,ci as O,ct as H,di as M,dt as E,ea as N,ei as W,es as j,et as $,fi as z,ft as U,gt as q,ht as K,jt as V,ki as G,ko as X,kt as J,li as Q,lt as Z,mt as Y,na as ee,ni as te,ns as ae,nt as oe,oi as re,pi as ie,pt as se,ra as ne,rt as le,si as ge,st as de,t as ce,ta as pe,ti as me,ts as ue,tt as be,ui as fe,ut as he,vt as Se,wo as Ce,wt as xe,xi as Te,xt as Pe,yt as ke,zo as ve}from"./defaultToolbar-DQT_deI6.js";function Fe(e={}){const t=X(()=>e.ui?.locale??"pt-BR"),[a,o]=_(0),[r,i]=_(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return ue(()=>{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),j(()=>{t=!0}),import("./OasisEditorApp-CBbANoKL.js").then(e=>{t=!0,o(1),setTimeout(()=>i(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),m(l,{translator:t,get children(){return m(A,{get when(){return r()},get fallback(){return m(v,{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 m(a,e)}})}})}function we(e,t={}){const a=h(),o=p(()=>Fe({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Ae(e){return m(Fe,T(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function De(e,t={}){const a=h(),o=p(()=>Ae({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function _e(e){return{execute(t,a){const o=Ce(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=Ce(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=Ce(t);return e.commands.state(a.name,a.payload)}}}var ye=["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 Be(e,t={}){const a=h(),o=p(()=>m(Fe,T(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]=ae(e,["level","class","classList","children"]),o=t.level??2;return m(r,T({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__*/w("<div>");function Ie(e){const[t,a]=ae(e,["align","wrap","class","classList","children"]);return o=Re(),ve(o,T({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),C(o,()=>t.children),o;var o}var Oe=/*#__PURE__*/w("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Me(e){const[t,a]=ae(e,["align","class","style","children"]);return o=Oe(),ve(o,T({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),C(o,()=>t.children),o;var o}var Ee=/*#__PURE__*/w("<div>");function Ne(e){const[t,a]=ae(e,["align","class","classList","children"]);return o=Ee(),ve(o,T({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),C(o,()=>t.children),o;var o}var We={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"},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,n as BalloonShell,S as Button,se as Checkbox,Y as ColorField,te as ColorPicker,te as ToolbarColorPicker,G as CommandRegistry,W as DEFAULT_PALETTE,k as Dialog,Ne as DialogFooter,F as DocumentShell,D as EDITOR_SCHEMA_VERSION,b as Editor,H as FieldGroup,Me as FieldRow,u as FloatingActionButton,R as FormField,Se as Grid,me as GridPicker,me as ToolbarGridPicker,Le as Heading,g as IconButton,xe as InlineShell,Q as Menu,Q as ToolbarMenu,e as MenuRegistry,E as NumberField,ye as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,We as OASIS_TOOLBAR_ITEMS,Fe as OasisEditorAppLazy,Ae as OasisEditorContainer,v as OasisEditorLoading,o as PluginCollection,fe as Popover,ie as RIBBON_TABS,Z as Radio,he as RadioGroup,O as Select,O as ToolbarSelect,U as SelectField,ge as Separator,ge as ToolbarSeparator,f as SidePanel,J as SidePanelBody,i as SidePanelFooter,V as SidePanelHeader,re as SplitButton,re as ToolbarSplitButton,ke as Stack,I as StatusText,a as StyleGallery,P as SurfaceButton,Pe as Tabs,Te as Text,K as TextAreaField,q as TextField,de as ToggleChip,y as Toolbar,M as ToolbarButton,z as buildRibbonTabDefinitions,B as cloneDocument,s as commandRefName,ce as createDefaultToolbarPreset,x as createDocument,_e as createEditorCommandBus,t as createHeading,we as createOasisEditor,De as createOasisEditorContainer,N as createParagraph,pe as createTable,$ as createToolbarRegistry,d as exportEditorDocumentToHtml,c as importHtmlToEditorDocument,Be as mount,ee as normalizeDocument,be as projectTrackedRevisions,L as registerToolbarRenderer,oe as resolveAllTrackedRevisions,Ce as resolveCommandRef,le as resolveTrackedRevision,ne as validateDocument};
|
|
1
|
+
import{$ as e,$i as t,$o as a,Ai as o,Ao as r,At as i,Bo as s,Ci as n,Ct as l,Dt as g,Eo as d,Fi as c,Fn as p,Fo as m,Go as u,Ho as b,Ii as f,Ki as h,Lo as S,Mt as C,Oo as x,Ot as T,Qi as P,Qr as F,Si as v,St as k,To as w,Tt as A,Zi as B,Zo as _,Zr as y,_t as D,bt as L,ci as R,ct as I,di as H,dt as O,ea as E,ei as M,et as N,fi as W,ft as j,gt as $,ht as q,ia as z,ji as U,jo as K,jt as G,ki as V,kt as J,li as Z,lt as Q,mi as X,mt as Y,na as ee,ni as te,ns as ae,nt as oe,pi as re,pt as ie,qo as se,ra as ne,ri as le,rs as ge,rt as de,si as ce,st as pe,t as me,ta as ue,ti as be,ts as fe,tt as he,ui as Se,ut as Ce,vt as xe,wo as Te,wt as Pe,xt as Fe,yt as ve}from"./defaultToolbar-DYrAE6Ln.js";function ke(e={}){const t=r(()=>e.ui?.locale??"pt-BR"),[a,o]=_(0),[i,s]=_(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return ae(()=>{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),fe(()=>{t=!0}),import("./OasisEditorApp-CAUL_Qbk.js").then(e=>{t=!0,o(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),se(x,{translator:t,get children(){return se(u,{get when(){return i()},get fallback(){return se(d,{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 se(a,e)}})}})}function we(e,t={}){const a=c(),o=S(()=>ke({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Ae(e){return se(ke,a(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Be(e,t={}){const a=c(),o=S(()=>Ae({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function _e(e){return{execute(t,a){const o=w(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=w(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=w(t);return e.commands.state(a.name,a.payload)}}}var ye=["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 De(e,t={}){const o=c(),r=S(()=>se(ke,a(t,{get runtime(){return{...t.runtime,client:o}}})),e);return o.setDispose(()=>{r(),e.innerHTML=""}),Object.assign(o,{unmount:()=>o.dispose()})}function Le(e){const[t,o]=ge(e,["level","class","classList","children"]),r=t.level??2;return se(K,a({component:`h${r}`,get class(){return`oasis-editor-ui-heading ${t.class??""}`},get classList(){return{[`oasis-editor-ui-heading-${r}`]:!0,...t.classList}}},o,{get children(){return t.children}}))}var Re=/*#__PURE__*/b("<div>");function Ie(e){const[t,o]=ge(e,["align","wrap","class","classList","children"]);return r=Re(),s(r,a({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}}},o),!1,!0),m(r,()=>t.children),r;var r}var He=/*#__PURE__*/b("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ee(e){const[t,o]=ge(e,["align","class","style","children"]);return r=He(),s(r,a({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:{}}}},o),!1,!0),m(r,()=>t.children),r;var r}var Me=/*#__PURE__*/b("<div>");function Ne(e){const[t,o]=ge(e,["align","class","classList","children"]);return r=Me(),s(r,a({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},o),!1,!0),m(r,()=>t.children),r;var r}var We={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"},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,l as BalloonShell,p as Button,ie as Checkbox,Y as ColorField,le as ColorPicker,le as ToolbarColorPicker,o as CommandRegistry,be as DEFAULT_PALETTE,k as Dialog,Ne as DialogFooter,A as DocumentShell,B as EDITOR_SCHEMA_VERSION,V as Editor,I as FieldGroup,Ee as FieldRow,C as FloatingActionButton,D as FormField,xe as Grid,te as GridPicker,te as ToolbarGridPicker,Le as Heading,g as IconButton,Pe as InlineShell,Se as Menu,Se as ToolbarMenu,e as MenuRegistry,O as NumberField,ye as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,We as OASIS_TOOLBAR_ITEMS,ke as OasisEditorAppLazy,Ae as OasisEditorContainer,d as OasisEditorLoading,U as PluginCollection,H as Popover,X as RIBBON_TABS,Q as Radio,Ce as RadioGroup,Z as Select,Z as ToolbarSelect,j as SelectField,R as Separator,R as ToolbarSeparator,T as SidePanel,J as SidePanelBody,i as SidePanelFooter,G as SidePanelHeader,ce as SplitButton,ce as ToolbarSplitButton,ve as Stack,L as StatusText,M as StyleGallery,n as SurfaceButton,Fe as Tabs,v as Text,q as TextAreaField,$ as TextField,pe as ToggleChip,y as Toolbar,W as ToolbarButton,re as buildRibbonTabDefinitions,P as cloneDocument,Te as commandRefName,me as createDefaultToolbarPreset,t as createDocument,_e as createEditorCommandBus,E as createHeading,we as createOasisEditor,Be as createOasisEditorContainer,ue as createParagraph,ee as createTable,N as createToolbarRegistry,f as exportEditorDocumentToHtml,h as importHtmlToEditorDocument,De as mount,ne as normalizeDocument,he as projectTrackedRevisions,F as registerToolbarRenderer,oe as resolveAllTrackedRevisions,w as resolveCommandRef,de as resolveTrackedRevision,z as validateDocument};
|