@flamingo-stack/openframe-frontend-core 0.0.598-2039.5713.1 → 0.0.598
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/chat-protocol/index.cjs +1 -8
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.d.ts +0 -1
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +2 -7
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
- package/dist/{chunk-TSCIVH7T.js → chunk-2JNCZDJR.js} +2 -2
- package/dist/{chunk-6NSGAH5H.cjs → chunk-2SYX2Z7R.cjs} +34 -34
- package/dist/{chunk-6NSGAH5H.cjs.map → chunk-2SYX2Z7R.cjs.map} +1 -1
- package/dist/{chunk-6ZHH37RS.cjs → chunk-3WSS7C2V.cjs} +15 -15
- package/dist/{chunk-6ZHH37RS.cjs.map → chunk-3WSS7C2V.cjs.map} +1 -1
- package/dist/{chunk-5L4ERWSW.js → chunk-75YW6ET4.js} +4 -4
- package/dist/{chunk-VKCETV3C.js → chunk-BK6CCQG6.js} +12 -12
- package/dist/{chunk-HM25MFZX.cjs → chunk-BPVHDDNY.cjs} +8 -8
- package/dist/{chunk-HM25MFZX.cjs.map → chunk-BPVHDDNY.cjs.map} +1 -1
- package/dist/{chunk-VIBREYUK.cjs → chunk-BZEWPW5A.cjs} +3 -3
- package/dist/{chunk-VIBREYUK.cjs.map → chunk-BZEWPW5A.cjs.map} +1 -1
- package/dist/{chunk-KYWU6F3O.cjs → chunk-DAPOBLAK.cjs} +39 -39
- package/dist/{chunk-KYWU6F3O.cjs.map → chunk-DAPOBLAK.cjs.map} +1 -1
- package/dist/{chunk-DHCA5BZP.cjs → chunk-DI3SVVY5.cjs} +85 -85
- package/dist/{chunk-DHCA5BZP.cjs.map → chunk-DI3SVVY5.cjs.map} +1 -1
- package/dist/{chunk-BLUL2TE3.js → chunk-EVMHJB6X.js} +4 -4
- package/dist/{chunk-S6WBBSII.js → chunk-EZM5DNII.js} +3 -3
- package/dist/{chunk-BVQEU5JB.js → chunk-GGQZBSFN.js} +2 -2
- package/dist/{chunk-KTX5B2FW.js → chunk-GHYFVT52.js} +439 -414
- package/dist/chunk-GHYFVT52.js.map +1 -0
- package/dist/{chunk-CCWI3622.cjs → chunk-H64ZHSYR.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-H64ZHSYR.cjs.map} +1 -1
- package/dist/{chunk-4T42D6YG.js → chunk-HLPAVYK7.js} +4 -4
- package/dist/{chunk-HFHBA3VV.cjs → chunk-HWAYIK4U.cjs} +22 -22
- package/dist/{chunk-HFHBA3VV.cjs.map → chunk-HWAYIK4U.cjs.map} +1 -1
- package/dist/{chunk-CF4QJPTN.cjs → chunk-JVZVVZOZ.cjs} +9 -9
- package/dist/{chunk-CF4QJPTN.cjs.map → chunk-JVZVVZOZ.cjs.map} +1 -1
- package/dist/{chunk-XV7RFACE.js → chunk-KHOZ52NR.js} +6 -6
- package/dist/{chunk-IW746HJ7.js → chunk-LRQCKSZC.js} +2 -2
- package/dist/{chunk-JJUV7Z4L.cjs → chunk-M4YQUHOR.cjs} +15 -15
- package/dist/{chunk-JJUV7Z4L.cjs.map → chunk-M4YQUHOR.cjs.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-MYBXCWEI.js} +2 -2
- package/dist/{chunk-QTPHBCPI.js → chunk-NIAMPMKV.js} +4 -4
- package/dist/{chunk-UXOOVP77.cjs → chunk-O4VZOA2Q.cjs} +3 -3
- package/dist/{chunk-UXOOVP77.cjs.map → chunk-O4VZOA2Q.cjs.map} +1 -1
- package/dist/{chunk-ABNBTPI2.cjs → chunk-P24VPJTT.cjs} +15 -15
- package/dist/{chunk-ABNBTPI2.cjs.map → chunk-P24VPJTT.cjs.map} +1 -1
- package/dist/{chunk-4XPPQDEM.js → chunk-PTK3CINU.js} +5 -5
- package/dist/{chunk-7FUIRGMU.js → chunk-PX4IPM7Q.js} +3 -3
- package/dist/{chunk-NLT5R43J.cjs → chunk-QD64Q4I2.cjs} +9 -9
- package/dist/{chunk-NLT5R43J.cjs.map → chunk-QD64Q4I2.cjs.map} +1 -1
- package/dist/{chunk-TEVP4KNG.cjs → chunk-QIKBISZM.cjs} +522 -497
- package/dist/chunk-QIKBISZM.cjs.map +1 -0
- package/dist/{chunk-FGNUI4CC.js → chunk-R4UV366K.js} +6 -6
- package/dist/{chunk-UPKZU6QU.cjs → chunk-RDTOMWDN.cjs} +1 -1
- package/dist/chunk-RDTOMWDN.cjs.map +1 -0
- package/dist/{chunk-YB6FI2G3.js → chunk-RYXIRVDC.js} +1 -1
- package/dist/chunk-RYXIRVDC.js.map +1 -0
- package/dist/{chunk-QPAPUIF3.cjs → chunk-SAEJGTCI.cjs} +35 -35
- package/dist/{chunk-QPAPUIF3.cjs.map → chunk-SAEJGTCI.cjs.map} +1 -1
- package/dist/{chunk-66HTVTZZ.js → chunk-SE3PVN64.js} +2 -2
- package/dist/{chunk-3IXDZI3R.cjs → chunk-STYNZ4QM.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-STYNZ4QM.cjs.map} +1 -1
- package/dist/{chunk-CQRYXSHL.js → chunk-TZPVRWPU.js} +5 -5
- package/dist/{chunk-RU3IKVY2.js → chunk-UAAXUFK6.js} +3 -3
- package/dist/{chunk-F5NEZLTG.cjs → chunk-UE7OFLLS.cjs} +14 -14
- package/dist/{chunk-F5NEZLTG.cjs.map → chunk-UE7OFLLS.cjs.map} +1 -1
- package/dist/{chunk-VUR24QYH.cjs → chunk-UG7JNQZY.cjs} +37 -37
- package/dist/{chunk-VUR24QYH.cjs.map → chunk-UG7JNQZY.cjs.map} +1 -1
- package/dist/{chunk-UQSOFWXP.cjs → chunk-V2QK5W3O.cjs} +3 -3
- package/dist/{chunk-UQSOFWXP.cjs.map → chunk-V2QK5W3O.cjs.map} +1 -1
- package/dist/{chunk-ZABAXD4U.js → chunk-VIRTMRS4.js} +7 -7
- package/dist/{chunk-D565OOXC.cjs → chunk-VLJTJAHJ.cjs} +25 -25
- package/dist/{chunk-D565OOXC.cjs.map → chunk-VLJTJAHJ.cjs.map} +1 -1
- package/dist/{chunk-K5QV7ZAY.js → chunk-VNSRNVPD.js} +437 -756
- package/dist/chunk-VNSRNVPD.js.map +1 -0
- package/dist/{chunk-UQEOAPAI.cjs → chunk-WCBRZCU4.cjs} +9 -9
- package/dist/{chunk-UQEOAPAI.cjs.map → chunk-WCBRZCU4.cjs.map} +1 -1
- package/dist/{chunk-3XFDRL32.js → chunk-WDWCQD75.js} +9 -9
- package/dist/{chunk-QT35C6CW.js → chunk-WPN545FW.js} +12 -12
- package/dist/{chunk-F2KBCLUG.js → chunk-WZJOILPU.js} +2 -2
- package/dist/{chunk-KAADFO74.js → chunk-XNPAVMPB.js} +5 -5
- package/dist/{chunk-5PPYXXUO.cjs → chunk-YBPFIXV4.cjs} +522 -841
- package/dist/chunk-YBPFIXV4.cjs.map +1 -0
- package/dist/{chunk-EHAYNUOL.cjs → chunk-YH6IQTPI.cjs} +3 -3
- package/dist/{chunk-EHAYNUOL.cjs.map → chunk-YH6IQTPI.cjs.map} +1 -1
- package/dist/{chunk-AVAENPVE.cjs → chunk-YWBAIFI2.cjs} +105 -105
- package/dist/{chunk-AVAENPVE.cjs.map → chunk-YWBAIFI2.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +8 -8
- package/dist/components/chat/embeddable-chat.d.ts +19 -10
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +0 -1
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts +2 -2
- package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-history-hydration.d.ts +3 -13
- package/dist/components/chat/hooks/use-chat-history-hydration.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +16 -2
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -9
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +4 -8
- package/dist/components/chat/types/unified-chat-state.types.d.ts +6 -67
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/chat/utils/index.d.ts +0 -1
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +31 -31
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +66 -70
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +22 -26
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/index.js +6 -6
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-skeleton.d.ts +31 -0
- package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +8 -12
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +7 -11
- package/dist/components/ui/table/table-empty-state.d.ts +1 -1
- package/dist/components/ui/table/table-empty-state.d.ts.map +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts +1 -14
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +33 -6
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/contexts/chat-runtime-context.d.ts +0 -12
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +12 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chat-protocol/index.ts +0 -1
- package/src/chat-protocol/nats-decoder.ts +5 -1
- package/src/components/chat/.embeddable-chat.md +2 -4
- package/src/components/chat/embeddable-chat.tsx +84 -131
- package/src/components/chat/hooks/.use-chat-dialog-manager.md +1 -3
- package/src/components/chat/hooks/.use-nats-chat-adapter.md +1 -3
- package/src/components/chat/hooks/.use-sse-chat-adapter.md +1 -8
- package/src/components/chat/hooks/.use-unified-chat.md +2 -2
- package/src/components/chat/hooks/index.ts +0 -2
- package/src/components/chat/hooks/use-chat-dialog-manager.ts +65 -38
- package/src/components/chat/hooks/use-chat-history-hydration.ts +24 -67
- package/src/components/chat/hooks/use-nats-chat-adapter.ts +150 -65
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +59 -233
- package/src/components/chat/hooks/use-unified-chat.ts +0 -5
- package/src/components/chat/types/.unified-chat-state.types.md +1 -13
- package/src/components/chat/types/unified-chat-state.types.ts +6 -74
- package/src/components/chat/utils/index.ts +0 -7
- package/src/components/ui/data-table/data-table-body.tsx +8 -49
- package/src/components/ui/data-table/data-table-skeleton.tsx +100 -0
- package/src/components/ui/table/table-empty-state.tsx +5 -1
- package/src/components/ui/table/table-skeleton.tsx +14 -40
- package/src/components/ui/table/table.tsx +34 -15
- package/src/components/ui/table/types.ts +33 -6
- package/src/contexts/.chat-runtime-context.md +1 -3
- package/src/contexts/chat-runtime-context.tsx +0 -12
- package/dist/chat-protocol/wire-narrow.d.ts +0 -17
- package/dist/chat-protocol/wire-narrow.d.ts.map +0 -1
- package/dist/chunk-5PPYXXUO.cjs.map +0 -1
- package/dist/chunk-K5QV7ZAY.js.map +0 -1
- package/dist/chunk-KTX5B2FW.js.map +0 -1
- package/dist/chunk-TEVP4KNG.cjs.map +0 -1
- package/dist/chunk-UPKZU6QU.cjs.map +0 -1
- package/dist/chunk-YB6FI2G3.js.map +0 -1
- package/dist/components/chat/hooks/use-managed-dialog-list.d.ts +0 -68
- package/dist/components/chat/hooks/use-managed-dialog-list.d.ts.map +0 -1
- package/dist/components/chat/utils/chat-conversations-api.d.ts +0 -29
- package/dist/components/chat/utils/chat-conversations-api.d.ts.map +0 -1
- package/src/chat-protocol/wire-narrow.ts +0 -22
- package/src/components/chat/hooks/.use-managed-dialog-list.md +0 -31
- package/src/components/chat/hooks/__tests__/managed-dialog-list.test.ts +0 -280
- package/src/components/chat/hooks/__tests__/nats-adapter-managed-dialogs.test.ts +0 -172
- package/src/components/chat/hooks/__tests__/sse-managed-dialogs.test.ts +0 -310
- package/src/components/chat/hooks/use-managed-dialog-list.ts +0 -371
- package/src/components/chat/utils/.chat-conversations-api.md +0 -16
- package/src/components/chat/utils/__tests__/chat-conversations-api-golden.test.ts +0 -105
- package/src/components/chat/utils/chat-conversations-api.ts +0 -83
- /package/dist/{chunk-TSCIVH7T.js.map → chunk-2JNCZDJR.js.map} +0 -0
- /package/dist/{chunk-5L4ERWSW.js.map → chunk-75YW6ET4.js.map} +0 -0
- /package/dist/{chunk-VKCETV3C.js.map → chunk-BK6CCQG6.js.map} +0 -0
- /package/dist/{chunk-BLUL2TE3.js.map → chunk-EVMHJB6X.js.map} +0 -0
- /package/dist/{chunk-S6WBBSII.js.map → chunk-EZM5DNII.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-GGQZBSFN.js.map} +0 -0
- /package/dist/{chunk-4T42D6YG.js.map → chunk-HLPAVYK7.js.map} +0 -0
- /package/dist/{chunk-XV7RFACE.js.map → chunk-KHOZ52NR.js.map} +0 -0
- /package/dist/{chunk-IW746HJ7.js.map → chunk-LRQCKSZC.js.map} +0 -0
- /package/dist/{chunk-FKBM6U43.js.map → chunk-MYBXCWEI.js.map} +0 -0
- /package/dist/{chunk-QTPHBCPI.js.map → chunk-NIAMPMKV.js.map} +0 -0
- /package/dist/{chunk-4XPPQDEM.js.map → chunk-PTK3CINU.js.map} +0 -0
- /package/dist/{chunk-7FUIRGMU.js.map → chunk-PX4IPM7Q.js.map} +0 -0
- /package/dist/{chunk-FGNUI4CC.js.map → chunk-R4UV366K.js.map} +0 -0
- /package/dist/{chunk-66HTVTZZ.js.map → chunk-SE3PVN64.js.map} +0 -0
- /package/dist/{chunk-CQRYXSHL.js.map → chunk-TZPVRWPU.js.map} +0 -0
- /package/dist/{chunk-RU3IKVY2.js.map → chunk-UAAXUFK6.js.map} +0 -0
- /package/dist/{chunk-ZABAXD4U.js.map → chunk-VIRTMRS4.js.map} +0 -0
- /package/dist/{chunk-3XFDRL32.js.map → chunk-WDWCQD75.js.map} +0 -0
- /package/dist/{chunk-QT35C6CW.js.map → chunk-WPN545FW.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-WZJOILPU.js.map} +0 -0
- /package/dist/{chunk-KAADFO74.js.map → chunk-XNPAVMPB.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
useLocalStorage,
|
|
23
23
|
useNotificationPermission,
|
|
24
24
|
useToast
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EZM5DNII.js";
|
|
26
26
|
import {
|
|
27
27
|
Pagination
|
|
28
28
|
} from "./chunk-GBON2OCG.js";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
useCollapsible,
|
|
92
92
|
useIsHydrated,
|
|
93
93
|
useScrollFade
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-VNSRNVPD.js";
|
|
95
95
|
import {
|
|
96
96
|
NEAR_VIEWPORT_ROOT_MARGIN,
|
|
97
97
|
ToolIcon,
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
formatLargeNumber,
|
|
230
230
|
isVideoMedia,
|
|
231
231
|
personInitials
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-UAAXUFK6.js";
|
|
233
233
|
import {
|
|
234
234
|
next_image_default
|
|
235
235
|
} from "./chunk-MDKCTSDS.js";
|
|
@@ -238,7 +238,7 @@ import {
|
|
|
238
238
|
embedAuthedFetch,
|
|
239
239
|
useAuthedImageSrc,
|
|
240
240
|
useImageEdgeColor
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-MYBXCWEI.js";
|
|
242
242
|
import {
|
|
243
243
|
OpenFrameLogo
|
|
244
244
|
} from "./chunk-OTX6XNSA.js";
|
|
@@ -12839,24 +12839,225 @@ function CursorPaginationSimple({
|
|
|
12839
12839
|
] });
|
|
12840
12840
|
}
|
|
12841
12841
|
|
|
12842
|
-
// src/components/ui/table/table
|
|
12842
|
+
// src/components/ui/data-table/data-table.tsx
|
|
12843
|
+
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
12843
12844
|
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
12844
|
-
|
|
12845
|
-
|
|
12845
|
+
var DataTableContext = createContext4(null);
|
|
12846
|
+
function useDataTableContext() {
|
|
12847
|
+
const ctx = useContext4(DataTableContext);
|
|
12848
|
+
if (!ctx) {
|
|
12849
|
+
throw new Error("<DataTable.Header/Body/...> must be used inside <DataTable table={...}>");
|
|
12850
|
+
}
|
|
12851
|
+
return ctx;
|
|
12852
|
+
}
|
|
12853
|
+
function DataTableRoot({ table, children, className }) {
|
|
12854
|
+
return /* @__PURE__ */ jsx113(DataTableContext.Provider, { value: table, children: /* @__PURE__ */ jsx113("div", { className: cn("flex w-full flex-col", className), children }) });
|
|
12855
|
+
}
|
|
12856
|
+
|
|
12857
|
+
// src/components/ui/data-table/utils.ts
|
|
12858
|
+
var BREAKPOINT_ORDER = ["md", "lg", "xl", "2xl"];
|
|
12859
|
+
function getHideClasses(hideAt) {
|
|
12860
|
+
if (!hideAt) return "";
|
|
12861
|
+
const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
|
|
12862
|
+
if (breakpoints.length === 1) {
|
|
12863
|
+
return `hidden ${breakpoints[0]}:flex`;
|
|
12864
|
+
}
|
|
12865
|
+
const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
|
|
12866
|
+
const hideClasses = breakpoints.map((bp) => `${bp}:hidden`).join(" ");
|
|
12867
|
+
const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
|
|
12868
|
+
return showBreakpoint ? `${hideClasses} ${showBreakpoint}:flex` : hideClasses;
|
|
12869
|
+
}
|
|
12870
|
+
function getHideAtVisibility(hideAt) {
|
|
12871
|
+
const steps = BREAKPOINT_ORDER.length + 1;
|
|
12872
|
+
if (!hideAt) return Array.from({ length: steps }, () => true);
|
|
12873
|
+
const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
|
|
12874
|
+
if (breakpoints.length === 1) {
|
|
12875
|
+
const showFrom = BREAKPOINT_ORDER.indexOf(breakpoints[0]) + 1;
|
|
12876
|
+
return Array.from({ length: steps }, (_, step) => step >= showFrom);
|
|
12877
|
+
}
|
|
12878
|
+
const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
|
|
12879
|
+
const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
|
|
12880
|
+
const visible = [true];
|
|
12881
|
+
for (const bp of BREAKPOINT_ORDER) {
|
|
12882
|
+
let state = visible[visible.length - 1];
|
|
12883
|
+
if (breakpoints.includes(bp)) state = false;
|
|
12884
|
+
if (bp === showBreakpoint) state = true;
|
|
12885
|
+
visible.push(state);
|
|
12886
|
+
}
|
|
12887
|
+
return visible;
|
|
12888
|
+
}
|
|
12889
|
+
function alignJustify(align) {
|
|
12890
|
+
switch (align) {
|
|
12891
|
+
case "center":
|
|
12892
|
+
return "justify-center text-center";
|
|
12893
|
+
case "right":
|
|
12894
|
+
return "justify-end text-right";
|
|
12895
|
+
default:
|
|
12896
|
+
return "justify-start text-left";
|
|
12897
|
+
}
|
|
12898
|
+
}
|
|
12899
|
+
var multiSelectFilterFn = (row, columnId, filterValue) => {
|
|
12900
|
+
const values = filterValue;
|
|
12901
|
+
if (!values || values.length === 0) return true;
|
|
12902
|
+
const cellValue = row.getValue(columnId);
|
|
12903
|
+
return values.some((v) => v === cellValue || String(v) === String(cellValue));
|
|
12904
|
+
};
|
|
12905
|
+
|
|
12906
|
+
// src/components/ui/data-table/data-table-skeleton.tsx
|
|
12907
|
+
import { Fragment as Fragment15, jsx as jsx114, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
12908
|
+
var ROW_HEIGHT_DESKTOP = "h-[66px] md:h-[78px]";
|
|
12909
|
+
var ROW_HEIGHT_MOBILE = "h-[66px]";
|
|
12910
|
+
var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]";
|
|
12911
|
+
function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassName }) {
|
|
12912
|
+
const table = useDataTableContext();
|
|
12913
|
+
const columns = table.getVisibleFlatColumns();
|
|
12914
|
+
const firstColumnId = columns[0]?.id;
|
|
12915
|
+
return /* @__PURE__ */ jsx114(Fragment15, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs88(
|
|
12916
|
+
"div",
|
|
12917
|
+
{
|
|
12918
|
+
className: cn(
|
|
12919
|
+
"relative animate-pulse overflow-hidden rounded-md border border-ods-border bg-ods-card",
|
|
12920
|
+
// The slot height sits on the card, matching a real row.
|
|
12921
|
+
rowHeightClassName,
|
|
12922
|
+
className
|
|
12923
|
+
),
|
|
12924
|
+
children: [
|
|
12925
|
+
/* @__PURE__ */ jsx114(
|
|
12926
|
+
"div",
|
|
12927
|
+
{
|
|
12928
|
+
className: cn(
|
|
12929
|
+
"hidden py-0 md:flex",
|
|
12930
|
+
ROW_SHELL_CLASSES,
|
|
12931
|
+
rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP,
|
|
12932
|
+
rowClassName
|
|
12933
|
+
),
|
|
12934
|
+
children: columns.map((column) => {
|
|
12935
|
+
const meta = column.columnDef.meta;
|
|
12936
|
+
return /* @__PURE__ */ jsxs88(
|
|
12937
|
+
"div",
|
|
12938
|
+
{
|
|
12939
|
+
className: cn(
|
|
12940
|
+
"flex shrink-0 flex-col justify-center",
|
|
12941
|
+
meta?.width || "flex-1",
|
|
12942
|
+
// Same responsive hiding the real header and row apply.
|
|
12943
|
+
// Without it a `hideAt` column was drawn in the skeleton and
|
|
12944
|
+
// absent from the loaded table, so below that breakpoint the
|
|
12945
|
+
// remaining columns were sized against a different total and
|
|
12946
|
+
// the whole row re-laid-out the moment data arrived.
|
|
12947
|
+
getHideClasses(meta?.hideAt)
|
|
12948
|
+
),
|
|
12949
|
+
children: [
|
|
12950
|
+
/* @__PURE__ */ jsx114("div", { className: "mb-[var(--spacing-system-xxs)] h-5 w-3/4 rounded-sm bg-ods-bg-surface" }),
|
|
12951
|
+
index % 2 === 0 && column.id === firstColumnId && /* @__PURE__ */ jsx114("div", { className: "h-4 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
|
|
12952
|
+
]
|
|
12953
|
+
},
|
|
12954
|
+
column.id
|
|
12955
|
+
);
|
|
12956
|
+
})
|
|
12957
|
+
}
|
|
12958
|
+
),
|
|
12959
|
+
/* @__PURE__ */ jsx114(
|
|
12960
|
+
"div",
|
|
12961
|
+
{
|
|
12962
|
+
className: cn(
|
|
12963
|
+
"flex justify-start py-0 md:hidden",
|
|
12964
|
+
ROW_SHELL_CLASSES,
|
|
12965
|
+
rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE,
|
|
12966
|
+
rowClassName
|
|
12967
|
+
),
|
|
12968
|
+
children: /* @__PURE__ */ jsxs88("div", { className: "flex min-w-0 flex-1 flex-col justify-center py-[var(--spacing-system-sf)]", children: [
|
|
12969
|
+
/* @__PURE__ */ jsx114("div", { className: "mb-[var(--spacing-system-xsf)] h-4 w-3/4 rounded-sm bg-ods-bg-surface" }),
|
|
12970
|
+
/* @__PURE__ */ jsx114("div", { className: "h-3 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
|
|
12971
|
+
] })
|
|
12972
|
+
}
|
|
12973
|
+
)
|
|
12974
|
+
]
|
|
12975
|
+
},
|
|
12976
|
+
index
|
|
12977
|
+
)) });
|
|
12978
|
+
}
|
|
12979
|
+
function ReservedEmptyState({
|
|
12980
|
+
count,
|
|
12981
|
+
gapClassName,
|
|
12982
|
+
rowHeightClassName,
|
|
12983
|
+
innerHeightClassName,
|
|
12984
|
+
children
|
|
12985
|
+
}) {
|
|
12986
|
+
return /* @__PURE__ */ jsxs88("div", { className: cn("relative flex w-full flex-col", gapClassName), children: [
|
|
12987
|
+
/* @__PURE__ */ jsx114(
|
|
12988
|
+
PlaceholderRows,
|
|
12989
|
+
{
|
|
12990
|
+
count,
|
|
12991
|
+
rowHeightClassName,
|
|
12992
|
+
innerHeightClassName
|
|
12993
|
+
}
|
|
12994
|
+
),
|
|
12995
|
+
/* @__PURE__ */ jsx114("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx114("div", { className: "sticky left-0 flex w-screen max-w-full justify-center", children }) })
|
|
12996
|
+
] });
|
|
12997
|
+
}
|
|
12998
|
+
function PlaceholderRows({
|
|
12999
|
+
count,
|
|
13000
|
+
rowHeightClassName,
|
|
13001
|
+
innerHeightClassName
|
|
13002
|
+
}) {
|
|
13003
|
+
return /* @__PURE__ */ jsx114(Fragment15, { children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ jsxs88(
|
|
13004
|
+
"div",
|
|
13005
|
+
{
|
|
13006
|
+
className: cn(
|
|
13007
|
+
"pointer-events-none relative overflow-hidden rounded-md border border-transparent",
|
|
13008
|
+
// The stated slot height belongs on the CARD, exactly as a real
|
|
13009
|
+
// row carries it — a real row with a sub-row is taller than its
|
|
13010
|
+
// cells, so reserving the cells' height here left every pad row
|
|
13011
|
+
// short by the sub-row.
|
|
13012
|
+
rowHeightClassName
|
|
13013
|
+
),
|
|
13014
|
+
"aria-hidden": "true",
|
|
13015
|
+
children: [
|
|
13016
|
+
/* @__PURE__ */ jsx114(
|
|
13017
|
+
"div",
|
|
13018
|
+
{
|
|
13019
|
+
className: cn(
|
|
13020
|
+
"hidden py-0 md:flex",
|
|
13021
|
+
ROW_SHELL_CLASSES,
|
|
13022
|
+
innerHeightClassName ?? (rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP)
|
|
13023
|
+
)
|
|
13024
|
+
}
|
|
13025
|
+
),
|
|
13026
|
+
/* @__PURE__ */ jsx114(
|
|
13027
|
+
"div",
|
|
13028
|
+
{
|
|
13029
|
+
className: cn(
|
|
13030
|
+
"flex justify-start py-0 md:hidden",
|
|
13031
|
+
ROW_SHELL_CLASSES,
|
|
13032
|
+
innerHeightClassName ?? (rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE)
|
|
13033
|
+
)
|
|
13034
|
+
}
|
|
13035
|
+
)
|
|
13036
|
+
]
|
|
13037
|
+
},
|
|
13038
|
+
`placeholder-${i}`
|
|
13039
|
+
)) });
|
|
13040
|
+
}
|
|
13041
|
+
|
|
13042
|
+
// src/components/ui/table/table-empty-state.tsx
|
|
13043
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
13044
|
+
function TableEmptyState({ message, description, emptyState, icon, action, className }) {
|
|
13045
|
+
return /* @__PURE__ */ jsx115(
|
|
12846
13046
|
NoData,
|
|
12847
13047
|
{
|
|
12848
|
-
icon: icon ?? /* @__PURE__ */
|
|
13048
|
+
icon: icon ?? /* @__PURE__ */ jsx115(SearchIcon, {}),
|
|
12849
13049
|
title: message ?? "No results found",
|
|
12850
13050
|
description: description ?? (message == null ? "Try adjusting your search or filters" : void 0),
|
|
12851
13051
|
buttonLabel: action?.label,
|
|
12852
13052
|
onButtonClick: action?.onClick,
|
|
12853
|
-
className: cn("py-[var(--spacing-system-xxl)]", className)
|
|
13053
|
+
className: cn("py-[var(--spacing-system-xxl)]", className),
|
|
13054
|
+
...emptyState
|
|
12854
13055
|
}
|
|
12855
13056
|
);
|
|
12856
13057
|
}
|
|
12857
13058
|
|
|
12858
13059
|
// src/components/ui/table/table-column-filter-dropdown.tsx
|
|
12859
|
-
import { jsx as
|
|
13060
|
+
import { jsx as jsx116, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
12860
13061
|
function TableColumnFilterDropdown({
|
|
12861
13062
|
columnKey,
|
|
12862
13063
|
columnLabel,
|
|
@@ -12867,17 +13068,17 @@ function TableColumnFilterDropdown({
|
|
|
12867
13068
|
dropdownClassName = "min-w-[240px]"
|
|
12868
13069
|
}) {
|
|
12869
13070
|
const activeCount = filters?.[columnKey]?.length || 0;
|
|
12870
|
-
return /* @__PURE__ */
|
|
13071
|
+
return /* @__PURE__ */ jsx116(
|
|
12871
13072
|
FiltersDropdown,
|
|
12872
13073
|
{
|
|
12873
|
-
triggerElement: /* @__PURE__ */
|
|
13074
|
+
triggerElement: /* @__PURE__ */ jsxs89(
|
|
12874
13075
|
"div",
|
|
12875
13076
|
{
|
|
12876
13077
|
className: "flex cursor-pointer items-center gap-1.5 rounded px-1 py-0.5 transition-all duration-200 hover:bg-ods-bg-active",
|
|
12877
13078
|
"aria-label": `Filter by ${columnLabel}`,
|
|
12878
13079
|
children: [
|
|
12879
|
-
/* @__PURE__ */
|
|
12880
|
-
/* @__PURE__ */
|
|
13080
|
+
/* @__PURE__ */ jsx116("span", { className: "select-none text-ods-text-secondary text-h5", children: columnLabel }),
|
|
13081
|
+
/* @__PURE__ */ jsx116(
|
|
12881
13082
|
Filter02Icon,
|
|
12882
13083
|
{
|
|
12883
13084
|
className: cn("h-4 w-4 transition-colors", activeCount > 0 ? "text-ods-accent" : "text-ods-text-secondary")
|
|
@@ -12914,7 +13115,7 @@ function TableColumnFilterDropdown({
|
|
|
12914
13115
|
}
|
|
12915
13116
|
|
|
12916
13117
|
// src/components/ui/table/utils.ts
|
|
12917
|
-
function
|
|
13118
|
+
function getHideClasses2(hideAt) {
|
|
12918
13119
|
if (!hideAt) {
|
|
12919
13120
|
return "";
|
|
12920
13121
|
}
|
|
@@ -12934,7 +13135,7 @@ function getHideClasses(hideAt) {
|
|
|
12934
13135
|
}
|
|
12935
13136
|
|
|
12936
13137
|
// src/components/ui/table/table-header.tsx
|
|
12937
|
-
import { Fragment as
|
|
13138
|
+
import { Fragment as Fragment16, jsx as jsx117, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
12938
13139
|
function TableHeader({
|
|
12939
13140
|
columns,
|
|
12940
13141
|
className,
|
|
@@ -12975,12 +13176,12 @@ function TableHeader({
|
|
|
12975
13176
|
const columnKey = column.sortKey || column.key;
|
|
12976
13177
|
const isActive = sortBy === columnKey;
|
|
12977
13178
|
if (!isActive) {
|
|
12978
|
-
return /* @__PURE__ */
|
|
13179
|
+
return /* @__PURE__ */ jsx117(SwitchVrIcon, { className: "h-4 w-4 text-ods-text-secondary" });
|
|
12979
13180
|
}
|
|
12980
|
-
return sortDirection === "asc" ? /* @__PURE__ */
|
|
13181
|
+
return sortDirection === "asc" ? /* @__PURE__ */ jsx117(Arrow01UpIcon, { className: "h-4 w-4 text-ods-accent" }) : /* @__PURE__ */ jsx117(Arrow01DownIcon, { className: "h-4 w-4 text-ods-accent" });
|
|
12981
13182
|
};
|
|
12982
13183
|
const isLgUp = useLgUp() ?? false;
|
|
12983
|
-
return /* @__PURE__ */
|
|
13184
|
+
return /* @__PURE__ */ jsxs90(
|
|
12984
13185
|
"div",
|
|
12985
13186
|
{
|
|
12986
13187
|
className: cn(
|
|
@@ -12989,7 +13190,7 @@ function TableHeader({
|
|
|
12989
13190
|
className
|
|
12990
13191
|
),
|
|
12991
13192
|
children: [
|
|
12992
|
-
selectable && /* @__PURE__ */
|
|
13193
|
+
selectable && /* @__PURE__ */ jsx117("div", { className: "flex w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx117(
|
|
12993
13194
|
Checkbox,
|
|
12994
13195
|
{
|
|
12995
13196
|
checked: allSelected || someSelected && !allSelected ? true : false,
|
|
@@ -13003,7 +13204,7 @@ function TableHeader({
|
|
|
13003
13204
|
if (!isLgUp && !isActionsColumn && !filterable) {
|
|
13004
13205
|
return null;
|
|
13005
13206
|
}
|
|
13006
|
-
return /* @__PURE__ */
|
|
13207
|
+
return /* @__PURE__ */ jsx117(
|
|
13007
13208
|
"div",
|
|
13008
13209
|
{
|
|
13009
13210
|
className: cn(
|
|
@@ -13012,12 +13213,12 @@ function TableHeader({
|
|
|
13012
13213
|
isLgUp && (column.width || "min-w-0 flex-1"),
|
|
13013
13214
|
column.className,
|
|
13014
13215
|
// Only apply hide classes if the column is not filterable or on tablet
|
|
13015
|
-
!(filterable && !isLgUp) &&
|
|
13216
|
+
!(filterable && !isLgUp) && getHideClasses2(column.hideAt),
|
|
13016
13217
|
isActionsColumn && "ml-auto"
|
|
13017
13218
|
),
|
|
13018
13219
|
children: isActionsColumn ? (
|
|
13019
13220
|
// Render total items count in actions column
|
|
13020
|
-
totalItemsCount > 0 && /* @__PURE__ */
|
|
13221
|
+
totalItemsCount > 0 && /* @__PURE__ */ jsxs90("span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: [
|
|
13021
13222
|
"Showing ",
|
|
13022
13223
|
totalItemsCount,
|
|
13023
13224
|
" ",
|
|
@@ -13025,7 +13226,7 @@ function TableHeader({
|
|
|
13025
13226
|
] })
|
|
13026
13227
|
) : column.filterable && column.filterOptions && onFilterChange ? (
|
|
13027
13228
|
/* Filterable column — label + icon are both inside the dropdown trigger */
|
|
13028
|
-
/* @__PURE__ */
|
|
13229
|
+
/* @__PURE__ */ jsx117(
|
|
13029
13230
|
TableColumnFilterDropdown,
|
|
13030
13231
|
{
|
|
13031
13232
|
columnKey: column.key,
|
|
@@ -13037,7 +13238,7 @@ function TableHeader({
|
|
|
13037
13238
|
)
|
|
13038
13239
|
) : (
|
|
13039
13240
|
/* Non-filterable column — regular label with optional sort */
|
|
13040
|
-
/* @__PURE__ */
|
|
13241
|
+
/* @__PURE__ */ jsx117(
|
|
13041
13242
|
"div",
|
|
13042
13243
|
{
|
|
13043
13244
|
className: cn(
|
|
@@ -13045,11 +13246,11 @@ function TableHeader({
|
|
|
13045
13246
|
column.sortable && "cursor-pointer transition-colors hover:text-ods-text-primary"
|
|
13046
13247
|
),
|
|
13047
13248
|
onClick: () => handleSort(column),
|
|
13048
|
-
children: column.renderHeader ? /* @__PURE__ */
|
|
13249
|
+
children: column.renderHeader ? /* @__PURE__ */ jsxs90(Fragment16, { children: [
|
|
13049
13250
|
column.renderHeader(),
|
|
13050
13251
|
getSortIcon(column)
|
|
13051
|
-
] }) : /* @__PURE__ */
|
|
13052
|
-
/* @__PURE__ */
|
|
13252
|
+
] }) : /* @__PURE__ */ jsxs90(Fragment16, { children: [
|
|
13253
|
+
/* @__PURE__ */ jsx117("span", { className: "whitespace-nowrap uppercase text-ods-text-secondary text-h5", children: column.label }),
|
|
13053
13254
|
getSortIcon(column)
|
|
13054
13255
|
] })
|
|
13055
13256
|
}
|
|
@@ -13065,7 +13266,7 @@ function TableHeader({
|
|
|
13065
13266
|
}
|
|
13066
13267
|
|
|
13067
13268
|
// src/components/ui/table/table-cell.tsx
|
|
13068
|
-
import { jsx as
|
|
13269
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
13069
13270
|
function TableCell({ children, align = "left", className, width }) {
|
|
13070
13271
|
const getAlignment = () => {
|
|
13071
13272
|
switch (align) {
|
|
@@ -13077,45 +13278,14 @@ function TableCell({ children, align = "left", className, width }) {
|
|
|
13077
13278
|
return "justify-start text-left";
|
|
13078
13279
|
}
|
|
13079
13280
|
};
|
|
13080
|
-
return /* @__PURE__ */
|
|
13281
|
+
return /* @__PURE__ */ jsx118("div", { className: cn("flex flex-col overflow-hidden", getAlignment(), width || "min-w-0 flex-1", className), children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx118("span", { className: "truncate text-ods-text-primary text-h4", children }) : children });
|
|
13081
13282
|
}
|
|
13082
13283
|
|
|
13083
13284
|
// src/components/ui/table/table-skeleton.tsx
|
|
13084
|
-
import { Fragment as
|
|
13085
|
-
var
|
|
13285
|
+
import { Fragment as Fragment17, jsx as jsx119, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
13286
|
+
var ROW_HEIGHT_DESKTOP2 = "h-[66px] md:h-[78px]";
|
|
13086
13287
|
var COMPACT_ROW_MIN_HEIGHT = "min-h-[56px]";
|
|
13087
|
-
var
|
|
13088
|
-
function TablePlaceholderRows({ rows, compact }) {
|
|
13089
|
-
if (rows <= 0) return null;
|
|
13090
|
-
return /* @__PURE__ */ jsx117(Fragment16, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs90(
|
|
13091
|
-
"div",
|
|
13092
|
-
{
|
|
13093
|
-
className: "pointer-events-none relative overflow-hidden rounded-[6px] border border-transparent",
|
|
13094
|
-
"aria-hidden": "true",
|
|
13095
|
-
children: [
|
|
13096
|
-
/* @__PURE__ */ jsx117(
|
|
13097
|
-
"div",
|
|
13098
|
-
{
|
|
13099
|
-
className: cn(
|
|
13100
|
-
"hidden items-center gap-4 px-4 md:flex",
|
|
13101
|
-
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP)
|
|
13102
|
-
)
|
|
13103
|
-
}
|
|
13104
|
-
),
|
|
13105
|
-
/* @__PURE__ */ jsx117(
|
|
13106
|
-
"div",
|
|
13107
|
-
{
|
|
13108
|
-
className: cn(
|
|
13109
|
-
"flex items-center justify-start gap-3 px-3 md:hidden",
|
|
13110
|
-
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_MOBILE)
|
|
13111
|
-
)
|
|
13112
|
-
}
|
|
13113
|
-
)
|
|
13114
|
-
]
|
|
13115
|
-
},
|
|
13116
|
-
`placeholder-${index}`
|
|
13117
|
-
)) });
|
|
13118
|
-
}
|
|
13288
|
+
var ROW_HEIGHT_MOBILE2 = "h-[66px]";
|
|
13119
13289
|
function TableCardSkeleton({
|
|
13120
13290
|
columns,
|
|
13121
13291
|
rows = 10,
|
|
@@ -13126,7 +13296,7 @@ function TableCardSkeleton({
|
|
|
13126
13296
|
rowClassName
|
|
13127
13297
|
}) {
|
|
13128
13298
|
const primaryKey = (columns.find((c) => /flex-(1|\[)/.test(c.width || "")) ?? columns[0])?.key;
|
|
13129
|
-
return /* @__PURE__ */
|
|
13299
|
+
return /* @__PURE__ */ jsx119(Fragment17, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs91(
|
|
13130
13300
|
"div",
|
|
13131
13301
|
{
|
|
13132
13302
|
className: cn(
|
|
@@ -13134,38 +13304,46 @@ function TableCardSkeleton({
|
|
|
13134
13304
|
className
|
|
13135
13305
|
),
|
|
13136
13306
|
children: [
|
|
13137
|
-
/* @__PURE__ */
|
|
13307
|
+
/* @__PURE__ */ jsxs91(
|
|
13138
13308
|
"div",
|
|
13139
13309
|
{
|
|
13140
13310
|
className: cn(
|
|
13141
13311
|
"hidden items-center gap-4 px-4 md:flex",
|
|
13142
|
-
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0",
|
|
13312
|
+
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP2),
|
|
13143
13313
|
rowClassName
|
|
13144
13314
|
),
|
|
13145
13315
|
children: [
|
|
13146
|
-
columns.map((column) => /* @__PURE__ */
|
|
13147
|
-
/* @__PURE__ */
|
|
13148
|
-
index % 2 === 0 && column.key === primaryKey && /* @__PURE__ */
|
|
13316
|
+
columns.map((column) => /* @__PURE__ */ jsxs91("div", { className: cn("flex shrink-0 flex-col justify-center", column.width || "flex-1"), children: [
|
|
13317
|
+
/* @__PURE__ */ jsx119("div", { className: "mb-1 h-5 w-3/4 rounded bg-ods-bg-surface" }),
|
|
13318
|
+
index % 2 === 0 && column.key === primaryKey && /* @__PURE__ */ jsx119("div", { className: "h-4 w-1/2 rounded bg-ods-bg-surface opacity-60" })
|
|
13149
13319
|
] }, column.key)),
|
|
13150
|
-
hasActions && /* @__PURE__ */
|
|
13151
|
-
/* @__PURE__ */
|
|
13152
|
-
/* @__PURE__ */
|
|
13320
|
+
hasActions && /* @__PURE__ */ jsxs91("div", { className: cn("flex shrink-0 items-center gap-2", !hasChevron && "ml-auto"), children: [
|
|
13321
|
+
/* @__PURE__ */ jsx119("div", { className: "h-12 w-12 rounded bg-ods-bg-surface" }),
|
|
13322
|
+
/* @__PURE__ */ jsx119("div", { className: "h-12 w-24 rounded bg-ods-bg-surface" })
|
|
13153
13323
|
] }),
|
|
13154
|
-
hasChevron && /* @__PURE__ */
|
|
13324
|
+
hasChevron && /* @__PURE__ */ jsx119("div", { className: cn("flex w-12 shrink-0 items-center justify-end", !hasActions && "ml-auto"), children: /* @__PURE__ */ jsx119("div", { className: "h-8 w-8 rounded bg-ods-bg-surface" }) })
|
|
13155
13325
|
]
|
|
13156
13326
|
}
|
|
13157
13327
|
),
|
|
13158
|
-
/* @__PURE__ */
|
|
13328
|
+
/* @__PURE__ */ jsxs91(
|
|
13159
13329
|
"div",
|
|
13160
13330
|
{
|
|
13161
|
-
className: cn(
|
|
13331
|
+
className: cn(
|
|
13332
|
+
"flex items-center justify-start gap-3 px-3 md:hidden",
|
|
13333
|
+
// Mirror the real row on mobile too: a compact row is
|
|
13334
|
+
// content-sized with a floor, a normal row a fixed height.
|
|
13335
|
+
// Hard-wiring ROW_HEIGHT_MOBILE made every COMPACT table jump
|
|
13336
|
+
// 68px -> 58px per row when the data replaced the skeleton.
|
|
13337
|
+
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_MOBILE2),
|
|
13338
|
+
rowClassName
|
|
13339
|
+
),
|
|
13162
13340
|
children: [
|
|
13163
|
-
/* @__PURE__ */
|
|
13164
|
-
/* @__PURE__ */
|
|
13165
|
-
/* @__PURE__ */
|
|
13341
|
+
/* @__PURE__ */ jsxs91("div", { className: cn("flex min-w-0 flex-1 flex-col justify-center", compact ? "py-0" : "py-3"), children: [
|
|
13342
|
+
/* @__PURE__ */ jsx119("div", { className: "mb-2 h-4 w-3/4 rounded bg-ods-bg-surface" }),
|
|
13343
|
+
/* @__PURE__ */ jsx119("div", { className: "h-3 w-1/2 rounded bg-ods-bg-surface opacity-60" })
|
|
13166
13344
|
] }),
|
|
13167
|
-
hasActions && /* @__PURE__ */
|
|
13168
|
-
hasChevron && /* @__PURE__ */
|
|
13345
|
+
hasActions && /* @__PURE__ */ jsx119("div", { className: "h-12 w-12 shrink-0 rounded bg-ods-bg-surface" }),
|
|
13346
|
+
hasChevron && /* @__PURE__ */ jsx119("div", { className: "h-8 w-8 shrink-0 rounded bg-ods-bg-surface" })
|
|
13169
13347
|
]
|
|
13170
13348
|
}
|
|
13171
13349
|
)
|
|
@@ -13176,7 +13354,7 @@ function TableCardSkeleton({
|
|
|
13176
13354
|
}
|
|
13177
13355
|
|
|
13178
13356
|
// src/components/ui/table/table-row.tsx
|
|
13179
|
-
import { jsx as
|
|
13357
|
+
import { jsx as jsx120, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
13180
13358
|
function isIndexable(value) {
|
|
13181
13359
|
return typeof value === "object" && value !== null;
|
|
13182
13360
|
}
|
|
@@ -13236,7 +13414,7 @@ function TableRow({
|
|
|
13236
13414
|
}
|
|
13237
13415
|
return String(value);
|
|
13238
13416
|
};
|
|
13239
|
-
return /* @__PURE__ */
|
|
13417
|
+
return /* @__PURE__ */ jsxs92(
|
|
13240
13418
|
Row,
|
|
13241
13419
|
{
|
|
13242
13420
|
...motionProps,
|
|
@@ -13247,8 +13425,8 @@ function TableRow({
|
|
|
13247
13425
|
),
|
|
13248
13426
|
onClick: isLinkMode ? void 0 : handleRowClick,
|
|
13249
13427
|
children: [
|
|
13250
|
-
isLinkMode && href && /* @__PURE__ */
|
|
13251
|
-
/* @__PURE__ */
|
|
13428
|
+
isLinkMode && href && /* @__PURE__ */ jsx120(next_link_default, { href, prefetch: false, className: "absolute inset-0", "aria-label": "View details" }),
|
|
13429
|
+
/* @__PURE__ */ jsxs92(
|
|
13252
13430
|
"div",
|
|
13253
13431
|
{
|
|
13254
13432
|
className: cn(
|
|
@@ -13258,17 +13436,17 @@ function TableRow({
|
|
|
13258
13436
|
// function of the row COUNT alone. That is what lets a host reserve
|
|
13259
13437
|
// space for a full page and stop the layout jumping between a full
|
|
13260
13438
|
// page, a short last page and the skeleton.
|
|
13261
|
-
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0",
|
|
13439
|
+
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP2),
|
|
13262
13440
|
isLinkMode && "pointer-events-none"
|
|
13263
13441
|
),
|
|
13264
13442
|
children: [
|
|
13265
|
-
selectable && /* @__PURE__ */
|
|
13266
|
-
columns.map((column) => /* @__PURE__ */
|
|
13443
|
+
selectable && /* @__PURE__ */ jsx120("div", { className: "pointer-events-auto flex w-10 shrink-0 items-center justify-center", "data-no-row-click": true, children: /* @__PURE__ */ jsx120(Checkbox, { checked: selected, onCheckedChange: handleSelect, className: "border-ods-border" }) }),
|
|
13444
|
+
columns.map((column) => /* @__PURE__ */ jsx120(
|
|
13267
13445
|
TableCell,
|
|
13268
13446
|
{
|
|
13269
13447
|
align: column.align,
|
|
13270
13448
|
width: column.width || "flex-1 min-w-0",
|
|
13271
|
-
className: cn(column.className,
|
|
13449
|
+
className: cn(column.className, getHideClasses2(column.hideAt)),
|
|
13272
13450
|
children: getCellValue(column)
|
|
13273
13451
|
},
|
|
13274
13452
|
column.key
|
|
@@ -13300,7 +13478,7 @@ function useTableMotion(enabled) {
|
|
|
13300
13478
|
}
|
|
13301
13479
|
|
|
13302
13480
|
// src/components/ui/table/table.tsx
|
|
13303
|
-
import { Fragment as
|
|
13481
|
+
import { Fragment as Fragment18, jsx as jsx121, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
13304
13482
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth) {
|
|
13305
13483
|
const hasActions = Boolean(rowActions?.length) || Boolean(renderRowActions);
|
|
13306
13484
|
const result = [...columns];
|
|
@@ -13314,7 +13492,7 @@ function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref,
|
|
|
13314
13492
|
// content-sized for back-compat.
|
|
13315
13493
|
width: actionsColumnWidth ?? "min-w-[100px] w-auto shrink-0 flex-none",
|
|
13316
13494
|
align: "right",
|
|
13317
|
-
renderCell: (item) => /* @__PURE__ */
|
|
13495
|
+
renderCell: (item) => /* @__PURE__ */ jsx121("div", { className: "pointer-events-auto flex items-center justify-end gap-2", "data-no-row-click": true, children: renderRowActions ? renderRowActions(item) : actions.map((action, actionIndex) => /* @__PURE__ */ jsx121(
|
|
13318
13496
|
Button,
|
|
13319
13497
|
{
|
|
13320
13498
|
variant: "outline",
|
|
@@ -13340,14 +13518,14 @@ function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref,
|
|
|
13340
13518
|
renderCell: (item) => {
|
|
13341
13519
|
const href = rowHref(item);
|
|
13342
13520
|
if (!href) return null;
|
|
13343
|
-
return /* @__PURE__ */
|
|
13521
|
+
return /* @__PURE__ */ jsx121("div", { className: "pointer-events-auto flex items-center justify-end", "data-no-row-click": true, children: /* @__PURE__ */ jsx121(
|
|
13344
13522
|
Button,
|
|
13345
13523
|
{
|
|
13346
13524
|
href,
|
|
13347
13525
|
prefetch: false,
|
|
13348
13526
|
variant: "outline",
|
|
13349
13527
|
size: "icon",
|
|
13350
|
-
leftIcon: /* @__PURE__ */
|
|
13528
|
+
leftIcon: /* @__PURE__ */ jsx121(Chevron02RightIcon, { className: "h-6 w-6" }),
|
|
13351
13529
|
"aria-label": "View details"
|
|
13352
13530
|
}
|
|
13353
13531
|
) });
|
|
@@ -13364,7 +13542,9 @@ function Table({
|
|
|
13364
13542
|
loading = false,
|
|
13365
13543
|
emptyMessage,
|
|
13366
13544
|
skeletonRows = 10,
|
|
13367
|
-
|
|
13545
|
+
minRows,
|
|
13546
|
+
emptyState,
|
|
13547
|
+
keepHeightWhenEmpty,
|
|
13368
13548
|
emptyDescription,
|
|
13369
13549
|
className,
|
|
13370
13550
|
containerClassName,
|
|
@@ -13396,6 +13576,8 @@ function Table({
|
|
|
13396
13576
|
}) {
|
|
13397
13577
|
const tableMotion = useTableMotion(Boolean(animateRowReorder));
|
|
13398
13578
|
const columnsWithActions = injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth);
|
|
13579
|
+
const reservedRows = minRows ?? (keepHeightWhenEmpty ? skeletonRows : void 0);
|
|
13580
|
+
const resolvedEmptyState = emptyState ?? (emptyDescription ? { title: emptyMessage, description: emptyDescription } : void 0);
|
|
13399
13581
|
const getRowHref = (item) => {
|
|
13400
13582
|
if (onRowClick || !rowHref) return void 0;
|
|
13401
13583
|
return rowHref(item) ?? void 0;
|
|
@@ -13458,15 +13640,15 @@ function Table({
|
|
|
13458
13640
|
observer.observe(sentinel);
|
|
13459
13641
|
return () => observer.disconnect();
|
|
13460
13642
|
}, [infiniteScroll?.hasNextPage, infiniteScroll?.isFetchingNextPage]);
|
|
13461
|
-
return /* @__PURE__ */
|
|
13462
|
-
showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */
|
|
13463
|
-
/* @__PURE__ */
|
|
13643
|
+
return /* @__PURE__ */ jsxs93("div", { className: cn("flex w-full flex-col gap-1", containerClassName), children: [
|
|
13644
|
+
showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ jsxs93("div", { className: "mb-2 flex items-center justify-between rounded-[6px] border border-ods-border bg-ods-card p-3", children: [
|
|
13645
|
+
/* @__PURE__ */ jsxs93("span", { className: "text-ods-text-secondary text-h6", children: [
|
|
13464
13646
|
selectedRows.length,
|
|
13465
13647
|
" item",
|
|
13466
13648
|
selectedRows.length !== 1 ? "s" : "",
|
|
13467
13649
|
" selected"
|
|
13468
13650
|
] }),
|
|
13469
|
-
/* @__PURE__ */
|
|
13651
|
+
/* @__PURE__ */ jsx121("div", { className: "flex gap-2", children: bulkActions.map((action, index) => /* @__PURE__ */ jsxs93(
|
|
13470
13652
|
"button",
|
|
13471
13653
|
{
|
|
13472
13654
|
onClick: () => action.onClick(selectedRows),
|
|
@@ -13484,7 +13666,7 @@ function Table({
|
|
|
13484
13666
|
index
|
|
13485
13667
|
)) })
|
|
13486
13668
|
] }),
|
|
13487
|
-
/* @__PURE__ */
|
|
13669
|
+
/* @__PURE__ */ jsx121(
|
|
13488
13670
|
TableHeader,
|
|
13489
13671
|
{
|
|
13490
13672
|
columns: columnsWithActions,
|
|
@@ -13503,7 +13685,7 @@ function Table({
|
|
|
13503
13685
|
stickyHeaderOffset
|
|
13504
13686
|
}
|
|
13505
13687
|
),
|
|
13506
|
-
/* @__PURE__ */
|
|
13688
|
+
/* @__PURE__ */ jsx121("div", { className: cn("flex w-full flex-col gap-2", className), children: loading && data.length === 0 ? /* @__PURE__ */ jsx121(
|
|
13507
13689
|
TableCardSkeleton,
|
|
13508
13690
|
{
|
|
13509
13691
|
columns,
|
|
@@ -13512,17 +13694,24 @@ function Table({
|
|
|
13512
13694
|
hasActions: (rowActions?.length ?? 0) > 0,
|
|
13513
13695
|
hasChevron: Boolean(rowHref)
|
|
13514
13696
|
}
|
|
13515
|
-
) : data.length === 0 ?
|
|
13516
|
-
/*
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13697
|
+
) : data.length === 0 ? (
|
|
13698
|
+
/* `minRows` promises a STABLE height, and an empty table is exactly
|
|
13699
|
+
when a collapsing one is most visible — the pagination and
|
|
13700
|
+
everything under it jump the moment a filter matches nothing. So
|
|
13701
|
+
reserve the same slots and centre the empty state over them,
|
|
13702
|
+
identically to `DataTableBody`. */
|
|
13703
|
+
reservedRows ? /* @__PURE__ */ jsx121(
|
|
13704
|
+
ReservedEmptyState,
|
|
13705
|
+
{
|
|
13706
|
+
count: reservedRows,
|
|
13707
|
+
gapClassName: "gap-2",
|
|
13708
|
+
innerHeightClassName: compact ? COMPACT_ROW_MIN_HEIGHT : void 0,
|
|
13709
|
+
children: /* @__PURE__ */ jsx121(TableEmptyState, { message: emptyMessage, emptyState: resolvedEmptyState })
|
|
13710
|
+
}
|
|
13711
|
+
) : /* @__PURE__ */ jsx121(TableEmptyState, { message: emptyMessage, emptyState: resolvedEmptyState })
|
|
13712
|
+
) : /* @__PURE__ */ jsxs93(Fragment18, { children: [
|
|
13524
13713
|
(() => {
|
|
13525
|
-
const rows = data.map((item, index) => /* @__PURE__ */
|
|
13714
|
+
const rows = data.map((item, index) => /* @__PURE__ */ jsx121(
|
|
13526
13715
|
TableRow,
|
|
13527
13716
|
{
|
|
13528
13717
|
item,
|
|
@@ -13541,9 +13730,9 @@ function Table({
|
|
|
13541
13730
|
getRowKey(item, index)
|
|
13542
13731
|
));
|
|
13543
13732
|
const LayoutGroup = tableMotion?.LayoutGroup;
|
|
13544
|
-
return animateRowReorder && LayoutGroup ? /* @__PURE__ */
|
|
13733
|
+
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ jsx121(LayoutGroup, { children: rows }) : rows;
|
|
13545
13734
|
})(),
|
|
13546
|
-
infiniteScroll?.isFetchingNextPage && /* @__PURE__ */
|
|
13735
|
+
infiniteScroll?.isFetchingNextPage && /* @__PURE__ */ jsx121(
|
|
13547
13736
|
TableCardSkeleton,
|
|
13548
13737
|
{
|
|
13549
13738
|
columns,
|
|
@@ -13552,10 +13741,16 @@ function Table({
|
|
|
13552
13741
|
hasChevron: Boolean(rowHref)
|
|
13553
13742
|
}
|
|
13554
13743
|
),
|
|
13555
|
-
infiniteScroll?.hasNextPage && /* @__PURE__ */
|
|
13556
|
-
!infiniteScroll && /* @__PURE__ */
|
|
13744
|
+
infiniteScroll?.hasNextPage && /* @__PURE__ */ jsx121("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
13745
|
+
!infiniteScroll && /* @__PURE__ */ jsx121(
|
|
13746
|
+
PlaceholderRows,
|
|
13747
|
+
{
|
|
13748
|
+
count: Math.max(0, (reservedRows ?? skeletonRows) - data.length),
|
|
13749
|
+
innerHeightClassName: compact ? COMPACT_ROW_MIN_HEIGHT : void 0
|
|
13750
|
+
}
|
|
13751
|
+
)
|
|
13557
13752
|
] }) }),
|
|
13558
|
-
!infiniteScroll && cursorPagination && data.length > 0 && /* @__PURE__ */
|
|
13753
|
+
!infiniteScroll && cursorPagination && data.length > 0 && /* @__PURE__ */ jsx121(
|
|
13559
13754
|
CursorPagination,
|
|
13560
13755
|
{
|
|
13561
13756
|
hasNextPage: cursorPagination.hasNextPage,
|
|
@@ -13577,7 +13772,7 @@ function Table({
|
|
|
13577
13772
|
className: cn("mt-2 border-t border-ods-border pt-3", paginationClassName)
|
|
13578
13773
|
}
|
|
13579
13774
|
),
|
|
13580
|
-
!infiniteScroll && pagePagination && !cursorPagination && data.length > 0 && /* @__PURE__ */
|
|
13775
|
+
!infiniteScroll && pagePagination && !cursorPagination && data.length > 0 && /* @__PURE__ */ jsx121("div", { className: cn("mt-2 border-t border-ods-border pt-3", paginationClassName), children: /* @__PURE__ */ jsx121(
|
|
13581
13776
|
Pagination,
|
|
13582
13777
|
{
|
|
13583
13778
|
currentPage: pagePagination.currentPage,
|
|
@@ -13589,9 +13784,9 @@ function Table({
|
|
|
13589
13784
|
}
|
|
13590
13785
|
|
|
13591
13786
|
// src/components/ui/table/table-description-cell.tsx
|
|
13592
|
-
import { jsx as
|
|
13787
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
13593
13788
|
function TableDescriptionCell({ text, className, maxLines = 3 }) {
|
|
13594
|
-
return /* @__PURE__ */
|
|
13789
|
+
return /* @__PURE__ */ jsx122("div", { className: "flex-1", children: /* @__PURE__ */ jsx122("div", { className: "flex flex-col justify-center", children: /* @__PURE__ */ jsx122(
|
|
13595
13790
|
"span",
|
|
13596
13791
|
{
|
|
13597
13792
|
className: cn(
|
|
@@ -13610,7 +13805,7 @@ function TableDescriptionCell({ text, className, maxLines = 3 }) {
|
|
|
13610
13805
|
}
|
|
13611
13806
|
|
|
13612
13807
|
// src/components/ui/table/table-timestamp-cell.tsx
|
|
13613
|
-
import { jsx as
|
|
13808
|
+
import { jsx as jsx123, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
13614
13809
|
function formatTimestampValue(timestamp) {
|
|
13615
13810
|
if (timestamp instanceof Date) {
|
|
13616
13811
|
return timestamp.toLocaleString();
|
|
@@ -13634,9 +13829,9 @@ function TableTimestampCell({
|
|
|
13634
13829
|
formatTimestamp = true
|
|
13635
13830
|
}) {
|
|
13636
13831
|
const displayTimestamp = formatTimestamp ? formatTimestampValue(timestamp) : String(timestamp);
|
|
13637
|
-
return /* @__PURE__ */
|
|
13638
|
-
/* @__PURE__ */
|
|
13639
|
-
/* @__PURE__ */
|
|
13832
|
+
return /* @__PURE__ */ jsxs94("div", { className: cn("flex shrink-0 flex-col justify-center", className), children: [
|
|
13833
|
+
/* @__PURE__ */ jsx123("span", { className: "truncate text-ods-text-primary text-h4", children: displayTimestamp }),
|
|
13834
|
+
/* @__PURE__ */ jsx123("span", { className: "truncate text-ods-text-secondary text-h6", children: idLabel ? `${idLabel}: ${id}` : id })
|
|
13640
13835
|
] });
|
|
13641
13836
|
}
|
|
13642
13837
|
|
|
@@ -13645,7 +13840,7 @@ import { useMemo as useMemo12 } from "react";
|
|
|
13645
13840
|
|
|
13646
13841
|
// src/components/ui/query-report-table/query-report-table-header.tsx
|
|
13647
13842
|
import { useRef as useRef17, useState as useState31, useCallback as useCallback11 } from "react";
|
|
13648
|
-
import { jsx as
|
|
13843
|
+
import { jsx as jsx124, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
13649
13844
|
function QueryReportTableHeader({
|
|
13650
13845
|
columns,
|
|
13651
13846
|
columnWidth,
|
|
@@ -13653,7 +13848,7 @@ function QueryReportTableHeader({
|
|
|
13653
13848
|
className
|
|
13654
13849
|
}) {
|
|
13655
13850
|
const isCompact = variant === "compact";
|
|
13656
|
-
return /* @__PURE__ */
|
|
13851
|
+
return /* @__PURE__ */ jsx124("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "border-b border-ods-border py-2" : "", className), children: columns.map((column) => /* @__PURE__ */ jsx124(TruncatedHeaderCell, { value: column, width: columnWidth }, column)) });
|
|
13657
13852
|
}
|
|
13658
13853
|
function TruncatedHeaderCell({ value, width }) {
|
|
13659
13854
|
const textRef = useRef17(null);
|
|
@@ -13664,15 +13859,15 @@ function TruncatedHeaderCell({ value, width }) {
|
|
|
13664
13859
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
13665
13860
|
}
|
|
13666
13861
|
}, []);
|
|
13667
|
-
return /* @__PURE__ */
|
|
13668
|
-
/* @__PURE__ */
|
|
13669
|
-
/* @__PURE__ */
|
|
13862
|
+
return /* @__PURE__ */ jsx124(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs95(Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
13863
|
+
/* @__PURE__ */ jsx124(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx124("div", { className: "flex shrink-0 items-center", style: { width, height: 48 }, children: /* @__PURE__ */ jsx124("div", { ref: textRef, className: "truncate text-ods-text-secondary text-h5", children: value }) }) }),
|
|
13864
|
+
/* @__PURE__ */ jsx124(TooltipContent, { side: "bottom", className: "max-w-xs break-words", children: value })
|
|
13670
13865
|
] }) });
|
|
13671
13866
|
}
|
|
13672
13867
|
|
|
13673
13868
|
// src/components/ui/query-report-table/query-report-table-row.tsx
|
|
13674
13869
|
import { useRef as useRef18, useState as useState32, useCallback as useCallback12 } from "react";
|
|
13675
|
-
import { jsx as
|
|
13870
|
+
import { jsx as jsx125, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
13676
13871
|
function QueryReportTableRow({
|
|
13677
13872
|
row,
|
|
13678
13873
|
columns,
|
|
@@ -13681,22 +13876,22 @@ function QueryReportTableRow({
|
|
|
13681
13876
|
className
|
|
13682
13877
|
}) {
|
|
13683
13878
|
const isCompact = variant === "compact";
|
|
13684
|
-
return /* @__PURE__ */
|
|
13879
|
+
return /* @__PURE__ */ jsx125(
|
|
13685
13880
|
"div",
|
|
13686
13881
|
{
|
|
13687
13882
|
className: cn(
|
|
13688
13883
|
isCompact ? "border-b border-ods-border" : "relative overflow-hidden rounded-[6px] border border-ods-border bg-ods-card",
|
|
13689
13884
|
className
|
|
13690
13885
|
),
|
|
13691
|
-
children: /* @__PURE__ */
|
|
13886
|
+
children: /* @__PURE__ */ jsx125("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: columns.map((column) => {
|
|
13692
13887
|
const value = row[column];
|
|
13693
13888
|
const displayValue = value === null || value === void 0 ? "-" : String(value);
|
|
13694
|
-
return /* @__PURE__ */
|
|
13889
|
+
return /* @__PURE__ */ jsx125(
|
|
13695
13890
|
"div",
|
|
13696
13891
|
{
|
|
13697
13892
|
className: "flex shrink-0 flex-col justify-center overflow-hidden",
|
|
13698
13893
|
style: { width: columnWidth },
|
|
13699
|
-
children: /* @__PURE__ */
|
|
13894
|
+
children: /* @__PURE__ */ jsx125(
|
|
13700
13895
|
TruncatedCell,
|
|
13701
13896
|
{
|
|
13702
13897
|
className: cn("text-ods-text-primary", isCompact ? "text-h6" : "text-h4"),
|
|
@@ -13719,14 +13914,14 @@ function TruncatedCell({ value, className }) {
|
|
|
13719
13914
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
13720
13915
|
}
|
|
13721
13916
|
}, []);
|
|
13722
|
-
return /* @__PURE__ */
|
|
13723
|
-
/* @__PURE__ */
|
|
13724
|
-
/* @__PURE__ */
|
|
13917
|
+
return /* @__PURE__ */ jsx125(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs96(Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
13918
|
+
/* @__PURE__ */ jsx125(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx125("span", { ref: textRef, className: cn("block truncate", className), children: value }) }),
|
|
13919
|
+
/* @__PURE__ */ jsx125(TooltipContent, { side: "top", className: "max-w-xs break-words", children: value })
|
|
13725
13920
|
] }) });
|
|
13726
13921
|
}
|
|
13727
13922
|
|
|
13728
13923
|
// src/components/ui/query-report-table/query-report-table-skeleton.tsx
|
|
13729
|
-
import { jsx as
|
|
13924
|
+
import { jsx as jsx126, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
13730
13925
|
function QueryReportTableSkeleton({
|
|
13731
13926
|
rows,
|
|
13732
13927
|
columns,
|
|
@@ -13735,16 +13930,16 @@ function QueryReportTableSkeleton({
|
|
|
13735
13930
|
className
|
|
13736
13931
|
}) {
|
|
13737
13932
|
const isCompact = variant === "compact";
|
|
13738
|
-
return /* @__PURE__ */
|
|
13739
|
-
/* @__PURE__ */
|
|
13740
|
-
Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */
|
|
13933
|
+
return /* @__PURE__ */ jsxs97("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]", className), children: [
|
|
13934
|
+
/* @__PURE__ */ jsx126("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "border-b border-ods-border py-2" : ""), children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ jsx126("div", { className: "flex shrink-0 items-center", style: { width: columnWidth, height: 48 }, children: /* @__PURE__ */ jsx126("div", { className: "h-4 w-3/4 animate-pulse rounded bg-ods-bg-surface" }) }, `header-${i}`)) }),
|
|
13935
|
+
Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */ jsx126(
|
|
13741
13936
|
"div",
|
|
13742
13937
|
{
|
|
13743
13938
|
className: cn(
|
|
13744
13939
|
"animate-pulse",
|
|
13745
13940
|
isCompact ? "border-b border-ods-border" : "relative overflow-hidden rounded-[6px] border border-ods-border bg-ods-card"
|
|
13746
13941
|
),
|
|
13747
|
-
children: /* @__PURE__ */
|
|
13942
|
+
children: /* @__PURE__ */ jsx126("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ jsx126("div", { className: "shrink-0", style: { width: columnWidth }, children: /* @__PURE__ */ jsx126(
|
|
13748
13943
|
"div",
|
|
13749
13944
|
{
|
|
13750
13945
|
className: cn("rounded bg-ods-bg-surface", isCompact ? "h-4" : "h-5"),
|
|
@@ -13798,7 +13993,7 @@ function exportToCSV(data, columns, filename) {
|
|
|
13798
13993
|
}
|
|
13799
13994
|
|
|
13800
13995
|
// src/components/ui/query-report-table/query-report-table.tsx
|
|
13801
|
-
import { jsx as
|
|
13996
|
+
import { jsx as jsx127, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
13802
13997
|
function QueryReportTable({
|
|
13803
13998
|
title,
|
|
13804
13999
|
data,
|
|
@@ -13837,24 +14032,24 @@ function QueryReportTable({
|
|
|
13837
14032
|
onThumbPointerMove,
|
|
13838
14033
|
onThumbPointerUp
|
|
13839
14034
|
} = useHorizontalScrollbar();
|
|
13840
|
-
return /* @__PURE__ */
|
|
13841
|
-
!isCompact && (title || headerActions || showExport && data.length > 0) && /* @__PURE__ */
|
|
13842
|
-
/* @__PURE__ */
|
|
13843
|
-
/* @__PURE__ */
|
|
14035
|
+
return /* @__PURE__ */ jsxs98("div", { className: cn("flex w-full flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-l)]", className), children: [
|
|
14036
|
+
!isCompact && (title || headerActions || showExport && data.length > 0) && /* @__PURE__ */ jsxs98("div", { className: "flex items-end justify-between pt-[var(--spacing-system-l)]", children: [
|
|
14037
|
+
/* @__PURE__ */ jsx127("h2", { className: "text-ods-text-primary text-h2", children: title }),
|
|
14038
|
+
/* @__PURE__ */ jsxs98("div", { className: "flex items-center gap-[var(--spacing-system-s)]", children: [
|
|
13844
14039
|
headerActions,
|
|
13845
|
-
showExport && data.length > 0 && /* @__PURE__ */
|
|
14040
|
+
showExport && data.length > 0 && /* @__PURE__ */ jsx127(
|
|
13846
14041
|
Button,
|
|
13847
14042
|
{
|
|
13848
14043
|
className: "bg-ods-card max-md:hidden",
|
|
13849
14044
|
variant: "outline",
|
|
13850
|
-
leftIcon: /* @__PURE__ */
|
|
14045
|
+
leftIcon: /* @__PURE__ */ jsx127(Download02Icon, { size: 18, className: "text-ods-text-secondary" }),
|
|
13851
14046
|
onClick: handleExport,
|
|
13852
14047
|
children: "Export CSV"
|
|
13853
14048
|
}
|
|
13854
14049
|
)
|
|
13855
14050
|
] })
|
|
13856
14051
|
] }),
|
|
13857
|
-
loading && /* @__PURE__ */
|
|
14052
|
+
loading && /* @__PURE__ */ jsx127(
|
|
13858
14053
|
QueryReportTableSkeleton,
|
|
13859
14054
|
{
|
|
13860
14055
|
rows: skeletonRows,
|
|
@@ -13863,16 +14058,16 @@ function QueryReportTable({
|
|
|
13863
14058
|
variant
|
|
13864
14059
|
}
|
|
13865
14060
|
),
|
|
13866
|
-
!loading && data.length === 0 && /* @__PURE__ */
|
|
13867
|
-
!loading && data.length > 0 && /* @__PURE__ */
|
|
13868
|
-
!isCompact && thumbRatio > 0 && /* @__PURE__ */
|
|
14061
|
+
!loading && data.length === 0 && /* @__PURE__ */ jsx127(TableEmptyState, { message: emptyMessage }),
|
|
14062
|
+
!loading && data.length > 0 && /* @__PURE__ */ jsxs98("div", { className: "flex flex-col", children: [
|
|
14063
|
+
!isCompact && thumbRatio > 0 && /* @__PURE__ */ jsx127(
|
|
13869
14064
|
"div",
|
|
13870
14065
|
{
|
|
13871
14066
|
ref: trackRef,
|
|
13872
14067
|
className: "relative h-2 cursor-pointer rounded-full bg-ods-border",
|
|
13873
14068
|
onClick: onTrackClick,
|
|
13874
14069
|
onWheel: onTrackWheel,
|
|
13875
|
-
children: /* @__PURE__ */
|
|
14070
|
+
children: /* @__PURE__ */ jsx127(
|
|
13876
14071
|
"div",
|
|
13877
14072
|
{
|
|
13878
14073
|
ref: thumbRef,
|
|
@@ -13889,10 +14084,10 @@ function QueryReportTable({
|
|
|
13889
14084
|
)
|
|
13890
14085
|
}
|
|
13891
14086
|
),
|
|
13892
|
-
/* @__PURE__ */
|
|
13893
|
-
/* @__PURE__ */
|
|
13894
|
-
/* @__PURE__ */
|
|
13895
|
-
/* @__PURE__ */
|
|
14087
|
+
/* @__PURE__ */ jsxs98("div", { className: "relative", children: [
|
|
14088
|
+
/* @__PURE__ */ jsx127("div", { ref: scrollRef, className: cn("overflow-x-auto", tableClassName), onScroll, children: /* @__PURE__ */ jsxs98("div", { style: { minWidth: tableMinWidth }, children: [
|
|
14089
|
+
/* @__PURE__ */ jsx127(QueryReportTableHeader, { columns, columnWidth, variant }),
|
|
14090
|
+
/* @__PURE__ */ jsx127("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]"), children: data.map((row, index) => /* @__PURE__ */ jsx127(
|
|
13896
14091
|
QueryReportTableRow,
|
|
13897
14092
|
{
|
|
13898
14093
|
row,
|
|
@@ -13903,35 +14098,20 @@ function QueryReportTable({
|
|
|
13903
14098
|
index
|
|
13904
14099
|
)) })
|
|
13905
14100
|
] }) }),
|
|
13906
|
-
!isCompact && canScrollLeft && /* @__PURE__ */
|
|
13907
|
-
!isCompact && canScrollRight && /* @__PURE__ */
|
|
14101
|
+
!isCompact && canScrollLeft && /* @__PURE__ */ jsx127("div", { className: "pointer-events-none absolute inset-y-0 left-0 w-10 bg-gradient-to-r from-ods-bg to-transparent" }),
|
|
14102
|
+
!isCompact && canScrollRight && /* @__PURE__ */ jsx127("div", { className: "pointer-events-none absolute inset-y-0 right-0 w-10 bg-gradient-to-l from-ods-bg to-transparent" })
|
|
13908
14103
|
] })
|
|
13909
14104
|
] })
|
|
13910
14105
|
] });
|
|
13911
14106
|
}
|
|
13912
14107
|
|
|
13913
|
-
// src/components/ui/data-table/data-table.tsx
|
|
13914
|
-
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
13915
|
-
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
13916
|
-
var DataTableContext = createContext4(null);
|
|
13917
|
-
function useDataTableContext() {
|
|
13918
|
-
const ctx = useContext4(DataTableContext);
|
|
13919
|
-
if (!ctx) {
|
|
13920
|
-
throw new Error("<DataTable.Header/Body/...> must be used inside <DataTable table={...}>");
|
|
13921
|
-
}
|
|
13922
|
-
return ctx;
|
|
13923
|
-
}
|
|
13924
|
-
function DataTableRoot({ table, children, className }) {
|
|
13925
|
-
return /* @__PURE__ */ jsx126(DataTableContext.Provider, { value: table, children: /* @__PURE__ */ jsx126("div", { className: cn("flex w-full flex-col", className), children }) });
|
|
13926
|
-
}
|
|
13927
|
-
|
|
13928
14108
|
// src/components/ui/data-table/data-table-empty.tsx
|
|
13929
|
-
import { jsx as
|
|
14109
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
13930
14110
|
function DataTableEmpty({ className, ...props }) {
|
|
13931
|
-
return /* @__PURE__ */
|
|
14111
|
+
return /* @__PURE__ */ jsx128(
|
|
13932
14112
|
NoData,
|
|
13933
14113
|
{
|
|
13934
|
-
icon: /* @__PURE__ */
|
|
14114
|
+
icon: /* @__PURE__ */ jsx128(SearchIcon, {}),
|
|
13935
14115
|
title: "No results found",
|
|
13936
14116
|
description: "Try adjusting your search or filters",
|
|
13937
14117
|
...props,
|
|
@@ -13943,131 +14123,6 @@ function DataTableEmpty({ className, ...props }) {
|
|
|
13943
14123
|
// src/components/ui/data-table/data-table-row.tsx
|
|
13944
14124
|
import { flexRender } from "@tanstack/react-table";
|
|
13945
14125
|
import { memo as memo4, useCallback as useCallback13, useRef as useRef19 } from "react";
|
|
13946
|
-
|
|
13947
|
-
// src/components/ui/data-table/utils.ts
|
|
13948
|
-
var BREAKPOINT_ORDER = ["md", "lg", "xl", "2xl"];
|
|
13949
|
-
function getHideClasses2(hideAt) {
|
|
13950
|
-
if (!hideAt) return "";
|
|
13951
|
-
const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
|
|
13952
|
-
if (breakpoints.length === 1) {
|
|
13953
|
-
return `hidden ${breakpoints[0]}:flex`;
|
|
13954
|
-
}
|
|
13955
|
-
const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
|
|
13956
|
-
const hideClasses = breakpoints.map((bp) => `${bp}:hidden`).join(" ");
|
|
13957
|
-
const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
|
|
13958
|
-
return showBreakpoint ? `${hideClasses} ${showBreakpoint}:flex` : hideClasses;
|
|
13959
|
-
}
|
|
13960
|
-
function getHideAtVisibility(hideAt) {
|
|
13961
|
-
const steps = BREAKPOINT_ORDER.length + 1;
|
|
13962
|
-
if (!hideAt) return Array.from({ length: steps }, () => true);
|
|
13963
|
-
const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
|
|
13964
|
-
if (breakpoints.length === 1) {
|
|
13965
|
-
const showFrom = BREAKPOINT_ORDER.indexOf(breakpoints[0]) + 1;
|
|
13966
|
-
return Array.from({ length: steps }, (_, step) => step >= showFrom);
|
|
13967
|
-
}
|
|
13968
|
-
const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
|
|
13969
|
-
const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
|
|
13970
|
-
const visible = [true];
|
|
13971
|
-
for (const bp of BREAKPOINT_ORDER) {
|
|
13972
|
-
let state = visible[visible.length - 1];
|
|
13973
|
-
if (breakpoints.includes(bp)) state = false;
|
|
13974
|
-
if (bp === showBreakpoint) state = true;
|
|
13975
|
-
visible.push(state);
|
|
13976
|
-
}
|
|
13977
|
-
return visible;
|
|
13978
|
-
}
|
|
13979
|
-
function alignJustify(align) {
|
|
13980
|
-
switch (align) {
|
|
13981
|
-
case "center":
|
|
13982
|
-
return "justify-center text-center";
|
|
13983
|
-
case "right":
|
|
13984
|
-
return "justify-end text-right";
|
|
13985
|
-
default:
|
|
13986
|
-
return "justify-start text-left";
|
|
13987
|
-
}
|
|
13988
|
-
}
|
|
13989
|
-
var multiSelectFilterFn = (row, columnId, filterValue) => {
|
|
13990
|
-
const values = filterValue;
|
|
13991
|
-
if (!values || values.length === 0) return true;
|
|
13992
|
-
const cellValue = row.getValue(columnId);
|
|
13993
|
-
return values.some((v) => v === cellValue || String(v) === String(cellValue));
|
|
13994
|
-
};
|
|
13995
|
-
|
|
13996
|
-
// src/components/ui/data-table/data-table-skeleton.tsx
|
|
13997
|
-
import { Fragment as Fragment18, jsx as jsx128, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
13998
|
-
var ROW_HEIGHT_DESKTOP2 = "h-[66px] md:h-[78px]";
|
|
13999
|
-
var ROW_HEIGHT_MOBILE2 = "h-[66px]";
|
|
14000
|
-
var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]";
|
|
14001
|
-
function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassName }) {
|
|
14002
|
-
const table = useDataTableContext();
|
|
14003
|
-
const columns = table.getVisibleFlatColumns();
|
|
14004
|
-
const firstColumnId = columns[0]?.id;
|
|
14005
|
-
return /* @__PURE__ */ jsx128(Fragment18, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs98(
|
|
14006
|
-
"div",
|
|
14007
|
-
{
|
|
14008
|
-
className: cn(
|
|
14009
|
-
"relative animate-pulse overflow-hidden rounded-md border border-ods-border bg-ods-card",
|
|
14010
|
-
// The slot height sits on the card, matching a real row.
|
|
14011
|
-
rowHeightClassName,
|
|
14012
|
-
className
|
|
14013
|
-
),
|
|
14014
|
-
children: [
|
|
14015
|
-
/* @__PURE__ */ jsx128(
|
|
14016
|
-
"div",
|
|
14017
|
-
{
|
|
14018
|
-
className: cn(
|
|
14019
|
-
"hidden py-0 md:flex",
|
|
14020
|
-
ROW_SHELL_CLASSES,
|
|
14021
|
-
rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP2,
|
|
14022
|
-
rowClassName
|
|
14023
|
-
),
|
|
14024
|
-
children: columns.map((column) => {
|
|
14025
|
-
const meta = column.columnDef.meta;
|
|
14026
|
-
return /* @__PURE__ */ jsxs98(
|
|
14027
|
-
"div",
|
|
14028
|
-
{
|
|
14029
|
-
className: cn(
|
|
14030
|
-
"flex shrink-0 flex-col justify-center",
|
|
14031
|
-
meta?.width || "flex-1",
|
|
14032
|
-
// Same responsive hiding the real header and row apply.
|
|
14033
|
-
// Without it a `hideAt` column was drawn in the skeleton and
|
|
14034
|
-
// absent from the loaded table, so below that breakpoint the
|
|
14035
|
-
// remaining columns were sized against a different total and
|
|
14036
|
-
// the whole row re-laid-out the moment data arrived.
|
|
14037
|
-
getHideClasses2(meta?.hideAt)
|
|
14038
|
-
),
|
|
14039
|
-
children: [
|
|
14040
|
-
/* @__PURE__ */ jsx128("div", { className: "mb-[var(--spacing-system-xxs)] h-5 w-3/4 rounded-sm bg-ods-bg-surface" }),
|
|
14041
|
-
index % 2 === 0 && column.id === firstColumnId && /* @__PURE__ */ jsx128("div", { className: "h-4 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
|
|
14042
|
-
]
|
|
14043
|
-
},
|
|
14044
|
-
column.id
|
|
14045
|
-
);
|
|
14046
|
-
})
|
|
14047
|
-
}
|
|
14048
|
-
),
|
|
14049
|
-
/* @__PURE__ */ jsx128(
|
|
14050
|
-
"div",
|
|
14051
|
-
{
|
|
14052
|
-
className: cn(
|
|
14053
|
-
"flex justify-start py-0 md:hidden",
|
|
14054
|
-
ROW_SHELL_CLASSES,
|
|
14055
|
-
rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE2,
|
|
14056
|
-
rowClassName
|
|
14057
|
-
),
|
|
14058
|
-
children: /* @__PURE__ */ jsxs98("div", { className: "flex min-w-0 flex-1 flex-col justify-center py-[var(--spacing-system-sf)]", children: [
|
|
14059
|
-
/* @__PURE__ */ jsx128("div", { className: "mb-[var(--spacing-system-xsf)] h-4 w-3/4 rounded-sm bg-ods-bg-surface" }),
|
|
14060
|
-
/* @__PURE__ */ jsx128("div", { className: "h-3 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
|
|
14061
|
-
] })
|
|
14062
|
-
}
|
|
14063
|
-
)
|
|
14064
|
-
]
|
|
14065
|
-
},
|
|
14066
|
-
index
|
|
14067
|
-
)) });
|
|
14068
|
-
}
|
|
14069
|
-
|
|
14070
|
-
// src/components/ui/data-table/data-table-row.tsx
|
|
14071
14126
|
import { Fragment as Fragment19, jsx as jsx129, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
14072
14127
|
function DataTableRowImpl({
|
|
14073
14128
|
row,
|
|
@@ -14114,7 +14169,7 @@ function DataTableRowImpl({
|
|
|
14114
14169
|
className: cn(
|
|
14115
14170
|
"flex",
|
|
14116
14171
|
ROW_SHELL_CLASSES,
|
|
14117
|
-
rowHeightClassName ? "min-h-0 flex-1 py-0" : compact ? "py-[var(--spacing-system-xsf)]" : autoHeight ? "min-h-[66px] py-[var(--spacing-system-sf)] md:min-h-[78px]" : `py-0 ${
|
|
14172
|
+
rowHeightClassName ? "min-h-0 flex-1 py-0" : compact ? "py-[var(--spacing-system-xsf)]" : autoHeight ? "min-h-[66px] py-[var(--spacing-system-sf)] md:min-h-[78px]" : `py-0 ${ROW_HEIGHT_DESKTOP}`,
|
|
14118
14173
|
hasSubRow && "border-b border-ods-border"
|
|
14119
14174
|
),
|
|
14120
14175
|
children: row.getVisibleCells().map((cell) => {
|
|
@@ -14127,7 +14182,7 @@ function DataTableRowImpl({
|
|
|
14127
14182
|
alignJustify(meta?.align),
|
|
14128
14183
|
meta?.width || "min-w-0 flex-1",
|
|
14129
14184
|
meta?.cellClassName,
|
|
14130
|
-
|
|
14185
|
+
getHideClasses(meta?.hideAt)
|
|
14131
14186
|
),
|
|
14132
14187
|
children: /* @__PURE__ */ jsx129(CellContent, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) })
|
|
14133
14188
|
},
|
|
@@ -14183,7 +14238,7 @@ function CellContent({ children }) {
|
|
|
14183
14238
|
}
|
|
14184
14239
|
|
|
14185
14240
|
// src/components/ui/data-table/data-table-body.tsx
|
|
14186
|
-
import {
|
|
14241
|
+
import { jsx as jsx130, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
14187
14242
|
function DataTableBody({
|
|
14188
14243
|
loading,
|
|
14189
14244
|
emptyMessage,
|
|
@@ -14207,10 +14262,15 @@ function DataTableBody({
|
|
|
14207
14262
|
if (rows.length === 0) {
|
|
14208
14263
|
const empty = emptyState ? /* @__PURE__ */ jsx130(DataTableEmpty, { ...emptyState }) : emptyMessage != null ? /* @__PURE__ */ jsx130(DataTableEmpty, { title: emptyMessage, description: void 0 }) : /* @__PURE__ */ jsx130(DataTableEmpty, {});
|
|
14209
14264
|
if (minRows) {
|
|
14210
|
-
return /* @__PURE__ */
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14265
|
+
return /* @__PURE__ */ jsx130(
|
|
14266
|
+
ReservedEmptyState,
|
|
14267
|
+
{
|
|
14268
|
+
count: minRows,
|
|
14269
|
+
gapClassName: cn("gap-[var(--spacing-system-xsf)]", className),
|
|
14270
|
+
rowHeightClassName,
|
|
14271
|
+
children: empty
|
|
14272
|
+
}
|
|
14273
|
+
);
|
|
14214
14274
|
}
|
|
14215
14275
|
return /* @__PURE__ */ jsx130("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: empty });
|
|
14216
14276
|
}
|
|
@@ -14238,41 +14298,6 @@ function DataTableBody({
|
|
|
14238
14298
|
padCount > 0 && /* @__PURE__ */ jsx130(PlaceholderRows, { count: padCount, rowHeightClassName })
|
|
14239
14299
|
] });
|
|
14240
14300
|
}
|
|
14241
|
-
function PlaceholderRows({ count, rowHeightClassName }) {
|
|
14242
|
-
return /* @__PURE__ */ jsx130(Fragment20, { children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ jsxs100(
|
|
14243
|
-
"div",
|
|
14244
|
-
{
|
|
14245
|
-
className: cn(
|
|
14246
|
-
"pointer-events-none relative overflow-hidden rounded-md border border-transparent",
|
|
14247
|
-
// The stated slot height belongs on the CARD, exactly as a real
|
|
14248
|
-
// row carries it — a real row with a sub-row is taller than its
|
|
14249
|
-
// cells, so reserving the cells' height here left every pad row
|
|
14250
|
-
// short by the sub-row.
|
|
14251
|
-
rowHeightClassName
|
|
14252
|
-
),
|
|
14253
|
-
"aria-hidden": "true",
|
|
14254
|
-
children: [
|
|
14255
|
-
/* @__PURE__ */ jsx130(
|
|
14256
|
-
"div",
|
|
14257
|
-
{
|
|
14258
|
-
className: cn("hidden py-0 md:flex", ROW_SHELL_CLASSES, rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP2)
|
|
14259
|
-
}
|
|
14260
|
-
),
|
|
14261
|
-
/* @__PURE__ */ jsx130(
|
|
14262
|
-
"div",
|
|
14263
|
-
{
|
|
14264
|
-
className: cn(
|
|
14265
|
-
"flex justify-start py-0 md:hidden",
|
|
14266
|
-
ROW_SHELL_CLASSES,
|
|
14267
|
-
rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE2
|
|
14268
|
-
)
|
|
14269
|
-
}
|
|
14270
|
-
)
|
|
14271
|
-
]
|
|
14272
|
-
},
|
|
14273
|
-
`placeholder-${i}`
|
|
14274
|
-
)) });
|
|
14275
|
-
}
|
|
14276
14301
|
|
|
14277
14302
|
// src/components/ui/data-table/data-table-cursor-footer.tsx
|
|
14278
14303
|
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
@@ -14393,7 +14418,7 @@ function DataTableColumnFilter({
|
|
|
14393
14418
|
}
|
|
14394
14419
|
|
|
14395
14420
|
// src/components/ui/data-table/data-table-header.tsx
|
|
14396
|
-
import { Fragment as
|
|
14421
|
+
import { Fragment as Fragment20, jsx as jsx133, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
14397
14422
|
function DataTableHeader({
|
|
14398
14423
|
className,
|
|
14399
14424
|
stickyHeader,
|
|
@@ -14552,7 +14577,7 @@ function HeaderLabel({ header }) {
|
|
|
14552
14577
|
if (typeof headerDef === "string") {
|
|
14553
14578
|
return /* @__PURE__ */ jsx133("span", { className: DATA_TABLE_HEADER_LABEL_CLASS, children: headerDef });
|
|
14554
14579
|
}
|
|
14555
|
-
return /* @__PURE__ */ jsx133(
|
|
14580
|
+
return /* @__PURE__ */ jsx133(Fragment20, { children: flexRender2(headerDef, header.getContext()) });
|
|
14556
14581
|
}
|
|
14557
14582
|
function SortIcon({ sorted }) {
|
|
14558
14583
|
if (sorted === "asc") return /* @__PURE__ */ jsx133(Arrow01UpIcon, { className: "h-4 w-4 text-ods-accent" });
|
|
@@ -14566,7 +14591,7 @@ function resolveHeaderLabel(header) {
|
|
|
14566
14591
|
|
|
14567
14592
|
// src/components/ui/data-table/data-table-infinite-footer.tsx
|
|
14568
14593
|
import { useEffect as useEffect17, useRef as useRef20 } from "react";
|
|
14569
|
-
import { Fragment as
|
|
14594
|
+
import { Fragment as Fragment21, jsx as jsx134, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
14570
14595
|
function DataTableInfiniteFooter({
|
|
14571
14596
|
hasNextPage,
|
|
14572
14597
|
isFetchingNextPage,
|
|
@@ -14592,7 +14617,7 @@ function DataTableInfiniteFooter({
|
|
|
14592
14617
|
observer.observe(sentinel);
|
|
14593
14618
|
return () => observer.disconnect();
|
|
14594
14619
|
}, [hasNextPage, isFetchingNextPage, rootMargin]);
|
|
14595
|
-
return /* @__PURE__ */ jsxs103(
|
|
14620
|
+
return /* @__PURE__ */ jsxs103(Fragment21, { children: [
|
|
14596
14621
|
isFetchingNextPage && /* @__PURE__ */ jsx134(DataTableSkeleton, { rows: skeletonRows }),
|
|
14597
14622
|
hasNextPage && /* @__PURE__ */ jsx134("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" })
|
|
14598
14623
|
] });
|
|
@@ -15210,7 +15235,7 @@ function SearchInput({
|
|
|
15210
15235
|
|
|
15211
15236
|
// src/components/ui/filter-list.tsx
|
|
15212
15237
|
import * as CheckboxPrimitive4 from "@radix-ui/react-checkbox";
|
|
15213
|
-
import { Fragment as
|
|
15238
|
+
import { Fragment as Fragment22 } from "react";
|
|
15214
15239
|
import { jsx as jsx138, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
15215
15240
|
function FilterListItem({
|
|
15216
15241
|
title,
|
|
@@ -15258,7 +15283,7 @@ function FilterListItem({
|
|
|
15258
15283
|
"flex items-start gap-[var(--spacing-system-xxs)] text-h6",
|
|
15259
15284
|
selected ? "text-ods-accent" : "text-ods-text-secondary"
|
|
15260
15285
|
),
|
|
15261
|
-
children: meta.map((item, index) => /* @__PURE__ */ jsxs107(
|
|
15286
|
+
children: meta.map((item, index) => /* @__PURE__ */ jsxs107(Fragment22, { children: [
|
|
15262
15287
|
index > 0 && /* @__PURE__ */ jsx138("span", { "aria-hidden": "true", children: "\u2022" }),
|
|
15263
15288
|
/* @__PURE__ */ jsx138("span", { children: item })
|
|
15264
15289
|
] }, index))
|
|
@@ -16124,7 +16149,7 @@ function FileUpload({
|
|
|
16124
16149
|
// src/components/ui/image-uploader.tsx
|
|
16125
16150
|
import { Loader2 as Loader24 } from "lucide-react";
|
|
16126
16151
|
import { useRef as useRef26, useState as useState39 } from "react";
|
|
16127
|
-
import { Fragment as
|
|
16152
|
+
import { Fragment as Fragment23, jsx as jsx142, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
16128
16153
|
var DEFAULT_MAX_SIZE = 25 * 1024 * 1024;
|
|
16129
16154
|
function formatSize(bytes) {
|
|
16130
16155
|
const mb = bytes / (1024 * 1024);
|
|
@@ -16253,7 +16278,7 @@ function ImageUploader({
|
|
|
16253
16278
|
!hasImage && !interactive && "cursor-not-allowed",
|
|
16254
16279
|
dropzoneClassName
|
|
16255
16280
|
),
|
|
16256
|
-
children: hasImage ? /* @__PURE__ */ jsxs111(
|
|
16281
|
+
children: hasImage ? /* @__PURE__ */ jsxs111(Fragment23, { children: [
|
|
16257
16282
|
/* @__PURE__ */ jsx142("div", { className: "relative min-h-0 w-full flex-1 overflow-hidden rounded-md", children: resolvedValue && /* @__PURE__ */ jsx142(
|
|
16258
16283
|
next_image_default,
|
|
16259
16284
|
{
|
|
@@ -16277,7 +16302,7 @@ function ImageUploader({
|
|
|
16277
16302
|
onRemove && /* @__PURE__ */ jsx142(ActionIconButton, { onClick: onRemove, disabled: !interactive, ariaLabel: "Remove image", children: /* @__PURE__ */ jsx142(TrashIcon, { className: "size-6" }) })
|
|
16278
16303
|
] }),
|
|
16279
16304
|
loading && /* @__PURE__ */ jsx142("div", { className: "absolute inset-0 flex items-center justify-center rounded-md bg-ods-overlay", children: /* @__PURE__ */ jsx142(Loader24, { className: "size-8 animate-spin text-ods-text-on-dark" }) })
|
|
16280
|
-
] }) : loading ? /* @__PURE__ */ jsx142(Loader24, { className: "size-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs111(
|
|
16305
|
+
] }) : loading ? /* @__PURE__ */ jsx142(Loader24, { className: "size-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs111(Fragment23, { children: [
|
|
16281
16306
|
/* @__PURE__ */ jsx142("div", { className: "flex shrink-0 items-center justify-center rounded-full border border-ods-border bg-ods-card p-[var(--spacing-system-s)]", children: /* @__PURE__ */ jsx142(ImagePlusIcon, { className: "size-6 text-ods-text-primary" }) }),
|
|
16282
16307
|
/* @__PURE__ */ jsxs111("div", { className: "flex w-full flex-col items-center text-center", children: [
|
|
16283
16308
|
/* @__PURE__ */ jsx142("p", { className: "text-ods-text-primary text-h4", children: label }),
|
|
@@ -16347,7 +16372,7 @@ var PopoverContent = forwardRef28(({ className, align = "center", sideOffset = 4
|
|
|
16347
16372
|
PopoverContent.displayName = PopoverPrimitive6.Content.displayName;
|
|
16348
16373
|
|
|
16349
16374
|
// src/components/ui/color-preset-select.tsx
|
|
16350
|
-
import { Fragment as
|
|
16375
|
+
import { Fragment as Fragment24, jsx as jsx144, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
16351
16376
|
var TICKET_STATUS_COLOR_PRESETS = [
|
|
16352
16377
|
{ key: "green", label: "Green", color: "#5ea62e" },
|
|
16353
16378
|
{ key: "lime", label: "Lime", color: "#8bc34a" },
|
|
@@ -16500,7 +16525,7 @@ function RgbInputs({ value, onChange }) {
|
|
|
16500
16525
|
const b = next.b ?? rgb.b;
|
|
16501
16526
|
onChange(rgbToHex(r, g, b));
|
|
16502
16527
|
};
|
|
16503
|
-
return /* @__PURE__ */ jsxs112(
|
|
16528
|
+
return /* @__PURE__ */ jsxs112(Fragment24, { children: [
|
|
16504
16529
|
/* @__PURE__ */ jsx144(ChannelInput, { value: rgb.r, min: 0, max: 255, ariaLabel: "Red", onCommit: (r) => update({ r }) }),
|
|
16505
16530
|
/* @__PURE__ */ jsx144(ChannelInput, { value: rgb.g, min: 0, max: 255, ariaLabel: "Green", onCommit: (g) => update({ g }) }),
|
|
16506
16531
|
/* @__PURE__ */ jsx144(ChannelInput, { value: rgb.b, min: 0, max: 255, ariaLabel: "Blue", onCommit: (b) => update({ b }) })
|
|
@@ -16516,7 +16541,7 @@ function HslInputs({ value, onChange }) {
|
|
|
16516
16541
|
const out = hslToRgb(h, s, l);
|
|
16517
16542
|
onChange(rgbToHex(out.r, out.g, out.b));
|
|
16518
16543
|
};
|
|
16519
|
-
return /* @__PURE__ */ jsxs112(
|
|
16544
|
+
return /* @__PURE__ */ jsxs112(Fragment24, { children: [
|
|
16520
16545
|
/* @__PURE__ */ jsx144(ChannelInput, { value: hsl.h, min: 0, max: 360, ariaLabel: "Hue", onCommit: (h) => update({ h }) }),
|
|
16521
16546
|
/* @__PURE__ */ jsx144(ChannelInput, { value: hsl.s, min: 0, max: 100, ariaLabel: "Saturation", onCommit: (s) => update({ s }) }),
|
|
16522
16547
|
/* @__PURE__ */ jsx144(ChannelInput, { value: hsl.l, min: 0, max: 100, ariaLabel: "Lightness", onCommit: (l) => update({ l }) })
|
|
@@ -16586,7 +16611,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
16586
16611
|
}
|
|
16587
16612
|
|
|
16588
16613
|
// src/components/ui/ticket-status-config-row.tsx
|
|
16589
|
-
import { Fragment as
|
|
16614
|
+
import { Fragment as Fragment25, jsx as jsx145, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
16590
16615
|
function TicketStatusConfigRow({
|
|
16591
16616
|
variant,
|
|
16592
16617
|
statusKey,
|
|
@@ -16696,7 +16721,7 @@ function TicketStatusConfigRow({
|
|
|
16696
16721
|
),
|
|
16697
16722
|
children: chip
|
|
16698
16723
|
}
|
|
16699
|
-
) : /* @__PURE__ */ jsxs113(
|
|
16724
|
+
) : /* @__PURE__ */ jsxs113(Fragment25, { children: [
|
|
16700
16725
|
/* @__PURE__ */ jsx145(
|
|
16701
16726
|
"div",
|
|
16702
16727
|
{
|
|
@@ -17010,7 +17035,7 @@ import { useState as useState43 } from "react";
|
|
|
17010
17035
|
|
|
17011
17036
|
// src/components/ui/ticket-note-card.tsx
|
|
17012
17037
|
import { useState as useState42 } from "react";
|
|
17013
|
-
import { Fragment as
|
|
17038
|
+
import { Fragment as Fragment26, jsx as jsx149, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
17014
17039
|
function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
17015
17040
|
const [isEditing, setIsEditing] = useState42(false);
|
|
17016
17041
|
const [editText, setEditText] = useState42(note.text);
|
|
@@ -17068,7 +17093,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
17068
17093
|
children: /* @__PURE__ */ jsx149(XmarkIcon, { className: "size-5" })
|
|
17069
17094
|
}
|
|
17070
17095
|
)
|
|
17071
|
-
] }) : /* @__PURE__ */ jsxs117(
|
|
17096
|
+
] }) : /* @__PURE__ */ jsxs117(Fragment26, { children: [
|
|
17072
17097
|
/* @__PURE__ */ jsx149("p", { className: "text-ods-text-primary text-h4", children: note.text }),
|
|
17073
17098
|
/* @__PURE__ */ jsxs117("p", { className: "truncate text-ods-text-secondary text-h6", title: `${note.authorName} \u2022 ${note.createdAt}`, children: [
|
|
17074
17099
|
note.authorName,
|
|
@@ -17158,7 +17183,7 @@ function TicketNotesSection({
|
|
|
17158
17183
|
}
|
|
17159
17184
|
|
|
17160
17185
|
// src/components/ui/ticket-info-section.tsx
|
|
17161
|
-
import { Fragment as
|
|
17186
|
+
import { Fragment as Fragment27, jsx as jsx151, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
17162
17187
|
function InfoCell({
|
|
17163
17188
|
value,
|
|
17164
17189
|
label,
|
|
@@ -17277,7 +17302,7 @@ function TicketInfoSection({
|
|
|
17277
17302
|
)
|
|
17278
17303
|
] })
|
|
17279
17304
|
] }),
|
|
17280
|
-
expanded && /* @__PURE__ */ jsxs119(
|
|
17305
|
+
expanded && /* @__PURE__ */ jsxs119(Fragment27, { children: [
|
|
17281
17306
|
createdAt && /* @__PURE__ */ jsx151("div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ jsx151(InfoCell, { value: createdAt, label: "Created" }) }),
|
|
17282
17307
|
/* @__PURE__ */ jsxs119("div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
17283
17308
|
description && /* @__PURE__ */ jsx151(SimpleMarkdownRenderer, { content: description }),
|
|
@@ -17828,7 +17853,7 @@ function ArrayEntryManager({
|
|
|
17828
17853
|
}
|
|
17829
17854
|
|
|
17830
17855
|
// src/components/features/auth/account-details-fields.tsx
|
|
17831
|
-
import { Fragment as
|
|
17856
|
+
import { Fragment as Fragment28, jsx as jsx160, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
17832
17857
|
function AccountDetailsFields({
|
|
17833
17858
|
firstName,
|
|
17834
17859
|
lastName,
|
|
@@ -17908,12 +17933,12 @@ function AccountDetailsFields({
|
|
|
17908
17933
|
)
|
|
17909
17934
|
];
|
|
17910
17935
|
if (layout === "stacked") {
|
|
17911
|
-
return /* @__PURE__ */ jsxs125(
|
|
17936
|
+
return /* @__PURE__ */ jsxs125(Fragment28, { children: [
|
|
17912
17937
|
names,
|
|
17913
17938
|
passwords
|
|
17914
17939
|
] });
|
|
17915
17940
|
}
|
|
17916
|
-
return /* @__PURE__ */ jsxs125(
|
|
17941
|
+
return /* @__PURE__ */ jsxs125(Fragment28, { children: [
|
|
17917
17942
|
/* @__PURE__ */ jsx160("div", { className: "grid grid-cols-2 gap-[var(--spacing-system-l)]", children: names }),
|
|
17918
17943
|
/* @__PURE__ */ jsx160("div", { className: "grid grid-cols-2 gap-[var(--spacing-system-l)]", children: passwords })
|
|
17919
17944
|
] });
|
|
@@ -18095,7 +18120,7 @@ function SsoProviderButtons({
|
|
|
18095
18120
|
}
|
|
18096
18121
|
|
|
18097
18122
|
// src/components/features/auth/complete-account-form.tsx
|
|
18098
|
-
import { Fragment as
|
|
18123
|
+
import { Fragment as Fragment29, jsx as jsx167, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
18099
18124
|
function CompleteAccountForm({
|
|
18100
18125
|
firstName,
|
|
18101
18126
|
lastName,
|
|
@@ -18140,7 +18165,7 @@ function CompleteAccountForm({
|
|
|
18140
18165
|
/* @__PURE__ */ jsx167("h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: title }),
|
|
18141
18166
|
/* @__PURE__ */ jsx167("p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18142
18167
|
] }),
|
|
18143
|
-
ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ jsxs130(
|
|
18168
|
+
ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ jsxs130(Fragment29, { children: [
|
|
18144
18169
|
/* @__PURE__ */ jsx167(
|
|
18145
18170
|
SsoProviderButtons,
|
|
18146
18171
|
{
|
|
@@ -18217,7 +18242,7 @@ function TermsAgreementLabel({ termsUrl = "#", privacyPolicyUrl = "#" }) {
|
|
|
18217
18242
|
}
|
|
18218
18243
|
|
|
18219
18244
|
// src/components/features/auth/create-organization-form.tsx
|
|
18220
|
-
import { Fragment as
|
|
18245
|
+
import { Fragment as Fragment30, jsx as jsx169, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
18221
18246
|
function CreateOrganizationForm({
|
|
18222
18247
|
email,
|
|
18223
18248
|
organizationName,
|
|
@@ -18386,7 +18411,7 @@ function CreateOrganizationForm({
|
|
|
18386
18411
|
}
|
|
18387
18412
|
)
|
|
18388
18413
|
] }),
|
|
18389
|
-
hasSso && /* @__PURE__ */ jsxs132(
|
|
18414
|
+
hasSso && /* @__PURE__ */ jsxs132(Fragment30, { children: [
|
|
18390
18415
|
/* @__PURE__ */ jsx169(LabeledDivider, { label: dividerLabel }),
|
|
18391
18416
|
/* @__PURE__ */ jsx169(
|
|
18392
18417
|
SsoProviderButtons,
|
|
@@ -21219,7 +21244,7 @@ var MediaSkeleton = {
|
|
|
21219
21244
|
};
|
|
21220
21245
|
|
|
21221
21246
|
// src/components/loading/card-skeleton.tsx
|
|
21222
|
-
import { Fragment as
|
|
21247
|
+
import { Fragment as Fragment31, jsx as jsx196, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
21223
21248
|
function CardSkeleton({
|
|
21224
21249
|
className,
|
|
21225
21250
|
containerClassName,
|
|
@@ -21284,7 +21309,7 @@ function VendorCardContent({ showMetadata }) {
|
|
|
21284
21309
|
] });
|
|
21285
21310
|
}
|
|
21286
21311
|
function BlogCardContent({ showActions, showMetadata }) {
|
|
21287
|
-
return /* @__PURE__ */ jsxs153(
|
|
21312
|
+
return /* @__PURE__ */ jsxs153(Fragment31, { children: [
|
|
21288
21313
|
/* @__PURE__ */ jsx196("div", { className: "blog-card-image-container relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: /* @__PURE__ */ jsx196(MediaSkeleton.CardImage, {}) }),
|
|
21289
21314
|
/* @__PURE__ */ jsxs153("div", { className: "flex flex-grow flex-col p-4", children: [
|
|
21290
21315
|
/* @__PURE__ */ jsx196("div", { className: "mb-3 flex min-h-[50.4px] items-center md:min-h-[56px] lg:min-h-[61.6px]", children: /* @__PURE__ */ jsxs153("div", { className: "w-full space-y-1", children: [
|
|
@@ -21375,7 +21400,7 @@ function CardSkeletonGrid({
|
|
|
21375
21400
|
}
|
|
21376
21401
|
|
|
21377
21402
|
// src/components/loading/page-layout-skeleton.tsx
|
|
21378
|
-
import { Fragment as
|
|
21403
|
+
import { Fragment as Fragment32, jsx as jsx197, jsxs as jsxs154 } from "react/jsx-runtime";
|
|
21379
21404
|
function AnnouncementBarSkeleton() {
|
|
21380
21405
|
return /* @__PURE__ */ jsx197("div", { className: "relative w-full animate-pulse bg-ods-skeleton", children: /* @__PURE__ */ jsx197("div", { className: "relative flex w-full flex-row items-center", children: /* @__PURE__ */ jsxs154("div", { className: "relative box-border flex w-full flex-row items-center justify-start gap-4 py-3 pl-4 pr-12 md:gap-6 md:py-4 md:pl-6 md:pr-16", children: [
|
|
21381
21406
|
/* @__PURE__ */ jsx197("div", { className: "relative h-6 w-6 shrink-0 rounded bg-ods-border md:h-8 md:w-8" }),
|
|
@@ -21490,10 +21515,10 @@ function TwoColumnLayoutSkeleton({
|
|
|
21490
21515
|
sidebarPosition === "right" && "lg:grid-cols-[1fr_320px]",
|
|
21491
21516
|
className
|
|
21492
21517
|
),
|
|
21493
|
-
children: sidebarPosition === "left" ? /* @__PURE__ */ jsxs154(
|
|
21518
|
+
children: sidebarPosition === "left" ? /* @__PURE__ */ jsxs154(Fragment32, { children: [
|
|
21494
21519
|
/* @__PURE__ */ jsx197("aside", { className: "order-2 lg:order-1", children: sidebar }),
|
|
21495
21520
|
/* @__PURE__ */ jsx197("main", { className: "order-1 lg:order-2", children: main })
|
|
21496
|
-
] }) : /* @__PURE__ */ jsxs154(
|
|
21521
|
+
] }) : /* @__PURE__ */ jsxs154(Fragment32, { children: [
|
|
21497
21522
|
/* @__PURE__ */ jsx197("main", { className: "order-1", children: main }),
|
|
21498
21523
|
/* @__PURE__ */ jsx197("aside", { className: "order-2", children: sidebar })
|
|
21499
21524
|
] })
|
|
@@ -22323,7 +22348,7 @@ function useThemeAware() {
|
|
|
22323
22348
|
}
|
|
22324
22349
|
|
|
22325
22350
|
// src/components/dynamic-skeleton.tsx
|
|
22326
|
-
import { Fragment as
|
|
22351
|
+
import { Fragment as Fragment33, jsx as jsx207, jsxs as jsxs164 } from "react/jsx-runtime";
|
|
22327
22352
|
var sizePresets = {
|
|
22328
22353
|
sm: { width: "4rem", height: "1rem" },
|
|
22329
22354
|
md: { width: "8rem", height: "1.5rem" },
|
|
@@ -22504,7 +22529,7 @@ function PlatformSkeletonContainer({
|
|
|
22504
22529
|
}) {
|
|
22505
22530
|
const { platform } = useThemeAware();
|
|
22506
22531
|
if (!isLoading) {
|
|
22507
|
-
return /* @__PURE__ */ jsx207(
|
|
22532
|
+
return /* @__PURE__ */ jsx207(Fragment33, { children });
|
|
22508
22533
|
}
|
|
22509
22534
|
const SkeletonComponent = SkeletonPresets[skeletonType];
|
|
22510
22535
|
return /* @__PURE__ */ jsx207("div", { className: `platform-skeleton skeleton-${platform}`, children: /* @__PURE__ */ jsx207(SkeletonComponent, { ...skeletonProps }) });
|
|
@@ -22691,7 +22716,7 @@ function DeviceCardSkeletonGrid({ count = 12, className }) {
|
|
|
22691
22716
|
}
|
|
22692
22717
|
|
|
22693
22718
|
// src/components/features/push-button-selector.tsx
|
|
22694
|
-
import { Fragment as
|
|
22719
|
+
import { Fragment as Fragment34, jsx as jsx211, jsxs as jsxs167 } from "react/jsx-runtime";
|
|
22695
22720
|
function PushButtonSelectorSkeleton({ count = 3, hasTitle }) {
|
|
22696
22721
|
return /* @__PURE__ */ jsxs167("div", { className: "space-y-3", role: "status", "aria-label": "Loading options", children: [
|
|
22697
22722
|
hasTitle && /* @__PURE__ */ jsx211(UnifiedSkeleton, { className: "h-5 w-20", "aria-label": "Loading title" }),
|
|
@@ -22865,9 +22890,9 @@ function PushButtonSelector({
|
|
|
22865
22890
|
] });
|
|
22866
22891
|
};
|
|
22867
22892
|
const framedSkeletonCount = lazyLoad ? Math.max(skeletonCount, 4) : skeletonCount;
|
|
22868
|
-
const listContent = isLoading ? /* @__PURE__ */ jsx211(PushButtonSelectorSkeleton, { count: framedSkeletonCount }) : error ? /* @__PURE__ */ jsx211(PushButtonSelectorError, { message: error }) : /* @__PURE__ */ jsxs167(
|
|
22893
|
+
const listContent = isLoading ? /* @__PURE__ */ jsx211(PushButtonSelectorSkeleton, { count: framedSkeletonCount }) : error ? /* @__PURE__ */ jsx211(PushButtonSelectorError, { message: error }) : /* @__PURE__ */ jsxs167(Fragment34, { children: [
|
|
22869
22894
|
options.length === 0 && emptyMessage !== void 0 ? /* @__PURE__ */ jsx211("div", { className: "text-ods-text-secondary text-h6", children: emptyMessage }) : renderOptionsContent(),
|
|
22870
|
-
lazyLoad ? /* @__PURE__ */ jsxs167(
|
|
22895
|
+
lazyLoad ? /* @__PURE__ */ jsxs167(Fragment34, { children: [
|
|
22871
22896
|
/* @__PURE__ */ jsx211("div", { ref: sentinelRef }),
|
|
22872
22897
|
lazyLoad.isFetchingMore ? /* @__PURE__ */ jsx211("div", { className: "py-2 text-center text-ods-text-secondary text-h6", children: "Loading more\u2026" }) : null
|
|
22873
22898
|
] }) : null
|
|
@@ -23237,7 +23262,7 @@ var ConfidenceBadge = ({
|
|
|
23237
23262
|
};
|
|
23238
23263
|
|
|
23239
23264
|
// src/components/features/seo-editor-preview.tsx
|
|
23240
|
-
import { Fragment as
|
|
23265
|
+
import { Fragment as Fragment35, jsx as jsx215, jsxs as jsxs171 } from "react/jsx-runtime";
|
|
23241
23266
|
var SEO_MEDIA_BOX_HEIGHT = "h-[280px]";
|
|
23242
23267
|
function SEOEditorPreview({
|
|
23243
23268
|
seoTitle,
|
|
@@ -23294,7 +23319,7 @@ function SEOEditorPreview({
|
|
|
23294
23319
|
{
|
|
23295
23320
|
label: "SEO Title",
|
|
23296
23321
|
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${SEO_TITLE_MAX_LENGTH})` : null,
|
|
23297
|
-
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ jsxs171(
|
|
23322
|
+
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ jsxs171(Fragment35, { children: [
|
|
23298
23323
|
/* @__PURE__ */ jsx215(AIGeneratedBadge, {}),
|
|
23299
23324
|
/* @__PURE__ */ jsx215(ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
23300
23325
|
] }) : void 0,
|
|
@@ -23333,7 +23358,7 @@ function SEOEditorPreview({
|
|
|
23333
23358
|
Field,
|
|
23334
23359
|
{
|
|
23335
23360
|
label: "SEO Keywords",
|
|
23336
|
-
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ jsxs171(
|
|
23361
|
+
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ jsxs171(Fragment35, { children: [
|
|
23337
23362
|
/* @__PURE__ */ jsx215(AIGeneratedBadge, {}),
|
|
23338
23363
|
/* @__PURE__ */ jsx215(
|
|
23339
23364
|
ConfidenceBadge,
|
|
@@ -23366,7 +23391,7 @@ function SEOEditorPreview({
|
|
|
23366
23391
|
{
|
|
23367
23392
|
label: "SEO Description",
|
|
23368
23393
|
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
23369
|
-
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ jsxs171(
|
|
23394
|
+
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ jsxs171(Fragment35, { children: [
|
|
23370
23395
|
/* @__PURE__ */ jsx215(AIGeneratedBadge, {}),
|
|
23371
23396
|
/* @__PURE__ */ jsx215(
|
|
23372
23397
|
ConfidenceBadge,
|
|
@@ -23457,7 +23482,7 @@ function SEOEditorPreview({
|
|
|
23457
23482
|
"flex cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-ods-border bg-ods-bg-hover transition-colors hover:border-ods-accent"
|
|
23458
23483
|
),
|
|
23459
23484
|
onClick: () => onOgImageUpload && fileInputRef?.click(),
|
|
23460
|
-
children: isUploading ? /* @__PURE__ */ jsx215(Loader28, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs171(
|
|
23485
|
+
children: isUploading ? /* @__PURE__ */ jsx215(Loader28, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs171(Fragment35, { children: [
|
|
23461
23486
|
/* @__PURE__ */ jsx215(Upload4, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
|
|
23462
23487
|
/* @__PURE__ */ jsx215("span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
23463
23488
|
] })
|
|
@@ -24046,7 +24071,7 @@ function VideoBitesDisplay({
|
|
|
24046
24071
|
// src/components/features/walkthrough-video.tsx
|
|
24047
24072
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
24048
24073
|
import { useCallback as useCallback20, useEffect as useEffect30, useLayoutEffect as useLayoutEffect2, useMemo as useMemo19, useRef as useRef33, useState as useState58 } from "react";
|
|
24049
|
-
import { Fragment as
|
|
24074
|
+
import { Fragment as Fragment36, jsx as jsx223, jsxs as jsxs177 } from "react/jsx-runtime";
|
|
24050
24075
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
24051
24076
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
24052
24077
|
const time = live?.getCurrentTime() ?? 0;
|
|
@@ -24596,7 +24621,7 @@ function WalkthroughVideo({
|
|
|
24596
24621
|
]
|
|
24597
24622
|
}
|
|
24598
24623
|
);
|
|
24599
|
-
return /* @__PURE__ */ jsxs177(
|
|
24624
|
+
return /* @__PURE__ */ jsxs177(Fragment36, { children: [
|
|
24600
24625
|
showCard && (inline ? (
|
|
24601
24626
|
// No wrapper: a positioning / z-index / safe-area shell around an
|
|
24602
24627
|
// in-flow block is exactly what stops it sizing to its container.
|
|
@@ -26089,7 +26114,7 @@ function ViewToggle({
|
|
|
26089
26114
|
// src/components/features/policy-configuration-panel.tsx
|
|
26090
26115
|
import { ChevronDown as ChevronDown8, Shield } from "lucide-react";
|
|
26091
26116
|
import { useState as useState61 } from "react";
|
|
26092
|
-
import { Fragment as
|
|
26117
|
+
import { Fragment as Fragment37, jsx as jsx242, jsxs as jsxs192 } from "react/jsx-runtime";
|
|
26093
26118
|
var approvalLevelLabels = {
|
|
26094
26119
|
ALLOW: "Allow",
|
|
26095
26120
|
ASK_USER: "Ask User",
|
|
@@ -26155,7 +26180,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
26155
26180
|
var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
|
|
26156
26181
|
const { innerRef, containerStyle } = useCollapsible({ expanded: isExpanded, durationMs: 300 });
|
|
26157
26182
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
26158
|
-
return /* @__PURE__ */ jsxs192(
|
|
26183
|
+
return /* @__PURE__ */ jsxs192(Fragment37, { children: [
|
|
26159
26184
|
/* @__PURE__ */ jsxs192(
|
|
26160
26185
|
"div",
|
|
26161
26186
|
{
|
|
@@ -26296,7 +26321,7 @@ PolicyConfigurationPanel.displayName = "PolicyConfigurationPanel";
|
|
|
26296
26321
|
// src/components/features/waitlist-form.tsx
|
|
26297
26322
|
import { getCountries as getCountries2 } from "libphonenumber-js";
|
|
26298
26323
|
import { useEffect as useEffect31, useState as useState62 } from "react";
|
|
26299
|
-
import { Fragment as
|
|
26324
|
+
import { Fragment as Fragment38, jsx as jsx243, jsxs as jsxs193 } from "react/jsx-runtime";
|
|
26300
26325
|
function WaitlistForm({
|
|
26301
26326
|
id = "waitlist-form",
|
|
26302
26327
|
className,
|
|
@@ -26457,7 +26482,7 @@ function WaitlistForm({
|
|
|
26457
26482
|
error: showConsentError ? "Please agree to SMS notifications to continue." : void 0,
|
|
26458
26483
|
disabled: isSubmitting,
|
|
26459
26484
|
label: smsCheckboxLabel,
|
|
26460
|
-
description: /* @__PURE__ */ jsxs193(
|
|
26485
|
+
description: /* @__PURE__ */ jsxs193(Fragment38, { children: [
|
|
26461
26486
|
consentText,
|
|
26462
26487
|
" View our ",
|
|
26463
26488
|
/* @__PURE__ */ jsx243(PolicyLink, { href: termsOfServiceUrl || "#", children: "Terms of Service" }),
|
|
@@ -27331,7 +27356,7 @@ function NotificationTile({
|
|
|
27331
27356
|
}
|
|
27332
27357
|
|
|
27333
27358
|
// src/components/features/notifications/notification-drawer.tsx
|
|
27334
|
-
import { Fragment as
|
|
27359
|
+
import { Fragment as Fragment39, jsx as jsx247, jsxs as jsxs196 } from "react/jsx-runtime";
|
|
27335
27360
|
function NotificationDrawer({
|
|
27336
27361
|
className,
|
|
27337
27362
|
liveDurationMs,
|
|
@@ -27364,7 +27389,7 @@ function NotificationDrawer({
|
|
|
27364
27389
|
} = ctx;
|
|
27365
27390
|
const renderTile = renderTileProp ?? ctxRenderTile;
|
|
27366
27391
|
const unreadNotifications = notifications.filter((n) => !n.read);
|
|
27367
|
-
const content = /* @__PURE__ */ jsxs196(
|
|
27392
|
+
const content = /* @__PURE__ */ jsxs196(Fragment39, { children: [
|
|
27368
27393
|
/* @__PURE__ */ jsx247("div", { className: "px-[var(--spacing-system-m)] pt-[var(--spacing-system-m)]", children: /* @__PURE__ */ jsx247(
|
|
27369
27394
|
DrawerTitle,
|
|
27370
27395
|
{
|
|
@@ -27476,7 +27501,7 @@ function DrawerScrollList({
|
|
|
27476
27501
|
{
|
|
27477
27502
|
ref: scrollRef,
|
|
27478
27503
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
27479
|
-
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ jsx247(EmptyState, {}) : /* @__PURE__ */ jsxs196(
|
|
27504
|
+
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ jsx247(EmptyState, {}) : /* @__PURE__ */ jsxs196(Fragment39, { children: [
|
|
27480
27505
|
unreadNotifications.map((n) => {
|
|
27481
27506
|
const custom = renderTile?.(n, { onComplete, onSettle, liveDurationMs });
|
|
27482
27507
|
if (custom) return /* @__PURE__ */ jsx247("div", { children: custom }, n.id);
|
|
@@ -27498,7 +27523,7 @@ function DrawerScrollList({
|
|
|
27498
27523
|
);
|
|
27499
27524
|
}
|
|
27500
27525
|
function DrawerLoadingTiles() {
|
|
27501
|
-
return /* @__PURE__ */ jsxs196(
|
|
27526
|
+
return /* @__PURE__ */ jsxs196(Fragment39, { children: [
|
|
27502
27527
|
/* @__PURE__ */ jsx247(
|
|
27503
27528
|
"div",
|
|
27504
27529
|
{
|
|
@@ -27728,7 +27753,7 @@ function approvalMetaToBatchData(approval) {
|
|
|
27728
27753
|
}
|
|
27729
27754
|
|
|
27730
27755
|
// src/components/features/notifications/approval-request-notification-tile.tsx
|
|
27731
|
-
import { Fragment as
|
|
27756
|
+
import { Fragment as Fragment40, jsx as jsx249, jsxs as jsxs197 } from "react/jsx-runtime";
|
|
27732
27757
|
function ApprovalRequestNotificationTile({
|
|
27733
27758
|
notification,
|
|
27734
27759
|
onApprove,
|
|
@@ -27778,7 +27803,7 @@ function ApprovalRequestNotificationTile({
|
|
|
27778
27803
|
className,
|
|
27779
27804
|
paused: pinned || processing,
|
|
27780
27805
|
actions: /* @__PURE__ */ jsxs197("div", { className: "flex w-full items-center gap-[var(--spacing-system-xs)]", children: [
|
|
27781
|
-
status === "pending" ? /* @__PURE__ */ jsxs197(
|
|
27806
|
+
status === "pending" ? /* @__PURE__ */ jsxs197(Fragment40, { children: [
|
|
27782
27807
|
/* @__PURE__ */ jsx249(
|
|
27783
27808
|
Button,
|
|
27784
27809
|
{
|
|
@@ -28263,7 +28288,7 @@ function HeaderButton({
|
|
|
28263
28288
|
}
|
|
28264
28289
|
|
|
28265
28290
|
// src/components/features/time-tracker/time-tracker-header-button.tsx
|
|
28266
|
-
import { Fragment as
|
|
28291
|
+
import { Fragment as Fragment41, jsx as jsx254, jsxs as jsxs200 } from "react/jsx-runtime";
|
|
28267
28292
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
28268
28293
|
const ctx = useOptionalTimeTracker();
|
|
28269
28294
|
const elapsedLabel = useTrackerClock({
|
|
@@ -28308,7 +28333,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28308
28333
|
isActive && "md:w-auto md:min-w-[144px] md:justify-center md:gap-[var(--spacing-system-xsf)] md:px-[var(--spacing-system-sf)]",
|
|
28309
28334
|
className
|
|
28310
28335
|
),
|
|
28311
|
-
icon: /* @__PURE__ */ jsxs200(
|
|
28336
|
+
icon: /* @__PURE__ */ jsxs200(Fragment41, { children: [
|
|
28312
28337
|
/* @__PURE__ */ jsx254(
|
|
28313
28338
|
ClockHistoryIcon,
|
|
28314
28339
|
{
|
|
@@ -28363,7 +28388,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28363
28388
|
import { combine as combine3 } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
28364
28389
|
import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
28365
28390
|
import { preventUnhandled } from "@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled";
|
|
28366
|
-
import { Fragment as
|
|
28391
|
+
import { Fragment as Fragment44, useCallback as useCallback27, useEffect as useEffect42, useMemo as useMemo23, useRef as useRef42, useState as useState76 } from "react";
|
|
28367
28392
|
import { createPortal } from "react-dom";
|
|
28368
28393
|
|
|
28369
28394
|
// src/utils/auto-scroll-ancestors.ts
|
|
@@ -28750,7 +28775,7 @@ function hasMoveSettled(columns, move) {
|
|
|
28750
28775
|
}
|
|
28751
28776
|
|
|
28752
28777
|
// src/components/features/board/ticket-card.tsx
|
|
28753
|
-
import { Fragment as
|
|
28778
|
+
import { Fragment as Fragment42, jsx as jsx257, jsxs as jsxs203 } from "react/jsx-runtime";
|
|
28754
28779
|
var PRIORITY_COLOR_CLASS = {
|
|
28755
28780
|
low: "text-ods-text-secondary",
|
|
28756
28781
|
medium: "text-ods-info",
|
|
@@ -28811,7 +28836,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
28811
28836
|
] }) : null;
|
|
28812
28837
|
const timestampLabel = ticket.createdAt ? formatTicketRelativeTime(ticket.createdAt) : null;
|
|
28813
28838
|
const tooltipLabel = ticket.createdAt ? formatTicketFullTimestamp(ticket.createdAt) : null;
|
|
28814
|
-
return /* @__PURE__ */ jsxs203(
|
|
28839
|
+
return /* @__PURE__ */ jsxs203(Fragment42, { children: [
|
|
28815
28840
|
/* @__PURE__ */ jsxs203("div", { className: "flex items-start gap-[var(--spacing-system-sf)]", children: [
|
|
28816
28841
|
/* @__PURE__ */ jsxs203("div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-zero)]", title: ticket.title, children: [
|
|
28817
28842
|
/* @__PURE__ */ jsx257("p", { className: "truncate text-ods-text-primary text-h3", children: ticket.title }),
|
|
@@ -29103,7 +29128,7 @@ var TicketCardSkeleton = forwardRef31(
|
|
|
29103
29128
|
TicketCardSkeleton.displayName = "TicketCardSkeleton";
|
|
29104
29129
|
|
|
29105
29130
|
// src/components/features/board/board-column.tsx
|
|
29106
|
-
import { Fragment as
|
|
29131
|
+
import { Fragment as Fragment43, jsx as jsx259, jsxs as jsxs205 } from "react/jsx-runtime";
|
|
29107
29132
|
var BoardColumn = memo6(function BoardColumnImpl({
|
|
29108
29133
|
column,
|
|
29109
29134
|
collapsed = false,
|
|
@@ -29181,7 +29206,7 @@ var BoardColumn = memo6(function BoardColumnImpl({
|
|
|
29181
29206
|
onArchive: !collapsed && column.archivable && onArchive ? () => onArchive(column.id) : void 0
|
|
29182
29207
|
}
|
|
29183
29208
|
),
|
|
29184
|
-
!collapsed && /* @__PURE__ */ jsxs205(
|
|
29209
|
+
!collapsed && /* @__PURE__ */ jsxs205(Fragment43, { children: [
|
|
29185
29210
|
/* @__PURE__ */ jsx259("div", { "aria-hidden": true, className: "-mx-[var(--spacing-system-sf)] h-px shrink-0 bg-ods-border" }),
|
|
29186
29211
|
/* @__PURE__ */ jsx259(
|
|
29187
29212
|
ColumnBody,
|
|
@@ -29276,7 +29301,7 @@ function ColumnBody({
|
|
|
29276
29301
|
);
|
|
29277
29302
|
}
|
|
29278
29303
|
function SkeletonStack({ count = 4 }) {
|
|
29279
|
-
return /* @__PURE__ */ jsx259(
|
|
29304
|
+
return /* @__PURE__ */ jsx259(Fragment43, { children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx259(TicketCardSkeleton, {}, `skeleton-${i}`)) });
|
|
29280
29305
|
}
|
|
29281
29306
|
function EmptyState2({ columnId, touchMode }) {
|
|
29282
29307
|
const aim = useDropAim();
|
|
@@ -29671,7 +29696,7 @@ function DragBoard({
|
|
|
29671
29696
|
const joinLeft = !!(column.system && prev?.system);
|
|
29672
29697
|
const joinRight = !!(column.system && next?.system);
|
|
29673
29698
|
const showGap = i > 0 && !joinLeft;
|
|
29674
|
-
return /* @__PURE__ */ jsxs206(
|
|
29699
|
+
return /* @__PURE__ */ jsxs206(Fragment44, { children: [
|
|
29675
29700
|
showGap && /* @__PURE__ */ jsx261("div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
29676
29701
|
/* @__PURE__ */ jsx261(
|
|
29677
29702
|
BoardColumn,
|
|
@@ -30473,6 +30498,15 @@ export {
|
|
|
30473
30498
|
ListLoader,
|
|
30474
30499
|
CursorPagination,
|
|
30475
30500
|
CursorPaginationSimple,
|
|
30501
|
+
useDataTableContext,
|
|
30502
|
+
DataTableRoot,
|
|
30503
|
+
getHideClasses,
|
|
30504
|
+
alignJustify,
|
|
30505
|
+
multiSelectFilterFn,
|
|
30506
|
+
ROW_HEIGHT_DESKTOP,
|
|
30507
|
+
ROW_HEIGHT_MOBILE,
|
|
30508
|
+
ROW_SHELL_CLASSES,
|
|
30509
|
+
DataTableSkeleton,
|
|
30476
30510
|
TableEmptyState,
|
|
30477
30511
|
DynamicThemeProvider,
|
|
30478
30512
|
useDynamicTheme,
|
|
@@ -30677,16 +30711,7 @@ export {
|
|
|
30677
30711
|
deriveColumns,
|
|
30678
30712
|
exportToCSV,
|
|
30679
30713
|
QueryReportTable,
|
|
30680
|
-
useDataTableContext,
|
|
30681
|
-
DataTableRoot,
|
|
30682
30714
|
DataTableEmpty,
|
|
30683
|
-
getHideClasses2 as getHideClasses,
|
|
30684
|
-
alignJustify,
|
|
30685
|
-
multiSelectFilterFn,
|
|
30686
|
-
ROW_HEIGHT_DESKTOP2 as ROW_HEIGHT_DESKTOP,
|
|
30687
|
-
ROW_HEIGHT_MOBILE2 as ROW_HEIGHT_MOBILE,
|
|
30688
|
-
ROW_SHELL_CLASSES,
|
|
30689
|
-
DataTableSkeleton,
|
|
30690
30715
|
DataTableRow,
|
|
30691
30716
|
DataTableBody,
|
|
30692
30717
|
DataTableCursorFooter,
|
|
@@ -30741,4 +30766,4 @@ export {
|
|
|
30741
30766
|
LazyMount,
|
|
30742
30767
|
IconTile
|
|
30743
30768
|
};
|
|
30744
|
-
//# sourceMappingURL=chunk-
|
|
30769
|
+
//# sourceMappingURL=chunk-GHYFVT52.js.map
|