oasis-editor 0.0.117 → 0.0.118

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.
@@ -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 { E as EMPTY_PROJECTION_CONTEXT, d as domTextMeasurer, g as getProjectedParagraphBlockHeight, e as estimateTableBlockHeight, p as projectParagraphLayout, a as getPageBodyBottom, b as getPageBodyTop, c as getPageContentWidth, F as FOOTNOTE_MARKER_GUTTER_PX, f as getParagraphText, h as getBlockParagraphs, i as getRunFootnoteReference, l as listReferencedEndnotes, j as getFootnoteDisplayMarker, k as createProjectionContext, m as getDocumentSections, n as getRunField, o as projectBlocksLayout, u as useContext, s as splitProps, q as spread, r as mergeProps, t as memo, v as insert, w as createComponent, x as createRenderEffect, y as setAttribute, S as Show, z as className, A as For, B as createContext, C as template, D as createUniqueId, G as style, H as visitRun, I as assertNever, J as createSignal, K as createEditorStateFromDocument, L as createInitialEditorState, M as STANDARD_FONT_SIZES_PT, N as fontSizePxToPt, O as probeLocalFontFamilies, P as createEditorParagraphFromRuns, Q as isInlineObjectRun, R as createEditorStyledRun, T as getParagraphLength, U as getActiveZone, V as getActiveSectionIndex, W as getParagraphs, X as normalizeSelection, Y as positionToParagraphOffset, Z as paragraphOffsetToPosition, _ as clampPosition, $ as findParagraphIndex, a0 as createCollapsedSelection, a1 as isSelectionCollapsed, a2 as parseFontSizePtToPx, a3 as formatFontSizePt, a4 as createEditorParagraph, a5 as findParagraphTableLocation, a6 as buildTableCellLayout, a7 as PT_PER_PX, a8 as createEditorTableCell, a9 as createEditorTableRow, aa as createEditorTable, ab as PX_PER_POINT, ac as underlineStyleToCssDecorationStyle, ad as resolveImageSrc, ae as listKindForTag, af as isParagraphTag, ag as collectInlineRuns, ah as parseParagraphStyle, ai as getRunImage, aj as InlineShell, ak as BalloonShell, al as DocumentShell, am as createMemo, an as getCaretRectFromSnapshot, ao as getParagraphRectFromSnapshot, ap as CaretOverlay, aq as setStyleProperty, ar as Button, as as useI18n, at as createEffect, au as TextField, av as Dialog, aw as SelectField, ax as UNDERLINE_STYLE_OPTIONS, ay as delegateEvents, az as Checkbox, aA as Tabs, aB as FieldRow, aC as NumberField, aD as createStore, aE as reconcile, aF as addEventListener, aG as onMount, aH as onCleanup, aI as use, aJ as PluginUiHost, aK as OasisEditorEditor, aL as OasisBrandMark, aM as setPreciseFontPreference, aN as setWelcomeSeen, aO as enablePreciseFontMode, aP as TWIPS_PER_POINT, aQ as PX_PER_INCH, aR as TWIPS_PER_INCH, aS as normalizeHex6, aT as TABLE_CONDITIONAL_FLAG_ATTRIBUTES, aU as TABLE_BORDER_EDGE_KEYS, aV as resolveEffectiveParagraphStyle, aW as resolveEffectiveTextStyleForParagraph, aX as EMU_PER_PT, aY as OOXML_ROTATION_UNITS, aZ as OOXML_PERCENT_DENOMINATOR, a_ as parseHexColorToRgb255, a$ as EMU_PER_PX, b0 as getRunEndnoteReference, b1 as iterateFootnoteReferenceRuns, b2 as iterateEndnoteReferenceRuns, b3 as imageContentTypeDefaults, b4 as getRunFieldChar, b5 as getRunFieldInstruction, b6 as createEditorRun, b7 as JSZip, b8 as imageExtensionFromMime, b9 as pxToPt$1, ba as resolveFloatingObjectRect, bb as getTextBoxFloatingGeometry, bc as getPresetPathSegments, bd as buildListLabels, be as DEFAULT_FONT_SIZE_PX, bf as resolveGradientAxis, bg as isDoubleUnderlineStyle, bh as isWavyUnderlineStyle, bi as underlineStyleLineWidthPx, bj as WAVY_UNDERLINE_WAVELENGTH_PX, bk as WAVY_UNDERLINE_AMPLITUDE_PX, bl as DOUBLE_UNDERLINE_OFFSET_PX, bm as underlineStyleDashArray, bn as EMPHASIS_GLYPH, bo as rgb255ToHex, bp as getImageFloatingGeometry, bq as textStyleToFontSizePt, br as TEXT_BASELINE_RATIO, bs as resolveOpenTypeFeatureTags, bt as resolveDecorationLineY, bu as DOUBLE_STRIKE_OFFSET_PX, bv as resolveListLabel, bw as getListLabelInset, bx as getAlignedListLabelInset, by as getParagraphBorderInsets, bz as buildSegmentTable, bA as buildCanvasTableLayout, bB as resolveCanvasTableWidth, bC as resolveFloatingTableRect, bD as normalizeFamily, bE as ROBOTO_FONT_FILES, bF as loadFontAsset, bG as OFFICE_COMPAT_FONT_FAMILIES, bH as BinaryReader, bI as buildSfnt, bJ as defaultFontDecoderRegistry, bK as SfntFontProgram, bL as collectPdfFontFamilies, bM as outlineFrom, bN as getPageHeaderZoneTop, bO as getPageColumnRects, bP as findFootnoteReference, bQ as resolveImporterForFile, bR as roundTo, bS as getDocumentSectionsCanonical, bT as getDocumentParagraphsCanonical, bU as getDocumentParagraphs, bV as getDocumentPageSettings, bW as getTableCellContentWidthForParagraph, bX as layoutMetricsEpoch, bY as bumpLayoutMetricsEpoch, bZ as createCanvasLayoutSnapshotProvider, b_ as on, b$ as debounce, c0 as unwrap, c1 as perfTimer, c2 as getRunTextBox, c3 as createEditorDocument, c4 as resolveResizedDimensions, c5 as resolveTextBoxRenderHeight, c6 as getToolbarStyleState, c7 as VERTICAL_HIT_WEIGHT, c8 as getCachedCanvasImage, c9 as measureParagraphMinContentWidthPx, ca as getEditableBlocksForZone, cb as findParagraphLocation, cc as createSectionBoundaryParagraph, cd as normalizePageSettings, ce as DEFAULT_EDITOR_PAGE_SETTINGS, cf as markStart, cg as markEnd, ch as getParagraphEntries, ci as getParagraphById, cj as createEditorFootnote, ck as createFootnoteReferenceRun, cl as renumberFootnotes, cm as getHeadingLevel, cn as preciseFontModeVersion, co as isPreciseFontModeEnabled, cp as resolveNamedTextStyle, cq as togglePreciseFontMode, cr as nextFontSizePt, cs as previousFontSizePt, ct as fontSizePtToPx, cu as createDefaultToolbarPreset, cv as MenuRegistry, cw as createToolbarRegistry, cx as Editor, cy as resolveCommandRef, cz as commandRefName, cA as createOasisEditorClient, cB as createEditorZoom, cC as startLongTaskObserver, cD as installGlobalReport, cE as applyStoredPreciseFontPreference, cF as getWelcomeSeen, cG as isLocalFontAccessSupported, cH as EDITOR_SCROLL_PADDING_PX, cI as Toolbar, cJ as OasisEditorLoading, cK as I18nProvider, cL as createTranslator, cM as createEditorLogger, cN as registerDomStatsSurface } from "./index-Comlrue1.js";
4
+ import { E as EMPTY_PROJECTION_CONTEXT, d as domTextMeasurer, g as getProjectedParagraphBlockHeight, e as estimateTableBlockHeight, p as projectParagraphLayout, a as getPageBodyBottom, b as getPageBodyTop, c as getPageContentWidth, F as FOOTNOTE_MARKER_GUTTER_PX, f as getParagraphText, h as getBlockParagraphs, i as getRunFootnoteReference, l as listReferencedEndnotes, j as getFootnoteDisplayMarker, k as createProjectionContext, m as getDocumentSections, n as getRunField, o as projectBlocksLayout, u as useContext, s as splitProps, q as spread, r as mergeProps, t as memo, v as insert, w as createComponent, x as createRenderEffect, y as setAttribute, S as Show, z as className, A as For, B as createContext, C as template, D as createUniqueId, G as style, H as visitRun, I as assertNever, J as createSignal, K as createEditorStateFromDocument, L as createInitialEditorState, M as STANDARD_FONT_SIZES_PT, N as fontSizePxToPt, O as probeLocalFontFamilies, P as createEditorParagraphFromRuns, Q as isInlineObjectRun, R as createEditorStyledRun, T as getParagraphLength, U as getActiveZone, V as getActiveSectionIndex, W as getParagraphs, X as normalizeSelection, Y as positionToParagraphOffset, Z as paragraphOffsetToPosition, _ as clampPosition, $ as findParagraphIndex, a0 as createCollapsedSelection, a1 as isSelectionCollapsed, a2 as parseFontSizePtToPx, a3 as formatFontSizePt, a4 as createEditorParagraph, a5 as findParagraphTableLocation, a6 as buildTableCellLayout, a7 as PT_PER_PX, a8 as createEditorTableCell, a9 as createEditorTableRow, aa as createEditorTable, ab as PX_PER_POINT, ac as underlineStyleToCssDecorationStyle, ad as resolveImageSrc, ae as listKindForTag, af as isParagraphTag, ag as collectInlineRuns, ah as parseParagraphStyle, ai as getRunImage, aj as InlineShell, ak as BalloonShell, al as DocumentShell, am as createMemo, an as getCaretRectFromSnapshot, ao as getParagraphRectFromSnapshot, ap as CaretOverlay, aq as setStyleProperty, ar as Button, as as useI18n, at as createEffect, au as TextField, av as Dialog, aw as SelectField, ax as UNDERLINE_STYLE_OPTIONS, ay as delegateEvents, az as Text, aA as Checkbox, aB as StatusText, aC as FieldGroup, aD as Tabs, aE as FieldRow, aF as NumberField, aG as createStore, aH as reconcile, aI as TextAreaField, aJ as SurfaceButton, aK as ActionRow, aL as onMount, aM as onCleanup, aN as use, aO as PluginUiHost, aP as OasisEditorEditor, aQ as OasisBrandMark, aR as setPreciseFontPreference, aS as setWelcomeSeen, aT as enablePreciseFontMode, aU as TWIPS_PER_POINT, aV as PX_PER_INCH, aW as TWIPS_PER_INCH, aX as normalizeHex6, aY as TABLE_CONDITIONAL_FLAG_ATTRIBUTES, aZ as TABLE_BORDER_EDGE_KEYS, a_ as resolveEffectiveParagraphStyle, a$ as resolveEffectiveTextStyleForParagraph, b0 as EMU_PER_PT, b1 as OOXML_ROTATION_UNITS, b2 as OOXML_PERCENT_DENOMINATOR, b3 as parseHexColorToRgb255, b4 as EMU_PER_PX, b5 as getRunEndnoteReference, b6 as iterateFootnoteReferenceRuns, b7 as iterateEndnoteReferenceRuns, b8 as imageContentTypeDefaults, b9 as getRunFieldChar, ba as getRunFieldInstruction, bb as createEditorRun, bc as JSZip, bd as imageExtensionFromMime, be as pxToPt$1, bf as resolveFloatingObjectRect, bg as getTextBoxFloatingGeometry, bh as getPresetPathSegments, bi as buildListLabels, bj as DEFAULT_FONT_SIZE_PX, bk as resolveGradientAxis, bl as isDoubleUnderlineStyle, bm as isWavyUnderlineStyle, bn as underlineStyleLineWidthPx, bo as WAVY_UNDERLINE_WAVELENGTH_PX, bp as WAVY_UNDERLINE_AMPLITUDE_PX, bq as DOUBLE_UNDERLINE_OFFSET_PX, br as underlineStyleDashArray, bs as EMPHASIS_GLYPH, bt as rgb255ToHex, bu as getImageFloatingGeometry, bv as textStyleToFontSizePt, bw as TEXT_BASELINE_RATIO, bx as resolveOpenTypeFeatureTags, by as resolveDecorationLineY, bz as DOUBLE_STRIKE_OFFSET_PX, bA as resolveListLabel, bB as getListLabelInset, bC as getAlignedListLabelInset, bD as getParagraphBorderInsets, bE as buildSegmentTable, bF as buildCanvasTableLayout, bG as resolveCanvasTableWidth, bH as resolveFloatingTableRect, bI as normalizeFamily, bJ as ROBOTO_FONT_FILES, bK as loadFontAsset, bL as OFFICE_COMPAT_FONT_FAMILIES, bM as BinaryReader, bN as buildSfnt, bO as defaultFontDecoderRegistry, bP as SfntFontProgram, bQ as collectPdfFontFamilies, bR as outlineFrom, bS as getPageHeaderZoneTop, bT as getPageColumnRects, bU as findFootnoteReference, bV as resolveImporterForFile, bW as roundTo, bX as getDocumentSectionsCanonical, bY as getDocumentParagraphsCanonical, bZ as getDocumentParagraphs, b_ as getDocumentPageSettings, b$ as getTableCellContentWidthForParagraph, c0 as layoutMetricsEpoch, c1 as bumpLayoutMetricsEpoch, c2 as createCanvasLayoutSnapshotProvider, c3 as on, c4 as debounce, c5 as unwrap, c6 as perfTimer, c7 as getRunTextBox, c8 as createEditorDocument, c9 as resolveResizedDimensions, ca as resolveTextBoxRenderHeight, cb as getToolbarStyleState, cc as VERTICAL_HIT_WEIGHT, cd as getCachedCanvasImage, ce as measureParagraphMinContentWidthPx, cf as getEditableBlocksForZone, cg as findParagraphLocation, ch as createSectionBoundaryParagraph, ci as normalizePageSettings, cj as DEFAULT_EDITOR_PAGE_SETTINGS, ck as markStart, cl as markEnd, cm as getParagraphEntries, cn as getParagraphById, co as createEditorFootnote, cp as createFootnoteReferenceRun, cq as renumberFootnotes, cr as getHeadingLevel, cs as preciseFontModeVersion, ct as isPreciseFontModeEnabled, cu as resolveNamedTextStyle, cv as togglePreciseFontMode, cw as nextFontSizePt, cx as previousFontSizePt, cy as fontSizePtToPx, cz as createDefaultToolbarPreset, cA as MenuRegistry, cB as createToolbarRegistry, cC as Editor, cD as resolveCommandRef, cE as commandRefName, cF as createOasisEditorClient, cG as createEditorZoom, cH as startLongTaskObserver, cI as installGlobalReport, cJ as applyStoredPreciseFontPreference, cK as getWelcomeSeen, cL as isLocalFontAccessSupported, cM as EDITOR_SCROLL_PADDING_PX, cN as Toolbar, cO as OasisEditorLoading, cP as I18nProvider, cQ as createTranslator, cR as createEditorLogger, cS as registerDomStatsSurface } from "./index-DxemmUXw.js";
5
5
  function projectHeaderFooterBlocksWithDependencies(blocks, deps, context = {}) {
6
6
  const {
7
7
  pageIndex,
@@ -606,7 +606,7 @@ function projectDocumentLayout(document2, maxPageHeightOverride, measuredHeights
606
606
  pages: applyFootnotesToPages(pages, footnoteContext)
607
607
  };
608
608
  }
609
- var _tmpl$$g = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-description>`), _tmpl$2$4 = /* @__PURE__ */ template(`<label><input type=radio class=oasis-editor-ui-radio-input><span class=oasis-editor-ui-checkbox-copy><span class=oasis-editor-ui-field-label>`), _tmpl$3$3 = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-label>`), _tmpl$4$1 = /* @__PURE__ */ template(`<div role=radiogroup>`);
609
+ var _tmpl$$g = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-description>`), _tmpl$2$6 = /* @__PURE__ */ template(`<label><input type=radio class=oasis-editor-ui-radio-input><span class=oasis-editor-ui-checkbox-copy><span class=oasis-editor-ui-field-label>`), _tmpl$3$5 = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-label>`), _tmpl$4$2 = /* @__PURE__ */ template(`<div role=radiogroup>`);
610
610
  const RadioGroupCtx = createContext();
