@zipify/wysiwyg 4.11.5 → 4.12.0-beta.1

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/wysiwyg.mjs CHANGED
@@ -19333,6 +19333,7 @@ var TextSetting = /* @__PURE__ */ ((TextSetting2) => {
19333
19333
  TextSetting2["FONT_STYLE"] = "font_style";
19334
19334
  TextSetting2["FONT_WEIGHT"] = "font_weight";
19335
19335
  TextSetting2["LINE_HEIGHT"] = "line_height";
19336
+ TextSetting2["LETTER_SPACING"] = "letter_spacing";
19336
19337
  TextSetting2["TEXT_DECORATION"] = "text_decoration";
19337
19338
  TextSetting2["SUPERSCRIPT"] = "superscript";
19338
19339
  TextSetting2["MARGIN"] = "margin";
@@ -19364,6 +19365,7 @@ const TextBlockMarkList = [
19364
19365
  "font_size",
19365
19366
  "font_style",
19366
19367
  "font_weight",
19368
+ "letter_spacing",
19367
19369
  "text_decoration",
19368
19370
  "superscript"
19369
19371
  /* SUPERSCRIPT */
@@ -19390,17 +19392,17 @@ const _export_sfc = (sfc, props) => {
19390
19392
  }
19391
19393
  return target;
19392
19394
  };
19393
- const _sfc_main$L = {
19395
+ const _sfc_main$M = {
19394
19396
  name: "ToolbarGroup"
19395
19397
  };
19396
- const _hoisted_1$p = { class: "zw-toolbar__group" };
19398
+ const _hoisted_1$q = { class: "zw-toolbar__group" };
19397
19399
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
19398
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
19400
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
19399
19401
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
19400
19402
  ]);
19401
19403
  }
19402
- const ToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$4], ["__scopeId", "data-v-8467d9b8"]]);
19403
- const _sfc_main$K = {
19404
+ const ToolbarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$4], ["__scopeId", "data-v-8467d9b8"]]);
19405
+ const _sfc_main$L = {
19404
19406
  name: "ToolbarDivider",
19405
19407
  props: {
19406
19408
  vertical: {
@@ -19427,17 +19429,17 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19427
19429
  class: normalizeClass(["zw-toolbar__divider", $setup.classes])
19428
19430
  }, null, 2);
19429
19431
  }
19430
- const ToolbarDivider = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$3], ["__scopeId", "data-v-1a453fb5"]]);
19431
- const _sfc_main$J = {
19432
+ const ToolbarDivider = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$3], ["__scopeId", "data-v-1a453fb5"]]);
19433
+ const _sfc_main$K = {
19432
19434
  name: "ToolbarRow"
19433
19435
  };
19434
- const _hoisted_1$o = { class: "zw-toolbar__row" };
19436
+ const _hoisted_1$p = { class: "zw-toolbar__row" };
19435
19437
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
19436
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
19438
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
19437
19439
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
19438
19440
  ]);
19439
19441
  }
