@flamingo-stack/openframe-frontend-core 0.0.652 → 0.0.653-2289.6601.1
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/{chunk-I3KD7T6K.cjs → chunk-2WQ5XTAZ.cjs} +36 -36
- package/dist/{chunk-I3KD7T6K.cjs.map → chunk-2WQ5XTAZ.cjs.map} +1 -1
- package/dist/{chunk-4T7E2SWL.cjs → chunk-3RJ4VI3H.cjs} +13 -13
- package/dist/{chunk-4T7E2SWL.cjs.map → chunk-3RJ4VI3H.cjs.map} +1 -1
- package/dist/{chunk-UEFHMMJX.cjs → chunk-5N2VSYMZ.cjs} +18 -18
- package/dist/{chunk-UEFHMMJX.cjs.map → chunk-5N2VSYMZ.cjs.map} +1 -1
- package/dist/{chunk-HSPLCV56.js → chunk-5P7MYYNW.js} +2 -2
- package/dist/{chunk-ERFHLMWM.cjs → chunk-7CVRBXLS.cjs} +352 -234
- package/dist/chunk-7CVRBXLS.cjs.map +1 -0
- package/dist/{chunk-TGHSQUTD.js → chunk-C4JQRKXH.js} +2 -2
- package/dist/{chunk-AGQZRNYV.js → chunk-CRT6FYWQ.js} +4 -4
- package/dist/{chunk-AAITIXRL.cjs → chunk-IIR3FCRM.cjs} +17 -17
- package/dist/{chunk-AAITIXRL.cjs.map → chunk-IIR3FCRM.cjs.map} +1 -1
- package/dist/{chunk-LDC37FG4.js → chunk-IJNR2VZJ.js} +2 -2
- package/dist/{chunk-N4RVPWPM.js → chunk-IR7ZOGRA.js} +2 -2
- package/dist/{chunk-ADXTLFG7.js → chunk-KNRGYPW4.js} +5 -5
- package/dist/{chunk-LUEURQOY.js → chunk-KQPEXCYU.js} +5 -5
- package/dist/{chunk-NTJUFHX2.js → chunk-LGAIEUAL.js} +2 -2
- package/dist/{chunk-DVT5JCLD.cjs → chunk-MVIC53FZ.cjs} +3 -3
- package/dist/{chunk-DVT5JCLD.cjs.map → chunk-MVIC53FZ.cjs.map} +1 -1
- package/dist/{chunk-QZJ4K7SG.js → chunk-NUKLU7RL.js} +2 -2
- package/dist/{chunk-EY2OVL3Z.cjs → chunk-NWYLN3FU.cjs} +10 -10
- package/dist/{chunk-EY2OVL3Z.cjs.map → chunk-NWYLN3FU.cjs.map} +1 -1
- package/dist/{chunk-LECSFMGM.js → chunk-OEJRLL5C.js} +367 -249
- package/dist/chunk-OEJRLL5C.js.map +1 -0
- package/dist/{chunk-JCVGQDQV.cjs → chunk-OPNV6V2Z.cjs} +33 -33
- package/dist/{chunk-JCVGQDQV.cjs.map → chunk-OPNV6V2Z.cjs.map} +1 -1
- package/dist/{chunk-2FWS52HR.js → chunk-P6YNSOFB.js} +3 -3
- package/dist/{chunk-HM6D2YHS.js → chunk-SE4POCS6.js} +2 -2
- package/dist/{chunk-FBKB4HCZ.cjs → chunk-T5QSKERQ.cjs} +3 -3
- package/dist/{chunk-FBKB4HCZ.cjs.map → chunk-T5QSKERQ.cjs.map} +1 -1
- package/dist/{chunk-ZVLOG2AV.cjs → chunk-T6W3NMA7.cjs} +4 -4
- package/dist/{chunk-ZVLOG2AV.cjs.map → chunk-T6W3NMA7.cjs.map} +1 -1
- package/dist/{chunk-74EGKPX3.js → chunk-UE7TECNE.js} +2 -2
- package/dist/{chunk-QUNY6URW.js → chunk-UQ2OYID7.js} +2 -2
- package/dist/{chunk-VIHX7ADQ.cjs → chunk-VZWLSDAU.cjs} +3 -3
- package/dist/{chunk-VIHX7ADQ.cjs.map → chunk-VZWLSDAU.cjs.map} +1 -1
- package/dist/{chunk-27OZEE3E.cjs → chunk-WRXB3XXK.cjs} +3 -3
- package/dist/{chunk-27OZEE3E.cjs.map → chunk-WRXB3XXK.cjs.map} +1 -1
- package/dist/{chunk-I5Y6ZALR.cjs → chunk-X24KJHPD.cjs} +51 -51
- package/dist/{chunk-I5Y6ZALR.cjs.map → chunk-X24KJHPD.cjs.map} +1 -1
- package/dist/{chunk-BRIJIC6E.js → chunk-XFT4FZWM.js} +4 -4
- package/dist/{chunk-JWY5ES3H.cjs → chunk-ZG4A6IYE.cjs} +4 -4
- package/dist/{chunk-JWY5ES3H.cjs.map → chunk-ZG4A6IYE.cjs.map} +1 -1
- package/dist/{chunk-BXE3DLIC.cjs → chunk-ZYAU5PT6.cjs} +17 -17
- package/dist/{chunk-BXE3DLIC.cjs.map → chunk-ZYAU5PT6.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/data-table/data-table-body.d.ts +17 -8
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-infinite-footer.d.ts +37 -3
- package/dist/components/ui/data-table/data-table-infinite-footer.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-load-more.d.ts +35 -0
- package/dist/components/ui/data-table/data-table-load-more.d.ts.map +1 -0
- package/dist/components/ui/data-table/data-table-row.d.ts +3 -9
- package/dist/components/ui/data-table/data-table-row.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-skeleton.d.ts +9 -0
- package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table.d.ts +6 -0
- package/dist/components/ui/data-table/data-table.d.ts.map +1 -1
- package/dist/components/ui/data-table/index.d.ts +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/__tests__/data-table-infinite-footer.test.tsx +246 -0
- package/src/__tests__/data-table-row-height.test.tsx +1 -7
- package/src/__tests__/data-table-skeleton-row-rhythm.test.tsx +147 -0
- package/src/components/ui/data-table/data-table-body.tsx +53 -17
- package/src/components/ui/data-table/data-table-infinite-footer.tsx +138 -9
- package/src/components/ui/data-table/data-table-load-more.ts +87 -0
- package/src/components/ui/data-table/data-table-row.tsx +8 -12
- package/src/components/ui/data-table/data-table-skeleton.tsx +10 -0
- package/src/components/ui/data-table/data-table.tsx +18 -2
- package/src/stories/DataTable.stories.tsx +167 -0
- package/dist/chunk-ERFHLMWM.cjs.map +0 -1
- package/dist/chunk-LECSFMGM.js.map +0 -1
- /package/dist/{chunk-HSPLCV56.js.map → chunk-5P7MYYNW.js.map} +0 -0
- /package/dist/{chunk-TGHSQUTD.js.map → chunk-C4JQRKXH.js.map} +0 -0
- /package/dist/{chunk-AGQZRNYV.js.map → chunk-CRT6FYWQ.js.map} +0 -0
- /package/dist/{chunk-LDC37FG4.js.map → chunk-IJNR2VZJ.js.map} +0 -0
- /package/dist/{chunk-N4RVPWPM.js.map → chunk-IR7ZOGRA.js.map} +0 -0
- /package/dist/{chunk-ADXTLFG7.js.map → chunk-KNRGYPW4.js.map} +0 -0
- /package/dist/{chunk-LUEURQOY.js.map → chunk-KQPEXCYU.js.map} +0 -0
- /package/dist/{chunk-NTJUFHX2.js.map → chunk-LGAIEUAL.js.map} +0 -0
- /package/dist/{chunk-QZJ4K7SG.js.map → chunk-NUKLU7RL.js.map} +0 -0
- /package/dist/{chunk-2FWS52HR.js.map → chunk-P6YNSOFB.js.map} +0 -0
- /package/dist/{chunk-HM6D2YHS.js.map → chunk-SE4POCS6.js.map} +0 -0
- /package/dist/{chunk-74EGKPX3.js.map → chunk-UE7TECNE.js.map} +0 -0
- /package/dist/{chunk-QUNY6URW.js.map → chunk-UQ2OYID7.js.map} +0 -0
- /package/dist/{chunk-BRIJIC6E.js.map → chunk-XFT4FZWM.js.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SoftwareInfo,
|
|
16
16
|
SoftwareSourceBadge,
|
|
17
17
|
ToolBadge
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-NUKLU7RL.js";
|
|
19
19
|
import {
|
|
20
20
|
AppHeader,
|
|
21
21
|
AppLayout,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
SlidingSidebar,
|
|
35
35
|
TicketAlertsButton,
|
|
36
36
|
TopNavigation
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-P6YNSOFB.js";
|
|
38
38
|
import {
|
|
39
39
|
DeliveryLists,
|
|
40
40
|
DeliveryTable,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
RoadmapView,
|
|
49
49
|
useLegalDocs,
|
|
50
50
|
useRoadmapVoting
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-XFT4FZWM.js";
|
|
52
52
|
import {
|
|
53
53
|
DocNavigationProvider,
|
|
54
54
|
DocViewer,
|
|
@@ -62,12 +62,12 @@ import {
|
|
|
62
62
|
useDocNavigation,
|
|
63
63
|
useDocumentTree,
|
|
64
64
|
useScrollSpy
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-KNRGYPW4.js";
|
|
66
66
|
import {
|
|
67
67
|
FileDownloadCard,
|
|
68
68
|
GoogleSheetsViewer,
|
|
69
69
|
PdfViewer
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-C4JQRKXH.js";
|
|
71
71
|
import {
|
|
72
72
|
PersistentPagination,
|
|
73
73
|
PersistentPaginationWrapper,
|
|
@@ -77,13 +77,13 @@ import {
|
|
|
77
77
|
FaqAccordion,
|
|
78
78
|
FaqDocumentPage,
|
|
79
79
|
FaqSection
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-5P7MYYNW.js";
|
|
81
81
|
import {
|
|
82
82
|
MobileNavigationDropdown,
|
|
83
83
|
MultiLevelNavigation,
|
|
84
84
|
StickySectionNav,
|
|
85
85
|
useSectionNavigation
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-LGAIEUAL.js";
|
|
87
87
|
import {
|
|
88
88
|
DeliveryRow,
|
|
89
89
|
DevCardRowContent,
|
|
@@ -92,16 +92,16 @@ import {
|
|
|
92
92
|
DevSectionPage,
|
|
93
93
|
DevSectionView,
|
|
94
94
|
ListEmptyState
|
|
95
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-IJNR2VZJ.js";
|
|
96
96
|
import {
|
|
97
97
|
EmptyState,
|
|
98
98
|
UnifiedPagination
|
|
99
99
|
} from "../chunk-5ONM3FHQ.js";
|
|
100
|
-
import "../chunk-
|
|
100
|
+
import "../chunk-IR7ZOGRA.js";
|
|
101
101
|
import {
|
|
102
102
|
ArticleAuthorByline,
|
|
103
103
|
DetailPageSkeleton
|
|
104
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-SE4POCS6.js";
|
|
105
105
|
import {
|
|
106
106
|
DocSearchBar,
|
|
107
107
|
DocSearchResultRow,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
mapDocSearchResults,
|
|
110
110
|
resolveSearchResultAction,
|
|
111
111
|
useDocSearch
|
|
112
|
-
} from "../chunk-
|
|
112
|
+
} from "../chunk-UE7TECNE.js";
|
|
113
113
|
import {
|
|
114
114
|
useSelfFetch
|
|
115
115
|
} from "../chunk-KKSSA4CS.js";
|
|
@@ -622,7 +622,7 @@ import {
|
|
|
622
622
|
useTimeTracker,
|
|
623
623
|
useTrackerClock,
|
|
624
624
|
useWalkthroughVideo
|
|
625
|
-
} from "../chunk-
|
|
625
|
+
} from "../chunk-OEJRLL5C.js";
|
|
626
626
|
import "../chunk-L2SLFCXP.js";
|
|
627
627
|
import "../chunk-BJXDHKUX.js";
|
|
628
628
|
import {
|
|
@@ -24,7 +24,7 @@ var _chunk77BLJHKIcjs = require('../../chunk-77BLJHKI.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk7CVRBXLScjs = require('../../chunk-7CVRBXLS.cjs');
|
|
28
28
|
require('../../chunk-GQWM3ECA.cjs');
|
|
29
29
|
require('../../chunk-TON3YCCW.cjs');
|
|
30
30
|
|
|
@@ -257,7 +257,7 @@ function useMeetingBooking(options) {
|
|
|
257
257
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _3 => _3.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
258
258
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
259
259
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
260
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
260
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunk7CVRBXLScjs.MAX_MONTH_OFFSET, offset)));
|
|
261
261
|
}, []);
|
|
262
262
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
263
263
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -384,7 +384,7 @@ var FIELD_CONTROLS = {
|
|
|
384
384
|
}
|
|
385
385
|
),
|
|
386
386
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
387
|
-
|
|
387
|
+
_chunk7CVRBXLScjs.Textarea,
|
|
388
388
|
{
|
|
389
389
|
id,
|
|
390
390
|
required: field.required,
|
|
@@ -410,9 +410,9 @@ var FIELD_CONTROLS = {
|
|
|
410
410
|
{
|
|
411
411
|
control,
|
|
412
412
|
name: registerName,
|
|
413
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7CVRBXLScjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.SelectTrigger, { id, "aria-required": field.required || void 0, "aria-invalid": Boolean(error), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.SelectValue, { placeholder: "Select\u2026" }) }),
|
|
415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
416
416
|
] })
|
|
417
417
|
}
|
|
418
418
|
),
|
|
@@ -422,14 +422,14 @@ var FIELD_CONTROLS = {
|
|
|
422
422
|
control,
|
|
423
423
|
name: registerName,
|
|
424
424
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
425
|
-
|
|
425
|
+
_chunk7CVRBXLScjs.RadioGroup,
|
|
426
426
|
{
|
|
427
427
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
428
428
|
onValueChange: rhf.onChange,
|
|
429
429
|
"aria-required": field.required || void 0,
|
|
430
430
|
"aria-invalid": Boolean(error),
|
|
431
431
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
432
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
432
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
433
433
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSD62VAYcjs.Label, { htmlFor: `${id}-${opt}`, children: opt })
|
|
434
434
|
] }, opt))
|
|
435
435
|
}
|
|
@@ -593,8 +593,8 @@ function BookingForm({
|
|
|
593
593
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
594
594
|
}
|
|
595
595
|
);
|
|
596
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
597
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
596
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunk7CVRBXLScjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
597
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.HoneypotField, { ...honeypotInputProps }),
|
|
598
598
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
599
599
|
placedRows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
600
600
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -607,7 +607,7 @@ function BookingForm({
|
|
|
607
607
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
608
608
|
] }),
|
|
609
609
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
610
|
-
|
|
610
|
+
_chunk7CVRBXLScjs.CheckboxBlock,
|
|
611
611
|
{
|
|
612
612
|
id: "ms-host-consent",
|
|
613
613
|
checked: consented,
|
|
@@ -642,7 +642,7 @@ function BookingForm({
|
|
|
642
642
|
// same block the waitlist form uses): box + label in one
|
|
643
643
|
// bordered row.
|
|
644
644
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
645
|
-
|
|
645
|
+
_chunk7CVRBXLScjs.CheckboxBlock,
|
|
646
646
|
{
|
|
647
647
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
648
648
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _22 => _22.consented]), () => ( false)),
|
|
@@ -752,7 +752,7 @@ function ContextPanelSkeleton({
|
|
|
752
752
|
backLabel = "Back"
|
|
753
753
|
}) {
|
|
754
754
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
755
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
755
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
756
756
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
757
757
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
758
758
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] lg:flex-none", children: [
|
|
@@ -800,7 +800,7 @@ function SchedulerContextPanel({
|
|
|
800
800
|
return zones.map((tz) => ({ value: tz, label: zoneLabel(tz) }));
|
|
801
801
|
}, [timezone]);
|
|
802
802
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
803
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
803
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
804
804
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
805
805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
806
806
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -862,7 +862,7 @@ function SchedulerContextPanel({
|
|
|
862
862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
863
863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
864
864
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
865
|
-
|
|
865
|
+
_chunk7CVRBXLScjs.Autocomplete,
|
|
866
866
|
{
|
|
867
867
|
value: timezone,
|
|
868
868
|
disabled,
|
|
@@ -949,18 +949,18 @@ var NOOP = () => void 0;
|
|
|
949
949
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
950
950
|
const now = /* @__PURE__ */ new Date();
|
|
951
951
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
952
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
952
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunk7CVRBXLScjs.MAX_MONTH_OFFSET + 1, 0);
|
|
953
953
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
954
954
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _27 => _27.has, 'call', _28 => _28(calendarDayKey(day))]), [slotsByDay]);
|
|
955
955
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", "aria-busy": slotsByDay === null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
956
|
-
|
|
956
|
+
_chunk7CVRBXLScjs.DatePickerCalendar,
|
|
957
957
|
{
|
|
958
958
|
mode: "single",
|
|
959
959
|
bare: true,
|
|
960
960
|
month: visibleMonth,
|
|
961
961
|
onMonthChange: (month) => {
|
|
962
962
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
963
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
963
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunk7CVRBXLScjs.MAX_MONTH_OFFSET, offset)));
|
|
964
964
|
},
|
|
965
965
|
fromDate: startMonth,
|
|
966
966
|
toDate: endMonth,
|
|
@@ -1076,7 +1076,7 @@ function SlotPicker({
|
|
|
1076
1076
|
monthLabelFor(monthOffset),
|
|
1077
1077
|
"."
|
|
1078
1078
|
] }),
|
|
1079
|
-
monthOffset <
|
|
1079
|
+
monthOffset < _chunk7CVRBXLScjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1080
1080
|
_chunkF6U2H42Lcjs.Button,
|
|
1081
1081
|
{
|
|
1082
1082
|
variant: "outline",
|
|
@@ -1559,11 +1559,11 @@ function HubSpotMeetingScheduler({
|
|
|
1559
1559
|
)
|
|
1560
1560
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] md:min-h-0 md:flex-1", children: [
|
|
1561
1561
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1562
|
-
|
|
1562
|
+
_chunk7CVRBXLScjs.Alert,
|
|
1563
1563
|
{
|
|
1564
1564
|
variant: "warning",
|
|
1565
1565
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto lg:m-0 lg:w-full",
|
|
1566
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1566
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7CVRBXLScjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1567
1567
|
}
|
|
1568
1568
|
),
|
|
1569
1569
|
timezone && durationMs != null ? (
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk5N2VSYMZcjs = require('../../chunk-5N2VSYMZ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
28
|
-
require('../../chunk-
|
|
27
|
+
var _chunkMVIC53FZcjs = require('../../chunk-MVIC53FZ.cjs');
|
|
28
|
+
require('../../chunk-VZWLSDAU.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -40,7 +40,7 @@ require('../../chunk-VIHX7ADQ.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk7CVRBXLScjs = require('../../chunk-7CVRBXLS.cjs');
|
|
44
44
|
require('../../chunk-GQWM3ECA.cjs');
|
|
45
45
|
require('../../chunk-TON3YCCW.cjs');
|
|
46
46
|
require('../../chunk-EKAWIHWW.cjs');
|
|
@@ -101,5 +101,5 @@ require('../../chunk-K4RM5MEW.cjs');
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
exports.AppHeader =
|
|
104
|
+
exports.AppHeader = _chunk5N2VSYMZcjs.AppHeader; exports.AppLayout = _chunk5N2VSYMZcjs.AppLayout; exports.AppLayoutDrawer = _chunk7CVRBXLScjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunk7CVRBXLScjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunk7CVRBXLScjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunk7CVRBXLScjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunk7CVRBXLScjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunk7CVRBXLScjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunk7CVRBXLScjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunk7CVRBXLScjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunk7CVRBXLScjs.AppLayoutDrawerTrigger; exports.ClientOnlyHeader = _chunk5N2VSYMZcjs.ClientOnlyHeader; exports.Header = _chunk5N2VSYMZcjs.Header; exports.HeaderButton = _chunk7CVRBXLScjs.HeaderButton; exports.HeaderGlobalSearch = _chunk5N2VSYMZcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunk5N2VSYMZcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunk5N2VSYMZcjs.HeaderOrganizationFilter; exports.HeaderSkeleton = _chunk5N2VSYMZcjs.HeaderSkeleton; exports.MOBILE_NAV_PANEL_ID = _chunk5N2VSYMZcjs.MOBILE_NAV_PANEL_ID; exports.MingoAiButton = _chunk5N2VSYMZcjs.MingoAiButton; exports.MobileBurgerMenu = _chunk5N2VSYMZcjs.MobileBurgerMenu; exports.MobileNavPanel = _chunk5N2VSYMZcjs.MobileNavPanel; exports.MobileNavigationDropdown = _chunkMVIC53FZcjs.MobileNavigationDropdown; exports.MultiLevelNavigation = _chunkMVIC53FZcjs.MultiLevelNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = _chunk5N2VSYMZcjs.NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationSidebar = _chunk5N2VSYMZcjs.NavigationSidebar; exports.SlidingSidebar = _chunk5N2VSYMZcjs.SlidingSidebar; exports.StickySectionNav = _chunkMVIC53FZcjs.StickySectionNav; exports.TicketAlertsButton = _chunk5N2VSYMZcjs.TicketAlertsButton; exports.TopNavigation = _chunk5N2VSYMZcjs.TopNavigation; exports.UnreadCountBadge = _chunk7CVRBXLScjs.UnreadCountBadge; exports.UnreadDot = _chunk7CVRBXLScjs.UnreadDot; exports.useAppLayoutDrawerContainer = _chunk7CVRBXLScjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkMVIC53FZcjs.useSectionNavigation;
|
|
105
105
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
SlidingSidebar,
|
|
19
19
|
TicketAlertsButton,
|
|
20
20
|
TopNavigation
|
|
21
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-P6YNSOFB.js";
|
|
22
22
|
import {
|
|
23
23
|
MobileNavigationDropdown,
|
|
24
24
|
MultiLevelNavigation,
|
|
25
25
|
StickySectionNav,
|
|
26
26
|
useSectionNavigation
|
|
27
|
-
} from "../../chunk-
|
|
28
|
-
import "../../chunk-
|
|
27
|
+
} from "../../chunk-LGAIEUAL.js";
|
|
28
|
+
import "../../chunk-IR7ZOGRA.js";
|
|
29
29
|
import {
|
|
30
30
|
AppLayoutDrawerBody,
|
|
31
31
|
AppLayoutDrawerClose,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
UnreadCountBadge,
|
|
41
41
|
UnreadDot,
|
|
42
42
|
useAppLayoutDrawerContainer
|
|
43
|
-
} from "../../chunk-
|
|
43
|
+
} from "../../chunk-OEJRLL5C.js";
|
|
44
44
|
import "../../chunk-L2SLFCXP.js";
|
|
45
45
|
import "../../chunk-BJXDHKUX.js";
|
|
46
46
|
import "../../chunk-THYPIZMJ.js";
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
10
|
+
var _chunkIIR3FCRMcjs = require('../../chunk-IIR3FCRM.cjs');
|
|
11
|
+
require('../../chunk-T5QSKERQ.cjs');
|
|
12
|
+
require('../../chunk-WRXB3XXK.cjs');
|
|
13
13
|
require('../../chunk-DOVVKQMZ.cjs');
|
|
14
|
-
require('../../chunk-
|
|
14
|
+
require('../../chunk-7CVRBXLS.cjs');
|
|
15
15
|
require('../../chunk-GQWM3ECA.cjs');
|
|
16
16
|
require('../../chunk-TON3YCCW.cjs');
|
|
17
17
|
require('../../chunk-EKAWIHWW.cjs');
|
|
@@ -45,5 +45,5 @@ require('../../chunk-K4RM5MEW.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
exports.OnboardingGuideDetailView =
|
|
48
|
+
exports.OnboardingGuideDetailView = _chunkIIR3FCRMcjs.OnboardingGuideDetailView; exports.OnboardingGuidesCatalogSkeleton = _chunkIIR3FCRMcjs.OnboardingGuidesCatalogSkeleton; exports.OnboardingGuidesCatalogView = _chunkIIR3FCRMcjs.OnboardingGuidesCatalogView; exports.onboardingGuideKeys = _chunkIIR3FCRMcjs.onboardingGuideKeys; exports.useOnboardingGuide = _chunkIIR3FCRMcjs.useOnboardingGuide; exports.useOnboardingGuideSections = _chunkIIR3FCRMcjs.useOnboardingGuideSections; exports.useOnboardingGuides = _chunkIIR3FCRMcjs.useOnboardingGuides;
|
|
49
49
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
useOnboardingGuide,
|
|
8
8
|
useOnboardingGuideSections,
|
|
9
9
|
useOnboardingGuides
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-CRT6FYWQ.js";
|
|
11
|
+
import "../../chunk-SE4POCS6.js";
|
|
12
|
+
import "../../chunk-UE7TECNE.js";
|
|
13
13
|
import "../../chunk-KKSSA4CS.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-OEJRLL5C.js";
|
|
15
15
|
import "../../chunk-L2SLFCXP.js";
|
|
16
16
|
import "../../chunk-BJXDHKUX.js";
|
|
17
17
|
import "../../chunk-THYPIZMJ.js";
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('../../chunk-
|
|
19
|
-
require('../../chunk-
|
|
17
|
+
var _chunkX24KJHPDcjs = require('../../chunk-X24KJHPD.cjs');
|
|
18
|
+
require('../../chunk-ZYAU5PT6.cjs');
|
|
19
|
+
require('../../chunk-NWYLN3FU.cjs');
|
|
20
20
|
require('../../chunk-77BLJHKI.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -24,11 +24,11 @@ require('../../chunk-77BLJHKI.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkVZWLSDAUcjs = require('../../chunk-VZWLSDAU.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk7CVRBXLScjs = require('../../chunk-7CVRBXLS.cjs');
|
|
32
32
|
require('../../chunk-GQWM3ECA.cjs');
|
|
33
33
|
require('../../chunk-TON3YCCW.cjs');
|
|
34
34
|
require('../../chunk-EKAWIHWW.cjs');
|
|
@@ -76,5 +76,5 @@ require('../../chunk-K4RM5MEW.cjs');
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
exports.HelpCenterCard =
|
|
79
|
+
exports.HelpCenterCard = _chunkX24KJHPDcjs.HelpCenterCard; exports.HelpCenterCreateForm = _chunkX24KJHPDcjs.HelpCenterCreateForm; exports.HelpCenterCreateFormSkeleton = _chunkX24KJHPDcjs.HelpCenterCreateFormSkeleton; exports.HelpCenterList = _chunkX24KJHPDcjs.HelpCenterList; exports.TICKET_OPEN_PARAM = _chunk7CVRBXLScjs.TICKET_OPEN_PARAM; exports.TICKET_TOAST_COPY = _chunkVZWLSDAUcjs.TOAST_COPY; exports.TicketCenter = _chunkX24KJHPDcjs.TicketCenter; exports.TicketDetailDrawer = _chunkX24KJHPDcjs.TicketDetailDrawer; exports.TicketLinkedDeliveryCard = _chunkX24KJHPDcjs.TicketLinkedDeliveryCard; exports.TicketLiveProvider = _chunkVZWLSDAUcjs.TicketLiveProvider; exports.TicketOpenForm = _chunkX24KJHPDcjs.TicketOpenForm; exports.TicketReplyComposer = _chunkX24KJHPDcjs.TicketReplyComposer; exports.TicketRow = _chunkX24KJHPDcjs.TicketRow; exports.buildTicketOpenHref = _chunk7CVRBXLScjs.buildTicketOpenHref; exports.isOptimistic = _chunkVZWLSDAUcjs.isOptimistic; exports.mapTicketActionError = _chunkX24KJHPDcjs.mapTicketActionError; exports.useOptionalTicketLive = _chunkVZWLSDAUcjs.useOptionalTicketLive; exports.useTicketActions = _chunkX24KJHPDcjs.useTicketActions; exports.useTicketEngagements = _chunkX24KJHPDcjs.useTicketEngagements; exports.useTicketLive = _chunkVZWLSDAUcjs.useTicketLive; exports.useTicketsList = _chunkX24KJHPDcjs.useTicketsList;
|
|
80
80
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
useTicketActions,
|
|
15
15
|
useTicketEngagements,
|
|
16
16
|
useTicketsList
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
17
|
+
} from "../../chunk-KQPEXCYU.js";
|
|
18
|
+
import "../../chunk-UQ2OYID7.js";
|
|
19
|
+
import "../../chunk-IJNR2VZJ.js";
|
|
20
20
|
import "../../chunk-5ONM3FHQ.js";
|
|
21
21
|
import {
|
|
22
22
|
TOAST_COPY,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
isOptimistic,
|
|
25
25
|
useOptionalTicketLive,
|
|
26
26
|
useTicketLive
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-IR7ZOGRA.js";
|
|
28
28
|
import {
|
|
29
29
|
TICKET_OPEN_PARAM,
|
|
30
30
|
buildTicketOpenHref
|
|
31
|
-
} from "../../chunk-
|
|
31
|
+
} from "../../chunk-OEJRLL5C.js";
|
|
32
32
|
import "../../chunk-L2SLFCXP.js";
|
|
33
33
|
import "../../chunk-BJXDHKUX.js";
|
|
34
34
|
import "../../chunk-THYPIZMJ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import type { NoDataProps } from '../no-data';
|
|
3
3
|
export interface DataTableBodyProps<T = unknown> {
|
|
4
4
|
/** Show skeleton rows while `loading` is true and data is empty. */
|
|
@@ -13,22 +13,31 @@ export interface DataTableBodyProps<T = unknown> {
|
|
|
13
13
|
/**
|
|
14
14
|
* Per-row class name. Prefer `useCallback` for function form to avoid
|
|
15
15
|
* breaking `React.memo` on rows.
|
|
16
|
+
*
|
|
17
|
+
* The STRING form also lands on every skeleton row this body draws — the
|
|
18
|
+
* loading state and the infinite footer's load-more rows. It is where tables
|
|
19
|
+
* put their row spacing (`mb-1` is the common one), and a skeleton without it
|
|
20
|
+
* stacks at a tighter pitch than the rows it stands in for: 4px per row,
|
|
21
|
+
* accumulating, so row 20 of a loading table sat 80px above where it loaded.
|
|
22
|
+
* The function form has no item to be called with and is skipped there.
|
|
16
23
|
*/
|
|
17
24
|
rowClassName?: string | ((item: T, index: number) => string);
|
|
18
25
|
/** Dense row height. */
|
|
19
26
|
compact?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Treat the design row height as a minimum so multi-line cell content grows
|
|
22
|
-
* the row instead of clipping. Default keeps the fixed height.
|
|
23
|
-
*/
|
|
24
|
-
autoHeight?: boolean;
|
|
25
27
|
/**
|
|
26
28
|
* REPLACES the design row height for THIS table's rows, its pad rows and its
|
|
27
29
|
* skeleton alike — one number, so they cannot disagree.
|
|
28
30
|
*
|
|
31
|
+
* It is also the ONLY way to a taller row. There used to be an `autoHeight`
|
|
32
|
+
* flag that let a row grow with its content; it was removed because a row
|
|
33
|
+
* whose height depends on its data cannot be stood in for — every skeleton
|
|
34
|
+
* and pad row is a guess, and the list jumps by the error on every load. Fit
|
|
35
|
+
* the content to the row instead (`TruncateText lines={n}` keeps the rest in
|
|
36
|
+
* a tooltip), or state a taller row here.
|
|
37
|
+
*
|
|
29
38
|
* Why a prop and not a className: `minRows` promises a stable table height,
|
|
30
39
|
* but its pad rows and the skeleton were hard-coded to the design height
|
|
31
|
-
* while
|
|
40
|
+
* while the table's real rows were taller. A table
|
|
32
41
|
* with 112px rows padded a short page with 78px placeholders and came up
|
|
33
42
|
* 34px per missing row too short — on a 15-row page with 5 results, 340px of
|
|
34
43
|
* jump against every other page. Appending a height through `rowClassName`
|
|
@@ -67,5 +76,5 @@ export interface DataTableBodyProps<T = unknown> {
|
|
|
67
76
|
* `onRowClick` / `rowHref` / `rowClassName` (if function) with `useCallback`
|
|
68
77
|
* in the consumer to get the full benefit.
|
|
69
78
|
*/
|
|
70
|
-
export declare function DataTableBody<T = unknown>({ loading, emptyMessage, emptyState, skeletonRows, className, rowClassName, compact,
|
|
79
|
+
export declare function DataTableBody<T = unknown>({ loading, emptyMessage, emptyState, skeletonRows, className, rowClassName, compact, rowHeightClassName, onRowClick, rowHref, minRows, renderSubRow, }: DataTableBodyProps<T>): import("react").JSX.Element;
|
|
71
80
|
//# sourceMappingURL=data-table-body.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-body.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-body.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"data-table-body.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-body.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAO9C,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAC7D,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;CACvC;AAKD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,EACzC,OAAO,EACP,YAAY,EACZ,UAAU,EACV,YAAiB,EACjB,SAAS,EACT,YAAY,EACZ,OAAO,EACP,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,OAAO,EACP,YAAY,GACb,EAAE,kBAAkB,CAAC,CAAC,CAAC,+BAwFvB"}
|
|
@@ -4,12 +4,46 @@ export interface DataTableInfiniteFooterProps {
|
|
|
4
4
|
onLoadMore: () => void;
|
|
5
5
|
/** Skeleton rows shown while fetching. Default `3`. */
|
|
6
6
|
skeletonRows?: number;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* `IntersectionObserver` rootMargin — how far ahead of the sentinel the next
|
|
9
|
+
* page is requested. Default `'0px 0px 100% 0px'`: one scroller-height below
|
|
10
|
+
* the fold, so at a reading pace the rows are there before the user is.
|
|
11
|
+
* A percentage resolves against the scroller, so the lead scales with the
|
|
12
|
+
* screen instead of being two rows on every device.
|
|
13
|
+
*/
|
|
8
14
|
rootMargin?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Rows LOADED so far, before any client-side narrowing. Pass it when the
|
|
17
|
+
* table shows fewer rows than it has fetched — a search box or an ownership
|
|
18
|
+
* filter applied over the loaded pages.
|
|
19
|
+
*
|
|
20
|
+
* The footer parks itself when a fetch adds nothing (see below), and it
|
|
21
|
+
* judges "nothing" by the table's rows. For such a table a page can arrive in
|
|
22
|
+
* full and still add no VISIBLE row, which is not a stall: the match may be on
|
|
23
|
+
* the next page, and walking on is the only way to reach it. This is the
|
|
24
|
+
* count that does move then.
|
|
25
|
+
*/
|
|
26
|
+
loadedCount?: number;
|
|
9
27
|
}
|
|
10
28
|
/**
|
|
11
29
|
* Infinite-scroll trigger for a `DataTable`. Place after `<DataTable.Body>`.
|
|
12
|
-
* When the sentinel
|
|
30
|
+
* When the sentinel comes within `rootMargin` of the scroller's fold, calls
|
|
31
|
+
* `onLoadMore`.
|
|
32
|
+
*
|
|
33
|
+
* The skeleton rows shown while fetching are drawn by the BODY, not here: they
|
|
34
|
+
* have to continue its rows at the same pitch, and only the body knows its gap,
|
|
35
|
+
* `rowClassName` and `rowHeightClassName`. This component asks for them through
|
|
36
|
+
* the table's load-more store (`data-table-load-more.ts`) and draws its own
|
|
37
|
+
* only when there is no body with rows to continue.
|
|
38
|
+
*
|
|
39
|
+
* **It stops asking when asking gets nowhere.** A fetch that ends with no new
|
|
40
|
+
* row — a failed request, or a server answering an empty page that still claims
|
|
41
|
+
* a next one — used to re-arm the observer with the sentinel still in view, so
|
|
42
|
+
* the same request went straight back out: a tight loop against the API, one
|
|
43
|
+
* error toast per lap, until the user scrolled away. Now that outcome parks the
|
|
44
|
+
* auto-trigger and offers a Load more button instead; the next fetch that makes
|
|
45
|
+
* progress re-arms it. A table that narrows its loaded pages on the client must
|
|
46
|
+
* pass `loadedCount`, or a page with no visible match reads as no progress.
|
|
13
47
|
*/
|
|
14
|
-
export declare function DataTableInfiniteFooter({ hasNextPage, isFetchingNextPage, onLoadMore, skeletonRows, rootMargin, }: DataTableInfiniteFooterProps): import("react").JSX.Element;
|
|
48
|
+
export declare function DataTableInfiniteFooter({ hasNextPage, isFetchingNextPage, onLoadMore, skeletonRows, rootMargin, loadedCount, }: DataTableInfiniteFooterProps): import("react").JSX.Element;
|
|
15
49
|
//# sourceMappingURL=data-table-infinite-footer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-infinite-footer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-infinite-footer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-table-infinite-footer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-infinite-footer.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAmCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,YAAgB,EAChB,UAAgC,EAChC,WAAW,GACZ,EAAE,4BAA4B,+BAuF9B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The channel between `<DataTable.InfiniteFooter>` and `<DataTable.Body>`.
|
|
3
|
+
*
|
|
4
|
+
* The footer knows WHEN a next page is loading; the body knows HOW a row slot is
|
|
5
|
+
* spaced — its own `gap`, the consumer's `rowClassName`, `rowHeightClassName`.
|
|
6
|
+
* The footer used to draw the load-more skeleton itself, as a sibling of the
|
|
7
|
+
* body: outside the body's gap container and without the row classes, so the
|
|
8
|
+
* placeholder rows sat glued together and the page shifted when the real rows
|
|
9
|
+
* replaced them. Teaching the footer the body's spacing would be a second
|
|
10
|
+
* declaration of it at every call site. Instead the footer states a row count
|
|
11
|
+
* here and the body draws those rows inside its OWN container, so they take the
|
|
12
|
+
* body's spacing by construction.
|
|
13
|
+
*
|
|
14
|
+
* A store rather than context state: the two are siblings, the write happens in
|
|
15
|
+
* a layout effect, and `useSyncExternalStore` re-renders the reader before
|
|
16
|
+
* paint — no frame with the rows in the wrong place.
|
|
17
|
+
*/
|
|
18
|
+
export interface DataTableLoadMoreStore {
|
|
19
|
+
subscribe: (listener: () => void) => () => void;
|
|
20
|
+
/** Skeleton rows the footer is asking for; `0` when no page is loading. */
|
|
21
|
+
getSkeletonRows: () => number;
|
|
22
|
+
setSkeletonRows: (rows: number) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Whether a body is on screen WITH rows to continue. Without one (an empty or
|
|
25
|
+
* still-loading body, or no body at all) the footer keeps drawing its own
|
|
26
|
+
* skeleton, as it always has.
|
|
27
|
+
*/
|
|
28
|
+
getHasRowsBody: () => boolean;
|
|
29
|
+
/** Returns the unregister function — hand it straight back from an effect. */
|
|
30
|
+
registerRowsBody: () => () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare function createDataTableLoadMoreStore(): DataTableLoadMoreStore;
|
|
33
|
+
export declare const DataTableLoadMoreContext: import("react").Context<DataTableLoadMoreStore>;
|
|
34
|
+
export declare function useDataTableLoadMoreStore(): DataTableLoadMoreStore;
|
|
35
|
+
//# sourceMappingURL=data-table-load-more.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-load-more.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-load-more.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD,2EAA2E;IAC3E,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;;OAIG;IACH,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,8EAA8E;IAC9E,gBAAgB,EAAE,MAAM,MAAM,IAAI,CAAC;CACpC;AAED,wBAAgB,4BAA4B,IAAI,sBAAsB,CAgCrE;AAcD,eAAO,MAAM,wBAAwB,iDAA4D,CAAC;AAElG,wBAAgB,yBAAyB,IAAI,sBAAsB,CAElE"}
|
|
@@ -8,14 +8,8 @@ export interface DataTableRowProps<T> {
|
|
|
8
8
|
/** Dense row height. */
|
|
9
9
|
compact?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* clipped. Default keeps the fixed height.
|
|
14
|
-
*/
|
|
15
|
-
autoHeight?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* REPLACES the height this row would otherwise take (`compact`, `autoHeight`
|
|
18
|
-
* or the design default). The one place a table states how tall a row is, so
|
|
11
|
+
* REPLACES the height this row would otherwise take (`compact` or the design
|
|
12
|
+
* default). The one place a table states how tall a row is, so
|
|
19
13
|
* the pad rows and the skeleton can reserve the SAME number — see
|
|
20
14
|
* `DataTableBodyProps.rowHeightClassName`.
|
|
21
15
|
*
|
|
@@ -66,7 +60,7 @@ export interface DataTableRowProps<T> {
|
|
|
66
60
|
* for `onClick` and `className` (if function) via `useCallback` / `useMemo` in
|
|
67
61
|
* the consumer. `href` and string `className` are compared by value.
|
|
68
62
|
*/
|
|
69
|
-
declare function DataTableRowImpl<T>({ row, onClick, href, compact,
|
|
63
|
+
declare function DataTableRowImpl<T>({ row, onClick, href, compact, rowHeightClassName, className, subRow, }: DataTableRowProps<T>): React.JSX.Element;
|
|
70
64
|
export declare const DataTableRow: typeof DataTableRowImpl;
|
|
71
65
|
export {};
|
|
72
66
|
//# sourceMappingURL=data-table-row.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-row.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlE,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB
|
|
1
|
+
{"version":3,"file":"data-table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-row.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlE,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,iBAAS,gBAAgB,CAAC,CAAC,EAAE,EAC3B,GAAG,EACH,OAAO,EACP,IAAI,EACJ,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,MAAM,GACP,EAAE,iBAAiB,CAAC,CAAC,CAAC,qBAkHtB;AAED,eAAO,MAAM,YAAY,EAA6B,OAAO,gBAAgB,CAAC"}
|