@wow-two-beta/fe 0.0.32 → 0.0.34

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.
Files changed (73) hide show
  1. package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js +155 -0
  2. package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js.map +1 -0
  3. package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js → BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js} +74 -31
  4. package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js.map +1 -0
  5. package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js → ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js} +70 -230
  6. package/dist/chunks/ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js.map +1 -0
  7. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js} +87 -233
  8. package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js.map +1 -0
  9. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js +216 -0
  10. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js.map +1 -0
  11. package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js → KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js} +390 -203
  12. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js.map +1 -0
  13. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -1
  14. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js → RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js} +939 -1063
  15. package/dist/chunks/RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js.map +1 -0
  16. package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js +447 -0
  17. package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js.map +1 -0
  18. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js → TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js} +313 -109
  19. package/dist/chunks/TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js.map +1 -0
  20. package/dist/foundation/device/hooks/UseBreakpointRange.d.ts +21 -0
  21. package/dist/foundation/device/index.d.ts +1 -0
  22. package/dist/foundation/device/index.js +13 -0
  23. package/dist/foundation/device/index.js.map +1 -1
  24. package/dist/foundation/http/ApiDecoderExtensions.d.ts +22 -0
  25. package/dist/foundation/http/ApiFailureExtensions.d.ts +22 -0
  26. package/dist/foundation/http/ProblemDetailsExtensions.d.ts +31 -0
  27. package/dist/foundation/http/index.d.ts +3 -0
  28. package/dist/foundation/http/index.js +93 -2
  29. package/dist/foundation/http/index.js.map +1 -1
  30. package/dist/index.js +642 -633
  31. package/dist/index.js.map +1 -1
  32. package/dist/presentation/actions/index.d.ts +1 -0
  33. package/dist/presentation/actions/index.js +12 -11
  34. package/dist/presentation/actions/refreshButton/RefreshButton.vue.d.ts +26 -0
  35. package/dist/presentation/actions/refreshButton/index.d.ts +1 -0
  36. package/dist/presentation/display/badge/Badge.variants.d.ts +77 -10
  37. package/dist/presentation/display/badge/Badge.vue.d.ts +18 -1
  38. package/dist/presentation/display/badge/index.d.ts +1 -1
  39. package/dist/presentation/display/card/CardLink.vue.d.ts +19 -0
  40. package/dist/presentation/display/card/index.d.ts +1 -0
  41. package/dist/presentation/display/index.js +63 -60
  42. package/dist/presentation/display/index.js.map +1 -1
  43. package/dist/presentation/display/listGroup/ListGroupItem.vue.d.ts +17 -0
  44. package/dist/presentation/display/sparkline/Sparkline.vue.d.ts +32 -2
  45. package/dist/presentation/display/sparkline/index.d.ts +1 -1
  46. package/dist/presentation/feedback/dataRegion/DataRegion.vue.d.ts +1 -1
  47. package/dist/presentation/feedback/index.js +43 -42
  48. package/dist/presentation/feedback/index.js.map +1 -1
  49. package/dist/presentation/forms/index.d.ts +2 -0
  50. package/dist/presentation/forms/index.js +140 -137
  51. package/dist/presentation/forms/rowsField/RowsField.vue.d.ts +56 -0
  52. package/dist/presentation/forms/rowsField/index.d.ts +1 -0
  53. package/dist/presentation/forms/tagsInput/TagsInput.vue.d.ts +1 -1
  54. package/dist/presentation/forms/typedConfirmField/TypedConfirmField.vue.d.ts +61 -0
  55. package/dist/presentation/forms/typedConfirmField/UseTypedConfirmation.d.ts +32 -0
  56. package/dist/presentation/forms/typedConfirmField/index.d.ts +2 -0
  57. package/dist/presentation/overlays/index.d.ts +1 -0
  58. package/dist/presentation/overlays/index.js +6 -5
  59. package/dist/presentation/overlays/typedConfirmModal/TypedConfirmModal.vue.d.ts +80 -0
  60. package/dist/presentation/overlays/typedConfirmModal/index.d.ts +1 -0
  61. package/dist/router/adapters/vueRouter/hooks/UseListDetailRoute.d.ts +28 -0
  62. package/dist/router/adapters/vueRouter/index.d.ts +1 -0
  63. package/dist/router/index.js +34 -0
  64. package/dist/router/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map +0 -1
  67. package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map +0 -1
  68. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map +0 -1
  69. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +0 -1
  70. package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map +0 -1
  71. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +0 -44
  72. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +0 -1
  73. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +0 -1
@@ -1,8 +1,10 @@
1
- import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, renderSlot, ref, watch, useSlots, unref, createVNode, withCtx, Fragment, renderList, normalizeClass, createBlock, resolveDynamicComponent, createCommentVNode, cloneVNode, createTextVNode, toDisplayString, createElementVNode, shallowRef, onMounted, onBeforeUnmount, inject, provide, normalizeStyle, isVNode, watchEffect, onUpdated, withDirectives, vModelSelect, getCurrentInstance, withModifiers, createSlots, vShow, onUnmounted, onScopeDispose, nextTick } from "vue";
1
+ import { defineComponent, useAttrs, useTemplateRef, ref, watch, computed, renderSlot, openBlock, createElementBlock, mergeProps, useSlots, unref, Fragment, normalizeClass, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, createVNode, withCtx, createBlock, renderList, resolveDynamicComponent, cloneVNode, shallowRef, onMounted, onBeforeUnmount, inject, provide, normalizeProps, guardReactiveProps, normalizeStyle, isVNode, watchEffect, onUpdated, withDirectives, vModelSelect, getCurrentInstance, withModifiers, createSlots, vShow, onUnmounted, onScopeDispose, nextTick } from "vue";
2
2
  import { U as UrlExtensions } from "./UrlExtensions-DqgLm0KY.js";
3
3
  import { c as cn } from "./Cn-C7De6POU.js";
4
4
  import { u as useSkeletonState, p as provideSkeletonState, s as skeletonBoxClass } from "./SkeletonStateContext-tVYMa6xt.js";
5
5
  import { S as SkeletonStateLine } from "./SkeletonStateLine-anGWn2Vm.js";
6
+ import { H as HtmlElement, B as ButtonType } from "./HtmlValues-jlKY5f9C.js";
7
+ import { P as Primitive } from "./Primitive-D-9ShOm7.js";
6
8
  import { S as SizePreset, T as Tones } from "./Tones-BU9yaXKf.js";
7
9
  import { _ as _sfc_main$1O } from "./Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js";
8
10
  import { u as useLocale } from "./LocaleContext-B7vUZmX-.js";
@@ -16,79 +18,34 @@ import { u as useLocaleFormatters } from "./LocaleFormatters-DadF2y7-.js";
16
18
  import { t as toEpochMs, a as toRelativeTimeParts } from "./RelativeTimeParts-CMPp-i9m.js";
17
19
  import { _ as _sfc_main$1S } from "./Tooltip.vue_vue_type_script_setup_true_lang-vsFDijcV.js";
18
20
  import { u as useClipboard } from "./UseClipboard-D5jEv39w.js";
19
- import { tv } from "tailwind-variants";
21
+ import { _ as _sfc_main$1T } from "./FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js";
20
22
  import { S as Size } from "./StyleTokens-Bkz7Dm5L.js";
21
23
  import { S as StatusTone } from "./StatusTone-BoPK1s09.js";
