@deskhero/dh_ui 2.88.3 → 2.88.5

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/dh_ui.es.js CHANGED
@@ -55016,7 +55016,7 @@ function SX(e) {
55016
55016
  };
55017
55017
  }
55018
55018
  //#endregion
55019
- //#region node_modules/.pnpm/@tiptap+core@3.29.0_@tiptap+pm@3.23.5/node_modules/@tiptap/core/dist/index.js
55019
+ //#region node_modules/.pnpm/@tiptap+core@3.29.2_@tiptap+pm@3.23.5/node_modules/@tiptap/core/dist/index.js
55020
55020
  var NSe = Object.defineProperty, CX = (e, t) => {
55021
55021
  for (var n in t) NSe(e, n, {
55022
55022
  get: t[n],
@@ -58198,7 +58198,7 @@ function dQ(e) {
58198
58198
  });
58199
58199
  }
58200
58200
  //#endregion
58201
- //#region node_modules/.pnpm/@tiptap+vue-3@3.23.5_@floating-ui+dom@1.8.0_@tiptap+core@3.29.0_@tiptap+pm@3.23.5_vue@3.5.34/node_modules/@tiptap/vue-3/dist/index.js
58201
+ //#region node_modules/.pnpm/@tiptap+vue-3@3.23.5_@floating-ui+dom@1.8.0_@tiptap+core@3.29.2_@tiptap+pm@3.23.5_vue@3.5.34/node_modules/@tiptap/vue-3/dist/index.js
58202
58202
  function fQ(e) {
58203
58203
  return p((t, n) => ({
58204
58204
  get() {
@@ -58314,7 +58314,7 @@ m({
58314
58314
  }
58315
58315
  });
58316
58316
  //#endregion
58317
- //#region node_modules/.pnpm/@tiptap+core@3.29.0_@tiptap+pm@3.23.5/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
58317
+ //#region node_modules/.pnpm/@tiptap+core@3.29.2_@tiptap+pm@3.23.5/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
58318
58318
  var pQ = (e, t) => {
58319
58319
  if (e === "slot") return 0;
58320
58320
  if (e instanceof Function) return e(t);
@@ -59392,7 +59392,7 @@ function t1(e, t = null, n = null) {
59392
59392
  return a;
59393
59393
  }
59394
59394
  //#endregion
59395
- //#region node_modules/.pnpm/@tiptap+extension-link@3.29.0_@tiptap+core@3.29.0_@tiptap+pm@3.23.5/node_modules/@tiptap/extension-link/dist/index.js
59395
+ //#region node_modules/.pnpm/@tiptap+extension-link@3.29.2_@tiptap+core@3.29.2_@tiptap+pm@3.23.5/node_modules/@tiptap/extension-link/dist/index.js
59396
59396
  var n1 = "[\0- \xA0 ᠎ -\u2029  ]", STe = new RegExp(n1), CTe = RegExp(`${n1}$`), wTe = new RegExp(n1, "g");
59397
59397
  function TTe(e) {
59398
59398
  return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
@@ -60431,7 +60431,7 @@ JZ.create({
60431
60431
  }
60432
60432
  });
60433
60433
  //#endregion
60434
- //#region node_modules/.pnpm/@tiptap+extension-paragraph@3.29.0_@tiptap+core@3.29.0/node_modules/@tiptap/extension-paragraph/dist/index.js
60434
+ //#region node_modules/.pnpm/@tiptap+extension-paragraph@3.29.2_@tiptap+core@3.29.2/node_modules/@tiptap/extension-paragraph/dist/index.js
60435
60435
  var k1 = " ", A1 = "\xA0", YTe = uQ.create({
60436
60436
  name: "paragraph",
60437
60437
  priority: 1e3,
@@ -63104,7 +63104,7 @@ function IDe({ allowTableNodeSelection: e = !1 } = {}) {
63104
63104
  });
63105
63105
  }
63106
63106
  //#endregion
63107
- //#region node_modules/.pnpm/@tiptap+extension-table@3.23.5_@tiptap+core@3.29.0_@tiptap+pm@3.23.5/node_modules/@tiptap/extension-table/dist/index.js
63107
+ //#region node_modules/.pnpm/@tiptap+extension-table@3.23.5_@tiptap+core@3.29.2_@tiptap+pm@3.23.5/node_modules/@tiptap/extension-table/dist/index.js
63108
63108
  function X0(e) {
63109
63109
  return e === "left" || e === "right" || e === "center" ? e : null;
63110
63110
  }
@@ -64884,7 +64884,7 @@ var hOe = uQ.create({
64884
64884
  }
64885
64885
  });
64886
64886
  //#endregion
64887
- //#region node_modules/.pnpm/@tiptap+suggestion@3.23.5_@tiptap+core@3.29.0_@tiptap+pm@3.23.5/node_modules/@tiptap/suggestion/dist/index.js
64887
+ //#region node_modules/.pnpm/@tiptap+suggestion@3.23.5_@tiptap+core@3.29.2_@tiptap+pm@3.23.5/node_modules/@tiptap/suggestion/dist/index.js
64888
64888
  function gOe(e) {
64889
64889
  let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = NZ(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
64890
64890
  if (!p) return null;
@@ -65083,7 +65083,7 @@ function x2({ pluginKey: e = vOe, editor: t, char: n = "@", allowSpaces: r = !1,
65083
65083
  return T;
65084
65084
  }
65085
65085
  //#endregion
65086
- //#region node_modules/.pnpm/@tiptap+extension-mention@3.23.5_@tiptap+core@3.29.0_@tiptap+pm@3.23.5_@tiptap+suggestion@3.23.5/node_modules/@tiptap/extension-mention/dist/index.js
65086
+ //#region node_modules/.pnpm/@tiptap+extension-mention@3.23.5_@tiptap+core@3.29.2_@tiptap+pm@3.23.5_@tiptap+suggestion@3.23.5/node_modules/@tiptap/extension-mention/dist/index.js
65087
65087
  function yOe({ editor: e, overrideSuggestionOptions: t, extensionName: n, char: r = "@" }) {
65088
65088
  return {
65089
65089
  editor: e,
@@ -65273,7 +65273,7 @@ function SOe(e) {
65273
65273
  }
65274
65274
  function s() {
65275
65275
  if (!e) return;
65276
- e.innerHTML = "", t.forEach((t, r) => {
65276
+ e.innerHTML = "", e.style.display = t.length ? "" : "none", t.forEach((t, r) => {
65277
65277
  let i = document.createElement("div");
65278
65278
  i.className = "dh-mention-item" + (r === n ? " is-active" : ""), i.setAttribute("role", "option"), i.textContent = t.text, i.onclick = () => c(t), e && e.appendChild(i);
65279
65279
  });
@@ -65299,6 +65299,7 @@ function SOe(e) {
65299
65299
  l(e);
65300
65300
  },
65301
65301
  onKeyDown(e) {
65302
+ if (!t.length) return !1;
65302
65303
  if (e.event.key === "ArrowDown") return n = Math.min(n + 1, Math.max(0, t.length - 1)), s(), !0;
65303
65304
  if (e.event.key === "ArrowUp") return n = Math.max(n - 1, 0), s(), !0;
65304
65305
  if (e.event.key === "Enter" || e.event.key === "Tab") {
@@ -65509,7 +65510,7 @@ var FOe = /* @__PURE__ */ K(MOe, [["render", POe]]), D2 = /* @__PURE__ */ K(/* @
65509
65510
  style: D(v.value)
65510
65511
  }, [F(e.$slots, "items", { close: g }, void 0, !0)], 4)) : o("", !0)]))], 64));
65511
65512
  }
65512
- }), [["__scopeId", "data-v-78e01e4d"]]), IOe = {};
65513
+ }), [["__scopeId", "data-v-63785fcb"]]), IOe = {};
65513
65514
  function LOe(e, t) {
65514
65515
  return M(), s("svg", C({
65515
65516
  fill: "currentColor",
@@ -98011,7 +98012,7 @@ function aje() {
98011
98012
  r?.command?.(e);
98012
98013
  }
98013
98014
  function s() {
98014
- e && (e.innerHTML = "", t.forEach((t, r) => {
98015
+ e && (e.innerHTML = "", e.style.display = t.length ? "" : "none", t.forEach((t, r) => {
98015
98016
  let i = t ?? {}, a = String(i.emoji || i.char || ""), s = String(i.title || i.name || ""), c = document.createElement("div");
98016
98017
  c.className = "dh-mention-item" + (r === n ? " is-active" : ""), c.setAttribute("role", "option"), c.textContent = `${a} ${s}`.trim(), c.onclick = () => o(t), e?.appendChild(c);
98017
98018
  }), rje(e));
@@ -98031,7 +98032,7 @@ function aje() {
98031
98032
  },
98032
98033
  onKeyDown(e) {
98033
98034
  let r = e.event;
98034
- if (!r) return !1;
98035
+ if (!r || !t.length) return !1;
98035
98036
  if (r.key === "ArrowDown") return n = Math.min(n + 1, Math.max(0, t.length - 1)), s(), !0;
98036
98037
  if (r.key === "ArrowUp") return n = Math.max(n - 1, 0), s(), !0;
98037
98038
  if (r.key === "Enter" || r.key === "Tab") {
@@ -107395,7 +107396,7 @@ var KVe = /* @__PURE__ */ H9(HVe, [["render", GVe], ["__scopeId", "data-v-354ca8
107395
107396
  onMousedown: Se((e) => c(t), ["prevent"])
107396
107397
  }, L(R(Z9)(t, e.labelKey)), 43, iHe))), 128)), e.isLoading ? (M(), s("li", aHe, L(e.loadingText), 1)) : o("", !0)], 512)), [[ve, e.open]]);
107397
107398
  }
107398
- }), [["__scopeId", "data-v-cdcfb55e"]]), $9 = {
107399
+ }), [["__scopeId", "data-v-e219cec7"]]), $9 = {
107399
107400
  DEBOUNCE_DELAY: 300,
107400
107401
  MIN_SEARCH_LENGTH: 0,
107401
107402
  DEFAULT_PLACEHOLDER: "Type or select",