oasis-editor 0.0.130 → 0.0.131
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-BQvsqccA.js → OasisEditorApp-Dn2I2b-M.js} +1 -1
- package/dist/{index-CX5iCo8O.js → index-BXo_oqOC.js} +194 -93
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/components/Toolbar/primitives/ColorPicker.d.ts +2 -0
- package/dist/ui/components/Toolbar/primitives/GridPicker.d.ts +2 -0
- package/dist/ui/components/Toolbar/primitives/Select.d.ts +2 -0
- package/dist/ui/components/Toolbar/primitives/SplitButton.d.ts +1 -0
- package/dist/ui/components/Toolbar/schema/items.d.ts +9 -0
- package/package.json +1 -1
|
@@ -2586,7 +2586,7 @@ function OasisBrandMark(props) {
|
|
|
2586
2586
|
return _el$;
|
|
2587
2587
|
})();
|
|
2588
2588
|
}
|
|
2589
|
-
var _tmpl$$10 = /* @__PURE__ */ template(`<div class=oasis-editor-import-progress-label>`), _tmpl$2$
|
|
2589
|
+
var _tmpl$$10 = /* @__PURE__ */ template(`<div class=oasis-editor-import-progress-label>`), _tmpl$2$D = /* @__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$r = /* @__PURE__ */ template(`<span class=oasis-editor-import-done-icon>Done`);
|
|
2590
2590
|
function OasisEditorLoading(props) {
|
|
2591
2591
|
const t = useI18n();
|
|
2592
2592
|
const variant = () => props.variant ?? "overlay";
|
|
@@ -2596,7 +2596,7 @@ function OasisEditorLoading(props) {
|
|
|
2596
2596
|
};
|
|
2597
2597
|
const isDone = () => (pct() ?? 0) >= 100;
|
|
2598
2598
|
return (() => {
|
|
2599
|
-
var _el$ = _tmpl$2$
|
|
2599
|
+
var _el$ = _tmpl$2$D(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild;
|
|
2600
2600
|
insert(_el$2, createComponent(OasisBrandMark, {
|
|
2601
2601
|
height: 40,
|
|
2602
2602
|
"class": "oasis-editor-loading-mark"
|
|
@@ -2610,7 +2610,7 @@ function OasisEditorLoading(props) {
|
|
|
2610
2610
|
var _el$6 = _tmpl$$10();
|
|
2611
2611
|
insert(_el$6, (() => {
|
|
2612
2612
|
var _c$ = memo(() => !!isDone());
|
|
2613
|
-
return () => _c$() ? _tmpl$3$
|
|
2613
|
+
return () => _c$() ? _tmpl$3$r() : `${pct()}%`;
|
|
2614
2614
|
})());
|
|
2615
2615
|
return _el$6;
|
|
2616
2616
|
}
|
|
@@ -2661,7 +2661,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2661
2661
|
onCleanup(() => {
|
|
2662
2662
|
cancelled = true;
|
|
2663
2663
|
});
|
|
2664
|
-
import("./OasisEditorApp-
|
|
2664
|
+
import("./OasisEditorApp-Dn2I2b-M.js").then((m) => {
|
|
2665
2665
|
cancelled = true;
|
|
2666
2666
|
setProgress(1);
|
|
2667
2667
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -5248,9 +5248,9 @@ function mount(target, props = {}) {
|
|
|
5248
5248
|
unmount: () => client.dispose()
|
|
5249
5249
|
});
|
|
5250
5250
|
}
|
|
5251
|
-
var _tmpl$$$ = /* @__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$
|
|
5251
|
+
var _tmpl$$$ = /* @__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$C = /* @__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$q = /* @__PURE__ */ template(`<i>`);
|
|
5252
5252
|
const FootnoteIcon = () => _tmpl$$$();
|
|
5253
|
-
const SpecialIndentFirstLineIcon = () => _tmpl$2$
|
|
5253
|
+
const SpecialIndentFirstLineIcon = () => _tmpl$2$C();
|
|
5254
5254
|
const CUSTOM_ICONS = {
|
|
5255
5255
|
footnote: FootnoteIcon,
|
|
5256
5256
|
specialIndentFirstLine: SpecialIndentFirstLineIcon
|
|
@@ -5265,7 +5265,7 @@ function ToolIcon(props) {
|
|
|
5265
5265
|
},
|
|
5266
5266
|
get fallback() {
|
|
5267
5267
|
return (() => {
|
|
5268
|
-
var _el$3 = _tmpl$3$
|
|
5268
|
+
var _el$3 = _tmpl$3$q();
|
|
5269
5269
|
createRenderEffect(() => setAttribute(_el$3, "data-lucide", props.name));
|
|
5270
5270
|
return _el$3;
|
|
5271
5271
|
})();
|
|
@@ -5338,7 +5338,7 @@ function Text$1(props) {
|
|
|
5338
5338
|
}
|
|
5339
5339
|
}));
|
|
5340
5340
|
}
|
|
5341
|
-
var _tmpl$$Z = /* @__PURE__ */ template(`<div class=oasis-menubar role=menubar>`), _tmpl$2$
|
|
5341
|
+
var _tmpl$$Z = /* @__PURE__ */ template(`<div class=oasis-menubar role=menubar>`), _tmpl$2$B = /* @__PURE__ */ template(`<div class=oasis-menubar-dropdown role=menu>`), _tmpl$3$p = /* @__PURE__ */ template(`<div class=oasis-menubar-menu>`), _tmpl$4$j = /* @__PURE__ */ template(`<div class=oasis-menubar-separator role=separator>`), _tmpl$5$d = /* @__PURE__ */ template(`<i class=oasis-menubar-submenu-icon data-lucide=chevron-right>`), _tmpl$6$9 = /* @__PURE__ */ template(`<div class=oasis-menubar-submenu role=menu>`);
|
|
5342
5342
|
function Menubar(props) {
|
|
5343
5343
|
const t = useI18n();
|
|
5344
5344
|
const [activeMenu, setActiveMenu] = createSignal(null);
|
|
@@ -5412,7 +5412,7 @@ function Menubar(props) {
|
|
|
5412
5412
|
return topLevelItems();
|
|
5413
5413
|
},
|
|
5414
5414
|
children: (topLevel) => (() => {
|
|
5415
|
-
var _el$2 = _tmpl$3$
|
|
5415
|
+
var _el$2 = _tmpl$3$p();
|
|
5416
5416
|
_el$2.addEventListener("mouseenter", () => {
|
|
5417
5417
|
if (activeMenu() && activeMenu() !== topLevel.id) {
|
|
5418
5418
|
setActiveMenu(topLevel.id);
|
|
@@ -5447,7 +5447,7 @@ function Menubar(props) {
|
|
|
5447
5447
|
return activeMenu() === topLevel.id;
|
|
5448
5448
|
},
|
|
5449
5449
|
get children() {
|
|
5450
|
-
var _el$3 = _tmpl$2$
|
|
5450
|
+
var _el$3 = _tmpl$2$B();
|
|
5451
5451
|
insert(_el$3, createComponent(For, {
|
|
5452
5452
|
get each() {
|
|
5453
5453
|
return topLevel.children;
|
|
@@ -5561,7 +5561,7 @@ function MenuNode(props) {
|
|
|
5561
5561
|
return showSub() && hasChildren;
|
|
5562
5562
|
},
|
|
5563
5563
|
get children() {
|
|
5564
|
-
var _el$6 = _tmpl$6$
|
|
5564
|
+
var _el$6 = _tmpl$6$9();
|
|
5565
5565
|
insert(_el$6, createComponent(For, {
|
|
5566
5566
|
get each() {
|
|
5567
5567
|
return node.children;
|
|
@@ -5678,7 +5678,7 @@ function getCaretRectFromSnapshot(snapshot, position2, paragraphOffset) {
|
|
|
5678
5678
|
);
|
|
5679
5679
|
return rectFromBox(slot.left, slot.top, 1, slot.height || line.height);
|
|
5680
5680
|
}
|
|
5681
|
-
var _tmpl$$X = /* @__PURE__ */ template(`<span class=oasis-outline-title>`), _tmpl$2$
|
|
5681
|
+
var _tmpl$$X = /* @__PURE__ */ template(`<span class=oasis-outline-title>`), _tmpl$2$A = /* @__PURE__ */ template(`<div class=oasis-outline-list>`), _tmpl$3$o = /* @__PURE__ */ template(`<div class=oasis-outline-panel><div class=oasis-outline-header><button class=oasis-outline-toggle><i>`), _tmpl$4$i = /* @__PURE__ */ template(`<div class=oasis-outline-empty>`), _tmpl$5$c = /* @__PURE__ */ template(`<div class=oasis-outline-item>`);
|
|
5682
5682
|
function OutlinePanel(props) {
|
|
5683
5683
|
const t = useI18n();
|
|
5684
5684
|
const [collapsed, setCollapsed] = createSignal(props.defaultCollapsed ?? false);
|
|
@@ -5749,7 +5749,7 @@ function OutlinePanel(props) {
|
|
|
5749
5749
|
}
|
|
5750
5750
|
});
|
|
5751
5751
|
return (() => {
|
|
5752
|
-
var _el$ = _tmpl$3$
|
|
5752
|
+
var _el$ = _tmpl$3$o(), _el$2 = _el$.firstChild, _el$4 = _el$2.firstChild, _el$5 = _el$4.firstChild;
|
|
5753
5753
|
insert(_el$2, createComponent(Show, {
|
|
5754
5754
|
get when() {
|
|
5755
5755
|
return !collapsed();
|
|
@@ -5766,7 +5766,7 @@ function OutlinePanel(props) {
|
|
|
5766
5766
|
return !collapsed();
|
|
5767
5767
|
},
|
|
5768
5768
|
get children() {
|
|
5769
|
-
var _el$6 = _tmpl$2$
|
|
5769
|
+
var _el$6 = _tmpl$2$A();
|
|
5770
5770
|
insert(_el$6, createComponent(Show, {
|
|
5771
5771
|
get when() {
|
|
5772
5772
|
return items().length > 0;
|
|
@@ -5823,7 +5823,7 @@ function OutlinePanel(props) {
|
|
|
5823
5823
|
})();
|
|
5824
5824
|
}
|
|
5825
5825
|
delegateEvents(["click"]);
|
|
5826
|
-
var _tmpl$$W = /* @__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$
|
|
5826
|
+
var _tmpl$$W = /* @__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$z = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-item-wrapper style=display:flex;align-items:center;flex-shrink:0>`);
|
|
5827
5827
|
function ToolbarOverflowManager(props) {
|
|
5828
5828
|
const t = useI18n();
|
|
5829
5829
|
const [overflowCount, setOverflowCount] = createSignal(0);
|
|
@@ -5979,7 +5979,7 @@ function ToolbarOverflowManager(props) {
|
|
|
5979
5979
|
return items();
|
|
5980
5980
|
},
|
|
5981
5981
|
children: (item) => (() => {
|
|
5982
|
-
var _el$7 = _tmpl$2$
|
|
5982
|
+
var _el$7 = _tmpl$2$z();
|
|
5983
5983
|
insert(_el$7, item);
|
|
5984
5984
|
return _el$7;
|
|
5985
5985
|
})()
|
|
@@ -6055,12 +6055,12 @@ function resolveLabel(item, api) {
|
|
|
6055
6055
|
if (item.labelKey) return api.t(item.labelKey);
|
|
6056
6056
|
return void 0;
|
|
6057
6057
|
}
|
|
6058
|
-
var _tmpl$$V = /* @__PURE__ */ template(`<span>`), _tmpl$2$
|
|
6058
|
+
var _tmpl$$V = /* @__PURE__ */ template(`<span>`), _tmpl$2$y = /* @__PURE__ */ template(`<button type=button>`);
|
|
6059
6059
|
function Button$1(props) {
|
|
6060
6060
|
const [local, others] = splitProps(props, ["icon", "label", "active", "tooltip", "wide", "ribbonSize", "aria-label", "class", "classList"]);
|
|
6061
6061
|
const ariaLabel = () => local["aria-label"] || local.tooltip || local.label || "";
|
|
6062
6062
|
return (() => {
|
|
6063
|
-
var _el$ = _tmpl$2$
|
|
6063
|
+
var _el$ = _tmpl$2$y();
|
|
6064
6064
|
spread(_el$, mergeProps({
|
|
6065
6065
|
get ["class"]() {
|
|
6066
6066
|
return `oasis-editor-tool-button ${local.class || ""}`;
|
|
@@ -6248,12 +6248,12 @@ function Popover(props) {
|
|
|
6248
6248
|
}
|
|
6249
6249
|
})];
|
|
6250
6250
|
}
|
|
6251
|
-
var _tmpl$$T = /* @__PURE__ */ template(`<div>`), _tmpl$2$
|
|
6251
|
+
var _tmpl$$T = /* @__PURE__ */ template(`<div>`), _tmpl$2$x = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$3$n = /* @__PURE__ */ template(`<i>`), _tmpl$4$h = /* @__PURE__ */ template(`<span class=oasis-editor-tool-button-label>`), _tmpl$5$b = /* @__PURE__ */ template(`<i data-lucide=chevron-down class=oasis-editor-dropdown-chevron>`), _tmpl$6$8 = /* @__PURE__ */ template(`<button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown"aria-haspopup=menu>`);
|
|
6252
6252
|
function Menu(props) {
|
|
6253
6253
|
const [open, setOpen] = createSignal(false);
|
|
6254
6254
|
const ariaLabel = () => props.tooltip || props.label || "";
|
|
6255
6255
|
return (() => {
|
|
6256
|
-
var _el$ = _tmpl$2$
|
|
6256
|
+
var _el$ = _tmpl$2$x();
|
|
6257
6257
|
insert(_el$, createComponent(Popover, {
|
|
6258
6258
|
get open() {
|
|
6259
6259
|
return open();
|
|
@@ -6268,7 +6268,7 @@ function Menu(props) {
|
|
|
6268
6268
|
},
|
|
6269
6269
|
onPanelMouseLeave: void 0,
|
|
6270
6270
|
trigger: (api) => (() => {
|
|
6271
|
-
var _el$3 = _tmpl$6$
|
|
6271
|
+
var _el$3 = _tmpl$6$8();
|
|
6272
6272
|
_el$3.$$click = () => api.toggle();
|
|
6273
6273
|
use((el) => api.ref(el), _el$3);
|
|
6274
6274
|
insert(_el$3, createComponent(Show, {
|
|
@@ -6276,7 +6276,7 @@ function Menu(props) {
|
|
|
6276
6276
|
return props.icon;
|
|
6277
6277
|
},
|
|
6278
6278
|
get children() {
|
|
6279
|
-
var _el$4 = _tmpl$3$
|
|
6279
|
+
var _el$4 = _tmpl$3$n();
|
|
6280
6280
|
createRenderEffect(() => setAttribute(_el$4, "data-lucide", props.icon));
|
|
6281
6281
|
return _el$4;
|
|
6282
6282
|
}
|
|
@@ -6336,10 +6336,10 @@ function Menu(props) {
|
|
|
6336
6336
|
})();
|
|
6337
6337
|
}
|
|
6338
6338
|
delegateEvents(["click"]);
|
|
6339
|
-
var _tmpl$$S = /* @__PURE__ */ template(`<select>`);
|
|
6339
|
+
var _tmpl$$S = /* @__PURE__ */ template(`<select>`), _tmpl$2$w = /* @__PURE__ */ template(`<span class=oasis-editor-tool-select-ribbon-large-label>`), _tmpl$3$m = /* @__PURE__ */ template(`<div class=oasis-editor-tool-select-ribbon-large-wrap>`);
|
|
6340
6340
|
function Select(props) {
|
|
6341
6341
|
let selectRef;
|
|
6342
|
-
const [local, others] = splitProps(props, ["wide", "small", "class", "tooltip", "aria-label", "value"]);
|
|
6342
|
+
const [local, others] = splitProps(props, ["wide", "small", "class", "tooltip", "aria-label", "value", "label", "ribbonSize"]);
|
|
6343
6343
|
const ariaLabel = () => local["aria-label"] || local.tooltip || "";
|
|
6344
6344
|
createEffect(() => {
|
|
6345
6345
|
const nextValue = local.value;
|
|
@@ -6351,7 +6351,7 @@ function Select(props) {
|
|
|
6351
6351
|
selectRef.value = serialized;
|
|
6352
6352
|
}
|
|
6353
6353
|
});
|
|
6354
|
-
|
|
6354
|
+
const select = () => (() => {
|
|
6355
6355
|
var _el$ = _tmpl$$S();
|
|
6356
6356
|
var _ref$ = selectRef;
|
|
6357
6357
|
typeof _ref$ === "function" ? use(_ref$, _el$) : selectRef = _el$;
|
|
@@ -6362,7 +6362,8 @@ function Select(props) {
|
|
|
6362
6362
|
get classList() {
|
|
6363
6363
|
return {
|
|
6364
6364
|
"oasis-editor-tool-select-wide": local.wide,
|
|
6365
|
-
"oasis-editor-tool-select-small": local.small
|
|
6365
|
+
"oasis-editor-tool-select-small": local.small,
|
|
6366
|
+
"oasis-editor-tool-select-ribbon-large": local.ribbonSize === "large"
|
|
6366
6367
|
};
|
|
6367
6368
|
},
|
|
6368
6369
|
get title() {
|
|
@@ -6378,6 +6379,29 @@ function Select(props) {
|
|
|
6378
6379
|
insert(_el$, () => others.children);
|
|
6379
6380
|
return _el$;
|
|
6380
6381
|
})();
|
|
6382
|
+
return createComponent(Show, {
|
|
6383
|
+
get when() {
|
|
6384
|
+
return local.ribbonSize === "large";
|
|
6385
|
+
},
|
|
6386
|
+
get fallback() {
|
|
6387
|
+
return select();
|
|
6388
|
+
},
|
|
6389
|
+
get children() {
|
|
6390
|
+
var _el$2 = _tmpl$3$m();
|
|
6391
|
+
insert(_el$2, createComponent(Show, {
|
|
6392
|
+
get when() {
|
|
6393
|
+
return local.label;
|
|
6394
|
+
},
|
|
6395
|
+
get children() {
|
|
6396
|
+
var _el$3 = _tmpl$2$w();
|
|
6397
|
+
insert(_el$3, () => local.label);
|
|
6398
|
+
return _el$3;
|
|
6399
|
+
}
|
|
6400
|
+
}), null);
|
|
6401
|
+
insert(_el$2, select, null);
|
|
6402
|
+
return _el$2;
|
|
6403
|
+
}
|
|
6404
|
+
});
|
|
6381
6405
|
}
|
|
6382
6406
|
var _tmpl$$R = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-separator>`);
|
|
6383
6407
|
function Separator(props) {
|
|
@@ -6412,17 +6436,18 @@ function SplitButton(props) {
|
|
|
6412
6436
|
insert(_el$2, () => props.mainContent);
|
|
6413
6437
|
_el$3.$$click = () => api.toggle();
|
|
6414
6438
|
createRenderEffect((_p$) => {
|
|
6415
|
-
var _v$ = props.rootClass ?? "oasis-editor-color-split", _v$2 = !!(props.rootActive ?? api.open), _v$3 = props.
|
|
6439
|
+
var _v$ = props.rootClass ?? "oasis-editor-color-split", _v$2 = !!(props.rootActive ?? api.open), _v$3 = !!(props.ribbonSize === "large"), _v$4 = props.tooltip, _v$5 = props.mainTestId, _v$6 = props.mainAriaLabel ?? props.tooltip, _v$7 = props.mainPressed, _v$8 = !!api.open, _v$9 = props.menuTestId, _v$0 = props.menuAriaLabel ?? `${props.tooltip ?? ""} menu`, _v$1 = api.open;
|
|
6416
6440
|
_v$ !== _p$.e && className(_el$, _p$.e = _v$);
|
|
6417
6441
|
_v$2 !== _p$.t && _el$.classList.toggle("oasis-editor-color-split-active", _p$.t = _v$2);
|
|
6418
|
-
_v$3 !== _p$.a &&
|
|
6419
|
-
_v$4 !== _p$.o && setAttribute(_el
|
|
6420
|
-
_v$5 !== _p$.i && setAttribute(_el$2, "
|
|
6421
|
-
_v$6 !== _p$.n && setAttribute(_el$2, "aria-
|
|
6422
|
-
_v$7 !== _p$.s && _el$
|
|
6423
|
-
_v$8 !== _p$.h &&
|
|
6424
|
-
_v$9 !== _p$.r && setAttribute(_el$3, "
|
|
6425
|
-
_v$0 !== _p$.d && setAttribute(_el$3, "aria-
|
|
6442
|
+
_v$3 !== _p$.a && _el$.classList.toggle("oasis-editor-color-split-ribbon-large", _p$.a = _v$3);
|
|
6443
|
+
_v$4 !== _p$.o && setAttribute(_el$, "title", _p$.o = _v$4);
|
|
6444
|
+
_v$5 !== _p$.i && setAttribute(_el$2, "data-testid", _p$.i = _v$5);
|
|
6445
|
+
_v$6 !== _p$.n && setAttribute(_el$2, "aria-label", _p$.n = _v$6);
|
|
6446
|
+
_v$7 !== _p$.s && setAttribute(_el$2, "aria-pressed", _p$.s = _v$7);
|
|
6447
|
+
_v$8 !== _p$.h && _el$3.classList.toggle("oasis-editor-color-split-open", _p$.h = _v$8);
|
|
6448
|
+
_v$9 !== _p$.r && setAttribute(_el$3, "data-testid", _p$.r = _v$9);
|
|
6449
|
+
_v$0 !== _p$.d && setAttribute(_el$3, "aria-label", _p$.d = _v$0);
|
|
6450
|
+
_v$1 !== _p$.l && setAttribute(_el$3, "aria-expanded", _p$.l = _v$1);
|
|
6426
6451
|
return _p$;
|
|
6427
6452
|
}, {
|
|
6428
6453
|
e: void 0,
|
|
@@ -6434,7 +6459,8 @@ function SplitButton(props) {
|
|
|
6434
6459
|
s: void 0,
|
|
6435
6460
|
h: void 0,
|
|
6436
6461
|
r: void 0,
|
|
6437
|
-
d: void 0
|
|
6462
|
+
d: void 0,
|
|
6463
|
+
l: void 0
|
|
6438
6464
|
});
|
|
6439
6465
|
return _el$;
|
|
6440
6466
|
})(),
|
|
@@ -6444,7 +6470,7 @@ function SplitButton(props) {
|
|
|
6444
6470
|
});
|
|
6445
6471
|
}
|
|
6446
6472
|
delegateEvents(["click"]);
|
|
6447
|
-
var _tmpl$$P = /* @__PURE__ */ template(`<i data-lucide=type>`), _tmpl$2$v = /* @__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$l = /* @__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$g = /* @__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$a = /* @__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$
|
|
6473
|
+
var _tmpl$$P = /* @__PURE__ */ template(`<i data-lucide=type>`), _tmpl$2$v = /* @__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$l = /* @__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$g = /* @__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$a = /* @__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$7 = /* @__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(`<span>`), _tmpl$9 = /* @__PURE__ */ template(`<i data-lucide=slash>`), _tmpl$0 = /* @__PURE__ */ template(`<div class=oasis-editor-color-theme-column>`), _tmpl$1 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-swatch>`);
|
|
6448
6474
|
const normalizeColor = (value) => (value == null ? void 0 : value.trim().toLowerCase()) ?? "";
|
|
6449
6475
|
function ColorPicker(props) {
|
|
6450
6476
|
const [isOpen, setIsOpen] = createSignal(false);
|
|
@@ -6470,6 +6496,9 @@ function ColorPicker(props) {
|
|
|
6470
6496
|
get tooltip() {
|
|
6471
6497
|
return props.tooltip;
|
|
6472
6498
|
},
|
|
6499
|
+
get ribbonSize() {
|
|
6500
|
+
return props.ribbonSize;
|
|
6501
|
+
},
|
|
6473
6502
|
panelClass: "oasis-editor-color-menu",
|
|
6474
6503
|
panelRole: "menu",
|
|
6475
6504
|
onPanelMouseLeave: () => setPreviewColor(null),
|
|
@@ -6487,7 +6516,7 @@ function ColorPicker(props) {
|
|
|
6487
6516
|
return `${props.tooltip} menu`;
|
|
6488
6517
|
},
|
|
6489
6518
|
get mainContent() {
|
|
6490
|
-
return (() => {
|
|
6519
|
+
return [(() => {
|
|
6491
6520
|
var _el$13 = _tmpl$7$2(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling;
|
|
6492
6521
|
createRenderEffect((_p$) => {
|
|
6493
6522
|
var _v$3 = props.icon, _v$4 = !displayColor(), _v$5 = displayColor() ?? void 0;
|
|
@@ -6501,7 +6530,16 @@ function ColorPicker(props) {
|
|
|
6501
6530
|
a: void 0
|
|
6502
6531
|
});
|
|
6503
6532
|
return _el$13;
|
|
6504
|
-
})()
|
|
6533
|
+
})(), createComponent(Show, {
|
|
6534
|
+
get when() {
|
|
6535
|
+
return props.label;
|
|
6536
|
+
},
|
|
6537
|
+
get children() {
|
|
6538
|
+
var _el$16 = _tmpl$8$1();
|
|
6539
|
+
insert(_el$16, () => props.label);
|
|
6540
|
+
return _el$16;
|
|
6541
|
+
}
|
|
6542
|
+
})];
|
|
6505
6543
|
},
|
|
6506
6544
|
get children() {
|
|
6507
6545
|
return [createComponent(Show, {
|
|
@@ -6516,7 +6554,7 @@ function ColorPicker(props) {
|
|
|
6516
6554
|
return props.kind === "color";
|
|
6517
6555
|
},
|
|
6518
6556
|
get fallback() {
|
|
6519
|
-
return _tmpl$
|
|
6557
|
+
return _tmpl$9();
|
|
6520
6558
|
},
|
|
6521
6559
|
get children() {
|
|
6522
6560
|
return _tmpl$$P();
|
|
@@ -6534,24 +6572,24 @@ function ColorPicker(props) {
|
|
|
6534
6572
|
return props.palette.themeColors;
|
|
6535
6573
|
},
|
|
6536
6574
|
children: (theme) => (() => {
|
|
6537
|
-
var _el$
|
|
6538
|
-
insert(_el$
|
|
6575
|
+
var _el$18 = _tmpl$0();
|
|
6576
|
+
insert(_el$18, createComponent(For, {
|
|
6539
6577
|
get each() {
|
|
6540
6578
|
return theme.values;
|
|
6541
6579
|
},
|
|
6542
6580
|
children: (color) => (() => {
|
|
6543
|
-
var _el$
|
|
6544
|
-
_el$
|
|
6545
|
-
_el$
|
|
6546
|
-
_el$
|
|
6547
|
-
_el$
|
|
6548
|
-
setStyleProperty(_el$
|
|
6581
|
+
var _el$19 = _tmpl$1();
|
|
6582
|
+
_el$19.$$click = () => applyColor(color);
|
|
6583
|
+
_el$19.addEventListener("blur", () => setPreviewColor(null));
|
|
6584
|
+
_el$19.addEventListener("focus", () => setPreviewColor(color));
|
|
6585
|
+
_el$19.addEventListener("mouseenter", () => setPreviewColor(color));
|
|
6586
|
+
setStyleProperty(_el$19, "background-color", color);
|
|
6549
6587
|
createRenderEffect((_p$) => {
|
|
6550
6588
|
var _v$6 = !!(activeColor() === normalizeColor(color)), _v$7 = `${theme.name} ${color}`, _v$8 = `${theme.name} ${color}`, _v$9 = `${props.testId}-theme-swatch-${color.replace("#", "")}`;
|
|
6551
|
-
_v$6 !== _p$.e && _el$
|
|
6552
|
-
_v$7 !== _p$.t && setAttribute(_el$
|
|
6553
|
-
_v$8 !== _p$.a && setAttribute(_el$
|
|
6554
|
-
_v$9 !== _p$.o && setAttribute(_el$
|
|
6589
|
+
_v$6 !== _p$.e && _el$19.classList.toggle("oasis-editor-color-swatch-active", _p$.e = _v$6);
|
|
6590
|
+
_v$7 !== _p$.t && setAttribute(_el$19, "title", _p$.t = _v$7);
|
|
6591
|
+
_v$8 !== _p$.a && setAttribute(_el$19, "aria-label", _p$.a = _v$8);
|
|
6592
|
+
_v$9 !== _p$.o && setAttribute(_el$19, "data-testid", _p$.o = _v$9);
|
|
6555
6593
|
return _p$;
|
|
6556
6594
|
}, {
|
|
6557
6595
|
e: void 0,
|
|
@@ -6559,10 +6597,10 @@ function ColorPicker(props) {
|
|
|
6559
6597
|
a: void 0,
|
|
6560
6598
|
o: void 0
|
|
6561
6599
|
});
|
|
6562
|
-
return _el$
|
|
6600
|
+
return _el$19;
|
|
6563
6601
|
})()
|
|
6564
6602
|
}));
|
|
6565
|
-
return _el$
|
|
6603
|
+
return _el$18;
|
|
6566
6604
|
})()
|
|
6567
6605
|
}));
|
|
6568
6606
|
return _el$5;
|
|
@@ -6574,18 +6612,18 @@ function ColorPicker(props) {
|
|
|
6574
6612
|
return props.palette.standardColors;
|
|
6575
6613
|
},
|
|
6576
6614
|
children: (swatch) => (() => {
|
|
6577
|
-
var _el$
|
|
6578
|
-
_el$
|
|
6579
|
-
_el$
|
|
6580
|
-
_el$
|
|
6581
|
-
_el$
|
|
6615
|
+
var _el$20 = _tmpl$1();
|
|
6616
|
+
_el$20.$$click = () => applyColor(swatch.value);
|
|
6617
|
+
_el$20.addEventListener("blur", () => setPreviewColor(null));
|
|
6618
|
+
_el$20.addEventListener("focus", () => setPreviewColor(swatch.value));
|
|
6619
|
+
_el$20.addEventListener("mouseenter", () => setPreviewColor(swatch.value));
|
|
6582
6620
|
createRenderEffect((_p$) => {
|
|
6583
6621
|
var _v$0 = !!(activeColor() === normalizeColor(swatch.value)), _v$1 = swatch.value, _v$10 = swatch.name, _v$11 = swatch.name, _v$12 = `${props.testId}-standard-swatch-${swatch.value.replace("#", "")}`;
|
|
6584
|
-
_v$0 !== _p$.e && _el$
|
|
6585
|
-
_v$1 !== _p$.t && setStyleProperty(_el$
|
|
6586
|
-
_v$10 !== _p$.a && setAttribute(_el$
|
|
6587
|
-
_v$11 !== _p$.o && setAttribute(_el$
|
|
6588
|
-
_v$12 !== _p$.i && setAttribute(_el$
|
|
6622
|
+
_v$0 !== _p$.e && _el$20.classList.toggle("oasis-editor-color-swatch-active", _p$.e = _v$0);
|
|
6623
|
+
_v$1 !== _p$.t && setStyleProperty(_el$20, "background-color", _p$.t = _v$1);
|
|
6624
|
+
_v$10 !== _p$.a && setAttribute(_el$20, "title", _p$.a = _v$10);
|
|
6625
|
+
_v$11 !== _p$.o && setAttribute(_el$20, "aria-label", _p$.o = _v$11);
|
|
6626
|
+
_v$12 !== _p$.i && setAttribute(_el$20, "data-testid", _p$.i = _v$12);
|
|
6589
6627
|
return _p$;
|
|
6590
6628
|
}, {
|
|
6591
6629
|
e: void 0,
|
|
@@ -6594,7 +6632,7 @@ function ColorPicker(props) {
|
|
|
6594
6632
|
o: void 0,
|
|
6595
6633
|
i: void 0
|
|
6596
6634
|
});
|
|
6597
|
-
return _el$
|
|
6635
|
+
return _el$20;
|
|
6598
6636
|
})()
|
|
6599
6637
|
}));
|
|
6600
6638
|
return _el$8;
|
|
@@ -6610,7 +6648,7 @@ function ColorPicker(props) {
|
|
|
6610
6648
|
createRenderEffect(() => setAttribute(_el$1, "data-testid", `${props.testId}-more-colors`));
|
|
6611
6649
|
return _el$1;
|
|
6612
6650
|
})(), (() => {
|
|
6613
|
-
var _el$12 = _tmpl$6$
|
|
6651
|
+
var _el$12 = _tmpl$6$7();
|
|
6614
6652
|
_el$12.$$input = (event) => applyColor(event.currentTarget.value);
|
|
6615
6653
|
var _ref$ = customColorInputRef;
|
|
6616
6654
|
typeof _ref$ === "function" ? use(_ref$, _el$12) : customColorInputRef = _el$12;
|
|
@@ -6632,7 +6670,7 @@ function ColorPicker(props) {
|
|
|
6632
6670
|
});
|
|
6633
6671
|
}
|
|
6634
6672
|
delegateEvents(["click", "input"]);
|
|
6635
|
-
var _tmpl$$O = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-status>`), _tmpl$2$u = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-grid>`), _tmpl$3$k = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$4$f = /* @__PURE__ */ template(`<button type=button class=oasis-editor-tool-button><i>`), _tmpl$
|
|
6673
|
+
var _tmpl$$O = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-status>`), _tmpl$2$u = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-grid>`), _tmpl$3$k = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$4$f = /* @__PURE__ */ template(`<span>`), _tmpl$5$9 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-tool-button><i>`), _tmpl$6$6 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-table-grid-picker-cell>`);
|
|
6636
6674
|
function GridPicker(props) {
|
|
6637
6675
|
const t = useI18n();
|
|
6638
6676
|
const [isOpen, setIsOpen] = createSignal(false);
|
|
@@ -6719,23 +6757,35 @@ function GridPicker(props) {
|
|
|
6719
6757
|
col: 0
|
|
6720
6758
|
}),
|
|
6721
6759
|
trigger: (api) => (() => {
|
|
6722
|
-
var _el$4 = _tmpl$
|
|
6760
|
+
var _el$4 = _tmpl$5$9(), _el$5 = _el$4.firstChild;
|
|
6723
6761
|
_el$4.$$click = () => api.toggle();
|
|
6724
6762
|
use((el) => api.ref(el), _el$4);
|
|
6763
|
+
insert(_el$4, createComponent(Show, {
|
|
6764
|
+
get when() {
|
|
6765
|
+
return props.label;
|
|
6766
|
+
},
|
|
6767
|
+
get children() {
|
|
6768
|
+
var _el$6 = _tmpl$4$f();
|
|
6769
|
+
insert(_el$6, () => props.label);
|
|
6770
|
+
return _el$6;
|
|
6771
|
+
}
|
|
6772
|
+
}), null);
|
|
6725
6773
|
createRenderEffect((_p$) => {
|
|
6726
|
-
var _v$3 = !!api.open, _v$4 =
|
|
6774
|
+
var _v$3 = !!api.open, _v$4 = !!(props.ribbonSize === "large"), _v$5 = tooltip(), _v$6 = tooltip(), _v$7 = props.testId, _v$8 = icon();
|
|
6727
6775
|
_v$3 !== _p$.e && _el$4.classList.toggle("oasis-editor-tool-button-active", _p$.e = _v$3);
|
|
6728
|
-
_v$4 !== _p$.t &&
|
|
6729
|
-
_v$5 !== _p$.a && setAttribute(_el$4, "
|
|
6730
|
-
_v$6 !== _p$.o && setAttribute(_el$4, "
|
|
6731
|
-
_v$7 !== _p$.i && setAttribute(_el$
|
|
6776
|
+
_v$4 !== _p$.t && _el$4.classList.toggle("oasis-editor-tool-button-ribbon-large", _p$.t = _v$4);
|
|
6777
|
+
_v$5 !== _p$.a && setAttribute(_el$4, "title", _p$.a = _v$5);
|
|
6778
|
+
_v$6 !== _p$.o && setAttribute(_el$4, "aria-label", _p$.o = _v$6);
|
|
6779
|
+
_v$7 !== _p$.i && setAttribute(_el$4, "data-testid", _p$.i = _v$7);
|
|
6780
|
+
_v$8 !== _p$.n && setAttribute(_el$5, "data-lucide", _p$.n = _v$8);
|
|
6732
6781
|
return _p$;
|
|
6733
6782
|
}, {
|
|
6734
6783
|
e: void 0,
|
|
6735
6784
|
t: void 0,
|
|
6736
6785
|
a: void 0,
|
|
6737
6786
|
o: void 0,
|
|
6738
|
-
i: void 0
|
|
6787
|
+
i: void 0,
|
|
6788
|
+
n: void 0
|
|
6739
6789
|
});
|
|
6740
6790
|
return _el$4;
|
|
6741
6791
|
})(),
|
|
@@ -6755,17 +6805,17 @@ function GridPicker(props) {
|
|
|
6755
6805
|
return cols();
|
|
6756
6806
|
},
|
|
6757
6807
|
children: (c) => (() => {
|
|
6758
|
-
var _el$
|
|
6759
|
-
_el$
|
|
6760
|
-
_el$
|
|
6761
|
-
_el$
|
|
6808
|
+
var _el$7 = _tmpl$6$6();
|
|
6809
|
+
_el$7.$$click = () => selectGridSize(r, c);
|
|
6810
|
+
_el$7.$$mousedown = (event) => event.preventDefault();
|
|
6811
|
+
_el$7.addEventListener("mouseenter", () => setHover({
|
|
6762
6812
|
row: r,
|
|
6763
6813
|
col: c
|
|
6764
6814
|
}));
|
|
6765
|
-
setAttribute(_el$
|
|
6766
|
-
setAttribute(_el$
|
|
6767
|
-
createRenderEffect(() => _el$
|
|
6768
|
-
return _el$
|
|
6815
|
+
setAttribute(_el$7, "data-testid", `editor-toolbar-table-grid-${r}x${c}`);
|
|
6816
|
+
setAttribute(_el$7, "aria-label", `${r} × ${c}`);
|
|
6817
|
+
createRenderEffect(() => _el$7.classList.toggle("oasis-editor-table-grid-picker-cell-active", !!(r <= hover().row && c <= hover().col)));
|
|
6818
|
+
return _el$7;
|
|
6769
6819
|
})()
|
|
6770
6820
|
})
|
|
6771
6821
|
}));
|
|
@@ -7188,6 +7238,12 @@ function RenderSelect(props) {
|
|
|
7188
7238
|
get tooltip() {
|
|
7189
7239
|
return resolveTooltip(props.item, props.api);
|
|
7190
7240
|
},
|
|
7241
|
+
get label() {
|
|
7242
|
+
return resolveLabel(props.item, props.api);
|
|
7243
|
+
},
|
|
7244
|
+
get ribbonSize() {
|
|
7245
|
+
return props.item.ribbonSize;
|
|
7246
|
+
},
|
|
7191
7247
|
onChange,
|
|
7192
7248
|
get children() {
|
|
7193
7249
|
return [createComponent(Show, {
|
|
@@ -7249,6 +7305,12 @@ function RenderColorPicker(props) {
|
|
|
7249
7305
|
get tooltip() {
|
|
7250
7306
|
return resolveTooltip(props.item, props.api) ?? "";
|
|
7251
7307
|
},
|
|
7308
|
+
get label() {
|
|
7309
|
+
return resolveLabel(props.item, props.api);
|
|
7310
|
+
},
|
|
7311
|
+
get ribbonSize() {
|
|
7312
|
+
return props.item.ribbonSize;
|
|
7313
|
+
},
|
|
7252
7314
|
get testId() {
|
|
7253
7315
|
return props.item.testId ?? props.item.id;
|
|
7254
7316
|
},
|
|
@@ -7290,6 +7352,12 @@ function RenderGridPicker(props) {
|
|
|
7290
7352
|
get icon() {
|
|
7291
7353
|
return props.item.iconName;
|
|
7292
7354
|
},
|
|
7355
|
+
get label() {
|
|
7356
|
+
return resolveLabel(props.item, props.api);
|
|
7357
|
+
},
|
|
7358
|
+
get ribbonSize() {
|
|
7359
|
+
return props.item.ribbonSize;
|
|
7360
|
+
},
|
|
7293
7361
|
get maxRows() {
|
|
7294
7362
|
return props.item.maxRows;
|
|
7295
7363
|
},
|
|
@@ -43839,6 +43907,8 @@ function createDefaultToolbarPreset(t) {
|
|
|
43839
43907
|
testId: "editor-toolbar-insert-image",
|
|
43840
43908
|
iconName: "image",
|
|
43841
43909
|
tooltipKey: "toolbar.image",
|
|
43910
|
+
labelKey: "toolbar.image",
|
|
43911
|
+
ribbonSize: "large",
|
|
43842
43912
|
command: "insertImage"
|
|
43843
43913
|
});
|
|
43844
43914
|
items.push({
|
|
@@ -43847,6 +43917,8 @@ function createDefaultToolbarPreset(t) {
|
|
|
43847
43917
|
testId: "editor-toolbar-insert-shape",
|
|
43848
43918
|
iconName: "shapes",
|
|
43849
43919
|
tooltipKey: "toolbar.shapes",
|
|
43920
|
+
labelKey: "toolbar.shapes",
|
|
43921
|
+
ribbonSize: "large",
|
|
43850
43922
|
panelClass: "oasis-editor-shape-gallery-panel",
|
|
43851
43923
|
content: {
|
|
43852
43924
|
kind: "custom",
|
|
@@ -43858,6 +43930,8 @@ function createDefaultToolbarPreset(t) {
|
|
|
43858
43930
|
id: "editor-toolbar-insert-table",
|
|
43859
43931
|
testId: "editor-toolbar-insert-table",
|
|
43860
43932
|
tooltipKey: "toolbar.table",
|
|
43933
|
+
labelKey: "toolbar.table",
|
|
43934
|
+
ribbonSize: "large",
|
|
43861
43935
|
command: "insertTable"
|
|
43862
43936
|
});
|
|
43863
43937
|
items.push({
|
|
@@ -43866,7 +43940,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
43866
43940
|
testId: "editor-toolbar-link",
|
|
43867
43941
|
iconName: "link",
|
|
43868
43942
|
command: "link",
|
|
43869
|
-
tooltip: `${t("toolbar.link")} (${mod}+K)
|
|
43943
|
+
tooltip: `${t("toolbar.link")} (${mod}+K)`,
|
|
43944
|
+
labelKey: "toolbar.link",
|
|
43945
|
+
ribbonSize: "large"
|
|
43870
43946
|
});
|
|
43871
43947
|
items.push({
|
|
43872
43948
|
type: "button",
|
|
@@ -43874,7 +43950,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
43874
43950
|
testId: "editor-toolbar-unlink",
|
|
43875
43951
|
iconName: "unlink",
|
|
43876
43952
|
command: "unlink",
|
|
43877
|
-
tooltipKey: "toolbar.unlink"
|
|
43953
|
+
tooltipKey: "toolbar.unlink",
|
|
43954
|
+
labelKey: "toolbar.unlink",
|
|
43955
|
+
ribbonSize: "large"
|
|
43878
43956
|
});
|
|
43879
43957
|
items.push({
|
|
43880
43958
|
type: "button",
|
|
@@ -43882,7 +43960,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
43882
43960
|
testId: "editor-toolbar-footnote",
|
|
43883
43961
|
iconName: "footnote",
|
|
43884
43962
|
command: "insertFootnote",
|
|
43885
|
-
tooltip: `${t("toolbar.footnote")} (${mod}+Alt+F)
|
|
43963
|
+
tooltip: `${t("toolbar.footnote")} (${mod}+Alt+F)`,
|
|
43964
|
+
labelKey: "toolbar.footnote",
|
|
43965
|
+
ribbonSize: "large"
|
|
43886
43966
|
});
|
|
43887
43967
|
items.push({
|
|
43888
43968
|
type: "button",
|
|
@@ -43890,6 +43970,8 @@ function createDefaultToolbarPreset(t) {
|
|
|
43890
43970
|
testId: "editor-toolbar-image-alt",
|
|
43891
43971
|
iconName: "file-text",
|
|
43892
43972
|
tooltipKey: "toolbar.alt",
|
|
43973
|
+
labelKey: "toolbar.alt",
|
|
43974
|
+
ribbonSize: "large",
|
|
43893
43975
|
command: "editImageAlt",
|
|
43894
43976
|
isVisible: (api) => api.commands.state("editImageAlt").isEnabled
|
|
43895
43977
|
});
|
|
@@ -43899,6 +43981,8 @@ function createDefaultToolbarPreset(t) {
|
|
|
43899
43981
|
testId: "editor-toolbar-image-caption",
|
|
43900
43982
|
iconName: "subtitles",
|
|
43901
43983
|
tooltipKey: "toolbar.imageCaption",
|
|
43984
|
+
labelKey: "toolbar.imageCaption",
|
|
43985
|
+
ribbonSize: "large",
|
|
43902
43986
|
command: "insertImageCaption",
|
|
43903
43987
|
isVisible: (api) => api.commands.state("insertImageCaption").isEnabled
|
|
43904
43988
|
});
|
|
@@ -44001,6 +44085,7 @@ function createDefaultToolbarPreset(t) {
|
|
|
44001
44085
|
items.push({
|
|
44002
44086
|
type: "custom",
|
|
44003
44087
|
id: "editor-toolbar-metrics",
|
|
44088
|
+
ribbonSize: "large",
|
|
44004
44089
|
render: (api) => MetricGroup({ api })
|
|
44005
44090
|
});
|
|
44006
44091
|
items.push({ type: "separator", id: "sep-metrics" });
|
|
@@ -44011,7 +44096,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
44011
44096
|
testId: spec.id,
|
|
44012
44097
|
iconName: spec.icon,
|
|
44013
44098
|
command: spec.command,
|
|
44014
|
-
tooltipKey: spec.tooltipKey
|
|
44099
|
+
tooltipKey: spec.tooltipKey,
|
|
44100
|
+
labelKey: spec.tooltipKey,
|
|
44101
|
+
ribbonSize: "large"
|
|
44015
44102
|
});
|
|
44016
44103
|
}
|
|
44017
44104
|
for (const spec of TABLE_DESIGN_TOGGLES) {
|
|
@@ -44021,7 +44108,8 @@ function createDefaultToolbarPreset(t) {
|
|
|
44021
44108
|
testId: spec.id,
|
|
44022
44109
|
command: spec.command,
|
|
44023
44110
|
labelKey: spec.labelKey,
|
|
44024
|
-
tooltipKey: spec.labelKey
|
|
44111
|
+
tooltipKey: spec.labelKey,
|
|
44112
|
+
ribbonSize: "large"
|
|
44025
44113
|
});
|
|
44026
44114
|
}
|
|
44027
44115
|
items.push({
|
|
@@ -44031,7 +44119,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
44031
44119
|
kind: "shading",
|
|
44032
44120
|
command: "tableCellShading",
|
|
44033
44121
|
defaultValue: "#f1f5f9",
|
|
44034
|
-
tooltipKey: "table.cellColor"
|
|
44122
|
+
tooltipKey: "table.cellColor",
|
|
44123
|
+
labelKey: "table.cellColor",
|
|
44124
|
+
ribbonSize: "large"
|
|
44035
44125
|
});
|
|
44036
44126
|
items.push({
|
|
44037
44127
|
type: "button",
|
|
@@ -44039,7 +44129,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
44039
44129
|
testId: "editor-toolbar-tbl-borders",
|
|
44040
44130
|
iconName: "frame",
|
|
44041
44131
|
command: "tableCellBorders",
|
|
44042
|
-
tooltipKey: "table.applyBorders"
|
|
44132
|
+
tooltipKey: "table.applyBorders",
|
|
44133
|
+
labelKey: "table.applyBorders",
|
|
44134
|
+
ribbonSize: "large"
|
|
44043
44135
|
});
|
|
44044
44136
|
items.push({
|
|
44045
44137
|
type: "button",
|
|
@@ -44047,13 +44139,17 @@ function createDefaultToolbarPreset(t) {
|
|
|
44047
44139
|
testId: "editor-toolbar-tbl-no-borders",
|
|
44048
44140
|
iconName: "square",
|
|
44049
44141
|
command: "tableCellNoBorders",
|
|
44050
|
-
tooltipKey: "table.removeBorders"
|
|
44142
|
+
tooltipKey: "table.removeBorders",
|
|
44143
|
+
labelKey: "table.removeBorders",
|
|
44144
|
+
ribbonSize: "large"
|
|
44051
44145
|
});
|
|
44052
44146
|
items.push({
|
|
44053
44147
|
type: "select",
|
|
44054
44148
|
id: "editor-toolbar-tbl-style",
|
|
44055
44149
|
testId: "editor-toolbar-tbl-style",
|
|
44056
44150
|
tooltipKey: "table.tableStyle",
|
|
44151
|
+
labelKey: "table.tableStyle",
|
|
44152
|
+
ribbonSize: "large",
|
|
44057
44153
|
placeholder: t("table.tableStyle"),
|
|
44058
44154
|
width: "wide",
|
|
44059
44155
|
command: "setTableStyle",
|
|
@@ -44065,7 +44161,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
44065
44161
|
testId: "editor-toolbar-tbl-distribute-rows",
|
|
44066
44162
|
iconName: "rows",
|
|
44067
44163
|
command: "tableDistributeRows",
|
|
44068
|
-
tooltipKey: "table.distributeRows"
|
|
44164
|
+
tooltipKey: "table.distributeRows",
|
|
44165
|
+
labelKey: "table.distributeRows",
|
|
44166
|
+
ribbonSize: "large"
|
|
44069
44167
|
});
|
|
44070
44168
|
items.push({
|
|
44071
44169
|
type: "button",
|
|
@@ -44073,7 +44171,9 @@ function createDefaultToolbarPreset(t) {
|
|
|
44073
44171
|
testId: "editor-toolbar-tbl-distribute-cols",
|
|
44074
44172
|
iconName: "columns",
|
|
44075
44173
|
command: "tableDistributeColumns",
|
|
44076
|
-
tooltipKey: "table.distributeColumns"
|
|
44174
|
+
tooltipKey: "table.distributeColumns",
|
|
44175
|
+
labelKey: "table.distributeColumns",
|
|
44176
|
+
ribbonSize: "large"
|
|
44077
44177
|
});
|
|
44078
44178
|
items.push({
|
|
44079
44179
|
type: "toggle",
|
|
@@ -44082,7 +44182,8 @@ function createDefaultToolbarPreset(t) {
|
|
|
44082
44182
|
iconName: "move-horizontal",
|
|
44083
44183
|
command: "tableToggleAutoFit",
|
|
44084
44184
|
labelKey: "table.autoFit",
|
|
44085
|
-
tooltipKey: "table.autoFit"
|
|
44185
|
+
tooltipKey: "table.autoFit",
|
|
44186
|
+
ribbonSize: "large"
|
|
44086
44187
|
});
|
|
44087
44188
|
items.push({
|
|
44088
44189
|
type: "custom",
|