22
- import { d as _sfc_main$1T, _ as _sfc_main$1W, n as nowZoned, z as zonedAtHour, m as formatZonedTime, o as minutesBetween, p as today, q as daysBetween, r as isWeekend, s as addDays, v as isToday, w as maxZoned } from "./FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js";
23
- import { _ as _sfc_main$1U } from "./InlineLayout.vue_vue_type_script_setup_true_lang-c_IaJYJj.js";
24
+ import { c as _sfc_main$1U, _ as _sfc_main$1X, n as nowZoned, z as zonedAtHour, k as formatZonedTime, m as minutesBetween, l as today, o as daysBetween, p as isWeekend, q as addDays, r as isToday, s as maxZoned } from "./ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js";
25
+ import { _ as _sfc_main$1V } from "./InlineLayout.vue_vue_type_script_setup_true_lang-c_IaJYJj.js";
24
26
  import { C as CornerPosition } from "./CornerPosition-FneGck5D.js";
25
27
  import { d as dataAttr } from "./DataAttr-7BR67dTj.js";
26
28
  import { u as useControlled } from "./UseControlled-BQneb7BW.js";
27
- import { B as ButtonType, H as HtmlElement } from "./HtmlValues-jlKY5f9C.js";
28
29
  import { r as resolveElement } from "./ResolveElement-CyRfM82x.js";
29
- import { P as Primitive } from "./Primitive-D-9ShOm7.js";
30
30
  import { P as Presence } from "./Presence-DDk0ZtAr.js";
