@1337exp/taoui 5.44.0 → 5.49.0

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/index.js CHANGED
@@ -1976,7 +1976,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
1976
1976
  };
1977
1977
  }
1978
1978
  });
1979
- const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-56341624"]]);
1979
+ const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-0706706b"]]);
1980
1980
  function listenFocusLoss(onLoss) {
1981
1981
  function onVisibilityChange() {
1982
1982
  if (document.hidden) {
@@ -2091,6 +2091,15 @@ function normalizeHex(input, alpha = false) {
2091
2091
  const c = parseColor(input);
2092
2092
  return c ? toHex(c, alpha) : null;
2093
2093
  }
2094
+ function mixOver(top, under, alpha) {
2095
+ const a = parseColor(top);
2096
+ const b = parseColor(under);
2097
+ if (!a || !b) {
2098
+ throw new Error(`[TaoUI] palette: "${top}" or "${under}" is not a colour`);
2099
+ }
2100
+ const channel2 = (x, y) => Math.round(x * alpha + y * (1 - alpha));
2101
+ return toHex({ r: channel2(a.r, b.r), g: channel2(a.g, b.g), b: channel2(a.b, b.b), a: 1 });
2102
+ }
2094
2103
  const WHITE = "#ffffff";
2095
2104
  const BLACK = "#0d0d0d";
2096
2105
  const toLinear = (hex) => {
@@ -2224,7 +2233,9 @@ function buildPaletteRoles(def, mode) {
2224
2233
  const toward = onAccent === WHITE ? -1 : 1;
2225
2234
  accent = shiftUntil(accent, toward, (c) => contrastRatio(c, onAccent) >= 4.5);
2226
2235
  }
2227
- const accentText = dark ? shiftUntil(accent, 1, (c) => ink(c) >= 4.6) : shiftUntil(accent, -1, (c) => ink(c) >= 4.6);
2236
+ const tinted = [bg, raised].flatMap((surface2) => (dark ? [0.08, 0.14] : [0.1, 0.16]).map((t) => mixOver(accent, surface2, t)));
2237
+ const inkTinted = (c) => Math.min(ink(c), ...tinted.map((tint2) => contrastRatio(c, tint2)));
2238
+ const accentText = dark ? shiftUntil(accent, 1, (c) => inkTinted(c) >= 4.6) : shiftUntil(accent, -1, (c) => inkTinted(c) >= 4.6);
2228
2239
  const away = onAccent === WHITE ? -1 : 1;
2229
2240
  const accentHover = shiftUntil(accent, away, (c) => hexToOklch(c).L * away >= hexToOklch(accent).L * away + 0.04);
2230
2241
  const accentActive = shiftUntil(accent, away, (c) => hexToOklch(c).L * away >= hexToOklch(accent).L * away + 0.08);
@@ -3098,6 +3109,15 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
3098
3109
  }
3099
3110
  });
3100
3111
  const TaoScrubber = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-517dc331"]]);
3112
+ function isVirtualAnchor(anchor) {
3113
+ return anchor != null && typeof anchor === "object" && typeof anchor.x === "number" && typeof anchor.y === "number" && typeof anchor.getBoundingClientRect !== "function";
3114
+ }
3115
+ function anchorRect(anchor) {
3116
+ if (isVirtualAnchor(anchor)) {
3117
+ return { left: anchor.x, top: anchor.y, width: anchor.width ?? 0, height: anchor.height ?? 0 };
3118
+ }
3119
+ return anchor.getBoundingClientRect();
3120
+ }
3101
3121
  const opposite = { top: "bottom", bottom: "top", left: "right", right: "left" };
3102
3122
  function computePosition(input) {
3103
3123
  const { anchor, size, viewport, placement = "bottom-start", gap = 4, pad = 8, flip = true } = input;
@@ -3162,12 +3182,12 @@ function useFloating(anchor, panel, open, options = {}) {
3162
3182
  const placed = ref(false);
3163
3183
  let strategy = "absolute";
3164
3184
  function update() {
3165
- const anchorEl = anchor.value;
3166
- const panelEl = panel.value;
3185
+ const anchorEl = toValue(anchor);
3186
+ const panelEl = toValue(panel);
3167
3187
  if (!anchorEl || !panelEl || typeof window === "undefined") {
3168
3188
  return;
3169
3189
  }
3170
- const rect = anchorEl.getBoundingClientRect();
3190
+ const rect = anchorRect(anchorEl);
3171
3191
  const result = computePosition({
3172
3192
  anchor: rect,
3173
3193
  size: { width: options.matchWidth ? rect.width : panelEl.offsetWidth, height: panelEl.offsetHeight },
@@ -3211,11 +3231,27 @@ function useFloating(anchor, panel, open, options = {}) {
3211
3231
  window.addEventListener("resize", onViewportChange);
3212
3232
  window.addEventListener("scroll", onViewportChange, true);
3213
3233
  await nextTick();
3214
- strategy = options.fixed || anchor.value && pinnedToScreen(anchor.value) ? "fixed" : "absolute";
3234
+ pickStrategy();
3215
3235
  update();
3216
3236
  },
3217
3237
  { immediate: true }
3218
3238
  );
3239
+ function pickStrategy() {
3240
+ const el = toValue(anchor);
3241
+ strategy = options.fixed || isVirtualAnchor(el) || el && pinnedToScreen(el) ? "fixed" : "absolute";
3242
+ }
3243
+ watch(
3244
+ () => {
3245
+ const el = toValue(anchor);
3246
+ return isVirtualAnchor(el) ? `${el.x},${el.y},${el.width ?? 0},${el.height ?? 0}` : el;
3247
+ },
3248
+ () => {
3249
+ if (toValue(open)) {
3250
+ pickStrategy();
3251
+ update();
3252
+ }
3253
+ }
3254
+ );
3219
3255
  watch(() => toValue(options.placement), () => onViewportChange());
3220
3256
  onBeforeUnmount(() => {
3221
3257
  if (typeof window !== "undefined") {
@@ -3372,7 +3408,8 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
3372
3408
  props: {
3373
3409
  modelValue: { type: Boolean, default: void 0 },
3374
3410
  placement: { default: "bottom-start" },
3375
- disabled: { type: Boolean, default: false }
3411
+ disabled: { type: Boolean, default: false },
3412
+ anchor: { default: null }
3376
3413
  },
3377
3414
  emits: ["update:modelValue", "change"],
3378
3415
  setup(__props, { emit: __emit }) {
@@ -3402,14 +3439,19 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
3402
3439
  setOpen(false);
3403
3440
  }
3404
3441
  function focusTrigger() {
3442
+ if (isVirtualAnchor(props.anchor)) {
3443
+ returnTo?.focus?.({ preventScroll: true });
3444
+ return;
3445
+ }
3405
3446
  const root = triggerRef.value;
3406
3447
  const focusable = root?.querySelector(
3407
3448
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
3408
3449
  );
3409
3450
  (focusable ?? root)?.focus?.();
3410
3451
  }
3411
- const { style: panelStyle } = useFloating(triggerRef, panelRef, open, { placement: () => props.placement });
3412
- useDismiss(open, () => [triggerRef.value, panelRef.value], close);
3452
+ let returnTo = null;
3453
+ const { style: panelStyle } = useFloating(() => props.anchor ?? triggerRef.value, panelRef, open, { placement: () => props.placement });
3454
+ useDismiss(open, () => [triggerRef.value, props.anchor instanceof Element ? props.anchor : null, panelRef.value], close);
3413
3455
  useLayer(open, {
3414
3456
  onEscape: () => {
3415
3457
  close();
@@ -3418,8 +3460,10 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
3418
3460
  });
3419
3461
  watch(open, (isOpen) => {
3420
3462
  if (isOpen) {
3421
- panelSize.value = resolveSize(triggerRef.value);
3422
- panelDensity.value = resolveDensity(triggerRef.value);
3463
+ const host = props.anchor instanceof Element ? props.anchor : triggerRef.value;
3464
+ returnTo = isVirtualAnchor(props.anchor) && document.activeElement instanceof HTMLElement ? document.activeElement : null;
3465
+ panelSize.value = resolveSize(host);
3466
+ panelDensity.value = resolveDensity(host);
3423
3467
  void nextTick(() => panelRef.value?.focus({ preventScroll: true }));
3424
3468
  }
3425
3469
  });
@@ -3453,7 +3497,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
3453
3497
  };
3454
3498
  }
3455
3499
  });
3456
- const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-5c39ad1c"]]);
3500
+ const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-98bcaeef"]]);
3457
3501
  const spoilerGroupKey = Symbol("taoSpoilerGroup");
3458
3502
  function frameStyle(bordered) {
3459
3503
  if (bordered === void 0 || bordered === null) {
@@ -4892,7 +4936,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
4892
4936
  };
4893
4937
  }
4894
4938
  });
4895
- const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-0af1f161"]]);
4939
+ const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-f5a38331"]]);
4896
4940
  const _hoisted_1$S = ["role", "aria-hidden"];
4897
4941
  const _hoisted_2$N = {
4898
4942
  key: 1,
@@ -5775,7 +5819,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5775
5819
  items: {},
5776
5820
  open: { type: Boolean },
5777
5821
  anchor: {},
5778
- placement: { default: "bottom-end" },
5822
+ placement: { default: void 0 },
5779
5823
  label: { default: void 0 },
5780
5824
  closeOnScroll: { type: Boolean, default: false }
5781
5825
  },
@@ -5783,6 +5827,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5783
5827
  setup(__props, { emit: __emit }) {
5784
5828
  const props = __props;
5785
5829
  const emit = __emit;
5830
+ let returnTo = null;
5831
+ let lastReason;
5786
5832
  const parent = inject(menuTreeKey, null);
5787
5833
  const isSub = parent !== null;
5788
5834
  const ownRootId = useId();
@@ -5793,11 +5839,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5793
5839
  emit("select", item.id);
5794
5840
  }
5795
5841
  },
5796
- closeAll: (reason) => emit("close", reason)
5842
+ closeAll: (reason) => {
5843
+ lastReason = reason;
5844
+ emit("close", reason);
5845
+ }
5797
5846
  };
5798
5847
  provide(menuTreeKey, tree);
5799
5848
  const panelRef = ref(null);
5800
- const anchorRef = computed(() => props.anchor);
5801
5849
  const itemRefs = ref([]);
5802
5850
  const activeIndex = ref(-1);
5803
5851
  const openSub = ref(-1);
@@ -5807,13 +5855,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5807
5855
  const enabled = computed(() => props.items.map(isMenuSelectable));
5808
5856
  const itemId = (index) => `${menuId}-item-${index}`;
5809
5857
  const activeId = computed(() => activeIndex.value >= 0 ? itemId(activeIndex.value) : void 0);
5810
- const { style: panelStyle } = useFloating(anchorRef, panelRef, () => props.open, {
5811
- placement: () => props.placement,
5858
+ const { style: panelStyle } = useFloating(() => props.anchor, panelRef, () => props.open, {
5859
+ placement: () => props.placement ?? (isVirtualAnchor(props.anchor) ? "bottom-start" : "bottom-end"),
5812
5860
  gap: isSub ? 0 : 4
5813
5861
  });
5814
5862
  useDismiss(
5815
5863
  () => props.open && !isSub,
5816
- () => [props.anchor, ...document.querySelectorAll(`[data-tao-menu-root="${tree.rootId}"]`)],
5864
+ () => [props.anchor instanceof Element ? props.anchor : null, ...document.querySelectorAll(`[data-tao-menu-root="${tree.rootId}"]`)],
5817
5865
  () => tree.closeAll("outside")
5818
5866
  );
5819
5867
  useLayer(() => props.open, {
@@ -5903,15 +5951,30 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5903
5951
  async (isOpen) => {
5904
5952
  if (!isOpen) {
5905
5953
  closeSub();
5954
+ restoreFocus();
5906
5955
  return;
5907
5956
  }
5957
+ lastReason = void 0;
5958
+ returnTo = !isSub && isVirtualAnchor(props.anchor) && document.activeElement instanceof HTMLElement ? document.activeElement : null;
5908
5959
  activeIndex.value = enabled.value.indexOf(true);
5909
- density.value = resolveDensity(props.anchor);
5960
+ density.value = resolveDensity(props.anchor instanceof Element ? props.anchor : null);
5910
5961
  await nextTick();
5911
5962
  panelRef.value?.focus({ preventScroll: true });
5912
5963
  },
5913
5964
  { immediate: true }
5914
5965
  );
5966
+ function restoreFocus() {
5967
+ const target = returnTo;
5968
+ returnTo = null;
5969
+ if (!target || !target.isConnected) {
5970
+ return;
5971
+ }
5972
+ const active = document.activeElement;
5973
+ const lost = !active || active === document.body || Boolean(panelRef.value?.contains(active));
5974
+ if (lastReason ? menuReturnsFocus(lastReason) : lost) {
5975
+ target.focus({ preventScroll: true });
5976
+ }
5977
+ }
5915
5978
  watch(
5916
5979
  () => props.open && props.closeOnScroll && !isSub,
5917
5980
  (listen, _was, onCleanup) => {
@@ -6033,6 +6096,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6033
6096
  menuLabel: {},
6034
6097
  closeOnScroll: { type: Boolean, default: false },
6035
6098
  size: { default: void 0 },
6099
+ dots: { default: "vertical" },
6036
6100
  tabbable: { type: Boolean, default: true }
6037
6101
  },
6038
6102
  emits: ["select"],
@@ -6073,7 +6137,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6073
6137
  }, [
6074
6138
  _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {}, void 0, true, 0) : (openBlock(), createElementBlock("span", _hoisted_3$z, [
6075
6139
  renderSlot(_ctx.$slots, "icon", {}, () => [
6076
- createVNode(TaoIcon, { name: "tao-more-vertical" })
6140
+ createVNode(TaoIcon, {
6141
+ name: __props.dots === "horizontal" ? "tao-more-horizontal" : "tao-more-vertical"
6142
+ }, null, 8, ["name"])
6077
6143
  ], true)
6078
6144
  ]))
6079
6145
  ], 42, _hoisted_2$G),
@@ -6099,7 +6165,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6099
6165
  };
6100
6166
  }