611
611
  function Radio$1(props) {
612
612
  const fallbackId = createUniqueId();
@@ -617,7 +617,7 @@ function Radio$1(props) {
617
617
  const checked = () => group ? group.value() === local.value : Boolean(local.checked);
618
618
  const disabled = () => Boolean(local.disabled) || (group ? group.disabled() : false);
619
619
  return (() => {
620
- var _el$ = _tmpl$2$4(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
620
+ var _el$ = _tmpl$2$6(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
621
621
  _el$2.addEventListener("change", (event) => {
622
622
  var _a2;
623
623
  if (group) group.onSelect(local.value);
@@ -681,13 +681,13 @@ function RadioGroup(props) {
681
681
  return createComponent(RadioGroupCtx.Provider, {
682
682
  value: ctx,
683
683
  get children() {
684
- var _el$6 = _tmpl$4$1();
684
+ var _el$6 = _tmpl$4$2();
685
685
  insert(_el$6, createComponent(Show, {
686
686
  get when() {
687
687
  return props.label;
688
688
  },
689
689
  get children() {
690
- var _el$7 = _tmpl$3$3();
690
+ var _el$7 = _tmpl$3$5();
691
691
  insert(_el$7, () => props.label);
692
692
  return _el$7;
693
693
  }
@@ -31448,7 +31448,7 @@ function DropCaret(props) {
31448
31448
  })
31449
31449
  });
31450
31450
  }
31451
- var _tmpl$$e = /* @__PURE__ */ template(`<div class=oasis-editor-table-resize-guide>`), _tmpl$2$3 = /* @__PURE__ */ template(`<img class=oasis-editor-image-ghost>`), _tmpl$3$2 = /* @__PURE__ */ template(`<div class=oasis-editor-table-ghost>`);
31451
+ var _tmpl$$e = /* @__PURE__ */ template(`<div class=oasis-editor-table-resize-guide>`), _tmpl$2$5 = /* @__PURE__ */ template(`<img class=oasis-editor-image-ghost>`), _tmpl$3$4 = /* @__PURE__ */ template(`<div class=oasis-editor-table-ghost>`);
31452
31452
  function EditorDragLayers(props) {
31453
31453
  return [createComponent(Show, {
31454
31454
  get when() {
@@ -31486,7 +31486,7 @@ function EditorDragLayers(props) {
31486
31486
  return memo(() => !!props.imageOps.dragging())() && props.imageOps.draggedImageInfo();
31487
31487
  },
31488
31488
  children: (info) => (() => {
31489
- var _el$2 = _tmpl$2$3();
31489
+ var _el$2 = _tmpl$2$5();
31490
31490
  createRenderEffect((_p$) => {
31491
31491
  var _v$4 = info().src, _v$5 = `${info().width}px`, _v$6 = `${info().height}px`, _v$7 = `${props.imageOps.mousePos().x - info().offsetX}px`, _v$8 = `${props.imageOps.mousePos().y - info().offsetY}px`;
31492
31492
  _v$4 !== _p$.e && setAttribute(_el$2, "src", _p$.e = _v$4);
@@ -31509,7 +31509,7 @@ function EditorDragLayers(props) {
31509
31509
  return memo(() => !!props.tableDrag.dragging())() && props.tableDrag.draggedTableInfo();
31510
31510
  },
31511
31511
  children: (info) => (() => {
31512
- var _el$3 = _tmpl$3$2();
31512
+ var _el$3 = _tmpl$3$4();
31513
31513
  createRenderEffect((_p$) => {
31514
31514
  var _v$9 = `${info().width}px`, _v$0 = `${info().height}px`, _v$1 = `${props.tableDrag.mousePos().x - info().offsetX}px`, _v$10 = `${props.tableDrag.mousePos().y - info().offsetY}px`;
31515
31515
  _v$9 !== _p$.e && setStyleProperty(_el$3, "width", _p$.e = _v$9);
@@ -32395,229 +32395,332 @@ function FontTab(props) {
32395
32395
  })();
32396
32396
  }
32397
32397
  delegateEvents(["input"]);
32398
- var _tmpl$$b = /* @__PURE__ */ template(`<div class="oasis-editor-font-dialog-panel oasis-editor-font-dialog-advanced-panel"><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-font-dialog-word-row><label class=oasis-editor-dialog-label></label></div><div class=oasis-editor-font-dialog-word-row><label class=oasis-editor-dialog-label></label><label class="oasis-editor-dialog-label oasis-editor-font-dialog-by-label"></label></div><div class=oasis-editor-font-dialog-word-row><label class=oasis-editor-dialog-label></label><label class="oasis-editor-dialog-label oasis-editor-font-dialog-by-label"></label></div><div class="oasis-editor-font-dialog-word-row oasis-editor-font-dialog-kerning-row"><span class="oasis-editor-dialog-help-text oasis-editor-font-dialog-kerning-suffix"></span></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-font-dialog-word-row><label class=oasis-editor-dialog-label></label></div><div class=oasis-editor-font-dialog-word-row><label class=oasis-editor-dialog-label></label></div><div class=oasis-editor-font-dialog-word-row><label class=oasis-editor-dialog-label></label></div><div class=oasis-editor-font-dialog-word-row><label class=oasis-editor-dialog-label></label></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend></fieldset><p class=oasis-editor-dialog-help-text data-testid=editor-font-dialog-advanced-placeholder>`);
32398
+ var _tmpl$$b = /* @__PURE__ */ template(`<div class=oasis-editor-font-dialog-word-row>`), _tmpl$2$4 = /* @__PURE__ */ template(`<div class="oasis-editor-font-dialog-word-row oasis-editor-font-dialog-kerning-row">`), _tmpl$3$3 = /* @__PURE__ */ template(`<div class="oasis-editor-font-dialog-panel oasis-editor-font-dialog-advanced-panel">`);
32399
32399
  function AdvancedFontTab(props) {
32400
32400
  const t = useI18n();
32401
32401
  const {
32402
32402
  ctrl
32403
32403
  } = props;
32404
32404
  return (() => {
32405
- var _el$ = _tmpl$$b(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$6.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$11 = _el$10.firstChild, _el$12 = _el$2.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$14.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$21 = _el$20.firstChild, _el$22 = _el$12.nextSibling, _el$23 = _el$22.firstChild, _el$24 = _el$22.nextSibling;
32406
- insert(_el$3, () => t("dialog.font.advancedCharacterSpacingGroup"));
32407
- insert(_el$5, () => t("dialog.font.advancedScale"));
32408
- insert(_el$4, createComponent(SelectField, {
32409
- get value() {
32410
- return ctrl.advancedTabValues().characterScale || "100";
32411
- },
32412
- onChange: (value) => ctrl.updateAdvancedTab("characterScale", value),
32413
- "data-testid": "editor-font-dialog-advanced-scale",
32414
- get options() {
32415
- return WORD_CHARACTER_SCALES.map((scale) => ({
32416
- value: String(scale),
32417
- label: `${scale}%`
32418
- }));
32419
- }
32420
- }), null);
32421
- insert(_el$7, () => t("dialog.font.advancedSpacing"));
32422
- insert(_el$6, createComponent(SelectField, {
32423
- get value() {
32424
- return ctrl.advancedTabValues().spacingMode;
32425
- },
32426
- onChange: (value) => ctrl.updateAdvancedTab("spacingMode", value),
32427
- "data-testid": "editor-font-dialog-advanced-spacing-mode",
32428
- get options() {
32429
- return [{
32430
- value: "normal",
32431
- label: t("dialog.font.advancedNormal")
32432
- }, {
32433
- value: "expanded",
32434
- label: t("dialog.font.advancedExpanded")
32435
- }, {
32436
- value: "condensed",
32437
- label: t("dialog.font.advancedCondensed")
32438
- }];
32439
- }
32440
- }), _el$8);
32441
- insert(_el$8, () => t("dialog.font.advancedBy"));
32442
- insert(_el$6, createComponent(TextField, {
32443
- "class": "oasis-editor-font-dialog-small-input",
32444
- get value() {
32445
- return ctrl.advancedTabValues().spacingAmount;
32446
- },
32447
- get disabled() {
32448
- return ctrl.advancedTabValues().spacingMode === "normal";
32449
- },
32450
- onChange: (value) => ctrl.updateAdvancedTab("spacingAmount", value),
32451
- "data-testid": "editor-font-dialog-advanced-spacing-amount"
32452
- }), null);
32453
- insert(_el$0, () => t("dialog.font.advancedPosition"));
32454
- insert(_el$9, createComponent(SelectField, {
32455
- get value() {
32456
- return ctrl.advancedTabValues().positionMode;
32405
+ var _el$ = _tmpl$3$3();
32406
+ insert(_el$, createComponent(FieldGroup, {
32407
+ "class": "oasis-editor-font-dialog-fieldset",
32408
+ get legend() {
32409
+ return t("dialog.font.advancedCharacterSpacingGroup");
32457
32410
  },
32458
- onChange: (value) => ctrl.updateAdvancedTab("positionMode", value),
32459
- "data-testid": "editor-font-dialog-advanced-position-mode",
32460
- get options() {
32461
- return [{
32462
- value: "normal",
32463
- label: t("dialog.font.advancedNormal")
32464
- }, {
32465
- value: "raised",
32466
- label: t("dialog.font.advancedRaised")
32467
- }, {
32468
- value: "lowered",
32469
- label: t("dialog.font.advancedLowered")
32470
- }];
32471
- }
32472
- }), _el$1);
32473
- insert(_el$1, () => t("dialog.font.advancedBy"));
32474
- insert(_el$9, createComponent(TextField, {
32475
- "class": "oasis-editor-font-dialog-small-input",
32476
- get value() {
32477
- return ctrl.advancedTabValues().positionAmount;
32478
- },
32479
- get disabled() {
32480
- return ctrl.advancedTabValues().positionMode === "normal";
32481
- },
32482
- onChange: (value) => ctrl.updateAdvancedTab("positionAmount", value),
32483
- "data-testid": "editor-font-dialog-advanced-position-amount"
32484
- }), null);
32485
- insert(_el$10, createComponent(Checkbox, {
32486
- "class": "oasis-editor-font-dialog-kerning-toggle",
32487
- get label() {
32488
- return t("dialog.font.advancedKerning");
32489
- },
32490
- get checked() {
32491
- return ctrl.advancedTabValues().kerningEnabled;
32492
- },
32493
- onChange: (checked) => ctrl.setAdvancedTabValues((current) => ({
32494
- ...current,
32495
- kerningEnabled: checked,
32496
- kerningThreshold: checked ? current.kerningThreshold || "1" : current.kerningThreshold
32497
- })),
32498
- "data-testid": "editor-font-dialog-advanced-kerning-enabled"
32499
- }), _el$11);
32500
- insert(_el$10, createComponent(TextField, {
32501
- "class": "oasis-editor-font-dialog-kerning-input",
32502
- get value() {
32503
- return ctrl.advancedTabValues().kerningThreshold;
32504
- },
32505
- get disabled() {
32506
- return !ctrl.advancedTabValues().kerningEnabled;
32507
- },
32508
- onChange: (value) => ctrl.updateAdvancedTab("kerningThreshold", value),
32509
- "data-testid": "editor-font-dialog-advanced-kerning"
32510
- }), _el$11);
32511
- insert(_el$11, () => t("dialog.font.advancedKerningAbove"));
32512
- insert(_el$13, () => t("dialog.font.advancedOpenTypeGroup"));
32513
- insert(_el$15, () => t("dialog.font.advancedLigatures"));
32514
- insert(_el$14, createComponent(SelectField, {
32515
- get value() {
32516
- return ctrl.advancedTabValues().ligatures;
32517
- },
32518
- onChange: (value) => ctrl.updateAdvancedTab("ligatures", value),
32519
- "data-testid": "editor-font-dialog-advanced-ligatures",
32520
- get options() {
32521
- return [{
32522
- value: "",
32523
- label: t("dialog.font.advancedDefault")
32524
- }, {
32525
- value: "none",
32526
- label: t("dialog.font.advancedLigaturesNone")
32527
- }, {
32528
- value: "standard",
32529
- label: t("dialog.font.advancedLigaturesStandard")
32530
- }, {
32531
- value: "contextual",
32532
- label: t("dialog.font.advancedLigaturesContextual")
32533
- }, {
32534
- value: "historical",
32535
- label: t("dialog.font.advancedLigaturesHistorical")
32536
- }, {
32537
- value: "standardContextual",
32538
- label: t("dialog.font.advancedLigaturesStandardContextual")
32539
- }];
32540
- }
32541
- }), null);
32542
- insert(_el$17, () => t("dialog.font.advancedNumberSpacing"));
32543
- insert(_el$16, createComponent(SelectField, {
32544
- get value() {
32545
- return ctrl.advancedTabValues().numberSpacing;
32546
- },
32547
- onChange: (value) => ctrl.updateAdvancedTab("numberSpacing", value),
32548
- "data-testid": "editor-font-dialog-advanced-number-spacing",
32549
- get options() {
32550
- return [{
32551
- value: "",
32552
- label: t("dialog.font.advancedDefault")
32553
- }, {
32554
- value: "proportional",
32555
- label: t("dialog.font.advancedNumberSpacingProportional")
32556
- }, {
32557
- value: "tabular",
32558
- label: t("dialog.font.advancedNumberSpacingTabular")
32559
- }];
32411
+ get children() {
32412
+ return [(() => {
32413
+ var _el$2 = _tmpl$$b();
32414
+ insert(_el$2, createComponent(Text, {
32415
+ "class": "oasis-editor-dialog-label",
32416
+ get children() {
32417
+ return t("dialog.font.advancedScale");
32418
+ }
32419
+ }), null);
32420
+ insert(_el$2, createComponent(SelectField, {
32421
+ get value() {
32422
+ return ctrl.advancedTabValues().characterScale || "100";
32423
+ },
32424
+ onChange: (value) => ctrl.updateAdvancedTab("characterScale", value),
32425
+ "data-testid": "editor-font-dialog-advanced-scale",
32426
+ get options() {
32427
+ return WORD_CHARACTER_SCALES.map((scale) => ({
32428
+ value: String(scale),
32429
+ label: `${scale}%`
32430
+ }));
32431
+ }
32432
+ }), null);
32433
+ return _el$2;
32434
+ })(), (() => {
32435
+ var _el$3 = _tmpl$$b();
32436
+ insert(_el$3, createComponent(Text, {
32437
+ "class": "oasis-editor-dialog-label",
32438
+ get children() {
32439
+ return t("dialog.font.advancedSpacing");
32440
+ }
32441
+ }), null);
32442
+ insert(_el$3, createComponent(SelectField, {
32443
+ get value() {
32444
+ return ctrl.advancedTabValues().spacingMode;
32445
+ },
32446
+ onChange: (value) => ctrl.updateAdvancedTab("spacingMode", value),
32447
+ "data-testid": "editor-font-dialog-advanced-spacing-mode",
32448
+ get options() {
32449
+ return [{
32450
+ value: "normal",
32451
+ label: t("dialog.font.advancedNormal")
32452
+ }, {
32453
+ value: "expanded",
32454
+ label: t("dialog.font.advancedExpanded")
32455
+ }, {
32456
+ value: "condensed",
32457
+ label: t("dialog.font.advancedCondensed")
32458
+ }];
32459
+ }
32460
+ }), null);
32461
+ insert(_el$3, createComponent(Text, {
32462
+ "class": "oasis-editor-dialog-label oasis-editor-font-dialog-by-label",
32463
+ get children() {
32464
+ return t("dialog.font.advancedBy");
32465
+ }
32466
+ }), null);
32467
+ insert(_el$3, createComponent(TextField, {
32468
+ "class": "oasis-editor-font-dialog-small-input",
32469
+ get value() {
32470
+ return ctrl.advancedTabValues().spacingAmount;
32471
+ },
32472
+ get disabled() {
32473
+ return ctrl.advancedTabValues().spacingMode === "normal";
32474
+ },
32475
+ onChange: (value) => ctrl.updateAdvancedTab("spacingAmount", value),
32476
+ "data-testid": "editor-font-dialog-advanced-spacing-amount"
32477
+ }), null);
32478
+ return _el$3;
32479
+ })(), (() => {
32480
+ var _el$4 = _tmpl$$b();
32481
+ insert(_el$4, createComponent(Text, {
32482
+ "class": "oasis-editor-dialog-label",
32483
+ get children() {
32484
+ return t("dialog.font.advancedPosition");
32485
+ }
32486
+ }), null);
32487
+ insert(_el$4, createComponent(SelectField, {
32488
+ get value() {
32489
+ return ctrl.advancedTabValues().positionMode;
32490
+ },
32491
+ onChange: (value) => ctrl.updateAdvancedTab("positionMode", value),
32492
+ "data-testid": "editor-font-dialog-advanced-position-mode",
32493
+ get options() {
32494
+ return [{
32495
+ value: "normal",
32496
+ label: t("dialog.font.advancedNormal")
32497
+ }, {
32498
+ value: "raised",
32499
+ label: t("dialog.font.advancedRaised")
32500
+ }, {
32501
+ value: "lowered",
32502
+ label: t("dialog.font.advancedLowered")
32503
+ }];
32504
+ }
32505
+ }), null);
32506
+ insert(_el$4, createComponent(Text, {
32507
+ "class": "oasis-editor-dialog-label oasis-editor-font-dialog-by-label",
32508
+ get children() {
32509
+ return t("dialog.font.advancedBy");
32510
+ }
32511
+ }), null);
32512
+ insert(_el$4, createComponent(TextField, {
32513
+ "class": "oasis-editor-font-dialog-small-input",
32514
+ get value() {
32515
+ return ctrl.advancedTabValues().positionAmount;
32516
+ },
32517
+ get disabled() {
32518
+ return ctrl.advancedTabValues().positionMode === "normal";
32519
+ },
32520
+ onChange: (value) => ctrl.updateAdvancedTab("positionAmount", value),
32521
+ "data-testid": "editor-font-dialog-advanced-position-amount"
32522
+ }), null);
32523
+ return _el$4;
32524
+ })(), (() => {
32525
+ var _el$5 = _tmpl$2$4();
32526
+ insert(_el$5, createComponent(Checkbox, {
32527
+ "class": "oasis-editor-font-dialog-kerning-toggle",
32528
+ get label() {
32529
+ return t("dialog.font.advancedKerning");
32530
+ },
32531
+ get checked() {
32532
+ return ctrl.advancedTabValues().kerningEnabled;
32533
+ },
32534
+ onChange: (checked) => ctrl.setAdvancedTabValues((current) => ({
32535
+ ...current,
32536
+ kerningEnabled: checked,
32537
+ kerningThreshold: checked ? current.kerningThreshold || "1" : current.kerningThreshold
32538
+ })),
32539
+ "data-testid": "editor-font-dialog-advanced-kerning-enabled"
32540
+ }), null);
32541
+ insert(_el$5, createComponent(TextField, {
32542
+ "class": "oasis-editor-font-dialog-kerning-input",
32543
+ get value() {
32544
+ return ctrl.advancedTabValues().kerningThreshold;
32545
+ },
32546
+ get disabled() {
32547
+ return !ctrl.advancedTabValues().kerningEnabled;
32548
+ },
32549
+ onChange: (value) => ctrl.updateAdvancedTab("kerningThreshold", value),
32550
+ "data-testid": "editor-font-dialog-advanced-kerning"
32551
+ }), null);
32552
+ insert(_el$5, createComponent(StatusText, {
32553
+ "class": "oasis-editor-dialog-help-text oasis-editor-font-dialog-kerning-suffix",
32554
+ get children() {
32555
+ return t("dialog.font.advancedKerningAbove");
32556
+ }
32557
+ }), null);
32558
+ return _el$5;
32559
+ })()];
32560
32560
  }
32561
32561
  }), null);
32562
- insert(_el$19, () => t("dialog.font.advancedNumberForm"));
32563
- insert(_el$18, createComponent(SelectField, {
32564
- get value() {
32565
- return ctrl.advancedTabValues().numberForm;
32562
+ insert(_el$, createComponent(FieldGroup, {
32563
+ "class": "oasis-editor-font-dialog-fieldset",
32564
+ get legend() {
32565
+ return t("dialog.font.advancedOpenTypeGroup");
32566
32566
  },
32567
- onChange: (value) => ctrl.updateAdvancedTab("numberForm", value),
32568
- "data-testid": "editor-font-dialog-advanced-number-form",
32569
- get options() {
32570
- return [{
32571
- value: "",
32572
- label: t("dialog.font.advancedDefault")
32573
- }, {
32574
- value: "lining",
32575
- label: t("dialog.font.advancedNumberFormLining")
32576
- }, {
32577
- value: "oldStyle",
32578
- label: t("dialog.font.advancedNumberFormOldStyle")
32579
- }];
32567
+ get children() {
32568
+ return [(() => {
32569
+ var _el$6 = _tmpl$$b();
32570
+ insert(_el$6, createComponent(Text, {
32571
+ "class": "oasis-editor-dialog-label",
32572
+ get children() {
32573
+ return t("dialog.font.advancedLigatures");
32574
+ }
32575
+ }), null);
32576
+ insert(_el$6, createComponent(SelectField, {
32577
+ get value() {
32578
+ return ctrl.advancedTabValues().ligatures;
32579
+ },
32580
+ onChange: (value) => ctrl.updateAdvancedTab("ligatures", value),
32581
+ "data-testid": "editor-font-dialog-advanced-ligatures",
32582
+ get options() {
32583
+ return [{
32584
+ value: "",
32585
+ label: t("dialog.font.advancedDefault")
32586
+ }, {
32587
+ value: "none",
32588
+ label: t("dialog.font.advancedLigaturesNone")
32589
+ }, {
32590
+ value: "standard",
32591
+ label: t("dialog.font.advancedLigaturesStandard")
32592
+ }, {
32593
+ value: "contextual",
32594
+ label: t("dialog.font.advancedLigaturesContextual")
32595
+ }, {
32596
+ value: "historical",
32597
+ label: t("dialog.font.advancedLigaturesHistorical")
32598
+ }, {
32599
+ value: "standardContextual",
32600
+ label: t("dialog.font.advancedLigaturesStandardContextual")
32601
+ }];
32602
+ }
32603
+ }), null);
32604
+ return _el$6;
32605
+ })(), (() => {
32606
+ var _el$7 = _tmpl$$b();
32607
+ insert(_el$7, createComponent(Text, {
32608
+ "class": "oasis-editor-dialog-label",
32609
+ get children() {
32610
+ return t("dialog.font.advancedNumberSpacing");
32611
+ }
32612
+ }), null);
32613
+ insert(_el$7, createComponent(SelectField, {
32614
+ get value() {
32615
+ return ctrl.advancedTabValues().numberSpacing;
32616
+ },
32617
+ onChange: (value) => ctrl.updateAdvancedTab("numberSpacing", value),
32618
+ "data-testid": "editor-font-dialog-advanced-number-spacing",
32619
+ get options() {
32620
+ return [{
32621
+ value: "",
32622
+ label: t("dialog.font.advancedDefault")
32623
+ }, {
32624
+ value: "proportional",
32625
+ label: t("dialog.font.advancedNumberSpacingProportional")
32626
+ }, {
32627
+ value: "tabular",
32628
+ label: t("dialog.font.advancedNumberSpacingTabular")
32629
+ }];
32630
+ }
32631
+ }), null);
32632
+ return _el$7;
32633
+ })(), (() => {
32634
+ var _el$8 = _tmpl$$b();
32635
+ insert(_el$8, createComponent(Text, {
32636
+ "class": "oasis-editor-dialog-label",
32637
+ get children() {
32638
+ return t("dialog.font.advancedNumberForm");
32639
+ }
32640
+ }), null);
32641
+ insert(_el$8, createComponent(SelectField, {
32642
+ get value() {
32643
+ return ctrl.advancedTabValues().numberForm;
32644
+ },
32645
+ onChange: (value) => ctrl.updateAdvancedTab("numberForm", value),
32646
+ "data-testid": "editor-font-dialog-advanced-number-form",
32647
+ get options() {
32648
+ return [{
32649
+ value: "",
32650
+ label: t("dialog.font.advancedDefault")
32651
+ }, {
32652
+ value: "lining",
32653
+ label: t("dialog.font.advancedNumberFormLining")
32654
+ }, {
32655
+ value: "oldStyle",
32656
+ label: t("dialog.font.advancedNumberFormOldStyle")
32657
+ }];
32658
+ }
32659
+ }), null);
32660
+ return _el$8;
32661
+ })(), (() => {
32662
+ var _el$9 = _tmpl$$b();
32663
+ insert(_el$9, createComponent(Text, {
32664
+ "class": "oasis-editor-dialog-label",
32665
+ get children() {
32666
+ return t("dialog.font.advancedStylisticSet");
32667
+ }
32668
+ }), null);
32669
+ insert(_el$9, createComponent(SelectField, {
32670
+ get value() {
32671
+ return ctrl.advancedTabValues().stylisticSet;
32672
+ },
32673
+ onChange: (value) => ctrl.updateAdvancedTab("stylisticSet", value),
32674
+ "data-testid": "editor-font-dialog-advanced-stylistic-set",
32675
+ get options() {
32676
+ return [{
32677
+ value: "",
32678
+ label: t("dialog.font.advancedDefault")
32679
+ }, ...Array.from({
32680
+ length: 20
32681
+ }, (_, index) => index + 1).map((set) => ({
32682
+ value: String(set),
32683
+ label: String(set)
32684
+ }))];
32685
+ }
32686
+ }), null);
32687
+ return _el$9;
32688
+ })(), createComponent(Checkbox, {
32689
+ "class": "oasis-editor-font-dialog-contextual-toggle",
32690
+ get label() {
32691
+ return t("dialog.font.advancedContextualAlternates");
32692
+ },
32693
+ get checked() {
32694
+ return ctrl.advancedTabValues().contextualAlternates;
32695
+ },
32696
+ onChange: (checked) => ctrl.updateAdvancedTab("contextualAlternates", checked),
32697
+ "data-testid": "editor-font-dialog-advanced-contextual-alternates"
32698
+ })];
32580
32699
  }
32581
32700
  }), null);
32582
- insert(_el$21, () => t("dialog.font.advancedStylisticSet"));
32583
- insert(_el$20, createComponent(SelectField, {
32584
- get value() {
32585
- return ctrl.advancedTabValues().stylisticSet;
32701
+ insert(_el$, createComponent(FieldGroup, {
32702
+ "class": "oasis-editor-font-dialog-fieldset",
32703
+ get legend() {
32704
+ return t("dialog.font.advancedPreviewGroup");
32586
32705
  },
32587
- onChange: (value) => ctrl.updateAdvancedTab("stylisticSet", value),
32588
- "data-testid": "editor-font-dialog-advanced-stylistic-set",
32589
- get options() {
32590
- return [{
32591
- value: "",
32592
- label: t("dialog.font.advancedDefault")
32593
- }, ...Array.from({
32594
- length: 20
32595
- }, (_, index) => index + 1).map((set) => ({
32596
- value: String(set),
32597
- label: String(set)
32598
- }))];
32706
+ get children() {
32707
+ return createComponent(FontPreview, {
32708
+ "class": "oasis-editor-dialog-preview oasis-editor-font-dialog-advanced-preview",
32709
+ testId: "editor-font-dialog-advanced-preview",
32710
+ get style() {
32711
+ return ctrl.previewStyle();
32712
+ }
32713
+ });
32599
32714
  }
32600
32715
  }), null);
32601
- insert(_el$12, createComponent(Checkbox, {
32602
- "class": "oasis-editor-font-dialog-contextual-toggle",
32603
- get label() {
32604
- return t("dialog.font.advancedContextualAlternates");
32605
- },
32606
- get checked() {
32607
- return ctrl.advancedTabValues().contextualAlternates;
32608
- },
32609
- onChange: (checked) => ctrl.updateAdvancedTab("contextualAlternates", checked),
32610
- "data-testid": "editor-font-dialog-advanced-contextual-alternates"
32611
- }), null);
32612
- insert(_el$23, () => t("dialog.font.advancedPreviewGroup"));
32613
- insert(_el$22, createComponent(FontPreview, {
32614
- "class": "oasis-editor-dialog-preview oasis-editor-font-dialog-advanced-preview",
32615
- testId: "editor-font-dialog-advanced-preview",
32616
- get style() {
32617
- return ctrl.previewStyle();
32716
+ insert(_el$, createComponent(StatusText, {
32717
+ as: "p",
32718
+ "class": "oasis-editor-dialog-help-text",
32719
+ "data-testid": "editor-font-dialog-advanced-placeholder",
32720
+ get children() {
32721
+ return ctrl.advancedValidationError() || t("dialog.font.advancedPlaceholder");
32618
32722
  }
32619
32723
  }), null);
32620
- insert(_el$24, () => ctrl.advancedValidationError() || t("dialog.font.advancedPlaceholder"));
32621
32724
  return _el$;
32622
32725
  })();
32623
32726
  }
@@ -32686,7 +32789,7 @@ function FontDialog(props) {
32686
32789
  }
32687
32790
  });
32688
32791
  }
32689
- var _tmpl$$a = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-row><div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><input type=color class=oasis-editor-dialog-input data-testid=editor-paragraph-dialog-border-color></div><div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><input type=color class=oasis-editor-dialog-input data-testid=editor-paragraph-dialog-shading>`), _tmpl$2$2 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-row><div class="oasis-editor-dialog-input-group oasis-editor-dialog-input-group-grow"><label class=oasis-editor-dialog-label></label><div class=oasis-editor-dialog-style-row>`), _tmpl$3$1 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><div class=oasis-editor-dialog-preview data-testid=editor-paragraph-dialog-preview>`);
32792
+ var _tmpl$$a = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-row><div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><input type=color class=oasis-editor-dialog-input data-testid=editor-paragraph-dialog-border-color></div><div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><input type=color class=oasis-editor-dialog-input data-testid=editor-paragraph-dialog-shading>`), _tmpl$2$3 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-row><div class="oasis-editor-dialog-input-group oasis-editor-dialog-input-group-grow"><label class=oasis-editor-dialog-label></label><div class=oasis-editor-dialog-style-row>`), _tmpl$3$2 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><div class=oasis-editor-dialog-preview data-testid=editor-paragraph-dialog-preview>`);
32690
32793
  const DEFAULT_BORDER_WIDTH_PT$1 = 0.5;
32691
32794
  const DEFAULT_BORDER_COLOR$1 = "#000000";
32692
32795
  function parseNumber$1(value) {
@@ -33029,7 +33132,7 @@ function ParagraphDialog(props) {
33029
33132
  createRenderEffect(() => _el$7.value = shading() || "#ffffff");
33030
33133
  return _el$;
33031
33134
  })(), (() => {
33032
- var _el$8 = _tmpl$2$2(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling;
33135
+ var _el$8 = _tmpl$2$3(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling;
33033
33136
  insert(_el$0, () => t("paragraph.borderSidesLabel"));
33034
33137
  insert(_el$1, createComponent(Checkbox, {
33035
33138
  get label() {
@@ -33085,7 +33188,7 @@ function ParagraphDialog(props) {
33085
33188
  }), null);
33086
33189
  return _el$8;
33087
33190
  })(), (() => {
33088
- var _el$10 = _tmpl$3$1(), _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling;
33191
+ var _el$10 = _tmpl$3$2(), _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling;
33089
33192
  insert(_el$11, () => t("paragraph.preview"));
33090
33193
  insert(_el$12, () => t("paragraph.previewText"));
33091
33194
  createRenderEffect((_$p) => style(_el$12, previewStyle(), _$p));
@@ -33303,13 +33406,13 @@ function NumField(label, value, setter, testId, disabled = false, allowNegative
33303
33406
  "data-testid": testId
33304
33407
  });
33305
33408
  }
33306
- var _tmpl$$9 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-row>`), _tmpl$2$1 = /* @__PURE__ */ template(`<div class=oasis-editor-table-properties-panel><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-row></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-row></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-style-row>`);
33409
+ var _tmpl$$9 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-row>`), _tmpl$2$2 = /* @__PURE__ */ template(`<div class=oasis-editor-table-properties-panel><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-row></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-row></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-style-row>`);
33307
33410
  function TableTabPanel(props) {
33308
33411
  const t = useI18n();
33309
33412
  const form = () => props.ctrl.form;
33310
33413
  const set = props.ctrl.set;
33311
33414
  return (() => {
33312
- var _el$ = _tmpl$2$1(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling;
33415
+ var _el$ = _tmpl$2$2(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling;
33313
33416
  insert(_el$3, () => t("table.sizeSection"));
33314
33417
  insert(_el$4, () => NumField(t("table.preferredWidth"), () => form().tableWidth, (v) => set("tableWidth", v), "editor-table-properties-table-width"), null);
33315
33418
  insert(_el$4, createComponent(SelectField, {
@@ -33567,7 +33670,7 @@ function ColumnTabPanel(props) {
33567
33670
  return _el$;
33568
33671
  })();
33569
33672
  }
33570
- var _tmpl$$6 = /* @__PURE__ */ template(`<div class=oasis-editor-table-properties-panel><div class=oasis-editor-dialog-row></div><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-style-row></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-row></div></fieldset><fieldset class=oasis-editor-font-dialog-fieldset><legend></legend><div class=oasis-editor-dialog-row><div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><input type=color class=oasis-editor-dialog-input data-testid=editor-table-properties-border-color></div><div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><input type=color class=oasis-editor-dialog-input data-testid=editor-table-properties-shading></div></div><div class=oasis-editor-dialog-style-row></div><div class=oasis-editor-table-properties-cell-preview data-testid=editor-table-properties-cell-preview>`);
33673
+ var _tmpl$$6 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-style-row>`), _tmpl$2$1 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-row>`), _tmpl$3$1 = /* @__PURE__ */ template(`<div class=oasis-editor-table-properties-cell-preview data-testid=editor-table-properties-cell-preview>`), _tmpl$4$1 = /* @__PURE__ */ template(`<div class=oasis-editor-table-properties-panel><div class=oasis-editor-dialog-row>`);
33571
33674
  function CellTabPanel(props) {
33572
33675
  const t = useI18n();
33573
33676
  const form = () => props.ctrl.form;
@@ -33585,7 +33688,7 @@ function CellTabPanel(props) {
33585
33688
  });
33586
33689
  const borderDisabled = () => form().borderStyle === "none";
33587
33690
  return (() => {
33588
- var _el$ = _tmpl$$6(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$6.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$1.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$10.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$1.nextSibling, _el$17 = _el$16.nextSibling;
33691
+ var _el$ = _tmpl$4$1(), _el$2 = _el$.firstChild;
33589
33692
  insert(_el$2, () => NumField(t("table.cellWidth"), () => form().cellWidth, (v) => set("cellWidth", v), "editor-table-properties-cell-width"), null);
33590
33693
  insert(_el$2, createComponent(SelectField, {
33591
33694
  "class": "oasis-editor-dialog-input-group-grow",
@@ -33645,218 +33748,267 @@ function CellTabPanel(props) {
33645
33748
  }];
33646
33749
  }
33647
33750
  }), null);
33648
- insert(_el$4, () => t("table.options"));
33649
- insert(_el$5, createComponent(Checkbox, {
33650
- get label() {
33651
- return t("table.noWrap");
33652
- },
33653
- get checked() {
33654
- return form().cellNoWrap;
33655
- },
33656
- onChange: (v) => set("cellNoWrap", v),
33657
- "data-testid": "editor-table-properties-cell-nowrap"
33658
- }), null);
33659
- insert(_el$5, createComponent(Checkbox, {
33660
- get label() {
33661
- return t("table.fitText");
33662
- },
33663
- get checked() {
33664
- return form().cellFitText;
33665
- },
33666
- onChange: (v) => set("cellFitText", v),
33667
- "data-testid": "editor-table-properties-cell-fit-text"
33668
- }), null);
33669
- insert(_el$5, createComponent(Checkbox, {
33670
- get label() {
33671
- return t("table.hideMark");
33672
- },
33673
- get checked() {
33674
- return form().cellHideMark;
33751
+ insert(_el$, createComponent(FieldGroup, {
33752
+ "class": "oasis-editor-font-dialog-fieldset",
33753
+ get legend() {
33754
+ return t("table.options");
33675
33755
  },
33676
- onChange: (v) => set("cellHideMark", v),
33677
- "data-testid": "editor-table-properties-cell-hide-mark"
33678
- }), null);
33679
- insert(_el$7, () => t("table.cellMargins"));
33680
- insert(_el$8, () => NumField(t("paragraph.borderSideTop"), () => form().marginTop, (v) => set("marginTop", v), "editor-table-properties-margin-top"), null);
33681
- insert(_el$8, () => NumField(t("paragraph.borderSideRight"), () => form().marginRight, (v) => set("marginRight", v), "editor-table-properties-margin-right"), null);
33682
- insert(_el$8, () => NumField(t("paragraph.borderSideBottom"), () => form().marginBottom, (v) => set("marginBottom", v), "editor-table-properties-margin-bottom"), null);
33683
- insert(_el$8, () => NumField(t("paragraph.borderSideLeft"), () => form().marginLeft, (v) => set("marginLeft", v), "editor-table-properties-margin-left"), null);
33684
- insert(_el$0, () => t("paragraph.bordersSection"));
33685
- insert(_el$1, createComponent(SelectField, {
33686
- "class": "oasis-editor-dialog-input-group-grow",
33687
- get label() {
33688
- return t("paragraph.borderStyleLabel");
33689
- },
33690
- get value() {
33691
- return form().borderStyle;
33692
- },
33693
- onChange: (value) => {
33694
- const next = value;
33695
- set("borderStyle", next);
33696
- if (next === "none") {
33697
- set("borderTop", false);
33698
- set("borderRight", false);
33699
- set("borderBottom", false);
33700
- set("borderLeft", false);
33701
- set("borderStart", false);
33702
- set("borderEnd", false);
33703
- set("borderTlBr", false);
33704
- set("borderTrBl", false);
33705
- } else if (!form().borderTop && !form().borderRight && !form().borderBottom && !form().borderLeft) {
33706
- set("borderTop", true);
33707
- set("borderRight", true);
33708
- set("borderBottom", true);
33709
- set("borderLeft", true);
33710
- }
33711
- },
33712
- "data-testid": "editor-table-properties-border-style",
33713
- get options() {
33714
- return [{
33715
- value: "none",
33716
- label: t("paragraph.borderNone")
33717
- }, {
33718
- value: "solid",
33719
- label: t("paragraph.borderSolid")
33720
- }, {
33721
- value: "dashed",
33722
- label: t("paragraph.borderDashed")
33723
- }, {
33724
- value: "dotted",
33725
- label: t("paragraph.borderDotted")
33726
- }];
33756
+ get children() {
33757
+ var _el$3 = _tmpl$$6();
33758
+ insert(_el$3, createComponent(Checkbox, {
33759
+ get label() {
33760
+ return t("table.noWrap");
33761
+ },
33762
+ get checked() {
33763
+ return form().cellNoWrap;
33764
+ },
33765
+ onChange: (v) => set("cellNoWrap", v),
33766
+ "data-testid": "editor-table-properties-cell-nowrap"
33767
+ }), null);
33768
+ insert(_el$3, createComponent(Checkbox, {
33769
+ get label() {
33770
+ return t("table.fitText");
33771
+ },
33772
+ get checked() {
33773
+ return form().cellFitText;
33774
+ },
33775
+ onChange: (v) => set("cellFitText", v),
33776
+ "data-testid": "editor-table-properties-cell-fit-text"
33777
+ }), null);
33778
+ insert(_el$3, createComponent(Checkbox, {
33779
+ get label() {
33780
+ return t("table.hideMark");
33781
+ },
33782
+ get checked() {
33783
+ return form().cellHideMark;
33784
+ },
33785
+ onChange: (v) => set("cellHideMark", v),
33786
+ "data-testid": "editor-table-properties-cell-hide-mark"
33787
+ }), null);
33788
+ return _el$3;
33727
33789
  }
33728
- }), _el$10);
33729
- insert(_el$1, () => NumField(t("paragraph.borderWidthLabel"), () => form().borderWidth, (v) => set("borderWidth", v), "editor-table-properties-border-width", borderDisabled()), _el$10);
33730
- insert(_el$11, () => t("paragraph.borderColorLabel"));
33731
- _el$12.$$input = (e) => set("borderColor", e.currentTarget.value);
33732
- insert(_el$14, () => t("paragraph.shadingLabel"));
33733
- _el$15.$$input = (e) => set("shading", e.currentTarget.value);
33734
- insert(_el$16, createComponent(Checkbox, {
33735
- get label() {
33736
- return t("paragraph.borderSideTop");
33737
- },
33738
- get checked() {
33739
- return form().borderTop;
33740
- },
33741
- get disabled() {
33742
- return borderDisabled();
33743
- },
33744
- onChange: (v) => set("borderTop", v),
33745
- "data-testid": "editor-table-properties-border-top"
33746
- }), null);
33747
- insert(_el$16, createComponent(Checkbox, {
33748
- get label() {
33749
- return t("paragraph.borderSideRight");
33750
- },
33751
- get checked() {
33752
- return form().borderRight;
33753
- },
33754
- get disabled() {
33755
- return borderDisabled();
33756
- },
33757
- onChange: (v) => set("borderRight", v),
33758
- "data-testid": "editor-table-properties-border-right"
33759
33790
  }), null);
33760
- insert(_el$16, createComponent(Checkbox, {
33761
- get label() {
33762
- return t("paragraph.borderSideBottom");
33763
- },
33764
- get checked() {
33765
- return form().borderBottom;
33766
- },
33767
- get disabled() {
33768
- return borderDisabled();
33769
- },
33770
- onChange: (v) => set("borderBottom", v),
33771
- "data-testid": "editor-table-properties-border-bottom"
33772
- }), null);
33773
- insert(_el$16, createComponent(Checkbox, {
33774
- get label() {
33775
- return t("paragraph.borderSideLeft");
33776
- },
33777
- get checked() {
33778
- return form().borderLeft;
33779
- },
33780
- get disabled() {
33781
- return borderDisabled();
33782
- },
33783
- onChange: (v) => set("borderLeft", v),
33784
- "data-testid": "editor-table-properties-border-left"
33785
- }), null);
33786
- insert(_el$16, createComponent(Checkbox, {
33787
- get label() {
33788
- return t("table.borderStart");
33789
- },
33790
- get checked() {
33791
- return form().borderStart;
33792
- },
33793
- get disabled() {
33794
- return borderDisabled();
33795
- },
33796
- onChange: (v) => set("borderStart", v),
33797
- "data-testid": "editor-table-properties-border-start"
33798
- }), null);
33799
- insert(_el$16, createComponent(Checkbox, {
33800
- get label() {
33801
- return t("table.borderEnd");
33802
- },
33803
- get checked() {
33804
- return form().borderEnd;
33805
- },
33806
- get disabled() {
33807
- return borderDisabled();
33808
- },
33809
- onChange: (v) => set("borderEnd", v),
33810
- "data-testid": "editor-table-properties-border-end"
33811
- }), null);
33812
- insert(_el$16, createComponent(Checkbox, {
33813
- get label() {
33814
- return t("table.borderTlBr");
33791
+ insert(_el$, createComponent(FieldGroup, {
33792
+ "class": "oasis-editor-font-dialog-fieldset",
33793
+ get legend() {
33794
+ return t("table.cellMargins");
33815
33795
  },
33816
- get checked() {
33817
- return form().borderTlBr;
33818
- },
33819
- get disabled() {
33820
- return borderDisabled();
33821
- },
33822
- onChange: (v) => set("borderTlBr", v),
33823
- "data-testid": "editor-table-properties-border-tlbr"
33796
+ get children() {
33797
+ var _el$4 = _tmpl$2$1();
33798
+ insert(_el$4, () => NumField(t("paragraph.borderSideTop"), () => form().marginTop, (v) => set("marginTop", v), "editor-table-properties-margin-top"), null);
33799
+ insert(_el$4, () => NumField(t("paragraph.borderSideRight"), () => form().marginRight, (v) => set("marginRight", v), "editor-table-properties-margin-right"), null);
33800
+ insert(_el$4, () => NumField(t("paragraph.borderSideBottom"), () => form().marginBottom, (v) => set("marginBottom", v), "editor-table-properties-margin-bottom"), null);
33801
+ insert(_el$4, () => NumField(t("paragraph.borderSideLeft"), () => form().marginLeft, (v) => set("marginLeft", v), "editor-table-properties-margin-left"), null);
33802
+ return _el$4;
33803
+ }
33824
33804
  }), null);
33825
- insert(_el$16, createComponent(Checkbox, {
33826
- get label() {
33827
- return t("table.borderTrBl");
33805
+ insert(_el$, createComponent(FieldGroup, {
33806
+ "class": "oasis-editor-font-dialog-fieldset",
33807
+ get legend() {
33808
+ return t("paragraph.bordersSection");
33828
33809
  },
33829
- get checked() {
33830
- return form().borderTrBl;
33831
- },
33832
- get disabled() {
33833
- return borderDisabled();
33834
- },
33835
- onChange: (v) => set("borderTrBl", v),
33836
- "data-testid": "editor-table-properties-border-trbl"
33810
+ get children() {
33811
+ return [(() => {
33812
+ var _el$5 = _tmpl$2$1();
33813
+ insert(_el$5, createComponent(SelectField, {
33814
+ "class": "oasis-editor-dialog-input-group-grow",
33815
+ get label() {
33816
+ return t("paragraph.borderStyleLabel");
33817
+ },
33818
+ get value() {
33819
+ return form().borderStyle;
33820
+ },
33821
+ onChange: (value) => {
33822
+ const next = value;
33823
+ set("borderStyle", next);
33824
+ if (next === "none") {
33825
+ set("borderTop", false);
33826
+ set("borderRight", false);
33827
+ set("borderBottom", false);
33828
+ set("borderLeft", false);
33829
+ set("borderStart", false);
33830
+ set("borderEnd", false);
33831
+ set("borderTlBr", false);
33832
+ set("borderTrBl", false);
33833
+ } else if (!form().borderTop && !form().borderRight && !form().borderBottom && !form().borderLeft) {
33834
+ set("borderTop", true);
33835
+ set("borderRight", true);
33836
+ set("borderBottom", true);
33837
+ set("borderLeft", true);
33838
+ }
33839
+ },
33840
+ "data-testid": "editor-table-properties-border-style",
33841
+ get options() {
33842
+ return [{
33843
+ value: "none",
33844
+ label: t("paragraph.borderNone")
33845
+ }, {
33846
+ value: "solid",
33847
+ label: t("paragraph.borderSolid")
33848
+ }, {
33849
+ value: "dashed",
33850
+ label: t("paragraph.borderDashed")
33851
+ }, {
33852
+ value: "dotted",
33853
+ label: t("paragraph.borderDotted")
33854
+ }];
33855
+ }
33856
+ }), null);
33857
+ insert(_el$5, () => NumField(t("paragraph.borderWidthLabel"), () => form().borderWidth, (v) => set("borderWidth", v), "editor-table-properties-border-width", borderDisabled()), null);
33858
+ insert(_el$5, createComponent(TextField, {
33859
+ type: "color",
33860
+ "class": "oasis-editor-dialog-input-group",
33861
+ controlClass: "oasis-editor-dialog-input",
33862
+ get label() {
33863
+ return t("paragraph.borderColorLabel");
33864
+ },
33865
+ get value() {
33866
+ return form().borderColor || DEFAULT_BORDER_COLOR;
33867
+ },
33868
+ get disabled() {
33869
+ return borderDisabled();
33870
+ },
33871
+ onChange: (value) => set("borderColor", value),
33872
+ "data-testid": "editor-table-properties-border-color"
33873
+ }), null);
33874
+ insert(_el$5, createComponent(TextField, {
33875
+ type: "color",
33876
+ "class": "oasis-editor-dialog-input-group",
33877
+ controlClass: "oasis-editor-dialog-input",
33878
+ get label() {
33879
+ return t("paragraph.shadingLabel");
33880
+ },
33881
+ get value() {
33882
+ return form().shading || "#ffffff";
33883
+ },
33884
+ onChange: (value) => set("shading", value),
33885
+ "data-testid": "editor-table-properties-shading"
33886
+ }), null);
33887
+ return _el$5;
33888
+ })(), (() => {
33889
+ var _el$6 = _tmpl$$6();
33890
+ insert(_el$6, createComponent(Checkbox, {
33891
+ get label() {
33892
+ return t("paragraph.borderSideTop");
33893
+ },
33894
+ get checked() {
33895
+ return form().borderTop;
33896
+ },
33897
+ get disabled() {
33898
+ return borderDisabled();
33899
+ },
33900
+ onChange: (v) => set("borderTop", v),
33901
+ "data-testid": "editor-table-properties-border-top"
33902
+ }), null);
33903
+ insert(_el$6, createComponent(Checkbox, {
33904
+ get label() {
33905
+ return t("paragraph.borderSideRight");
33906
+ },
33907
+ get checked() {
33908
+ return form().borderRight;
33909
+ },
33910
+ get disabled() {
33911
+ return borderDisabled();
33912
+ },
33913
+ onChange: (v) => set("borderRight", v),
33914
+ "data-testid": "editor-table-properties-border-right"
33915
+ }), null);
33916
+ insert(_el$6, createComponent(Checkbox, {
33917
+ get label() {
33918
+ return t("paragraph.borderSideBottom");
33919
+ },
33920
+ get checked() {
33921
+ return form().borderBottom;
33922
+ },
33923
+ get disabled() {
33924
+ return borderDisabled();
33925
+ },
33926
+ onChange: (v) => set("borderBottom", v),
33927
+ "data-testid": "editor-table-properties-border-bottom"
33928
+ }), null);
33929
+ insert(_el$6, createComponent(Checkbox, {
33930
+ get label() {
33931
+ return t("paragraph.borderSideLeft");
33932
+ },
33933
+ get checked() {
33934
+ return form().borderLeft;
33935
+ },
33936
+ get disabled() {
33937
+ return borderDisabled();
33938
+ },
33939
+ onChange: (v) => set("borderLeft", v),
33940
+ "data-testid": "editor-table-properties-border-left"
33941
+ }), null);
33942
+ insert(_el$6, createComponent(Checkbox, {
33943
+ get label() {
33944
+ return t("table.borderStart");
33945
+ },
33946
+ get checked() {
33947
+ return form().borderStart;
33948
+ },
33949
+ get disabled() {
33950
+ return borderDisabled();
33951
+ },
33952
+ onChange: (v) => set("borderStart", v),
33953
+ "data-testid": "editor-table-properties-border-start"
33954
+ }), null);
33955
+ insert(_el$6, createComponent(Checkbox, {
33956
+ get label() {
33957
+ return t("table.borderEnd");
33958
+ },
33959
+ get checked() {
33960
+ return form().borderEnd;
33961
+ },
33962
+ get disabled() {
33963
+ return borderDisabled();
33964
+ },
33965
+ onChange: (v) => set("borderEnd", v),
33966
+ "data-testid": "editor-table-properties-border-end"
33967
+ }), null);
33968
+ insert(_el$6, createComponent(Checkbox, {
33969
+ get label() {
33970
+ return t("table.borderTlBr");
33971
+ },
33972
+ get checked() {
33973
+ return form().borderTlBr;
33974
+ },
33975
+ get disabled() {
33976
+ return borderDisabled();
33977
+ },
33978
+ onChange: (v) => set("borderTlBr", v),
33979
+ "data-testid": "editor-table-properties-border-tlbr"
33980
+ }), null);
33981
+ insert(_el$6, createComponent(Checkbox, {
33982
+ get label() {
33983
+ return t("table.borderTrBl");
33984
+ },
33985
+ get checked() {
33986
+ return form().borderTrBl;
33987
+ },
33988
+ get disabled() {
33989
+ return borderDisabled();
33990
+ },
33991
+ onChange: (v) => set("borderTrBl", v),
33992
+ "data-testid": "editor-table-properties-border-trbl"
33993
+ }), null);
33994
+ return _el$6;
33995
+ })(), (() => {
33996
+ var _el$7 = _tmpl$3$1();
33997
+ createRenderEffect((_$p) => style(_el$7, borderPreview(), _$p));
33998
+ return _el$7;
33999
+ })()];
34000
+ }
33837
34001
  }), null);
33838
- createRenderEffect((_p$) => {
33839
- var _v$ = borderDisabled(), _v$2 = borderPreview();
33840
- _v$ !== _p$.e && (_el$12.disabled = _p$.e = _v$);
33841
- _p$.t = style(_el$17, _v$2, _p$.t);
33842
- return _p$;
33843
- }, {
33844
- e: void 0,
33845
- t: void 0
33846
- });
33847
- createRenderEffect(() => _el$12.value = form().borderColor || DEFAULT_BORDER_COLOR);
33848
- createRenderEffect(() => _el$15.value = form().shading || "#ffffff");
33849
34002
  return _el$;
33850
34003
  })();
33851
34004
  }
33852
- delegateEvents(["input"]);
33853
- var _tmpl$$5 = /* @__PURE__ */ template(`<div class=oasis-editor-table-properties-panel><div class=oasis-editor-dialog-input-group><label class=oasis-editor-dialog-label></label><textarea class="oasis-editor-ui-input oasis-editor-table-properties-textarea"data-testid=editor-table-properties-alt-description>`);
34005
+ var _tmpl$$5 = /* @__PURE__ */ template(`<div class=oasis-editor-table-properties-panel>`);
33854
34006
  function AltTextTabPanel(props) {
33855
34007
  const t = useI18n();
33856
34008
  const form = () => props.ctrl.form;
33857
34009
  const set = props.ctrl.set;
33858
34010
  return (() => {
33859
- var _el$ = _tmpl$$5(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
34011
+ var _el$ = _tmpl$$5();
33860
34012
  insert(_el$, createComponent(TextField, {
33861
34013
  get label() {
33862
34014
  return t("table.altTitle");
@@ -33866,14 +34018,22 @@ function AltTextTabPanel(props) {
33866
34018
  },
33867
34019
  onChange: (v) => set("altTitle", v),
33868
34020
  "data-testid": "editor-table-properties-alt-title"
33869
- }), _el$2);
33870
- insert(_el$3, () => t("table.altDescription"));
33871
- _el$4.$$input = (e) => set("altDescription", e.currentTarget.value);
33872
- createRenderEffect(() => _el$4.value = form().altDescription);
34021
+ }), null);
34022
+ insert(_el$, createComponent(TextAreaField, {
34023
+ "class": "oasis-editor-dialog-input-group",
34024
+ get label() {
34025
+ return t("table.altDescription");
34026
+ },
34027
+ controlClass: "oasis-editor-table-properties-textarea",
34028
+ get value() {
34029
+ return form().altDescription;
34030
+ },
34031
+ onChange: (value) => set("altDescription", value),
34032
+ "data-testid": "editor-table-properties-alt-description"
34033
+ }), null);
33873
34034
  return _el$;
33874
34035
  })();
33875
34036
  }
33876
- delegateEvents(["input"]);
33877
34037
  function TablePropertiesDialog(props) {
33878
34038
  const t = useI18n();
33879
34039
  const ctrl = useTablePropertiesController(props);
@@ -33960,7 +34120,7 @@ function TablePropertiesDialog(props) {
33960
34120
  }
33961
34121
  });
33962
34122
  }
33963
- var _tmpl$$4 = /* @__PURE__ */ template(`<div class=oasis-editor-find-replace-dialog><div class=oasis-editor-fr-header><span></span><button class=oasis-editor-fr-close><i data-lucide=x></i></button></div><div class=oasis-editor-fr-body><div class=oasis-editor-fr-input-group><div class=oasis-editor-fr-input-wrapper><input type=text autofocus class=oasis-editor-fr-input><span class=oasis-editor-fr-counter></span></div><div class=oasis-editor-fr-actions><button><i data-lucide=chevron-up></i></button><button><i data-lucide=chevron-down></i></button></div></div><div class=oasis-editor-fr-input-group><input type=text class=oasis-editor-fr-input><div class=oasis-editor-fr-actions><button class=oasis-editor-fr-btn-text></button><button class=oasis-editor-fr-btn-text></button></div></div><div class=oasis-editor-fr-options><label class=oasis-editor-fr-checkbox><input type=checkbox><span></span></label><label class=oasis-editor-fr-checkbox><input type=checkbox><span>`);
34123
+ var _tmpl$$4 = /* @__PURE__ */ template(`<div class=oasis-editor-find-replace-dialog><div class=oasis-editor-fr-header></div><div class=oasis-editor-fr-body><div class=oasis-editor-fr-input-group><div class=oasis-editor-fr-input-wrapper></div></div><div class=oasis-editor-fr-input-group>`);
33964
34124
  function FindReplaceDialog(props) {
33965
34125
  const t = useI18n();
33966
34126
  const {
@@ -33983,64 +34143,143 @@ function FindReplaceDialog(props) {
33983
34143
  return fr.isOpen();
33984
34144
  },
33985
34145
  get children() {
33986
- var _el$ = _tmpl$$4(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$7.nextSibling, _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling, _el$11 = _el$6.nextSibling, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$11.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$18.nextSibling, _el$20 = _el$17.nextSibling, _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling;
34146
+ var _el$ = _tmpl$$4(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling;
33987
34147
  _el$.$$keydown = handleKeyDown;
33988
- insert(_el$3, () => t("find.title"));
33989
- _el$4.$$click = () => fr.setIsOpen(false);
33990
- _el$8.$$input = (e) => fr.setSearchTerm(e.currentTarget.value);
33991
- insert(_el$9, (() => {
33992
- var _c$ = memo(() => fr.matches().length > 0);
33993
- return () => _c$() ? `${fr.currentIndex() + 1} / ${fr.matches().length}` : t("find.noMatches");
33994
- })());
33995
- addEventListener(_el$1, "click", fr.findPrevious, true);
33996
- addEventListener(_el$10, "click", fr.findNext, true);
33997
- _el$12.$$input = (e) => fr.setReplaceTerm(e.currentTarget.value);
33998
- addEventListener(_el$14, "click", fr.replace, true);
33999
- insert(_el$14, () => t("replace.one"));
34000
- addEventListener(_el$15, "click", fr.replaceAll, true);
34001
- insert(_el$15, () => t("replace.allBtn"));
34002
- _el$18.addEventListener("change", (e) => fr.setFindOptions({
34003
- ...fr.findOptions(),
34004
- matchCase: e.currentTarget.checked
34005
- }));
34006
- insert(_el$19, () => t("find.matchCase"));
34007
- _el$21.addEventListener("change", (e) => fr.setFindOptions({
34008
- ...fr.findOptions(),
34009
- wholeWord: e.currentTarget.checked
34010
- }));
34011
- insert(_el$22, () => t("find.wholeWord"));
34012
- createRenderEffect((_p$) => {
34013
- var _v$ = t("generic.close"), _v$2 = t("find.placeholder"), _v$3 = fr.matches().length === 0, _v$4 = t("find.prevTooltip"), _v$5 = fr.matches().length === 0, _v$6 = t("find.nextTooltip"), _v$7 = t("replace.placeholder"), _v$8 = fr.matches().length === 0, _v$9 = fr.matches().length === 0;
34014
- _v$ !== _p$.e && setAttribute(_el$4, "aria-label", _p$.e = _v$);
34015
- _v$2 !== _p$.t && setAttribute(_el$8, "placeholder", _p$.t = _v$2);
34016
- _v$3 !== _p$.a && (_el$1.disabled = _p$.a = _v$3);
34017
- _v$4 !== _p$.o && setAttribute(_el$1, "title", _p$.o = _v$4);
34018
- _v$5 !== _p$.i && (_el$10.disabled = _p$.i = _v$5);
34019
- _v$6 !== _p$.n && setAttribute(_el$10, "title", _p$.n = _v$6);
34020
- _v$7 !== _p$.s && setAttribute(_el$12, "placeholder", _p$.s = _v$7);
34021
- _v$8 !== _p$.h && (_el$14.disabled = _p$.h = _v$8);
34022
- _v$9 !== _p$.r && (_el$15.disabled = _p$.r = _v$9);
34023
- return _p$;
34024
- }, {
34025
- e: void 0,
34026
- t: void 0,
34027
- a: void 0,
34028
- o: void 0,
34029
- i: void 0,
34030
- n: void 0,
34031
- s: void 0,
34032
- h: void 0,
34033
- r: void 0
34034
- });
34035
- createRenderEffect(() => _el$8.value = fr.searchTerm());
34036
- createRenderEffect(() => _el$12.value = fr.replaceTerm());
34037
- createRenderEffect(() => _el$18.checked = fr.findOptions().matchCase);
34038
- createRenderEffect(() => _el$21.checked = fr.findOptions().wholeWord);
34148
+ insert(_el$2, createComponent(Text, {
34149
+ get children() {
34150
+ return t("find.title");
34151
+ }
34152
+ }), null);
34153
+ insert(_el$2, createComponent(SurfaceButton, {
34154
+ "class": "oasis-editor-fr-close",
34155
+ icon: "x",
34156
+ onClick: () => fr.setIsOpen(false),
34157
+ get label() {
34158
+ return t("generic.close");
34159
+ }
34160
+ }), null);
34161
+ insert(_el$5, createComponent(TextField, {
34162
+ type: "text",
34163
+ get placeholder() {
34164
+ return t("find.placeholder");
34165
+ },
34166
+ get value() {
34167
+ return fr.searchTerm();
34168
+ },
34169
+ onChange: (value) => fr.setSearchTerm(value),
34170
+ autofocus: true,
34171
+ controlClass: "oasis-editor-fr-input"
34172
+ }), null);
34173
+ insert(_el$5, createComponent(StatusText, {
34174
+ "class": "oasis-editor-fr-counter",
34175
+ get children() {
34176
+ return memo(() => fr.matches().length > 0)() ? `${fr.currentIndex() + 1} / ${fr.matches().length}` : t("find.noMatches");
34177
+ }
34178
+ }), null);
34179
+ insert(_el$4, createComponent(ActionRow, {
34180
+ "class": "oasis-editor-fr-actions",
34181
+ wrap: false,
34182
+ get children() {
34183
+ return [createComponent(SurfaceButton, {
34184
+ get onClick() {
34185
+ return fr.findPrevious;
34186
+ },
34187
+ get disabled() {
34188
+ return fr.matches().length === 0;
34189
+ },
34190
+ icon: "chevron-up",
34191
+ get label() {
34192
+ return t("find.prevTooltip");
34193
+ }
34194
+ }), createComponent(SurfaceButton, {
34195
+ get onClick() {
34196
+ return fr.findNext;
34197
+ },
34198
+ get disabled() {
34199
+ return fr.matches().length === 0;
34200
+ },
34201
+ icon: "chevron-down",
34202
+ get label() {
34203
+ return t("find.nextTooltip");
34204
+ }
34205
+ })];
34206
+ }
34207
+ }), null);
34208
+ insert(_el$6, createComponent(TextField, {
34209
+ type: "text",
34210
+ get placeholder() {
34211
+ return t("replace.placeholder");
34212
+ },
34213
+ get value() {
34214
+ return fr.replaceTerm();
34215
+ },
34216
+ onChange: (value) => fr.setReplaceTerm(value),
34217
+ controlClass: "oasis-editor-fr-input"
34218
+ }), null);
34219
+ insert(_el$6, createComponent(ActionRow, {
34220
+ "class": "oasis-editor-fr-actions",
34221
+ wrap: false,
34222
+ get children() {
34223
+ return [createComponent(SurfaceButton, {
34224
+ "class": "oasis-editor-fr-btn-text",
34225
+ get onClick() {
34226
+ return fr.replace;
34227
+ },
34228
+ get disabled() {
34229
+ return fr.matches().length === 0;
34230
+ },
34231
+ get children() {
34232
+ return t("replace.one");
34233
+ }
34234
+ }), createComponent(SurfaceButton, {
34235
+ "class": "oasis-editor-fr-btn-text",
34236
+ get onClick() {
34237
+ return fr.replaceAll;
34238
+ },
34239
+ get disabled() {
34240
+ return fr.matches().length === 0;
34241
+ },
34242
+ get children() {
34243
+ return t("replace.allBtn");
34244
+ }
34245
+ })];
34246
+ }
34247
+ }), null);
34248
+ insert(_el$3, createComponent(ActionRow, {
34249
+ "class": "oasis-editor-fr-options",
34250
+ get children() {
34251
+ return [createComponent(Checkbox, {
34252
+ "class": "oasis-editor-fr-checkbox",
34253
+ get label() {
34254
+ return t("find.matchCase");
34255
+ },
34256
+ get checked() {
34257
+ return fr.findOptions().matchCase;
34258
+ },
34259
+ onChange: (checked) => fr.setFindOptions({
34260
+ ...fr.findOptions(),
34261
+ matchCase: checked
34262
+ })
34263
+ }), createComponent(Checkbox, {
34264
+ "class": "oasis-editor-fr-checkbox",
34265
+ get label() {
34266
+ return t("find.wholeWord");
34267
+ },
34268
+ get checked() {
34269
+ return fr.findOptions().wholeWord;
34270
+ },
34271
+ onChange: (checked) => fr.setFindOptions({
34272
+ ...fr.findOptions(),
34273
+ wholeWord: checked
34274
+ })
34275
+ })];
34276
+ }
34277
+ }), null);
34039
34278
  return _el$;
34040
34279
  }
34041
34280
  });
34042
34281
  }
34043
- delegateEvents(["keydown", "click", "input"]);
34282
+ delegateEvents(["keydown"]);
34044
34283
  var _tmpl$$3 = /* @__PURE__ */ template(`<div class=oasis-editor-context-menu role=menu data-testid=editor-context-menu>`), _tmpl$2 = /* @__PURE__ */ template(`<i>`), _tmpl$3 = /* @__PURE__ */ template(`<span class=oasis-editor-context-menu-shortcut>`), _tmpl$4 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-context-menu-item role=menuitem><span class=oasis-editor-context-menu-label>`), _tmpl$5 = /* @__PURE__ */ template(`<div class=oasis-editor-context-menu-separator>`), _tmpl$6 = /* @__PURE__ */ template(`<i data-lucide=check style=visibility:hidden>`);
34045
34284
  function ContextMenu(props) {
34046
34285
  let menuRef;