oasis-editor 0.0.116 → 0.0.117
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-DY_N4M54.js → OasisEditorApp-DijR5F-O.js} +1849 -799
- package/dist/{index-DLKF27_V.js → index-Comlrue1.js} +588 -670
- package/dist/layoutProjection/constants.d.ts +7 -1
- package/dist/layoutProjection/footnotePagination.d.ts +0 -1
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +55 -55
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/components/Dialogs/TablePropertiesDialog.d.ts +2 -99
- package/dist/ui/components/Dialogs/font-dialog/FontTab.d.ts +2 -1
- package/dist/ui/components/Dialogs/table-properties/AltTextTabPanel.d.ts +3 -0
- package/dist/ui/components/Dialogs/table-properties/CellTabPanel.d.ts +3 -0
- package/dist/ui/components/Dialogs/table-properties/ColumnTabPanel.d.ts +3 -0
- package/dist/ui/components/Dialogs/table-properties/RowTabPanel.d.ts +3 -0
- package/dist/ui/components/Dialogs/table-properties/TablePropertiesController.d.ts +12 -0
- package/dist/ui/components/Dialogs/table-properties/TablePropertiesTypes.d.ts +160 -0
- package/dist/ui/components/Dialogs/table-properties/TableTabPanel.d.ts +6 -0
- package/dist/ui/components/Dialogs/table-properties/fields.d.ts +9 -0
- package/dist/ui/components/Dialogs/table-properties/useTablePropertiesController.d.ts +4 -0
- package/dist/ui/components/Toolbar/primitives/useSurfaceRect.d.ts +20 -0
- package/dist/ui/public/FieldRow.d.ts +13 -0
- package/dist/ui/public/NumberField.d.ts +13 -0
- package/dist/ui/public/Radio.d.ts +38 -0
- package/dist/ui/public/ToggleChip.d.ts +14 -0
- package/dist/ui/public/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -2440,14 +2440,14 @@ function I18nProvider(props) {
|
|
|
2440
2440
|
});
|
|
2441
2441
|
}
|
|
2442
2442
|
const oasisMarkBase64 = "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";
|
|
2443
|
-
var _tmpl$$
|
|
2443
|
+
var _tmpl$$V = /* @__PURE__ */ template(`<img alt aria-hidden=true>`);
|
|
2444
2444
|
const OASIS_MARK_DATA_URI = `data:image/webp;base64,${oasisMarkBase64}`;
|
|
2445
2445
|
const MARK_ASPECT = 3 / 4;
|
|
2446
2446
|
function OasisBrandMark(props) {
|
|
2447
2447
|
const height = () => props.height ?? 64;
|
|
2448
2448
|
const width = () => Math.round(height() * MARK_ASPECT);
|
|
2449
2449
|
return (() => {
|
|
2450
|
-
var _el$ = _tmpl$$
|
|
2450
|
+
var _el$ = _tmpl$$V();
|
|
2451
2451
|
setAttribute(_el$, "src", OASIS_MARK_DATA_URI);
|
|
2452
2452
|
setAttribute(_el$, "draggable", false);
|
|
2453
2453
|
createRenderEffect((_p$) => {
|
|
@@ -2464,7 +2464,7 @@ function OasisBrandMark(props) {
|
|
|
2464
2464
|
return _el$;
|
|
2465
2465
|
})();
|
|
2466
2466
|
}
|
|
2467
|
-
var _tmpl$$
|
|
2467
|
+
var _tmpl$$U = /* @__PURE__ */ template(`<div class=oasis-editor-import-progress-label>`), _tmpl$2$A = /* @__PURE__ */ template(`<div role=status aria-live=polite><div class=oasis-editor-import-card><div class=oasis-editor-import-title></div><div class=oasis-editor-import-progress-track><div>`), _tmpl$3$p = /* @__PURE__ */ template(`<span class=oasis-editor-import-done-icon>Done`);
|
|
2468
2468
|
function OasisEditorLoading(props) {
|
|
2469
2469
|
const t = useI18n();
|
|
2470
2470
|
const variant = () => props.variant ?? "overlay";
|
|
@@ -2474,7 +2474,7 @@ function OasisEditorLoading(props) {
|
|
|
2474
2474
|
};
|
|
2475
2475
|
const isDone = () => (pct() ?? 0) >= 100;
|
|
2476
2476
|
return (() => {
|
|
2477
|
-
var _el$ = _tmpl$2$
|
|
2477
|
+
var _el$ = _tmpl$2$A(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild;
|
|
2478
2478
|
insert(_el$2, createComponent(OasisBrandMark, {
|
|
2479
2479
|
height: 40,
|
|
2480
2480
|
"class": "oasis-editor-loading-mark"
|
|
@@ -2485,10 +2485,10 @@ function OasisEditorLoading(props) {
|
|
|
2485
2485
|
return pct() != null;
|
|
2486
2486
|
},
|
|
2487
2487
|
get children() {
|
|
2488
|
-
var _el$6 = _tmpl$$
|
|
2488
|
+
var _el$6 = _tmpl$$U();
|
|
2489
2489
|
insert(_el$6, (() => {
|
|
2490
2490
|
var _c$ = memo(() => !!isDone());
|
|
2491
|
-
return () => _c$() ? _tmpl$3$
|
|
2491
|
+
return () => _c$() ? _tmpl$3$p() : `${pct()}%`;
|
|
2492
2492
|
})());
|
|
2493
2493
|
return _el$6;
|
|
2494
2494
|
}
|
|
@@ -2539,7 +2539,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2539
2539
|
onCleanup(() => {
|
|
2540
2540
|
cancelled = true;
|
|
2541
2541
|
});
|
|
2542
|
-
import("./OasisEditorApp-
|
|
2542
|
+
import("./OasisEditorApp-DijR5F-O.js").then((m) => {
|
|
2543
2543
|
cancelled = true;
|
|
2544
2544
|
setProgress(1);
|
|
2545
2545
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -5096,9 +5096,9 @@ function mount(target, props = {}) {
|
|
|
5096
5096
|
unmount: () => client.dispose()
|
|
5097
5097
|
});
|
|
5098
5098
|
}
|
|
5099
|
-
var _tmpl$$
|
|
5100
|
-
const FootnoteIcon = () => _tmpl$$
|
|
5101
|
-
const SpecialIndentFirstLineIcon = () => _tmpl$2$
|
|
5099
|
+
var _tmpl$$T = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=24 viewBox="0 0 24 24"fill=none aria-hidden=true><text x=2 y=18 font-family="'Segoe UI', Arial, sans-serif"font-size=14 font-weight=700 fill=currentColor>ab</text><text x=15.5 y=11 font-family="'Segoe UI', Arial, sans-serif"font-size=10 font-weight=700 fill=#c00000>1`), _tmpl$2$z = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=24 viewBox="0 0 24 24"aria-hidden=true><g fill=currentColor><path d="M3.375 4.875 L7.125 8.625 L3.375 12.375 L2.25 11.25 L4.875 8.625 L2.25 6 Z"></path><rect x=10.125 y=6 width=9 height=1.6875 rx=0.25></rect><rect x=5.625 y=10.875 width=13.5 height=1.6875 rx=0.25></rect><rect x=5.625 y=15.75 width=13.5 height=1.6875 rx=0.25>`), _tmpl$3$o = /* @__PURE__ */ template(`<i>`);
|
|
5100
|
+
const FootnoteIcon = () => _tmpl$$T();
|
|
5101
|
+
const SpecialIndentFirstLineIcon = () => _tmpl$2$z();
|
|
5102
5102
|
const CUSTOM_ICONS = {
|
|
5103
5103
|
footnote: FootnoteIcon,
|
|
5104
5104
|
specialIndentFirstLine: SpecialIndentFirstLineIcon
|
|
@@ -5113,7 +5113,7 @@ function ToolIcon(props) {
|
|
|
5113
5113
|
},
|
|
5114
5114
|
get fallback() {
|
|
5115
5115
|
return (() => {
|
|
5116
|
-
var _el$3 = _tmpl$3$
|
|
5116
|
+
var _el$3 = _tmpl$3$o();
|
|
5117
5117
|
createRenderEffect(() => setAttribute(_el$3, "data-lucide", props.name));
|
|
5118
5118
|
return _el$3;
|
|
5119
5119
|
})();
|
|
@@ -5121,7 +5121,7 @@ function ToolIcon(props) {
|
|
|
5121
5121
|
children: (render2) => render2()()
|
|
5122
5122
|
});
|
|
5123
5123
|
}
|
|
5124
|
-
var _tmpl$$
|
|
5124
|
+
var _tmpl$$S = /* @__PURE__ */ template(`<div class=oasis-menubar role=menubar>`), _tmpl$2$y = /* @__PURE__ */ template(`<div class=oasis-menubar-dropdown role=menu>`), _tmpl$3$n = /* @__PURE__ */ template(`<div class=oasis-menubar-menu><div class=oasis-menubar-button role=menuitem aria-haspopup=true>`), _tmpl$4$i = /* @__PURE__ */ template(`<div class=oasis-menubar-separator role=separator>`), _tmpl$5$e = /* @__PURE__ */ template(`<span class=oasis-menubar-item-icon aria-hidden=true>`), _tmpl$6$8 = /* @__PURE__ */ template(`<span class=oasis-menubar-shortcut>`), _tmpl$7$3 = /* @__PURE__ */ template(`<i class=oasis-menubar-submenu-icon data-lucide=chevron-right>`), _tmpl$8$2 = /* @__PURE__ */ template(`<div class=oasis-menubar-submenu role=menu>`), _tmpl$9$1 = /* @__PURE__ */ template(`<div class=oasis-menubar-item role=menuitem><span class=oasis-menubar-item-main><span>`);
|
|
5125
5125
|
function Menubar(props) {
|
|
5126
5126
|
const t = useI18n();
|
|
5127
5127
|
const [activeMenu, setActiveMenu] = createSignal(null);
|
|
@@ -5189,13 +5189,13 @@ function Menubar(props) {
|
|
|
5189
5189
|
});
|
|
5190
5190
|
const topLevelItems = () => pruneTree(menuTree());
|
|
5191
5191
|
return (() => {
|
|
5192
|
-
var _el$ = _tmpl$$
|
|
5192
|
+
var _el$ = _tmpl$$S();
|
|
5193
5193
|
insert(_el$, createComponent(For, {
|
|
5194
5194
|
get each() {
|
|
5195
5195
|
return topLevelItems();
|
|
5196
5196
|
},
|
|
5197
5197
|
children: (topLevel) => (() => {
|
|
5198
|
-
var _el$2 = _tmpl$3$
|
|
5198
|
+
var _el$2 = _tmpl$3$n(), _el$3 = _el$2.firstChild;
|
|
5199
5199
|
_el$2.addEventListener("mouseenter", () => {
|
|
5200
5200
|
if (activeMenu() && activeMenu() !== topLevel.id) {
|
|
5201
5201
|
setActiveMenu(topLevel.id);
|
|
@@ -5215,7 +5215,7 @@ function Menubar(props) {
|
|
|
5215
5215
|
return activeMenu() === topLevel.id;
|
|
5216
5216
|
},
|
|
5217
5217
|
get children() {
|
|
5218
|
-
var _el$4 = _tmpl$2$
|
|
5218
|
+
var _el$4 = _tmpl$2$y();
|
|
5219
5219
|
insert(_el$4, createComponent(For, {
|
|
5220
5220
|
get each() {
|
|
5221
5221
|
return topLevel.children;
|
|
@@ -5255,7 +5255,7 @@ function MenuNode(props) {
|
|
|
5255
5255
|
} = props;
|
|
5256
5256
|
const isSeparator = (_a = node.item) == null ? void 0 : _a.separator;
|
|
5257
5257
|
if (isSeparator) {
|
|
5258
|
-
return _tmpl$4$
|
|
5258
|
+
return _tmpl$4$i();
|
|
5259
5259
|
}
|
|
5260
5260
|
const hasChildren = node.children.length > 0;
|
|
5261
5261
|
const [showSub, setShowSub] = createSignal(false);
|
|
@@ -5290,7 +5290,7 @@ function MenuNode(props) {
|
|
|
5290
5290
|
return icon();
|
|
5291
5291
|
},
|
|
5292
5292
|
get children() {
|
|
5293
|
-
var _el$8 = _tmpl$5$
|
|
5293
|
+
var _el$8 = _tmpl$5$e();
|
|
5294
5294
|
insert(_el$8, createComponent(ToolIcon, {
|
|
5295
5295
|
get name() {
|
|
5296
5296
|
return icon();
|
|
@@ -5343,10 +5343,10 @@ function MenuNode(props) {
|
|
|
5343
5343
|
})();
|
|
5344
5344
|
}
|
|
5345
5345
|
delegateEvents(["click"]);
|
|
5346
|
-
var _tmpl$$
|
|
5346
|
+
var _tmpl$$R = /* @__PURE__ */ template(`<div class=oasis-titlebar><div class=oasis-titlebar-left><div class=oasis-titlebar-menubar-slot>`);
|
|
5347
5347
|
function TitleBar(props) {
|
|
5348
5348
|
return (() => {
|
|
5349
|
-
var _el$ = _tmpl$$
|
|
5349
|
+
var _el$ = _tmpl$$R(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
5350
5350
|
insert(_el$3, () => props.children);
|
|
5351
5351
|
return _el$;
|
|
5352
5352
|
})();
|
|
@@ -5439,7 +5439,7 @@ function getCaretRectFromSnapshot(snapshot, position2, paragraphOffset) {
|
|
|
5439
5439
|
);
|
|
5440
5440
|
return rectFromBox(slot.left, slot.top, 1, slot.height || line.height);
|
|
5441
5441
|
}
|
|
5442
|
-
var _tmpl$$
|
|
5442
|
+
var _tmpl$$Q = /* @__PURE__ */ template(`<span class=oasis-outline-title>`), _tmpl$2$x = /* @__PURE__ */ template(`<div class=oasis-outline-list>`), _tmpl$3$m = /* @__PURE__ */ template(`<div class=oasis-outline-panel><div class=oasis-outline-header><button class=oasis-outline-toggle><i>`), _tmpl$4$h = /* @__PURE__ */ template(`<div class=oasis-outline-empty>`), _tmpl$5$d = /* @__PURE__ */ template(`<div class=oasis-outline-item>`);
|
|
5443
5443
|
function OutlinePanel(props) {
|
|
5444
5444
|
const t = useI18n();
|
|
5445
5445
|
const [collapsed, setCollapsed] = createSignal(props.defaultCollapsed ?? false);
|
|
@@ -5510,13 +5510,13 @@ function OutlinePanel(props) {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
});
|
|
5512
5512
|
return (() => {
|
|
5513
|
-
var _el$ = _tmpl$3$
|
|
5513
|
+
var _el$ = _tmpl$3$m(), _el$2 = _el$.firstChild, _el$4 = _el$2.firstChild, _el$5 = _el$4.firstChild;
|
|
5514
5514
|
insert(_el$2, createComponent(Show, {
|
|
5515
5515
|
get when() {
|
|
5516
5516
|
return !collapsed();
|
|
5517
5517
|
},
|
|
5518
5518
|
get children() {
|
|
5519
|
-
var _el$3 = _tmpl$$
|
|
5519
|
+
var _el$3 = _tmpl$$Q();
|
|
5520
5520
|
insert(_el$3, () => t("menu.view.outline") || "Outline");
|
|
5521
5521
|
return _el$3;
|
|
5522
5522
|
}
|
|
@@ -5527,14 +5527,14 @@ function OutlinePanel(props) {
|
|
|
5527
5527
|
return !collapsed();
|
|
5528
5528
|
},
|
|
5529
5529
|
get children() {
|
|
5530
|
-
var _el$6 = _tmpl$2$
|
|
5530
|
+
var _el$6 = _tmpl$2$x();
|
|
5531
5531
|
insert(_el$6, createComponent(Show, {
|
|
5532
5532
|
get when() {
|
|
5533
5533
|
return items().length > 0;
|
|
5534
5534
|
},
|
|
5535
5535
|
get fallback() {
|
|
5536
5536
|
return (() => {
|
|
5537
|
-
var _el$7 = _tmpl$4$
|
|
5537
|
+
var _el$7 = _tmpl$4$h();
|
|
5538
5538
|
insert(_el$7, () => t("outline.empty"));
|
|
5539
5539
|
return _el$7;
|
|
5540
5540
|
})();
|
|
@@ -5545,7 +5545,7 @@ function OutlinePanel(props) {
|
|
|
5545
5545
|
return items();
|
|
5546
5546
|
},
|
|
5547
5547
|
children: (item) => (() => {
|
|
5548
|
-
var _el$8 = _tmpl$5$
|
|
5548
|
+
var _el$8 = _tmpl$5$d();
|
|
5549
5549
|
_el$8.$$click = () => props.onNavigate(item.anchor);
|
|
5550
5550
|
insert(_el$8, () => item.text);
|
|
5551
5551
|
createRenderEffect((_p$) => {
|
|
@@ -5584,7 +5584,7 @@ function OutlinePanel(props) {
|
|
|
5584
5584
|
})();
|
|
5585
5585
|
}
|
|
5586
5586
|
delegateEvents(["click"]);
|
|
5587
|
-
var _tmpl$$
|
|
5587
|
+
var _tmpl$$P = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-overflow-manager style="display:flex;align-items:center;flex:1 1 0%;min-width:0;position:relative;margin-right:8px"><button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown oasis-editor-toolbar-more-measure"aria-hidden=true tabindex=-1 style=position:absolute;visibility:hidden;pointer-events:none;right:0><i data-lucide=ellipsis></i></button><div style="display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;overflow:hidden"></div><div style=flex-shrink:0;padding-left:8px;padding-right:16px;align-items:center><button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown"data-testid=editor-toolbar-overflow-dropdown><i data-lucide=ellipsis></i></button></div><div class="oasis-editor-toolbar-overflow-dropdown-menu oasis-editor-toolbar-overflow-menu"style="flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px;padding:8px;background:var(--oasis-paper);border:1px solid var(--oasis-toolbar-border);border-radius:var(--oasis-radius);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);max-width:calc(100vw - 16px);overflow-x:hidden;overflow-y:auto">`), _tmpl$2$w = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-item-wrapper style=display:flex;align-items:center;flex-shrink:0>`);
|
|
5588
5588
|
function ToolbarOverflowManager(props) {
|
|
5589
5589
|
const t = useI18n();
|
|
5590
5590
|
const [overflowCount, setOverflowCount] = createSignal(0);
|
|
@@ -5728,7 +5728,7 @@ function ToolbarOverflowManager(props) {
|
|
|
5728
5728
|
};
|
|
5729
5729
|
};
|
|
5730
5730
|
return (() => {
|
|
5731
|
-
var _el$ = _tmpl$$
|
|
5731
|
+
var _el$ = _tmpl$$P(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling;
|
|
5732
5732
|
var _ref$ = containerRef;
|
|
5733
5733
|
typeof _ref$ === "function" ? use(_ref$, _el$) : containerRef = _el$;
|
|
5734
5734
|
var _ref$2 = moreMeasureRef;
|
|
@@ -5740,7 +5740,7 @@ function ToolbarOverflowManager(props) {
|
|
|
5740
5740
|
return items();
|
|
5741
5741
|
},
|
|
5742
5742
|
children: (item) => (() => {
|
|
5743
|
-
var _el$7 = _tmpl$2$
|
|
5743
|
+
var _el$7 = _tmpl$2$w();
|
|
5744
5744
|
insert(_el$7, item);
|
|
5745
5745
|
return _el$7;
|
|
5746
5746
|
})()
|
|
@@ -5816,12 +5816,12 @@ function resolveLabel(item, api) {
|
|
|
5816
5816
|
if (item.labelKey) return api.t(item.labelKey);
|
|
5817
5817
|
return void 0;
|
|
5818
5818
|
}
|
|
5819
|
-
var _tmpl$$
|
|
5819
|
+
var _tmpl$$O = /* @__PURE__ */ template(`<span>`), _tmpl$2$v = /* @__PURE__ */ template(`<button type=button>`);
|
|
5820
5820
|
function Button$1(props) {
|
|
5821
5821
|
const [local, others] = splitProps(props, ["icon", "label", "active", "tooltip", "wide", "ribbonSize", "aria-label", "class", "classList"]);
|
|
5822
5822
|
const ariaLabel = () => local["aria-label"] || local.tooltip || local.label || "";
|
|
5823
5823
|
return (() => {
|
|
5824
|
-
var _el$ = _tmpl$2$
|
|
5824
|
+
var _el$ = _tmpl$2$v();
|
|
5825
5825
|
spread(_el$, mergeProps({
|
|
5826
5826
|
get ["class"]() {
|
|
5827
5827
|
return `oasis-editor-tool-button ${local.class || ""}`;
|
|
@@ -5858,7 +5858,7 @@ function Button$1(props) {
|
|
|
5858
5858
|
return local.label;
|
|
5859
5859
|
},
|
|
5860
5860
|
get children() {
|
|
5861
|
-
var _el$2 = _tmpl$$
|
|
5861
|
+
var _el$2 = _tmpl$$O();
|
|
5862
5862
|
insert(_el$2, () => local.label);
|
|
5863
5863
|
return _el$2;
|
|
5864
5864
|
}
|
|
@@ -5940,7 +5940,7 @@ function useDismiss(options) {
|
|
|
5940
5940
|
});
|
|
5941
5941
|
});
|
|
5942
5942
|
}
|
|
5943
|
-
var _tmpl$$
|
|
5943
|
+
var _tmpl$$N = /* @__PURE__ */ template(`<div>`);
|
|
5944
5944
|
function Popover(props) {
|
|
5945
5945
|
let anchorRef;
|
|
5946
5946
|
let panelRef;
|
|
@@ -5957,7 +5957,7 @@ function Popover(props) {
|
|
|
5957
5957
|
closeOnEscape: props.closeOnEscape
|
|
5958
5958
|
});
|
|
5959
5959
|
const panel = (portalled) => (() => {
|
|
5960
|
-
var _el$ = _tmpl$$
|
|
5960
|
+
var _el$ = _tmpl$$N();
|
|
5961
5961
|
addEventListener(_el$, "mouseleave", props.onPanelMouseLeave);
|
|
5962
5962
|
var _ref$ = panelRef;
|
|
5963
5963
|
typeof _ref$ === "function" ? use(_ref$, _el$) : panelRef = _el$;
|
|
@@ -6009,12 +6009,12 @@ function Popover(props) {
|
|
|
6009
6009
|
}
|
|
6010
6010
|
})];
|
|
6011
6011
|
}
|
|
6012
|
-
var _tmpl$$
|
|
6012
|
+
var _tmpl$$M = /* @__PURE__ */ template(`<div>`), _tmpl$2$u = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$3$l = /* @__PURE__ */ template(`<i>`), _tmpl$4$g = /* @__PURE__ */ template(`<span class=oasis-editor-tool-button-label>`), _tmpl$5$c = /* @__PURE__ */ template(`<i data-lucide=chevron-down class=oasis-editor-dropdown-chevron>`), _tmpl$6$7 = /* @__PURE__ */ template(`<button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown"aria-haspopup=menu>`);
|
|
6013
6013
|
function Menu(props) {
|
|
6014
6014
|
const [open, setOpen] = createSignal(false);
|
|
6015
6015
|
const ariaLabel = () => props.tooltip || props.label || "";
|
|
6016
6016
|
return (() => {
|
|
6017
|
-
var _el$ = _tmpl$2$
|
|
6017
|
+
var _el$ = _tmpl$2$u();
|
|
6018
6018
|
insert(_el$, createComponent(Popover, {
|
|
6019
6019
|
get open() {
|
|
6020
6020
|
return open();
|
|
@@ -6037,7 +6037,7 @@ function Menu(props) {
|
|
|
6037
6037
|
return props.icon;
|
|
6038
6038
|
},
|
|
6039
6039
|
get children() {
|
|
6040
|
-
var _el$4 = _tmpl$3$
|
|
6040
|
+
var _el$4 = _tmpl$3$l();
|
|
6041
6041
|
createRenderEffect(() => setAttribute(_el$4, "data-lucide", props.icon));
|
|
6042
6042
|
return _el$4;
|
|
6043
6043
|
}
|
|
@@ -6047,7 +6047,7 @@ function Menu(props) {
|
|
|
6047
6047
|
return props.label;
|
|
6048
6048
|
},
|
|
6049
6049
|
get children() {
|
|
6050
|
-
var _el$5 = _tmpl$4$
|
|
6050
|
+
var _el$5 = _tmpl$4$g();
|
|
6051
6051
|
insert(_el$5, () => props.label);
|
|
6052
6052
|
return _el$5;
|
|
6053
6053
|
}
|
|
@@ -6057,7 +6057,7 @@ function Menu(props) {
|
|
|
6057
6057
|
return !props.hideChevron;
|
|
6058
6058
|
},
|
|
6059
6059
|
get children() {
|
|
6060
|
-
return _tmpl$5$
|
|
6060
|
+
return _tmpl$5$c();
|
|
6061
6061
|
}
|
|
6062
6062
|
}), null);
|
|
6063
6063
|
createRenderEffect((_p$) => {
|
|
@@ -6082,7 +6082,7 @@ function Menu(props) {
|
|
|
6082
6082
|
return _el$3;
|
|
6083
6083
|
})(),
|
|
6084
6084
|
get children() {
|
|
6085
|
-
var _el$2 = _tmpl$$
|
|
6085
|
+
var _el$2 = _tmpl$$M();
|
|
6086
6086
|
_el$2.$$click = (event) => {
|
|
6087
6087
|
const el = event.target;
|
|
6088
6088
|
if (el.closest("button") && !el.closest(".oasis-editor-tool-button-dropdown") && !el.closest(".oasis-editor-toolbar-list-options")) {
|
|
@@ -6097,7 +6097,7 @@ function Menu(props) {
|
|
|
6097
6097
|
})();
|
|
6098
6098
|
}
|
|
6099
6099
|
delegateEvents(["click"]);
|
|
6100
|
-
var _tmpl$$
|
|
6100
|
+
var _tmpl$$L = /* @__PURE__ */ template(`<select>`);
|
|
6101
6101
|
function Select(props) {
|
|
6102
6102
|
let selectRef;
|
|
6103
6103
|
const [local, others] = splitProps(props, ["wide", "small", "class", "tooltip", "aria-label", "value"]);
|
|
@@ -6113,7 +6113,7 @@ function Select(props) {
|
|
|
6113
6113
|
}
|
|
6114
6114
|
});
|
|
6115
6115
|
return (() => {
|
|
6116
|
-
var _el$ = _tmpl$$
|
|
6116
|
+
var _el$ = _tmpl$$L();
|
|
6117
6117
|
var _ref$ = selectRef;
|
|
6118
6118
|
typeof _ref$ === "function" ? use(_ref$, _el$) : selectRef = _el$;
|
|
6119
6119
|
spread(_el$, mergeProps({
|
|
@@ -6140,15 +6140,15 @@ function Select(props) {
|
|
|
6140
6140
|
return _el$;
|
|
6141
6141
|
})();
|
|
6142
6142
|
}
|
|
6143
|
-
var _tmpl$$
|
|
6143
|
+
var _tmpl$$K = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-separator>`);
|
|
6144
6144
|
function Separator(props) {
|
|
6145
6145
|
return (() => {
|
|
6146
|
-
var _el$ = _tmpl$$
|
|
6146
|
+
var _el$ = _tmpl$$K();
|
|
6147
6147
|
createRenderEffect((_$p) => setStyleProperty(_el$, "display", props.hidden ? "none" : void 0));
|
|
6148
6148
|
return _el$;
|
|
6149
6149
|
})();
|
|
6150
6150
|
}
|
|
6151
|
-
var _tmpl$$
|
|
6151
|
+
var _tmpl$$J = /* @__PURE__ */ template(`<div><button type=button class=oasis-editor-color-split-main></button><button type=button class=oasis-editor-color-split-menu-button aria-haspopup=menu><i data-lucide=chevron-down>`);
|
|
6152
6152
|
function SplitButton(props) {
|
|
6153
6153
|
return createComponent(Popover, {
|
|
6154
6154
|
get open() {
|
|
@@ -6167,7 +6167,7 @@ function SplitButton(props) {
|
|
|
6167
6167
|
return props.onPanelMouseLeave;
|
|
6168
6168
|
},
|
|
6169
6169
|
trigger: (api) => (() => {
|
|
6170
|
-
var _el$ = _tmpl$$
|
|
6170
|
+
var _el$ = _tmpl$$J(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
6171
6171
|
use((el) => api.ref(el), _el$);
|
|
6172
6172
|
_el$2.$$click = () => props.onMain();
|
|
6173
6173
|
insert(_el$2, () => props.mainContent);
|
|
@@ -6205,7 +6205,7 @@ function SplitButton(props) {
|
|
|
6205
6205
|
});
|
|
6206
6206
|
}
|
|
6207
6207
|
delegateEvents(["click"]);
|
|
6208
|
-
var _tmpl$$
|
|
6208
|
+
var _tmpl$$I = /* @__PURE__ */ template(`<i data-lucide=type>`), _tmpl$2$t = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action role=menuitem><span class=oasis-editor-color-menu-action-swatch></span><span>`), _tmpl$3$k = /* @__PURE__ */ template(`<div class=oasis-editor-color-menu-section><div class=oasis-editor-color-menu-heading></div><div class=oasis-editor-color-theme-grid>`), _tmpl$4$f = /* @__PURE__ */ template(`<div class=oasis-editor-color-menu-section><div class=oasis-editor-color-menu-heading></div><div class=oasis-editor-color-standard-grid>`), _tmpl$5$b = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action role=menuitem><span class="oasis-editor-color-menu-action-swatch oasis-editor-color-menu-more-swatch"></span><span>`), _tmpl$6$6 = /* @__PURE__ */ template(`<input type=color class=oasis-editor-color-custom-input>`), _tmpl$7$2 = /* @__PURE__ */ template(`<span class=oasis-editor-color-split-icon><i></i><span class=oasis-editor-color-split-indicator>`), _tmpl$8$1 = /* @__PURE__ */ template(`<i data-lucide=slash>`), _tmpl$9 = /* @__PURE__ */ template(`<div class=oasis-editor-color-theme-column>`), _tmpl$0 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-swatch>`);
|
|
6209
6209
|
const normalizeColor = (value) => (value == null ? void 0 : value.trim().toLowerCase()) ?? "";
|
|
6210
6210
|
function ColorPicker(props) {
|
|
6211
6211
|
const [isOpen, setIsOpen] = createSignal(false);
|
|
@@ -6270,7 +6270,7 @@ function ColorPicker(props) {
|
|
|
6270
6270
|
return clearLabel();
|
|
6271
6271
|
},
|
|
6272
6272
|
get children() {
|
|
6273
|
-
var _el$ = _tmpl$2$
|
|
6273
|
+
var _el$ = _tmpl$2$t(), _el$2 = _el$.firstChild, _el$4 = _el$2.nextSibling;
|
|
6274
6274
|
_el$.$$click = () => applyColor(null);
|
|
6275
6275
|
insert(_el$2, createComponent(Show, {
|
|
6276
6276
|
get when() {
|
|
@@ -6280,7 +6280,7 @@ function ColorPicker(props) {
|
|
|
6280
6280
|
return _tmpl$8$1();
|
|
6281
6281
|
},
|
|
6282
6282
|
get children() {
|
|
6283
|
-
return _tmpl$$
|
|
6283
|
+
return _tmpl$$I();
|
|
6284
6284
|
}
|
|
6285
6285
|
}));
|
|
6286
6286
|
insert(_el$4, clearLabel);
|
|
@@ -6288,7 +6288,7 @@ function ColorPicker(props) {
|
|
|
6288
6288
|
return _el$;
|
|
6289
6289
|
}
|
|
6290
6290
|
}), (() => {
|
|
6291
|
-
var _el$5 = _tmpl$3$
|
|
6291
|
+
var _el$5 = _tmpl$3$k(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
6292
6292
|
insert(_el$6, () => props.themeColorsLabel);
|
|
6293
6293
|
insert(_el$7, createComponent(For, {
|
|
6294
6294
|
get each() {
|
|
@@ -6328,7 +6328,7 @@ function ColorPicker(props) {
|
|
|
6328
6328
|
}));
|
|
6329
6329
|
return _el$5;
|
|
6330
6330
|
})(), (() => {
|
|
6331
|
-
var _el$8 = _tmpl$4$
|
|
6331
|
+
var _el$8 = _tmpl$4$f(), _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling;
|
|
6332
6332
|
insert(_el$9, () => props.standardColorsLabel);
|
|
6333
6333
|
insert(_el$0, createComponent(For, {
|
|
6334
6334
|
get each() {
|
|
@@ -6365,7 +6365,7 @@ function ColorPicker(props) {
|
|
|
6365
6365
|
},
|
|
6366
6366
|
get children() {
|
|
6367
6367
|
return [(() => {
|
|
6368
|
-
var _el$1 = _tmpl$5$
|
|
6368
|
+
var _el$1 = _tmpl$5$b(), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
|
|
6369
6369
|
_el$1.$$click = () => customColorInputRef == null ? void 0 : customColorInputRef.click();
|
|
6370
6370
|
insert(_el$11, () => props.moreColorsLabel);
|
|
6371
6371
|
createRenderEffect(() => setAttribute(_el$1, "data-testid", `${props.testId}-more-colors`));
|
|
@@ -6393,7 +6393,7 @@ function ColorPicker(props) {
|
|
|
6393
6393
|
});
|
|
6394
6394
|
}
|
|
6395
6395
|
delegateEvents(["click", "input"]);
|
|
6396
|
-
var _tmpl$$
|
|
6396
|
+
var _tmpl$$H = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-status>`), _tmpl$2$s = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-grid>`), _tmpl$3$j = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$4$e = /* @__PURE__ */ template(`<button type=button class=oasis-editor-tool-button><i>`), _tmpl$5$a = /* @__PURE__ */ template(`<button type=button class=oasis-editor-table-grid-picker-cell>`);
|
|
6397
6397
|
function GridPicker(props) {
|
|
6398
6398
|
const t = useI18n();
|
|
6399
6399
|
const [isOpen, setIsOpen] = createSignal(false);
|
|
@@ -6468,7 +6468,7 @@ function GridPicker(props) {
|
|
|
6468
6468
|
return h.row === 0 || h.col === 0 ? t("toolbar.table") : `${h.row} × ${h.col}`;
|
|
6469
6469
|
};
|
|
6470
6470
|
return (() => {
|
|
6471
|
-
var _el$ = _tmpl$3$
|
|
6471
|
+
var _el$ = _tmpl$3$j();
|
|
6472
6472
|
insert(_el$, createComponent(Popover, {
|
|
6473
6473
|
get open() {
|
|
6474
6474
|
return isOpen();
|
|
@@ -6480,7 +6480,7 @@ function GridPicker(props) {
|
|
|
6480
6480
|
col: 0
|
|
6481
6481
|
}),
|
|
6482
6482
|
trigger: (api) => (() => {
|
|
6483
|
-
var _el$4 = _tmpl$4$
|
|
6483
|
+
var _el$4 = _tmpl$4$e(), _el$5 = _el$4.firstChild;
|
|
6484
6484
|
_el$4.$$click = () => api.toggle();
|
|
6485
6485
|
use((el) => api.ref(el), _el$4);
|
|
6486
6486
|
createRenderEffect((_p$) => {
|
|
@@ -6502,11 +6502,11 @@ function GridPicker(props) {
|
|
|
6502
6502
|
})(),
|
|
6503
6503
|
get children() {
|
|
6504
6504
|
return [(() => {
|
|
6505
|
-
var _el$2 = _tmpl$$
|
|
6505
|
+
var _el$2 = _tmpl$$H();
|
|
6506
6506
|
insert(_el$2, statusLabel);
|
|
6507
6507
|
return _el$2;
|
|
6508
6508
|
})(), (() => {
|
|
6509
|
-
var _el$3 = _tmpl$2$
|
|
6509
|
+
var _el$3 = _tmpl$2$s();
|
|
6510
6510
|
insert(_el$3, createComponent(For, {
|
|
6511
6511
|
get each() {
|
|
6512
6512
|
return rows();
|
|
@@ -6516,7 +6516,7 @@ function GridPicker(props) {
|
|
|
6516
6516
|
return cols();
|
|
6517
6517
|
},
|
|
6518
6518
|
children: (c) => (() => {
|
|
6519
|
-
var _el$6 = _tmpl$5$
|
|
6519
|
+
var _el$6 = _tmpl$5$a();
|
|
6520
6520
|
_el$6.$$click = () => selectGridSize(r, c);
|
|
6521
6521
|
_el$6.$$mousedown = (event) => event.preventDefault();
|
|
6522
6522
|
_el$6.addEventListener("mouseenter", () => setHover({
|
|
@@ -6606,7 +6606,7 @@ const DEFAULT_PALETTE = {
|
|
|
6606
6606
|
standardColors: STANDARD_COLORS,
|
|
6607
6607
|
allowCustom: true
|
|
6608
6608
|
};
|
|
6609
|
-
var _tmpl$$
|
|
6609
|
+
var _tmpl$$G = /* @__PURE__ */ template(`<button type=button class=oasis-editor-style-gallery-card role=option><span>`), _tmpl$2$r = /* @__PURE__ */ template(`<div class=oasis-editor-style-gallery-grid>`), _tmpl$3$i = /* @__PURE__ */ template(`<div class=oasis-editor-style-gallery><div class=oasis-editor-style-gallery-ribbon><div class=oasis-editor-style-gallery-strip role=listbox></div><button type=button class=oasis-editor-style-gallery-expand aria-haspopup=listbox><i data-lucide=chevron-down>`), _tmpl$4$d = /* @__PURE__ */ template(`<option>`);
|
|
6610
6610
|
function getQuickStyles(styles) {
|
|
6611
6611
|
const applicable = styles.filter((style2) => style2.type !== "table" && (!style2.semiHidden || style2.unhideWhenUsed && style2.isUsed));
|
|
6612
6612
|
const hasQuickStyles = applicable.some((style2) => style2.qFormat === true);
|
|
@@ -6686,7 +6686,7 @@ function StyleGallery(props) {
|
|
|
6686
6686
|
return styles();
|
|
6687
6687
|
},
|
|
6688
6688
|
children: (style$1) => (() => {
|
|
6689
|
-
var _el$ = _tmpl$$
|
|
6689
|
+
var _el$ = _tmpl$$G(), _el$2 = _el$.firstChild;
|
|
6690
6690
|
_el$.$$click = () => apply(style$1);
|
|
6691
6691
|
insert(_el$2, () => style$1.name);
|
|
6692
6692
|
createRenderEffect((_p$) => {
|
|
@@ -6717,7 +6717,7 @@ function StyleGallery(props) {
|
|
|
6717
6717
|
panelRole: "listbox",
|
|
6718
6718
|
panelTestId,
|
|
6719
6719
|
trigger: (popover) => (() => {
|
|
6720
|
-
var _el$4 = _tmpl$3$
|
|
6720
|
+
var _el$4 = _tmpl$3$i(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
6721
6721
|
var _ref$ = popover.ref;
|
|
6722
6722
|
typeof _ref$ === "function" ? use(_ref$, _el$4) : popover.ref = _el$4;
|
|
6723
6723
|
insert(_el$4, createComponent(Select, {
|
|
@@ -6741,7 +6741,7 @@ function StyleGallery(props) {
|
|
|
6741
6741
|
return styles();
|
|
6742
6742
|
},
|
|
6743
6743
|
children: (style2) => (() => {
|
|
6744
|
-
var _el$8 = _tmpl$4$
|
|
6744
|
+
var _el$8 = _tmpl$4$d();
|
|
6745
6745
|
insert(_el$8, () => style2.name);
|
|
6746
6746
|
createRenderEffect(() => _el$8.value = style2.id);
|
|
6747
6747
|
return _el$8;
|
|
@@ -6766,7 +6766,7 @@ function StyleGallery(props) {
|
|
|
6766
6766
|
return _el$4;
|
|
6767
6767
|
})(),
|
|
6768
6768
|
get children() {
|
|
6769
|
-
var _el$3 = _tmpl$2$
|
|
6769
|
+
var _el$3 = _tmpl$2$r();
|
|
6770
6770
|
_el$3.$$keydown = onPanelKeyDown;
|
|
6771
6771
|
insert(_el$3, cards);
|
|
6772
6772
|
return _el$3;
|
|
@@ -6774,7 +6774,7 @@ function StyleGallery(props) {
|
|
|
6774
6774
|
});
|
|
6775
6775
|
}
|
|
6776
6776
|
delegateEvents(["click", "keydown"]);
|
|
6777
|
-
var _tmpl$$
|
|
6777
|
+
var _tmpl$$F = /* @__PURE__ */ template(`<option value>`), _tmpl$2$q = /* @__PURE__ */ template(`<option>`), _tmpl$3$h = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-item style=align-items:center>`);
|
|
6778
6778
|
function renderMenuContent(content, api) {
|
|
6779
6779
|
if (content.kind === "custom") {
|
|
6780
6780
|
return content.render(api);
|
|
@@ -6956,7 +6956,7 @@ function RenderSelect(props) {
|
|
|
6956
6956
|
return props.item.placeholder !== void 0;
|
|
6957
6957
|
},
|
|
6958
6958
|
get children() {
|
|
6959
|
-
var _el$ = _tmpl$$
|
|
6959
|
+
var _el$ = _tmpl$$F();
|
|
6960
6960
|
insert(_el$, () => props.item.placeholder);
|
|
6961
6961
|
return _el$;
|
|
6962
6962
|
}
|
|
@@ -6965,7 +6965,7 @@ function RenderSelect(props) {
|
|
|
6965
6965
|
return props.item.options(props.api);
|
|
6966
6966
|
},
|
|
6967
6967
|
children: (option) => (() => {
|
|
6968
|
-
var _el$2 = _tmpl$2$
|
|
6968
|
+
var _el$2 = _tmpl$2$q();
|
|
6969
6969
|
insert(_el$2, () => option.label);
|
|
6970
6970
|
createRenderEffect(() => _el$2.value = option.value);
|
|
6971
6971
|
return _el$2;
|
|
@@ -7103,7 +7103,7 @@ function ToolbarItemRenderer(props) {
|
|
|
7103
7103
|
const binding = bindItem(props.item, props.api);
|
|
7104
7104
|
const component = () => resolveRenderer(props.item.type);
|
|
7105
7105
|
return (() => {
|
|
7106
|
-
var _el$3 = _tmpl$3$
|
|
7106
|
+
var _el$3 = _tmpl$3$h();
|
|
7107
7107
|
insert(_el$3, createComponent(Show, {
|
|
7108
7108
|
get when() {
|
|
7109
7109
|
return component();
|
|
@@ -7514,7 +7514,7 @@ function resolveResponsiveRibbonGroups(groups, availableWidth, measurements = {}
|
|
|
7514
7514
|
allocatedWidth: allocatedWidths.get(group.id)
|
|
7515
7515
|
}));
|
|
7516
7516
|
}
|
|
7517
|
-
var _tmpl$$
|
|
7517
|
+
var _tmpl$$E = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-tabs role=tablist>`), _tmpl$2$p = /* @__PURE__ */ template(`<button type=button class=oasis-editor-ribbon-tab role=tab>`);
|
|
7518
7518
|
function RibbonTabs(props) {
|
|
7519
7519
|
const tabs = buildRibbonTabDefinitions(useI18n());
|
|
7520
7520
|
const moveTab = (current, delta) => {
|
|
@@ -7523,11 +7523,11 @@ function RibbonTabs(props) {
|
|
|
7523
7523
|
if (next) props.setActiveTab(next.id);
|
|
7524
7524
|
};
|
|
7525
7525
|
return (() => {
|
|
7526
|
-
var _el$ = _tmpl$$
|
|
7526
|
+
var _el$ = _tmpl$$E();
|
|
7527
7527
|
insert(_el$, createComponent(For, {
|
|
7528
7528
|
each: tabs,
|
|
7529
7529
|
children: (tab) => (() => {
|
|
7530
|
-
var _el$2 = _tmpl$2$
|
|
7530
|
+
var _el$2 = _tmpl$2$p();
|
|
7531
7531
|
_el$2.$$keydown = (event) => {
|
|
7532
7532
|
if (event.key === "ArrowRight") {
|
|
7533
7533
|
event.preventDefault();
|
|
@@ -7569,10 +7569,10 @@ function RibbonTabs(props) {
|
|
|
7569
7569
|
})();
|
|
7570
7570
|
}
|
|
7571
7571
|
delegateEvents(["click", "keydown"]);
|
|
7572
|
-
var _tmpl$$
|
|
7572
|
+
var _tmpl$$D = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-row>`);
|
|
7573
7573
|
function RibbonRow(props) {
|
|
7574
7574
|
return (() => {
|
|
7575
|
-
var _el$ = _tmpl$$
|
|
7575
|
+
var _el$ = _tmpl$$D();
|
|
7576
7576
|
insert(_el$, createComponent(For, {
|
|
7577
7577
|
get each() {
|
|
7578
7578
|
return props.items;
|
|
@@ -7587,7 +7587,7 @@ function RibbonRow(props) {
|
|
|
7587
7587
|
return _el$;
|
|
7588
7588
|
})();
|
|
7589
7589
|
}
|
|
7590
|
-
var _tmpl$$
|
|
7590
|
+
var _tmpl$$C = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-large-items>`), _tmpl$2$o = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-rows><div class=oasis-editor-ribbon-normal-rows>`), _tmpl$3$g = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-label>`), _tmpl$4$c = /* @__PURE__ */ template(`<section class=oasis-editor-ribbon-group>`), _tmpl$5$9 = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-collapsed-items>`), _tmpl$6$5 = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-rows>`);
|
|
7591
7591
|
function groupItems(group) {
|
|
7592
7592
|
return [...group.largeItems, ...group.rows[1], ...group.rows[2]];
|
|
7593
7593
|
}
|
|
@@ -7598,7 +7598,7 @@ function groupStyle(group) {
|
|
|
7598
7598
|
}
|
|
7599
7599
|
function RibbonGroup(props) {
|
|
7600
7600
|
return (() => {
|
|
7601
|
-
var _el$ = _tmpl$4$
|
|
7601
|
+
var _el$ = _tmpl$4$c();
|
|
7602
7602
|
insert(_el$, createComponent(Show, {
|
|
7603
7603
|
get when() {
|
|
7604
7604
|
return props.group.resizeState !== "collapsed";
|
|
@@ -7622,7 +7622,7 @@ function RibbonGroup(props) {
|
|
|
7622
7622
|
ribbonSize: "large",
|
|
7623
7623
|
panelClass: "oasis-editor-ribbon-collapsed-menu",
|
|
7624
7624
|
get children() {
|
|
7625
|
-
var _el$7 = _tmpl$5$
|
|
7625
|
+
var _el$7 = _tmpl$5$9();
|
|
7626
7626
|
insert(_el$7, createComponent(For, {
|
|
7627
7627
|
get each() {
|
|
7628
7628
|
return groupItems(props.group);
|
|
@@ -7639,20 +7639,20 @@ function RibbonGroup(props) {
|
|
|
7639
7639
|
}));
|
|
7640
7640
|
return _el$6;
|
|
7641
7641
|
})(), (() => {
|
|
7642
|
-
var _el$8 = _tmpl$3$
|
|
7642
|
+
var _el$8 = _tmpl$3$g();
|
|
7643
7643
|
insert(_el$8, () => props.group.label);
|
|
7644
7644
|
return _el$8;
|
|
7645
7645
|
})()];
|
|
7646
7646
|
},
|
|
7647
7647
|
get children() {
|
|
7648
7648
|
return [(() => {
|
|
7649
|
-
var _el$2 = _tmpl$2$
|
|
7649
|
+
var _el$2 = _tmpl$2$o(), _el$4 = _el$2.firstChild;
|
|
7650
7650
|
insert(_el$2, createComponent(Show, {
|
|
7651
7651
|
get when() {
|
|
7652
7652
|
return props.group.largeItems.length > 0;
|
|
7653
7653
|
},
|
|
7654
7654
|
get children() {
|
|
7655
|
-
var _el$3 = _tmpl$$
|
|
7655
|
+
var _el$3 = _tmpl$$C();
|
|
7656
7656
|
insert(_el$3, createComponent(For, {
|
|
7657
7657
|
get each() {
|
|
7658
7658
|
return props.group.largeItems;
|
|
@@ -7685,7 +7685,7 @@ function RibbonGroup(props) {
|
|
|
7685
7685
|
}), null);
|
|
7686
7686
|
return _el$2;
|
|
7687
7687
|
})(), (() => {
|
|
7688
|
-
var _el$5 = _tmpl$3$
|
|
7688
|
+
var _el$5 = _tmpl$3$g();
|
|
7689
7689
|
insert(_el$5, () => props.group.label);
|
|
7690
7690
|
return _el$5;
|
|
7691
7691
|
})()];
|
|
@@ -7713,7 +7713,7 @@ function RibbonGroup(props) {
|
|
|
7713
7713
|
return _el$;
|
|
7714
7714
|
})();
|
|
7715
7715
|
}
|
|
7716
|
-
var _tmpl$$
|
|
7716
|
+
var _tmpl$$B = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-panel role=tabpanel data-testid=editor-ribbon-panel>`);
|
|
7717
7717
|
function RibbonPanel(props) {
|
|
7718
7718
|
const [availableWidth, setAvailableWidth] = createSignal(null);
|
|
7719
7719
|
const [measurements, setMeasurements] = createSignal({});
|
|
@@ -7758,7 +7758,7 @@ function RibbonPanel(props) {
|
|
|
7758
7758
|
requestAnimationFrame(measureGroups);
|
|
7759
7759
|
});
|
|
7760
7760
|
return (() => {
|
|
7761
|
-
var _el$ = _tmpl$$
|
|
7761
|
+
var _el$ = _tmpl$$B();
|
|
7762
7762
|
var _ref$ = panelRef;
|
|
7763
7763
|
typeof _ref$ === "function" ? use(_ref$, _el$) : panelRef = _el$;
|
|
7764
7764
|
insert(_el$, createComponent(For, {
|
|
@@ -7784,7 +7784,7 @@ function RibbonPanel(props) {
|
|
|
7784
7784
|
return _el$;
|
|
7785
7785
|
})();
|
|
7786
7786
|
}
|
|
7787
|
-
var _tmpl$$
|
|
7787
|
+
var _tmpl$$A = /* @__PURE__ */ template(`<section class=oasis-editor-toolbar>`), _tmpl$2$n = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-wrap-strip>`);
|
|
7788
7788
|
const shouldAllowNativeMouseDown = (target) => target instanceof Element && target.closest("select, input, textarea, label") !== null;
|
|
7789
7789
|
function Toolbar(props) {
|
|
7790
7790
|
const api = createToolbarApi(props.host, useI18n());
|
|
@@ -7814,7 +7814,7 @@ function Toolbar(props) {
|
|
|
7814
7814
|
})
|
|
7815
7815
|
});
|
|
7816
7816
|
return (() => {
|
|
7817
|
-
var _el$ = _tmpl$$
|
|
7817
|
+
var _el$ = _tmpl$$A();
|
|
7818
7818
|
_el$.$$mousedown = (event) => {
|
|
7819
7819
|
if (shouldAllowNativeMouseDown(event.target)) {
|
|
7820
7820
|
return;
|
|
@@ -7835,7 +7835,7 @@ function Toolbar(props) {
|
|
|
7835
7835
|
return renderItems();
|
|
7836
7836
|
}
|
|
7837
7837
|
}) : (() => {
|
|
7838
|
-
var _el$2 = _tmpl$2$
|
|
7838
|
+
var _el$2 = _tmpl$2$n();
|
|
7839
7839
|
insert(_el$2, renderItems);
|
|
7840
7840
|
return _el$2;
|
|
7841
7841
|
})();
|
|
@@ -14782,149 +14782,7 @@ function collectPdfFontFamilies(document2) {
|
|
|
14782
14782
|
}
|
|
14783
14783
|
return families;
|
|
14784
14784
|
}
|
|
14785
|
-
const FOOTNOTE_SEPARATOR_HEIGHT = 10;
|
|
14786
|
-
const FOOTNOTE_BLOCK_GAP = 2;
|
|
14787
14785
|
const FOOTNOTE_MARKER_GUTTER_PX = 24;
|
|
14788
|
-
const MAX_FOOTNOTE_LAYOUT_ITERATIONS = 4;
|
|
14789
|
-
function getProjectedBlocksHeight(blocks) {
|
|
14790
|
-
if (!blocks || blocks.length === 0) {
|
|
14791
|
-
return 0;
|
|
14792
|
-
}
|
|
14793
|
-
return blocks.reduce((sum, block) => sum + block.estimatedHeight, 0);
|
|
14794
|
-
}
|
|
14795
|
-
function collectFootnoteReferencesFromBlock(block) {
|
|
14796
|
-
var _a, _b;
|
|
14797
|
-
const result = [];
|
|
14798
|
-
const appendFromParagraph = (paragraph, startOffset, endOffset) => {
|
|
14799
|
-
let runStart = 0;
|
|
14800
|
-
for (const run of paragraph.runs) {
|
|
14801
|
-
const runEnd = runStart + run.text.length;
|
|
14802
|
-
const footnoteReference = getRunFootnoteReference(run);
|
|
14803
|
-
if (footnoteReference && runEnd > startOffset && runStart < endOffset) {
|
|
14804
|
-
result.push(footnoteReference.footnoteId);
|
|
14805
|
-
}
|
|
14806
|
-
runStart = runEnd;
|
|
14807
|
-
}
|
|
14808
|
-
};
|
|
14809
|
-
if (block.sourceBlock.type === "paragraph") {
|
|
14810
|
-
appendFromParagraph(
|
|
14811
|
-
block.sourceBlock,
|
|
14812
|
-
((_a = block.layout) == null ? void 0 : _a.startOffset) ?? 0,
|
|
14813
|
-
((_b = block.layout) == null ? void 0 : _b.endOffset) ?? getParagraphText(block.sourceBlock).length
|
|
14814
|
-
);
|
|
14815
|
-
return result;
|
|
14816
|
-
}
|
|
14817
|
-
for (const paragraph of getBlockParagraphs(block.sourceBlock)) {
|
|
14818
|
-
appendFromParagraph(paragraph, 0, getParagraphText(paragraph).length);
|
|
14819
|
-
}
|
|
14820
|
-
return result;
|
|
14821
|
-
}
|
|
14822
|
-
function collectPageFootnoteReferenceIds(page) {
|
|
14823
|
-
const seen = /* @__PURE__ */ new Set();
|
|
14824
|
-
const ids = [];
|
|
14825
|
-
for (const block of page.blocks) {
|
|
14826
|
-
for (const footnoteId of collectFootnoteReferencesFromBlock(block)) {
|
|
14827
|
-
if (seen.has(footnoteId)) continue;
|
|
14828
|
-
seen.add(footnoteId);
|
|
14829
|
-
ids.push(footnoteId);
|
|
14830
|
-
}
|
|
14831
|
-
}
|
|
14832
|
-
return ids;
|
|
14833
|
-
}
|
|
14834
|
-
function projectFootnoteBlocksForPage(document2, footnoteReferenceIds, page, totalPages, measuredHeights, measuredParagraphLayouts, measurer, projectBlocks) {
|
|
14835
|
-
var _a, _b, _c;
|
|
14836
|
-
const contentWidth = Math.max(
|
|
14837
|
-
24,
|
|
14838
|
-
getPageContentWidth(page.pageSettings) - FOOTNOTE_MARKER_GUTTER_PX
|
|
14839
|
-
);
|
|
14840
|
-
const blocks = [];
|
|
14841
|
-
for (const footnoteId of footnoteReferenceIds) {
|
|
14842
|
-
const footnote = (_b = (_a = document2.footnotes) == null ? void 0 : _a.items) == null ? void 0 : _b[footnoteId];
|
|
14843
|
-
if (!footnote) continue;
|
|
14844
|
-
const projected = projectBlocks(footnote.blocks, {
|
|
14845
|
-
pageIndex: page.index,
|
|
14846
|
-
totalPages,
|
|
14847
|
-
measuredHeights,
|
|
14848
|
-
measuredParagraphLayouts,
|
|
14849
|
-
styles: document2.styles,
|
|
14850
|
-
contentWidth,
|
|
14851
|
-
measurer,
|
|
14852
|
-
defaultTabStop: (_c = document2.settings) == null ? void 0 : _c.defaultTabStop
|
|
14853
|
-
});
|
|
14854
|
-
for (const block of projected) {
|
|
14855
|
-
blocks.push({
|
|
14856
|
-
...block,
|
|
14857
|
-
blockId: `${footnoteId}:${block.blockId}`
|
|
14858
|
-
});
|
|
14859
|
-
}
|
|
14860
|
-
}
|
|
14861
|
-
return blocks;
|
|
14862
|
-
}
|
|
14863
|
-
function buildFootnoteReservations(pages, context2) {
|
|
14864
|
-
const reservations = /* @__PURE__ */ new Map();
|
|
14865
|
-
for (const page of pages) {
|
|
14866
|
-
const footnoteReferenceIds = collectPageFootnoteReferenceIds(page);
|
|
14867
|
-
if (footnoteReferenceIds.length === 0) continue;
|
|
14868
|
-
const footnoteBlocks = projectFootnoteBlocksForPage(
|
|
14869
|
-
context2.document,
|
|
14870
|
-
footnoteReferenceIds,
|
|
14871
|
-
page,
|
|
14872
|
-
context2.totalPages,
|
|
14873
|
-
context2.measuredHeights,
|
|
14874
|
-
context2.measuredParagraphLayouts,
|
|
14875
|
-
context2.measurer,
|
|
14876
|
-
context2.projectBlocks
|
|
14877
|
-
);
|
|
14878
|
-
if (footnoteBlocks.length === 0) continue;
|
|
14879
|
-
const blockGaps = Math.max(0, footnoteBlocks.length - 1) * FOOTNOTE_BLOCK_GAP;
|
|
14880
|
-
reservations.set(
|
|
14881
|
-
page.index,
|
|
14882
|
-
FOOTNOTE_SEPARATOR_HEIGHT + getProjectedBlocksHeight(footnoteBlocks) + blockGaps
|
|
14883
|
-
);
|
|
14884
|
-
}
|
|
14885
|
-
return reservations;
|
|
14886
|
-
}
|
|
14887
|
-
function reservationSignature(reservations) {
|
|
14888
|
-
return [...reservations.entries()].sort(([left], [right]) => left - right).map(([pageIndex, height]) => `${pageIndex}:${Math.round(height)}`).join("|");
|
|
14889
|
-
}
|
|
14890
|
-
function applyFootnotesToPages(pages, context2) {
|
|
14891
|
-
return pages.map((page) => {
|
|
14892
|
-
const footnoteReferenceIds = collectPageFootnoteReferenceIds(page);
|
|
14893
|
-
if (footnoteReferenceIds.length === 0) {
|
|
14894
|
-
return {
|
|
14895
|
-
...page,
|
|
14896
|
-
footnoteBlocks: void 0,
|
|
14897
|
-
footnoteReferenceIds: void 0,
|
|
14898
|
-
footnoteTop: void 0,
|
|
14899
|
-
footnoteSeparatorTop: void 0
|
|
14900
|
-
};
|
|
14901
|
-
}
|
|
14902
|
-
const footnoteBlocks = projectFootnoteBlocksForPage(
|
|
14903
|
-
context2.document,
|
|
14904
|
-
footnoteReferenceIds,
|
|
14905
|
-
page,
|
|
14906
|
-
context2.totalPages,
|
|
14907
|
-
context2.measuredHeights,
|
|
14908
|
-
context2.measuredParagraphLayouts,
|
|
14909
|
-
context2.measurer,
|
|
14910
|
-
context2.projectBlocks
|
|
14911
|
-
);
|
|
14912
|
-
const bodyBottom = page.bodyBottom ?? getPageBodyBottom(page.pageSettings);
|
|
14913
|
-
const footnoteSeparatorTop = Math.max(
|
|
14914
|
-
page.bodyTop ?? getPageBodyTop(page.pageSettings),
|
|
14915
|
-
bodyBottom
|
|
14916
|
-
);
|
|
14917
|
-
const footnoteTop = footnoteSeparatorTop + FOOTNOTE_SEPARATOR_HEIGHT;
|
|
14918
|
-
return {
|
|
14919
|
-
...page,
|
|
14920
|
-
footnoteBlocks,
|
|
14921
|
-
footnoteReferenceIds,
|
|
14922
|
-
footnoteSeparatorTop,
|
|
14923
|
-
footnoteTop,
|
|
14924
|
-
bodyBottom
|
|
14925
|
-
};
|
|
14926
|
-
});
|
|
14927
|
-
}
|
|
14928
14786
|
const PARAGRAPH_BORDER_PADDING_PX = 2;
|
|
14929
14787
|
function isVisibleBorder$1(border) {
|
|
14930
14788
|
return !!border && border.type !== "none" && border.width > 0;
|
|
@@ -18490,11 +18348,11 @@ function buildCanvasTableLayout(options) {
|
|
|
18490
18348
|
unsupported: Array.from(new Set(unsupported))
|
|
18491
18349
|
};
|
|
18492
18350
|
}
|
|
18493
|
-
var _tmpl$$
|
|
18351
|
+
var _tmpl$$z = /* @__PURE__ */ template(`<div class=oasis-editor-page-break style="display:flex;align-items:center;justify-content:center;margin:16px 0;position:relative;user-select:none"><div style="position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--oasis-toolbar-border, #e0e3e7)"></div><div style="background:var(--oasis-bg, #f6f8fb);padding:0 12px;color:var(--oasis-text-muted, #5f6368);font-size:12px;font-family:var(--oasis-font-ui, sans-serif);z-index:1">`);
|
|
18494
18352
|
function PageBreak(_props) {
|
|
18495
18353
|
const t = useI18n();
|
|
18496
18354
|
return (() => {
|
|
18497
|
-
var _el$ = _tmpl$$
|
|
18355
|
+
var _el$ = _tmpl$$z(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
18498
18356
|
insert(_el$3, () => t("metric.pageBreak") || "Page Break");
|
|
18499
18357
|
return _el$;
|
|
18500
18358
|
})();
|
|
@@ -22001,7 +21859,7 @@ function createCanvasPageRenderer(options) {
|
|
|
22001
21859
|
}
|
|
22002
21860
|
};
|
|
22003
21861
|
}
|
|
22004
|
-
var _tmpl$$
|
|
21862
|
+
var _tmpl$$y = /* @__PURE__ */ template(`<div class="oasis-editor-paper-stack oasis-editor-canvas-stack"style=position:relative>`), _tmpl$2$m = /* @__PURE__ */ template(`<div class=oasis-editor-canvas-page-slot style=position:relative>`), _tmpl$3$f = /* @__PURE__ */ template(`<div class=oasis-editor-paper data-renderer=canvas data-testid=editor-page style=position:relative;z-index:1><canvas>`), _tmpl$4$b = /* @__PURE__ */ template(`<div class=oasis-editor-table-revision-hit style=position:absolute;pointer-events:auto;background:transparent>`);
|
|
22005
21863
|
const surfaceLogger = createEditorLogger("canvas-surface");
|
|
22006
21864
|
function checkBrowserFonts(families) {
|
|
22007
21865
|
if (typeof document === "undefined" || !document.fonts) {
|
|
@@ -22061,7 +21919,7 @@ function CanvasEditorSurface(props) {
|
|
|
22061
21919
|
return layout;
|
|
22062
21920
|
});
|
|
22063
21921
|
return (() => {
|
|
22064
|
-
var _el$ = _tmpl$$
|
|
21922
|
+
var _el$ = _tmpl$$y();
|
|
22065
21923
|
insert(_el$, createComponent(Index, {
|
|
22066
21924
|
get each() {
|
|
22067
21925
|
return documentLayout().pages;
|
|
@@ -22073,7 +21931,7 @@ function CanvasEditorSurface(props) {
|
|
|
22073
21931
|
// inserting an image that triggers re-pagination in a narrow viewport),
|
|
22074
21932
|
// causing "Failed to execute 'insertBefore'" errors.
|
|
22075
21933
|
(() => {
|
|
22076
|
-
var _el$2 = _tmpl$2$
|
|
21934
|
+
var _el$2 = _tmpl$2$m();
|
|
22077
21935
|
insert(_el$2, createComponent(Show, {
|
|
22078
21936
|
when: index > 0,
|
|
22079
21937
|
get children() {
|
|
@@ -22203,7 +22061,7 @@ function CanvasPage(props) {
|
|
|
22203
22061
|
});
|
|
22204
22062
|
onCleanup(() => renderer.dispose());
|
|
22205
22063
|
return (() => {
|
|
22206
|
-
var _el$3 = _tmpl$3$
|
|
22064
|
+
var _el$3 = _tmpl$3$f(), _el$4 = _el$3.firstChild;
|
|
22207
22065
|
addEventListener(_el$3, "dblclick", props.onSurfaceDblClick, true);
|
|
22208
22066
|
addEventListener(_el$3, "mousemove", props.onSurfaceMouseMove, true);
|
|
22209
22067
|
addEventListener(_el$3, "click", props.onSurfaceClick, true);
|
|
@@ -22215,7 +22073,7 @@ function CanvasPage(props) {
|
|
|
22215
22073
|
return revisionCells();
|
|
22216
22074
|
},
|
|
22217
22075
|
children: (revision) => (() => {
|
|
22218
|
-
var _el$5 = _tmpl$4$
|
|
22076
|
+
var _el$5 = _tmpl$4$b();
|
|
22219
22077
|
addEventListener(_el$5, "mousedown", props.onSurfaceMouseDown, true);
|
|
22220
22078
|
_el$5.addEventListener("mouseleave", (event) => {
|
|
22221
22079
|
var _a;
|
|
@@ -22569,7 +22427,7 @@ function computeRulerTicks(pageWidth, contentLeft, unit) {
|
|
|
22569
22427
|
pushSide(-1);
|
|
22570
22428
|
return ticks;
|
|
22571
22429
|
}
|
|
22572
|
-
var _tmpl$$
|
|
22430
|
+
var _tmpl$$x = /* @__PURE__ */ template(`<div class=oasis-editor-horizontal-ruler data-testid=editor-horizontal-ruler role=presentation><div class=oasis-editor-horizontal-ruler-track><div class=oasis-editor-horizontal-ruler-page><div class=oasis-editor-horizontal-ruler-margin style=left:0px></div><div class=oasis-editor-horizontal-ruler-margin></div><div class=oasis-editor-horizontal-ruler-content></div><button type=button class=oasis-editor-horizontal-ruler-margin-handle></button><button type=button class=oasis-editor-horizontal-ruler-margin-handle></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-first-line"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-hanging"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-left-box"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-right-indent">`), _tmpl$2$l = /* @__PURE__ */ template(`<div>`), _tmpl$3$e = /* @__PURE__ */ template(`<div class=oasis-editor-horizontal-ruler-label>`);
|
|
22573
22431
|
function getActivePageSettings(state) {
|
|
22574
22432
|
var _a;
|
|
22575
22433
|
const idx = getActiveSectionIndex(state);
|
|
@@ -22775,7 +22633,7 @@ function HorizontalRuler(props) {
|
|
|
22775
22633
|
}
|
|
22776
22634
|
};
|
|
22777
22635
|
return (() => {
|
|
22778
|
-
var _el$ = _tmpl$$
|
|
22636
|
+
var _el$ = _tmpl$$x(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$1.nextSibling;
|
|
22779
22637
|
var _ref$ = pageRef;
|
|
22780
22638
|
typeof _ref$ === "function" ? use(_ref$, _el$3) : pageRef = _el$3;
|
|
22781
22639
|
insert(_el$3, createComponent(For, {
|
|
@@ -22783,7 +22641,7 @@ function HorizontalRuler(props) {
|
|
|
22783
22641
|
return ticks();
|
|
22784
22642
|
},
|
|
22785
22643
|
children: (tick) => [(() => {
|
|
22786
|
-
var _el$11 = _tmpl$2$
|
|
22644
|
+
var _el$11 = _tmpl$2$l();
|
|
22787
22645
|
createRenderEffect((_p$) => {
|
|
22788
22646
|
var _v$27 = `oasis-editor-horizontal-ruler-tick oasis-editor-horizontal-ruler-tick-${tick.kind}`, _v$28 = `${sx(tick.x)}px`;
|
|
22789
22647
|
_v$27 !== _p$.e && className(_el$11, _p$.e = _v$27);
|
|
@@ -22795,7 +22653,7 @@ function HorizontalRuler(props) {
|
|
|
22795
22653
|
});
|
|
22796
22654
|
return _el$11;
|
|
22797
22655
|
})(), memo(() => memo(() => !!tick.label)() && (() => {
|
|
22798
|
-
var _el$12 = _tmpl$3$
|
|
22656
|
+
var _el$12 = _tmpl$3$e();
|
|
22799
22657
|
insert(_el$12, () => tick.label);
|
|
22800
22658
|
createRenderEffect((_$p) => setStyleProperty(_el$12, "left", `${sx(tick.x)}px`));
|
|
22801
22659
|
return _el$12;
|
|
@@ -22872,10 +22730,10 @@ function HorizontalRuler(props) {
|
|
|
22872
22730
|
})();
|
|
22873
22731
|
}
|
|
22874
22732
|
delegateEvents(["pointerdown"]);
|
|
22875
|
-
var _tmpl$$
|
|
22733
|
+
var _tmpl$$w = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-caret>`);
|
|
22876
22734
|
function CaretOverlay(props) {
|
|
22877
22735
|
return (() => {
|
|
22878
|
-
var _el$ = _tmpl$$
|
|
22736
|
+
var _el$ = _tmpl$$w();
|
|
22879
22737
|
createRenderEffect((_p$) => {
|
|
22880
22738
|
var _v$ = !!props.active, _v$2 = {
|
|
22881
22739
|
left: `${props.left}px`,
|
|
@@ -22896,16 +22754,16 @@ function CaretOverlay(props) {
|
|
|
22896
22754
|
return _el$;
|
|
22897
22755
|
})();
|
|
22898
22756
|
}
|
|
22899
|
-
var _tmpl$$
|
|
22757
|
+
var _tmpl$$v = /* @__PURE__ */ template(`<div aria-hidden=true class=oasis-editor-selection-overlay-root>`), _tmpl$2$k = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-selection-box data-testid=editor-selection-box>`);
|
|
22900
22758
|
function SelectionOverlay(props) {
|
|
22901
22759
|
return (() => {
|
|
22902
|
-
var _el$ = _tmpl$$
|
|
22760
|
+
var _el$ = _tmpl$$v();
|
|
22903
22761
|
insert(_el$, createComponent(Index, {
|
|
22904
22762
|
get each() {
|
|
22905
22763
|
return props.boxes;
|
|
22906
22764
|
},
|
|
22907
22765
|
children: (box) => (() => {
|
|
22908
|
-
var _el$2 = _tmpl$2$
|
|
22766
|
+
var _el$2 = _tmpl$2$k();
|
|
22909
22767
|
createRenderEffect((_p$) => {
|
|
22910
22768
|
var _v$ = `${box().left}px`, _v$2 = `${box().top}px`, _v$3 = `${box().width}px`, _v$4 = `${box().height}px`;
|
|
22911
22769
|
_v$ !== _p$.e && setStyleProperty(_el$2, "left", _p$.e = _v$);
|
|
@@ -22925,7 +22783,7 @@ function SelectionOverlay(props) {
|
|
|
22925
22783
|
return _el$;
|
|
22926
22784
|
})();
|
|
22927
22785
|
}
|
|
22928
|
-
var _tmpl$$
|
|
22786
|
+
var _tmpl$$u = /* @__PURE__ */ template(`<div class=oasis-editor-revision-overlay data-testid=editor-revision-overlay><div class=oasis-editor-revision-overlay-content><span class=oasis-editor-revision-overlay-author><strong>:</strong> </span><span class=oasis-editor-revision-overlay-date></span></div><div class=oasis-editor-revision-overlay-arrow>`);
|
|
22929
22787
|
function RevisionOverlay(props) {
|
|
22930
22788
|
const formattedDate = () => {
|
|
22931
22789
|
try {
|
|
@@ -22940,7 +22798,7 @@ function RevisionOverlay(props) {
|
|
|
22940
22798
|
return "Alterado por";
|
|
22941
22799
|
};
|
|
22942
22800
|
return (() => {
|
|
22943
|
-
var _el$ = _tmpl$$
|
|
22801
|
+
var _el$ = _tmpl$$u(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
|
|
22944
22802
|
_el$4.nextSibling;
|
|
22945
22803
|
var _el$7 = _el$3.nextSibling;
|
|
22946
22804
|
insert(_el$4, label, _el$5);
|
|
@@ -22958,7 +22816,7 @@ function RevisionOverlay(props) {
|
|
|
22958
22816
|
return _el$;
|
|
22959
22817
|
})();
|
|
22960
22818
|
}
|
|
22961
|
-
var _tmpl$$
|
|
22819
|
+
var _tmpl$$t = /* @__PURE__ */ template(`<div aria-hidden=true class=oasis-editor-comment-overlay-root>`), _tmpl$2$j = /* @__PURE__ */ template(`<span class=oasis-editor-comment-highlight data-testid=editor-comment-highlight>`), _tmpl$3$d = /* @__PURE__ */ template(`<span class=oasis-editor-comment-popup-date>`), _tmpl$4$a = /* @__PURE__ */ template(`<span class=oasis-editor-comment-popup-resolved>✓`), _tmpl$5$8 = /* @__PURE__ */ template(`<div class=oasis-editor-comment-popup data-testid=editor-comment-popup><div class=oasis-editor-comment-popup-header><span class=oasis-editor-comment-popup-author></span></div><div class=oasis-editor-comment-popup-body>`);
|
|
22962
22820
|
function CommentHighlightOverlay(props) {
|
|
22963
22821
|
const [activeCommentId, setActiveCommentId] = createSignal(null);
|
|
22964
22822
|
const activeComment = createMemo(() => {
|
|
@@ -22985,13 +22843,13 @@ function CommentHighlightOverlay(props) {
|
|
|
22985
22843
|
}
|
|
22986
22844
|
};
|
|
22987
22845
|
return (() => {
|
|
22988
|
-
var _el$ = _tmpl$$
|
|
22846
|
+
var _el$ = _tmpl$$t();
|
|
22989
22847
|
insert(_el$, createComponent(For, {
|
|
22990
22848
|
get each() {
|
|
22991
22849
|
return props.boxes();
|
|
22992
22850
|
},
|
|
22993
22851
|
children: (box) => (() => {
|
|
22994
|
-
var _el$2 = _tmpl$2$
|
|
22852
|
+
var _el$2 = _tmpl$2$j();
|
|
22995
22853
|
_el$2.$$click = () => setActiveCommentId(box.commentId);
|
|
22996
22854
|
_el$2.addEventListener("mouseenter", () => setActiveCommentId(box.commentId));
|
|
22997
22855
|
createRenderEffect((_p$) => {
|
|
@@ -23023,7 +22881,7 @@ function CommentHighlightOverlay(props) {
|
|
|
23023
22881
|
const comment = activeComment();
|
|
23024
22882
|
const anchor = popupAnchor();
|
|
23025
22883
|
return (() => {
|
|
23026
|
-
var _el$3 = _tmpl$5$
|
|
22884
|
+
var _el$3 = _tmpl$5$8(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$8 = _el$4.nextSibling;
|
|
23027
22885
|
_el$3.addEventListener("mouseleave", () => setActiveCommentId(null));
|
|
23028
22886
|
insert(_el$5, () => comment.author || "—");
|
|
23029
22887
|
insert(_el$4, createComponent(Show, {
|
|
@@ -23031,7 +22889,7 @@ function CommentHighlightOverlay(props) {
|
|
|
23031
22889
|
return comment.date !== void 0;
|
|
23032
22890
|
},
|
|
23033
22891
|
get children() {
|
|
23034
|
-
var _el$6 = _tmpl$3$
|
|
22892
|
+
var _el$6 = _tmpl$3$d();
|
|
23035
22893
|
insert(_el$6, () => formattedDate(comment.date));
|
|
23036
22894
|
return _el$6;
|
|
23037
22895
|
}
|
|
@@ -23041,7 +22899,7 @@ function CommentHighlightOverlay(props) {
|
|
|
23041
22899
|
return comment.resolved;
|
|
23042
22900
|
},
|
|
23043
22901
|
get children() {
|
|
23044
|
-
return _tmpl$4$
|
|
22902
|
+
return _tmpl$4$a();
|
|
23045
22903
|
}
|
|
23046
22904
|
}), null);
|
|
23047
22905
|
insert(_el$8, () => comment.text);
|
|
@@ -23063,41 +22921,45 @@ function CommentHighlightOverlay(props) {
|
|
|
23063
22921
|
})();
|
|
23064
22922
|
}
|
|
23065
22923
|
delegateEvents(["click"]);
|
|
23066
|
-
|
|
23067
|
-
|
|
23068
|
-
const t = useI18n();
|
|
23069
|
-
const host = () => props.host();
|
|
23070
|
-
const run = (command, payload) => host().commands.execute(command, payload);
|
|
23071
|
-
const blocked = (command) => !host().commands.state(command).isEnabled;
|
|
23072
|
-
const [surfaceRect, setSurfaceRect] = createSignal(null);
|
|
22924
|
+
function useSurfaceRect(surfaceRef) {
|
|
22925
|
+
const [rect, setRect] = createSignal(null);
|
|
23073
22926
|
const [tick, setTick] = createSignal(0);
|
|
23074
|
-
const
|
|
23075
|
-
const surface =
|
|
23076
|
-
|
|
23077
|
-
setSurfaceRect(surface.getBoundingClientRect());
|
|
23078
|
-
} else {
|
|
23079
|
-
setSurfaceRect(null);
|
|
23080
|
-
}
|
|
22927
|
+
const measure = () => {
|
|
22928
|
+
const surface = surfaceRef();
|
|
22929
|
+
setRect(surface ? surface.getBoundingClientRect() : null);
|
|
23081
22930
|
};
|
|
23082
22931
|
let frame = null;
|
|
23083
|
-
const
|
|
22932
|
+
const refresh = () => {
|
|
23084
22933
|
if (frame !== null) return;
|
|
23085
22934
|
frame = requestAnimationFrame(() => {
|
|
23086
22935
|
frame = null;
|
|
23087
|
-
|
|
23088
|
-
setTick((
|
|
22936
|
+
measure();
|
|
22937
|
+
setTick((value) => value + 1);
|
|
23089
22938
|
});
|
|
23090
22939
|
};
|
|
23091
22940
|
onMount(() => {
|
|
23092
|
-
|
|
23093
|
-
window.addEventListener("scroll",
|
|
23094
|
-
window.addEventListener("resize",
|
|
22941
|
+
measure();
|
|
22942
|
+
window.addEventListener("scroll", refresh, true);
|
|
22943
|
+
window.addEventListener("resize", refresh);
|
|
23095
22944
|
onCleanup(() => {
|
|
23096
|
-
window.removeEventListener("scroll",
|
|
23097
|
-
window.removeEventListener("resize",
|
|
22945
|
+
window.removeEventListener("scroll", refresh, true);
|
|
22946
|
+
window.removeEventListener("resize", refresh);
|
|
23098
22947
|
if (frame !== null) cancelAnimationFrame(frame);
|
|
23099
22948
|
});
|
|
23100
22949
|
});
|
|
22950
|
+
return { rect, tick, refresh };
|
|
22951
|
+
}
|
|
22952
|
+
var _tmpl$$s = /* @__PURE__ */ template(`<div class=oasis-editor-floating-toolbar data-testid=editor-floating-table-toolbar><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group>`);
|
|
22953
|
+
function FloatingTableToolbar(props) {
|
|
22954
|
+
const t = useI18n();
|
|
22955
|
+
const host = () => props.host();
|
|
22956
|
+
const run = (command, payload) => host().commands.execute(command, payload);
|
|
22957
|
+
const blocked = (command) => !host().commands.state(command).isEnabled;
|
|
22958
|
+
const {
|
|
22959
|
+
rect: surfaceRect,
|
|
22960
|
+
tick,
|
|
22961
|
+
refresh: scheduleRefresh
|
|
22962
|
+
} = useSurfaceRect(props.surfaceRef);
|
|
23101
22963
|
const position2 = createMemo(() => {
|
|
23102
22964
|
tick();
|
|
23103
22965
|
if (!props.visible()) {
|
|
@@ -23145,7 +23007,7 @@ function FloatingTableToolbar(props) {
|
|
|
23145
23007
|
return document.body;
|
|
23146
23008
|
},
|
|
23147
23009
|
get children() {
|
|
23148
|
-
var _el$ = _tmpl$$
|
|
23010
|
+
var _el$ = _tmpl$$s(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
|
|
23149
23011
|
_el$.$$mousedown = (event) => event.preventDefault();
|
|
23150
23012
|
insert(_el$2, createComponent(Button$1, {
|
|
23151
23013
|
icon: "combine",
|
|
@@ -23305,7 +23167,7 @@ function FloatingTableToolbar(props) {
|
|
|
23305
23167
|
});
|
|
23306
23168
|
}
|
|
23307
23169
|
delegateEvents(["mousedown"]);
|
|
23308
|
-
var _tmpl$$
|
|
23170
|
+
var _tmpl$$r = /* @__PURE__ */ template(`<svg><rect height=2 rx=1 fill=#9aa0a6></svg>`, false, true, false), _tmpl$2$i = /* @__PURE__ */ template(`<svg><rect rx=1.5></svg>`, false, true, false), _tmpl$3$c = /* @__PURE__ */ template(`<svg><polygon points="29,4 37,12 29,20 21,12"fill=#1a73e8></svg>`, false, true, false), _tmpl$4$9 = /* @__PURE__ */ template(`<svg><polygon points="20,8 26,14 20,20 14,14"fill=#1a73e8></svg>`, false, true, false), _tmpl$5$7 = /* @__PURE__ */ template(`<svg viewBox="0 0 40 32"fill=none aria-hidden=true>`), _tmpl$6$4 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-layout-options-anchor data-testid=editor-layout-options-anchor><svg viewBox="0 0 24 24"fill=none aria-hidden=true><rect x=3 y=4 width=10 height=10 rx=1.5 fill=#1a73e8></rect><rect x=3 y=17 width=18 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=5 width=6 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=9 width=6 height=2 rx=1 fill=#9aa0a6>`), _tmpl$7$1 = /* @__PURE__ */ template(`<div class=oasis-editor-layout-options-popup data-testid=editor-layout-options-popup><div class=oasis-editor-layout-options-popup-header><span class=oasis-editor-layout-options-title></span><button type=button class=oasis-editor-layout-options-close>×</button></div><div class=oasis-editor-layout-options-group-label></div><div class=oasis-editor-layout-options-grid><button type=button class=oasis-editor-layout-options-cell data-testid=editor-layout-options-inline><svg viewBox="0 0 40 32"fill=none aria-hidden=true><rect x=4 y=7 width=9 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=4 width=11 height=11 rx=1.5 fill=#1a73e8></rect><rect x=28 y=7 width=8 height=2 rx=1 fill=#9aa0a6></rect><rect x=4 y=20 width=32 height=2 rx=1 fill=#9aa0a6></rect><rect x=4 y=26 width=32 height=2 rx=1 fill=#9aa0a6></rect></svg></button></div><div class=oasis-editor-layout-options-group-label></div><div class=oasis-editor-layout-options-grid></div><div class=oasis-editor-layout-options-radios><label class=oasis-editor-layout-options-radio><input type=radio name=oasis-layout-position></label><label class=oasis-editor-layout-options-radio><input type=radio name=oasis-layout-position>`), _tmpl$8 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-layout-options-cell>`);
|
|
23309
23171
|
const WRAP_OPTIONS = [{
|
|
23310
23172
|
preset: "square",
|
|
23311
23173
|
labelKey: "layoutOptions.square"
|
|
@@ -23327,14 +23189,14 @@ const WRAP_OPTIONS = [{
|
|
|
23327
23189
|
}];
|
|
23328
23190
|
function WrapIcon(props) {
|
|
23329
23191
|
const line = (x, y, w) => (() => {
|
|
23330
|
-
var _el$ = _tmpl$$
|
|
23192
|
+
var _el$ = _tmpl$$r();
|
|
23331
23193
|
setAttribute(_el$, "x", x);
|
|
23332
23194
|
setAttribute(_el$, "y", y);
|
|
23333
23195
|
setAttribute(_el$, "width", w);
|
|
23334
23196
|
return _el$;
|
|
23335
23197
|
})();
|
|
23336
23198
|
const box = (x, y, w, h, fill = "#1a73e8") => (() => {
|
|
23337
|
-
var _el$2 = _tmpl$2$
|
|
23199
|
+
var _el$2 = _tmpl$2$i();
|
|
23338
23200
|
setAttribute(_el$2, "x", x);
|
|
23339
23201
|
setAttribute(_el$2, "y", y);
|
|
23340
23202
|
setAttribute(_el$2, "width", w);
|
|
@@ -23343,7 +23205,7 @@ function WrapIcon(props) {
|
|
|
23343
23205
|
return _el$2;
|
|
23344
23206
|
})();
|
|
23345
23207
|
return (() => {
|
|
23346
|
-
var _el$3 = _tmpl$5$
|
|
23208
|
+
var _el$3 = _tmpl$5$7();
|
|
23347
23209
|
insert(_el$3, createComponent(Show, {
|
|
23348
23210
|
get when() {
|
|
23349
23211
|
return props.preset === "square";
|
|
@@ -23357,7 +23219,7 @@ function WrapIcon(props) {
|
|
|
23357
23219
|
return props.preset === "tight";
|
|
23358
23220
|
},
|
|
23359
23221
|
get children() {
|
|
23360
|
-
return [memo(() => line(4, 6, 12)), memo(() => line(4, 12, 10)), memo(() => line(4, 18, 12)), memo(() => line(4, 24, 32)), _tmpl$3$
|
|
23222
|
+
return [memo(() => line(4, 6, 12)), memo(() => line(4, 12, 10)), memo(() => line(4, 18, 12)), memo(() => line(4, 24, 32)), _tmpl$3$c()];
|
|
23361
23223
|
}
|
|
23362
23224
|
}), null);
|
|
23363
23225
|
insert(_el$3, createComponent(Show, {
|
|
@@ -23365,7 +23227,7 @@ function WrapIcon(props) {
|
|
|
23365
23227
|
return props.preset === "through";
|
|
23366
23228
|
},
|
|
23367
23229
|
get children() {
|
|
23368
|
-
return [memo(() => line(4, 6, 32)), memo(() => line(4, 12, 9)), memo(() => line(27, 12, 9)), memo(() => line(4, 18, 32)), _tmpl$4$
|
|
23230
|
+
return [memo(() => line(4, 6, 32)), memo(() => line(4, 12, 9)), memo(() => line(27, 12, 9)), memo(() => line(4, 18, 32)), _tmpl$4$9()];
|
|
23369
23231
|
}
|
|
23370
23232
|
}), null);
|
|
23371
23233
|
insert(_el$3, createComponent(Show, {
|
|
@@ -23398,31 +23260,11 @@ function WrapIcon(props) {
|
|
|
23398
23260
|
function FloatingLayoutOptions(props) {
|
|
23399
23261
|
const t = useI18n();
|
|
23400
23262
|
const [open, setOpen] = createSignal(false);
|
|
23401
|
-
const
|
|
23402
|
-
|
|
23403
|
-
|
|
23404
|
-
|
|
23405
|
-
|
|
23406
|
-
};
|
|
23407
|
-
let frame = null;
|
|
23408
|
-
const scheduleRefresh = () => {
|
|
23409
|
-
if (frame !== null) return;
|
|
23410
|
-
frame = requestAnimationFrame(() => {
|
|
23411
|
-
frame = null;
|
|
23412
|
-
refreshSurfaceRect();
|
|
23413
|
-
setTick((value) => value + 1);
|
|
23414
|
-
});
|
|
23415
|
-
};
|
|
23416
|
-
onMount(() => {
|
|
23417
|
-
refreshSurfaceRect();
|
|
23418
|
-
window.addEventListener("scroll", scheduleRefresh, true);
|
|
23419
|
-
window.addEventListener("resize", scheduleRefresh);
|
|
23420
|
-
onCleanup(() => {
|
|
23421
|
-
window.removeEventListener("scroll", scheduleRefresh, true);
|
|
23422
|
-
window.removeEventListener("resize", scheduleRefresh);
|
|
23423
|
-
if (frame !== null) cancelAnimationFrame(frame);
|
|
23424
|
-
});
|
|
23425
|
-
});
|
|
23263
|
+
const {
|
|
23264
|
+
rect: surfaceRect,
|
|
23265
|
+
tick,
|
|
23266
|
+
refresh: scheduleRefresh
|
|
23267
|
+
} = useSurfaceRect(props.surfaceRef);
|
|
23426
23268
|
createMemo(() => {
|
|
23427
23269
|
props.layoutOptions.target();
|
|
23428
23270
|
props.box();
|
|
@@ -37756,10 +37598,10 @@ function resolveResizedDimensions(geometry, deltaX, deltaY, preserveAspectRatio,
|
|
|
37756
37598
|
nextHeight = clamp(nextWidth / aspectRatio, MIN_RESIZE_SIZE_PX);
|
|
37757
37599
|
return { width: nextWidth, height: nextHeight };
|
|
37758
37600
|
}
|
|
37759
|
-
var _tmpl$$
|
|
37601
|
+
var _tmpl$$q = /* @__PURE__ */ template(`<button aria-hidden=true class=oasis-editor-rotate-handle tabindex=-1 type=button>`), _tmpl$2$h = /* @__PURE__ */ template(`<div aria-hidden=true style=transform-origin:center>`), _tmpl$3$b = /* @__PURE__ */ template(`<button aria-hidden=true class=oasis-editor-resize-handle tabindex=-1 type=button>`);
|
|
37760
37602
|
function ResizeHandlesOverlay(props) {
|
|
37761
37603
|
return (() => {
|
|
37762
|
-
var _el$ = _tmpl$2$
|
|
37604
|
+
var _el$ = _tmpl$2$h();
|
|
37763
37605
|
_el$.$$mousedown = (event) => {
|
|
37764
37606
|
if (props.readOnly || !props.box() || !props.onBodyMouseDown) {
|
|
37765
37607
|
return;
|
|
@@ -37775,7 +37617,7 @@ function ResizeHandlesOverlay(props) {
|
|
|
37775
37617
|
return [createComponent(For, {
|
|
37776
37618
|
each: RESIZE_HANDLE_DIRECTIONS,
|
|
37777
37619
|
children: (direction) => (() => {
|
|
37778
|
-
var _el$3 = _tmpl$3$
|
|
37620
|
+
var _el$3 = _tmpl$3$b();
|
|
37779
37621
|
_el$3.$$mousedown = (event) => {
|
|
37780
37622
|
if (!props.box()) {
|
|
37781
37623
|
return;
|
|
@@ -37790,7 +37632,7 @@ function ResizeHandlesOverlay(props) {
|
|
|
37790
37632
|
return props.onRotateStart;
|
|
37791
37633
|
},
|
|
37792
37634
|
get children() {
|
|
37793
|
-
var _el$2 = _tmpl$$
|
|
37635
|
+
var _el$2 = _tmpl$$q();
|
|
37794
37636
|
_el$2.$$mousedown = (event) => {
|
|
37795
37637
|
var _a;
|
|
37796
37638
|
if (!props.box()) {
|
|
@@ -37846,7 +37688,7 @@ function createEditorZoom(initial = ZOOM_DEFAULT) {
|
|
|
37846
37688
|
const zoomFactor = createMemo(() => zoomPercent() / 100);
|
|
37847
37689
|
return { zoomPercent, setZoomPercent, adjustZoom, zoomFactor };
|
|
37848
37690
|
}
|
|
37849
|
-
var _tmpl$$
|
|
37691
|
+
var _tmpl$$p = /* @__PURE__ */ template(`<div data-testid=editor-editor-shell><div class=oasis-editor-editor data-testid=editor-editor><div class=oasis-editor-editor-zoom-sizer><div class=oasis-editor-editor-scroll-content data-testid=editor-editor-scroll-content style="position:absolute;top:0px;transform-origin:top left"><textarea aria-label="Editor input"autocomplete=off autocapitalize=off class=oasis-editor-input data-testid=editor-input value style=pointer-events:none></textarea><input data-testid=editor-import-docx-input type=file style=display:none><input accept="image/png, image/jpeg, image/gif"data-testid=editor-insert-image-input type=file style=display:none></div></div></div><div class=oasis-editor-statusbar data-testid=editor-statusbar><div class="oasis-editor-statusbar-group oasis-editor-statusbar-start"><span class=oasis-editor-statusbar-item data-testid=editor-statusbar-word-count></span><span class=oasis-editor-statusbar-item data-testid=editor-statusbar-character-count></span><span class=oasis-editor-statusbar-item></span></div><div class="oasis-editor-statusbar-group oasis-editor-statusbar-end"><div class=oasis-editor-statusbar-zoom data-testid=editor-statusbar-zoom-control><button type=button class=oasis-editor-zoom-button>−</button><input class=oasis-editor-zoom-slider type=range><button type=button class=oasis-editor-zoom-button>+</button><span class="oasis-editor-statusbar-item oasis-editor-zoom-value"data-testid=editor-statusbar-zoom>%`), _tmpl$2$g = /* @__PURE__ */ template(`<div class=oasis-editor-import-overlay data-testid=editor-import-overlay role=status aria-live=polite><div class=oasis-editor-import-card><div class=oasis-editor-import-title></div><div class=oasis-editor-import-phase data-testid=editor-import-phase></div><div class=oasis-editor-import-progress-track><div class=oasis-editor-import-progress-bar data-testid=editor-import-progress-bar></div></div><div class=oasis-editor-import-progress-label>`), _tmpl$3$a = /* @__PURE__ */ template(`<span class=oasis-editor-import-done-icon>`), _tmpl$4$8 = /* @__PURE__ */ template(`<span class=oasis-editor-import-error-icon>`), _tmpl$5$6 = /* @__PURE__ */ template(`<span>`);
|
|
37850
37692
|
function OasisEditorEditor(props) {
|
|
37851
37693
|
const t = useI18n();
|
|
37852
37694
|
const layout = () => props.layout;
|
|
@@ -37974,7 +37816,7 @@ function OasisEditorEditor(props) {
|
|
|
37974
37816
|
queueMicrotask(recomputeViewportPageIndex);
|
|
37975
37817
|
});
|
|
37976
37818
|
return (() => {
|
|
37977
|
-
var _el$ = _tmpl$$
|
|
37819
|
+
var _el$ = _tmpl$$p(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$6.nextSibling, _el$8 = _el$2.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$1.nextSibling, _el$11 = _el$9.nextSibling, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.nextSibling, _el$17 = _el$16.firstChild;
|
|
37978
37820
|
insert(_el$, createComponent(Show, {
|
|
37979
37821
|
get when() {
|
|
37980
37822
|
return memo(() => !!layout().showHorizontalRuler)() && overlays().toolbarHost;
|
|
@@ -38258,7 +38100,7 @@ function OasisEditorEditor(props) {
|
|
|
38258
38100
|
const isDone = progress().phase === "done";
|
|
38259
38101
|
const isError = progress().phase === "error";
|
|
38260
38102
|
return (() => {
|
|
38261
|
-
var _el$18 = _tmpl$2$
|
|
38103
|
+
var _el$18 = _tmpl$2$g(), _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling, _el$22 = _el$21.nextSibling, _el$23 = _el$22.firstChild, _el$24 = _el$22.nextSibling;
|
|
38262
38104
|
_el$18.classList.toggle("oasis-editor-import-overlay-done", !!isDone);
|
|
38263
38105
|
_el$18.classList.toggle("oasis-editor-import-overlay-error", !!isError);
|
|
38264
38106
|
setAttribute(_el$18, "aria-busy", !isDone && !isError);
|
|
@@ -38271,11 +38113,11 @@ function OasisEditorEditor(props) {
|
|
|
38271
38113
|
_el$23.classList.toggle("oasis-editor-import-progress-bar-done", !!isDone);
|
|
38272
38114
|
_el$23.classList.toggle("oasis-editor-import-progress-bar-error", !!isError);
|
|
38273
38115
|
insert(_el$24, isDone ? (() => {
|
|
38274
|
-
var _el$25 = _tmpl$3$
|
|
38116
|
+
var _el$25 = _tmpl$3$a();
|
|
38275
38117
|
insert(_el$25, () => t("import.phase.done"));
|
|
38276
38118
|
return _el$25;
|
|
38277
38119
|
})() : isError ? (() => {
|
|
38278
|
-
var _el$26 = _tmpl$4$
|
|
38120
|
+
var _el$26 = _tmpl$4$8();
|
|
38279
38121
|
insert(_el$26, () => t("import.phase.error"));
|
|
38280
38122
|
return _el$26;
|
|
38281
38123
|
})() : [memo(() => Math.round(progress().progress)), "%"]);
|
|
@@ -38314,7 +38156,7 @@ function OasisEditorEditor(props) {
|
|
|
38314
38156
|
return createComponent(Show, {
|
|
38315
38157
|
when: key,
|
|
38316
38158
|
get children() {
|
|
38317
|
-
var _el$27 = _tmpl$5$
|
|
38159
|
+
var _el$27 = _tmpl$5$6();
|
|
38318
38160
|
insert(_el$27, () => t(key));
|
|
38319
38161
|
createRenderEffect(() => className(_el$27, `oasis-editor-statusbar-item oasis-editor-persistence-status oasis-editor-status-${status.replace("...", "ing").replace(".", "")}`));
|
|
38320
38162
|
return _el$27;
|
|
@@ -39044,11 +38886,11 @@ function createCanvasLayoutSnapshotProvider() {
|
|
|
39044
38886
|
}
|
|
39045
38887
|
};
|
|
39046
38888
|
}
|
|
39047
|
-
var _tmpl$$
|
|
38889
|
+
var _tmpl$$o = /* @__PURE__ */ template(`<button>`);
|
|
39048
38890
|
function FloatingActionButton(props) {
|
|
39049
38891
|
const [local, others] = splitProps(props, ["type", "icon", "label", "active", "class", "classList"]);
|
|
39050
38892
|
return (() => {
|
|
39051
|
-
var _el$ = _tmpl$$
|
|
38893
|
+
var _el$ = _tmpl$$o();
|
|
39052
38894
|
spread(_el$, mergeProps({
|
|
39053
38895
|
get type() {
|
|
39054
38896
|
return local.type ?? "button";
|
|
@@ -39077,7 +38919,7 @@ function FloatingActionButton(props) {
|
|
|
39077
38919
|
return _el$;
|
|
39078
38920
|
})();
|
|
39079
38921
|
}
|
|
39080
|
-
var _tmpl$$
|
|
38922
|
+
var _tmpl$$n = /* @__PURE__ */ template(`<aside>`), _tmpl$2$f = /* @__PURE__ */ template(`<div>`);
|
|
39081
38923
|
function SidePanel(props) {
|
|
39082
38924
|
const [local, others] = splitProps(props, ["mode", "width", "class", "classList", "children", "style"]);
|
|
39083
38925
|
const width = () => {
|
|
@@ -39087,7 +38929,7 @@ function SidePanel(props) {
|
|
|
39087
38929
|
return local.width ?? "360px";
|
|
39088
38930
|
};
|
|
39089
38931
|
return (() => {
|
|
39090
|
-
var _el$ = _tmpl$$
|
|
38932
|
+
var _el$ = _tmpl$$n();
|
|
39091
38933
|
spread(_el$, mergeProps({
|
|
39092
38934
|
get ["class"]() {
|
|
39093
38935
|
return `oasis-editor-plugin-side-panel ${local.class ?? ""}`;
|
|
@@ -39112,7 +38954,7 @@ function SidePanel(props) {
|
|
|
39112
38954
|
function SidePanelHeader(props) {
|
|
39113
38955
|
const [local, others] = splitProps(props, ["class", "children"]);
|
|
39114
38956
|
return (() => {
|
|
39115
|
-
var _el$2 = _tmpl$2$
|
|
38957
|
+
var _el$2 = _tmpl$2$f();
|
|
39116
38958
|
spread(_el$2, mergeProps({
|
|
39117
38959
|
get ["class"]() {
|
|
39118
38960
|
return `oasis-editor-plugin-side-panel-header ${local.class ?? ""}`;
|
|
@@ -39125,7 +38967,7 @@ function SidePanelHeader(props) {
|
|
|
39125
38967
|
function SidePanelBody(props) {
|
|
39126
38968
|
const [local, others] = splitProps(props, ["class", "children"]);
|
|
39127
38969
|
return (() => {
|
|
39128
|
-
var _el$3 = _tmpl$2$
|
|
38970
|
+
var _el$3 = _tmpl$2$f();
|
|
39129
38971
|
spread(_el$3, mergeProps({
|
|
39130
38972
|
get ["class"]() {
|
|
39131
38973
|
return `oasis-editor-plugin-side-panel-body ${local.class ?? ""}`;
|
|
@@ -39138,7 +38980,7 @@ function SidePanelBody(props) {
|
|
|
39138
38980
|
function SidePanelFooter(props) {
|
|
39139
38981
|
const [local, others] = splitProps(props, ["class", "children"]);
|
|
39140
38982
|
return (() => {
|
|
39141
|
-
var _el$4 = _tmpl$2$
|
|
38983
|
+
var _el$4 = _tmpl$2$f();
|
|
39142
38984
|
spread(_el$4, mergeProps({
|
|
39143
38985
|
get ["class"]() {
|
|
39144
38986
|
return `oasis-editor-plugin-side-panel-footer ${local.class ?? ""}`;
|
|
@@ -39148,11 +38990,11 @@ function SidePanelFooter(props) {
|
|
|
39148
38990
|
return _el$4;
|
|
39149
38991
|
})();
|
|
39150
38992
|
}
|
|
39151
|
-
var _tmpl$$
|
|
38993
|
+
var _tmpl$$m = /* @__PURE__ */ template(`<button>`);
|
|
39152
38994
|
function IconButton(props) {
|
|
39153
38995
|
const [local, others] = splitProps(props, ["type", "icon", "label", "active", "variant", "size", "class", "classList"]);
|
|
39154
38996
|
return (() => {
|
|
39155
|
-
var _el$ = _tmpl$$
|
|
38997
|
+
var _el$ = _tmpl$$m();
|
|
39156
38998
|
spread(_el$, mergeProps({
|
|
39157
38999
|
get type() {
|
|
39158
39000
|
return local.type ?? "button";
|
|
@@ -39183,7 +39025,7 @@ function IconButton(props) {
|
|
|
39183
39025
|
return _el$;
|
|
39184
39026
|
})();
|
|
39185
39027
|
}
|
|
39186
|
-
var _tmpl$$
|
|
39028
|
+
var _tmpl$$l = /* @__PURE__ */ template(`<div class=oasis-editor-plugin-floating-actions>`), _tmpl$2$e = /* @__PURE__ */ template(`<div class=oasis-editor-plugin-ui-host><div class=oasis-editor-plugin-ui-main>`), _tmpl$3$9 = /* @__PURE__ */ template(`<div class=oasis-editor-plugin-side-panel-overlay>`), _tmpl$4$7 = /* @__PURE__ */ template(`<span class=oasis-editor-plugin-side-panel-icon>`), _tmpl$5$5 = /* @__PURE__ */ template(`<div class=oasis-editor-plugin-side-panel-title><span>`);
|
|
39187
39029
|
const EMPTY_SNAPSHOT = {
|
|
39188
39030
|
floatingActions: [],
|
|
39189
39031
|
sidePanels: [],
|
|
@@ -39215,7 +39057,7 @@ function PluginUiHost(props) {
|
|
|
39215
39057
|
return groupActionsByPlacement(actions());
|
|
39216
39058
|
},
|
|
39217
39059
|
children: (group) => (() => {
|
|
39218
|
-
var _el$ = _tmpl$$
|
|
39060
|
+
var _el$ = _tmpl$$l();
|
|
39219
39061
|
insert(_el$, createComponent(For, {
|
|
39220
39062
|
get each() {
|
|
39221
39063
|
return group.actions;
|
|
@@ -39244,7 +39086,7 @@ function PluginUiHost(props) {
|
|
|
39244
39086
|
})()
|
|
39245
39087
|
});
|
|
39246
39088
|
return (() => {
|
|
39247
|
-
var _el$2 = _tmpl$2$
|
|
39089
|
+
var _el$2 = _tmpl$2$e(), _el$3 = _el$2.firstChild;
|
|
39248
39090
|
insert(_el$3, resolvedChildren);
|
|
39249
39091
|
insert(_el$2, createComponent(Show, {
|
|
39250
39092
|
get when() {
|
|
@@ -39257,7 +39099,7 @@ function PluginUiHost(props) {
|
|
|
39257
39099
|
return overlayPanel();
|
|
39258
39100
|
},
|
|
39259
39101
|
children: (panel) => (() => {
|
|
39260
|
-
var _el$4 = _tmpl$3$
|
|
39102
|
+
var _el$4 = _tmpl$3$9();
|
|
39261
39103
|
insert(_el$4, () => renderPanel(props.editor, panel(), t));
|
|
39262
39104
|
return _el$4;
|
|
39263
39105
|
})()
|
|
@@ -39308,13 +39150,13 @@ function renderPanel(editor, panel, t) {
|
|
|
39308
39150
|
return [createComponent(SidePanelHeader, {
|
|
39309
39151
|
get children() {
|
|
39310
39152
|
return [(() => {
|
|
39311
|
-
var _el$5 = _tmpl$5$
|
|
39153
|
+
var _el$5 = _tmpl$5$5(), _el$7 = _el$5.firstChild;
|
|
39312
39154
|
insert(_el$5, createComponent(Show, {
|
|
39313
39155
|
get when() {
|
|
39314
39156
|
return panel.icon;
|
|
39315
39157
|
},
|
|
39316
39158
|
get children() {
|
|
39317
|
-
var _el$6 = _tmpl$4$
|
|
39159
|
+
var _el$6 = _tmpl$4$7();
|
|
39318
39160
|
insert(_el$6, createComponent(ToolIcon, {
|
|
39319
39161
|
get name() {
|
|
39320
39162
|
return panel.icon;
|
|
@@ -39363,7 +39205,7 @@ function groupActionsByPlacement(actions) {
|
|
|
39363
39205
|
actions: groupActions
|
|
39364
39206
|
}));
|
|
39365
39207
|
}
|
|
39366
|
-
var _tmpl$$
|
|
39208
|
+
var _tmpl$$k = /* @__PURE__ */ template(`<div class=oasis-editor-main-container><section class=oasis-editor-stage>`);
|
|
39367
39209
|
function DocumentShell(props) {
|
|
39368
39210
|
let surfaceEl;
|
|
39369
39211
|
let viewportEl;
|
|
@@ -39490,7 +39332,7 @@ function DocumentShell(props) {
|
|
|
39490
39332
|
return props.runtimeEditor;
|
|
39491
39333
|
},
|
|
39492
39334
|
get children() {
|
|
39493
|
-
var _el$ = _tmpl$$
|
|
39335
|
+
var _el$ = _tmpl$$k(), _el$2 = _el$.firstChild;
|
|
39494
39336
|
insert(_el$, createComponent(Show, {
|
|
39495
39337
|
get when() {
|
|
39496
39338
|
return memo(() => !!props.showChrome)() && props.showOutline;
|
|
@@ -39555,10 +39397,10 @@ function DocumentShell(props) {
|
|
|
39555
39397
|
}
|
|
39556
39398
|
})];
|
|
39557
39399
|
}
|
|
39558
|
-
var _tmpl$$
|
|
39400
|
+
var _tmpl$$j = /* @__PURE__ */ template(`<div class=oasis-editor-main-container><section class=oasis-editor-stage style=padding:0>`), _tmpl$2$d = /* @__PURE__ */ template(`<div class=oasis-inline-shell style="border:1px solid var(--oasis-toolbar-border);border-radius:var(--oasis-radius);overflow:hidden;display:flex;flex-direction:column">`);
|
|
39559
39401
|
function InlineShell(props) {
|
|
39560
39402
|
return (() => {
|
|
39561
|
-
var _el$ = _tmpl$2$
|
|
39403
|
+
var _el$ = _tmpl$2$d();
|
|
39562
39404
|
insert(_el$, createComponent(Show, {
|
|
39563
39405
|
get when() {
|
|
39564
39406
|
return memo(() => !!props.showChrome)() && props.showToolbar;
|
|
@@ -39585,7 +39427,7 @@ function InlineShell(props) {
|
|
|
39585
39427
|
return props.runtimeEditor;
|
|
39586
39428
|
},
|
|
39587
39429
|
get children() {
|
|
39588
|
-
var _el$2 = _tmpl$$
|
|
39430
|
+
var _el$2 = _tmpl$$j(), _el$3 = _el$2.firstChild;
|
|
39589
39431
|
insert(_el$3, createComponent(OasisEditorEditor, {
|
|
39590
39432
|
state: () => props.state,
|
|
39591
39433
|
get layout() {
|
|
@@ -39625,16 +39467,16 @@ function InlineShell(props) {
|
|
|
39625
39467
|
return _el$;
|
|
39626
39468
|
})();
|
|
39627
39469
|
}
|
|
39628
|
-
var _tmpl$$
|
|
39470
|
+
var _tmpl$$i = /* @__PURE__ */ template(`<div class=oasis-editor-main-container><section class=oasis-editor-stage style=padding:0>`), _tmpl$2$c = /* @__PURE__ */ template(`<div class=oasis-balloon-shell>`);
|
|
39629
39471
|
function BalloonShell(props) {
|
|
39630
39472
|
return (() => {
|
|
39631
|
-
var _el$ = _tmpl$2$
|
|
39473
|
+
var _el$ = _tmpl$2$c();
|
|
39632
39474
|
insert(_el$, createComponent(PluginUiHost, {
|
|
39633
39475
|
get editor() {
|
|
39634
39476
|
return props.runtimeEditor;
|
|
39635
39477
|
},
|
|
39636
39478
|
get children() {
|
|
39637
|
-
var _el$2 = _tmpl$$
|
|
39479
|
+
var _el$2 = _tmpl$$i(), _el$3 = _el$2.firstChild;
|
|
39638
39480
|
insert(_el$3, createComponent(OasisEditorEditor, {
|
|
39639
39481
|
state: () => props.state,
|
|
39640
39482
|
get layout() {
|
|
@@ -39674,7 +39516,7 @@ function BalloonShell(props) {
|
|
|
39674
39516
|
return _el$;
|
|
39675
39517
|
})();
|
|
39676
39518
|
}
|
|
39677
|
-
var _tmpl$$
|
|
39519
|
+
var _tmpl$$h = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-footer data-testid=editor-dialog-footer>`), _tmpl$2$b = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-overlay><div role=dialog aria-modal=true data-testid=editor-dialog><div class=oasis-editor-dialog-header><h3 class=oasis-editor-dialog-title></h3><button class=oasis-editor-dialog-close data-testid=editor-dialog-close><i data-lucide=x></i></button></div><div data-testid=editor-dialog-body>`);
|
|
39678
39520
|
function Dialog(props) {
|
|
39679
39521
|
const t = useI18n();
|
|
39680
39522
|
let dialogRef;
|
|
@@ -39699,7 +39541,7 @@ function Dialog(props) {
|
|
|
39699
39541
|
return props.isOpen;
|
|
39700
39542
|
},
|
|
39701
39543
|
get children() {
|
|
39702
|
-
var _el$ = _tmpl$2$
|
|
39544
|
+
var _el$ = _tmpl$2$b(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling;
|
|
39703
39545
|
_el$.$$click = () => {
|
|
39704
39546
|
if (props.closeOnOverlayClick ?? true) {
|
|
39705
39547
|
props.onClose();
|
|
@@ -39716,7 +39558,7 @@ function Dialog(props) {
|
|
|
39716
39558
|
return props.footer;
|
|
39717
39559
|
},
|
|
39718
39560
|
get children() {
|
|
39719
|
-
var _el$7 = _tmpl$$
|
|
39561
|
+
var _el$7 = _tmpl$$h();
|
|
39720
39562
|
insert(_el$7, () => props.footer);
|
|
39721
39563
|
return _el$7;
|
|
39722
39564
|
}
|
|
@@ -39745,7 +39587,7 @@ function Dialog(props) {
|
|
|
39745
39587
|
});
|
|
39746
39588
|
}
|
|
39747
39589
|
delegateEvents(["click"]);
|
|
39748
|
-
var _tmpl$$
|
|
39590
|
+
var _tmpl$$g = /* @__PURE__ */ template(`<div><div class=oasis-editor-tabs-list role=tablist>`), _tmpl$2$a = /* @__PURE__ */ template(`<button type=button role=tab class=oasis-editor-tabs-tab>`), _tmpl$3$8 = /* @__PURE__ */ template(`<div role=tabpanel class=oasis-editor-tabs-panel>`);
|
|
39749
39591
|
function findEnabledItem(items, startIndex, direction) {
|
|
39750
39592
|
if (!items.length) return void 0;
|
|
39751
39593
|
for (let step = 0; step < items.length; step += 1) {
|
|
@@ -39796,7 +39638,7 @@ function Tabs(props) {
|
|
|
39796
39638
|
selectItem(findEnabledItem(items(), currentIndex + direction, direction), true);
|
|
39797
39639
|
};
|
|
39798
39640
|
return (() => {
|
|
39799
|
-
var _el$ = _tmpl$$
|
|
39641
|
+
var _el$ = _tmpl$$g(), _el$2 = _el$.firstChild;
|
|
39800
39642
|
_el$2.$$keydown = handleKeyDown;
|
|
39801
39643
|
insert(_el$2, createComponent(For, {
|
|
39802
39644
|
get each() {
|
|
@@ -39806,7 +39648,7 @@ function Tabs(props) {
|
|
|
39806
39648
|
const tabId = `${baseId}-${item.id}-tab`;
|
|
39807
39649
|
const panelId = `${baseId}-${item.id}-panel`;
|
|
39808
39650
|
return (() => {
|
|
39809
|
-
var _el$3 = _tmpl$2$
|
|
39651
|
+
var _el$3 = _tmpl$2$a();
|
|
39810
39652
|
_el$3.$$click = () => selectItem(item);
|
|
39811
39653
|
use((element) => {
|
|
39812
39654
|
tabRefs[index()] = element;
|
|
@@ -39841,7 +39683,7 @@ function Tabs(props) {
|
|
|
39841
39683
|
return items();
|
|
39842
39684
|
},
|
|
39843
39685
|
children: (item) => (() => {
|
|
39844
|
-
var _el$4 = _tmpl$3$
|
|
39686
|
+
var _el$4 = _tmpl$3$8();
|
|
39845
39687
|
insert(_el$4, () => item.panel);
|
|
39846
39688
|
createRenderEffect((_p$) => {
|
|
39847
39689
|
var _a, _b;
|
|
@@ -39873,12 +39715,12 @@ function Tabs(props) {
|
|
|
39873
39715
|
})();
|
|
39874
39716
|
}
|
|
39875
39717
|
delegateEvents(["keydown", "click"]);
|
|
39876
|
-
var _tmpl$$
|
|
39718
|
+
var _tmpl$$f = /* @__PURE__ */ template(`<button><span class=oasis-editor-ui-button-label>`);
|
|
39877
39719
|
function Button(props) {
|
|
39878
39720
|
const [local, others] = splitProps(props, ["type", "variant", "size", "icon", "iconPosition", "fullWidth", "class", "classList", "children"]);
|
|
39879
39721
|
const iconPosition = () => local.iconPosition ?? "start";
|
|
39880
39722
|
return (() => {
|
|
39881
|
-
var _el$ = _tmpl$$
|
|
39723
|
+
var _el$ = _tmpl$$f(), _el$2 = _el$.firstChild;
|
|
39882
39724
|
spread(_el$, mergeProps({
|
|
39883
39725
|
get type() {
|
|
39884
39726
|
return local.type ?? "button";
|
|
@@ -39923,7 +39765,7 @@ function Button(props) {
|
|
|
39923
39765
|
return _el$;
|
|
39924
39766
|
})();
|
|
39925
39767
|
}
|
|
39926
|
-
var _tmpl$$
|
|
39768
|
+
var _tmpl$$e = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-label>`), _tmpl$2$9 = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-description>`), _tmpl$3$7 = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-error>`), _tmpl$4$6 = /* @__PURE__ */ template(`<label><input class=oasis-editor-ui-input>`);
|
|
39927
39769
|
function TextField(props) {
|
|
39928
39770
|
const fallbackId = createUniqueId();
|
|
39929
39771
|
const [local, others] = splitProps(props, ["label", "description", "error", "onChange", "class", "id"]);
|
|
@@ -39931,13 +39773,13 @@ function TextField(props) {
|
|
|
39931
39773
|
const descriptionId = () => `${id()}-description`;
|
|
39932
39774
|
const errorId = () => `${id()}-error`;
|
|
39933
39775
|
return (() => {
|
|
39934
|
-
var _el$ = _tmpl$4$
|
|
39776
|
+
var _el$ = _tmpl$4$6(), _el$3 = _el$.firstChild;
|
|
39935
39777
|
insert(_el$, createComponent(Show, {
|
|
39936
39778
|
get when() {
|
|
39937
39779
|
return local.label;
|
|
39938
39780
|
},
|
|
39939
39781
|
get children() {
|
|
39940
|
-
var _el$2 = _tmpl$$
|
|
39782
|
+
var _el$2 = _tmpl$$e();
|
|
39941
39783
|
insert(_el$2, () => local.label);
|
|
39942
39784
|
return _el$2;
|
|
39943
39785
|
}
|
|
@@ -39962,7 +39804,7 @@ function TextField(props) {
|
|
|
39962
39804
|
return local.description;
|
|
39963
39805
|
},
|
|
39964
39806
|
get children() {
|
|
39965
|
-
var _el$4 = _tmpl$2$
|
|
39807
|
+
var _el$4 = _tmpl$2$9();
|
|
39966
39808
|
insert(_el$4, () => local.description);
|
|
39967
39809
|
createRenderEffect(() => setAttribute(_el$4, "id", descriptionId()));
|
|
39968
39810
|
return _el$4;
|
|
@@ -39973,7 +39815,7 @@ function TextField(props) {
|
|
|
39973
39815
|
return local.error;
|
|
39974
39816
|
},
|
|
39975
39817
|
get children() {
|
|
39976
|
-
var _el$5 = _tmpl$3$
|
|
39818
|
+
var _el$5 = _tmpl$3$7();
|
|
39977
39819
|
insert(_el$5, () => local.error);
|
|
39978
39820
|
createRenderEffect(() => setAttribute(_el$5, "id", errorId()));
|
|
39979
39821
|
return _el$5;
|
|
@@ -39992,7 +39834,7 @@ function TextField(props) {
|
|
|
39992
39834
|
})();
|
|
39993
39835
|
}
|
|
39994
39836
|
delegateEvents(["input"]);
|
|
39995
|
-
var _tmpl$$
|
|
39837
|
+
var _tmpl$$d = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-description>`), _tmpl$2$8 = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-error>`), _tmpl$3$6 = /* @__PURE__ */ template(`<label><input type=checkbox class=oasis-editor-ui-checkbox-input><span class=oasis-editor-ui-checkbox-copy><span class=oasis-editor-ui-field-label>`);
|
|
39996
39838
|
function Checkbox(props) {
|
|
39997
39839
|
const fallbackId = createUniqueId();
|
|
39998
39840
|
const [local, others] = splitProps(props, ["label", "description", "error", "onChange", "class", "id"]);
|
|
@@ -40000,7 +39842,7 @@ function Checkbox(props) {
|
|
|
40000
39842
|
const descriptionId = () => `${id()}-description`;
|
|
40001
39843
|
const errorId = () => `${id()}-error`;
|
|
40002
39844
|
return (() => {
|
|
40003
|
-
var _el$ = _tmpl$3$
|
|
39845
|
+
var _el$ = _tmpl$3$6(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
|
|
40004
39846
|
_el$2.addEventListener("change", (event) => {
|
|
40005
39847
|
var _a;
|
|
40006
39848
|
return (_a = local.onChange) == null ? void 0 : _a.call(local, event.currentTarget.checked);
|
|
@@ -40022,7 +39864,7 @@ function Checkbox(props) {
|
|
|
40022
39864
|
return local.description;
|
|
40023
39865
|
},
|
|
40024
39866
|
get children() {
|
|
40025
|
-
var _el$5 = _tmpl$$
|
|
39867
|
+
var _el$5 = _tmpl$$d();
|
|
40026
39868
|
insert(_el$5, () => local.description);
|
|
40027
39869
|
createRenderEffect(() => setAttribute(_el$5, "id", descriptionId()));
|
|
40028
39870
|
return _el$5;
|
|
@@ -40033,7 +39875,7 @@ function Checkbox(props) {
|
|
|
40033
39875
|
return local.error;
|
|
40034
39876
|
},
|
|
40035
39877
|
get children() {
|
|
40036
|
-
var _el$6 = _tmpl$2$
|
|
39878
|
+
var _el$6 = _tmpl$2$8();
|
|
40037
39879
|
insert(_el$6, () => local.error);
|
|
40038
39880
|
createRenderEffect(() => setAttribute(_el$6, "id", errorId()));
|
|
40039
39881
|
return _el$6;
|
|
@@ -40051,7 +39893,7 @@ function Checkbox(props) {
|
|
|
40051
39893
|
return _el$;
|
|
40052
39894
|
})();
|
|
40053
39895
|
}
|
|
40054
|
-
var _tmpl$$
|
|
39896
|
+
var _tmpl$$c = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-label>`), _tmpl$2$7 = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-description>`), _tmpl$3$5 = /* @__PURE__ */ template(`<span class=oasis-editor-ui-field-error>`), _tmpl$4$5 = /* @__PURE__ */ template(`<label><select class=oasis-editor-ui-select>`), _tmpl$5$4 = /* @__PURE__ */ template(`<option>`);
|
|
40055
39897
|
function SelectField(props) {
|
|
40056
39898
|
const fallbackId = createUniqueId();
|
|
40057
39899
|
const [local, others] = splitProps(props, ["label", "description", "error", "options", "onChange", "class", "id"]);
|
|
@@ -40059,13 +39901,13 @@ function SelectField(props) {
|
|
|
40059
39901
|
const descriptionId = () => `${id()}-description`;
|
|
40060
39902
|
const errorId = () => `${id()}-error`;
|
|
40061
39903
|
return (() => {
|
|
40062
|
-
var _el$ = _tmpl$4$
|
|
39904
|
+
var _el$ = _tmpl$4$5(), _el$3 = _el$.firstChild;
|
|
40063
39905
|
insert(_el$, createComponent(Show, {
|
|
40064
39906
|
get when() {
|
|
40065
39907
|
return local.label;
|
|
40066
39908
|
},
|
|
40067
39909
|
get children() {
|
|
40068
|
-
var _el$2 = _tmpl$$
|
|
39910
|
+
var _el$2 = _tmpl$$c();
|
|
40069
39911
|
insert(_el$2, () => local.label);
|
|
40070
39912
|
return _el$2;
|
|
40071
39913
|
}
|
|
@@ -40090,7 +39932,7 @@ function SelectField(props) {
|
|
|
40090
39932
|
return local.options;
|
|
40091
39933
|
},
|
|
40092
39934
|
children: (option) => (() => {
|
|
40093
|
-
var _el$6 = _tmpl$5$
|
|
39935
|
+
var _el$6 = _tmpl$5$4();
|
|
40094
39936
|
insert(_el$6, () => option.label);
|
|
40095
39937
|
createRenderEffect(() => _el$6.disabled = option.disabled);
|
|
40096
39938
|
createRenderEffect(() => _el$6.value = option.value);
|
|
@@ -40102,7 +39944,7 @@ function SelectField(props) {
|
|
|
40102
39944
|
return local.description;
|
|
40103
39945
|
},
|
|
40104
39946
|
get children() {
|
|
40105
|
-
var _el$4 = _tmpl$2$
|
|
39947
|
+
var _el$4 = _tmpl$2$7();
|
|
40106
39948
|
insert(_el$4, () => local.description);
|
|
40107
39949
|
createRenderEffect(() => setAttribute(_el$4, "id", descriptionId()));
|
|
40108
39950
|
return _el$4;
|
|
@@ -40113,7 +39955,7 @@ function SelectField(props) {
|
|
|
40113
39955
|
return local.error;
|
|
40114
39956
|
},
|
|
40115
39957
|
get children() {
|
|
40116
|
-
var _el$5 = _tmpl$3$
|
|
39958
|
+
var _el$5 = _tmpl$3$5();
|
|
40117
39959
|
insert(_el$5, () => local.error);
|
|
40118
39960
|
createRenderEffect(() => setAttribute(_el$5, "id", errorId()));
|
|
40119
39961
|
return _el$5;
|
|
@@ -40131,6 +39973,47 @@ function SelectField(props) {
|
|
|
40131
39973
|
return _el$;
|
|
40132
39974
|
})();
|
|
40133
39975
|
}
|
|
39976
|
+
function NumberField(props) {
|
|
39977
|
+
const [local, others] = splitProps(props, ["onChange"]);
|
|
39978
|
+
return createComponent(TextField, mergeProps({
|
|
39979
|
+
type: "number",
|
|
39980
|
+
onChange: (raw) => {
|
|
39981
|
+
var _a, _b;
|
|
39982
|
+
if (raw.trim() === "") {
|
|
39983
|
+
(_a = local.onChange) == null ? void 0 : _a.call(local, null);
|
|
39984
|
+
return;
|
|
39985
|
+
}
|
|
39986
|
+
const parsed = Number(raw);
|
|
39987
|
+
(_b = local.onChange) == null ? void 0 : _b.call(local, Number.isNaN(parsed) ? null : parsed);
|
|
39988
|
+
}
|
|
39989
|
+
}, others));
|
|
39990
|
+
}
|
|
39991
|
+
var _tmpl$$b = /* @__PURE__ */ template(`<div>`);
|
|
39992
|
+
const ALIGN_MAP = {
|
|
39993
|
+
start: "flex-start",
|
|
39994
|
+
center: "center",
|
|
39995
|
+
end: "flex-end",
|
|
39996
|
+
stretch: "stretch"
|
|
39997
|
+
};
|
|
39998
|
+
function FieldRow(props) {
|
|
39999
|
+
const [local, others] = splitProps(props, ["align", "class", "style", "children"]);
|
|
40000
|
+
return (() => {
|
|
40001
|
+
var _el$ = _tmpl$$b();
|
|
40002
|
+
spread(_el$, mergeProps({
|
|
40003
|
+
get ["class"]() {
|
|
40004
|
+
return `oasis-editor-ui-field-row ${local.class ?? ""}`;
|
|
40005
|
+
},
|
|
40006
|
+
get style() {
|
|
40007
|
+
return {
|
|
40008
|
+
"align-items": ALIGN_MAP[local.align ?? "end"],
|
|
40009
|
+
...typeof local.style === "object" ? local.style : {}
|
|
40010
|
+
};
|
|
40011
|
+
}
|
|
40012
|
+
}, others), false, true);
|
|
40013
|
+
insert(_el$, () => local.children);
|
|
40014
|
+
return _el$;
|
|
40015
|
+
})();
|
|
40016
|
+
}
|
|
40134
40017
|
var _tmpl$$a = /* @__PURE__ */ template(`<div>`);
|
|
40135
40018
|
function DialogFooter(props) {
|
|
40136
40019
|
const [local, others] = splitProps(props, ["align", "class", "classList", "children"]);
|
|
@@ -40448,7 +40331,7 @@ const UNDERLINE_STYLE_OPTIONS = [
|
|
|
40448
40331
|
}
|
|
40449
40332
|
}
|
|
40450
40333
|
];
|
|
40451
|
-
var _tmpl$$9 = /* @__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$
|
|
40334
|
+
var _tmpl$$9 = /* @__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$6 = /* @__PURE__ */ template(`<div class=oasis-editor-underline-menu-list>`), _tmpl$3$4 = /* @__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$4 = /* @__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$3 = /* @__PURE__ */ template(`<span class=oasis-editor-underline-menu-stroke>`);
|
|
40452
40335
|
const mod$1 = /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl";
|
|
40453
40336
|
const TEST_ID = "editor-toolbar-underline";
|
|
40454
40337
|
function UnderlineControl(props) {
|
|
@@ -40499,7 +40382,7 @@ function UnderlineControl(props) {
|
|
|
40499
40382
|
panelRole: "menu",
|
|
40500
40383
|
get mainContent() {
|
|
40501
40384
|
return (() => {
|
|
40502
|
-
var _el$5 = _tmpl$3$
|
|
40385
|
+
var _el$5 = _tmpl$3$4(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
40503
40386
|
createRenderEffect(() => setAttribute(_el$7, "data-style", indicatorStyle()));
|
|
40504
40387
|
return _el$5;
|
|
40505
40388
|
})();
|
|
@@ -40514,13 +40397,13 @@ function UnderlineControl(props) {
|
|
|
40514
40397
|
insert(_el$3, () => t("toolbar.underlineRemove"));
|
|
40515
40398
|
return _el$;
|
|
40516
40399
|
})(), (() => {
|
|
40517
|
-
var _el$4 = _tmpl$2$
|
|
40400
|
+
var _el$4 = _tmpl$2$6();
|
|
40518
40401
|
insert(_el$4, createComponent(For, {
|
|
40519
40402
|
each: UNDERLINE_STYLE_OPTIONS,
|
|
40520
40403
|
children: (option) => {
|
|
40521
40404
|
const isActive = () => active() && activeStyleValue() === option.value.toLowerCase();
|
|
40522
40405
|
return (() => {
|
|
40523
|
-
var _el$8 = _tmpl$5$
|
|
40406
|
+
var _el$8 = _tmpl$5$3(), _el$9 = _el$8.firstChild, _el$1 = _el$9.nextSibling;
|
|
40524
40407
|
_el$8.$$click = () => {
|
|
40525
40408
|
applyUnderlineStyle(option.value);
|
|
40526
40409
|
setOpen(false);
|
|
@@ -40540,7 +40423,7 @@ function UnderlineControl(props) {
|
|
|
40540
40423
|
})();
|
|
40541
40424
|
},
|
|
40542
40425
|
get children() {
|
|
40543
|
-
var _el$0 = _tmpl$4$
|
|
40426
|
+
var _el$0 = _tmpl$4$4();
|
|
40544
40427
|
createRenderEffect(() => _el$0.innerHTML = option.preview.svg);
|
|
40545
40428
|
return _el$0;
|
|
40546
40429
|
}
|
|
@@ -40569,7 +40452,7 @@ function UnderlineControl(props) {
|
|
|
40569
40452
|
});
|
|
40570
40453
|
}
|
|
40571
40454
|
delegateEvents(["click"]);
|
|
40572
|
-
var _tmpl$$8 = /* @__PURE__ */ template(`<option value=decimal>`), _tmpl$2$
|
|
40455
|
+
var _tmpl$$8 = /* @__PURE__ */ template(`<option value=decimal>`), _tmpl$2$5 = /* @__PURE__ */ template(`<option value=lowerLetter>`), _tmpl$3$3 = /* @__PURE__ */ template(`<option value=upperLetter>`), _tmpl$4$3 = /* @__PURE__ */ template(`<option value=lowerRoman>`), _tmpl$5$2 = /* @__PURE__ */ template(`<option value=upperRoman>`), _tmpl$6$2 = /* @__PURE__ */ template(`<option value=bullet>`), _tmpl$7 = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-list-options><label class=oasis-editor-toolbar-field><span></span></label><label class=oasis-editor-toolbar-field><span></span><input type=number class=oasis-editor-tool-number data-testid=editor-toolbar-list-start-at min=1 step=1 placeholder=1>`);
|
|
40573
40456
|
function ListOptionsControl(props) {
|
|
40574
40457
|
const t = useI18n();
|
|
40575
40458
|
const api = props.api;
|
|
@@ -40595,19 +40478,19 @@ function ListOptionsControl(props) {
|
|
|
40595
40478
|
insert(_el$4, () => t("toolbar.formatDecimal"));
|
|
40596
40479
|
return _el$4;
|
|
40597
40480
|
})(), (() => {
|
|
40598
|
-
var _el$5 = _tmpl$2$
|
|
40481
|
+
var _el$5 = _tmpl$2$5();
|
|
40599
40482
|
insert(_el$5, () => t("toolbar.formatLowerLetter"));
|
|
40600
40483
|
return _el$5;
|
|
40601
40484
|
})(), (() => {
|
|
40602
|
-
var _el$6 = _tmpl$3$
|
|
40485
|
+
var _el$6 = _tmpl$3$3();
|
|
40603
40486
|
insert(_el$6, () => t("toolbar.formatUpperLetter"));
|
|
40604
40487
|
return _el$6;
|
|
40605
40488
|
})(), (() => {
|
|
40606
|
-
var _el$7 = _tmpl$4$
|
|
40489
|
+
var _el$7 = _tmpl$4$3();
|
|
40607
40490
|
insert(_el$7, () => t("toolbar.formatLowerRoman"));
|
|
40608
40491
|
return _el$7;
|
|
40609
40492
|
})(), (() => {
|
|
40610
|
-
var _el$8 = _tmpl$5$
|
|
40493
|
+
var _el$8 = _tmpl$5$2();
|
|
40611
40494
|
insert(_el$8, () => t("toolbar.formatUpperRoman"));
|
|
40612
40495
|
return _el$8;
|
|
40613
40496
|
})(), (() => {
|
|
@@ -40624,35 +40507,35 @@ function ListOptionsControl(props) {
|
|
|
40624
40507
|
}
|
|
40625
40508
|
});
|
|
40626
40509
|
}
|
|
40627
|
-
var _tmpl$$7 = /* @__PURE__ */ template(`<div class=oasis-editor-dialog-
|
|
40510
|
+
var _tmpl$$7 = /* @__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-line-spacing-dialog-preview><br>`);
|
|
40628
40511
|
function LineSpacingDialog(props) {
|
|
40629
40512
|
const t = useI18n();
|
|
40630
|
-
const [lineHeight, setLineHeight] = createSignal("");
|
|
40631
|
-
const [spacingBefore, setSpacingBefore] = createSignal("");
|
|
40632
|
-
const [spacingAfter, setSpacingAfter] = createSignal("");
|
|
40633
|
-
createEffect(() => {
|
|
40634
|
-
if (props.isOpen) {
|
|
40635
|
-
setLineHeight(props.initial.lineHeight ?? "");
|
|
40636
|
-
setSpacingBefore(props.initial.spacingBefore ?? "");
|
|
40637
|
-
setSpacingAfter(props.initial.spacingAfter ?? "");
|
|
40638
|
-
}
|
|
40639
|
-
});
|
|
40640
40513
|
const parseNumber = (value) => {
|
|
40641
40514
|
if (value.trim() === "") return null;
|
|
40642
40515
|
const num = Number(value);
|
|
40643
40516
|
return Number.isFinite(num) ? num : null;
|
|
40644
40517
|
};
|
|
40518
|
+
const [lineHeight, setLineHeight] = createSignal(null);
|
|
40519
|
+
const [spacingBefore, setSpacingBefore] = createSignal(null);
|
|
40520
|
+
const [spacingAfter, setSpacingAfter] = createSignal(null);
|
|
40521
|
+
createEffect(() => {
|
|
40522
|
+
if (props.isOpen) {
|
|
40523
|
+
setLineHeight(parseNumber(props.initial.lineHeight ?? ""));
|
|
40524
|
+
setSpacingBefore(parseNumber(props.initial.spacingBefore ?? ""));
|
|
40525
|
+
setSpacingAfter(parseNumber(props.initial.spacingAfter ?? ""));
|
|
40526
|
+
}
|
|
40527
|
+
});
|
|
40645
40528
|
const previewStyle2 = createMemo(() => {
|
|
40646
|
-
const lh =
|
|
40529
|
+
const lh = lineHeight();
|
|
40647
40530
|
return {
|
|
40648
40531
|
"line-height": lh !== null && lh > 0 ? String(lh) : void 0
|
|
40649
40532
|
};
|
|
40650
40533
|
});
|
|
40651
40534
|
const handleApply = () => {
|
|
40652
40535
|
props.onApply({
|
|
40653
|
-
lineHeight:
|
|
40654
|
-
spacingBefore:
|
|
40655
|
-
spacingAfter:
|
|
40536
|
+
lineHeight: lineHeight(),
|
|
40537
|
+
spacingBefore: spacingBefore(),
|
|
40538
|
+
spacingAfter: spacingAfter()
|
|
40656
40539
|
}, props.initial);
|
|
40657
40540
|
props.onClose();
|
|
40658
40541
|
};
|
|
@@ -40667,46 +40550,77 @@ function LineSpacingDialog(props) {
|
|
|
40667
40550
|
return props.onClose;
|
|
40668
40551
|
},
|
|
40669
40552
|
get footer() {
|
|
40670
|
-
return [(
|
|
40671
|
-
|
|
40672
|
-
|
|
40673
|
-
|
|
40674
|
-
|
|
40675
|
-
|
|
40676
|
-
|
|
40677
|
-
|
|
40678
|
-
|
|
40679
|
-
|
|
40680
|
-
|
|
40553
|
+
return [createComponent(Button, {
|
|
40554
|
+
variant: "secondary",
|
|
40555
|
+
get onClick() {
|
|
40556
|
+
return props.onClose;
|
|
40557
|
+
},
|
|
40558
|
+
"data-testid": "editor-line-spacing-dialog-cancel",
|
|
40559
|
+
get children() {
|
|
40560
|
+
return t("generic.cancel");
|
|
40561
|
+
}
|
|
40562
|
+
}), createComponent(Button, {
|
|
40563
|
+
variant: "primary",
|
|
40564
|
+
onClick: handleApply,
|
|
40565
|
+
"data-testid": "editor-line-spacing-dialog-apply",
|
|
40566
|
+
get children() {
|
|
40567
|
+
return t("generic.apply");
|
|
40568
|
+
}
|
|
40569
|
+
})];
|
|
40681
40570
|
},
|
|
40682
40571
|
get children() {
|
|
40683
|
-
return [(
|
|
40684
|
-
|
|
40685
|
-
|
|
40686
|
-
|
|
40687
|
-
|
|
40572
|
+
return [createComponent(FieldRow, {
|
|
40573
|
+
get children() {
|
|
40574
|
+
return createComponent(NumberField, {
|
|
40575
|
+
get label() {
|
|
40576
|
+
return t("lineSpacing.lineSpacingLabel");
|
|
40577
|
+
},
|
|
40578
|
+
min: "0.5",
|
|
40579
|
+
step: "0.05",
|
|
40580
|
+
get value() {
|
|
40581
|
+
return lineHeight() ?? "";
|
|
40582
|
+
},
|
|
40583
|
+
onChange: setLineHeight,
|
|
40584
|
+
"data-testid": "editor-line-spacing-dialog-line-height"
|
|
40585
|
+
});
|
|
40586
|
+
}
|
|
40587
|
+
}), createComponent(FieldRow, {
|
|
40588
|
+
get children() {
|
|
40589
|
+
return [createComponent(NumberField, {
|
|
40590
|
+
get label() {
|
|
40591
|
+
return t("lineSpacing.spacingBeforeLabel");
|
|
40592
|
+
},
|
|
40593
|
+
min: "0",
|
|
40594
|
+
step: "1",
|
|
40595
|
+
get value() {
|
|
40596
|
+
return spacingBefore() ?? "";
|
|
40597
|
+
},
|
|
40598
|
+
onChange: setSpacingBefore,
|
|
40599
|
+
"data-testid": "editor-line-spacing-dialog-spacing-before"
|
|
40600
|
+
}), createComponent(NumberField, {
|
|
40601
|
+
get label() {
|
|
40602
|
+
return t("lineSpacing.spacingAfterLabel");
|
|
40603
|
+
},
|
|
40604
|
+
min: "0",
|
|
40605
|
+
step: "1",
|
|
40606
|
+
get value() {
|
|
40607
|
+
return spacingAfter() ?? "";
|
|
40608
|
+
},
|
|
40609
|
+
onChange: setSpacingAfter,
|
|
40610
|
+
"data-testid": "editor-line-spacing-dialog-spacing-after"
|
|
40611
|
+
})];
|
|
40612
|
+
}
|
|
40613
|
+
}), (() => {
|
|
40614
|
+
var _el$ = _tmpl$$7(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
|
|
40615
|
+
insert(_el$2, () => t("lineSpacing.preview"));
|
|
40616
|
+
insert(_el$3, () => t("lineSpacing.previewText"), _el$4);
|
|
40617
|
+
insert(_el$3, () => t("lineSpacing.previewText"), null);
|
|
40618
|
+
createRenderEffect((_$p) => style(_el$3, previewStyle2(), _$p));
|
|
40688
40619
|
return _el$;
|
|
40689
|
-
})(), (() => {
|
|
40690
|
-
var _el$5 = _tmpl$2$5(), _el$6 = _el$5.firstChild, _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;
|
|
40691
|
-
insert(_el$7, () => t("lineSpacing.spacingBeforeLabel"));
|
|
40692
|
-
_el$8.$$input = (e) => setSpacingBefore(e.currentTarget.value);
|
|
40693
|
-
insert(_el$0, () => t("lineSpacing.spacingAfterLabel"));
|
|
40694
|
-
_el$1.$$input = (e) => setSpacingAfter(e.currentTarget.value);
|
|
40695
|
-
createRenderEffect(() => _el$8.value = spacingBefore());
|
|
40696
|
-
createRenderEffect(() => _el$1.value = spacingAfter());
|
|
40697
|
-
return _el$5;
|
|
40698
|
-
})(), (() => {
|
|
40699
|
-
var _el$10 = _tmpl$3$3(), _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
|
|
40700
|
-
insert(_el$11, () => t("lineSpacing.preview"));
|
|
40701
|
-
insert(_el$12, () => t("lineSpacing.previewText"), _el$13);
|
|
40702
|
-
insert(_el$12, () => t("lineSpacing.previewText"), null);
|
|
40703
|
-
createRenderEffect((_$p) => style(_el$12, previewStyle2(), _$p));
|
|
40704
|
-
return _el$10;
|
|
40705
40620
|
})()];
|
|
40706
40621
|
}
|
|
40707
40622
|
});
|
|
40708
40623
|
}
|
|
40709
|
-
delegateEvents(["input", "click"]);
|
|
40710
40624
|
var _tmpl$$6 = /* @__PURE__ */ template(`<div class=oasis-editor-line-spacing-menu-separator role=separator>`), _tmpl$2$4 = /* @__PURE__ */ template(`<button type=button class="oasis-editor-line-spacing-item oasis-editor-line-spacing-item-more"role=menuitem data-testid=editor-toolbar-line-spacing-options><span class=oasis-editor-line-spacing-item-check aria-hidden=true></span><span class=oasis-editor-line-spacing-item-label>`), _tmpl$3$2 = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$4$2 = /* @__PURE__ */ template(`<button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown oasis-editor-line-spacing-button"aria-haspopup=menu data-testid=editor-toolbar-line-spacing><span class=oasis-editor-line-spacing-icon aria-hidden=true><svg xmlns=http://www.w3.org/2000/svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="4 7 7 4 10 7"></polyline><line x1=7 y1=4 x2=7 y2=20></line><polyline points="4 17 7 20 10 17"></polyline><line x1=13 y1=6 x2=21 y2=6></line><line x1=13 y1=12 x2=21 y2=12></line><line x1=13 y1=18 x2=21 y2=18>`), _tmpl$5$1 = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2.5 stroke-linecap=round stroke-linejoin=round><polyline points="20 6 9 17 4 12">`), _tmpl$6$1 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-line-spacing-item role=menuitemradio><span class=oasis-editor-line-spacing-item-check aria-hidden=true></span><span class=oasis-editor-line-spacing-item-label>`);
|
|
40711
40625
|
const PRESET_VALUES = [1, 1.15, 1.5, 2, 2.5, 3];
|
|
40712
40626
|
function formatPreset(value) {
|
|
@@ -42753,263 +42667,267 @@ const OASIS_MENU_ITEMS = {
|
|
|
42753
42667
|
formatListsNumbered: "format_lists_numbered"
|
|
42754
42668
|
};
|
|
42755
42669
|
export {
|
|
42756
|
-
|
|
42757
|
-
|
|
42758
|
-
|
|
42759
|
-
|
|
42760
|
-
|
|
42670
|
+
findParagraphIndex as $,
|
|
42671
|
+
For as A,
|
|
42672
|
+
createContext as B,
|
|
42673
|
+
template as C,
|
|
42674
|
+
createUniqueId as D,
|
|
42761
42675
|
EMPTY_PROJECTION_CONTEXT as E,
|
|
42762
|
-
|
|
42763
|
-
|
|
42764
|
-
|
|
42765
|
-
|
|
42766
|
-
|
|
42767
|
-
|
|
42768
|
-
|
|
42769
|
-
|
|
42770
|
-
|
|
42771
|
-
|
|
42772
|
-
|
|
42773
|
-
|
|
42774
|
-
|
|
42775
|
-
|
|
42776
|
-
|
|
42777
|
-
|
|
42778
|
-
|
|
42779
|
-
|
|
42780
|
-
|
|
42781
|
-
|
|
42782
|
-
|
|
42783
|
-
|
|
42784
|
-
|
|
42785
|
-
|
|
42786
|
-
|
|
42787
|
-
|
|
42788
|
-
|
|
42789
|
-
|
|
42790
|
-
|
|
42791
|
-
|
|
42792
|
-
|
|
42793
|
-
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
42797
|
-
|
|
42798
|
-
|
|
42799
|
-
|
|
42800
|
-
|
|
42801
|
-
|
|
42802
|
-
|
|
42803
|
-
|
|
42804
|
-
|
|
42805
|
-
|
|
42806
|
-
|
|
42807
|
-
|
|
42808
|
-
|
|
42809
|
-
|
|
42810
|
-
|
|
42811
|
-
|
|
42812
|
-
|
|
42813
|
-
|
|
42814
|
-
|
|
42815
|
-
|
|
42816
|
-
|
|
42817
|
-
|
|
42818
|
-
|
|
42819
|
-
|
|
42820
|
-
|
|
42821
|
-
|
|
42822
|
-
|
|
42823
|
-
|
|
42824
|
-
|
|
42825
|
-
|
|
42826
|
-
|
|
42827
|
-
|
|
42828
|
-
|
|
42829
|
-
|
|
42830
|
-
|
|
42831
|
-
|
|
42832
|
-
|
|
42833
|
-
|
|
42834
|
-
|
|
42835
|
-
|
|
42836
|
-
|
|
42837
|
-
|
|
42838
|
-
|
|
42839
|
-
|
|
42840
|
-
|
|
42841
|
-
|
|
42842
|
-
|
|
42843
|
-
|
|
42844
|
-
|
|
42845
|
-
|
|
42846
|
-
|
|
42847
|
-
|
|
42848
|
-
|
|
42676
|
+
FOOTNOTE_MARKER_GUTTER_PX as F,
|
|
42677
|
+
style as G,
|
|
42678
|
+
visitRun as H,
|
|
42679
|
+
assertNever as I,
|
|
42680
|
+
createSignal as J,
|
|
42681
|
+
createEditorStateFromDocument as K,
|
|
42682
|
+
createInitialEditorState as L,
|
|
42683
|
+
STANDARD_FONT_SIZES_PT as M,
|
|
42684
|
+
fontSizePxToPt as N,
|
|
42685
|
+
probeLocalFontFamilies as O,
|
|
42686
|
+
createEditorParagraphFromRuns as P,
|
|
42687
|
+
isInlineObjectRun as Q,
|
|
42688
|
+
createEditorStyledRun as R,
|
|
42689
|
+
Show as S,
|
|
42690
|
+
getParagraphLength as T,
|
|
42691
|
+
getActiveZone as U,
|
|
42692
|
+
getActiveSectionIndex as V,
|
|
42693
|
+
getParagraphs as W,
|
|
42694
|
+
normalizeSelection as X,
|
|
42695
|
+
positionToParagraphOffset as Y,
|
|
42696
|
+
paragraphOffsetToPosition as Z,
|
|
42697
|
+
clampPosition as _,
|
|
42698
|
+
getPageBodyBottom as a,
|
|
42699
|
+
EMU_PER_PX as a$,
|
|
42700
|
+
createCollapsedSelection as a0,
|
|
42701
|
+
isSelectionCollapsed as a1,
|
|
42702
|
+
parseFontSizePtToPx as a2,
|
|
42703
|
+
formatFontSizePt as a3,
|
|
42704
|
+
createEditorParagraph as a4,
|
|
42705
|
+
findParagraphTableLocation as a5,
|
|
42706
|
+
buildTableCellLayout as a6,
|
|
42707
|
+
PT_PER_PX as a7,
|
|
42708
|
+
createEditorTableCell as a8,
|
|
42709
|
+
createEditorTableRow as a9,
|
|
42710
|
+
Tabs as aA,
|
|
42711
|
+
FieldRow as aB,
|
|
42712
|
+
NumberField as aC,
|
|
42713
|
+
createStore as aD,
|
|
42714
|
+
reconcile as aE,
|
|
42715
|
+
addEventListener as aF,
|
|
42716
|
+
onMount as aG,
|
|
42717
|
+
onCleanup as aH,
|
|
42718
|
+
use as aI,
|
|
42719
|
+
PluginUiHost as aJ,
|
|
42720
|
+
OasisEditorEditor as aK,
|
|
42721
|
+
OasisBrandMark as aL,
|
|
42722
|
+
setPreciseFontPreference as aM,
|
|
42723
|
+
setWelcomeSeen as aN,
|
|
42724
|
+
enablePreciseFontMode as aO,
|
|
42725
|
+
TWIPS_PER_POINT as aP,
|
|
42726
|
+
PX_PER_INCH as aQ,
|
|
42727
|
+
TWIPS_PER_INCH as aR,
|
|
42728
|
+
normalizeHex6 as aS,
|
|
42729
|
+
TABLE_CONDITIONAL_FLAG_ATTRIBUTES as aT,
|
|
42730
|
+
TABLE_BORDER_EDGE_KEYS as aU,
|
|
42731
|
+
resolveEffectiveParagraphStyle as aV,
|
|
42732
|
+
resolveEffectiveTextStyleForParagraph as aW,
|
|
42733
|
+
EMU_PER_PT as aX,
|
|
42734
|
+
OOXML_ROTATION_UNITS as aY,
|
|
42735
|
+
OOXML_PERCENT_DENOMINATOR as aZ,
|
|
42736
|
+
parseHexColorToRgb255 as a_,
|
|
42737
|
+
createEditorTable as aa,
|
|
42738
|
+
PX_PER_POINT as ab,
|
|
42739
|
+
underlineStyleToCssDecorationStyle as ac,
|
|
42740
|
+
resolveImageSrc as ad,
|
|
42741
|
+
listKindForTag as ae,
|
|
42742
|
+
isParagraphTag as af,
|
|
42743
|
+
collectInlineRuns as ag,
|
|
42744
|
+
parseParagraphStyle as ah,
|
|
42745
|
+
getRunImage as ai,
|
|
42746
|
+
InlineShell as aj,
|
|
42747
|
+
BalloonShell as ak,
|
|
42748
|
+
DocumentShell as al,
|
|
42749
|
+
createMemo as am,
|
|
42750
|
+
getCaretRectFromSnapshot as an,
|
|
42751
|
+
getParagraphRectFromSnapshot as ao,
|
|
42752
|
+
CaretOverlay as ap,
|
|
42753
|
+
setStyleProperty as aq,
|
|
42754
|
+
Button as ar,
|
|
42755
|
+
useI18n as as,
|
|
42756
|
+
createEffect as at,
|
|
42757
|
+
TextField as au,
|
|
42758
|
+
Dialog as av,
|
|
42759
|
+
SelectField as aw,
|
|
42760
|
+
UNDERLINE_STYLE_OPTIONS as ax,
|
|
42761
|
+
delegateEvents as ay,
|
|
42762
|
+
Checkbox as az,
|
|
42849
42763
|
getPageBodyTop as b,
|
|
42850
|
-
|
|
42851
|
-
|
|
42852
|
-
|
|
42853
|
-
|
|
42854
|
-
|
|
42855
|
-
|
|
42856
|
-
|
|
42857
|
-
|
|
42858
|
-
|
|
42859
|
-
|
|
42860
|
-
|
|
42861
|
-
|
|
42862
|
-
|
|
42863
|
-
|
|
42864
|
-
|
|
42865
|
-
|
|
42866
|
-
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
|
|
42882
|
-
|
|
42883
|
-
|
|
42884
|
-
|
|
42885
|
-
|
|
42886
|
-
|
|
42887
|
-
|
|
42888
|
-
|
|
42889
|
-
|
|
42890
|
-
|
|
42891
|
-
|
|
42892
|
-
|
|
42893
|
-
|
|
42894
|
-
|
|
42895
|
-
|
|
42896
|
-
|
|
42897
|
-
|
|
42898
|
-
|
|
42899
|
-
|
|
42900
|
-
|
|
42901
|
-
|
|
42902
|
-
|
|
42903
|
-
|
|
42904
|
-
|
|
42905
|
-
|
|
42906
|
-
|
|
42907
|
-
|
|
42908
|
-
|
|
42909
|
-
|
|
42910
|
-
|
|
42911
|
-
|
|
42912
|
-
|
|
42913
|
-
|
|
42914
|
-
|
|
42915
|
-
|
|
42916
|
-
|
|
42917
|
-
|
|
42918
|
-
|
|
42919
|
-
|
|
42920
|
-
|
|
42921
|
-
|
|
42922
|
-
|
|
42923
|
-
|
|
42924
|
-
|
|
42925
|
-
|
|
42926
|
-
|
|
42927
|
-
|
|
42928
|
-
|
|
42929
|
-
|
|
42930
|
-
|
|
42931
|
-
|
|
42932
|
-
|
|
42933
|
-
|
|
42934
|
-
|
|
42935
|
-
|
|
42936
|
-
|
|
42937
|
-
|
|
42938
|
-
|
|
42939
|
-
|
|
42940
|
-
|
|
42941
|
-
|
|
42942
|
-
|
|
42943
|
-
|
|
42944
|
-
|
|
42945
|
-
|
|
42946
|
-
|
|
42947
|
-
|
|
42948
|
-
|
|
42949
|
-
|
|
42950
|
-
|
|
42951
|
-
|
|
42952
|
-
|
|
42953
|
-
|
|
42954
|
-
|
|
42955
|
-
|
|
42956
|
-
|
|
42957
|
-
|
|
42958
|
-
|
|
42959
|
-
|
|
42960
|
-
|
|
42961
|
-
|
|
42962
|
-
|
|
42963
|
-
|
|
42964
|
-
|
|
42965
|
-
|
|
42966
|
-
|
|
42967
|
-
|
|
42968
|
-
|
|
42969
|
-
|
|
42970
|
-
|
|
42971
|
-
|
|
42972
|
-
|
|
42973
|
-
|
|
42974
|
-
|
|
42975
|
-
|
|
42976
|
-
|
|
42977
|
-
|
|
42978
|
-
|
|
42764
|
+
debounce as b$,
|
|
42765
|
+
getRunEndnoteReference as b0,
|
|
42766
|
+
iterateFootnoteReferenceRuns as b1,
|
|
42767
|
+
iterateEndnoteReferenceRuns as b2,
|
|
42768
|
+
imageContentTypeDefaults as b3,
|
|
42769
|
+
getRunFieldChar as b4,
|
|
42770
|
+
getRunFieldInstruction as b5,
|
|
42771
|
+
createEditorRun as b6,
|
|
42772
|
+
JSZip as b7,
|
|
42773
|
+
imageExtensionFromMime as b8,
|
|
42774
|
+
pxToPt as b9,
|
|
42775
|
+
buildCanvasTableLayout as bA,
|
|
42776
|
+
resolveCanvasTableWidth as bB,
|
|
42777
|
+
resolveFloatingTableRect as bC,
|
|
42778
|
+
normalizeFamily as bD,
|
|
42779
|
+
ROBOTO_FONT_FILES as bE,
|
|
42780
|
+
loadFontAsset as bF,
|
|
42781
|
+
OFFICE_COMPAT_FONT_FAMILIES as bG,
|
|
42782
|
+
BinaryReader as bH,
|
|
42783
|
+
buildSfnt as bI,
|
|
42784
|
+
defaultFontDecoderRegistry as bJ,
|
|
42785
|
+
SfntFontProgram as bK,
|
|
42786
|
+
collectPdfFontFamilies as bL,
|
|
42787
|
+
outlineFrom as bM,
|
|
42788
|
+
getPageHeaderZoneTop as bN,
|
|
42789
|
+
getPageColumnRects as bO,
|
|
42790
|
+
findFootnoteReference as bP,
|
|
42791
|
+
resolveImporterForFile as bQ,
|
|
42792
|
+
roundTo as bR,
|
|
42793
|
+
getDocumentSectionsCanonical as bS,
|
|
42794
|
+
getDocumentParagraphsCanonical as bT,
|
|
42795
|
+
getDocumentParagraphs as bU,
|
|
42796
|
+
getDocumentPageSettings as bV,
|
|
42797
|
+
getTableCellContentWidthForParagraph as bW,
|
|
42798
|
+
layoutMetricsEpoch as bX,
|
|
42799
|
+
bumpLayoutMetricsEpoch as bY,
|
|
42800
|
+
createCanvasLayoutSnapshotProvider as bZ,
|
|
42801
|
+
on as b_,
|
|
42802
|
+
resolveFloatingObjectRect as ba,
|
|
42803
|
+
getTextBoxFloatingGeometry as bb,
|
|
42804
|
+
getPresetPathSegments as bc,
|
|
42805
|
+
buildListLabels as bd,
|
|
42806
|
+
DEFAULT_FONT_SIZE_PX as be,
|
|
42807
|
+
resolveGradientAxis as bf,
|
|
42808
|
+
isDoubleUnderlineStyle as bg,
|
|
42809
|
+
isWavyUnderlineStyle as bh,
|
|
42810
|
+
underlineStyleLineWidthPx as bi,
|
|
42811
|
+
WAVY_UNDERLINE_WAVELENGTH_PX as bj,
|
|
42812
|
+
WAVY_UNDERLINE_AMPLITUDE_PX as bk,
|
|
42813
|
+
DOUBLE_UNDERLINE_OFFSET_PX as bl,
|
|
42814
|
+
underlineStyleDashArray as bm,
|
|
42815
|
+
EMPHASIS_GLYPH as bn,
|
|
42816
|
+
rgb255ToHex as bo,
|
|
42817
|
+
getImageFloatingGeometry as bp,
|
|
42818
|
+
textStyleToFontSizePt as bq,
|
|
42819
|
+
TEXT_BASELINE_RATIO as br,
|
|
42820
|
+
resolveOpenTypeFeatureTags as bs,
|
|
42821
|
+
resolveDecorationLineY as bt,
|
|
42822
|
+
DOUBLE_STRIKE_OFFSET_PX as bu,
|
|
42823
|
+
resolveListLabel as bv,
|
|
42824
|
+
getListLabelInset as bw,
|
|
42825
|
+
getAlignedListLabelInset as bx,
|
|
42826
|
+
getParagraphBorderInsets as by,
|
|
42827
|
+
buildSegmentTable as bz,
|
|
42828
|
+
getPageContentWidth as c,
|
|
42829
|
+
PluginCollection as c$,
|
|
42830
|
+
unwrap as c0,
|
|
42831
|
+
perfTimer as c1,
|
|
42832
|
+
getRunTextBox as c2,
|
|
42833
|
+
createEditorDocument as c3,
|
|
42834
|
+
resolveResizedDimensions as c4,
|
|
42835
|
+
resolveTextBoxRenderHeight as c5,
|
|
42836
|
+
getToolbarStyleState as c6,
|
|
42837
|
+
VERTICAL_HIT_WEIGHT as c7,
|
|
42838
|
+
getCachedCanvasImage as c8,
|
|
42839
|
+
measureParagraphMinContentWidthPx as c9,
|
|
42840
|
+
createOasisEditorClient as cA,
|
|
42841
|
+
createEditorZoom as cB,
|
|
42842
|
+
startLongTaskObserver as cC,
|
|
42843
|
+
installGlobalReport as cD,
|
|
42844
|
+
applyStoredPreciseFontPreference as cE,
|
|
42845
|
+
getWelcomeSeen as cF,
|
|
42846
|
+
isLocalFontAccessSupported as cG,
|
|
42847
|
+
EDITOR_SCROLL_PADDING_PX as cH,
|
|
42848
|
+
Toolbar as cI,
|
|
42849
|
+
OasisEditorLoading as cJ,
|
|
42850
|
+
I18nProvider as cK,
|
|
42851
|
+
createTranslator as cL,
|
|
42852
|
+
createEditorLogger as cM,
|
|
42853
|
+
registerDomStatsSurface as cN,
|
|
42854
|
+
ColorPicker as cO,
|
|
42855
|
+
CommandRegistry as cP,
|
|
42856
|
+
DEFAULT_PALETTE as cQ,
|
|
42857
|
+
DialogFooter as cR,
|
|
42858
|
+
FloatingActionButton as cS,
|
|
42859
|
+
GridPicker as cT,
|
|
42860
|
+
IconButton as cU,
|
|
42861
|
+
Menu as cV,
|
|
42862
|
+
OASIS_BUILTIN_COMMANDS as cW,
|
|
42863
|
+
OASIS_MENU_ITEMS as cX,
|
|
42864
|
+
OASIS_TOOLBAR_ITEMS as cY,
|
|
42865
|
+
OasisEditorAppLazy as cZ,
|
|
42866
|
+
OasisEditorContainer as c_,
|
|
42867
|
+
getEditableBlocksForZone as ca,
|
|
42868
|
+
findParagraphLocation as cb,
|
|
42869
|
+
createSectionBoundaryParagraph as cc,
|
|
42870
|
+
normalizePageSettings as cd,
|
|
42871
|
+
DEFAULT_EDITOR_PAGE_SETTINGS as ce,
|
|
42872
|
+
markStart as cf,
|
|
42873
|
+
markEnd as cg,
|
|
42874
|
+
getParagraphEntries as ch,
|
|
42875
|
+
getParagraphById as ci,
|
|
42876
|
+
createEditorFootnote as cj,
|
|
42877
|
+
createFootnoteReferenceRun as ck,
|
|
42878
|
+
renumberFootnotes as cl,
|
|
42879
|
+
getHeadingLevel as cm,
|
|
42880
|
+
preciseFontModeVersion as cn,
|
|
42881
|
+
isPreciseFontModeEnabled as co,
|
|
42882
|
+
resolveNamedTextStyle as cp,
|
|
42883
|
+
togglePreciseFontMode as cq,
|
|
42884
|
+
nextFontSizePt as cr,
|
|
42885
|
+
previousFontSizePt as cs,
|
|
42886
|
+
fontSizePtToPx as ct,
|
|
42887
|
+
createDefaultToolbarPreset as cu,
|
|
42888
|
+
MenuRegistry as cv,
|
|
42889
|
+
createToolbarRegistry as cw,
|
|
42890
|
+
Editor as cx,
|
|
42891
|
+
resolveCommandRef as cy,
|
|
42892
|
+
commandRefName as cz,
|
|
42979
42893
|
domTextMeasurer as d,
|
|
42980
|
-
|
|
42981
|
-
|
|
42982
|
-
|
|
42983
|
-
|
|
42984
|
-
|
|
42985
|
-
|
|
42986
|
-
|
|
42987
|
-
|
|
42988
|
-
|
|
42989
|
-
|
|
42990
|
-
|
|
42991
|
-
|
|
42992
|
-
|
|
42894
|
+
Popover as d0,
|
|
42895
|
+
RIBBON_TABS as d1,
|
|
42896
|
+
Select as d2,
|
|
42897
|
+
Separator as d3,
|
|
42898
|
+
SidePanel as d4,
|
|
42899
|
+
SidePanelBody as d5,
|
|
42900
|
+
SidePanelFooter as d6,
|
|
42901
|
+
SidePanelHeader as d7,
|
|
42902
|
+
SplitButton as d8,
|
|
42903
|
+
StyleGallery as d9,
|
|
42904
|
+
Button$1 as da,
|
|
42905
|
+
buildRibbonTabDefinitions as db,
|
|
42906
|
+
createEditorCommandBus as dc,
|
|
42907
|
+
createOasisEditor as dd,
|
|
42908
|
+
createOasisEditorContainer as de,
|
|
42909
|
+
mount as df,
|
|
42910
|
+
registerToolbarRenderer as dg,
|
|
42993
42911
|
estimateTableBlockHeight as e,
|
|
42994
|
-
|
|
42912
|
+
getParagraphText as f,
|
|
42995
42913
|
getProjectedParagraphBlockHeight as g,
|
|
42996
|
-
|
|
42997
|
-
|
|
42998
|
-
|
|
42999
|
-
|
|
42914
|
+
getBlockParagraphs as h,
|
|
42915
|
+
getRunFootnoteReference as i,
|
|
42916
|
+
getFootnoteDisplayMarker as j,
|
|
42917
|
+
createProjectionContext as k,
|
|
43000
42918
|
listReferencedEndnotes as l,
|
|
43001
|
-
|
|
43002
|
-
|
|
43003
|
-
|
|
42919
|
+
getDocumentSections as m,
|
|
42920
|
+
getRunField as n,
|
|
42921
|
+
projectBlocksLayout as o,
|
|
43004
42922
|
projectParagraphLayout as p,
|
|
43005
|
-
|
|
43006
|
-
|
|
43007
|
-
|
|
43008
|
-
|
|
43009
|
-
|
|
43010
|
-
|
|
43011
|
-
|
|
43012
|
-
|
|
43013
|
-
|
|
43014
|
-
|
|
42923
|
+
spread as q,
|
|
42924
|
+
mergeProps as r,
|
|
42925
|
+
splitProps as s,
|
|
42926
|
+
memo as t,
|
|
42927
|
+
useContext as u,
|
|
42928
|
+
insert as v,
|
|
42929
|
+
createComponent as w,
|
|
42930
|
+
createRenderEffect as x,
|
|
42931
|
+
setAttribute as y,
|
|
42932
|
+
className as z
|
|
43015
42933
|
};
|