6101
6167
  });
6102
- const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-0e71d618"]]);
6168
+ const TaoDropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-a2acd4d2"]]);
6103
6169
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
6104
6170
  ...{ name: "TaoContextMenu" },
6105
6171
  __name: "TaoContextMenu",
@@ -6115,15 +6181,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6115
6181
  const l10n = useLocaleText(props, "contextMenu");
6116
6182
  const emit = __emit;
6117
6183
  const isOpen = ref(false);
6118
- const anchor = ref(null);
6119
6184
  const point = ref({ x: 0, y: 0 });
6120
- let returnTo = null;
6121
6185
  async function onContextMenu(event) {
6122
6186
  if (props.disabled || !props.items.length) {
6123
6187
  return;
6124
6188
  }
6125
6189
  event.preventDefault();
6126
- returnTo = document.activeElement instanceof HTMLElement ? document.activeElement : null;
6127
6190
  const target = event.target instanceof HTMLElement ? event.target : null;
6128
6191
  const fromKeyboard = event.clientX === 0 && event.clientY === 0 && target;
6129
6192
  const rect = fromKeyboard ? target.getBoundingClientRect() : null;
@@ -6133,12 +6196,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6133
6196
  isOpen.value = true;
6134
6197
  emit("open", { ...point.value });
6135
6198
  }