31
- import { _ as _sfc_main$1V, O as Orientation, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
31
+ import { _ as _sfc_main$1W, O as Orientation, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
32
32
  import { O as Orientation$1 } from "./Orientation-u-sYunuG.js";
33
+ import { tv } from "tailwind-variants";
33
34
  import { S as SelectionMode, i as isNullish, c as compareValues, l as selectionStatus, a as createSelection, q as SelectionStatus, e as extendSelection, w as isSelected, j as deselect, k as select, h as toggle, b as toggleAll } from "./Sort-fDS6a_c3.js";
34
35
  import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
35
36
  import { u as useReducedMotion } from "./UseReducedMotion-NZ5fg-Xb.js";
36
37
  import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
37
38
  import { Temporal } from "temporal-polyfill";
38
39
  import { f as readableForeground } from "./ReadableForeground-CgfzP7Tl.js";
39
- import { _ as _sfc_main$1X } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
40
+ import { _ as _sfc_main$1Y } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
40
41
  import { s as surfaceVariants } from "./SurfaceStyles-DUVz963_.js";
41
42
  import { a as SeverityIcons, S as SeverityIconClasses } from "./SeverityIcons-KuC3ZBkI.js";
42
43
  import { K as Key } from "./Key-CQlkK53D.js";
43
- import { _ as _sfc_main$1Y } from "./ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js";
44
+ import { _ as _sfc_main$1Z } from "./ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js";
44
45
  import { u as useMutationObserver } from "./UseMutationObserver-Df2C_0Vc.js";
45
46
  import { u as useResizeObserver } from "./UseResizeObserver-Des0Rurq.js";
46
- const CodeTextVariant = {
47
- /** Refers to inline code within a text run. */
48
- Inline: "inline",
49
- /** Refers to a full-width block. */
50
- Block: "block"
51
- };
52
- const codeVariants = tv({
53
- base: "font-mono text-sm",
54
- variants: {
55
- variant: {
56
- inline: "rounded-sm bg-muted px-1 py-0.5 text-foreground",
57
- block: "block w-full overflow-x-auto rounded-md bg-muted p-4 text-foreground"
58
- }
59
- },
60
- defaultVariants: {
61
- variant: "inline"
62
- }
63
- });
64
- const _sfc_main$1N = /* @__PURE__ */ defineComponent({
65
- ...{ name: "CodeText", inheritAttrs: false },
66
- __name: "CodeText",
67
- props: {
68
- variant: {}
69
- },
70
- setup(__props, { expose: __expose }) {
71
- const props = __props;
72
- const attrs = useAttrs();
73
- const el = useTemplateRef("el");
74
- const classes = computed(() => cn(codeVariants({ variant: props.variant }), attrs.class));
75
- const rest = computed(() => {
76
- const { class: _class, ...others } = attrs;
77
- return others;
78
- });
79
- __expose({ el });
80
- return (_ctx, _cache) => {
81
- return openBlock(), createElementBlock("code", mergeProps({
82
- ref_key: "el",
83
- ref: el
84
- }, rest.value, { class: classes.value }), [
85
- renderSlot(_ctx.$slots, "default")
86
- ], 16);
87
- };
88
- }
89
- });
90
47
  const _hoisted_1$1l = ["alt"];
91
- const _sfc_main$1M = /* @__PURE__ */ defineComponent({
48
+ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
92
49
  ...{ name: "ImagePreview", inheritAttrs: false },
93
50
  __name: "ImagePreview",
94
51
  setup(__props, { expose: __expose }) {
@@ -138,10 +95,22 @@ const BadgeVariant = {
138
95
  /** Refers to the informational tint. */
139
96
  Info: "info",
140
97
  /** Refers to a bordered, transparent fill. */
141
- Outline: "outline"
98
+ Outline: "outline",
99
+ /** Refers to the card fill with the body text — a calm status that lets its icon carry the colour. */
100
+ Surface: "surface",
101
+ /** Refers to a transparent fill with muted text — a state that asks for no attention. */
102
+ Quiet: "quiet"
103
+ };
104
+ const BadgeBorderStyle = {
105
+ /** Refers to a solid outline. */
106
+ Solid: "solid",
107
+ /** Refers to a dashed outline — a state that has not happened, such as nothing applied. */
108
+ Dashed: "dashed",
109
+ /** Refers to a dotted outline — a state nobody can tell, such as unknown. */
110
+ Dotted: "dotted"
142
111
  };
143
112
  const badgeVariants = tv({
144
- base: "inline-flex items-center rounded-full font-medium",
113
+ base: "inline-flex max-w-full items-center rounded-full font-medium",
145
114
  variants: {
146
115
  variant: {
147
116
  neutral: "bg-muted text-foreground",
@@ -150,30 +119,74 @@ const badgeVariants = tv({
150
119
  warning: "bg-warning-soft text-warning-soft-foreground",
151
120
  danger: "bg-destructive-soft text-destructive-soft-foreground",
152
121
  info: "bg-info-soft text-info-soft-foreground",
153
- outline: "border border-border text-foreground"
122
+ outline: "border border-border text-foreground",
123
+ surface: "bg-card text-foreground",
124
+ quiet: "bg-transparent text-muted-foreground"
154
125
  },
155
126
  size: {
156
- sm: "h-5 px-2 text-xs",
157
- md: "h-6 px-2.5 text-xs",
158
- lg: "h-7 px-3 text-sm"
127
+ sm: "h-5 gap-1 px-2 text-xs",
128
+ md: "h-6 gap-1.5 px-2.5 text-xs",
129
+ lg: "h-7 gap-1.5 px-3 text-sm"
130
+ },
131
+ isOutlined: {
132
+ true: "border",
133
+ false: ""
134
+ },
135
+ borderStyle: {
136
+ solid: "",
137
+ dashed: "border-dashed",
138
+ dotted: "border-dotted"
139
+ },
140
+ hasLeading: {
141
+ true: "",
142
+ false: ""
159
143
  }
160
144
  },
145
+ compoundVariants: [
146
+ /* The outline takes the tint's own colour, a step stronger than its fill; neutral fills keep the plain border. */
147
+ { isOutlined: true, variant: ["neutral", "surface", "quiet", "outline"], class: "border-border" },
148
+ { isOutlined: true, variant: "brand", class: "border-primary/40" },
149
+ { isOutlined: true, variant: "success", class: "border-success/40" },
150
+ { isOutlined: true, variant: "warning", class: "border-warning/45" },
151
+ { isOutlined: true, variant: "danger", class: "border-destructive/45" },
152
+ { isOutlined: true, variant: "info", class: "border-info/40" },
153
+ /* A leading icon sits closer to the rounded start than text does. */
154
+ { hasLeading: true, size: "sm", class: "ps-1" },
155
+ { hasLeading: true, size: "md", class: "ps-1.5" },
156
+ { hasLeading: true, size: "lg", class: "ps-2" }
157
+ ],
161
158
  defaultVariants: {
162
159
  variant: "neutral",
163
- size: "md"
160
+ size: "md",
161
+ isOutlined: false,
162
+ borderStyle: "solid",
163
+ hasLeading: false
164
164
  }
165
165
  });
166
+ const badgeLeadingSize = {
167
+ sm: "[&>svg]:size-3",
168
+ md: "[&>svg]:size-3.5",
169
+ lg: "[&>svg]:size-4"
170
+ };
171
+ function isTintedBadge(variant) {
172
+ return variant !== "neutral" && variant !== "outline" && variant !== "surface" && variant !== "quiet";
173
+ }
166
174
  const _hoisted_1$1k = ["data-skeleton", "aria-hidden"];
167
175
  const _hoisted_2$P = {
168
176
  key: 0,
169
177
  class: "inline-block w-[4ch]"
170
178
  };
171
- const _sfc_main$1L = /* @__PURE__ */ defineComponent({
179
+ const _hoisted_3$B = { class: "min-w-0 truncate" };
180
+ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
172
181
  ...{ name: "Badge", inheritAttrs: false },
173
182
  __name: "Badge",
174
183
  props: {
175
184
  variant: {},
176
185
  size: {},
186
+ isOutlined: { type: Boolean, default: false },
187
+ borderStyle: { default: "solid" },
188
+ detail: { default: void 0 },
189
+ isSpinning: { type: Boolean, default: false },
177
190
  isSkeleton: { type: Boolean, default: void 0 }
178
191
  },
179
192
  setup(__props, { expose: __expose }) {
@@ -183,16 +196,34 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
183
196
  const el = useTemplateRef("el");
184
197
  const skeleton = useSkeletonState(() => props.isSkeleton);
185
198
  const hasContent = () => renderableChildren(slots.default?.()).length > 0;
199
+ const variant = computed(() => props.variant ?? "neutral");
200
+ const size = computed(() => props.size === "sm" || props.size === "lg" ? props.size : "md");
201
+ const hasLeading = computed(() => Boolean(slots.leading));
202
+ const hasDetail = computed(() => Boolean(props.detail) || Boolean(slots.detail));
186
203
  const classes = computed(
187
204
  () => cn(
188
205
  badgeVariants({
189
- variant: props.variant,
190
- size: props.size
206
+ variant: variant.value,
207
+ size: props.size,
208
+ isOutlined: props.isOutlined,
209
+ borderStyle: props.borderStyle,
210
+ hasLeading: hasLeading.value
191
211
  }),
212
+ (hasLeading.value || hasDetail.value) && "whitespace-nowrap",
192
213
  attrs.class,
193
214
  skeleton.boxClass.value
194
215
  )
195
216
  );
217
+ const leadingClasses = computed(
218
+ () => cn(
219
+ "inline-flex shrink-0",
220
+ badgeLeadingSize[size.value],
221
+ props.isSpinning && "animate-spin [animation-duration:2s] motion-reduce:animate-none"
222
+ )
223
+ );
224
+ const detailClasses = computed(
225
+ () => cn("min-w-0 truncate font-normal tabular-nums", !isTintedBadge(variant.value) && "text-muted-foreground")
226
+ );
196
227
  const rest = computed(() => {
197
228
  const { class: _class, ...others } = attrs;
198
229
  return others;
@@ -205,12 +236,33 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
205
236
  "data-skeleton": unref(skeleton).isSkeleton.value || void 0,
206
237
  "aria-hidden": unref(skeleton).isSkeleton.value || void 0
207
238
  }, rest.value, { class: classes.value }), [
208
- unref(skeleton).isSkeleton.value && !hasContent() ? (openBlock(), createElementBlock("span", _hoisted_2$P, " ")) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)
239
+ unref(skeleton).isSkeleton.value && !hasContent() ? (openBlock(), createElementBlock("span", _hoisted_2$P, " ")) : hasLeading.value || hasDetail.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
240
+ hasLeading.value ? (openBlock(), createElementBlock("span", {
241
+ key: 0,
242
+ "data-badge-leading": "",
243
+ "aria-hidden": "true",
244
+ class: normalizeClass(leadingClasses.value)
245
+ }, [
246
+ renderSlot(_ctx.$slots, "leading")
247
+ ], 2)) : createCommentVNode("", true),
248
+ createElementVNode("span", _hoisted_3$B, [
249
+ renderSlot(_ctx.$slots, "default")
250
+ ]),
251
+ hasDetail.value ? (openBlock(), createElementBlock("span", {
252
+ key: 1,
253
+ "data-detail": "",
254
+ class: normalizeClass(detailClasses.value)
255
+ }, [
256
+ renderSlot(_ctx.$slots, "detail", {}, () => [
257
+ createTextVNode(toDisplayString(props.detail), 1)
258
+ ])
259
+ ], 2)) : createCommentVNode("", true)
260
+ ], 64)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 2)
209
261
  ], 16, _hoisted_1$1k);
210
262
  };
211
263
  }
212
264
  });
213
- const _sfc_main$1K = /* @__PURE__ */ defineComponent({
265
+ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
214
266
  ...{ name: "MarkText", inheritAttrs: false },
215
267
  __name: "MarkText",
216
268
  setup(__props, { expose: __expose }) {
@@ -234,7 +286,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
234
286
  };
235
287
  }
236
288
  });
237
- const _sfc_main$1J = /* @__PURE__ */ defineComponent({
289
+ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
238
290
  ...{ name: "QuoteText", inheritAttrs: false },
239
291
  __name: "QuoteText",
240
292
  setup(__props, { expose: __expose }) {
@@ -259,7 +311,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
259
311
  }
260
312
  });
261
313
  const _hoisted_1$1j = ["data-skeleton", "aria-busy"];
262
- const _sfc_main$1I = /* @__PURE__ */ defineComponent({
314
+ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
263
315
  ...{ name: "Card", inheritAttrs: false },
264
316
  __name: "Card",
265
317
  props: {
@@ -273,6 +325,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
273
325
  },
274
326
  setup(__props, { expose: __expose }) {
275
327
  const props = __props;
328
+ const CardLinkHostClass = "has-[[data-card-link]]:relative has-[[data-card-link]:focus-visible]:outline-2 has-[[data-card-link]:focus-visible]:outline-offset-2 has-[[data-card-link]:focus-visible]:outline-ring";
276
329
  const attrs = useAttrs();
277
330
  const el = useTemplateRef("el");
278
331
  const skeleton = useSkeletonState(() => props.isSkeleton);
@@ -287,6 +340,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
287
340
  elevation: props.elevation ?? 1,
288
341
  ambient: props.ambient
289
342
  }),
343
+ CardLinkHostClass,
290
344
  attrs.class
291
345
  )
