oasis-editor 0.0.15 → 0.0.17
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-C8YG4Yzr.js → OasisEditorApp-Cwoo0WV0.js} +2 -2
- package/dist/i18n/locales/en.d.ts +42 -0
- package/dist/i18n/locales/pt-BR.d.ts +42 -0
- package/dist/{index-Dqm-2RUA.js → index-CBbhzffQ.js} +143 -38
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/components/Toolbar/underlineStyles.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { n as normalizeSelection, g as getParagraphs, c as createEditorParagraphFromRuns, a as getParagraphLength, b as createEditorRun, d as getDocumentSections, e as createEditorStyledRun, f as getParagraphText, h as getActiveZone, i as getActiveSectionIndex, p as positionToParagraphOffset, j as paragraphOffsetToPosition, k as clampPosition, l as findParagraphIndex, m as createCollapsedSelection, o as isSelectionCollapsed, q as createEditorParagraph, r as getBlockParagraphs, s as findParagraphTableLocation, t as buildTableCellLayout, u as createEditorTableCell, v as createEditorTable, w as createEditorTableRow, x as underlineStyleToCssDecorationStyle, y as resolveImageSrc, z as createEditorFootnote, A as createFootnoteReferenceRun, B as renumberFootnotes, C as iterateFootnoteReferenceRuns, D as getFootnoteDisplayMarker, E as createSignal, F as createEffect, G as onCleanup, H as buildCanvasLayoutSnapshot, I as on, J as onMount, K as debounce, L as unwrap, M as getDocumentParagraphs, N as getDocumentSectionsCanonical, O as createEditorDocument, P as getPageContentWidth, Q as getDocumentPageSettings, R as getTableCellContentWidthForParagraph, S as resolveResizedDimensions, T as resolveTextBoxRenderHeight, U as resolveEffectiveParagraphStyle, V as resolveEffectiveTextStyleForParagraph, W as iterateEndnoteReferenceRuns, X as JSZip, Y as imageContentTypeDefaults, Z as imageExtensionFromMime, _ as pxToPt$1, $ as buildSegmentTable, a0 as buildCanvasTableLayout, a1 as resolveFloatingObjectRect, a2 as getTextBoxFloatingGeometry, a3 as getPresetPathSegments, a4 as projectBlocksLayout, a5 as textStyleToFontSizePt, a6 as PX_PER_POINT, a7 as DEFAULT_FONT_SIZE_PX, a8 as isDoubleUnderlineStyle, a9 as isWavyUnderlineStyle, aa as underlineStyleLineWidthPx, ab as underlineStyleDashArray, ac as getListLabelInset, ad as getParagraphBorderInsets, ae as normalizeFamily, af as ROBOTO_FONT_FILES, ag as loadFontAsset, ah as OFFICE_COMPAT_FONT_FAMILIES, ai as buildSfnt, aj as defaultFontDecoderRegistry, ak as SfntFontProgram, al as collectPdfFontFamilies, am as projectDocumentLayout, an as getPageHeaderZoneTop, ao as getPageBodyTop, ap as findFootnoteReference, aq as FOOTNOTE_MARKER_GUTTER_PX, ar as resolveImporterForFile, as as createEditorStateFromDocument, at as getDocumentParagraphsCanonical, au as getToolbarStyleState, av as STANDARD_FONT_SIZES_PT, aw as fontSizePxToPt, ax as probeLocalFontFamilies, ay as createInitialEditorState, az as parseFontSizePtToPx, aA as formatFontSizePt, aB as listKindForTag, aC as isParagraphTag, aD as collectInlineRuns, aE as parseParagraphStyle, aF as t, aG as preciseFontModeVersion, aH as isPreciseFontModeEnabled, aI as togglePreciseFontMode, aJ as nextFontSizePt, aK as previousFontSizePt, aL as fontSizePtToPx, aM as createDefaultToolbarPreset, aN as defaultMenuItems, aO as MenuRegistry, aP as createToolbarRegistry, aQ as Editor, aR as resolveCommandRef, aS as commandRefName, aT as InlineShell, aU as BalloonShell, aV as DocumentShell, aW as createMemo, aX as getCaretRectFromSnapshot, aY as getParagraphRectFromSnapshot, aZ as createComponent, a_ as CaretOverlay, a$ as Show, b0 as createRenderEffect, b1 as style, b2 as setAttribute, b3 as setStyleProperty, b4 as memo, b5 as template, b6 as insert, b7 as use, b8 as addEventListener, b9 as Dialog, ba as delegateEvents, bb as className, bc as For, bd as UNDERLINE_STYLE_OPTIONS, be as Tabs, bf as measureParagraphMinContentWidthPx, bg as getEditableBlocksForZone, bh as findParagraphLocation, bi as createSectionBoundaryParagraph, bj as normalizePageSettings, bk as DEFAULT_EDITOR_PAGE_SETTINGS, bl as markStart, bm as markEnd, bn as getParagraphEntries, bo as getParagraphById, bp as PluginUiHost, bq as OasisEditorEditor, br as perfTimer, bs as OasisBrandMark, bt as setPreciseFontPreference, bu as setWelcomeSeen, bv as enablePreciseFontMode, bw as createOasisEditorClient, bx as setLocale, by as startLongTaskObserver, bz as installGlobalReport, bA as applyStoredPreciseFontPreference, bB as getWelcomeSeen, bC as isLocalFontAccessSupported, bD as EDITOR_SCROLL_PADDING_PX, bE as Toolbar, bF as OasisEditorLoading, bG as createEditorLogger, bH as getCachedCanvasImage, bI as registerDomStatsSurface } from "./index-
|
|
4
|
+
import { n as normalizeSelection, g as getParagraphs, c as createEditorParagraphFromRuns, a as getParagraphLength, b as createEditorRun, d as getDocumentSections, e as createEditorStyledRun, f as getParagraphText, h as getActiveZone, i as getActiveSectionIndex, p as positionToParagraphOffset, j as paragraphOffsetToPosition, k as clampPosition, l as findParagraphIndex, m as createCollapsedSelection, o as isSelectionCollapsed, q as createEditorParagraph, r as getBlockParagraphs, s as findParagraphTableLocation, t as buildTableCellLayout, u as createEditorTableCell, v as createEditorTable, w as createEditorTableRow, x as underlineStyleToCssDecorationStyle, y as resolveImageSrc, z as createEditorFootnote, A as createFootnoteReferenceRun, B as renumberFootnotes, C as iterateFootnoteReferenceRuns, D as getFootnoteDisplayMarker, E as createSignal, F as createEffect, G as onCleanup, H as buildCanvasLayoutSnapshot, I as on, J as onMount, K as debounce, L as unwrap, M as getDocumentParagraphs, N as getDocumentSectionsCanonical, O as createEditorDocument, P as getPageContentWidth, Q as getDocumentPageSettings, R as getTableCellContentWidthForParagraph, S as resolveResizedDimensions, T as resolveTextBoxRenderHeight, U as resolveEffectiveParagraphStyle, V as resolveEffectiveTextStyleForParagraph, W as iterateEndnoteReferenceRuns, X as JSZip, Y as imageContentTypeDefaults, Z as imageExtensionFromMime, _ as pxToPt$1, $ as buildSegmentTable, a0 as buildCanvasTableLayout, a1 as resolveFloatingObjectRect, a2 as getTextBoxFloatingGeometry, a3 as getPresetPathSegments, a4 as projectBlocksLayout, a5 as textStyleToFontSizePt, a6 as PX_PER_POINT, a7 as DEFAULT_FONT_SIZE_PX, a8 as isDoubleUnderlineStyle, a9 as isWavyUnderlineStyle, aa as underlineStyleLineWidthPx, ab as underlineStyleDashArray, ac as getListLabelInset, ad as getParagraphBorderInsets, ae as normalizeFamily, af as ROBOTO_FONT_FILES, ag as loadFontAsset, ah as OFFICE_COMPAT_FONT_FAMILIES, ai as buildSfnt, aj as defaultFontDecoderRegistry, ak as SfntFontProgram, al as collectPdfFontFamilies, am as projectDocumentLayout, an as getPageHeaderZoneTop, ao as getPageBodyTop, ap as findFootnoteReference, aq as FOOTNOTE_MARKER_GUTTER_PX, ar as resolveImporterForFile, as as createEditorStateFromDocument, at as getDocumentParagraphsCanonical, au as getToolbarStyleState, av as STANDARD_FONT_SIZES_PT, aw as fontSizePxToPt, ax as probeLocalFontFamilies, ay as createInitialEditorState, az as parseFontSizePtToPx, aA as formatFontSizePt, aB as listKindForTag, aC as isParagraphTag, aD as collectInlineRuns, aE as parseParagraphStyle, aF as t, aG as preciseFontModeVersion, aH as isPreciseFontModeEnabled, aI as togglePreciseFontMode, aJ as nextFontSizePt, aK as previousFontSizePt, aL as fontSizePtToPx, aM as createDefaultToolbarPreset, aN as defaultMenuItems, aO as MenuRegistry, aP as createToolbarRegistry, aQ as Editor, aR as resolveCommandRef, aS as commandRefName, aT as InlineShell, aU as BalloonShell, aV as DocumentShell, aW as createMemo, aX as getCaretRectFromSnapshot, aY as getParagraphRectFromSnapshot, aZ as createComponent, a_ as CaretOverlay, a$ as Show, b0 as createRenderEffect, b1 as style, b2 as setAttribute, b3 as setStyleProperty, b4 as memo, b5 as template, b6 as insert, b7 as use, b8 as addEventListener, b9 as Dialog, ba as delegateEvents, bb as className, bc as For, bd as UNDERLINE_STYLE_OPTIONS, be as Tabs, bf as measureParagraphMinContentWidthPx, bg as getEditableBlocksForZone, bh as findParagraphLocation, bi as createSectionBoundaryParagraph, bj as normalizePageSettings, bk as DEFAULT_EDITOR_PAGE_SETTINGS, bl as markStart, bm as markEnd, bn as getParagraphEntries, bo as getParagraphById, bp as PluginUiHost, bq as OasisEditorEditor, br as perfTimer, bs as OasisBrandMark, bt as setPreciseFontPreference, bu as setWelcomeSeen, bv as enablePreciseFontMode, bw as createOasisEditorClient, bx as setLocale, by as startLongTaskObserver, bz as installGlobalReport, bA as applyStoredPreciseFontPreference, bB as getWelcomeSeen, bC as isLocalFontAccessSupported, bD as EDITOR_SCROLL_PADDING_PX, bE as Toolbar, bF as OasisEditorLoading, bG as createEditorLogger, bH as getCachedCanvasImage, bI as registerDomStatsSurface } from "./index-CBbhzffQ.js";
|
|
5
5
|
function getSelectedObjectRun(state, predicate) {
|
|
6
6
|
const normalized = normalizeSelection(state);
|
|
7
7
|
if (normalized.isCollapsed || normalized.startIndex !== normalized.endIndex || normalized.endParagraphOffset - normalized.startParagraphOffset !== 1) {
|
|
@@ -42757,7 +42757,7 @@ function FontTab(props) {
|
|
|
42757
42757
|
each: UNDERLINE_STYLE_OPTIONS,
|
|
42758
42758
|
children: (option) => (() => {
|
|
42759
42759
|
var _el$84 = _tmpl$2$5();
|
|
42760
|
-
insert(_el$84, () => option.
|
|
42760
|
+
insert(_el$84, () => t(option.labelKey));
|
|
42761
42761
|
createRenderEffect(() => _el$84.value = option.value);
|
|
42762
42762
|
return _el$84;
|
|
42763
42763
|
})()
|
|
@@ -263,6 +263,48 @@ export declare const en: {
|
|
|
263
263
|
"dialog.font.styleItalic": string;
|
|
264
264
|
"dialog.font.styleBold": string;
|
|
265
265
|
"dialog.font.styleBoldItalic": string;
|
|
266
|
+
"ribbon.tab.file": string;
|
|
267
|
+
"ribbon.tab.home": string;
|
|
268
|
+
"ribbon.tab.insert": string;
|
|
269
|
+
"ribbon.tab.draw": string;
|
|
270
|
+
"ribbon.tab.layout": string;
|
|
271
|
+
"ribbon.tab.references": string;
|
|
272
|
+
"ribbon.tab.collaboration": string;
|
|
273
|
+
"ribbon.tab.protection": string;
|
|
274
|
+
"ribbon.tab.view": string;
|
|
275
|
+
"ribbon.tab.plugins": string;
|
|
276
|
+
"ribbon.tab.ai": string;
|
|
277
|
+
"ribbon.group.clipboard": string;
|
|
278
|
+
"ribbon.group.font": string;
|
|
279
|
+
"ribbon.group.paragraph": string;
|
|
280
|
+
"ribbon.group.styles": string;
|
|
281
|
+
"ribbon.group.illustrations": string;
|
|
282
|
+
"ribbon.group.tables": string;
|
|
283
|
+
"ribbon.group.links": string;
|
|
284
|
+
"ribbon.group.footnotes": string;
|
|
285
|
+
"ribbon.group.accessibility": string;
|
|
286
|
+
"ribbon.group.document": string;
|
|
287
|
+
"ribbon.group.table": string;
|
|
288
|
+
"ribbon.group.section": string;
|
|
289
|
+
"ribbon.group.general": string;
|
|
290
|
+
"toolbar.exportDocx": string;
|
|
291
|
+
"toolbar.exportPdf": string;
|
|
292
|
+
"underline.style.single": string;
|
|
293
|
+
"underline.style.double": string;
|
|
294
|
+
"underline.style.thick": string;
|
|
295
|
+
"underline.style.dotted": string;
|
|
296
|
+
"underline.style.dottedHeavy": string;
|
|
297
|
+
"underline.style.dashed": string;
|
|
298
|
+
"underline.style.dashedHeavy": string;
|
|
299
|
+
"underline.style.longDashes": string;
|
|
300
|
+
"underline.style.longDashesHeavy": string;
|
|
301
|
+
"underline.style.dotDash": string;
|
|
302
|
+
"underline.style.dotDashHeavy": string;
|
|
303
|
+
"underline.style.dotDotDash": string;
|
|
304
|
+
"underline.style.dotDotDashHeavy": string;
|
|
305
|
+
"underline.style.wave": string;
|
|
306
|
+
"underline.style.waveHeavy": string;
|
|
307
|
+
"underline.style.waveDouble": string;
|
|
266
308
|
"dialog.font.underlineStyle": string;
|
|
267
309
|
"dialog.font.underlineColor": string;
|
|
268
310
|
"dialog.font.doubleStrike": string;
|
|
@@ -263,6 +263,48 @@ export declare const ptBR: {
|
|
|
263
263
|
"dialog.font.styleItalic": string;
|
|
264
264
|
"dialog.font.styleBold": string;
|
|
265
265
|
"dialog.font.styleBoldItalic": string;
|
|
266
|
+
"ribbon.tab.file": string;
|
|
267
|
+
"ribbon.tab.home": string;
|
|
268
|
+
"ribbon.tab.insert": string;
|
|
269
|
+
"ribbon.tab.draw": string;
|
|
270
|
+
"ribbon.tab.layout": string;
|
|
271
|
+
"ribbon.tab.references": string;
|
|
272
|
+
"ribbon.tab.collaboration": string;
|
|
273
|
+
"ribbon.tab.protection": string;
|
|
274
|
+
"ribbon.tab.view": string;
|
|
275
|
+
"ribbon.tab.plugins": string;
|
|
276
|
+
"ribbon.tab.ai": string;
|
|
277
|
+
"ribbon.group.clipboard": string;
|
|
278
|
+
"ribbon.group.font": string;
|
|
279
|
+
"ribbon.group.paragraph": string;
|
|
280
|
+
"ribbon.group.styles": string;
|
|
281
|
+
"ribbon.group.illustrations": string;
|
|
282
|
+
"ribbon.group.tables": string;
|
|
283
|
+
"ribbon.group.links": string;
|
|
284
|
+
"ribbon.group.footnotes": string;
|
|
285
|
+
"ribbon.group.accessibility": string;
|
|
286
|
+
"ribbon.group.document": string;
|
|
287
|
+
"ribbon.group.table": string;
|
|
288
|
+
"ribbon.group.section": string;
|
|
289
|
+
"ribbon.group.general": string;
|
|
290
|
+
"toolbar.exportDocx": string;
|
|
291
|
+
"toolbar.exportPdf": string;
|
|
292
|
+
"underline.style.single": string;
|
|
293
|
+
"underline.style.double": string;
|
|
294
|
+
"underline.style.thick": string;
|
|
295
|
+
"underline.style.dotted": string;
|
|
296
|
+
"underline.style.dottedHeavy": string;
|
|
297
|
+
"underline.style.dashed": string;
|
|
298
|
+
"underline.style.dashedHeavy": string;
|
|
299
|
+
"underline.style.longDashes": string;
|
|
300
|
+
"underline.style.longDashesHeavy": string;
|
|
301
|
+
"underline.style.dotDash": string;
|
|
302
|
+
"underline.style.dotDashHeavy": string;
|
|
303
|
+
"underline.style.dotDotDash": string;
|
|
304
|
+
"underline.style.dotDotDashHeavy": string;
|
|
305
|
+
"underline.style.wave": string;
|
|
306
|
+
"underline.style.waveHeavy": string;
|
|
307
|
+
"underline.style.waveDouble": string;
|
|
266
308
|
"dialog.font.underlineStyle": string;
|
|
267
309
|
"dialog.font.underlineColor": string;
|
|
268
310
|
"dialog.font.doubleStrike": string;
|
|
@@ -1687,6 +1687,51 @@ const en = {
|
|
|
1687
1687
|
"dialog.font.styleItalic": "Italic",
|
|
1688
1688
|
"dialog.font.styleBold": "Bold",
|
|
1689
1689
|
"dialog.font.styleBoldItalic": "Bold Italic",
|
|
1690
|
+
// Ribbon tabs
|
|
1691
|
+
"ribbon.tab.file": "File",
|
|
1692
|
+
"ribbon.tab.home": "Home",
|
|
1693
|
+
"ribbon.tab.insert": "Insert",
|
|
1694
|
+
"ribbon.tab.draw": "Draw",
|
|
1695
|
+
"ribbon.tab.layout": "Layout",
|
|
1696
|
+
"ribbon.tab.references": "References",
|
|
1697
|
+
"ribbon.tab.collaboration": "Collaboration",
|
|
1698
|
+
"ribbon.tab.protection": "Protection",
|
|
1699
|
+
"ribbon.tab.view": "View",
|
|
1700
|
+
"ribbon.tab.plugins": "Plugins",
|
|
1701
|
+
"ribbon.tab.ai": "AI",
|
|
1702
|
+
// Ribbon groups
|
|
1703
|
+
"ribbon.group.clipboard": "Clipboard",
|
|
1704
|
+
"ribbon.group.font": "Font",
|
|
1705
|
+
"ribbon.group.paragraph": "Paragraph",
|
|
1706
|
+
"ribbon.group.styles": "Styles",
|
|
1707
|
+
"ribbon.group.illustrations": "Illustrations",
|
|
1708
|
+
"ribbon.group.tables": "Tables",
|
|
1709
|
+
"ribbon.group.links": "Links",
|
|
1710
|
+
"ribbon.group.footnotes": "Footnotes",
|
|
1711
|
+
"ribbon.group.accessibility": "Accessibility",
|
|
1712
|
+
"ribbon.group.document": "Document",
|
|
1713
|
+
"ribbon.group.table": "Table",
|
|
1714
|
+
"ribbon.group.section": "Section",
|
|
1715
|
+
"ribbon.group.general": "General",
|
|
1716
|
+
// Export
|
|
1717
|
+
"toolbar.exportDocx": "Export DOCX",
|
|
1718
|
+
"toolbar.exportPdf": "Export PDF",
|
|
1719
|
+
"underline.style.single": "Single",
|
|
1720
|
+
"underline.style.double": "Double",
|
|
1721
|
+
"underline.style.thick": "Thick",
|
|
1722
|
+
"underline.style.dotted": "Dotted",
|
|
1723
|
+
"underline.style.dottedHeavy": "Dotted (Heavy)",
|
|
1724
|
+
"underline.style.dashed": "Dashed",
|
|
1725
|
+
"underline.style.dashedHeavy": "Dashed (Heavy)",
|
|
1726
|
+
"underline.style.longDashes": "Long Dashes",
|
|
1727
|
+
"underline.style.longDashesHeavy": "Long Dashes (Heavy)",
|
|
1728
|
+
"underline.style.dotDash": "Dot-Dash",
|
|
1729
|
+
"underline.style.dotDashHeavy": "Dot-Dash (Heavy)",
|
|
1730
|
+
"underline.style.dotDotDash": "Dot-Dot-Dash",
|
|
1731
|
+
"underline.style.dotDotDashHeavy": "Dot-Dot-Dash (Heavy)",
|
|
1732
|
+
"underline.style.wave": "Wave",
|
|
1733
|
+
"underline.style.waveHeavy": "Wave (Heavy)",
|
|
1734
|
+
"underline.style.waveDouble": "Wave (Double)",
|
|
1690
1735
|
"dialog.font.underlineStyle": "Underline style",
|
|
1691
1736
|
"dialog.font.underlineColor": "Underline color",
|
|
1692
1737
|
"dialog.font.doubleStrike": "Double strikethrough",
|
|
@@ -2087,6 +2132,51 @@ const ptBR = {
|
|
|
2087
2132
|
"dialog.font.styleItalic": "Itálico",
|
|
2088
2133
|
"dialog.font.styleBold": "Negrito",
|
|
2089
2134
|
"dialog.font.styleBoldItalic": "Negrito Itálico",
|
|
2135
|
+
// Ribbon tabs
|
|
2136
|
+
"ribbon.tab.file": "Arquivo",
|
|
2137
|
+
"ribbon.tab.home": "Início",
|
|
2138
|
+
"ribbon.tab.insert": "Inserir",
|
|
2139
|
+
"ribbon.tab.draw": "Desenhar",
|
|
2140
|
+
"ribbon.tab.layout": "Layout",
|
|
2141
|
+
"ribbon.tab.references": "Referências",
|
|
2142
|
+
"ribbon.tab.collaboration": "Colaboração",
|
|
2143
|
+
"ribbon.tab.protection": "Proteção",
|
|
2144
|
+
"ribbon.tab.view": "Exibir",
|
|
2145
|
+
"ribbon.tab.plugins": "Plugins",
|
|
2146
|
+
"ribbon.tab.ai": "IA",
|
|
2147
|
+
// Ribbon groups
|
|
2148
|
+
"ribbon.group.clipboard": "Área de Transferência",
|
|
2149
|
+
"ribbon.group.font": "Fonte",
|
|
2150
|
+
"ribbon.group.paragraph": "Parágrafo",
|
|
2151
|
+
"ribbon.group.styles": "Estilos",
|
|
2152
|
+
"ribbon.group.illustrations": "Ilustrações",
|
|
2153
|
+
"ribbon.group.tables": "Tabelas",
|
|
2154
|
+
"ribbon.group.links": "Links",
|
|
2155
|
+
"ribbon.group.footnotes": "Notas de Rodapé",
|
|
2156
|
+
"ribbon.group.accessibility": "Acessibilidade",
|
|
2157
|
+
"ribbon.group.document": "Documento",
|
|
2158
|
+
"ribbon.group.table": "Tabela",
|
|
2159
|
+
"ribbon.group.section": "Seção",
|
|
2160
|
+
"ribbon.group.general": "Geral",
|
|
2161
|
+
// Export
|
|
2162
|
+
"toolbar.exportDocx": "Exportar DOCX",
|
|
2163
|
+
"toolbar.exportPdf": "Exportar PDF",
|
|
2164
|
+
"underline.style.single": "Simples",
|
|
2165
|
+
"underline.style.double": "Duplo",
|
|
2166
|
+
"underline.style.thick": "Espesso",
|
|
2167
|
+
"underline.style.dotted": "Pontilhado",
|
|
2168
|
+
"underline.style.dottedHeavy": "Pontilhado (Espesso)",
|
|
2169
|
+
"underline.style.dashed": "Tracejado",
|
|
2170
|
+
"underline.style.dashedHeavy": "Tracejado (Espesso)",
|
|
2171
|
+
"underline.style.longDashes": "Traços longos",
|
|
2172
|
+
"underline.style.longDashesHeavy": "Traços longos (Espesso)",
|
|
2173
|
+
"underline.style.dotDash": "Ponto-traço",
|
|
2174
|
+
"underline.style.dotDashHeavy": "Ponto-traço (Espesso)",
|
|
2175
|
+
"underline.style.dotDotDash": "Ponto-ponto-traço",
|
|
2176
|
+
"underline.style.dotDotDashHeavy": "Ponto-ponto-traço (Espesso)",
|
|
2177
|
+
"underline.style.wave": "Ondulado",
|
|
2178
|
+
"underline.style.waveHeavy": "Ondulado (Espesso)",
|
|
2179
|
+
"underline.style.waveDouble": "Ondulado duplo",
|
|
2090
2180
|
"dialog.font.underlineStyle": "Estilo do sublinhado",
|
|
2091
2181
|
"dialog.font.underlineColor": "Cor do sublinhado",
|
|
2092
2182
|
"dialog.font.doubleStrike": "Tachado duplo",
|
|
@@ -2326,7 +2416,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2326
2416
|
onCleanup(() => {
|
|
2327
2417
|
cancelled = true;
|
|
2328
2418
|
});
|
|
2329
|
-
import("./OasisEditorApp-
|
|
2419
|
+
import("./OasisEditorApp-Cwoo0WV0.js").then((m) => {
|
|
2330
2420
|
cancelled = true;
|
|
2331
2421
|
setProgress(1);
|
|
2332
2422
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -18431,21 +18521,36 @@ const RIBBON_TABS = [
|
|
|
18431
18521
|
"plugins",
|
|
18432
18522
|
"ai"
|
|
18433
18523
|
];
|
|
18434
|
-
const
|
|
18435
|
-
file: "
|
|
18436
|
-
home: "
|
|
18437
|
-
insert: "
|
|
18438
|
-
draw: "
|
|
18439
|
-
layout: "
|
|
18440
|
-
references: "
|
|
18441
|
-
collaboration: "
|
|
18442
|
-
protection: "
|
|
18443
|
-
view: "
|
|
18444
|
-
plugins: "
|
|
18445
|
-
ai: "
|
|
18524
|
+
const TAB_LABEL_KEYS = {
|
|
18525
|
+
file: "ribbon.tab.file",
|
|
18526
|
+
home: "ribbon.tab.home",
|
|
18527
|
+
insert: "ribbon.tab.insert",
|
|
18528
|
+
draw: "ribbon.tab.draw",
|
|
18529
|
+
layout: "ribbon.tab.layout",
|
|
18530
|
+
references: "ribbon.tab.references",
|
|
18531
|
+
collaboration: "ribbon.tab.collaboration",
|
|
18532
|
+
protection: "ribbon.tab.protection",
|
|
18533
|
+
view: "ribbon.tab.view",
|
|
18534
|
+
plugins: "ribbon.tab.plugins",
|
|
18535
|
+
ai: "ribbon.tab.ai"
|
|
18536
|
+
};
|
|
18537
|
+
const GROUP_LABEL_KEYS = {
|
|
18538
|
+
clipboard: "ribbon.group.clipboard",
|
|
18539
|
+
font: "ribbon.group.font",
|
|
18540
|
+
paragraph: "ribbon.group.paragraph",
|
|
18541
|
+
styles: "ribbon.group.styles",
|
|
18542
|
+
illustrations: "ribbon.group.illustrations",
|
|
18543
|
+
tables: "ribbon.group.tables",
|
|
18544
|
+
links: "ribbon.group.links",
|
|
18545
|
+
footnotes: "ribbon.group.footnotes",
|
|
18546
|
+
accessibility: "ribbon.group.accessibility",
|
|
18547
|
+
document: "ribbon.group.document",
|
|
18548
|
+
table: "ribbon.group.table",
|
|
18549
|
+
section: "ribbon.group.section",
|
|
18550
|
+
general: "ribbon.group.general"
|
|
18446
18551
|
};
|
|
18447
18552
|
const RIBBON_TAB_DEFINITIONS = RIBBON_TABS.map(
|
|
18448
|
-
(id) => ({ id, label:
|
|
18553
|
+
(id) => ({ id, label: t(TAB_LABEL_KEYS[id]) })
|
|
18449
18554
|
);
|
|
18450
18555
|
const DEFAULT_RIBBON_TAB = "plugins";
|
|
18451
18556
|
const DEFAULT_RIBBON_GROUP = "general";
|
|
@@ -18489,7 +18594,7 @@ function normalizeRibbonRow(row) {
|
|
|
18489
18594
|
return row === 2 ? 2 : DEFAULT_RIBBON_ROW;
|
|
18490
18595
|
}
|
|
18491
18596
|
function ribbonGroupLabel(group) {
|
|
18492
|
-
return
|
|
18597
|
+
return t(GROUP_LABEL_KEYS[group] ?? group);
|
|
18493
18598
|
}
|
|
18494
18599
|
function buildRibbonGroups(items, tab) {
|
|
18495
18600
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -36463,58 +36568,58 @@ function parseFontSizePtToPx(pt) {
|
|
|
36463
36568
|
return fontSizePtToPx(value);
|
|
36464
36569
|
}
|
|
36465
36570
|
const UNDERLINE_STYLE_OPTIONS = [
|
|
36466
|
-
{ value: "single",
|
|
36571
|
+
{ value: "single", labelKey: "underline.style.single", preview: { borderStyle: "solid" } },
|
|
36467
36572
|
{
|
|
36468
36573
|
value: "double",
|
|
36469
|
-
|
|
36574
|
+
labelKey: "underline.style.double",
|
|
36470
36575
|
preview: { borderStyle: "double", borderBottomWidth: "3px" }
|
|
36471
36576
|
},
|
|
36472
36577
|
{
|
|
36473
36578
|
value: "thick",
|
|
36474
|
-
|
|
36579
|
+
labelKey: "underline.style.thick",
|
|
36475
36580
|
preview: { borderStyle: "solid", borderBottomWidth: "3px" }
|
|
36476
36581
|
},
|
|
36477
|
-
{ value: "dotted",
|
|
36582
|
+
{ value: "dotted", labelKey: "underline.style.dotted", preview: { borderStyle: "dotted" } },
|
|
36478
36583
|
{
|
|
36479
36584
|
value: "dottedHeavy",
|
|
36480
|
-
|
|
36585
|
+
labelKey: "underline.style.dottedHeavy",
|
|
36481
36586
|
preview: { borderStyle: "dotted", borderBottomWidth: "3px" }
|
|
36482
36587
|
},
|
|
36483
|
-
{ value: "dash",
|
|
36588
|
+
{ value: "dash", labelKey: "underline.style.dashed", preview: { borderStyle: "dashed" } },
|
|
36484
36589
|
{
|
|
36485
36590
|
value: "dashedHeavy",
|
|
36486
|
-
|
|
36591
|
+
labelKey: "underline.style.dashedHeavy",
|
|
36487
36592
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36488
36593
|
},
|
|
36489
36594
|
{
|
|
36490
36595
|
value: "dashLong",
|
|
36491
|
-
|
|
36596
|
+
labelKey: "underline.style.longDashes",
|
|
36492
36597
|
preview: { borderStyle: "dashed" }
|
|
36493
36598
|
},
|
|
36494
36599
|
{
|
|
36495
36600
|
value: "dashLongHeavy",
|
|
36496
|
-
|
|
36601
|
+
labelKey: "underline.style.longDashesHeavy",
|
|
36497
36602
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36498
36603
|
},
|
|
36499
|
-
{ value: "dotDash",
|
|
36604
|
+
{ value: "dotDash", labelKey: "underline.style.dotDash", preview: { borderStyle: "dashed" } },
|
|
36500
36605
|
{
|
|
36501
36606
|
value: "dashDotHeavy",
|
|
36502
|
-
|
|
36607
|
+
labelKey: "underline.style.dotDashHeavy",
|
|
36503
36608
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36504
36609
|
},
|
|
36505
36610
|
{
|
|
36506
36611
|
value: "dotDotDash",
|
|
36507
|
-
|
|
36612
|
+
labelKey: "underline.style.dotDotDash",
|
|
36508
36613
|
preview: { borderStyle: "dashed" }
|
|
36509
36614
|
},
|
|
36510
36615
|
{
|
|
36511
36616
|
value: "dashDotDotHeavy",
|
|
36512
|
-
|
|
36617
|
+
labelKey: "underline.style.dotDotDashHeavy",
|
|
36513
36618
|
preview: { borderStyle: "dashed", borderBottomWidth: "3px" }
|
|
36514
36619
|
},
|
|
36515
36620
|
{
|
|
36516
36621
|
value: "wave",
|
|
36517
|
-
|
|
36622
|
+
labelKey: "underline.style.wave",
|
|
36518
36623
|
preview: {
|
|
36519
36624
|
borderStyle: "wavy",
|
|
36520
36625
|
svg: `<svg width="100%" height="6" viewBox="0 0 60 6" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 3 Q 5 0 10 3 T 20 3 T 30 3 T 40 3 T 50 3 T 60 3" fill="none" stroke="currentColor" stroke-width="1"/></svg>`
|
|
@@ -36522,7 +36627,7 @@ const UNDERLINE_STYLE_OPTIONS = [
|
|
|
36522
36627
|
},
|
|
36523
36628
|
{
|
|
36524
36629
|
value: "wavyHeavy",
|
|
36525
|
-
|
|
36630
|
+
labelKey: "underline.style.waveHeavy",
|
|
36526
36631
|
preview: {
|
|
36527
36632
|
borderStyle: "wavy",
|
|
36528
36633
|
svg: `<svg width="100%" height="6" viewBox="0 0 60 6" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 3 Q 5 0 10 3 T 20 3 T 30 3 T 40 3 T 50 3 T 60 3" fill="none" stroke="currentColor" stroke-width="2"/></svg>`
|
|
@@ -36530,7 +36635,7 @@ const UNDERLINE_STYLE_OPTIONS = [
|
|
|
36530
36635
|
},
|
|
36531
36636
|
{
|
|
36532
36637
|
value: "wavyDouble",
|
|
36533
|
-
|
|
36638
|
+
labelKey: "underline.style.waveDouble",
|
|
36534
36639
|
preview: {
|
|
36535
36640
|
borderStyle: "wavy",
|
|
36536
36641
|
svg: `<svg width="100%" height="9" viewBox="0 0 60 9" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 2 Q 5 -1 10 2 T 20 2 T 30 2 T 40 2 T 50 2 T 60 2" fill="none" stroke="currentColor" stroke-width="1"/><path d="M0 7 Q 5 4 10 7 T 20 7 T 30 7 T 40 7 T 50 7 T 60 7" fill="none" stroke="currentColor" stroke-width="1"/></svg>`
|
|
@@ -36539,7 +36644,7 @@ const UNDERLINE_STYLE_OPTIONS = [
|
|
|
36539
36644
|
];
|
|
36540
36645
|
var _tmpl$$6 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action data-testid=editor-toolbar-underline-remove role=menuitem><span class=oasis-editor-color-menu-action-swatch><i data-lucide=slash></i></span><span>`), _tmpl$2$5 = /* @__PURE__ */ template(`<div class=oasis-editor-underline-menu-list>`), _tmpl$3$3 = /* @__PURE__ */ template(`<span class="oasis-editor-color-split-icon oasis-editor-underline-split-icon"><span class=oasis-editor-underline-split-glyph aria-hidden=true>U</span><span class=oasis-editor-underline-split-indicator>`), _tmpl$4$3 = /* @__PURE__ */ template(`<span class="oasis-editor-underline-menu-stroke oasis-editor-underline-menu-stroke-svg">`), _tmpl$5$3 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-underline-menu-item role=menuitemradio><span class=oasis-editor-underline-menu-preview></span><span class=oasis-editor-underline-menu-label>`), _tmpl$6$2 = /* @__PURE__ */ template(`<span class=oasis-editor-underline-menu-stroke>`);
|
|
36541
36646
|
const mod$1 = /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl";
|
|
36542
|
-
const UNDERLINE_BUTTON_TOOLTIP =
|
|
36647
|
+
const UNDERLINE_BUTTON_TOOLTIP = `${t("toolbar.underline")} (${mod$1}+U)`;
|
|
36543
36648
|
const TEST_ID = "editor-toolbar-underline";
|
|
36544
36649
|
function UnderlineControl(props) {
|
|
36545
36650
|
const api = props.api;
|
|
@@ -36633,9 +36738,9 @@ function UnderlineControl(props) {
|
|
|
36633
36738
|
return _el$0;
|
|
36634
36739
|
}
|
|
36635
36740
|
}));
|
|
36636
|
-
insert(_el$1, () => option.
|
|
36741
|
+
insert(_el$1, () => t(option.labelKey));
|
|
36637
36742
|
createRenderEffect((_p$) => {
|
|
36638
|
-
var _v$ = !!isActive(), _v$2 = isActive(), _v$3 = `${TEST_ID}-style-${option.value}`, _v$4 = option.
|
|
36743
|
+
var _v$ = !!isActive(), _v$2 = isActive(), _v$3 = `${TEST_ID}-style-${option.value}`, _v$4 = t(option.labelKey);
|
|
36639
36744
|
_v$ !== _p$.e && _el$8.classList.toggle("oasis-editor-underline-menu-item-active", _p$.e = _v$);
|
|
36640
36745
|
_v$2 !== _p$.t && setAttribute(_el$8, "aria-checked", _p$.t = _v$2);
|
|
36641
36746
|
_v$3 !== _p$.a && setAttribute(_el$8, "data-testid", _p$.a = _v$3);
|
|
@@ -37484,9 +37589,9 @@ function createDefaultToolbarPreset() {
|
|
|
37484
37589
|
id: "editor-toolbar-export-docx",
|
|
37485
37590
|
testId: "editor-toolbar-export-docx",
|
|
37486
37591
|
iconName: "file-text",
|
|
37487
|
-
|
|
37592
|
+
labelKey: "toolbar.exportDocx",
|
|
37488
37593
|
wide: true,
|
|
37489
|
-
|
|
37594
|
+
tooltipKey: "toolbar.exportDocx",
|
|
37490
37595
|
command: "exportDocx"
|
|
37491
37596
|
},
|
|
37492
37597
|
{
|
|
@@ -37494,9 +37599,9 @@ function createDefaultToolbarPreset() {
|
|
|
37494
37599
|
id: "editor-toolbar-export-pdf",
|
|
37495
37600
|
testId: "editor-toolbar-export-pdf",
|
|
37496
37601
|
iconName: "file-down",
|
|
37497
|
-
|
|
37602
|
+
labelKey: "toolbar.exportPdf",
|
|
37498
37603
|
wide: true,
|
|
37499
|
-
|
|
37604
|
+
tooltipKey: "toolbar.exportPdf",
|
|
37500
37605
|
command: "exportPdf"
|
|
37501
37606
|
},
|
|
37502
37607
|
{
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aU, bJ, bK, bL, bM, bN, b9, bO, aV, aQ, bP, bQ, bR, aT, bS, aO, bT, bU, bV, bW, bX, bF, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, be, c8, bE, c9, bL as bL2, bQ as bQ2, bS as bS2, c0 as c02, c2 as c22, c7 as c72, aS, aM, ca, cb, cc, aP, cd, ce, aR } from "./index-
|
|
1
|
+
import { aU, bJ, bK, bL, bM, bN, b9, bO, aV, aQ, bP, bQ, bR, aT, bS, aO, bT, bU, bV, bW, bX, bF, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, be, c8, bE, c9, bL as bL2, bQ as bQ2, bS as bS2, c0 as c02, c2 as c22, c7 as c72, aS, aM, ca, cb, cc, aP, cd, ce, aR } from "./index-CBbhzffQ.js";
|
|
2
2
|
export {
|
|
3
3
|
aU as BalloonShell,
|
|
4
4
|
bJ as Button,
|