6136
- function onClose(reason) {
6199
+ function onClose() {
6137
6200
  isOpen.value = false;
6138
- if (menuReturnsFocus(reason)) {
6139
- returnTo?.focus?.();
6140
- }
6141
- returnTo = null;
6142
6201
  }
6143
6202
  return (_ctx, _cache) => {
6144
6203
  return openBlock(), createElementBlock("div", {
@@ -6146,18 +6205,10 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6146
6205
  onContextmenu: onContextMenu
6147
6206
  }, [
6148
6207
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
6149
- createElementVNode("span", {
6150
- ref_key: "anchor",
6151
- ref: anchor,
6152
- class: "tao-context-menu__anchor",
6153
- "aria-hidden": "true",
6154
- style: normalizeStyle({ left: `${point.value.x}px`, top: `${point.value.y}px` })
6155
- }, null, 4),
6156
6208
  createVNode(_sfc_main$P, {
6157
6209
  items: __props.items,
6158
6210
  open: isOpen.value,
6159
- anchor: anchor.value,
6160
- placement: "bottom-start",
6211
+ anchor: point.value,
6161
6212
  label: __props.menuLabel ?? unref(l10n).menuLabel,
6162
6213
  "close-on-scroll": __props.closeOnScroll,
6163
6214
  onSelect: _cache[0] || (_cache[0] = ($event) => emit("select", $event)),
@@ -6175,7 +6226,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6175
6226
  };
6176
6227
  }
6177
6228
  });
6178
- const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-65a7f071"]]);
6229
+ const TaoContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-2d883ec7"]]);
6179
6230
  const _hoisted_1$K = ["aria-label"];
6180
6231
  const _hoisted_2$F = ["tabindex", "aria-haspopup", "aria-expanded", "aria-disabled", "onClick", "onKeydown", "onMouseenter", "onFocus"];
6181
6232
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
@@ -8822,7 +8873,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8822
8873
  };
8823
8874
  }
