@g4rcez/components 3.0.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CaretDown.es-Cj7klWI3.js +33 -0
- package/dist/CaretDown.es-Cj7klWI3.js.map +1 -0
- package/dist/CaretRight.es-0-M8D9y8.js +33 -0
- package/dist/CaretRight.es-0-M8D9y8.js.map +1 -0
- package/dist/CheckCircle.es-C6QWLfk_.js +33 -0
- package/dist/CheckCircle.es-C6QWLfk_.js.map +1 -0
- package/dist/File.es-CA-vuPED.js +33 -0
- package/dist/File.es-CA-vuPED.js.map +1 -0
- package/dist/IconBase.es-DJ1oCtpo.js +50 -0
- package/dist/IconBase.es-DJ1oCtpo.js.map +1 -0
- package/dist/Info.es-CrZKs4q4.js +33 -0
- package/dist/Info.es-CrZKs4q4.js.map +1 -0
- package/dist/MotionConfigContext-C7MqlSdv.js.map +1 -1
- package/dist/Warning.es-D_eI6tLe.js +39 -0
- package/dist/Warning.es-D_eI6tLe.js.map +1 -0
- package/dist/X.es-BJ1O93El.js +39 -0
- package/dist/X.es-BJ1O93El.js.map +1 -0
- package/dist/ai/docs/Alert.md +1 -1
- package/dist/ai/docs/AnimatedList.md +3 -3
- package/dist/ai/docs/Button.md +1 -1
- package/dist/ai/docs/CommandPalette.md +7 -7
- package/dist/ai/docs/Dropdown.md +4 -4
- package/dist/ai/docs/Empty.md +9 -9
- package/dist/ai/docs/Expand.md +1 -1
- package/dist/ai/docs/FileUpload.md +2 -2
- package/dist/ai/docs/Input.md +2 -2
- package/dist/ai/docs/InputField.md +2 -2
- package/dist/ai/docs/List.md +3 -3
- package/dist/ai/docs/Menu.md +3 -3
- package/dist/ai/docs/MultiSelect.md +1 -1
- package/dist/ai/docs/PageCalendar.md +1 -1
- package/dist/ai/docs/Select.md +1 -1
- package/dist/ai/docs/Slot.md +1 -1
- package/dist/ai/docs/Stats.md +11 -11
- package/dist/ai/docs/Table.md +1 -1
- package/dist/ai/docs/Tag.md +2 -2
- package/dist/ai/docs/Timeline.md +5 -5
- package/dist/ai/docs/Toolbar.md +2 -2
- package/dist/ai/docs/Tooltip.md +3 -3
- package/dist/ai/docs/TransferList.md +2 -2
- package/dist/{autocomplete-Boida9R7.js → autocomplete-Cn9Z2hLq.js} +48 -48
- package/dist/autocomplete-Cn9Z2hLq.js.map +1 -0
- package/dist/{calendar-BswV66Nx.js → calendar-B5lSd0ID.js} +599 -571
- package/dist/calendar-B5lSd0ID.js.map +1 -0
- package/dist/components/display/alert.js +18 -18
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/calendar.js +4 -4
- package/dist/components/display/card.d.ts +2 -2
- package/dist/components/display/card.d.ts.map +1 -1
- package/dist/components/display/card.js +6 -6
- package/dist/components/display/card.js.map +1 -1
- package/dist/components/display/empty.d.ts +2 -2
- package/dist/components/display/empty.d.ts.map +1 -1
- package/dist/components/display/list.js +15 -15
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/notifications.js +5 -5
- package/dist/components/display/tabs.js +1 -1
- package/dist/components/floating/command-palette.d.ts +3 -3
- package/dist/components/floating/command-palette.d.ts.map +1 -1
- package/dist/components/floating/dropdown.js +1 -1
- package/dist/components/floating/expand.js +1 -1
- package/dist/components/floating/menu.d.ts +2 -2
- package/dist/components/floating/menu.d.ts.map +1 -1
- package/dist/components/floating/menu.js +31 -31
- package/dist/components/floating/menu.js.map +1 -1
- package/dist/components/floating/modal.js +35 -35
- package/dist/components/floating/modal.js.map +1 -1
- package/dist/components/floating/tooltip.js +1 -1
- package/dist/components/form/autocomplete.js +5 -5
- package/dist/components/form/date-picker.js +3 -3
- package/dist/components/form/file-upload.d.ts.map +1 -1
- package/dist/components/form/file-upload.js +3 -3
- package/dist/components/form/input-field.d.ts.map +1 -1
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/select.js +29 -29
- package/dist/components/form/select.js.map +1 -1
- package/dist/components/form/task-list.js.map +1 -1
- package/dist/components/form/transfer-list.js +15 -15
- package/dist/components/form/transfer-list.js.map +1 -1
- package/dist/components/page-calendar/calendar-header.d.ts.map +1 -1
- package/dist/components/table/table.js +3 -3
- package/dist/config/context.d.ts +2 -0
- package/dist/config/context.d.ts.map +1 -1
- package/dist/context-BFXNJVn2.js.map +1 -1
- package/dist/{date-picker-BxPTdZPy.js → date-picker-DwNo22lx.js} +316 -288
- package/dist/date-picker-DwNo22lx.js.map +1 -0
- package/dist/{file-upload-BB6BdGcE.js → file-upload-Brf2NkLr.js} +1103 -976
- package/dist/file-upload-Brf2NkLr.js.map +1 -0
- package/dist/{floating-ui.react-DycKASR0.js → floating-ui.react-QNHG9W4N.js} +205 -205
- package/dist/{floating-ui.react-DycKASR0.js.map → floating-ui.react-QNHG9W4N.js.map} +1 -1
- package/dist/hooks/use-components-provider.d.ts.map +1 -1
- package/dist/index-0YMC-_Lt.js.map +1 -1
- package/dist/index-BelDtX5M.js +1821 -0
- package/dist/index-BelDtX5M.js.map +1 -0
- package/dist/{index-BtlhELJ3.js → index-C-PuFUZi.js} +136 -136
- package/dist/index-C-PuFUZi.js.map +1 -0
- package/dist/index-Z-fZHxfJ.js +335 -0
- package/dist/index-Z-fZHxfJ.js.map +1 -0
- package/dist/index-t1qLJTt5.js.map +1 -1
- package/dist/index.js +2404 -2328
- package/dist/index.js.map +1 -1
- package/dist/{input-CoJoHIhd.js → input-CrGrSnUt.js} +2 -2
- package/dist/{input-CoJoHIhd.js.map → input-CrGrSnUt.js.map} +1 -1
- package/dist/input-field-5vYcz5tT.js +166 -0
- package/dist/input-field-5vYcz5tT.js.map +1 -0
- package/dist/notifications-cUdVPs-B.js +2786 -0
- package/dist/notifications-cUdVPs-B.js.map +1 -0
- package/dist/proxy-BZcQiBrp.js.map +1 -1
- package/dist/{slot-CQW8ZzBb.js → slot-CRyweuj0.js} +5 -5
- package/dist/{slot-CQW8ZzBb.js.map → slot-CRyweuj0.js.map} +1 -1
- package/dist/{tabs-ccIA7vMo.js → tabs-S00a8qq8.js} +5 -5
- package/dist/{tabs-ccIA7vMo.js.map → tabs-S00a8qq8.js.map} +1 -1
- package/dist/use-motion-value-eGwNuWuw.js.map +1 -1
- package/package.json +2 -2
- package/dist/autocomplete-Boida9R7.js.map +0 -1
- package/dist/calendar-BswV66Nx.js.map +0 -1
- package/dist/chevron-down-BBFYYzZq.js +0 -6
- package/dist/chevron-down-BBFYYzZq.js.map +0 -1
- package/dist/chevron-right-DvXGOiS_.js +0 -6
- package/dist/chevron-right-DvXGOiS_.js.map +0 -1
- package/dist/circle-check-big-3M5lhTxx.js +0 -9
- package/dist/circle-check-big-3M5lhTxx.js.map +0 -1
- package/dist/createLucideIcon-CP-mMPfa.js +0 -76
- package/dist/createLucideIcon-CP-mMPfa.js.map +0 -1
- package/dist/date-picker-BxPTdZPy.js.map +0 -1
- package/dist/file-CBCP85VI.js +0 -15
- package/dist/file-CBCP85VI.js.map +0 -1
- package/dist/file-upload-BB6BdGcE.js.map +0 -1
- package/dist/index-BJ1ayTam.js +0 -126
- package/dist/index-BJ1ayTam.js.map +0 -1
- package/dist/index-BtlhELJ3.js.map +0 -1
- package/dist/index-ChfR6F8d.js +0 -1590
- package/dist/index-ChfR6F8d.js.map +0 -1
- package/dist/index-DE4shK8D.js +0 -215
- package/dist/index-DE4shK8D.js.map +0 -1
- package/dist/info-N5jWZg2A.js +0 -10
- package/dist/info-N5jWZg2A.js.map +0 -1
- package/dist/input-field-DTeIrwpK.js +0 -146
- package/dist/input-field-DTeIrwpK.js.map +0 -1
- package/dist/notifications-NPuFDsBp.js +0 -2550
- package/dist/notifications-NPuFDsBp.js.map +0 -1
- package/dist/triangle-alert-CHMhQ6yd.js +0 -16
- package/dist/triangle-alert-CHMhQ6yd.js.map +0 -1
- package/dist/x-B9bYxG31.js +0 -9
- package/dist/x-B9bYxG31.js.map +0 -1
|
@@ -593,7 +593,7 @@ function Cn(e, t, o, n) {
|
|
|
593
593
|
function ke(e, t) {
|
|
594
594
|
return Math.round(e.getBoundingClientRect()[t]);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function yt(e) {
|
|
597
597
|
return !X(e.groupOffsetTree);
|
|
598
598
|
}
|
|
599
599
|
function Ut({ index: e }, t) {
|
|
@@ -610,7 +610,7 @@ function zn() {
|
|
|
610
610
|
sizeTree: Xe()
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function yn(e, t) {
|
|
614
614
|
let o = X(e) ? 0 : 1 / 0;
|
|
615
615
|
for (const n of t) {
|
|
616
616
|
const { endIndex: r, size: i, startIndex: l } = n;
|
|
@@ -628,7 +628,7 @@ function Rn(e, t) {
|
|
|
628
628
|
}
|
|
629
629
|
return [e, o];
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Rn(e) {
|
|
632
632
|
return typeof e.groupIndex < "u";
|
|
633
633
|
}
|
|
634
634
|
function bn({ offset: e }, t) {
|
|
@@ -641,7 +641,7 @@ function at(e, t, o) {
|
|
|
641
641
|
return s > 0 ? s + o : s;
|
|
642
642
|
}
|
|
643
643
|
function Go(e, t) {
|
|
644
|
-
if (!
|
|
644
|
+
if (!yt(t))
|
|
645
645
|
return e;
|
|
646
646
|
let o = 0;
|
|
647
647
|
for (; t.groupIndices[o] <= e + o; )
|
|
@@ -649,7 +649,7 @@ function Go(e, t) {
|
|
|
649
649
|
return e + o;
|
|
650
650
|
}
|
|
651
651
|
function No(e, t, o) {
|
|
652
|
-
if (
|
|
652
|
+
if (Rn(e))
|
|
653
653
|
return t.groupIndices[e.groupIndex] + 1;
|
|
654
654
|
{
|
|
655
655
|
const n = e.index === "LAST" ? o : e.index;
|
|
@@ -668,7 +668,7 @@ function Bn(e, [t, o, n, r]) {
|
|
|
668
668
|
const m = t[0].size, I = t[1].size;
|
|
669
669
|
l = o.reduce((z, T) => Se(Se(z, T, m), T + 1, I), l);
|
|
670
670
|
} else
|
|
671
|
-
[l, s] =
|
|
671
|
+
[l, s] = yn(l, t);
|
|
672
672
|
if (l === i)
|
|
673
673
|
return e;
|
|
674
674
|
const { lastIndex: u, lastOffset: d, lastSize: h, offsetTree: x } = At(e.offsetTree, s, l, r);
|
|
@@ -750,11 +750,11 @@ const Fn = {
|
|
|
750
750
|
M((a) => a.length > 0),
|
|
751
751
|
_(c, T),
|
|
752
752
|
B(([a, p, C]) => {
|
|
753
|
-
const
|
|
753
|
+
const y = a.reduce((O, L, D) => Se(O, L, at(L, p.offsetTree, C) || D), Xe());
|
|
754
754
|
return {
|
|
755
755
|
...p,
|
|
756
756
|
groupIndices: a,
|
|
757
|
-
groupOffsetTree:
|
|
757
|
+
groupOffsetTree: y
|
|
758
758
|
};
|
|
759
759
|
})
|
|
760
760
|
),
|
|
@@ -800,19 +800,19 @@ const Fn = {
|
|
|
800
800
|
M((a) => a !== void 0 && a.length > 0 && X(ie(c).sizeTree)),
|
|
801
801
|
B((a) => {
|
|
802
802
|
const p = [];
|
|
803
|
-
let C = a[0],
|
|
803
|
+
let C = a[0], y = 0;
|
|
804
804
|
for (let O = 1; O < a.length; O++) {
|
|
805
805
|
const L = a[O];
|
|
806
806
|
L !== C && (p.push({
|
|
807
807
|
endIndex: O - 1,
|
|
808
808
|
size: C,
|
|
809
|
-
startIndex:
|
|
810
|
-
}), C = L,
|
|
809
|
+
startIndex: y
|
|
810
|
+
}), C = L, y = O);
|
|
811
811
|
}
|
|
812
812
|
return p.push({
|
|
813
813
|
endIndex: a.length - 1,
|
|
814
814
|
size: C,
|
|
815
|
-
startIndex:
|
|
815
|
+
startIndex: y
|
|
816
816
|
}), p;
|
|
817
817
|
})
|
|
818
818
|
),
|
|
@@ -823,20 +823,20 @@ const Fn = {
|
|
|
823
823
|
_(x, h),
|
|
824
824
|
M(([, a, p]) => a !== void 0 && p !== void 0),
|
|
825
825
|
B(([a, p, C]) => {
|
|
826
|
-
const
|
|
826
|
+
const y = [];
|
|
827
827
|
for (let O = 0; O < a.length; O++) {
|
|
828
828
|
const L = a[O], D = a[O + 1];
|
|
829
|
-
|
|
829
|
+
y.push({
|
|
830
830
|
startIndex: L,
|
|
831
831
|
endIndex: L,
|
|
832
832
|
size: p
|
|
833
|
-
}), D !== void 0 &&
|
|
833
|
+
}), D !== void 0 && y.push({
|
|
834
834
|
startIndex: L + 1,
|
|
835
835
|
endIndex: D - 1,
|
|
836
836
|
size: C
|
|
837
837
|
});
|
|
838
838
|
}
|
|
839
|
-
return
|
|
839
|
+
return y;
|
|
840
840
|
})
|
|
841
841
|
),
|
|
842
842
|
o
|
|
@@ -886,17 +886,17 @@ const Fn = {
|
|
|
886
886
|
i,
|
|
887
887
|
_(c),
|
|
888
888
|
B(([a, p]) => {
|
|
889
|
-
const C = p.groupIndices.length > 0,
|
|
889
|
+
const C = p.groupIndices.length > 0, y = [], O = p.lastSize;
|
|
890
890
|
if (C) {
|
|
891
891
|
const L = st(p.sizeTree, 0);
|
|
892
892
|
let D = 0, W = 0;
|
|
893
893
|
for (; D < a; ) {
|
|
894
894
|
const Y = p.groupIndices[W], J = p.groupIndices.length === W + 1 ? 1 / 0 : p.groupIndices[W + 1] - Y - 1;
|
|
895
|
-
|
|
895
|
+
y.push({
|
|
896
896
|
endIndex: Y,
|
|
897
897
|
size: L,
|
|
898
898
|
startIndex: Y
|
|
899
|
-
}),
|
|
899
|
+
}), y.push({
|
|
900
900
|
endIndex: Y + 1 + J - 1,
|
|
901
901
|
size: O,
|
|
902
902
|
startIndex: Y + 1
|
|
@@ -922,7 +922,7 @@ const Fn = {
|
|
|
922
922
|
{
|
|
923
923
|
prevIndex: a,
|
|
924
924
|
prevSize: 0,
|
|
925
|
-
ranges:
|
|
925
|
+
ranges: y
|
|
926
926
|
}
|
|
927
927
|
).ranges;
|
|
928
928
|
}
|
|
@@ -947,8 +947,8 @@ const Fn = {
|
|
|
947
947
|
l,
|
|
948
948
|
_(c, T),
|
|
949
949
|
B(([a, { offsetTree: p }, C]) => {
|
|
950
|
-
const
|
|
951
|
-
return at(
|
|
950
|
+
const y = -a;
|
|
951
|
+
return at(y, p, C);
|
|
952
952
|
})
|
|
953
953
|
)
|
|
954
954
|
);
|
|
@@ -960,7 +960,7 @@ const Fn = {
|
|
|
960
960
|
if (p.groupIndices.length > 0) {
|
|
961
961
|
if (X(p.sizeTree))
|
|
962
962
|
return p;
|
|
963
|
-
let
|
|
963
|
+
let y = Xe();
|
|
964
964
|
const O = ie(f);
|
|
965
965
|
let L = 0, D = 0, W = 0;
|
|
966
966
|
for (; L < -a; ) {
|
|
@@ -968,23 +968,23 @@ const Fn = {
|
|
|
968
968
|
const U = O[D + 1] - W - 1;
|
|
969
969
|
D++, L += U + 1;
|
|
970
970
|
}
|
|
971
|
-
if (
|
|
971
|
+
if (y = Ue(p.sizeTree).reduce((U, { k: Y, v: J }) => Se(U, Math.max(0, Y + a), J), y), L !== -a) {
|
|
972
972
|
const U = st(p.sizeTree, W);
|
|
973
|
-
|
|
973
|
+
y = Se(y, 0, U);
|
|
974
974
|
const Y = Ee(p.sizeTree, -a + 1)[1];
|
|
975
|
-
|
|
975
|
+
y = Se(y, 1, Y);
|
|
976
976
|
}
|
|
977
977
|
return {
|
|
978
978
|
...p,
|
|
979
|
-
sizeTree:
|
|
980
|
-
...At(p.offsetTree, 0,
|
|
979
|
+
sizeTree: y,
|
|
980
|
+
...At(p.offsetTree, 0, y, C)
|
|
981
981
|
};
|
|
982
982
|
} else {
|
|
983
|
-
const
|
|
983
|
+
const y = Ue(p.sizeTree).reduce((O, { k: L, v: D }) => Se(O, Math.max(0, L + a), D), Xe());
|
|
984
984
|
return {
|
|
985
985
|
...p,
|
|
986
|
-
sizeTree:
|
|
987
|
-
...At(p.offsetTree, 0,
|
|
986
|
+
sizeTree: y,
|
|
987
|
+
...At(p.offsetTree, 0, y, C)
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
990
|
})
|
|
@@ -1044,7 +1044,7 @@ const _o = K(
|
|
|
1044
1044
|
), k(
|
|
1045
1045
|
v(
|
|
1046
1046
|
ue(r, t, n),
|
|
1047
|
-
M(([u, d]) =>
|
|
1047
|
+
M(([u, d]) => yt(d)),
|
|
1048
1048
|
B(([u, d, h]) => Ee(d.groupOffsetTree, Math.max(u - h, 0), "v")[0]),
|
|
1049
1049
|
ee(),
|
|
1050
1050
|
B((u) => [u])
|
|
@@ -1100,14 +1100,14 @@ const ht = K(
|
|
|
1100
1100
|
_(e, i, r),
|
|
1101
1101
|
B(
|
|
1102
1102
|
([
|
|
1103
|
-
[E, b, F, a, p, C,
|
|
1103
|
+
[E, b, F, a, p, C, y, O],
|
|
1104
1104
|
L,
|
|
1105
1105
|
D,
|
|
1106
1106
|
W
|
|
1107
1107
|
]) => {
|
|
1108
1108
|
const U = Uo(E), { align: Y, behavior: J, offset: ve } = U, Ie = a - 1, xe = No(U, b, Ie);
|
|
1109
1109
|
let Te = at(xe, b.offsetTree, L) + C;
|
|
1110
|
-
Y === "end" ? (Te += D + Ee(b.sizeTree, xe)[1] - F + W, xe === Ie && (Te +=
|
|
1110
|
+
Y === "end" ? (Te += D + Ee(b.sizeTree, xe)[1] - F + W, xe === Ie && (Te += y)) : Y === "center" ? Te += (D + Ee(b.sizeTree, xe)[1] - F + W) / 2 : Te -= p, ve && (Te += ve);
|
|
1111
1111
|
const Oe = (be) => {
|
|
1112
1112
|
w(), be ? (O("retrying to scroll to", { location: E }, pe.DEBUG), N(I, E)) : (N(z, !0), O("list did not change, scroll successful", {}, pe.DEBUG));
|
|
1113
1113
|
};
|
|
@@ -1234,7 +1234,7 @@ const ct = "up", nt = "down", An = "none", Vn = {
|
|
|
1234
1234
|
v(
|
|
1235
1235
|
ue(n, P(i), P(t), P(e), P(h)),
|
|
1236
1236
|
We((f, [{ scrollHeight: w, scrollTop: E }, b, F, a, p]) => {
|
|
1237
|
-
const C = E + b - w > -p,
|
|
1237
|
+
const C = E + b - w > -p, y = {
|
|
1238
1238
|
scrollHeight: w,
|
|
1239
1239
|
scrollTop: E,
|
|
1240
1240
|
viewportHeight: b
|
|
@@ -1245,14 +1245,14 @@ const ct = "up", nt = "down", An = "none", Vn = {
|
|
|
1245
1245
|
atBottom: !0,
|
|
1246
1246
|
atBottomBecause: L,
|
|
1247
1247
|
scrollTopDelta: D,
|
|
1248
|
-
state:
|
|
1248
|
+
state: y
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
1251
|
let O;
|
|
1252
|
-
return
|
|
1252
|
+
return y.scrollHeight > f.state.scrollHeight ? O = "SIZE_INCREASED" : b < f.state.viewportHeight ? O = "VIEWPORT_HEIGHT_DECREASING" : E < f.state.scrollTop ? O = "SCROLLING_UPWARDS" : O = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
|
1253
1253
|
atBottom: !1,
|
|
1254
1254
|
notAtBottomBecause: O,
|
|
1255
|
-
state:
|
|
1255
|
+
state: y
|
|
1256
1256
|
};
|
|
1257
1257
|
}, Vn),
|
|
1258
1258
|
ee((f, w) => f && f.atBottom === w.atBottom)
|
|
@@ -1406,7 +1406,7 @@ const $t = K(
|
|
|
1406
1406
|
{ singleton: !0 }
|
|
1407
1407
|
);
|
|
1408
1408
|
function Dn(e, t, o) {
|
|
1409
|
-
if (
|
|
1409
|
+
if (yt(t)) {
|
|
1410
1410
|
const n = Go(e, t);
|
|
1411
1411
|
return [
|
|
1412
1412
|
{ index: Ee(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
|
|
@@ -1466,7 +1466,7 @@ function Ko(e, t, o, n, r, i) {
|
|
|
1466
1466
|
function Io(e, t, o) {
|
|
1467
1467
|
if (e.length === 0)
|
|
1468
1468
|
return [];
|
|
1469
|
-
if (!
|
|
1469
|
+
if (!yt(t))
|
|
1470
1470
|
return e.map((d) => ({ ...d, index: d.index + o, originalIndex: d.index }));
|
|
1471
1471
|
const n = e[0].index, r = e[e.length - 1].index, i = [], l = Je(t.groupOffsetTree, n, r);
|
|
1472
1472
|
let s, u = 0;
|
|
@@ -1522,8 +1522,8 @@ const qe = K(
|
|
|
1522
1522
|
P(f),
|
|
1523
1523
|
e
|
|
1524
1524
|
),
|
|
1525
|
-
M(([a, p, , C, , , , , , , ,
|
|
1526
|
-
const O =
|
|
1525
|
+
M(([a, p, , C, , , , , , , , y]) => {
|
|
1526
|
+
const O = y && y.length !== C;
|
|
1527
1527
|
return a && !p && !O;
|
|
1528
1528
|
}),
|
|
1529
1529
|
B(
|
|
@@ -1532,7 +1532,7 @@ const qe = K(
|
|
|
1532
1532
|
,
|
|
1533
1533
|
[a, p],
|
|
1534
1534
|
C,
|
|
1535
|
-
|
|
1535
|
+
y,
|
|
1536
1536
|
O,
|
|
1537
1537
|
L,
|
|
1538
1538
|
D,
|
|
@@ -1542,11 +1542,11 @@ const qe = K(
|
|
|
1542
1542
|
J
|
|
1543
1543
|
]) => {
|
|
1544
1544
|
var ve, Ie, xe, Te;
|
|
1545
|
-
const Oe =
|
|
1545
|
+
const Oe = y, { offsetTree: be, sizeTree: Ve } = Oe, ot = ie(g);
|
|
1546
1546
|
if (C === 0)
|
|
1547
1547
|
return { ...Bt, totalCount: C };
|
|
1548
1548
|
if (a === 0 && p === 0)
|
|
1549
|
-
return ot === 0 ? { ...Bt, totalCount: C } : Ko(ot, O,
|
|
1549
|
+
return ot === 0 ? { ...Bt, totalCount: C } : Ko(ot, O, y, W, U, J || []);
|
|
1550
1550
|
if (X(Ve))
|
|
1551
1551
|
return ot > 0 ? null : Tt(
|
|
1552
1552
|
Dn(Kt(O, C), Oe, J),
|
|
@@ -1568,11 +1568,11 @@ const qe = K(
|
|
|
1568
1568
|
}
|
|
1569
1569
|
if (!L)
|
|
1570
1570
|
return Tt([], Ye, C, U, Oe, W);
|
|
1571
|
-
const Le = D.length > 0 ? D[D.length - 1] + 1 : 0,
|
|
1572
|
-
if (
|
|
1571
|
+
const Le = D.length > 0 ? D[D.length - 1] + 1 : 0, R = Hn(be, a, p, Le);
|
|
1572
|
+
if (R.length === 0)
|
|
1573
1573
|
return null;
|
|
1574
1574
|
const $ = C - 1, ne = zt([], (ae) => {
|
|
1575
|
-
for (const le of
|
|
1575
|
+
for (const le of R) {
|
|
1576
1576
|
const de = le.value;
|
|
1577
1577
|
let se = de.offset, Z = le.start;
|
|
1578
1578
|
const Q = de.size;
|
|
@@ -1751,9 +1751,9 @@ const qe = K(
|
|
|
1751
1751
|
_(t, u, o, i, r, n, s),
|
|
1752
1752
|
_(e),
|
|
1753
1753
|
B(([[x, m, I, z, T, g, c, f], w]) => {
|
|
1754
|
-
const { align: E, behavior: b, calculateViewLocation: F = Nn, done: a, ...p } = x, C = No(x, m, z - 1),
|
|
1754
|
+
const { align: E, behavior: b, calculateViewLocation: F = Nn, done: a, ...p } = x, C = No(x, m, z - 1), y = at(C, m.offsetTree, w) + T + g, O = y + Ee(m.sizeTree, C)[1], L = f + g, D = f + I - c, W = F({
|
|
1755
1755
|
itemBottom: O,
|
|
1756
|
-
itemTop:
|
|
1756
|
+
itemTop: y,
|
|
1757
1757
|
locationParams: { align: E, behavior: b, ...p },
|
|
1758
1758
|
viewportBottom: D,
|
|
1759
1759
|
viewportTop: L
|
|
@@ -1807,9 +1807,9 @@ const _n = (e, t) => typeof e == "function" ? To(e(t)) : t && To(e), Un = K(
|
|
|
1807
1807
|
v(
|
|
1808
1808
|
ue(v(P(t), $e(1)), u),
|
|
1809
1809
|
_(P(z), i, s, x),
|
|
1810
|
-
B(([[b, F], a, p, C,
|
|
1810
|
+
B(([[b, F], a, p, C, y]) => {
|
|
1811
1811
|
let O = F && C, L = "auto";
|
|
1812
|
-
return O && (L = _n(a, p ||
|
|
1812
|
+
return O && (L = _n(a, p || y), O = O && !!L), { followOutputBehavior: L, shouldFollow: O, totalCount: b };
|
|
1813
1813
|
}),
|
|
1814
1814
|
M(({ shouldFollow: b }) => b)
|
|
1815
1815
|
),
|
|
@@ -1863,7 +1863,7 @@ const _n = (e, t) => typeof e == "function" ? To(e(t)) : t && To(e), Un = K(
|
|
|
1863
1863
|
v(
|
|
1864
1864
|
ue(v(E, $e(1)), u),
|
|
1865
1865
|
_(P(w), s, x, m),
|
|
1866
|
-
B(([[b, F], a, p, C,
|
|
1866
|
+
B(([[b, F], a, p, C, y]) => F && p && a?.({ context: y, totalCount: b, scrollingInProgress: C })),
|
|
1867
1867
|
M((b) => !!b),
|
|
1868
1868
|
Ae(0)
|
|
1869
1869
|
),
|
|
@@ -2059,8 +2059,8 @@ const Zn = Xo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2059
2059
|
We(
|
|
2060
2060
|
([, c, f, w], [{ bottom: E, items: b, offsetBottom: F, totalCount: a }, p]) => {
|
|
2061
2061
|
const C = E + F;
|
|
2062
|
-
let
|
|
2063
|
-
return f === a && c.length > 0 && b.length > 0 && (b[0].originalIndex === 0 && c[0].originalIndex === 0 || (
|
|
2062
|
+
let y = 0;
|
|
2063
|
+
return f === a && c.length > 0 && b.length > 0 && (b[0].originalIndex === 0 && c[0].originalIndex === 0 || (y = C - w, y !== 0 && (y += p))), [y, b, a, C];
|
|
2064
2064
|
},
|
|
2065
2065
|
[0, [], 0, 0]
|
|
2066
2066
|
),
|
|
@@ -2102,11 +2102,11 @@ const Zn = Xo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2102
2102
|
{
|
|
2103
2103
|
let a = 0;
|
|
2104
2104
|
const p = st(E, 0);
|
|
2105
|
-
let C = 0,
|
|
2105
|
+
let C = 0, y = 0;
|
|
2106
2106
|
for (; C < c; ) {
|
|
2107
2107
|
C++, a += p;
|
|
2108
|
-
let O = f.length ===
|
|
2109
|
-
C + O > c && (a -= p, O = c - C + 1), C += O, a += F(O),
|
|
2108
|
+
let O = f.length === y + 1 ? 1 / 0 : f[y + 1] - f[y] - 1;
|
|
2109
|
+
C + O > c && (a -= p, O = c - C + 1), C += O, a += F(O), y++;
|
|
2110
2110
|
}
|
|
2111
2111
|
return a;
|
|
2112
2112
|
}
|
|
@@ -2190,7 +2190,7 @@ const Zn = Xo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2190
2190
|
{ groupCounts: p },
|
|
2191
2191
|
C
|
|
2192
2192
|
]) => {
|
|
2193
|
-
const { listState:
|
|
2193
|
+
const { listState: y, minOverscanItemCount: O, topItemsIndexes: L, rangeChanged: D, ...W } = E;
|
|
2194
2194
|
return k(D, C.scrollSeekRangeChanged), k(
|
|
2195
2195
|
v(
|
|
2196
2196
|
C.windowViewportRect,
|
|
@@ -2217,7 +2217,7 @@ const Zn = Xo(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2217
2217
|
...w,
|
|
2218
2218
|
groupIndices: l,
|
|
2219
2219
|
itemSize: u,
|
|
2220
|
-
listState:
|
|
2220
|
+
listState: y,
|
|
2221
2221
|
minOverscanItemCount: O,
|
|
2222
2222
|
scrollToIndex: b,
|
|
2223
2223
|
// output
|
|
@@ -2334,7 +2334,7 @@ function Yt(e, t, o) {
|
|
|
2334
2334
|
usePublisher: m
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
|
-
const
|
|
2337
|
+
const Rt = H.createContext(void 0), Qo = H.createContext(void 0), en = typeof document < "u" ? H.useLayoutEffect : H.useEffect;
|
|
2338
2338
|
function Et(e) {
|
|
2339
2339
|
return "self" in e;
|
|
2340
2340
|
}
|
|
@@ -2431,7 +2431,7 @@ const tr = /* @__PURE__ */ K(() => {
|
|
|
2431
2431
|
([e, t]) => ({ ...e, ...t }),
|
|
2432
2432
|
oe(Jo, tr)
|
|
2433
2433
|
), nr = ({ height: e }) => /* @__PURE__ */ A("div", { style: { height: e } }), rr = { overflowAnchor: "none", position: Zt(), zIndex: 1 }, on = { overflowAnchor: "none" }, ir = { ...on, display: "inline-block", height: "100%" }, wo = /* @__PURE__ */ H.memo(function({ showTopList: e = !1 }) {
|
|
2434
|
-
const t = V("listState"), o =
|
|
2434
|
+
const t = V("listState"), o = ye("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = ye("windowScrollContainerState"), l = ye("scrollContainerState"), s = r || n ? i : l, u = V("itemContent"), d = V("context"), h = V("groupContent"), x = V("trackItemSizes"), m = V("itemSize"), I = V("log"), z = ye("gap"), T = V("horizontalDirection"), { callbackRef: g } = Fo(
|
|
2435
2435
|
o,
|
|
2436
2436
|
m,
|
|
2437
2437
|
x,
|
|
@@ -2445,7 +2445,7 @@ const tr = /* @__PURE__ */ K(() => {
|
|
|
2445
2445
|
eo("deviation", (W) => {
|
|
2446
2446
|
c !== W && f(W);
|
|
2447
2447
|
});
|
|
2448
|
-
const w = V("EmptyPlaceholder"), E = V("ScrollSeekPlaceholder") || nr, b = V("ListComponent"), F = V("ItemComponent"), a = V("GroupComponent"), p = V("computeItemKey"), C = V("isSeeking"),
|
|
2448
|
+
const w = V("EmptyPlaceholder"), E = V("ScrollSeekPlaceholder") || nr, b = V("ListComponent"), F = V("ItemComponent"), a = V("GroupComponent"), p = V("computeItemKey"), C = V("isSeeking"), y = V("groupIndices").length > 0, O = V("alignToBottom"), L = V("initialItemFinalLocationReached"), D = e ? {} : {
|
|
2449
2449
|
boxSizing: "border-box",
|
|
2450
2450
|
...T ? {
|
|
2451
2451
|
display: "inline-block",
|
|
@@ -2503,7 +2503,7 @@ const tr = /* @__PURE__ */ K(() => {
|
|
|
2503
2503
|
key: Y,
|
|
2504
2504
|
style: T ? ir : on
|
|
2505
2505
|
},
|
|
2506
|
-
|
|
2506
|
+
y ? u(W.index, W.groupIndex, W.data, d) : u(W.index, W.data, d)
|
|
2507
2507
|
);
|
|
2508
2508
|
})
|
|
2509
2509
|
}
|
|
@@ -2538,7 +2538,7 @@ function nn(e, t) {
|
|
|
2538
2538
|
return { item: typeof e == "string" ? void 0 : t };
|
|
2539
2539
|
}
|
|
2540
2540
|
const ar = /* @__PURE__ */ H.memo(function() {
|
|
2541
|
-
const e = V("HeaderComponent"), t =
|
|
2541
|
+
const e = V("HeaderComponent"), t = ye("headerHeight"), o = V("HeaderFooterTag"), n = Pe(
|
|
2542
2542
|
H.useMemo(
|
|
2543
2543
|
() => (i) => {
|
|
2544
2544
|
t(ke(i, "height"));
|
|
@@ -2550,7 +2550,7 @@ const ar = /* @__PURE__ */ H.memo(function() {
|
|
|
2550
2550
|
), r = V("context");
|
|
2551
2551
|
return e ? /* @__PURE__ */ A(o, { ref: n, children: /* @__PURE__ */ A(e, { ...te(e, r) }) }) : null;
|
|
2552
2552
|
}), cr = /* @__PURE__ */ H.memo(function() {
|
|
2553
|
-
const e = V("FooterComponent"), t =
|
|
2553
|
+
const e = V("FooterComponent"), t = ye("footerHeight"), o = V("HeaderFooterTag"), n = Pe(
|
|
2554
2554
|
H.useMemo(
|
|
2555
2555
|
() => (i) => {
|
|
2556
2556
|
t(ke(i, "height"));
|
|
@@ -2615,7 +2615,7 @@ function Qt({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2615
2615
|
});
|
|
2616
2616
|
}
|
|
2617
2617
|
const dr = ({ children: e }) => {
|
|
2618
|
-
const t = H.useContext(
|
|
2618
|
+
const t = H.useContext(Rt), o = ye("viewportHeight"), n = ye("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), l = H.useMemo(
|
|
2619
2619
|
() => it(o, (u) => ke(u, i ? "width" : "height")),
|
|
2620
2620
|
[o, i]
|
|
2621
2621
|
), s = Pe(l, !0, V("skipAnimationFrameInResizeObserver"));
|
|
@@ -2623,7 +2623,7 @@ const dr = ({ children: e }) => {
|
|
|
2623
2623
|
t && (o(t.viewportHeight), n(t.itemHeight));
|
|
2624
2624
|
}, [t, o, n]), /* @__PURE__ */ A("div", { "data-viewport-type": "element", ref: s, style: tt(r), children: e });
|
|
2625
2625
|
}, fr = ({ children: e }) => {
|
|
2626
|
-
const t = H.useContext(
|
|
2626
|
+
const t = H.useContext(Rt), o = ye("windowViewportRect"), n = ye("fixedItemHeight"), r = V("customScrollParent"), i = Nt(
|
|
2627
2627
|
o,
|
|
2628
2628
|
r,
|
|
2629
2629
|
V("skipAnimationFrameInResizeObserver")
|
|
@@ -2648,7 +2648,7 @@ const dr = ({ children: e }) => {
|
|
|
2648
2648
|
Component: gr,
|
|
2649
2649
|
useEmitter: eo,
|
|
2650
2650
|
useEmitterValue: V,
|
|
2651
|
-
usePublisher:
|
|
2651
|
+
usePublisher: ye
|
|
2652
2652
|
} = /* @__PURE__ */ Yt(
|
|
2653
2653
|
or,
|
|
2654
2654
|
{
|
|
@@ -2712,7 +2712,7 @@ const dr = ({ children: e }) => {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
},
|
|
2714
2714
|
mr
|
|
2715
|
-
), pr = /* @__PURE__ */ Jt({ useEmitter: eo, useEmitterValue: V, usePublisher:
|
|
2715
|
+
), pr = /* @__PURE__ */ Jt({ useEmitter: eo, useEmitterValue: V, usePublisher: ye }), vr = /* @__PURE__ */ Qt({ useEmitter: eo, useEmitterValue: V, usePublisher: ye }), $r = gr, Ir = /* @__PURE__ */ K(() => {
|
|
2716
2716
|
const e = S((d) => /* @__PURE__ */ Ke("td", { children: [
|
|
2717
2717
|
"Item $",
|
|
2718
2718
|
d
|
|
@@ -2804,13 +2804,13 @@ const dr = ({ children: e }) => {
|
|
|
2804
2804
|
!1,
|
|
2805
2805
|
G("skipAnimationFrameInResizeObserver")
|
|
2806
2806
|
), [I, z] = H.useState(0);
|
|
2807
|
-
to("deviation", (
|
|
2808
|
-
I !==
|
|
2807
|
+
to("deviation", (y) => {
|
|
2808
|
+
I !== y && (m.current.style.marginTop = `${y}px`, z(y));
|
|
2809
2809
|
});
|
|
2810
2810
|
const T = G("EmptyPlaceholder"), g = G("FillerRow") || Sr, c = G("TableBodyComponent"), f = G("paddingTopAddition"), w = G("statefulTotalCount"), E = G("context");
|
|
2811
2811
|
if (w === 0 && T)
|
|
2812
2812
|
return /* @__PURE__ */ A(T, { ...te(T, E) });
|
|
2813
|
-
const b = (t ? e.topItems : []).reduce((
|
|
2813
|
+
const b = (t ? e.topItems : []).reduce((y, O) => y + O.size, 0), F = e.offsetTop + f + I - b, a = e.offsetBottom, p = F > 0 ? /* @__PURE__ */ A(g, { context: E, height: F }, "padding-top") : null, C = a > 0 ? /* @__PURE__ */ A(g, { context: E, height: a }, "padding-bottom") : null;
|
|
2814
2814
|
return /* @__PURE__ */ Ke(c, { "data-testid": "virtuoso-item-list", ref: x, ...te(c, E), children: [
|
|
2815
2815
|
p,
|
|
2816
2816
|
t && /* @__PURE__ */ A(zo, { showTopList: !0 }),
|
|
@@ -2818,7 +2818,7 @@ const dr = ({ children: e }) => {
|
|
|
2818
2818
|
C
|
|
2819
2819
|
] });
|
|
2820
2820
|
}), zr = ({ children: e }) => {
|
|
2821
|
-
const t = H.useContext(
|
|
2821
|
+
const t = H.useContext(Rt), o = Be("viewportHeight"), n = Be("fixedItemHeight"), r = Pe(
|
|
2822
2822
|
H.useMemo(() => it(o, (i) => ke(i, "height")), [o]),
|
|
2823
2823
|
!0,
|
|
2824
2824
|
G("skipAnimationFrameInResizeObserver")
|
|
@@ -2826,8 +2826,8 @@ const dr = ({ children: e }) => {
|
|
|
2826
2826
|
return H.useEffect(() => {
|
|
2827
2827
|
t && (o(t.viewportHeight), n(t.itemHeight));
|
|
2828
2828
|
}, [t, o, n]), /* @__PURE__ */ A("div", { "data-viewport-type": "element", ref: r, style: tt(!1), children: e });
|
|
2829
|
-
},
|
|
2830
|
-
const t = H.useContext(
|
|
2829
|
+
}, yr = ({ children: e }) => {
|
|
2830
|
+
const t = H.useContext(Rt), o = Be("windowViewportRect"), n = Be("fixedItemHeight"), r = G("customScrollParent"), i = Nt(
|
|
2831
2831
|
o,
|
|
2832
2832
|
r,
|
|
2833
2833
|
G("skipAnimationFrameInResizeObserver")
|
|
@@ -2835,7 +2835,7 @@ const dr = ({ children: e }) => {
|
|
|
2835
2835
|
return H.useEffect(() => {
|
|
2836
2836
|
t && (n(t.itemHeight), o({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
2837
2837
|
}, [t, o, n]), /* @__PURE__ */ A("div", { "data-viewport-type": "window", ref: i, style: tt(!1), children: e });
|
|
2838
|
-
},
|
|
2838
|
+
}, Rr = /* @__PURE__ */ H.memo(function(e) {
|
|
2839
2839
|
const t = G("useWindowScroll"), o = G("customScrollParent"), n = Be("fixedHeaderHeight"), r = Be("fixedFooterHeight"), i = G("fixedHeaderContent"), l = G("fixedFooterContent"), s = G("context"), u = Pe(
|
|
2840
2840
|
H.useMemo(() => it(n, (c) => ke(c, "height")), [n]),
|
|
2841
2841
|
!0,
|
|
@@ -2844,7 +2844,7 @@ const dr = ({ children: e }) => {
|
|
|
2844
2844
|
H.useMemo(() => it(r, (c) => ke(c, "height")), [r]),
|
|
2845
2845
|
!0,
|
|
2846
2846
|
G("skipAnimationFrameInResizeObserver")
|
|
2847
|
-
), h = o || t ? Br : Hr, x = o || t ?
|
|
2847
|
+
), h = o || t ? Br : Hr, x = o || t ? yr : zr, m = G("TableComponent"), I = G("TableHeadComponent"), z = G("TableFooterComponent"), T = i ? /* @__PURE__ */ A(
|
|
2848
2848
|
I,
|
|
2849
2849
|
{
|
|
2850
2850
|
ref: u,
|
|
@@ -2931,8 +2931,8 @@ const dr = ({ children: e }) => {
|
|
|
2931
2931
|
groupIndices: "groupIndices"
|
|
2932
2932
|
}
|
|
2933
2933
|
},
|
|
2934
|
-
|
|
2935
|
-
), Hr = /* @__PURE__ */ Jt({ useEmitter: to, useEmitterValue: G, usePublisher: Be }), Br = /* @__PURE__ */ Qt({ useEmitter: to, useEmitterValue: G, usePublisher: Be }), qr = br,
|
|
2934
|
+
Rr
|
|
2935
|
+
), Hr = /* @__PURE__ */ Jt({ useEmitter: to, useEmitterValue: G, usePublisher: Be }), Br = /* @__PURE__ */ Qt({ useEmitter: to, useEmitterValue: G, usePublisher: Be }), qr = br, yo = {
|
|
2936
2936
|
bottom: 0,
|
|
2937
2937
|
itemHeight: 0,
|
|
2938
2938
|
items: [],
|
|
@@ -2948,7 +2948,7 @@ const dr = ({ children: e }) => {
|
|
|
2948
2948
|
offsetBottom: 0,
|
|
2949
2949
|
offsetTop: 0,
|
|
2950
2950
|
top: 0
|
|
2951
|
-
}, { ceil:
|
|
2951
|
+
}, { ceil: Ro, floor: wt, max: rt, min: Ot, round: bo } = Math;
|
|
2952
2952
|
function Ho(e, t, o) {
|
|
2953
2953
|
return Array.from({ length: t - e + 1 }).map((n, r) => ({ data: o === null ? null : o[r + e], index: r + e }));
|
|
2954
2954
|
}
|
|
@@ -2974,24 +2974,24 @@ const Fr = /* @__PURE__ */ K(
|
|
|
2974
2974
|
{ customScrollParent: g, useWindowScroll: c, windowScrollContainerState: f, windowScrollTo: w, windowViewportRect: E },
|
|
2975
2975
|
b
|
|
2976
2976
|
]) => {
|
|
2977
|
-
const F = S(0), a = S(0), p = S(
|
|
2977
|
+
const F = S(0), a = S(0), p = S(yo), C = S({ height: 0, width: 0 }), y = S({ height: 0, width: 0 }), O = j(), L = j(), D = S(0), W = S(null), U = S({ column: 0, row: 0 }), Y = j(), J = j(), ve = S(!1), Ie = S(0), xe = S(!0), Te = S(!1), Oe = S(!1);
|
|
2978
2978
|
q(
|
|
2979
2979
|
v(
|
|
2980
2980
|
z,
|
|
2981
2981
|
_(Ie),
|
|
2982
|
-
M(([
|
|
2982
|
+
M(([R, $]) => !!$)
|
|
2983
2983
|
),
|
|
2984
2984
|
() => {
|
|
2985
2985
|
N(xe, !1);
|
|
2986
2986
|
}
|
|
2987
2987
|
), q(
|
|
2988
2988
|
v(
|
|
2989
|
-
ue(z, xe,
|
|
2990
|
-
M(([
|
|
2989
|
+
ue(z, xe, y, C, Ie, Te),
|
|
2990
|
+
M(([R, $, ne, fe, , Ce]) => R && !$ && ne.height !== 0 && fe.height !== 0 && !Ce)
|
|
2991
2991
|
),
|
|
2992
|
-
([, , , ,
|
|
2992
|
+
([, , , , R]) => {
|
|
2993
2993
|
N(Te, !0), jt(1, () => {
|
|
2994
|
-
N(O,
|
|
2994
|
+
N(O, R);
|
|
2995
2995
|
}), He(v(d), () => {
|
|
2996
2996
|
N(t, [0, 0]), N(xe, !0);
|
|
2997
2997
|
});
|
|
@@ -2999,7 +2999,7 @@ const Fr = /* @__PURE__ */ K(
|
|
|
2999
2999
|
), k(
|
|
3000
3000
|
v(
|
|
3001
3001
|
J,
|
|
3002
|
-
M((
|
|
3002
|
+
M((R) => R != null && R.scrollTop > 0),
|
|
3003
3003
|
Fe(0)
|
|
3004
3004
|
),
|
|
3005
3005
|
a
|
|
@@ -3007,32 +3007,32 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3007
3007
|
v(
|
|
3008
3008
|
z,
|
|
3009
3009
|
_(J),
|
|
3010
|
-
M(([,
|
|
3010
|
+
M(([, R]) => R != null)
|
|
3011
3011
|
),
|
|
3012
|
-
([,
|
|
3013
|
-
|
|
3012
|
+
([, R]) => {
|
|
3013
|
+
R && (N(C, R.viewport), N(y, R.item), N(U, R.gap), R.scrollTop > 0 && (N(ve, !0), He(v(d, $e(1)), ($) => {
|
|
3014
3014
|
N(ve, !1);
|
|
3015
|
-
}), N(u, { top:
|
|
3015
|
+
}), N(u, { top: R.scrollTop })));
|
|
3016
3016
|
}
|
|
3017
3017
|
), k(
|
|
3018
3018
|
v(
|
|
3019
3019
|
C,
|
|
3020
|
-
B(({ height:
|
|
3020
|
+
B(({ height: R }) => R)
|
|
3021
3021
|
),
|
|
3022
3022
|
x
|
|
3023
3023
|
), k(
|
|
3024
3024
|
v(
|
|
3025
3025
|
ue(
|
|
3026
3026
|
P(C, It),
|
|
3027
|
-
P(
|
|
3028
|
-
P(U, (
|
|
3027
|
+
P(y, It),
|
|
3028
|
+
P(U, (R, $) => R && R.column === $.column && R.row === $.row),
|
|
3029
3029
|
P(d)
|
|
3030
3030
|
),
|
|
3031
|
-
B(([
|
|
3031
|
+
B(([R, $, ne, fe]) => ({
|
|
3032
3032
|
gap: ne,
|
|
3033
3033
|
item: $,
|
|
3034
3034
|
scrollTop: fe,
|
|
3035
|
-
viewport:
|
|
3035
|
+
viewport: R
|
|
3036
3036
|
}))
|
|
3037
3037
|
),
|
|
3038
3038
|
Y
|
|
@@ -3042,7 +3042,7 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3042
3042
|
P(F),
|
|
3043
3043
|
n,
|
|
3044
3044
|
P(U, Or),
|
|
3045
|
-
P(
|
|
3045
|
+
P(y, It),
|
|
3046
3046
|
P(C, It),
|
|
3047
3047
|
P(W),
|
|
3048
3048
|
P(a),
|
|
@@ -3050,10 +3050,10 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3050
3050
|
P(xe),
|
|
3051
3051
|
P(Ie)
|
|
3052
3052
|
),
|
|
3053
|
-
M(([, , , , , , ,
|
|
3053
|
+
M(([, , , , , , , R]) => !R),
|
|
3054
3054
|
B(
|
|
3055
3055
|
([
|
|
3056
|
-
|
|
3056
|
+
R,
|
|
3057
3057
|
[$, ne],
|
|
3058
3058
|
fe,
|
|
3059
3059
|
Ce,
|
|
@@ -3065,16 +3065,16 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3065
3065
|
Z
|
|
3066
3066
|
]) => {
|
|
3067
3067
|
const { column: Q, row: ze } = fe, { height: he, width: bt } = Ce, { width: oo } = ae;
|
|
3068
|
-
if (de === 0 && (
|
|
3069
|
-
return
|
|
3068
|
+
if (de === 0 && (R === 0 || oo === 0))
|
|
3069
|
+
return yo;
|
|
3070
3070
|
if (bt === 0) {
|
|
3071
|
-
const so = Kt(Z,
|
|
3071
|
+
const so = Kt(Z, R), un = so + Math.max(de - 1, 0);
|
|
3072
3072
|
return kr(Ho(so, un, le));
|
|
3073
3073
|
}
|
|
3074
3074
|
const pt = rn(oo, bt, Q);
|
|
3075
3075
|
let Ze, _e;
|
|
3076
|
-
se ? $ === 0 && ne === 0 && de > 0 ? (Ze = 0, _e = de - 1) : (Ze = pt * wt(($ + ze) / (he + ze)), _e = pt *
|
|
3077
|
-
const no = Ho(Ze, _e, le), { bottom: ro, top: io } = Bo(ae, fe, Ce, no), lo =
|
|
3076
|
+
se ? $ === 0 && ne === 0 && de > 0 ? (Ze = 0, _e = de - 1) : (Ze = pt * wt(($ + ze) / (he + ze)), _e = pt * Ro((ne + ze) / (he + ze)) - 1, _e = Ot(R - 1, rt(_e, pt - 1)), Ze = Ot(_e, rt(0, Ze))) : (Ze = 0, _e = -1);
|
|
3077
|
+
const no = Ho(Ze, _e, le), { bottom: ro, top: io } = Bo(ae, fe, Ce, no), lo = Ro(R / pt), sn = lo * he + (lo - 1) * ze - ro;
|
|
3078
3078
|
return { bottom: ro, itemHeight: he, items: no, itemWidth: bt, offsetBottom: sn, offsetTop: io, top: io };
|
|
3079
3079
|
}
|
|
3080
3080
|
)
|
|
@@ -3083,16 +3083,16 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3083
3083
|
), k(
|
|
3084
3084
|
v(
|
|
3085
3085
|
W,
|
|
3086
|
-
M((
|
|
3087
|
-
B((
|
|
3086
|
+
M((R) => R !== null),
|
|
3087
|
+
B((R) => R.length)
|
|
3088
3088
|
),
|
|
3089
3089
|
F
|
|
3090
3090
|
), k(
|
|
3091
3091
|
v(
|
|
3092
|
-
ue(C,
|
|
3093
|
-
M(([
|
|
3094
|
-
B(([
|
|
3095
|
-
const { bottom: Ce, top: ae } = Bo(
|
|
3092
|
+
ue(C, y, p, U),
|
|
3093
|
+
M(([R, $, { items: ne }]) => ne.length > 0 && $.height !== 0 && R.height !== 0),
|
|
3094
|
+
B(([R, $, { items: ne }, fe]) => {
|
|
3095
|
+
const { bottom: Ce, top: ae } = Bo(R, fe, $, ne);
|
|
3096
3096
|
return [ae, Ce];
|
|
3097
3097
|
}),
|
|
3098
3098
|
ee(ut)
|
|
@@ -3104,26 +3104,26 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3104
3104
|
v(
|
|
3105
3105
|
d,
|
|
3106
3106
|
_(be),
|
|
3107
|
-
B(([
|
|
3107
|
+
B(([R, $]) => $ || R !== 0)
|
|
3108
3108
|
),
|
|
3109
3109
|
be
|
|
3110
3110
|
);
|
|
3111
3111
|
const Ve = we(
|
|
3112
3112
|
v(
|
|
3113
3113
|
ue(p, F),
|
|
3114
|
-
M(([{ items:
|
|
3114
|
+
M(([{ items: R }]) => R.length > 0),
|
|
3115
3115
|
_(be),
|
|
3116
|
-
M(([[
|
|
3117
|
-
const fe =
|
|
3118
|
-
return (ne ||
|
|
3116
|
+
M(([[R, $], ne]) => {
|
|
3117
|
+
const fe = R.items[R.items.length - 1].index === $ - 1;
|
|
3118
|
+
return (ne || R.bottom > 0 && R.itemHeight > 0 && R.offsetBottom === 0 && R.items.length === $) && fe;
|
|
3119
3119
|
}),
|
|
3120
|
-
B(([[,
|
|
3120
|
+
B(([[, R]]) => R - 1),
|
|
3121
3121
|
ee()
|
|
3122
3122
|
)
|
|
3123
3123
|
), ot = we(
|
|
3124
3124
|
v(
|
|
3125
3125
|
P(p),
|
|
3126
|
-
M(({ items:
|
|
3126
|
+
M(({ items: R }) => R.length > 0 && R[0].index === 0),
|
|
3127
3127
|
Fe(0),
|
|
3128
3128
|
ee()
|
|
3129
3129
|
)
|
|
@@ -3131,10 +3131,10 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3131
3131
|
v(
|
|
3132
3132
|
P(p),
|
|
3133
3133
|
_(ve),
|
|
3134
|
-
M(([{ items:
|
|
3135
|
-
B(([{ items:
|
|
3136
|
-
endIndex:
|
|
3137
|
-
startIndex:
|
|
3134
|
+
M(([{ items: R }, $]) => R.length > 0 && !$),
|
|
3135
|
+
B(([{ items: R }]) => ({
|
|
3136
|
+
endIndex: R[R.length - 1].index,
|
|
3137
|
+
startIndex: R[0].index
|
|
3138
3138
|
})),
|
|
3139
3139
|
ee(Lo),
|
|
3140
3140
|
Ae(0)
|
|
@@ -3143,9 +3143,9 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3143
3143
|
k(Ye, I.scrollSeekRangeChanged), k(
|
|
3144
3144
|
v(
|
|
3145
3145
|
O,
|
|
3146
|
-
_(C,
|
|
3147
|
-
B(([
|
|
3148
|
-
const ae = Uo(
|
|
3146
|
+
_(C, y, F, U),
|
|
3147
|
+
B(([R, $, ne, fe, Ce]) => {
|
|
3148
|
+
const ae = Uo(R), { align: le, behavior: de, offset: se } = ae;
|
|
3149
3149
|
let Z = ae.index;
|
|
3150
3150
|
Z === "LAST" && (Z = fe - 1), Z = rt(0, Z, Ot(fe - 1, Z));
|
|
3151
3151
|
let Q = Vt($, Ce, ne, Z);
|
|
@@ -3157,14 +3157,14 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3157
3157
|
const Le = me(
|
|
3158
3158
|
v(
|
|
3159
3159
|
p,
|
|
3160
|
-
B((
|
|
3160
|
+
B((R) => R.offsetBottom + R.bottom)
|
|
3161
3161
|
),
|
|
3162
3162
|
0
|
|
3163
3163
|
);
|
|
3164
3164
|
return k(
|
|
3165
3165
|
v(
|
|
3166
3166
|
E,
|
|
3167
|
-
B((
|
|
3167
|
+
B((R) => ({ height: R.visibleHeight, width: R.visibleWidth }))
|
|
3168
3168
|
),
|
|
3169
3169
|
C
|
|
3170
3170
|
), {
|
|
@@ -3177,7 +3177,7 @@ const Fr = /* @__PURE__ */ K(
|
|
|
3177
3177
|
headerHeight: i,
|
|
3178
3178
|
increaseViewportBy: e,
|
|
3179
3179
|
initialItemCount: a,
|
|
3180
|
-
itemDimensions:
|
|
3180
|
+
itemDimensions: y,
|
|
3181
3181
|
overscan: o,
|
|
3182
3182
|
restoreStateFrom: J,
|
|
3183
3183
|
scrollBy: l,
|
|
@@ -3256,7 +3256,7 @@ const Wr = /* @__PURE__ */ K(() => {
|
|
|
3256
3256
|
([e, t]) => ({ ...e, ...t }),
|
|
3257
3257
|
oe(Fr, Wr)
|
|
3258
3258
|
), Mr = /* @__PURE__ */ H.memo(function() {
|
|
3259
|
-
const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), l =
|
|
3259
|
+
const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), l = Re("scrollHeight"), s = re("ItemComponent"), u = re("ListComponent"), d = re("ScrollSeekPlaceholder"), h = re("context"), x = Re("itemDimensions"), m = Re("gap"), I = re("log"), z = re("stateRestoreInProgress"), T = Re("reportReadyState"), g = Pe(
|
|
3260
3260
|
H.useMemo(
|
|
3261
3261
|
() => (c) => {
|
|
3262
3262
|
const f = c.parentElement.parentElement.scrollHeight;
|
|
@@ -3311,7 +3311,7 @@ const Wr = /* @__PURE__ */ K(() => {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
);
|
|
3313
3313
|
}), Ar = H.memo(function() {
|
|
3314
|
-
const e = re("HeaderComponent"), t =
|
|
3314
|
+
const e = re("HeaderComponent"), t = Re("headerHeight"), o = re("headerFooterTag"), n = Pe(
|
|
3315
3315
|
H.useMemo(
|
|
3316
3316
|
() => (i) => {
|
|
3317
3317
|
t(ke(i, "height"));
|
|
@@ -3323,7 +3323,7 @@ const Wr = /* @__PURE__ */ K(() => {
|
|
|
3323
3323
|
), r = re("context");
|
|
3324
3324
|
return e ? /* @__PURE__ */ A(o, { ref: n, children: /* @__PURE__ */ A(e, { ...te(e, r) }) }) : null;
|
|
3325
3325
|
}), Vr = H.memo(function() {
|
|
3326
|
-
const e = re("FooterComponent"), t =
|
|
3326
|
+
const e = re("FooterComponent"), t = Re("footerHeight"), o = re("headerFooterTag"), n = Pe(
|
|
3327
3327
|
H.useMemo(
|
|
3328
3328
|
() => (i) => {
|
|
3329
3329
|
t(ke(i, "height"));
|
|
@@ -3335,7 +3335,7 @@ const Wr = /* @__PURE__ */ K(() => {
|
|
|
3335
3335
|
), r = re("context");
|
|
3336
3336
|
return e ? /* @__PURE__ */ A(o, { ref: n, children: /* @__PURE__ */ A(e, { ...te(e, r) }) }) : null;
|
|
3337
3337
|
}), Lr = ({ children: e }) => {
|
|
3338
|
-
const t = H.useContext(Qo), o =
|
|
3338
|
+
const t = H.useContext(Qo), o = Re("itemDimensions"), n = Re("viewportDimensions"), r = Pe(
|
|
3339
3339
|
H.useMemo(
|
|
3340
3340
|
() => (i) => {
|
|
3341
3341
|
n(i.getBoundingClientRect());
|
|
@@ -3349,7 +3349,7 @@ const Wr = /* @__PURE__ */ K(() => {
|
|
|
3349
3349
|
t && (n({ height: t.viewportHeight, width: t.viewportWidth }), o({ height: t.itemHeight, width: t.itemWidth }));
|
|
3350
3350
|
}, [t, n, o]), /* @__PURE__ */ A("div", { ref: r, style: tt(!1), children: e });
|
|
3351
3351
|
}, Dr = ({ children: e }) => {
|
|
3352
|
-
const t = H.useContext(Qo), o =
|
|
3352
|
+
const t = H.useContext(Qo), o = Re("windowViewportRect"), n = Re("itemDimensions"), r = re("customScrollParent"), i = Nt(o, r, !1);
|
|
3353
3353
|
return H.useEffect(() => {
|
|
3354
3354
|
t && (n({ height: t.itemHeight, width: t.itemWidth }), o({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
3355
3355
|
}, [t, o, n]), /* @__PURE__ */ A("div", { ref: i, style: tt(!1), children: e });
|
|
@@ -3363,7 +3363,7 @@ const Wr = /* @__PURE__ */ K(() => {
|
|
|
3363
3363
|
}), {
|
|
3364
3364
|
useEmitter: ln,
|
|
3365
3365
|
useEmitterValue: re,
|
|
3366
|
-
usePublisher:
|
|
3366
|
+
usePublisher: Re
|
|
3367
3367
|
} = /* @__PURE__ */ Yt(
|
|
3368
3368
|
Pr,
|
|
3369
3369
|
{
|
|
@@ -3405,7 +3405,7 @@ const Wr = /* @__PURE__ */ K(() => {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
},
|
|
3407
3407
|
Gr
|
|
3408
|
-
), Nr = /* @__PURE__ */ Jt({ useEmitter: ln, useEmitterValue: re, usePublisher:
|
|
3408
|
+
), Nr = /* @__PURE__ */ Jt({ useEmitter: ln, useEmitterValue: re, usePublisher: Re }), _r = /* @__PURE__ */ Qt({ useEmitter: ln, useEmitterValue: re, usePublisher: Re });
|
|
3409
3409
|
function Eo(e, t, o) {
|
|
3410
3410
|
return t !== "normal" && !(t != null && t.endsWith("px")) && o(`${e} was not resolved to pixel value correctly`, t, pe.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
3411
3411
|
}
|
|
@@ -3413,4 +3413,4 @@ export {
|
|
|
3413
3413
|
qr as X,
|
|
3414
3414
|
$r as Y
|
|
3415
3415
|
};
|
|
3416
|
-
//# sourceMappingURL=index-
|
|
3416
|
+
//# sourceMappingURL=index-C-PuFUZi.js.map
|