292
346
  );
@@ -307,7 +361,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
307
361
  };
308
362
  }
309
363
  });
310
- const _sfc_main$1H = /* @__PURE__ */ defineComponent({
364
+ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
311
365
  ...{ name: "CardHeader", inheritAttrs: false },
312
366
  __name: "CardHeader",
313
367
  setup(__props, { expose: __expose }) {
@@ -330,7 +384,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
330
384
  }
331
385
  });
332
386
  const _hoisted_1$1i = ["data-skeleton"];
333
- const _sfc_main$1G = /* @__PURE__ */ defineComponent({
387
+ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
334
388
  ...{ name: "CardTitle", inheritAttrs: false },
335
389
  __name: "CardTitle",
336
390
  setup(__props, { expose: __expose }) {
@@ -362,7 +416,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
362
416
  }
363
417
  });
364
418
  const _hoisted_1$1h = ["data-skeleton"];
365
- const _sfc_main$1F = /* @__PURE__ */ defineComponent({
419
+ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
366
420
  ...{ name: "CardDescription", inheritAttrs: false },
367
421
  __name: "CardDescription",
368
422
  setup(__props, { expose: __expose }) {
@@ -393,7 +447,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
393
447
  };
394
448
  }
395
449
  });
396
- const _sfc_main$1E = /* @__PURE__ */ defineComponent({
450
+ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
397
451
  ...{ name: "CardBody", inheritAttrs: false },
398
452
  __name: "CardBody",
399
453
  setup(__props, { expose: __expose }) {
@@ -415,7 +469,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
415
469
  };
416
470
  }
417
471
  });
418
- const _sfc_main$1D = /* @__PURE__ */ defineComponent({
472
+ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
419
473
  ...{ name: "CardFooter", inheritAttrs: false },
420
474
  __name: "CardFooter",
421
475
  setup(__props, { expose: __expose }) {
@@ -439,6 +493,38 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
439
493
  };
440
494
  }
441
495
  });