8824
8875
  });
8825
- const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-bb653baa"]]);
8876
+ const TaoPinCode = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-572d04ea"]]);
8826
8877
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
8827
8878
  ...{ name: "TaoLink" },
8828
8879
  __name: "TaoLink",
@@ -9169,7 +9220,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
9169
9220
  };
9170
9221
  }
9171
9222
  });
9172
- const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-8edb0d09"]]);
9223
+ const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-16337b70"]]);
9173
9224
  const segmentedKey = Symbol("taoSegmented");
9174
9225
  const _hoisted_1$u = ["disabled", "aria-describedby", "aria-invalid", "aria-labelledby", "id"];
9175
9226
  const _hoisted_2$r = {
@@ -9307,7 +9358,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
9307
9358
  };
9308
9359
  }
9309
9360
  });
9310
- const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-c4a6edd1"]]);
9361
+ const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-adbed53a"]]);
9311
9362
  const _hoisted_1$t = ["for"];
9312
9363
  const _hoisted_2$q = ["id", "name", "value", "checked", "disabled", "aria-label"];
9313
9364
  const _hoisted_3$m = { class: "tao-segmented-option__face" };
@@ -9417,7 +9468,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
9417
9468
  };
9418
9469
  }
9419
9470
  });
9420
- const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-71f5d295"]]);
9471
+ const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-1e7d5db0"]]);
9421
9472
  const _hoisted_1$s = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
