@mkbabb/glass-ui 10.1.3 → 10.1.4
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/components/data-table/composables/useDataTableResponsive.d.ts +2 -0
- package/dist/components/deck/styles/capture.css +1 -1
- package/dist/composables/dom/useResizeObserver.d.ts +3 -1
- package/dist/{configurator-CPxIo3q2.js → configurator-Dl10mc3L.js} +1 -1
- package/dist/configurator.js +1 -1
- package/dist/{data-table-Cs93-uY7.js → data-table-DQuWkiwL.js} +112 -107
- package/dist/data-table.js +1 -1
- package/dist/dock.js +1 -1
- package/dist/dom.js +1 -1
- package/dist/{fading-scroll-CTeW3KNS.js → fading-scroll-ClCPooXb.js} +1 -1
- package/dist/fading-scroll.js +1 -1
- package/dist/glass-ui.js +3 -3
- package/dist/pager-dots.js +1 -1
- package/dist/{useResizeObserver-CdUlm2QZ.js → useResizeObserver-Bv3nN46q.js} +4 -7
- package/package.json +1 -1
|
@@ -13,6 +13,8 @@ export interface UseDataTableResponsiveOptions<T> {
|
|
|
13
13
|
export interface UseDataTableResponsiveReturn<T> {
|
|
14
14
|
/** True when the table should render the stacked card-per-row projection. */
|
|
15
15
|
isCard: ComputedRef<boolean>;
|
|
16
|
+
/** The projection a container of `width` CSS px takes: the one rule `isCard` reads. */
|
|
17
|
+
cardAt: (width: number) => boolean;
|
|
16
18
|
/** The first column — the card's header line. */
|
|
17
19
|
headerColumn: ComputedRef<DataTableColumn<T> | undefined>;
|
|
18
20
|
/** Every column after the first — the card body's label/value pairs. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{[data-deck-capture="export"] .deck-stage{--deck-export-inline: 1280px;--deck-export-block: 720px;position: relative;inset: auto;margin: 0;aspect-ratio: auto;inline-size: var(--deck-export-inline);block-size: var(--deck-export-block);max-inline-size: none;max-block-size: none;border-radius: 0;}[data-deck-capture="export"] .deck-slide{border-radius: 0;box-shadow: none;}[data-deck-capture="export"] .deck-ground,[data-deck-capture="freeze"] .deck-ground,[data-deck-capture="export"] .deck-slide,[data-deck-capture="freeze"] .deck-slide{transition: none !important;animation: none !important;}[data-deck-capture="export"] .deck-slide[data-state="active"],[data-deck-capture="freeze"] .deck-slide[data-state="active"]{--turn-x: 0px !important;--turn-s: 1 !important;--turn-r: 0deg !important;}[data-deck-capture="export"] .deck-slide::before,[data-deck-capture="export"] .deck-slide::after,[data-deck-capture="freeze"] .deck-slide::before,[data-deck-capture="freeze"] .deck-slide::after{opacity: 0 !important;animation: none !important;}[data-deck-capture="export"] [data-reveal],[data-deck-capture="freeze"] [data-reveal],[data-deck-capture="print"] [data-reveal]{opacity: 1 !important;animation: none !important;}[data-deck-capture="print"] .deck-stage{position: static;display: block;aspect-ratio: auto;inline-size: auto;block-size: auto;overflow: visible;}[data-deck-capture="print"] .deck-strip{display: block;overflow: visible;perspective: none;}[data-deck-capture="print"] .deck-ground{display: none;}[data-deck-capture="print"] .deck-slide{position: relative;opacity: 1 !important;visibility: visible !important;transform: none !important;pointer-events: auto;margin-block: var(--space-family);background: var(--background);}[data-deck-capture="print"] .deck-slide::before,[data-deck-capture="print"] .deck-slide::after{opacity: 0 !important;}}@layer components{@media print{@page{size: 1280px 720px;margin: 0;}
|
|
1
|
+
@layer components{[data-deck-capture="export"] .deck-stage{--deck-export-inline: 1280px;--deck-export-block: 720px;position: relative;inset: auto;margin: 0;aspect-ratio: auto;inline-size: var(--deck-export-inline);block-size: var(--deck-export-block);max-inline-size: none;max-block-size: none;border-radius: 0;}[data-deck-capture="export"] .deck-slide{border-radius: 0;box-shadow: none;}[data-deck-capture="export"] .deck-ground,[data-deck-capture="freeze"] .deck-ground,[data-deck-capture="export"] .deck-slide,[data-deck-capture="freeze"] .deck-slide{transition: none !important;animation: none !important;}[data-deck-capture="export"] .deck-slide[data-state="active"],[data-deck-capture="freeze"] .deck-slide[data-state="active"]{--turn-x: 0px !important;--turn-s: 1 !important;--turn-r: 0deg !important;}[data-deck-capture="export"] .deck-slide::before,[data-deck-capture="export"] .deck-slide::after,[data-deck-capture="freeze"] .deck-slide::before,[data-deck-capture="freeze"] .deck-slide::after{opacity: 0 !important;animation: none !important;}[data-deck-capture="export"] [data-reveal],[data-deck-capture="freeze"] [data-reveal],[data-deck-capture="print"] [data-reveal]{opacity: 1 !important;animation: none !important;}[data-deck-capture="print"] .deck-stage{position: static;display: block;aspect-ratio: auto;inline-size: auto;block-size: auto;overflow: visible;}[data-deck-capture="print"] .deck-strip{display: block;overflow: visible;perspective: none;}[data-deck-capture="print"] .deck-ground{display: none;}[data-deck-capture="print"] .deck-slide{position: relative;opacity: 1 !important;visibility: visible !important;transform: none !important;pointer-events: auto;margin-block: var(--space-family);background: var(--background);}[data-deck-capture="print"] .deck-slide::before,[data-deck-capture="print"] .deck-slide::after{opacity: 0 !important;}}@layer components{@media print{@page deck{size: 1280px 720px !important;margin: 0 !important;}[data-slot="deck-stage"]{page: deck;}:root:has([data-slot="deck-stage"]),:root:has([data-slot="deck-stage"]) body{page: deck;overflow: visible !important;margin: 0 !important;padding: 0 !important;print-color-adjust: exact;-webkit-print-color-adjust: exact;}:root:has([data-slot="deck-stage"]),:root:has([data-slot="deck-stage"]) body,:root:has([data-slot="deck-stage"]) #app{block-size: auto !important;min-block-size: 0 !important;}.deck-stage{position: static !important;display: block !important;aspect-ratio: auto !important;inline-size: auto !important;block-size: auto !important;overflow: visible !important;}.deck-strip{display: block !important;overflow: visible !important;perspective: none !important;}.deck-ground{display: none !important;}.deck-slide{position: relative !important;opacity: 1 !important;visibility: visible !important;transform: none !important;box-shadow: none !important;border-radius: 0 !important;margin: 0 !important;block-size: 719px !important;overflow: hidden !important;background: var(--background) !important;}.deck-slide::before,.deck-slide::after{opacity: 0 !important;}.deck-slide:not(:last-child){break-after: page;}.deck-stage .sr-only{display: none !important;}}}
|
|
@@ -32,7 +32,9 @@ export interface UseResizeObserverControls {
|
|
|
32
32
|
* Vue-scope-aware ResizeObserver wrapper.
|
|
33
33
|
*
|
|
34
34
|
* Watches one element ref and fires a callback when its bounding box
|
|
35
|
-
* changes by more than `threshold` CSS pixels in either dimension.
|
|
35
|
+
* changes by more than `threshold` CSS pixels in either dimension. The
|
|
36
|
+
* platform's first observation of each element always dispatches, so a
|
|
37
|
+
* caller learns the element's size on mount without a resize.
|
|
36
38
|
* Dispatch coalesces through `requestAnimationFrame` by default so a
|
|
37
39
|
* caller wiring an expensive re-init (canvas DPR-resync, layout
|
|
38
40
|
* remeasure) doesn't pay for every drag-resize step.
|
|
@@ -3,7 +3,7 @@ import { t } from "./createContext-BhkE9mLH.js";
|
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { t as r } from "./label-CE03H1KL.js";
|
|
5
5
|
import { t as i } from "./expandable-container-CZUj9BzY.js";
|
|
6
|
-
import { t as a } from "./fading-scroll-
|
|
6
|
+
import { t as a } from "./fading-scroll-ClCPooXb.js";
|
|
7
7
|
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, mergeModels as h, mergeProps as g, normalizeClass as _, normalizeStyle as v, openBlock as y, reactive as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as ee, toDisplayString as w, toRaw as T, unref as E, useId as D, useModel as O, useSlots as k, withCtx as A, withModifiers as j } from "vue";
|
|
8
8
|
import { ChevronDown as M, RotateCcw as N } from "@lucide/vue";
|
|
9
9
|
//#region src/components/configurator/size.ts
|
package/dist/configurator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./configurator-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./configurator-Dl10mc3L.js";
|
|
2
2
|
export { e as CONFIGURATOR_SIZE_KEY, t as Configurator, i as ConfiguratorLayer, n as ConfiguratorRow, r as provideConfiguratorSize, o as useConfiguratorState, a as useOptionalConfiguratorSize };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { t } from "./primitive-B2t2jdqM.js";
|
|
3
|
-
import { t as n } from "./useResizeObserver-
|
|
3
|
+
import { t as n } from "./useResizeObserver-Bv3nN46q.js";
|
|
4
4
|
import { t as r } from "./useIntersectionPause-CzKR3EyP.js";
|
|
5
5
|
import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
6
|
import { t as a } from "./focus-Duf7EpUu.js";
|
|
7
7
|
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, effectScope as h, isRef as g, mergeProps as _, nextTick as ee, normalizeClass as v, onBeforeUpdate as te, onUpdated as ne, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as C, toDisplayString as w, toValue as T, unref as E, useAttrs as D, useSlots as re, useTemplateRef as O, watch as k, withCtx as A, withModifiers as j } from "vue";
|
|
8
8
|
//#region src/components/table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var ie = {
|
|
10
10
|
"data-slot": "table-container",
|
|
11
11
|
class: "relative w-full overflow-auto"
|
|
12
|
-
},
|
|
12
|
+
}, M = [
|
|
13
13
|
"role",
|
|
14
14
|
"aria-label",
|
|
15
15
|
"aria-colcount",
|
|
16
16
|
"aria-rowcount"
|
|
17
|
-
],
|
|
17
|
+
], N = /* @__PURE__ */ m({
|
|
18
18
|
inheritAttrs: !1,
|
|
19
19
|
__name: "Table",
|
|
20
20
|
props: {
|
|
@@ -32,16 +32,16 @@ var M = {
|
|
|
32
32
|
},
|
|
33
33
|
setup(t) {
|
|
34
34
|
let n = t, r = D();
|
|
35
|
-
return (t, i) => (y(), u("div",
|
|
35
|
+
return (t, i) => (y(), u("div", ie, [d("table", _(E(r), {
|
|
36
36
|
"data-slot": "table",
|
|
37
37
|
class: E(e)("w-full caption-bottom text-small", n.class),
|
|
38
38
|
role: n.role,
|
|
39
39
|
"aria-label": n.ariaLabel,
|
|
40
40
|
"aria-colcount": n.ariaColCount,
|
|
41
41
|
"aria-rowcount": n.ariaRowCount
|
|
42
|
-
}), [S(t.$slots, "default")], 16,
|
|
42
|
+
}), [S(t.$slots, "default")], 16, M)]));
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), P = /* @__PURE__ */ m({
|
|
45
45
|
__name: "TableBody",
|
|
46
46
|
props: { class: { type: [
|
|
47
47
|
Boolean,
|
|
@@ -54,7 +54,7 @@ var M = {
|
|
|
54
54
|
let n = t;
|
|
55
55
|
return (t, r) => (y(), u("tbody", { class: v(E(e)("[&_tr:last-child]:border-0", n.class)) }, [S(t.$slots, "default")], 2));
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), F = /* @__PURE__ */ m({
|
|
58
58
|
__name: "TableCell",
|
|
59
59
|
props: { class: { type: [
|
|
60
60
|
Boolean,
|
|
@@ -67,7 +67,7 @@ var M = {
|
|
|
67
67
|
let n = t;
|
|
68
68
|
return (t, r) => (y(), u("td", { class: v(E(e)("table-cell align-middle [&:has([role=checkbox])]:pr-0", n.class)) }, [S(t.$slots, "default")], 2));
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), I = /* @__PURE__ */ m({
|
|
71
71
|
__name: "TableHead",
|
|
72
72
|
props: { class: { type: [
|
|
73
73
|
Boolean,
|
|
@@ -80,7 +80,7 @@ var M = {
|
|
|
80
80
|
let n = t;
|
|
81
81
|
return (t, r) => (y(), u("th", { class: v(E(e)("table-head text-left data-[align=center]:text-center data-[align=right]:text-right align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", n.class)) }, [S(t.$slots, "default")], 2));
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), L = /* @__PURE__ */ m({
|
|
84
84
|
__name: "TableHeader",
|
|
85
85
|
props: { class: { type: [
|
|
86
86
|
Boolean,
|
|
@@ -93,7 +93,7 @@ var M = {
|
|
|
93
93
|
let n = t;
|
|
94
94
|
return (t, r) => (y(), u("thead", { class: v(E(e)("[&_tr]:border-b", n.class)) }, [S(t.$slots, "default")], 2));
|
|
95
95
|
}
|
|
96
|
-
}),
|
|
96
|
+
}), R = /* @__PURE__ */ m({
|
|
97
97
|
__name: "TableRow",
|
|
98
98
|
props: { class: { type: [
|
|
99
99
|
Boolean,
|
|
@@ -106,7 +106,7 @@ var M = {
|
|
|
106
106
|
let n = t;
|
|
107
107
|
return (t, r) => (y(), u("tr", { class: v(E(e)("border-b", n.class)) }, [S(t.$slots, "default")], 2));
|
|
108
108
|
}
|
|
109
|
-
}),
|
|
109
|
+
}), z = { class: "flex items-center justify-center py-10" }, B = /* @__PURE__ */ m({
|
|
110
110
|
__name: "TableEmpty",
|
|
111
111
|
props: {
|
|
112
112
|
class: { type: [
|
|
@@ -123,15 +123,15 @@ var M = {
|
|
|
123
123
|
let { class: e, ...t } = n;
|
|
124
124
|
return t;
|
|
125
125
|
});
|
|
126
|
-
return (t, i) => (y(), c(
|
|
127
|
-
default: A(() => [p(
|
|
128
|
-
default: A(() => [d("div",
|
|
126
|
+
return (t, i) => (y(), c(R, null, {
|
|
127
|
+
default: A(() => [p(F, _({ class: E(e)("p-4 whitespace-nowrap align-middle text-small text-foreground", n.class) }, r.value), {
|
|
128
|
+
default: A(() => [d("div", z, [S(t.$slots, "default")])]),
|
|
129
129
|
_: 3
|
|
130
130
|
}, 16, ["class"])]),
|
|
131
131
|
_: 3
|
|
132
132
|
}));
|
|
133
133
|
}
|
|
134
|
-
}),
|
|
134
|
+
}), V = ["data-shimmer", "data-offscreen"], H = /*#__PURE__*/ i(/* @__PURE__ */ m({
|
|
135
135
|
inheritAttrs: !1,
|
|
136
136
|
__name: "Skeleton",
|
|
137
137
|
props: {
|
|
@@ -164,32 +164,32 @@ var M = {
|
|
|
164
164
|
"data-shimmer": n.shimmer || void 0,
|
|
165
165
|
"data-offscreen": n.shimmer && l.value || void 0,
|
|
166
166
|
class: E(e)("skeleton", i.class)
|
|
167
|
-
}), null, 16,
|
|
167
|
+
}), null, 16, V));
|
|
168
168
|
}
|
|
169
169
|
}), [["__scopeId", "data-v-5e54f919"]]);
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region src/components/data-table/composables/useDataTableRowIdentity.ts
|
|
172
|
-
function
|
|
172
|
+
function U(e, t) {
|
|
173
173
|
return t.split(".").reduce((e, t) => {
|
|
174
174
|
if (!(typeof e != "object" || !e)) return e[t];
|
|
175
175
|
}, e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function W(e) {
|
|
178
178
|
return g(e) ? e.value : e;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function G(e) {
|
|
181
181
|
return [
|
|
182
182
|
"string",
|
|
183
183
|
"number",
|
|
184
184
|
"symbol"
|
|
185
185
|
].includes(typeof e);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ae(e) {
|
|
188
188
|
return { rowEntries: s(() => {
|
|
189
|
-
let t = /* @__PURE__ */ new Set(), n =
|
|
189
|
+
let t = /* @__PURE__ */ new Set(), n = W(e.getRowId);
|
|
190
190
|
return T(e.rows).map((r, i) => {
|
|
191
|
-
let a = n ? n(r) :
|
|
192
|
-
if (!
|
|
191
|
+
let a = n ? n(r) : U(r, T(e.rowKey));
|
|
192
|
+
if (!G(a)) throw TypeError(`[DataTable] Row ${i} has no stable identity.`);
|
|
193
193
|
if (t.has(a)) throw TypeError(`[DataTable] Duplicate row identity ${String(a)}.`);
|
|
194
194
|
return t.add(a), {
|
|
195
195
|
row: r,
|
|
@@ -200,33 +200,31 @@ function ie(e) {
|
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region src/components/data-table/composables/useDataTableResponsive.ts
|
|
203
|
-
function
|
|
204
|
-
let { columns: t, responsive: n, cardBreakpoint: r, containerWidth: i } = e;
|
|
203
|
+
function oe(e) {
|
|
204
|
+
let { columns: t, responsive: n, cardBreakpoint: r, containerWidth: i } = e, a = (e) => T(n) && e > 0 && e < T(r);
|
|
205
205
|
return {
|
|
206
|
-
isCard: s(() =>
|
|
207
|
-
|
|
208
|
-
return T(n) && e > 0 && e < T(r);
|
|
209
|
-
}),
|
|
206
|
+
isCard: s(() => a(T(i))),
|
|
207
|
+
cardAt: a,
|
|
210
208
|
headerColumn: s(() => T(t)[0]),
|
|
211
209
|
bodyColumns: s(() => T(t).slice(1))
|
|
212
210
|
};
|
|
213
211
|
}
|
|
214
212
|
//#endregion
|
|
215
213
|
//#region src/components/data-table/DataTable.vue?vue&type=script&setup=true&lang.ts
|
|
216
|
-
var
|
|
214
|
+
var se = ["data-state", "aria-busy"], ce = {
|
|
217
215
|
key: 0,
|
|
218
216
|
class: "data-table-state glass-quiet",
|
|
219
217
|
role: "alert"
|
|
220
|
-
},
|
|
218
|
+
}, le = {
|
|
221
219
|
key: 1,
|
|
222
220
|
class: "data-table-cards"
|
|
223
|
-
},
|
|
221
|
+
}, ue = ["role", "aria-label"], de = { class: "data-table-card-header" }, fe = { class: "data-table-card-title" }, pe = {
|
|
224
222
|
key: 0,
|
|
225
223
|
class: "data-table-card-fields"
|
|
226
|
-
},
|
|
224
|
+
}, me = { class: "data-table-card-label" }, he = ["data-align"], ge = {
|
|
227
225
|
key: 3,
|
|
228
226
|
class: "data-table-state glass-quiet"
|
|
229
|
-
},
|
|
227
|
+
}, _e = ["data-align", "onClick"], ve = { "aria-hidden": "true" }, ye = { role: "alert" }, K = /* @__PURE__ */ m({
|
|
230
228
|
__name: "DataTable",
|
|
231
229
|
props: {
|
|
232
230
|
columns: {},
|
|
@@ -272,41 +270,48 @@ var oe = ["data-state", "aria-busy"], se = {
|
|
|
272
270
|
"select"
|
|
273
271
|
],
|
|
274
272
|
setup(t, { emit: r }) {
|
|
275
|
-
let i = t, m = r, h = re(), g = s(() => !!h["row-actions"]), T = s(() => i.role ?? (i.selectable || i.tabbableRowId !== void 0 ? "grid" : void 0)), D = s(() => i.ariaColCount ?? i.columns.length + +!!g.value), O = s(() => i.ariaRowCount ?? (T.value ? i.rows.length + 1 : void 0)),
|
|
273
|
+
let i = t, m = r, h = re(), g = s(() => !!h["row-actions"]), T = s(() => i.role ?? (i.selectable || i.tabbableRowId !== void 0 ? "grid" : void 0)), D = s(() => i.ariaColCount ?? i.columns.length + +!!g.value), O = s(() => i.ariaRowCount ?? (T.value ? i.rows.length + 1 : void 0)), ie = s(() => i.status === "error" ? "error" : i.status === "loading" && i.rows.length === 0 ? "loading" : i.rows.length === 0 ? i.filtered ? "filtered-empty" : "empty" : i.status), M = b(null), z = b(0), V = NaN;
|
|
276
274
|
n(M, (e) => {
|
|
277
|
-
|
|
275
|
+
Math.abs(e.width - V) < 1 || (V = NaN, z.value = e.width);
|
|
278
276
|
});
|
|
279
|
-
let { isCard:
|
|
277
|
+
let { isCard: U, cardAt: W, headerColumn: G, bodyColumns: K } = oe({
|
|
280
278
|
columns: () => i.columns,
|
|
281
279
|
responsive: () => i.responsive,
|
|
282
280
|
cardBreakpoint: () => i.cardBreakpoint,
|
|
283
|
-
containerWidth:
|
|
284
|
-
})
|
|
281
|
+
containerWidth: z
|
|
282
|
+
});
|
|
283
|
+
k(U, (e) => {
|
|
284
|
+
let t = M.value;
|
|
285
|
+
if (!t) return;
|
|
286
|
+
let n = getComputedStyle(t), r = t.clientWidth - parseFloat(n.paddingLeft) - parseFloat(n.paddingRight);
|
|
287
|
+
V = W(r) === e ? NaN : r;
|
|
288
|
+
}, { flush: "post" });
|
|
289
|
+
let { rowEntries: q } = ae({
|
|
285
290
|
rows: () => i.rows,
|
|
286
291
|
rowKey: () => i.rowKey,
|
|
287
292
|
getRowId: s(() => i.getRowId)
|
|
288
|
-
}),
|
|
289
|
-
function
|
|
293
|
+
}), J = /* @__PURE__ */ new Map();
|
|
294
|
+
function Y(e, t, n) {
|
|
290
295
|
let r = n, a = n instanceof HTMLElement ? n : r?.$el, o = a instanceof HTMLElement ? a : null;
|
|
291
|
-
o ?
|
|
296
|
+
o ? J.set(e.key, o) : J.delete(e.key), i.rowRef?.(o, e.row, t);
|
|
292
297
|
}
|
|
293
|
-
let
|
|
298
|
+
let X = null;
|
|
294
299
|
te(() => {
|
|
295
|
-
|
|
300
|
+
X = Array.from(J).find(([, e]) => e === document.activeElement)?.[0] ?? null;
|
|
296
301
|
}), ne(() => {
|
|
297
|
-
|
|
302
|
+
X !== null && J.get(X)?.focus(), X = null;
|
|
298
303
|
});
|
|
299
|
-
let
|
|
300
|
-
function
|
|
304
|
+
let Z = Array.from({ length: 5 }, (e, t) => t);
|
|
305
|
+
function Q(e, t) {
|
|
301
306
|
return t.split(".").reduce((e, t) => {
|
|
302
307
|
if (!(typeof e != "object" || !e)) return e[t];
|
|
303
308
|
}, e);
|
|
304
309
|
}
|
|
305
|
-
function
|
|
306
|
-
let n =
|
|
310
|
+
function $(e, t) {
|
|
311
|
+
let n = Q(e, t.key);
|
|
307
312
|
return t.formatter ? t.formatter(n, e) : n == null ? "—" : String(n);
|
|
308
313
|
}
|
|
309
|
-
function
|
|
314
|
+
function be(e) {
|
|
310
315
|
if (!e.sortable) return;
|
|
311
316
|
let t = i.sort;
|
|
312
317
|
t?.key === e.key ? m("update:sort", {
|
|
@@ -317,169 +322,169 @@ var oe = ["data-state", "aria-busy"], se = {
|
|
|
317
322
|
direction: "asc"
|
|
318
323
|
});
|
|
319
324
|
}
|
|
320
|
-
function
|
|
325
|
+
function xe(e) {
|
|
321
326
|
if (e.sortable) return i.sort?.key === e.key ? i.sort.direction === "asc" ? "ascending" : "descending" : "none";
|
|
322
327
|
}
|
|
323
|
-
function
|
|
328
|
+
function Se(e) {
|
|
324
329
|
return e.sortable ? i.sort?.key === e.key ? i.sort.direction === "asc" ? " ↑" : " ↓" : " ↕" : "";
|
|
325
330
|
}
|
|
326
|
-
function
|
|
331
|
+
function Ce(e) {
|
|
327
332
|
return Object.is(i.selectedRowId, e.key);
|
|
328
333
|
}
|
|
329
|
-
function
|
|
330
|
-
m("update:selectedRowId", e.key), m("update:tabbableRowId", e.key), m("select", e.row),
|
|
334
|
+
function we(e) {
|
|
335
|
+
m("update:selectedRowId", e.key), m("update:tabbableRowId", e.key), m("select", e.row), J.get(e.key)?.focus({ preventScroll: !0 });
|
|
331
336
|
}
|
|
332
|
-
function
|
|
337
|
+
function Te(e, t) {
|
|
333
338
|
if (!(e.target instanceof Element)) return;
|
|
334
339
|
let n = e.target.closest(a);
|
|
335
|
-
(!n || n === e.currentTarget) &&
|
|
340
|
+
(!n || n === e.currentTarget) && we(t);
|
|
336
341
|
}
|
|
337
|
-
function
|
|
342
|
+
function Ee(e, t) {
|
|
338
343
|
if (e.target !== e.currentTarget) return;
|
|
339
344
|
if (["Enter", " "].includes(e.key)) {
|
|
340
345
|
if (!i.selectable) return;
|
|
341
|
-
e.preventDefault(),
|
|
346
|
+
e.preventDefault(), we(t);
|
|
342
347
|
return;
|
|
343
348
|
}
|
|
344
|
-
let n = e.key === "Home" ? 0 : e.key === "End" ?
|
|
349
|
+
let n = e.key === "Home" ? 0 : e.key === "End" ? q.value.length - 1 : -1, r = e.key === "ArrowUp" ? -1 : +(e.key === "ArrowDown");
|
|
345
350
|
if (n < 0 && r === 0) return;
|
|
346
|
-
let a =
|
|
347
|
-
s && (e.preventDefault(), m("update:tabbableRowId", s.key), ee(() =>
|
|
351
|
+
let a = q.value.findIndex(({ key: e }) => Object.is(e, t.key)), o = Math.max(0, Math.min(q.value.length - 1, n >= 0 ? n : a + r)), s = q.value[o];
|
|
352
|
+
s && (e.preventDefault(), m("update:tabbableRowId", s.key), ee(() => J.get(s.key)?.focus({ preventScroll: !0 })));
|
|
348
353
|
}
|
|
349
|
-
let
|
|
350
|
-
function
|
|
354
|
+
let De = s(() => i.tabbableRowId === void 0 ? i.selectable ? q.value.find(({ key: e }) => Object.is(e, i.selectedRowId))?.key ?? q.value[0]?.key ?? null : null : q.value.some(({ key: e }) => Object.is(e, i.tabbableRowId)) ? i.tabbableRowId : null);
|
|
355
|
+
function Oe(e, t = !1) {
|
|
351
356
|
if (!i.selectable) return {};
|
|
352
|
-
let n =
|
|
357
|
+
let n = Ce(e);
|
|
353
358
|
return {
|
|
354
359
|
class: "data-table-row-interactive",
|
|
355
360
|
role: t ? "option" : void 0,
|
|
356
361
|
"aria-selected": n,
|
|
357
362
|
"data-state": n ? "selected" : void 0,
|
|
358
|
-
onClick: (t) =>
|
|
363
|
+
onClick: (t) => Te(t, e)
|
|
359
364
|
};
|
|
360
365
|
}
|
|
361
|
-
function
|
|
366
|
+
function ke(e, t, n = !1) {
|
|
362
367
|
let r = { ...i.getRowAttrs?.(e.row, t) };
|
|
363
368
|
n ? delete r["aria-rowindex"] : i.getRowIndex && (r["aria-rowindex"] = i.getRowIndex(e.row, t));
|
|
364
369
|
let a = i.selectable || i.tabbableRowId !== void 0 ? {
|
|
365
370
|
class: "focus-ring",
|
|
366
|
-
tabindex: Object.is(
|
|
371
|
+
tabindex: Object.is(De.value, e.key) ? 0 : -1,
|
|
367
372
|
onFocus: () => m("update:tabbableRowId", e.key),
|
|
368
|
-
onKeydown: (t) =>
|
|
373
|
+
onKeydown: (t) => Ee(t, e)
|
|
369
374
|
} : {};
|
|
370
|
-
return _(r,
|
|
375
|
+
return _(r, Oe(e, n), a);
|
|
371
376
|
}
|
|
372
377
|
return (n, r) => (y(), u("div", {
|
|
373
378
|
"data-slot": "data-table",
|
|
374
379
|
ref_key: "rootRef",
|
|
375
380
|
ref: M,
|
|
376
381
|
class: v(E(e)("data-table", i.class)),
|
|
377
|
-
"data-state":
|
|
382
|
+
"data-state": ie.value,
|
|
378
383
|
"aria-busy": t.status === "loading" || void 0
|
|
379
|
-
}, [E(
|
|
384
|
+
}, [E(U) ? (y(), u(o, { key: 0 }, [t.status === "error" ? (y(), u("div", ce, [S(n.$slots, "error", {}, () => [r[2] ||= f("Unable to load data", -1)])])) : t.status === "loading" && t.rows.length === 0 ? (y(), u("div", le, [(y(!0), u(o, null, x(E(Z), (e) => (y(), u("div", {
|
|
380
385
|
key: "skel-card-" + e,
|
|
381
386
|
class: "data-table-card glass-quiet"
|
|
382
|
-
}, [p(E(
|
|
387
|
+
}, [p(E(H), { class: "data-table-card-skeleton-title" }), p(E(H), { class: "h-3 w-3/4" })]))), 128))])) : t.rows.length > 0 ? (y(), u("div", {
|
|
383
388
|
key: 2,
|
|
384
389
|
class: "data-table-cards",
|
|
385
390
|
role: t.selectable ? "listbox" : void 0,
|
|
386
391
|
"aria-label": t.selectable ? t.ariaLabel ?? "Rows" : void 0
|
|
387
|
-
}, [(y(!0), u(o, null, x(E(
|
|
392
|
+
}, [(y(!0), u(o, null, x(E(q), (t, i) => (y(), u("div", _({
|
|
388
393
|
key: t.key,
|
|
389
394
|
ref_for: !0,
|
|
390
|
-
ref: (e) =>
|
|
391
|
-
}, { ref_for: !0 },
|
|
395
|
+
ref: (e) => Y(t, i, e)
|
|
396
|
+
}, { ref_for: !0 }, ke(t, i, !0), { class: "data-table-card glass-quiet" }), [d("div", de, [d("div", fe, [E(G)?.component ? (y(), c(C(E(G).component), {
|
|
392
397
|
key: 0,
|
|
393
|
-
value:
|
|
398
|
+
value: Q(t.row, E(G).key),
|
|
394
399
|
row: t.row
|
|
395
|
-
}, null, 8, ["value", "row"])) : E(
|
|
400
|
+
}, null, 8, ["value", "row"])) : E(G) ? (y(), u(o, { key: 1 }, [f(w($(t.row, E(G))), 1)], 64)) : l("", !0)]), g.value ? (y(), u("div", {
|
|
396
401
|
key: 0,
|
|
397
402
|
class: "data-table-actions",
|
|
398
403
|
onClick: r[0] ||= j(() => {}, ["stop"])
|
|
399
|
-
}, [S(n.$slots, "row-actions", { row: t.row })])) : l("", !0)]), E(
|
|
404
|
+
}, [S(n.$slots, "row-actions", { row: t.row })])) : l("", !0)]), E(K).length > 0 ? (y(), u("dl", pe, [(y(!0), u(o, null, x(E(K), (n) => (y(), u(o, { key: n.key }, [d("dt", me, w(n.label), 1), d("dd", {
|
|
400
405
|
class: v(E(e)("data-table-card-value", n.class)),
|
|
401
406
|
"data-align": n.align ?? "left"
|
|
402
407
|
}, [n.component ? (y(), c(C(n.component), {
|
|
403
408
|
key: 0,
|
|
404
|
-
value:
|
|
409
|
+
value: Q(t.row, n.key),
|
|
405
410
|
row: t.row
|
|
406
|
-
}, null, 8, ["value", "row"])) : (y(), u(o, { key: 1 }, [f(w(
|
|
411
|
+
}, null, 8, ["value", "row"])) : (y(), u(o, { key: 1 }, [f(w($(t.row, n)), 1)], 64))], 10, he)], 64))), 128))])) : l("", !0)], 16))), 128))], 8, ue)) : (y(), u("div", ge, [t.filtered ? S(n.$slots, "filtered-empty", {}, () => [r[3] ||= f("No matching rows", -1)], void 0, 0) : S(n.$slots, "empty", {}, () => [r[4] ||= f("No rows yet", -1)], void 0, 1)]))], 64)) : (y(), c(E(N), {
|
|
407
412
|
key: 1,
|
|
408
413
|
role: T.value,
|
|
409
414
|
"aria-label": t.ariaLabel,
|
|
410
415
|
"aria-col-count": D.value,
|
|
411
416
|
"aria-row-count": O.value
|
|
412
417
|
}, {
|
|
413
|
-
default: A(() => [p(E(
|
|
414
|
-
default: A(() => [p(E(
|
|
418
|
+
default: A(() => [p(E(L), null, {
|
|
419
|
+
default: A(() => [p(E(R), {
|
|
415
420
|
class: "data-table-header-row",
|
|
416
421
|
"aria-rowindex": T.value === "grid" ? 1 : void 0
|
|
417
422
|
}, {
|
|
418
|
-
default: A(() => [(y(!0), u(o, null, x(t.columns, (e) => (y(), c(E(
|
|
423
|
+
default: A(() => [(y(!0), u(o, null, x(t.columns, (e) => (y(), c(E(I), {
|
|
419
424
|
key: e.key,
|
|
420
425
|
class: v(e.headerClass),
|
|
421
426
|
"data-align": e.align ?? "left",
|
|
422
|
-
"aria-sort":
|
|
427
|
+
"aria-sort": xe(e)
|
|
423
428
|
}, {
|
|
424
429
|
default: A(() => [e.sortable ? (y(), u("button", {
|
|
425
430
|
key: 0,
|
|
426
431
|
type: "button",
|
|
427
432
|
class: "data-table-sort focus-ring",
|
|
428
433
|
"data-align": e.align ?? "left",
|
|
429
|
-
onClick: (t) =>
|
|
430
|
-
}, [d("span", null, w(e.label), 1), d("span",
|
|
434
|
+
onClick: (t) => be(e)
|
|
435
|
+
}, [d("span", null, w(e.label), 1), d("span", ve, w(Se(e)), 1)], 8, _e)) : (y(), u(o, { key: 1 }, [f(w(e.label), 1)], 64))]),
|
|
431
436
|
_: 2
|
|
432
437
|
}, 1032, [
|
|
433
438
|
"class",
|
|
434
439
|
"data-align",
|
|
435
440
|
"aria-sort"
|
|
436
|
-
]))), 128)), g.value ? (y(), c(E(
|
|
441
|
+
]))), 128)), g.value ? (y(), c(E(I), {
|
|
437
442
|
key: 0,
|
|
438
443
|
class: "data-table-actions-cell"
|
|
439
444
|
})) : l("", !0)]),
|
|
440
445
|
_: 1
|
|
441
446
|
}, 8, ["aria-rowindex"])]),
|
|
442
447
|
_: 1
|
|
443
|
-
}), p(E(
|
|
444
|
-
default: A(() => [t.status === "error" ? (y(), c(E(
|
|
448
|
+
}), p(E(P), null, {
|
|
449
|
+
default: A(() => [t.status === "error" ? (y(), c(E(B), {
|
|
445
450
|
key: 0,
|
|
446
451
|
colspan: t.columns.length + +!!g.value,
|
|
447
452
|
role: T.value === "grid" ? "presentation" : void 0
|
|
448
453
|
}, {
|
|
449
|
-
default: A(() => [d("span",
|
|
454
|
+
default: A(() => [d("span", ye, [S(n.$slots, "error", {}, () => [r[5] ||= f("Unable to load data", -1)])])]),
|
|
450
455
|
_: 3
|
|
451
|
-
}, 8, ["colspan", "role"])) : t.status === "loading" && t.rows.length === 0 ? (y(!0), u(o, { key: 1 }, x(E(
|
|
452
|
-
default: A(() => [(y(!0), u(o, null, x(t.columns, (e) => (y(), c(E(
|
|
456
|
+
}, 8, ["colspan", "role"])) : t.status === "loading" && t.rows.length === 0 ? (y(!0), u(o, { key: 1 }, x(E(Z), (e) => (y(), c(E(R), { key: "skel-" + e }, {
|
|
457
|
+
default: A(() => [(y(!0), u(o, null, x(t.columns, (e) => (y(), c(E(F), {
|
|
453
458
|
key: e.key,
|
|
454
459
|
"data-align": e.align ?? "left"
|
|
455
460
|
}, {
|
|
456
|
-
default: A(() => [p(E(
|
|
461
|
+
default: A(() => [p(E(H), { class: "data-table-cell-skeleton" })]),
|
|
457
462
|
_: 1
|
|
458
|
-
}, 8, ["data-align"]))), 128)), g.value ? (y(), c(E(
|
|
463
|
+
}, 8, ["data-align"]))), 128)), g.value ? (y(), c(E(F), {
|
|
459
464
|
key: 0,
|
|
460
465
|
class: "data-table-actions-cell"
|
|
461
466
|
}, {
|
|
462
|
-
default: A(() => [p(E(
|
|
467
|
+
default: A(() => [p(E(H), { class: "data-table-action-skeleton" })]),
|
|
463
468
|
_: 1
|
|
464
469
|
})) : l("", !0)]),
|
|
465
470
|
_: 1
|
|
466
|
-
}))), 128)) : t.rows.length > 0 ? (y(!0), u(o, { key: 2 }, x(E(
|
|
471
|
+
}))), 128)) : t.rows.length > 0 ? (y(!0), u(o, { key: 2 }, x(E(q), (e, i) => (y(), c(E(R), _({
|
|
467
472
|
key: e.key,
|
|
468
473
|
ref_for: !0,
|
|
469
|
-
ref: (t) =>
|
|
470
|
-
}, { ref_for: !0 },
|
|
471
|
-
default: A(() => [(y(!0), u(o, null, x(t.columns, (t) => (y(), c(E(
|
|
474
|
+
ref: (t) => Y(e, i, t)
|
|
475
|
+
}, { ref_for: !0 }, ke(e, i)), {
|
|
476
|
+
default: A(() => [(y(!0), u(o, null, x(t.columns, (t) => (y(), c(E(F), {
|
|
472
477
|
key: t.key,
|
|
473
478
|
class: v(t.class),
|
|
474
479
|
"data-align": t.align ?? "left"
|
|
475
480
|
}, {
|
|
476
481
|
default: A(() => [t.component ? (y(), c(C(t.component), {
|
|
477
482
|
key: 0,
|
|
478
|
-
value:
|
|
483
|
+
value: Q(e.row, t.key),
|
|
479
484
|
row: e.row
|
|
480
|
-
}, null, 8, ["value", "row"])) : (y(), u(o, { key: 1 }, [f(w(
|
|
485
|
+
}, null, 8, ["value", "row"])) : (y(), u(o, { key: 1 }, [f(w($(e.row, t)), 1)], 64))]),
|
|
481
486
|
_: 2
|
|
482
|
-
}, 1032, ["class", "data-align"]))), 128)), g.value ? (y(), c(E(
|
|
487
|
+
}, 1032, ["class", "data-align"]))), 128)), g.value ? (y(), c(E(F), {
|
|
483
488
|
key: 0,
|
|
484
489
|
class: "data-table-actions-cell",
|
|
485
490
|
onClick: r[1] ||= j(() => {}, ["stop"])
|
|
@@ -488,7 +493,7 @@ var oe = ["data-state", "aria-busy"], se = {
|
|
|
488
493
|
_: 2
|
|
489
494
|
}, 1024)) : l("", !0)]),
|
|
490
495
|
_: 2
|
|
491
|
-
}, 1040))), 128)) : (y(), c(E(
|
|
496
|
+
}, 1040))), 128)) : (y(), c(E(B), {
|
|
492
497
|
key: 3,
|
|
493
498
|
colspan: t.columns.length + +!!g.value,
|
|
494
499
|
role: T.value === "grid" ? "presentation" : void 0
|
|
@@ -504,8 +509,8 @@ var oe = ["data-state", "aria-busy"], se = {
|
|
|
504
509
|
"aria-label",
|
|
505
510
|
"aria-col-count",
|
|
506
511
|
"aria-row-count"
|
|
507
|
-
])), S(n.$slots, "sentinel")], 10,
|
|
512
|
+
])), S(n.$slots, "sentinel")], 10, se));
|
|
508
513
|
}
|
|
509
514
|
});
|
|
510
515
|
//#endregion
|
|
511
|
-
export {
|
|
516
|
+
export { L as a, P as c, R as i, N as l, H as n, I as o, B as r, F as s, K as t };
|
package/dist/data-table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./data-table-
|
|
1
|
+
import { t as e } from "./data-table-DQuWkiwL.js";
|
|
2
2
|
export { e as DataTable };
|
package/dist/dock.js
CHANGED
|
@@ -7,7 +7,7 @@ import { t as a } from "./useLiquidPress-h1scrPtP.js";
|
|
|
7
7
|
import { t as o } from "./useMotionAxis-D-rtIhca.js";
|
|
8
8
|
import { n as s, t as c } from "./createContext-BhkE9mLH.js";
|
|
9
9
|
import { a as l, c as u, d, f, i as p, l as m, n as h, o as g, r as _, s as v, u as y } from "./participation-B7UFdgXB.js";
|
|
10
|
-
import { t as b } from "./useResizeObserver-
|
|
10
|
+
import { t as b } from "./useResizeObserver-Bv3nN46q.js";
|
|
11
11
|
import { n as x } from "./useResolveTokenColor-B2FfJnd9.js";
|
|
12
12
|
import { t as S } from "./useIntersectionPause-CzKR3EyP.js";
|
|
13
13
|
import { t as C } from "./focus-Duf7EpUu.js";
|
package/dist/dom.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./useResizeObserver-
|
|
1
|
+
import { t as e } from "./useResizeObserver-Bv3nN46q.js";
|
|
2
2
|
import { t } from "./useTimer-C3yfti4C.js";
|
|
3
3
|
import { t as n } from "./useDragVelocity-C5BkKiNf.js";
|
|
4
4
|
import { n as r, t as i } from "./useResolveTokenColor-B2FfJnd9.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./supportsCssTimeline-Di9gzleG.js";
|
|
2
|
-
import { t } from "./useResizeObserver-
|
|
2
|
+
import { t } from "./useResizeObserver-Bv3nN46q.js";
|
|
3
3
|
import { computed as n, createElementBlock as r, defineComponent as i, normalizeClass as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, renderSlot as u, toRef as d, unref as f, watch as p } from "vue";
|
|
4
4
|
//#region src/components/fading-scroll/composables/useFadingScroll.ts
|
|
5
5
|
var m;
|
package/dist/fading-scroll.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./fading-scroll-
|
|
1
|
+
import { n as e, t } from "./fading-scroll-ClCPooXb.js";
|
|
2
2
|
export { t as FadingScroll, e as useFadingScroll };
|
package/dist/glass-ui.js
CHANGED
|
@@ -11,13 +11,13 @@ import { n as fe, t as pe } from "./supportsCssTimeline-Di9gzleG.js";
|
|
|
11
11
|
import { t as me } from "./checkbox-B1qn65se.js";
|
|
12
12
|
import { a as he, c as ge, i as u, l as d, n as f, o as p, r as m, s as h, t as g } from "./command-CatrAsrl.js";
|
|
13
13
|
import { n as _, t as v } from "./DialogContent-CwIBvou_.js";
|
|
14
|
-
import { t as y } from "./useResizeObserver-
|
|
14
|
+
import { t as y } from "./useResizeObserver-Bv3nN46q.js";
|
|
15
15
|
import { t as b } from "./useTimer-C3yfti4C.js";
|
|
16
16
|
import { t as x } from "./useDragVelocity-C5BkKiNf.js";
|
|
17
17
|
import { n as S, t as C } from "./useResolveTokenColor-B2FfJnd9.js";
|
|
18
18
|
import { n as w, t as T } from "./useClipboard-D36OTaeT.js";
|
|
19
19
|
import { useBreakpoint as E, useIdleReady as D, useTokenColor as O, useTouchGate as k, useUserInvalidAria as A, useViewportReady as j } from "./dom.js";
|
|
20
|
-
import { a as M, c as N, i as P, l as F, n as I, o as L, r as _e, s as ve, t as ye } from "./data-table-
|
|
20
|
+
import { a as M, c as N, i as P, l as F, n as I, o as L, r as _e, s as ve, t as ye } from "./data-table-DQuWkiwL.js";
|
|
21
21
|
import { a as be, i as xe, n as Se, o as Ce, r as we, t as Te } from "./dialog-BZoFG0j8.js";
|
|
22
22
|
import { t as Ee } from "./DropdownMenuTrigger-CKRnhDSQ.js";
|
|
23
23
|
import { a as De, c as Oe, d as ke, f as Ae, i as je, l as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./menu-DaYAZiVW.js";
|
|
@@ -35,7 +35,7 @@ import { t as ut } from "./switch-BYUZ6g9G.js";
|
|
|
35
35
|
import { a as dt, c as ft, i as pt, n as mt, o as ht, r as gt, s as _t, t as vt } from "./toast-DVOwo6GB.js";
|
|
36
36
|
import { n as yt, t as bt } from "./toggle-group-CC5b3o1R.js";
|
|
37
37
|
import { i as xt, n as St, r as Ct, t as wt } from "./tooltip-CZVubnJf.js";
|
|
38
|
-
import { a as Tt, i as Et, n as Dt, o as Ot, r as kt, s as At, t as jt } from "./configurator-
|
|
38
|
+
import { a as Tt, i as Et, n as Dt, o as Ot, r as kt, s as At, t as jt } from "./configurator-Dl10mc3L.js";
|
|
39
39
|
import { useInterval as Mt } from "./reactive.js";
|
|
40
40
|
import { n as Nt, r as Pt, t as Ft } from "./vReveal-B5WYGofz.js";
|
|
41
41
|
import { t as It } from "./usePointerVelocityField-Lx26_Yap.js";
|
package/dist/pager-dots.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { t } from "./useLiquidFlex-TJZmRqyY.js";
|
|
3
|
-
import { t as n } from "./useResizeObserver-
|
|
3
|
+
import { t as n } from "./useResizeObserver-Bv3nN46q.js";
|
|
4
4
|
import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
5
|
import { s as i } from "./deck-Cm_VmyNL.js";
|
|
6
6
|
import { n as a } from "./useLeadTrail-DQWdpFN1.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrentScope as e, onScopeDispose as t, watch as n } from "vue";
|
|
2
2
|
//#region src/composables/dom/useResizeObserver.ts
|
|
3
3
|
function r(r, i, a = {}) {
|
|
4
|
-
let o = a.threshold ?? .5, s = a.rafBatch ?? !0, c = a.box, l = null, u = null, d =
|
|
4
|
+
let o = a.threshold ?? .5, s = a.rafBatch ?? !0, c = a.box, l = null, u = null, d = NaN, f = NaN, p = null, m = null;
|
|
5
5
|
function h() {
|
|
6
6
|
if (p = null, !m) return;
|
|
7
7
|
let e = m;
|
|
@@ -18,16 +18,13 @@ function r(r, i, a = {}) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
function _() {
|
|
21
|
-
l && u && l.unobserve(u), l?.disconnect(), l = null, u = null, p !== null && (cancelAnimationFrame(p), p = null), m = null;
|
|
21
|
+
l && u && l.unobserve(u), l?.disconnect(), l = null, u = null, d = NaN, f = NaN, p !== null && (cancelAnimationFrame(p), p = null), m = null;
|
|
22
22
|
}
|
|
23
23
|
function v(e) {
|
|
24
|
-
|
|
25
|
-
l = new ResizeObserver((e) => {
|
|
24
|
+
typeof window > "u" || typeof ResizeObserver > "u" || (l = new ResizeObserver((e) => {
|
|
26
25
|
let t = e[e.length - 1];
|
|
27
26
|
t && g(t);
|
|
28
|
-
}), l.observe(e, c ? { box: c } : void 0), u = e;
|
|
29
|
-
let t = e.getBoundingClientRect();
|
|
30
|
-
d = t.width, f = t.height;
|
|
27
|
+
}), l.observe(e, c ? { box: c } : void 0), u = e);
|
|
31
28
|
}
|
|
32
29
|
let y = n(r, (e) => {
|
|
33
30
|
_(), e && v(e);
|