496
+ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
497
+ ...{ name: "CardLink", inheritAttrs: false },
498
+ __name: "CardLink",
499
+ props: {
500
+ href: { default: void 0 },
501
+ asChild: { type: Boolean, default: false }
502
+ },
503
+ setup(__props) {
504
+ const props = __props;
505
+ const attrs = useAttrs();
506
+ const classes = computed(
507
+ () => cn("outline-none after:absolute after:inset-0 after:content-['']", attrs.class)
508
+ );
509
+ const rest = computed(() => {
510
+ const { class: _class, ...others } = attrs;
511
+ return others;
512
+ });
513
+ return (_ctx, _cache) => {
514
+ return openBlock(), createBlock(unref(Primitive), mergeProps({
515
+ as: unref(HtmlElement).Anchor,
516
+ "as-child": props.asChild,
517
+ href: props.asChild ? void 0 : props.href,
518
+ "data-card-link": ""
519
+ }, rest.value, { class: classes.value }), {
520
+ default: withCtx(() => [
521
+ renderSlot(_ctx.$slots, "default")
522
+ ]),
523
+ _: 3
524
+ }, 16, ["as", "as-child", "href", "class"]);
525
+ };
526
+ }
527
+ });
442
528
  const _sfc_main$1C = /* @__PURE__ */ defineComponent({
443
529
  ...{ name: "AvatarGroup", inheritAttrs: false },
444
530
  __name: "AvatarGroup",
@@ -789,7 +875,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
789
875
  ref_key: "el",
790
876
  ref: el
791
877
  }, rest.value, { class: classes.value }), [
792
- createVNode(_sfc_main$1N, {
878
+ createVNode(_sfc_main$1T, {
793
879
  variant: props.variant,
794
880
  class: normalizeClass(codeClasses.value)
795
881
  }, {
@@ -923,7 +1009,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
923
1009
  });
924
1010
  __expose({ el });
925
1011
  return (_ctx, _cache) => {
926
- return isVisible.value ? (openBlock(), createBlock(_sfc_main$1L, mergeProps({
1012
+ return isVisible.value ? (openBlock(), createBlock(_sfc_main$1M, mergeProps({
927
1013
  key: 0,
928
1014
  ref_key: "inner",
929
1015
  ref: inner,
@@ -1034,7 +1120,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
1034
1120
  (openBlock(true), createElementBlock(Fragment, null, renderList(props.keys, (keyLabel, i) => {
1035
1121
  return openBlock(), createElementBlock(Fragment, { key: i }, [
1036
1122
  i > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$1c, toDisplayString(props.separator), 1)) : createCommentVNode("", true),
1037
- createVNode(_sfc_main$1T, null, {
1123
+ createVNode(_sfc_main$1U, null, {
1038
1124
  default: withCtx(() => [
1039
1125
  createTextVNode(toDisplayString(keyLabel), 1)
1040
1126
  ]),
@@ -1352,7 +1438,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
1352
1438
  });
1353
1439
  __expose({ el });
1354
1440
  return (_ctx, _cache) => {
1355
- return openBlock(), createBlock(_sfc_main$1U, mergeProps({
1441
+ return openBlock(), createBlock(_sfc_main$1V, mergeProps({
1356
1442
  ref_key: "inner",
1357
1443
  ref: inner,
1358
1444
  gap: props.gap
@@ -1449,7 +1535,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
1449
1535
  }, rest.value, { class: classes.value }), [
1450
1536
  (openBlock(true), createElementBlock(Fragment, null, renderList(segments.value, (segment, i) => {
1451
1537
  return openBlock(), createElementBlock(Fragment, { key: i }, [
1452
- segment.isMatch ? (openBlock(), createBlock(_sfc_main$1K, { key: 0 }, {
1538
+ segment.isMatch ? (openBlock(), createBlock(_sfc_main$1L, { key: 0 }, {
1453
1539
  default: withCtx(() => [
1454
1540
  createTextVNode(toDisplayString(segment.text), 1)
1455
1541
  ]),
@@ -1719,7 +1805,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
1719
1805
  });
1720
1806
  __expose({ el: computed(() => group.value?.el ?? null) });
1721
1807
  return (_ctx, _cache) => {
1722
- return openBlock(), createBlock(unref(_sfc_main$1V), mergeProps({
1808
+ return openBlock(), createBlock(unref(_sfc_main$1W), mergeProps({
1723
1809
  ref_key: "group",
1724
1810
  ref: group,
1725
1811
  orientation: unref(Orientation).Vertical,
@@ -1987,7 +2073,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
1987
2073
  });
1988
2074
  __expose({ el: rootElement });
1989
2075
  return (_ctx, _cache) => {
1990
- return openBlock(), createBlock(unref(_sfc_main$1V), mergeProps({
2076
+ return openBlock(), createBlock(unref(_sfc_main$1W), mergeProps({
1991
2077
  ref_key: "el",
1992
2078
  ref: el,
1993
2079
  orientation: unref(tabs).orientation,
@@ -2215,22 +2301,33 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
2215
2301
  };
2216
2302
  }
2217
2303
  });
2218
- const _hoisted_1$10 = ["data-skeleton"];
2304
+ const _hoisted_1$10 = ["data-skeleton", "aria-current"];
2219
2305
  const _hoisted_2$H = {
2220
2306
  key: 1,
2221
2307
  "aria-hidden": "true",
2222
2308
  class: "mt-0.5 shrink-0 text-muted-foreground"
2223
2309
  };
2224
- const _hoisted_3$x = { class: "flex-1" };
2225
- const _hoisted_4$q = {
2310
+ const _hoisted_3$x = {
2226
2311
  key: 2,
2312
+ class: "flex min-w-0 flex-1 flex-col"
2313
+ };
2314
+ const _hoisted_4$q = { class: "truncate" };
2315
+ const _hoisted_5$k = {
2316
+ key: 3,
2317
+ class: "flex-1"
2318
+ };
2319
+ const _hoisted_6$h = {
2320
+ key: 4,
2227
2321
  class: "shrink-0 text-muted-foreground"
2228
2322
  };
2229
2323
  const _sfc_main$1a = /* @__PURE__ */ defineComponent({
2230
2324
  ...{ name: "ListGroupItem", inheritAttrs: false },
2231
2325
  __name: "ListGroupItem",
2232
2326
  props: {
2233
- hasCheckMarker: { type: Boolean, default: void 0 }
2327
+ hasCheckMarker: { type: Boolean, default: void 0 },
2328
+ description: { default: void 0 },
2329
+ isSelected: { type: Boolean, default: false },
2330
+ onSelect: { type: Function, default: void 0 }
2234
2331
  },
2235
2332
  setup(__props, { expose: __expose }) {
2236
2333
  const props = __props;
@@ -2239,58 +2336,112 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
2239
2336
  const list = useListContext();
2240
2337
  const showCheck = computed(() => props.hasCheckMarker ?? list.marker === "check");
2241
2338
  const skeleton = useSkeletonState();
2242
- const classes = computed(() => cn(listItemVariants(), attrs.class));
2339
+ const isAction = computed(() => props.onSelect !== void 0);
2340
+ const classes = computed(() => cn(!isAction.value && listItemVariants(), attrs.class));
2341
+ const actionClasses = computed(
2342
+ () => cn(
2343
+ listItemVariants(),
2344
+ "w-full rounded-lg px-3 py-2 text-left transition-colors motion-reduce:transition-none",
2345
+ "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
2346
+ props.isSelected ? "bg-primary-soft text-primary-soft-foreground" : "hover:bg-muted"
2347
+ )
2348
+ );
2349
+ const descriptionClasses = computed(
2350
+ () => cn("truncate text-xs", props.isSelected ? "text-primary-soft-foreground" : "text-muted-foreground")
2351
+ );
2243
2352
  const rest = computed(() => {
2244
2353
  const { class: _class, ...others } = attrs;
2245
2354
  return others;
2246
2355
  });
2356
+ function select2() {
2357
+ if (skeleton.isSkeleton.value) return;
2358
+ props.onSelect?.();
2359
+ }
2247
2360
  __expose({ el });
2248
2361
  return (_ctx, _cache) => {
2249
2362
  return openBlock(), createElementBlock("li", mergeProps({
2250
2363
  ref_key: "el",
2251
2364
  ref: el,
2252
- "data-skeleton": unref(skeleton).isSkeleton.value || void 0
2365
+ "data-skeleton": unref(skeleton).isSkeleton.value || void 0,
2366
+ "aria-current": !isAction.value && props.isSelected ? "true" : void 0
2253
2367
  }, rest.value, { class: classes.value }), [
2254
- showCheck.value ? (openBlock(), createElementBlock("span", {
2255
- key: 0,
2256
- "aria-hidden": "true",
2257
- class: normalizeClass(unref(cn)("mt-0.5 shrink-0 text-primary-soft-foreground", unref(skeleton).isSkeleton.value && "invisible"))
2258
- }, [
2259
- createVNode(unref(Check), { class: "h-4 w-4" })
2260
- ], 2)) : createCommentVNode("", true),
2261
- _ctx.$slots.leading ? (openBlock(), createElementBlock("span", _hoisted_2$H, [
2262
- createVNode(unref(SkeletonStateLine), {
2263
- "is-skeleton": unref(skeleton).isSkeleton.value,
2264
- "is-text": false
2265
- }, {
2266
- default: withCtx(() => [
2267
- renderSlot(_ctx.$slots, "leading")
2268
- ]),
2269
- _: 3
2270
- }, 8, ["is-skeleton"])
2271
- ])) : createCommentVNode("", true),
2272
- createElementVNode("span", _hoisted_3$x, [
2273
- createVNode(unref(SkeletonStateLine), {
2274
- "is-skeleton": unref(skeleton).isSkeleton.value,
2275
- "is-text": false
2276
- }, {
2277
- default: withCtx(() => [
2278
- renderSlot(_ctx.$slots, "default")
2279
- ]),
2280
- _: 3
2281
- }, 8, ["is-skeleton"])
2282
- ]),
2283
- _ctx.$slots.trailing ? (openBlock(), createElementBlock("span", _hoisted_4$q, [
2284
- createVNode(unref(SkeletonStateLine), {
2285
- "is-skeleton": unref(skeleton).isSkeleton.value,
2286
- "is-text": false
2287
- }, {
2288
- default: withCtx(() => [
2289
- renderSlot(_ctx.$slots, "trailing")
2290
- ]),
2291
- _: 3
2292
- }, 8, ["is-skeleton"])
2293
- ])) : createCommentVNode("", true)
2368
+ (openBlock(), createBlock(resolveDynamicComponent(isAction.value ? "button" : "div"), normalizeProps(guardReactiveProps(
2369
+ isAction.value ? {
2370
+ type: unref(ButtonType).Button,
2371
+ class: actionClasses.value,
2372
+ "aria-current": props.isSelected ? "true" : void 0,
2373
+ onClick: select2
2374
+ } : { class: "contents" }
2375
+ )), {
2376
+ default: withCtx(() => [
2377
+ showCheck.value ? (openBlock(), createElementBlock("span", {
2378
+ key: 0,
2379
+ "aria-hidden": "true",
2380
+ class: normalizeClass(unref(cn)("mt-0.5 shrink-0 text-primary-soft-foreground", unref(skeleton).isSkeleton.value && "invisible"))
2381
+ }, [
2382
+ createVNode(unref(Check), { class: "h-4 w-4" })
2383
+ ], 2)) : createCommentVNode("", true),
2384
+ _ctx.$slots.leading ? (openBlock(), createElementBlock("span", _hoisted_2$H, [
2385
+ createVNode(unref(SkeletonStateLine), {
2386
+ "is-skeleton": unref(skeleton).isSkeleton.value,
2387
+ "is-text": false
2388
+ }, {
2389
+ default: withCtx(() => [
2390
+ renderSlot(_ctx.$slots, "leading")
2391
+ ]),
2392
+ _: 3
2393
+ }, 8, ["is-skeleton"])
2394
+ ])) : createCommentVNode("", true),
2395
+ props.description !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
2396
+ createElementVNode("span", _hoisted_4$q, [
2397
+ createVNode(unref(SkeletonStateLine), {
2398
+ "is-skeleton": unref(skeleton).isSkeleton.value,
2399
+ "is-text": false
2400
+ }, {
2401
+ default: withCtx(() => [
2402
+ renderSlot(_ctx.$slots, "default")
2403
+ ]),
2404
+ _: 3
2405
+ }, 8, ["is-skeleton"])
2406
+ ]),
2407
+ createElementVNode("span", {
2408
+ "data-description": "",
2409
+ class: normalizeClass(descriptionClasses.value)
2410
+ }, [
2411
+ createVNode(unref(SkeletonStateLine), {
2412
+ "is-skeleton": unref(skeleton).isSkeleton.value
2413
+ }, {
2414
+ default: withCtx(() => [
2415
+ createTextVNode(toDisplayString(props.description), 1)
2416
+ ]),
2417
+ _: 1
2418
+ }, 8, ["is-skeleton"])
2419
+ ], 2)
2420
+ ])) : (openBlock(), createElementBlock("span", _hoisted_5$k, [
2421
+ createVNode(unref(SkeletonStateLine), {
2422
+ "is-skeleton": unref(skeleton).isSkeleton.value,
2423
+ "is-text": false
2424
+ }, {
2425
+ default: withCtx(() => [
2426
+ renderSlot(_ctx.$slots, "default")
2427
+ ]),
2428
+ _: 3
2429
+ }, 8, ["is-skeleton"])
2430
+ ])),
2431
+ _ctx.$slots.trailing ? (openBlock(), createElementBlock("span", _hoisted_6$h, [
2432
+ createVNode(unref(SkeletonStateLine), {
2433
+ "is-skeleton": unref(skeleton).isSkeleton.value,
2434
+ "is-text": false
2435
+ }, {
2436
+ default: withCtx(() => [
2437
+ renderSlot(_ctx.$slots, "trailing")
2438
+ ]),
2439
+ _: 3
2440
+ }, 8, ["is-skeleton"])
2441
+ ])) : createCommentVNode("", true)
2442
+ ]),
2443
+ _: 3
2444
+ }, 16))
2294
2445
  ], 16, _hoisted_1$10);
2295
2446
  };
2296
2447
  }
@@ -3232,7 +3383,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3232
3383
  "data-row-control": ""
3233
3384
  }, {
3234
3385
  default: withCtx(() => [
3235
- __props.selectionMode === unref(SelectionMode).Multiple ? (openBlock(), createBlock(_sfc_main$1W, {
3386
+ __props.selectionMode === unref(SelectionMode).Multiple ? (openBlock(), createBlock(_sfc_main$1X, {
3236
3387
  key: 0,
3237
3388
  size: "sm",
3238
3389
  "model-value": headerStatus.value === unref(SelectionStatus).All,
@@ -3321,7 +3472,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3321
3472
  "data-row-control": ""
3322
3473
  }, {
3323
3474
  default: withCtx(() => [
3324
- createVNode(_sfc_main$1W, {
3475
+ createVNode(_sfc_main$1X, {
3325
3476
  size: "sm",
3326
3477
  "is-skeleton": ""
3327
3478
  })
@@ -3402,7 +3553,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3402
3553
  onClickCapture: rememberGesture
3403
3554
  }, {
3404
3555
  default: withCtx(() => [
3405
- createVNode(_sfc_main$1W, {
3556
+ createVNode(_sfc_main$1X, {
3406
3557
  size: "sm",
3407
3558
  "model-value": row.isSelected,
3408
3559
  "is-disabled": !row.isSelectable,
@@ -3987,7 +4138,7 @@ const _hoisted_7$e = {
3987
4138
  const _hoisted_8$c = ["data-state"];
3988
4139
  const _hoisted_9$a = { class: "select-none w-10 shrink-0 border-r border-border px-2 py-0.5 text-right text-muted-foreground tabular-nums" };
3989
4140
  const _hoisted_10$7 = { class: "flex-1 whitespace-pre px-2 py-0.5" };
3990
- const _hoisted_11$5 = {
4141
+ const _hoisted_11$6 = {
3991
4142
  key: 2,
3992
4143
  class: "overflow-x-auto"
3993
4144
  };
@@ -4149,7 +4300,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
4149
4300
  }), 128))
4150
4301
  ]);
4151
4302
  }), 128))
4152
- ])) : (openBlock(), createElementBlock("div", _hoisted_11$5, [
4303
+ ])) : (openBlock(), createElementBlock("div", _hoisted_11$6, [
4153
4304
  (openBlock(true), createElementBlock(Fragment, null, renderList(unifiedRows.value, (row) => {
4154
4305
  return openBlock(), createElementBlock("div", {
4155
4306
  key: row.key,
@@ -4171,12 +4322,13 @@ const _hoisted_1$L = ["aria-labelledby", "width", "height", "viewBox", "data-ske
4171
4322
  const _hoisted_2$B = ["id"];
4172
4323
  const _hoisted_3$s = ["d"];
4173
4324
  const _hoisted_4$n = ["d"];
4174
- const _hoisted_5$i = ["d"];
4175
- const _hoisted_6$f = { key: 2 };
4176
- const _hoisted_7$d = ["x", "y", "width", "height"];
4177
- const _hoisted_8$b = { key: 3 };
4178
- const _hoisted_9$9 = ["cx", "cy"];
4325
+ const _hoisted_5$i = ["x2", "y1", "y2"];
4326
+ const _hoisted_6$f = ["d"];
4327
+ const _hoisted_7$d = { key: 2 };
4328
+ const _hoisted_8$b = ["x", "y", "width", "height"];
4329
+ const _hoisted_9$9 = { key: 3 };
4179
4330
  const _hoisted_10$6 = ["cx", "cy"];
4331
+ const _hoisted_11$5 = ["cx", "cy"];
4180
4332
  const SparklineVariant = {
4181
4333
  /** Refers to a connected line. */
4182
4334
  Line: "line",
@@ -4203,6 +4355,7 @@ const SparklineTone = {
4203
4355
  };
4204
4356
  const EmptyGeometry = {
4205
4357
  points: [],
4358
+ levels: [],
4206
4359
  barWidth: 0,
4207
4360
  barRenderWidth: 0,
4208
4361
  lastX: 0,
@@ -4222,7 +4375,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4222
4375
  ...{ name: "Sparkline", inheritAttrs: false },
4223
4376
  __name: "Sparkline",
4224
4377
  props: {
4225
- data: {},
4378
+ data: { default: () => [] },
4379
+ points: { default: void 0 },
4380
+ since: { default: void 0 },
4381
+ until: { default: void 0 },
4382
+ thresholds: { default: () => [] },
4226
4383
  variant: { default: "line" },
4227
4384
  width: { default: 120 },
4228
4385
  height: { default: 32 },
@@ -4240,13 +4397,28 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4240
4397
  const attrs = useAttrs();
4241
4398
  const el = useTemplateRef("el");
4242
4399
  const titleId = useId();
4400
+ const series = computed(() => {
4401
+ const { width } = props;
4402
+ const timed = props.points;
4403
+ if (timed) {
4404
+ if (timed.length === 0) return [];
4405
+ const since = props.since ?? timed[0].at;
4406
+ const until = props.until ?? timed[timed.length - 1].at;
4407
+ const span = until - since;
4408
+ return timed.map((point) => [span > 0 ? (point.at - since) / span * width : width, point.value]);
4409
+ }
4410
+ const data = props.data;
4411
+ const stepX = data.length === 1 ? 0 : width / (data.length - 1);
4412
+ return data.map((value, index) => [index * stepX, value]);
4413
+ });
4243
4414
  const geometry = computed(() => {
4244
- const { data, width, height } = props;
4245
- if (data.length === 0) return EmptyGeometry;
4415
+ const { width, height } = props;
4416
+ const values = series.value;
4417
+ if (values.length === 0) return EmptyGeometry;
4246
4418
  let seriesMin = Number.POSITIVE_INFINITY;
4247
4419
  let seriesMax = Number.NEGATIVE_INFINITY;
4248
4420
  if (props.min === void 0 || props.max === void 0) {
4249
- for (const value of data) {
4421
+ for (const [, value] of values) {
4250
4422
  seriesMin = Math.min(seriesMin, value);
4251
4423
  seriesMax = Math.max(seriesMax, value);
4252
4424
  }
@@ -4254,21 +4426,19 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4254
4426
  const min = props.min ?? seriesMin;
4255
4427
  const max = props.max ?? seriesMax;
4256
4428
  const range = max - min || 1;
4257
- const stepX = data.length === 1 ? 0 : width / (data.length - 1);
4258
4429
  const pad2 = 1;
4259
- const points = data.map((v, i) => {
4260
- const x = i * stepX;
4261
- const y = height - (v - min) / range * (height - pad2 * 2) - pad2;
4262
- return [x, y];
4263
- });
4430
+ const toY = (value) => height - (value - min) / range * (height - pad2 * 2) - pad2;
4431
+ const points = values.map(([x, value]) => [x, toY(value)]);
4432
+ const levels = props.thresholds.map((level) => ({ y: toY(level.value), tone: level.tone ?? "muted" }));
4264
4433
  const first = points[0];
4265
4434
  const last = points[points.length - 1];
4266
4435
  if (!first || !last) return EmptyGeometry;
4267
4436
  const linePath = points.map(([x, y], i) => i === 0 ? `M${x},${y}` : `L${x},${y}`).join(" ");
4268
4437
  const areaPath = `${linePath} L${last[0]},${height} L${first[0]},${height} Z`;
4269
- const barWidth = width / data.length - 1;
4438
+ const barWidth = width / values.length - 1;
4270
4439
  return {
4271
4440
  points,
4441
+ levels,
4272
4442
  barWidth,
4273
4443
  barRenderWidth: Math.max(1, barWidth),
4274
4444
  lastX: last[0],
@@ -4277,7 +4447,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4277
4447
  linePath
4278
4448
  };
4279
4449
  });
4280
- const showLast = computed(() => Boolean(props.hasLast) && props.data.length > 0 && props.variant !== "dot");
4450
+ const showLast = computed(() => Boolean(props.hasLast) && series.value.length > 0 && props.variant !== "dot");
4281
4451
  const classes = computed(
4282
4452
  () => cn(
4283
4453
  "inline-block overflow-visible",
@@ -4318,9 +4488,26 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4318
4488
  stroke: "currentColor",
4319
4489
  "stroke-width": "1.5",
4320
4490
  "stroke-linecap": "round",
4321
- "stroke-linejoin": "round"
4491
+ "stroke-linejoin": "round",
4492
+ "vector-effect": "non-scaling-stroke"
4322
4493
  }, null, 8, _hoisted_4$n)
4323
4494
  ], 64)) : createCommentVNode("", true),
4495
+ (openBlock(true), createElementBlock(Fragment, null, renderList(geometry.value.levels, (level, i) => {
4496
+ return openBlock(), createElementBlock("line", {
4497
+ key: `level-${i}`,
4498
+ "data-threshold": "",
4499
+ x1: "0",
4500
+ x2: unref(props).width,
4501
+ y1: level.y,
4502
+ y2: level.y,
4503
+ class: normalizeClass(ToneClass$1[level.tone]),
4504
+ stroke: "currentColor",
4505
+ "stroke-dasharray": "3 3",
4506
+ "stroke-width": "0.75",
4507
+ "stroke-opacity": "0.6",
4508
+ "vector-effect": "non-scaling-stroke"
4509
+ }, null, 10, _hoisted_5$i);
4510
+ }), 128)),
4324
4511
  unref(props).variant === "line" ? (openBlock(), createElementBlock("path", {
4325
4512
  key: 1,
4326
4513
  d: geometry.value.linePath,
@@ -4328,9 +4515,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4328
4515
  stroke: "currentColor",
4329
4516
  "stroke-width": "1.5",
4330
4517
  "stroke-linecap": "round",
4331
- "stroke-linejoin": "round"
4332
- }, null, 8, _hoisted_5$i)) : createCommentVNode("", true),
4333
- unref(props).variant === "bar" ? (openBlock(), createElementBlock("g", _hoisted_6$f, [
4518
+ "stroke-linejoin": "round",
4519
+ "vector-effect": "non-scaling-stroke"
4520
+ }, null, 8, _hoisted_6$f)) : createCommentVNode("", true),
4521
+ unref(props).variant === "bar" ? (openBlock(), createElementBlock("g", _hoisted_7$d, [
4334
4522
  (openBlock(true), createElementBlock(Fragment, null, renderList(geometry.value.points, (point, i) => {
4335
4523
  return openBlock(), createElementBlock("rect", {
4336
4524
  key: i,
@@ -4340,10 +4528,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4340
4528
  height: unref(props).height - point[1],
4341
4529
  fill: "currentColor",
4342
4530
  rx: "1"
4343
- }, null, 8, _hoisted_7$d);
4531
+ }, null, 8, _hoisted_8$b);
4344
4532
  }), 128))
4345
4533
  ])) : createCommentVNode("", true),
4346
- unref(props).variant === "dot" ? (openBlock(), createElementBlock("g", _hoisted_8$b, [
4534
+ unref(props).variant === "dot" ? (openBlock(), createElementBlock("g", _hoisted_9$9, [
4347
4535
  (openBlock(true), createElementBlock(Fragment, null, renderList(geometry.value.points, (point, i) => {
4348
4536
  return openBlock(), createElementBlock("circle", {
4349
4537
  key: i,
@@ -4351,7 +4539,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4351
4539
  cy: point[1],
4352
4540
  r: "1.5",
4353
4541
  fill: "currentColor"
4354
- }, null, 8, _hoisted_9$9);
4542
+ }, null, 8, _hoisted_10$6);
4355
4543
  }), 128))
4356
4544
  ])) : createCommentVNode("", true),
4357
4545
  showLast.value ? (openBlock(), createElementBlock("circle", {
@@ -4360,7 +4548,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4360
4548
  cy: geometry.value.lastY,
4361
4549
  r: "2.5",
4362
4550
  fill: "currentColor"
4363
- }, null, 8, _hoisted_10$6)) : createCommentVNode("", true)
4551
+ }, null, 8, _hoisted_11$5)) : createCommentVNode("", true)
4364
4552
  ], 64)) : createCommentVNode("", true)
4365
4553
  ], 16, _hoisted_1$L);
4366
4554
  };
@@ -7782,7 +7970,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
7782
7970
  onBeforeUnmount(stop);
7783
7971
  __expose({ fire });
7784
7972
  return (_ctx, _cache) => {
7785
- return particles.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$1X), { key: 0 }, {
7973
+ return particles.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$1Y), { key: 0 }, {
7786
7974
  default: withCtx(() => [
7787
7975
  (openBlock(), createElementBlock("svg", _hoisted_1$q, [
7788
7976
  (openBlock(true), createElementBlock(Fragment, null, renderList(particles.value, (p) => {
@@ -8709,7 +8897,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
8709
8897
  });
8710
8898
  __expose({ el: rootElement });
8711
8899
  return (_ctx, _cache) => {
8712
- return openBlock(), createBlock(_sfc_main$1I, mergeProps({
8900
+ return openBlock(), createBlock(_sfc_main$1J, mergeProps({
8713
8901
  ref_key: "el",
8714
8902
  ref: el,
8715
8903
  variant: "outline",
@@ -8785,7 +8973,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
8785
8973
  });
8786
8974
  __expose({ el: rootElement });
8787
8975
  return (_ctx, _cache) => {
8788
- return openBlock(), createBlock(_sfc_main$1I, mergeProps({
8976
+ return openBlock(), createBlock(_sfc_main$1J, mergeProps({
8789
8977
  ref_key: "el",
8790
8978
  ref: el,
8791
8979
  variant: "outline",
@@ -8874,7 +9062,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
8874
9062
  });
8875
9063
  __expose({ el: rootElement });
8876
9064
  return (_ctx, _cache) => {
8877
- return openBlock(), createBlock(_sfc_main$1I, mergeProps({
9065
+ return openBlock(), createBlock(_sfc_main$1J, mergeProps({
8878
9066
  ref_key: "el",
8879
9067
  ref: el,
8880
9068
  variant: "outline",
@@ -8882,7 +9070,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
8882
9070
  elevation: 0
8883
9071
  }, rest.value, { class: classes.value }), {
8884
9072
  default: withCtx(() => [
8885
- isFeaturedTier.value ? (openBlock(), createBlock(_sfc_main$1L, {
9073
+ isFeaturedTier.value ? (openBlock(), createBlock(_sfc_main$1M, {
8886
9074
  key: 0,
8887
9075
  variant: "brand",
8888
9076
  size: "md",
@@ -9078,7 +9266,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
9078
9266
  });
9079
9267
  __expose({ el: rootElement });
9080
9268
  return (_ctx, _cache) => {
9081
- return openBlock(), createBlock(unref(_sfc_main$1V), mergeProps({
9269
+ return openBlock(), createBlock(unref(_sfc_main$1W), mergeProps({
9082
9270
  ref_key: "el",
9083
9271
  ref: el,
9084
9272
  orientation: unref(stepper).orientation,
@@ -9574,7 +9762,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
9574
9762
  key: 0,
9575
9763
  node: notice.action
9576
9764
  }, null, 8, ["node"])) : createCommentVNode("", true),
9577
- notice.report ? (openBlock(), createBlock(_sfc_main$1Y, {
9765
+ notice.report ? (openBlock(), createBlock(_sfc_main$1Z, {
9578
9766
  key: 1,
9579
9767
  send: notice.report
9580
9768
  }, null, 8, ["send"])) : createCommentVNode("", true)
@@ -10348,16 +10536,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10348
10536
  export {
10349
10537
  DescriptionGroupLayout as $,
10350
10538
  AccordionGroupType as A,
10351
- BadgeVariant as B,
10352
- _sfc_main$W as C,
10353
- _sfc_main$X as D,
10354
- _sfc_main$J as E,
10355
- _sfc_main$o as F,
10356
- ChatSide as G,
10357
- ChatStatus as H,
10358
- ChatTone as I,
10359
- _sfc_main$1N as J,
10360
- CodeTextVariant as K,
10539
+ BadgeBorderStyle as B,
10540
+ _sfc_main$U as C,
10541
+ _sfc_main$V as D,
10542
+ _sfc_main$W as E,
10543
+ _sfc_main$X as F,
10544
+ _sfc_main$J as G,
10545
+ _sfc_main$o as H,
10546
+ ChatSide as I,
10547
+ ChatStatus as J,
10548
+ ChatTone as K,
10361
10549
  _sfc_main$1n as L,
10362
10550
  _sfc_main$1k as M,
10363
10551
  CollapsibleGroupKey as N,
@@ -10397,7 +10585,7 @@ export {
10397
10585
  _sfc_main$3 as aI,
10398
10586
  _sfc_main$E as aJ,
10399
10587
  _sfc_main$e as aK,
10400
- _sfc_main$1J as aL,
10588
+ _sfc_main$1K as aL,
10401
10589
  _sfc_main$O as aM,
10402
10590
  _sfc_main$p as aN,
10403
10591
  _sfc_main$1A as aO,
@@ -10419,7 +10607,7 @@ export {
10419
10607
  HeatmapCalendarGridTone as ad,
10420
10608
  _sfc_main$1o as ae,
10421
10609
  _sfc_main$K as af,
10422
- _sfc_main$1M as ag,
10610
+ _sfc_main$1N as ag,
10423
10611
  _sfc_main$1t as ah,
10424
10612
  InfoRowLayout as ai,
10425
10613
  _sfc_main$2 as aj,
@@ -10432,7 +10620,7 @@ export {
10432
10620
  ListGroupKey as aq,
10433
10621
  ListGroupMarker as ar,
10434
10622
  ListGroupSpacing as as,
10435
- _sfc_main$1K as at,
10623
+ _sfc_main$1L as at,
10436
10624
  _sfc_main$t as au,
10437
10625
  MarqueeGroupDirection as av,
10438
10626
  _sfc_main$n as aw,
@@ -10451,19 +10639,18 @@ export {
10451
10639
  _sfc_main$_ as b8,
10452
10640
  _sfc_main$$ as b9,
10453
10641
  badgeVariants as bA,
10454
- codeVariants as bB,
10455
- listVariants as bC,
10456
- useAccordionContext as bD,
10457
- useAccordionItemContext as bE,
10458
- useCarouselContext as bF,
10459
- useCollapsibleContext as bG,
10460
- useKanbanBoardContext as bH,
10461
- useListContext as bI,
10462
- useOnboardingChecklist as bJ,
10463
- useStepperContext as bK,
10464
- useTableContext as bL,
10465
- useTabsContext as bM,
10466
- useTimelineContext as bN,
10642
+ listVariants as bB,
10643
+ useAccordionContext as bC,
10644
+ useAccordionItemContext as bD,
10645
+ useCarouselContext as bE,
10646
+ useCollapsibleContext as bF,
10647
+ useKanbanBoardContext as bG,
10648
+ useListContext as bH,
10649
+ useOnboardingChecklist as bI,
10650
+ useStepperContext as bJ,
10651
+ useTableContext as bK,
10652
+ useTabsContext as bL,
10653
+ useTimelineContext as bM,
10467
10654
  TableDensity as ba,
10468
10655
  _sfc_main$12 as bb,
10469
10656
  _sfc_main$14 as bc,
@@ -10500,19 +10687,19 @@ export {
10500
10687
  _sfc_main$H as j,
10501
10688
  AudioWaveformPreviewTone as k,
10502
10689
  _sfc_main$1C as l,
10503
- _sfc_main$1L as m,
10690
+ _sfc_main$1M as m,
10504
10691
  _sfc_main$1p as n,
10505
- _sfc_main$1I as o,
10506
- _sfc_main$1E as p,
10692
+ BadgeVariant as o,
10693
+ _sfc_main$1J as p,
10507
10694
  _sfc_main$1F as q,
10508
- _sfc_main$1D as r,
10509
- _sfc_main$1H as s,
10510
- _sfc_main$1G as t,
10511
- _sfc_main$Y as u,
10512
- _sfc_main$S as v,
10513
- _sfc_main$R as w,
10514
- _sfc_main$T as x,
10515
- _sfc_main$U as y,
10516
- _sfc_main$V as z
10517
- };
10518
- //# sourceMappingURL=KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map
10695
+ _sfc_main$1G as r,
10696
+ _sfc_main$1E as s,
10697
+ _sfc_main$1I as t,
10698
+ _sfc_main$1D as u,
10699
+ _sfc_main$1H as v,
10700
+ _sfc_main$Y as w,
10701
+ _sfc_main$S as x,
10702
+ _sfc_main$R as y,
10703
+ _sfc_main$T as z
10704
+ };
10705
+ //# sourceMappingURL=KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js.map