9422
9473
  const _hoisted_2$p = { class: "tao-color-picker__strips" };
9423
9474
  const _hoisted_3$l = { class: "tao-color-picker__row tao-size-small" };
@@ -10308,7 +10359,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
10308
10359
  };
10309
10360
  }
10310
10361
  });
10311
- const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-14e11c2a"]]);
10362
+ const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-c70adde0"]]);
10312
10363
  function presetLine(options) {
10313
10364
  const usable2 = options.filter((option) => !option.disabled);
10314
10365
  return [...usable2.filter((option) => !option.default), ...usable2.filter((option) => option.default)];
@@ -10608,7 +10659,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
10608
10659
  };
10609
10660
  }
10610
10661
  });
10611
- const TaoPresetInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7682df3a"]]);
10662
+ const TaoPresetInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-838c0175"]]);
10612
10663
  const fold = (text) => text.replace(/[^]/g, (ch) => {
10613
10664
  const lower = ch.toLowerCase();
10614
10665
  const same = lower.length === ch.length ? lower : ch;
@@ -10909,7 +10960,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
10909
10960
  };
10910
10961
  }
10911
10962
  });
10912
- const TaoCommandList = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-7e038749"]]);
10963
+ const TaoCommandList = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-989c51df"]]);
10913
10964
  const _hoisted_1$n = ["aria-modal", "aria-label"];
10914
10965
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
10915
10966
  ...{ name: "TaoCommandPalette", inheritAttrs: false },
@@ -11233,7 +11284,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
11233
11284
  };
11234
11285
  }
11235
11286
  });
11236
- const TaoDocTabs = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-0a708fd8"]]);
11287
+ const TaoDocTabs = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-6586cadc"]]);
11237
11288
  const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
11238
11289
  function formatTaoDateIso(parts) {
11239
11290
  return `${String(parts.y).padStart(4, "0")}-${String(parts.m).padStart(2, "0")}-${String(parts.d).padStart(2, "0")}`;
@@ -13226,7 +13277,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
13226
13277
  };
13227
13278
  }
13228
13279
  });
13229
- const TaoListItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-a366ba66"]]);
13280
+ const TaoListItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-5a96e530"]]);
13230
13281
  const _hoisted_1$9 = {
13231
13282
  class: "tao-skeleton-group",
13232
13283
  "aria-hidden": true
@@ -13655,7 +13706,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
13655
13706
  };
13656
13707
  }
13657
13708
  });
13658
- const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-83b7bf11"]]);
13709
+ const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-41d64e0e"]]);
13659
13710
  const _hoisted_1$6 = ["aria-label"];
13660
13711
  const _hoisted_2$5 = { class: "tao-breadcrumb__list" };
13661
13712
  const _hoisted_3$4 = {
@@ -13851,7 +13902,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
13851
13902
  };
13852
13903
  }
13853
13904
  });
13854
- const TaoCounter = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-69fa7f4b"]]);
13905
+ const TaoCounter = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-3a9906c5"]]);
13855
13906
  const GLIDE_TIME = 325;
13856
13907
  const FLICK_SPEED = 0.3;
13857
13908
  function glideTarget(from, velocity, pitch, max) {