19440
- const ToolbarRow = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$2], ["__scopeId", "data-v-14a4e361"]]);
19442
+ const ToolbarRow = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$2], ["__scopeId", "data-v-14a4e361"]]);
19441
19443
  const InjectionTokens$1 = Object.freeze({
19442
19444
  FONTS: Symbol("fonts"),
19443
19445
  FONT_SIZES: Symbol("fontSizes"),
@@ -21326,11 +21328,13 @@ function createKeyboardShortcut(command2, ...args) {
21326
21328
  function convertColor(raw) {
21327
21329
  return normalizeColor(raw);
21328
21330
  }
21329
- function convertFontSize(value, wrapperEl) {
21330
- if (!value.includes("em")) return parseInt(value);
21331
+ function convertEmToPx(value, wrapperEl) {
21331
21332
  const containerValue = ContextWindow.getComputedStyle(wrapperEl).fontSize;
21332
21333
  const size = parseFloat(value) * parseFloat(containerValue);
21333
- return Math.round(size);
21334
+ return Math.round(size * 10) / 10;
21335
+ }
21336
+ function convertFontSize(value, wrapperEl) {
21337
+ return String(value).includes("em") ? Math.round(convertEmToPx(value, wrapperEl)) : parseInt(value);
21334
21338
  }
21335
21339
  function getFontSize(sourceEl, wrapperEl) {
21336
21340
  const source = sourceEl.firstElementChild || sourceEl;
@@ -21343,6 +21347,9 @@ function convertLineHeight(value, sourceEl, wrapperEl) {
21343
21347
  const fontSize = convertFontSize(rawFontSize, wrapperEl);
21344
21348
  return fontSize ? (parseInt(value) / fontSize).toFixed(2) : null;
21345
21349
  }
21350
+ function convertLetterSpacing(value, wrapperEl) {
21351
+ return String(value).includes("em") ? convertEmToPx(value, wrapperEl) : parseFloat(value);
21352
+ }
21346
21353
  const MAPPING = {
21347
21354
  start: Alignment.LEFT,
21348
21355
  end: Alignment.RIGHT
@@ -21360,21 +21367,22 @@ const __vite_glob_0_5 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" sty
21360
21367
  const __vite_glob_0_6 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M16.64 19.93h-1.715a.75.75 0 0 1-.475-.145.82.82 0 0 1-.268-.359l-.89-2.433H8.35l-.891 2.433a.78.78 0 0 1-.26.347.73.73 0 0 1-.475.157H5L9.686 8h2.269l4.686 11.93Zm-7.72-4.505h3.803l-1.452-3.968a18.048 18.048 0 0 1-.219-.623c-.08-.24-.158-.5-.235-.78-.077.28-.152.542-.227.784a8.742 8.742 0 0 1-.218.635L8.92 15.425Zm14.968 4.505h-.915a.987.987 0 0 1-.454-.087c-.11-.058-.192-.175-.248-.35l-.181-.603a7.005 7.005 0 0 1-.631.507c-.206.146-.42.269-.64.368a3.26 3.26 0 0 1-.7.222c-.248.05-.523.075-.826.075-.357 0-.687-.049-.99-.145a2.134 2.134 0 0 1-.78-.433 1.967 1.967 0 0 1-.507-.718 2.545 2.545 0 0 1-.181-.998c0-.319.084-.634.251-.945.168-.31.447-.59.838-.841.39-.25.91-.458 1.559-.623.649-.165 1.455-.258 2.417-.28v-.495c0-.567-.12-.986-.359-1.259-.239-.272-.587-.408-1.043-.408-.33 0-.605.039-.825.116a3.17 3.17 0 0 0-.574.26 25.11 25.11 0 0 1-.45.26.912.912 0 0 1-.453.115.59.59 0 0 1-.355-.107.843.843 0 0 1-.239-.264l-.371-.652c.973-.891 2.148-1.337 3.523-1.337.494 0 .936.081 1.324.244.387.162.716.387.985.676.27.289.475.634.615 1.036.14.401.21.841.21 1.32v5.346Zm-3.96-1.271c.21 0 .402-.02.578-.058.176-.038.342-.096.5-.173.156-.077.307-.172.453-.285a4.13 4.13 0 0 0 .441-.4v-1.427c-.594.027-1.09.078-1.489.153a3.967 3.967 0 0 0-.961.284c-.242.116-.414.25-.516.404a.894.894 0 0 0-.152.504c0 .357.106.613.317.767.212.154.489.231.83.231Z" clip-rule="evenodd"/>\n</svg>\n';
21361
21368
  const __vite_glob_0_7 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M22 20.62a2.42 2.42 0 0 1-4.84 0c0-1.25 2.42-4.54 2.42-4.54S22 19.37 22 20.62ZM9.92 15.425l1.452-3.951c.071-.182.145-.394.219-.636.074-.242.149-.503.226-.783a17.223 17.223 0 0 0 .454 1.402l1.452 3.968H9.919Zm5.411 4.199c.226-.795.658-1.684 1.184-2.562L12.955 8h-2.269L6 19.93h1.725a.736.736 0 0 0 .474-.157.792.792 0 0 0 .26-.347l.891-2.434h4.941l.891 2.434c.031.079.097.134.148.198Z" clip-rule="evenodd"/>\n</svg>\n';
21362
21369
  const __vite_glob_0_8 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M18 9V7h-7v2h2.64l-1.22 10H10v2h7v-2h-2.83L15.4 9H18Z"/>\n</svg>\n';
21363
- const __vite_glob_0_9 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m5 10 3-3 3 3H9v8h2l-3 3-3-3h2v-8H5Zm8-3h10v2H13V7Zm10 6H13v2h10v-2Zm0 6H13v2h10v-2Z" clip-rule="evenodd"/>\n</svg>\n';
21364
- const __vite_glob_0_10 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M12 17.5h-2a3.5 3.5 0 1 1 0-7h2V9h-2a5 5 0 0 0 0 10h2v-1.5Zm6-4.5h-8v2h8v-2Zm-2-4h2a5 5 0 0 1 0 10h-2v-1.5h2a3.5 3.5 0 1 0 0-7h-2V9Z" clip-rule="evenodd"/>\n</svg>\n';
21365
- const __vite_glob_0_11 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <rect width="9" height="9" x="9.5" y="9.5" stroke="var(--zw-icon-foreground)" rx="4.5"/>\n</svg>\n';
21366
- const __vite_glob_0_12 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M15.108 18.184V19H10.5v-.816h1.842v-5.862c0-.176.006-.354.018-.534l-1.53 1.314a.375.375 0 0 1-.156.084.373.373 0 0 1-.27-.048.318.318 0 0 1-.084-.078l-.336-.462 2.562-2.214h.87v7.8h1.692Zm1.519.156a.8.8 0 0 1 .054-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
21367
- const __vite_glob_0_13 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <rect width="10" height="10" x="9" y="9" fill="var(--zw-icon-foreground)" rx="5"/>\n</svg>\n';
21368
- const __vite_glob_0_14 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M12.086 9.802h.834v11.292h-.834V9.802Zm2.592 8.538a.8.8 0 0 1 .054-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
21369
- const __vite_glob_0_15 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="m13.664 15.808-1.35-3.498a7.11 7.11 0 0 1-.252-.804c-.084.324-.17.594-.258.81l-1.35 3.492h3.21ZM16.088 19h-.9a.387.387 0 0 1-.252-.078.48.48 0 0 1-.144-.198l-.804-2.076H10.13l-.804 2.076a.421.421 0 0 1-.138.192.383.383 0 0 1-.252.084h-.9l3.438-8.598h1.176L16.088 19Zm.7-.66a.8.8 0 0 1 .053-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
21370
- const __vite_glob_0_16 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M9 9h10v10H9z"/>\n</svg>\n';
21371
- const __vite_glob_0_17 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M14.089 6.726a1 1 0 0 1 1.425-.003l6.8 6.882a1 1 0 0 1 .007 1.398L17.2 20.3l-.2.2c-2.2 2.1-5.7 2-7.8-.2l-3.516-3.6a1 1 0 0 1 0-1.399l8.405-8.575Zm1.81 12.674c.1 0 .2 0 .2-.1l4.8-5-6.1-6.2-5 5.1 6.1 6.2Z" clip-rule="evenodd"/>\n</svg>\n';
21372
- const __vite_glob_0_18 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M14 9.333V6.666l-3.334 3.333L14 13.333v-2.667c2.206 0 4 1.793 4 4s-1.794 4-4 4c-2.207 0-4-1.793-4-4H8.666A5.332 5.332 0 0 0 14 19.999a5.332 5.332 0 0 0 5.333-5.333A5.332 5.332 0 0 0 14 9.333Z"/>\n</svg>\n';
21373
- const __vite_glob_0_19 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m14 12.731.77.27H20v2H8v-2h2.84a2.892 2.892 0 0 1-.46-.71 3.61 3.61 0 0 1-.29-1.52c0-.484.1-.964.29-1.41a3.5 3.5 0 0 1 .83-1.2 4 4 0 0 1 1.35-.84 4.74 4.74 0 0 1 1.83-.32 6 6 0 0 1 2.11.41 5 5 0 0 1 1.68 1l-.46.88a.69.69 0 0 1-.18.22.41.41 0 0 1-.25.07.69.69 0 0 1-.39-.16 5.551 5.551 0 0 0-.56-.36 4.641 4.641 0 0 0-.8-.36 3.44 3.44 0 0 0-1.14-.16 3.16 3.16 0 0 0-1.11.17 2.29 2.29 0 0 0-.8.45 1.87 1.87 0 0 0-.49.67 2.138 2.138 0 0 0-.11.79c-.023.357.08.711.29 1 .206.267.465.489.76.65.338.187.693.34 1.06.46Zm1.99 6.06c.24-.22.427-.49.55-.79.135-.315.2-.657.19-1h1.74a4.58 4.58 0 0 1-.25 1.38 4 4 0 0 1-.91 1.37 4.231 4.231 0 0 1-1.46.92 5.503 5.503 0 0 1-2 .33 6.13 6.13 0 0 1-2.5-.46 5.66 5.66 0 0 1-1.89-1.31l.54-.88a.61.61 0 0 1 .19-.17.45.45 0 0 1 .25-.07.5.5 0 0 1 .28.1c.128.077.251.16.37.25l.46.33c.19.13.391.243.6.34.245.107.5.191.76.25.328.076.664.11 1 .1a3.67 3.67 0 0 0 1.19-.18c.328-.109.63-.282.89-.51Z" clip-rule="evenodd"/>\n</svg>\n';
21374
- const __vite_glob_0_20 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M21.985 8.625h-1.75V9.5h2.625v.875h-3.5v-1.75c0-.481.394-.875.875-.875h1.75v-.875H19.36V6h2.625c.481 0 .875.394.875.875v.875a.878.878 0 0 1-.875.875ZM7.88 20h2.327l2.975-4.742h.105L16.262 20h2.328l-4.069-6.361L18.32 7.75h-2.345l-2.687 4.366h-.105L10.48 7.75H8.15l3.78 5.889L7.88 20Z"/>\n</svg>\n';
21375
- const __vite_glob_0_21 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M15.4 16.06a3.3 3.3 0 0 1-1.4.29 3.12 3.12 0 0 1-1.39-.29 2.88 2.88 0 0 1-1.05-.81 3.711 3.711 0 0 1-.65-1.25 5.659 5.659 0 0 1-.22-1.6V7H9v5.41a6.89 6.89 0 0 0 .34 2.22 5.29 5.29 0 0 0 1 1.77c.437.501.975.904 1.58 1.18A5 5 0 0 0 14 18a5 5 0 0 0 2.08-.42 4.61 4.61 0 0 0 1.57-1.18 5.27 5.27 0 0 0 1-1.77 6.89 6.89 0 0 0 .35-2.22V7h-1.69v5.41a5.659 5.659 0 0 1-.22 1.59 3.71 3.71 0 0 1-.69 1.25c-.27.34-.61.617-1 .81ZM20 19H8v2h12v-2Z" clip-rule="evenodd"/>\n</svg>\n';
21376
- const __vite_glob_0_22 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 20 20">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M18.96 10a5 5 0 0 0-5-5h-2v1.5h2a3.49 3.49 0 0 1 1.58 6.61L13.43 11h.53V9h-2.53l-7-7-1.47 1.47L17.49 18l1.47-1.47-2.34-2.34A4.93 4.93 0 0 0 18.96 10Zm-13 1h1.59L5.96 9.41V11ZM3.81 7.26A3.47 3.47 0 0 0 2.46 10a3.5 3.5 0 0 0 3.5 3.5h2V15h-2a5 5 0 0 1-3.21-8.8l1.06 1.06Z" clip-rule="evenodd"/>\n</svg>\n';
21377
- const modules = /* @__PURE__ */ Object.assign({ "../assets/icons/alignment-center.svg": __vite_glob_0_0, "../assets/icons/alignment-justify.svg": __vite_glob_0_1, "../assets/icons/alignment-left.svg": __vite_glob_0_2, "../assets/icons/alignment-right.svg": __vite_glob_0_3, "../assets/icons/arrow.svg": __vite_glob_0_4, "../assets/icons/background-color.svg": __vite_glob_0_5, "../assets/icons/case-style.svg": __vite_glob_0_6, "../assets/icons/font-color.svg": __vite_glob_0_7, "../assets/icons/italic.svg": __vite_glob_0_8, "../assets/icons/line-height.svg": __vite_glob_0_9, "../assets/icons/link.svg": __vite_glob_0_10, "../assets/icons/list-circle.svg": __vite_glob_0_11, "../assets/icons/list-decimal.svg": __vite_glob_0_12, "../assets/icons/list-disc.svg": __vite_glob_0_13, "../assets/icons/list-latin.svg": __vite_glob_0_14, "../assets/icons/list-roman.svg": __vite_glob_0_15, "../assets/icons/list-square.svg": __vite_glob_0_16, "../assets/icons/remove-format.svg": __vite_glob_0_17, "../assets/icons/reset-styles.svg": __vite_glob_0_18, "../assets/icons/strike-through.svg": __vite_glob_0_19, "../assets/icons/superscript.svg": __vite_glob_0_20, "../assets/icons/underline.svg": __vite_glob_0_21, "../assets/icons/unlink.svg": __vite_glob_0_22 });
21370
+ const __vite_glob_0_9 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 24 24">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M3 19V5h1.8v14zm16.2 0V5H21v14zM7.815 16.375l3.375-8.75h1.62l3.375 8.75h-1.552l-.81-2.231h-3.645l-.81 2.231zm2.835-3.5h2.7l-1.305-3.631h-.09z" clip-rule="evenodd"/>\n</svg>\n';
21371
+ const __vite_glob_0_10 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m5 10 3-3 3 3H9v8h2l-3 3-3-3h2v-8H5Zm8-3h10v2H13V7Zm10 6H13v2h10v-2Zm0 6H13v2h10v-2Z" clip-rule="evenodd"/>\n</svg>\n';
21372
+ const __vite_glob_0_11 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M12 17.5h-2a3.5 3.5 0 1 1 0-7h2V9h-2a5 5 0 0 0 0 10h2v-1.5Zm6-4.5h-8v2h8v-2Zm-2-4h2a5 5 0 0 1 0 10h-2v-1.5h2a3.5 3.5 0 1 0 0-7h-2V9Z" clip-rule="evenodd"/>\n</svg>\n';
21373
+ const __vite_glob_0_12 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <rect width="9" height="9" x="9.5" y="9.5" stroke="var(--zw-icon-foreground)" rx="4.5"/>\n</svg>\n';
21374
+ const __vite_glob_0_13 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M15.108 18.184V19H10.5v-.816h1.842v-5.862c0-.176.006-.354.018-.534l-1.53 1.314a.375.375 0 0 1-.156.084.373.373 0 0 1-.27-.048.318.318 0 0 1-.084-.078l-.336-.462 2.562-2.214h.87v7.8h1.692Zm1.519.156a.8.8 0 0 1 .054-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
21375
+ const __vite_glob_0_14 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <rect width="10" height="10" x="9" y="9" fill="var(--zw-icon-foreground)" rx="5"/>\n</svg>\n';
21376
+ const __vite_glob_0_15 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M12.086 9.802h.834v11.292h-.834V9.802Zm2.592 8.538a.8.8 0 0 1 .054-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
21377
+ const __vite_glob_0_16 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="m13.664 15.808-1.35-3.498a7.11 7.11 0 0 1-.252-.804c-.084.324-.17.594-.258.81l-1.35 3.492h3.21ZM16.088 19h-.9a.387.387 0 0 1-.252-.078.48.48 0 0 1-.144-.198l-.804-2.076H10.13l-.804 2.076a.421.421 0 0 1-.138.192.383.383 0 0 1-.252.084h-.9l3.438-8.598h1.176L16.088 19Zm.7-.66a.8.8 0 0 1 .053-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
21378
+ const __vite_glob_0_17 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M9 9h10v10H9z"/>\n</svg>\n';
21379
+ const __vite_glob_0_18 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M14.089 6.726a1 1 0 0 1 1.425-.003l6.8 6.882a1 1 0 0 1 .007 1.398L17.2 20.3l-.2.2c-2.2 2.1-5.7 2-7.8-.2l-3.516-3.6a1 1 0 0 1 0-1.399l8.405-8.575Zm1.81 12.674c.1 0 .2 0 .2-.1l4.8-5-6.1-6.2-5 5.1 6.1 6.2Z" clip-rule="evenodd"/>\n</svg>\n';
21380
+ const __vite_glob_0_19 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M14 9.333V6.666l-3.334 3.333L14 13.333v-2.667c2.206 0 4 1.793 4 4s-1.794 4-4 4c-2.207 0-4-1.793-4-4H8.666A5.332 5.332 0 0 0 14 19.999a5.332 5.332 0 0 0 5.333-5.333A5.332 5.332 0 0 0 14 9.333Z"/>\n</svg>\n';
21381
+ const __vite_glob_0_20 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m14 12.731.77.27H20v2H8v-2h2.84a2.892 2.892 0 0 1-.46-.71 3.61 3.61 0 0 1-.29-1.52c0-.484.1-.964.29-1.41a3.5 3.5 0 0 1 .83-1.2 4 4 0 0 1 1.35-.84 4.74 4.74 0 0 1 1.83-.32 6 6 0 0 1 2.11.41 5 5 0 0 1 1.68 1l-.46.88a.69.69 0 0 1-.18.22.41.41 0 0 1-.25.07.69.69 0 0 1-.39-.16 5.551 5.551 0 0 0-.56-.36 4.641 4.641 0 0 0-.8-.36 3.44 3.44 0 0 0-1.14-.16 3.16 3.16 0 0 0-1.11.17 2.29 2.29 0 0 0-.8.45 1.87 1.87 0 0 0-.49.67 2.138 2.138 0 0 0-.11.79c-.023.357.08.711.29 1 .206.267.465.489.76.65.338.187.693.34 1.06.46Zm1.99 6.06c.24-.22.427-.49.55-.79.135-.315.2-.657.19-1h1.74a4.58 4.58 0 0 1-.25 1.38 4 4 0 0 1-.91 1.37 4.231 4.231 0 0 1-1.46.92 5.503 5.503 0 0 1-2 .33 6.13 6.13 0 0 1-2.5-.46 5.66 5.66 0 0 1-1.89-1.31l.54-.88a.61.61 0 0 1 .19-.17.45.45 0 0 1 .25-.07.5.5 0 0 1 .28.1c.128.077.251.16.37.25l.46.33c.19.13.391.243.6.34.245.107.5.191.76.25.328.076.664.11 1 .1a3.67 3.67 0 0 0 1.19-.18c.328-.109.63-.282.89-.51Z" clip-rule="evenodd"/>\n</svg>\n';
21382
+ const __vite_glob_0_21 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M21.985 8.625h-1.75V9.5h2.625v.875h-3.5v-1.75c0-.481.394-.875.875-.875h1.75v-.875H19.36V6h2.625c.481 0 .875.394.875.875v.875a.878.878 0 0 1-.875.875ZM7.88 20h2.327l2.975-4.742h.105L16.262 20h2.328l-4.069-6.361L18.32 7.75h-2.345l-2.687 4.366h-.105L10.48 7.75H8.15l3.78 5.889L7.88 20Z"/>\n</svg>\n';
21383
+ const __vite_glob_0_22 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M15.4 16.06a3.3 3.3 0 0 1-1.4.29 3.12 3.12 0 0 1-1.39-.29 2.88 2.88 0 0 1-1.05-.81 3.711 3.711 0 0 1-.65-1.25 5.659 5.659 0 0 1-.22-1.6V7H9v5.41a6.89 6.89 0 0 0 .34 2.22 5.29 5.29 0 0 0 1 1.77c.437.501.975.904 1.58 1.18A5 5 0 0 0 14 18a5 5 0 0 0 2.08-.42 4.61 4.61 0 0 0 1.57-1.18 5.27 5.27 0 0 0 1-1.77 6.89 6.89 0 0 0 .35-2.22V7h-1.69v5.41a5.659 5.659 0 0 1-.22 1.59 3.71 3.71 0 0 1-.69 1.25c-.27.34-.61.617-1 .81ZM20 19H8v2h12v-2Z" clip-rule="evenodd"/>\n</svg>\n';
21384
+ const __vite_glob_0_23 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 20 20">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M18.96 10a5 5 0 0 0-5-5h-2v1.5h2a3.49 3.49 0 0 1 1.58 6.61L13.43 11h.53V9h-2.53l-7-7-1.47 1.47L17.49 18l1.47-1.47-2.34-2.34A4.93 4.93 0 0 0 18.96 10Zm-13 1h1.59L5.96 9.41V11ZM3.81 7.26A3.47 3.47 0 0 0 2.46 10a3.5 3.5 0 0 0 3.5 3.5h2V15h-2a5 5 0 0 1-3.21-8.8l1.06 1.06Z" clip-rule="evenodd"/>\n</svg>\n';
21385
+ const modules = /* @__PURE__ */ Object.assign({ "../assets/icons/alignment-center.svg": __vite_glob_0_0, "../assets/icons/alignment-justify.svg": __vite_glob_0_1, "../assets/icons/alignment-left.svg": __vite_glob_0_2, "../assets/icons/alignment-right.svg": __vite_glob_0_3, "../assets/icons/arrow.svg": __vite_glob_0_4, "../assets/icons/background-color.svg": __vite_glob_0_5, "../assets/icons/case-style.svg": __vite_glob_0_6, "../assets/icons/font-color.svg": __vite_glob_0_7, "../assets/icons/italic.svg": __vite_glob_0_8, "../assets/icons/letter-spacing.svg": __vite_glob_0_9, "../assets/icons/line-height.svg": __vite_glob_0_10, "../assets/icons/link.svg": __vite_glob_0_11, "../assets/icons/list-circle.svg": __vite_glob_0_12, "../assets/icons/list-decimal.svg": __vite_glob_0_13, "../assets/icons/list-disc.svg": __vite_glob_0_14, "../assets/icons/list-latin.svg": __vite_glob_0_15, "../assets/icons/list-roman.svg": __vite_glob_0_16, "../assets/icons/list-square.svg": __vite_glob_0_17, "../assets/icons/remove-format.svg": __vite_glob_0_18, "../assets/icons/reset-styles.svg": __vite_glob_0_19, "../assets/icons/strike-through.svg": __vite_glob_0_20, "../assets/icons/superscript.svg": __vite_glob_0_21, "../assets/icons/underline.svg": __vite_glob_0_22, "../assets/icons/unlink.svg": __vite_glob_0_23 });
21378
21386
  function importIcon(name) {
21379
21387
  return modules[`../assets/icons/${name}.svg`] || "";
21380
21388
  }
@@ -24295,6 +24303,64 @@ const LineHeight = Extension.create({
24295
24303
  };
24296
24304
  }
24297
24305
  });
24306
+ const LetterSpacing = Mark2.create({
24307
+ name: TextSetting.LETTER_SPACING,
24308
+ group: MarkGroup.SETTINGS,
24309
+ addAttributes: () => ({
24310
+ mobile: { default: null },
24311
+ tablet: { default: null },
24312
+ desktop: { default: null }
24313
+ }),
24314
+ addCommands() {
24315
+ return {
24316
+ getLetterSpacing: createCommand(({ commands: commands2 }) => {
24317
+ return commands2.getDeviceSettingMark(this.name, commands2.getDefaultLetterSpacing());
24318
+ }),
24319
+ getDefaultLetterSpacing: createCommand(({ commands: commands2 }) => {
24320
+ const device = commands2.getDevice();
24321
+ const preset = commands2.getPreset();
24322
+ return computed(() => unref(preset)[unref(device)].letter_spacing ?? null);
24323
+ }),
24324
+ applyLetterSpacing: createCommand(({ commands: commands2 }, value) => {
24325
+ const device = unref(commands2.getDevice());
24326
+ commands2.applyMark(this.name, { [device]: value });
24327
+ })
24328
+ };
24329
+ },
24330
+ parseHTML() {
24331
+ const parse = (value) => {
24332
+ if (!value) return null;
24333
+ const wrapperEl = unref(this.options.wrapperRef);
24334
+ const converted = convertLetterSpacing(value, wrapperEl);
24335
+ return `${converted}px`;
24336
+ };
24337
+ return [
24338
+ {
24339
+ tag: '[style*="--zw-letter-spacing"]',
24340
+ getAttrs: ({ style: style2 }) => ({
24341
+ mobile: parse(style2.getPropertyValue("--zw-letter-spacing-mobile")),
24342
+ tablet: parse(style2.getPropertyValue("--zw-letter-spacing-tablet")),
24343
+ desktop: parse(style2.getPropertyValue("--zw-letter-spacing-desktop"))
24344
+ })
24345
+ },
24346
+ {
24347
+ style: "letter-spacing",
24348
+ getAttrs: (input) => {
24349
+ const value = parse(input);
24350
+ return { desktop: value, tablet: value, mobile: value };
24351
+ }
24352
+ }
24353
+ ];
24354
+ },
24355
+ renderHTML({ HTMLAttributes: attrs }) {
24356
+ const addUnits = (value) => value ? `${value}px` : null;
24357
+ return renderMark({
24358
+ letter_spacing_mobile: addUnits(attrs.mobile),
24359
+ letter_spacing_tablet: addUnits(attrs.tablet),
24360
+ letter_spacing_desktop: addUnits(attrs.desktop)
24361
+ });
24362
+ }
24363
+ });
24298
24364
  const ListItem$1 = Node$1.create({
24299
24365
  name: "listItem",
24300
24366
  addOptions() {
@@ -25014,6 +25080,7 @@ function buildExtensions(options) {
25014
25080
  LineHeight.configure({
25015
25081
  wrapperRef: options.wrapperRef
25016
25082
  }),
25083
+ LetterSpacing,
25017
25084
  Link.configure({
25018
25085
  preset: toRef(presetsMap, "link"),
25019
25086
  basePresetClass: options.basePresetClass,
@@ -26023,8 +26090,8 @@ function tooltip(el, { value, modifiers: modifiers2 }) {
26023
26090
  if (modifiers2.xs) el.dataset.tooltipSize = "xs";
26024
26091
  if (modifiers2.lg) el.dataset.tooltipSize = "lg";
26025
26092
  }
26026
- const _hoisted_1$n = ["disabled"];
26027
- const _sfc_main$I = {
26093
+ const _hoisted_1$o = ["disabled"];
26094
+ const _sfc_main$J = {
26028
26095
  __name: "Button",
26029
26096
  props: {
26030
26097
  skin: {
@@ -26065,13 +26132,13 @@ const _sfc_main$I = {
26065
26132
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
26066
26133
  }, [
26067
26134
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
26068
- ], 10, _hoisted_1$n);
26135
+ ], 10, _hoisted_1$o);
26069
26136
  };
26070
26137
  }
26071
26138
  };
26072
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-9ea2a71b"]]);
26073
- const _hoisted_1$m = { class: "zw-button-toggle" };
26074
- const _sfc_main$H = {
26139
+ const Button = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-9ea2a71b"]]);
26140
+ const _hoisted_1$n = { class: "zw-button-toggle" };
26141
+ const _sfc_main$I = {
26075
26142
  __name: "ButtonToggle",
26076
26143
  props: {
26077
26144
  value: {
@@ -26086,7 +26153,7 @@ const _sfc_main$H = {
26086
26153
  emits: ["change"],
26087
26154
  setup(__props) {
26088
26155
  return (_ctx, _cache) => {
26089
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
26156
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
26090
26157
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.options, (option) => {
26091
26158
  return renderSlot(_ctx.$slots, "option", {
26092
26159
  option,
@@ -26098,9 +26165,9 @@ const _sfc_main$H = {
26098
26165
  };
26099
26166
  }
26100
26167
  };
26101
- const ButtonToggle = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-bbdc7b20"]]);
26102
- const _hoisted_1$l = ["innerHTML"];
26103
- const _sfc_main$G = {
26168
+ const ButtonToggle = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-bbdc7b20"]]);
26169
+ const _hoisted_1$m = ["innerHTML"];
26170
+ const _sfc_main$H = {
26104
26171
  __name: "Icon",
26105
26172
  props: {
26106
26173
  name: {
@@ -26140,11 +26207,11 @@ const _sfc_main$G = {
26140
26207
  class: normalizeClass(["zw-icon", iconClasses.value]),
26141
26208
  style: normalizeStyle(iconStyles.value),
26142
26209
  innerHTML: source.value
26143
- }, null, 14, _hoisted_1$l);
26210
+ }, null, 14, _hoisted_1$m);
26144
26211
  };
26145
26212
  }
26146
26213
  };
26147
- const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-09bee8af"]]);
26214
+ const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-09bee8af"]]);
26148
26215
  function useValidator({ validations }) {
26149
26216
  const error = ref(null);
26150
26217
  function validate() {
@@ -26284,7 +26351,7 @@ function useScrollView() {
26284
26351
  }
26285
26352
  return { scrollToElement };
26286
26353
  }
26287
- const _sfc_main$F = {
26354
+ const _sfc_main$G = {
26288
26355
  __name: "ScrollView",
26289
26356
  setup(__props) {
26290
26357
  const hostRef = ref(null);
@@ -26307,9 +26374,9 @@ const _sfc_main$F = {
26307
26374
  };
26308
26375
  }
26309
26376
  };
26310
- const ScrollView = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-07fd5408"]]);
26311
- const _hoisted_1$k = ["for"];
26312
- const _sfc_main$E = {
26377
+ const ScrollView = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-07fd5408"]]);
26378
+ const _hoisted_1$l = ["for"];
26379
+ const _sfc_main$F = {
26313
26380
  __name: "FieldLabel",
26314
26381
  props: {
26315
26382
  fieldId: {
@@ -26325,13 +26392,13 @@ const _sfc_main$E = {
26325
26392
  for: __props.fieldId
26326
26393
  }, [
26327
26394
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
26328
- ], 8, _hoisted_1$k);
26395
+ ], 8, _hoisted_1$l);
26329
26396
  };
26330
26397
  }
26331
26398
  };
26332
- const FieldLabel = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-7ab8105c"]]);
26333
- const _hoisted_1$j = ["id", "min", "max", "step", "value"];
26334
- const _sfc_main$D = {
26399
+ const FieldLabel = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-7ab8105c"]]);
26400
+ const _hoisted_1$k = ["id", "min", "max", "step", "value"];
26401
+ const _sfc_main$E = {
26335
26402
  __name: "Range",
26336
26403
  props: {
26337
26404
  min: {
@@ -26387,19 +26454,19 @@ const _sfc_main$D = {
26387
26454
  value: unref(tempValue),
26388
26455
  style: normalizeStyle(inputStyles.value),
26389
26456
  onInput: _cache[0] || (_cache[0] = ($event) => update($event))
26390
- }, null, 44, _hoisted_1$j);
26457
+ }, null, 44, _hoisted_1$k);
26391
26458
  };
26392
26459
  }
26393
26460
  };
26394
- const Range = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-c0059745"]]);
26395
- const _hoisted_1$i = ["id", "disabled", "value"];
26396
- const _hoisted_2$6 = { class: "zw-number-field__controls" };
26461
+ const Range = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-c0059745"]]);
26462
+ const _hoisted_1$j = ["id", "disabled", "value"];
26463
+ const _hoisted_2$7 = { class: "zw-number-field__controls" };
26397
26464
  const _hoisted_3$2 = { class: "zw-number-field__buttons" };
26398
26465
  const _hoisted_4$1 = {
26399
26466
  key: 0,
26400
26467
  class: "zw-number-field__units"
26401
26468
  };
26402
- const _sfc_main$C = {
26469
+ const _sfc_main$D = {
26403
26470
  __name: "NumberField",
26404
26471
  props: {
26405
26472
  value: {
@@ -26472,8 +26539,8 @@ const _sfc_main$C = {
26472
26539
  disabled: __props.disabled,
26473
26540
  value: tempValue.value,
26474
26541
  onChange
26475
- }, null, 40, _hoisted_1$i),
26476
- createElementVNode("div", _hoisted_2$6, [
26542
+ }, null, 40, _hoisted_1$j),
26543
+ createElementVNode("div", _hoisted_2$7, [
26477
26544
  createElementVNode("div", _hoisted_3$2, [
26478
26545
  createVNode(unref(Button), {
26479
26546
  class: "zw-number-field__increment-button",
@@ -26496,7 +26563,7 @@ const _sfc_main$C = {
26496
26563
  };
26497
26564
  }
26498
26565
  };
26499
- const NumberField = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-e462abc1"]]);
26566
+ const NumberField = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-962cf185"]]);
26500
26567
  const min = Math.min;
26501
26568
  const max = Math.max;
26502
26569
  const round = Math.round;
@@ -27953,7 +28020,7 @@ function useFloating(reference2, floating, options) {
27953
28020
  update
27954
28021
  };
27955
28022
  }
27956
- const _sfc_main$B = {
28023
+ const _sfc_main$C = {
27957
28024
  __name: "ModalFloating",
27958
28025
  props: {
27959
28026
  referenceRef: {
@@ -28019,8 +28086,8 @@ const _sfc_main$B = {
28019
28086
  };
28020
28087
  }
28021
28088
  };
28022
- const ModalFloating = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-b3c0b9ad"]]);
28023
- const _sfc_main$A = {
28089
+ const ModalFloating = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-b3c0b9ad"]]);
28090
+ const _sfc_main$B = {
28024
28091
  __name: "Modal",
28025
28092
  props: {
28026
28093
  referenceRef: {
@@ -28125,16 +28192,16 @@ const _sfc_main$A = {
28125
28192
  };
28126
28193
  }
28127
28194
  };
28128
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-72ecfd23"]]);
28129
- const _hoisted_1$h = { class: "zw-field" };
28130
- const _hoisted_2$5 = ["for"];
28195
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-72ecfd23"]]);
28196
+ const _hoisted_1$i = { class: "zw-field" };
28197
+ const _hoisted_2$6 = ["for"];
28131
28198
  const _hoisted_3$1 = ["value", "id", "placeholder"];
28132
28199
  const _hoisted_4 = {
28133
28200
  key: 0,
28134
28201
  class: "zw-field__label--error",
28135
28202
  "data-test-selector": "error"
28136
28203
  };
28137
- const _sfc_main$z = {
28204
+ const _sfc_main$A = {
28138
28205
  __name: "TextField",
28139
28206
  props: {
28140
28207
  value: {
@@ -28165,12 +28232,12 @@ const _sfc_main$z = {
28165
28232
  return props.label.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (m, chr) => chr.toUpperCase());
28166
28233
  });
28167
28234
  return (_ctx, _cache) => {
28168
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
28235
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
28169
28236
  createElementVNode("label", {
28170
28237
  class: "zw-field__label",
28171
28238
  for: fieldId.value,
28172
28239
  "data-test-selector": "label"
28173
- }, toDisplayString(__props.label), 9, _hoisted_2$5),
28240
+ }, toDisplayString(__props.label), 9, _hoisted_2$6),
28174
28241
  createElementVNode("input", {
28175
28242
  class: "zw-field__input",
28176
28243
  type: "text",
@@ -28185,11 +28252,11 @@ const _sfc_main$z = {
28185
28252
  };
28186
28253
  }
28187
28254
  };
28188
- const TextField = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-dfa0d6f0"]]);
28189
- const _hoisted_1$g = { class: "zw-checkbox" };
28190
- const _hoisted_2$4 = ["checked"];
28255
+ const TextField = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-dfa0d6f0"]]);
28256
+ const _hoisted_1$h = { class: "zw-checkbox" };
28257
+ const _hoisted_2$5 = ["checked"];
28191
28258
  const _hoisted_3 = { class: "zw-checkbox__label" };
28192
- const _sfc_main$y = {
28259
+ const _sfc_main$z = {
28193
28260
  __name: "Checkbox",
28194
28261
  props: {
28195
28262
  value: {
@@ -28208,20 +28275,20 @@ const _sfc_main$y = {
28208
28275
  const emit = __emit;
28209
28276
  const onCheckedChanged = () => emit("input", !props.value);
28210
28277
  return (_ctx, _cache) => {
28211
- return openBlock(), createElementBlock("label", _hoisted_1$g, [
28278
+ return openBlock(), createElementBlock("label", _hoisted_1$h, [
28212
28279
  createElementVNode("input", {
28213
28280
  class: "zw-checkbox__field",
28214
28281
  type: "checkbox",
28215
28282
  checked: __props.value,
28216
28283
  onClick: onCheckedChanged
28217
- }, null, 8, _hoisted_2$4),
28284
+ }, null, 8, _hoisted_2$5),
28218
28285
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "zw-checkbox__indicator zw-margin-right--xs" }, null, -1)),
28219
28286
  createElementVNode("span", _hoisted_3, toDisplayString(__props.label), 1)
28220
28287
  ]);
28221
28288
  };
28222
28289
  }
28223
28290
  };
28224
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e1624b5d"]]);
28291
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-e1624b5d"]]);
28225
28292
  const InjectionTokens = Object.freeze({
28226
28293
  ACTIVE_MANAGER: Symbol("dropdownActiveManager"),
28227
28294
  TOGGLER: Symbol("dropdownToggler"),
@@ -28248,13 +28315,13 @@ function useDropdownEntityTitle(entityRef) {
28248
28315
  return ((_a = entityRef.value) == null ? void 0 : _a.title) || ((_b = entityRef.value) == null ? void 0 : _b.id) || "";
28249
28316
  });
28250
28317
  }
28251
- const _hoisted_1$f = { class: "zw-dropdown__activator-title zw-text--truncate" };
28252
- const _hoisted_2$3 = {
28318
+ const _hoisted_1$g = { class: "zw-dropdown__activator-title zw-text--truncate" };
28319
+ const _hoisted_2$4 = {
28253
28320
  key: 0,
28254
28321
  class: "zw-dropdown__customized-indicator",
28255
28322
  "data-test-selector": "customizedIndicator"
28256
28323
  };
28257
- const _sfc_main$x = {
28324
+ const _sfc_main$y = {
28258
28325
  __name: "DropdownActivator",
28259
28326
  props: {
28260
28327
  color: {
@@ -28290,8 +28357,8 @@ const _sfc_main$x = {
28290
28357
  onClick: unref(dropdownToggler).open
28291
28358
  }, {
28292
28359
  default: withCtx(() => [
28293
- createElementVNode("span", _hoisted_1$f, toDisplayString(unref(activeOptionTitle)), 1),
28294
- __props.isCustomized ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$3, null, 512)), [
28360
+ createElementVNode("span", _hoisted_1$g, toDisplayString(unref(activeOptionTitle)), 1),
28361
+ __props.isCustomized ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$4, null, 512)), [
28295
28362
  [
28296
28363
  unref(tooltip),
28297
28364
  "Style differs from Page Styles",
@@ -28312,8 +28379,8 @@ const _sfc_main$x = {
28312
28379
  };
28313
28380
  }
28314
28381
  };
28315
- const DropdownActivator = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-678de368"]]);
28316
- const _sfc_main$w = {
28382
+ const DropdownActivator = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-678de368"]]);
28383
+ const _sfc_main$x = {
28317
28384
  __name: "DropdownOption",
28318
28385
  props: {
28319
28386
  option: {
@@ -28364,10 +28431,10 @@ const _sfc_main$w = {
28364
28431
  };
28365
28432
  }
28366
28433
  };
28367
- const DropdownOption = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-2e8320d2"]]);
28368
- const _hoisted_1$e = { class: "zw-dropdown__group" };
28369
- const _hoisted_2$2 = { class: "zw-dropdown__group-title" };
28370
- const _sfc_main$v = {
28434
+ const DropdownOption = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2e8320d2"]]);
28435
+ const _hoisted_1$f = { class: "zw-dropdown__group" };
28436
+ const _hoisted_2$3 = { class: "zw-dropdown__group-title" };
28437
+ const _sfc_main$w = {
28371
28438
  __name: "DropdownGroup",
28372
28439
  props: {
28373
28440
  group: {
@@ -28379,8 +28446,8 @@ const _sfc_main$v = {
28379
28446
  const props = __props;
28380
28447
  const groupTitle = useDropdownEntityTitle(toRef(props, "group"));
28381
28448
  return (_ctx, _cache) => {
28382
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
28383
- createElementVNode("p", _hoisted_2$2, toDisplayString(unref(groupTitle)), 1),
28449
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
28450
+ createElementVNode("p", _hoisted_2$3, toDisplayString(unref(groupTitle)), 1),
28384
28451
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.group.options, (option) => {
28385
28452
  return renderSlot(_ctx.$slots, "option", { option }, () => [
28386
28453
  createVNode(unref(DropdownOption), { option }, null, 8, ["option"])
@@ -28390,18 +28457,18 @@ const _sfc_main$v = {
28390
28457
  };
28391
28458
  }
28392
28459
  };
28393
- const DropdownGroup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-2239aa7b"]]);
28394
- const _sfc_main$u = {};
28395
- const _hoisted_1$d = { class: "zw-dropdown__divider" };
28460
+ const DropdownGroup = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-2239aa7b"]]);
28461
+ const _sfc_main$v = {};
28462
+ const _hoisted_1$e = { class: "zw-dropdown__divider" };
28396
28463
  function _sfc_render$1(_ctx, _cache) {
28397
- return openBlock(), createElementBlock("div", _hoisted_1$d);
28464
+ return openBlock(), createElementBlock("div", _hoisted_1$e);
28398
28465
  }
28399
- const DropdownDivider = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$1], ["__scopeId", "data-v-91a22273"]]);
28400
- const _hoisted_1$c = {
28466
+ const DropdownDivider = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$1], ["__scopeId", "data-v-91a22273"]]);
28467
+ const _hoisted_1$d = {
28401
28468
  class: "zw-dropdown__menu",
28402
28469
  "data-test-selector": "dropdownMenu"
28403
28470
  };
28404
- const _sfc_main$t = {
28471
+ const _sfc_main$u = {
28405
28472
  __name: "DropdownMenu",
28406
28473
  props: {
28407
28474
  options: {
@@ -28414,7 +28481,7 @@ const _sfc_main$t = {
28414
28481
  return (_ctx, _cache) => {
28415
28482
  return openBlock(), createBlock(unref(ScrollView), null, {
28416
28483
  default: withCtx(() => [
28417
- createElementVNode("div", _hoisted_1$c, [
28484
+ createElementVNode("div", _hoisted_1$d, [
28418
28485
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.options, (option, index) => {
28419
28486
  return openBlock(), createElementBlock(Fragment$1, null, [
28420
28487
  option.options ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
@@ -28445,7 +28512,7 @@ const _sfc_main$t = {
28445
28512
  };
28446
28513
  }
28447
28514
  };
28448
- const _sfc_main$s = {
28515
+ const _sfc_main$t = {
28449
28516
  __name: "Dropdown",
28450
28517
  props: {
28451
28518
  value: {
@@ -28509,7 +28576,7 @@ const _sfc_main$s = {
28509
28576
  "reference-ref": dropdownRef.value
28510
28577
  }, {
28511
28578
  default: withCtx(() => [
28512
- createVNode(unref(_sfc_main$t), { options: __props.options }, {
28579
+ createVNode(unref(_sfc_main$u), { options: __props.options }, {
28513
28580
  option: withCtx((attrs) => [
28514
28581
  renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps(attrs)), void 0, true)
28515
28582
  ]),
@@ -28522,7 +28589,7 @@ const _sfc_main$s = {
28522
28589
  };
28523
28590
  }
28524
28591
  };
28525
- const Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-0d65726d"]]);
28592
+ const Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-0d65726d"]]);
28526
28593
  function usePickerApi({ pickerRef, colorRef, onChange, onClosed, onBeforeOpened }) {
28527
28594
  const isOpened = computed(() => {
28528
28595
  var _a;
@@ -28587,7 +28654,7 @@ function usePickerHotkeys({ isOpenedRef, onCancel, onApply }) {
28587
28654
  options: { capture: true }
28588
28655
  });
28589
28656
  }
28590
- const _sfc_main$r = {
28657
+ const _sfc_main$s = {
28591
28658
  __name: "ColorPicker",
28592
28659
  props: {
28593
28660
  value: {
@@ -28658,11 +28725,11 @@ function useRecentFonts({ limit }) {
28658
28725
  const isEmpty = computed(() => !fonts.value.length);
28659
28726
  return { fonts, isEmpty, add };
28660
28727
  }
28661
- const _hoisted_1$b = {
28728
+ const _hoisted_1$c = {
28662
28729
  key: 0,
28663
28730
  class: "zw-dropdown__default-option"
28664
28731
  };
28665
- const _sfc_main$q = {
28732
+ const _sfc_main$r = {
28666
28733
  __name: "FontFamilyControl",
28667
28734
  setup(__props) {
28668
28735
  const fonts = inject(InjectionTokens$1.FONTS);
@@ -28717,7 +28784,7 @@ const _sfc_main$q = {
28717
28784
  }, {
28718
28785
  default: withCtx(() => [
28719
28786
  createTextVNode(toDisplayString(option.id) + " ", 1),
28720
- option.isDefault ? (openBlock(), createElementBlock("span", _hoisted_1$b, "(Default)")) : createCommentVNode("", true)
28787
+ option.isDefault ? (openBlock(), createElementBlock("span", _hoisted_1$c, "(Default)")) : createCommentVNode("", true)
28721
28788
  ]),
28722
28789
  _: 2
28723
28790
  }, 1032, ["option", "style"])), [
@@ -28731,12 +28798,12 @@ const _sfc_main$q = {
28731
28798
  };
28732
28799
  }
28733
28800
  };
28734
- const FontFamilyControl = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-e3657967"]]);
28735
- const _hoisted_1$a = {
28801
+ const FontFamilyControl = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-e3657967"]]);
28802
+ const _hoisted_1$b = {
28736
28803
  key: 0,
28737
28804
  class: "zw-dropdown__default-option"
28738
28805
  };
28739
- const _sfc_main$p = {
28806
+ const _sfc_main$q = {
28740
28807
  __name: "FontWeightControl",
28741
28808
  setup(__props) {
28742
28809
  const editor = inject(InjectionTokens$1.EDITOR);
@@ -28766,7 +28833,7 @@ const _sfc_main$p = {
28766
28833
  }, {
28767
28834
  default: withCtx(() => [
28768
28835
  createTextVNode(toDisplayString(option.id) + " ", 1),
28769
- option.isDefault ? (openBlock(), createElementBlock("span", _hoisted_1$a, "(Default)")) : createCommentVNode("", true)
28836
+ option.isDefault ? (openBlock(), createElementBlock("span", _hoisted_1$b, "(Default)")) : createCommentVNode("", true)
28770
28837
  ]),
28771
28838
  _: 2
28772
28839
  }, 1032, ["option"])), [
@@ -28780,12 +28847,12 @@ const _sfc_main$p = {
28780
28847
  };
28781
28848
  }
28782
28849
  };
28783
- const FontWeightControl = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-6c8237c7"]]);
28784
- const _hoisted_1$9 = {
28850
+ const FontWeightControl = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-6c8237c7"]]);
28851
+ const _hoisted_1$a = {
28785
28852
  key: 0,
28786
28853
  class: "zw-dropdown__default-option"
28787
28854
  };
28788
- const _sfc_main$o = {
28855
+ const _sfc_main$p = {
28789
28856
  __name: "FontSizeControl",
28790
28857
  setup(__props) {
28791
28858
  const fontSizes = inject(InjectionTokens$1.FONT_SIZES);
@@ -28816,7 +28883,7 @@ const _sfc_main$o = {
28816
28883
  }, {
28817
28884
  default: withCtx(() => [
28818
28885
  createTextVNode(toDisplayString(option.title) + " ", 1),
28819
- option.isDefault ? (openBlock(), createElementBlock("span", _hoisted_1$9, "(Default)")) : createCommentVNode("", true)
28886
+ option.isDefault ? (openBlock(), createElementBlock("span", _hoisted_1$a, "(Default)")) : createCommentVNode("", true)
28820
28887
  ]),
28821
28888
  _: 2
28822
28889
  }, 1032, ["option"])), [
@@ -28830,13 +28897,13 @@ const _sfc_main$o = {
28830
28897
  };
28831
28898
  }
28832
28899
  };
28833
- const FontSizeControl = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-779fe48e"]]);
28834
- const _hoisted_1$8 = {
28900
+ const FontSizeControl = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-779fe48e"]]);
28901
+ const _hoisted_1$9 = {
28835
28902
  key: 0,
28836
28903
  class: "zw-button__customized-indicator",
28837
28904
  "data-test-selector": "customizedIndicator"
28838
28905
  };
28839
- const _sfc_main$n = {
28906
+ const _sfc_main$o = {
28840
28907
  __name: "FontColorControl",
28841
28908
  setup(__props) {
28842
28909
  const editor = inject(InjectionTokens$1.EDITOR);
@@ -28844,7 +28911,7 @@ const _sfc_main$n = {
28844
28911
  const isCustomized = editor.commands.isSettingCustomized(TextSetting.FONT_COLOR);
28845
28912
  const apply2 = (color) => editor.chain().applyFontColor(color).run();
28846
28913
  return (_ctx, _cache) => {
28847
- return openBlock(), createBlock(unref(_sfc_main$r), {
28914
+ return openBlock(), createBlock(unref(_sfc_main$s), {
28848
28915
  value: unref(currentValue),
28849
28916
  onChange: apply2
28850
28917
  }, {
@@ -28862,7 +28929,7 @@ const _sfc_main$n = {
28862
28929
  size: "28px",
28863
28930
  "auto-color": ""
28864
28931
  }),
28865
- unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$8, null, 512)), [
28932
+ unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$9, null, 512)), [
28866
28933
  [
28867
28934
  unref(tooltip),
28868
28935
  "Style differs from Page Styles",
@@ -28881,14 +28948,14 @@ const _sfc_main$n = {
28881
28948
  };
28882
28949
  }
28883
28950
  };
28884
- const _sfc_main$m = {
28951
+ const _sfc_main$n = {
28885
28952
  __name: "BackgroundColorControl",
28886
28953
  setup(__props) {
28887
28954
  const editor = inject(InjectionTokens$1.EDITOR);
28888
28955
  const currentValue = editor.commands.getBackgroundColor();
28889
28956
  const apply2 = (color) => editor.chain().applyBackgroundColor(color).run();
28890
28957
  return (_ctx, _cache) => {
28891
- return openBlock(), createBlock(unref(_sfc_main$r), {
28958
+ return openBlock(), createBlock(unref(_sfc_main$s), {
28892
28959
  value: unref(currentValue),
28893
28960
  onChange: apply2
28894
28961
  }, {
@@ -28916,12 +28983,12 @@ const _sfc_main$m = {
28916
28983
  };
28917
28984
  }
28918
28985
  };
28919
- const _hoisted_1$7 = {
28986
+ const _hoisted_1$8 = {
28920
28987
  key: 0,
28921
28988
  class: "zw-button__customized-indicator",
28922
28989
  "data-test-selector": "customizedIndicator"
28923
28990
  };
28924
- const _sfc_main$l = {
28991
+ const _sfc_main$m = {
28925
28992
  __name: "ItalicControl",
28926
28993
  setup(__props) {
28927
28994
  const editor = inject(InjectionTokens$1.EDITOR);
@@ -28944,7 +29011,7 @@ const _sfc_main$l = {
28944
29011
  size: "28px",
28945
29012
  "auto-color": ""
28946
29013
  }),
28947
- unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$7, null, 512)), [
29014
+ unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$8, null, 512)), [
28948
29015
  [
28949
29016
  unref(tooltip),
28950
29017
  "Style differs from Page Styles",
@@ -28960,12 +29027,12 @@ const _sfc_main$l = {
28960
29027
  };
28961
29028
  }
28962
29029
  };
28963
- const _hoisted_1$6 = {
29030
+ const _hoisted_1$7 = {
28964
29031
  key: 0,
28965
29032
  class: "zw-button__customized-indicator",
28966
29033
  "data-test-selector": "customizedIndicator"
28967
29034
  };
28968
- const _sfc_main$k = {
29035
+ const _sfc_main$l = {
28969
29036
  __name: "UnderlineControl",
28970
29037
  setup(__props) {
28971
29038
  const editor = inject(InjectionTokens$1.EDITOR);
@@ -28986,7 +29053,7 @@ const _sfc_main$k = {
28986
29053
  size: "28px",
28987
29054
  "auto-color": ""
28988
29055
  }),
28989
- unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$6, null, 512)), [
29056
+ unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$7, null, 512)), [
28990
29057
  [
28991
29058
  unref(tooltip),
28992
29059
  "Style differs from Page Styles",
@@ -29002,7 +29069,7 @@ const _sfc_main$k = {
29002
29069
  };
29003
29070
  }
29004
29071
  };
29005
- const _sfc_main$j = {
29072
+ const _sfc_main$k = {
29006
29073
  __name: "StrikeThroughControl",
29007
29074
  setup(__props) {
29008
29075
  const editor = inject(InjectionTokens$1.EDITOR);
@@ -29029,7 +29096,7 @@ const _sfc_main$j = {
29029
29096
  };
29030
29097
  }
29031
29098
  };
29032
- const _sfc_main$i = {
29099
+ const _sfc_main$j = {
29033
29100
  __name: "SuperscriptControl",
29034
29101
  setup(__props) {
29035
29102
  const editor = inject(InjectionTokens$1.EDITOR);
@@ -29056,7 +29123,7 @@ const _sfc_main$i = {
29056
29123
  };
29057
29124
  }
29058
29125
  };
29059
- const _sfc_main$h = {
29126
+ const _sfc_main$i = {
29060
29127
  __name: "CaseStyleControl",
29061
29128
  setup(__props) {
29062
29129
  const styles = [
@@ -29095,7 +29162,7 @@ const _sfc_main$h = {
29095
29162
  };
29096
29163
  }
29097
29164
  };
29098
- const _sfc_main$g = {
29165
+ const _sfc_main$h = {
29099
29166
  __name: "AlignmentControl",
29100
29167
  emits: ["applied"],
29101
29168
  setup(__props, { emit: __emit }) {
@@ -29170,13 +29237,13 @@ const _sfc_main$g = {
29170
29237
  };
29171
29238
  }
29172
29239
  };
29173
- const _hoisted_1$5 = {
29240
+ const _hoisted_1$6 = {
29174
29241
  key: 0,
29175
29242
  class: "zw-button__customized-indicator",
29176
29243
  "data-test-selector": "customizedIndicator"
29177
29244
  };
29178
- const _hoisted_2$1 = { class: "zw-line-height-control__row" };
29179
- const _sfc_main$f = {
29245
+ const _hoisted_2$2 = { class: "zw-line-height-control__row" };
29246
+ const _sfc_main$g = {
29180
29247
  __name: "LineHeightControl",
29181
29248
  setup(__props) {
29182
29249
  const editor = inject(InjectionTokens$1.EDITOR);
@@ -29204,7 +29271,7 @@ const _sfc_main$f = {
29204
29271
  size: "28px",
29205
29272
  "auto-color": ""
29206
29273
  }),
29207
- unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$5, null, 512)), [
29274
+ unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$6, null, 512)), [
29208
29275
  [
29209
29276
  unref(tooltip),
29210
29277
  "Style differs from Page Styles",
@@ -29232,7 +29299,7 @@ const _sfc_main$f = {
29232
29299
  ])),
29233
29300
  _: 1
29234
29301
  }),
29235
- createElementVNode("div", _hoisted_2$1, [
29302
+ createElementVNode("div", _hoisted_2$2, [
29236
29303
  createVNode(unref(Range), {
29237
29304
  class: "zw-line-height-control__range",
29238
29305
  step: "0.1",
@@ -29258,7 +29325,101 @@ const _sfc_main$f = {
29258
29325
  };
29259
29326
  }
29260
29327
  };
29261
- const LineHeightControl = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-643242a1"]]);
29328
+ const LineHeightControl = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-643242a1"]]);
29329
+ const _hoisted_1$5 = {
29330
+ key: 0,
29331
+ class: "zw-button__customized-indicator",
29332
+ "data-test-selector": "customizedIndicator"
29333
+ };
29334
+ const _hoisted_2$1 = { class: "zw-letter-spacing-control__row" };
29335
+ const MIN_VALUE = -1.6;
29336
+ const MAX_VALUE = 3.2;
29337
+ const STEP = 0.1;
29338
+ const _sfc_main$f = {
29339
+ __name: "LetterSpacingControl",
29340
+ setup(__props) {
29341
+ const editor = inject(InjectionTokens$1.EDITOR);
29342
+ const wrapperRef = ref(null);
29343
+ const toggler = useModalToggler();
29344
+ const valueRef = editor.commands.getLetterSpacing();
29345
+ const currentValue = computed(() => valueRef.value ?? 0);
29346
+ const isCustomized = editor.commands.isSettingCustomized(TextSetting.LETTER_SPACING);
29347
+ const apply2 = (value) => editor.commands.applyLetterSpacing(value);
29348
+ return (_ctx, _cache) => {
29349
+ return openBlock(), createElementBlock("div", {
29350
+ class: "zw-position--relative",
29351
+ ref_key: "wrapperRef",
29352
+ ref: wrapperRef
29353
+ }, [
29354
+ withDirectives((openBlock(), createBlock(unref(Button), {
29355
+ class: "zw-position--relative",
29356
+ icon: "",
29357
+ skin: "toolbar",
29358
+ active: unref(toggler).isOpened,
29359
+ onClick: unref(toggler).open
29360
+ }, {
29361
+ default: withCtx(() => [
29362
+ createVNode(unref(Icon), {
29363
+ name: "letter-spacing",
29364
+ size: "28px",
29365
+ "auto-color": ""
29366
+ }),
29367
+ unref(isCustomized) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$5, null, 512)), [
29368
+ [
29369
+ unref(tooltip),
29370
+ "Style differs from Page Styles",
29371
+ void 0,
29372
+ { lg: true }
29373
+ ]
29374
+ ]) : createCommentVNode("", true)
29375
+ ]),
29376
+ _: 1
29377
+ }, 8, ["active", "onClick"])), [
29378
+ [unref(tooltip), "Letter Spacing"]
29379
+ ]),
29380
+ createVNode(unref(Modal), {
29381
+ class: "zw-letter-spacing-control__modal",
29382
+ toggler: unref(toggler),
29383
+ "reference-ref": wrapperRef.value
29384
+ }, {
29385
+ default: withCtx(() => [
29386
+ createVNode(unref(FieldLabel), {
29387
+ class: "zw-margin-bottom--xs",
29388
+ "field-id": "wswg-letter-spacing"
29389
+ }, {
29390
+ default: withCtx(() => _cache[0] || (_cache[0] = [
29391
+ createTextVNode(" Letter Spacing ")
29392
+ ])),
29393
+ _: 1
29394
+ }),
29395
+ createElementVNode("div", _hoisted_2$1, [
29396
+ createVNode(unref(Range), {
29397
+ class: "zw-letter-spacing-control__range",
29398
+ step: STEP,
29399
+ min: MIN_VALUE,
29400
+ max: MAX_VALUE,
29401
+ value: currentValue.value,
29402
+ onInput: apply2
29403
+ }, null, 8, ["value"]),
29404
+ createVNode(unref(NumberField), {
29405
+ step: STEP,
29406
+ min: MIN_VALUE,
29407
+ max: MAX_VALUE,
29408
+ units: "px",
29409
+ class: "zw-letter-spacing-control__field",
29410
+ "field-id": "wswg-letter-spacing",
29411
+ value: currentValue.value,
29412
+ onInput: apply2
29413
+ }, null, 8, ["value"])
29414
+ ])
29415
+ ]),
29416
+ _: 1
29417
+ }, 8, ["toggler", "reference-ref"])
29418
+ ], 512);
29419
+ };
29420
+ }
29421
+ };
29422
+ const LetterSpacingControl = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-ecc20653"]]);
29262
29423
  const _hoisted_1$4 = { class: "zpa-list-control" };
29263
29424
  const _sfc_main$e = {
29264
29425
  __name: "ListControl",
@@ -29914,8 +30075,8 @@ const _sfc_main$5 = {
29914
30075
  createVNode(unref(ToolbarDivider), { vertical: "" }),
29915
30076
  createVNode(unref(ToolbarGroup), null, {
29916
30077
  default: withCtx(() => [
29917
- createVNode(unref(_sfc_main$n)),
29918
- createVNode(unref(_sfc_main$m))
30078
+ createVNode(unref(_sfc_main$o)),
30079
+ createVNode(unref(_sfc_main$n))
29919
30080
  ]),
29920
30081
  _: 1
29921
30082
  })
@@ -29927,18 +30088,19 @@ const _sfc_main$5 = {
29927
30088
  default: withCtx(() => [
29928
30089
  createVNode(unref(ToolbarGroup), null, {
29929
30090
  default: withCtx(() => [
30091
+ createVNode(unref(_sfc_main$m)),
29930
30092
  createVNode(unref(_sfc_main$l)),
29931
30093
  createVNode(unref(_sfc_main$k)),
29932
30094
  createVNode(unref(_sfc_main$j)),
29933
- createVNode(unref(_sfc_main$i)),
29934
- createVNode(unref(_sfc_main$h))
30095
+ createVNode(unref(_sfc_main$i))
29935
30096
  ]),
29936
30097
  _: 1
29937
30098
  }),
29938
30099
  createVNode(unref(ToolbarDivider), { vertical: "" }),
29939
- createVNode(unref(_sfc_main$g)),
30100
+ createVNode(unref(_sfc_main$h)),
29940
30101
  createVNode(unref(ToolbarDivider), { vertical: "" }),
29941
30102
  createVNode(unref(LineHeightControl)),
30103
+ createVNode(unref(LetterSpacingControl)),
29942
30104
  createVNode(unref(ToolbarDivider), { vertical: "" }),
29943
30105
  createVNode(unref(ListControl)),
29944
30106
  createVNode(unref(ToolbarDivider), { vertical: "" }),
@@ -29978,19 +30140,19 @@ const _sfc_main$4 = {
29978
30140
  createVNode(unref(ToolbarDivider), { vertical: "" }),
29979
30141
  createVNode(unref(ToolbarGroup), null, {
29980
30142
  default: withCtx(() => [
29981
- createVNode(unref(_sfc_main$n)),
29982
- createVNode(unref(_sfc_main$m))
30143
+ createVNode(unref(_sfc_main$o)),
30144
+ createVNode(unref(_sfc_main$n))
29983
30145
  ]),
29984
30146
  _: 1
29985
30147
  }),
29986
30148
  createVNode(unref(ToolbarDivider), { vertical: "" }),
29987
30149
  createVNode(unref(ToolbarGroup), null, {
29988
30150
  default: withCtx(() => [
30151
+ createVNode(unref(_sfc_main$m)),
29989
30152
  createVNode(unref(_sfc_main$l)),
29990
30153
  createVNode(unref(_sfc_main$k)),
29991
30154
  createVNode(unref(_sfc_main$j)),
29992
- createVNode(unref(_sfc_main$i)),
29993
- createVNode(unref(_sfc_main$h))
30155
+ createVNode(unref(_sfc_main$i))
29994
30156
  ]),
29995
30157
  _: 1
29996
30158
  })
@@ -30000,9 +30162,10 @@ const _sfc_main$4 = {
30000
30162
  createVNode(unref(ToolbarDivider), { horizontal: "" }),
30001
30163
  createVNode(unref(ToolbarRow), null, {
30002
30164
  default: withCtx(() => [
30003
- createVNode(unref(_sfc_main$g)),
30165
+ createVNode(unref(_sfc_main$h)),
30004
30166
  createVNode(unref(ToolbarDivider), { vertical: "" }),
30005
30167
  createVNode(unref(LineHeightControl)),
30168
+ createVNode(unref(LetterSpacingControl)),
30006
30169
  createVNode(unref(ToolbarDivider), { vertical: "" }),
30007
30170
  createVNode(unref(ListControl)),
30008
30171
  createVNode(unref(ToolbarDivider), { vertical: "" }),
@@ -30048,19 +30211,19 @@ const _sfc_main$3 = {
30048
30211
  createVNode(unref(ToolbarDivider), { vertical: "" }),
30049
30212
  createVNode(unref(ToolbarGroup), null, {
30050
30213
  default: withCtx(() => [
30051
- createVNode(unref(_sfc_main$n)),
30052
- createVNode(unref(_sfc_main$m))
30214
+ createVNode(unref(_sfc_main$o)),
30215
+ createVNode(unref(_sfc_main$n))
30053
30216
  ]),
30054
30217
  _: 1
30055
30218
  }),
30056
30219
  createVNode(unref(ToolbarDivider), { vertical: "" }),
30057
30220
  createVNode(unref(ToolbarGroup), null, {
30058
30221
  default: withCtx(() => [
30222
+ createVNode(unref(_sfc_main$m)),
30059
30223
  createVNode(unref(_sfc_main$l)),
30060
30224
  createVNode(unref(_sfc_main$k)),
30061
30225
  createVNode(unref(_sfc_main$j)),
30062
- createVNode(unref(_sfc_main$i)),
30063
- createVNode(unref(_sfc_main$h))
30226
+ createVNode(unref(_sfc_main$i))
30064
30227
  ]),
30065
30228
  _: 1
30066
30229
  })
@@ -30070,7 +30233,7 @@ const _sfc_main$3 = {
30070
30233
  createVNode(unref(ToolbarDivider), { horizontal: "" }),
30071
30234
  createVNode(unref(ToolbarRow), null, {
30072
30235
  default: withCtx(() => [
30073
- createVNode(unref(_sfc_main$g)),
30236
+ createVNode(unref(_sfc_main$h)),
30074
30237
  createVNode(unref(ToolbarDivider), { vertical: "" }),
30075
30238
  createVNode(unref(LineHeightControl)),
30076
30239
  createVNode(unref(ToolbarDivider), { vertical: "" }),
@@ -30421,7 +30584,7 @@ export {
30421
30584
  ButtonToggle,
30422
30585
  CaseStyle,
30423
30586
  Checkbox,
30424
- _sfc_main$r as ColorPicker,
30587
+ _sfc_main$s as ColorPicker,
30425
30588
  Device,
30426
30589
  DeviceList,
30427
30590
  Dropdown,