@jmruthers/pace-core 0.2.5 → 0.2.7
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/{DataTable-BHlzyKZP.d.ts → DataTable-C1AEm9Cx.d.ts} +1 -1
- package/dist/{DataTable-GEY5U7OI.js → DataTable-EEUDXPE5.js} +2 -8
- package/dist/{api-T6CBS7IO.js → api-ETQ6YJ3C.js} +2 -3
- package/dist/{chunk-DY5E3AT7.js → chunk-BEZRLNK3.js} +13 -3
- package/dist/chunk-BEZRLNK3.js.map +1 -0
- package/dist/{chunk-ANE4PDC2.js → chunk-C5G2A4PO.js} +159 -6
- package/dist/chunk-C5G2A4PO.js.map +1 -0
- package/dist/{chunk-WYB6MBZA.js → chunk-EWKPTNPO.js} +579 -973
- package/dist/chunk-EWKPTNPO.js.map +1 -0
- package/dist/{chunk-TMRLB2LA.js → chunk-HEMJ4SUJ.js} +2 -2
- package/dist/{chunk-O4T53L7X.js → chunk-HNDFPXUU.js} +5 -5
- package/dist/{chunk-UY7AM4QG.js → chunk-RRUYHORU.js} +161 -74
- package/dist/chunk-RRUYHORU.js.map +1 -0
- package/dist/{chunk-PFRRIDYA.js → chunk-TIVL4UQ7.js} +2 -2
- package/dist/{chunk-2MKP6IYD.js → chunk-VYG4AXYW.js} +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/components.js +15 -16
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -17
- package/dist/index.js.map +1 -1
- package/dist/providers.js +2 -2
- package/dist/rbac/index.js +25 -20
- package/dist/rbac/index.js.map +1 -1
- package/dist/styles/core.css +83 -62
- package/dist/{types-CInEi-ng.d.ts → types-DiRQsGJs.d.ts} +0 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- package/docs/api/classes/PublicErrorBoundary.md +1 -1
- package/docs/api/interfaces/AggregateConfig.md +1 -1
- package/docs/api/interfaces/ButtonProps.md +1 -1
- package/docs/api/interfaces/CardProps.md +1 -1
- package/docs/api/interfaces/ColorPalette.md +1 -1
- package/docs/api/interfaces/ColorShade.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +33 -33
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.md +1 -1
- package/docs/api/interfaces/EventContextType.md +1 -1
- package/docs/api/interfaces/EventLogoProps.md +1 -1
- package/docs/api/interfaces/EventProviderProps.md +1 -1
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadProps.md +1 -1
- package/docs/api/interfaces/FooterProps.md +1 -1
- package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
- package/docs/api/interfaces/InputProps.md +1 -1
- package/docs/api/interfaces/LabelProps.md +1 -1
- package/docs/api/interfaces/LoginFormProps.md +1 -1
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/Organisation.md +1 -1
- package/docs/api/interfaces/OrganisationContextType.md +1 -1
- package/docs/api/interfaces/OrganisationMembership.md +1 -1
- package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
- package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
- package/docs/api/interfaces/PaceAppLayoutProps.md +1 -1
- package/docs/api/interfaces/PaceLoginPageProps.md +1 -1
- package/docs/api/interfaces/PaletteData.md +1 -1
- package/docs/api/interfaces/PublicErrorBoundaryProps.md +1 -1
- package/docs/api/interfaces/PublicErrorBoundaryState.md +1 -1
- package/docs/api/interfaces/PublicLoadingSpinnerProps.md +1 -1
- package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
- package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/StorageConfig.md +1 -1
- package/docs/api/interfaces/StorageFileInfo.md +1 -1
- package/docs/api/interfaces/StorageFileMetadata.md +1 -1
- package/docs/api/interfaces/StorageListOptions.md +1 -1
- package/docs/api/interfaces/StorageListResult.md +1 -1
- package/docs/api/interfaces/StorageUploadOptions.md +1 -1
- package/docs/api/interfaces/StorageUploadResult.md +1 -1
- package/docs/api/interfaces/StorageUrlOptions.md +1 -1
- package/docs/api/interfaces/StyleImport.md +1 -1
- package/docs/api/interfaces/ToastActionElement.md +1 -1
- package/docs/api/interfaces/ToastProps.md +1 -1
- package/docs/api/interfaces/UnifiedAuthContextType.md +1 -1
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UserEventAccess.md +1 -1
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +10 -10
- package/docs/architecture/README.md +1 -1
- package/package.json +1 -1
- package/src/__tests__/shared/testUtils.optimized.tsx +65 -7
- package/src/components/DataTable/DataTable.tsx +1 -3
- package/src/components/DataTable/__tests__/DataTable.errorHandling.test.tsx +0 -8
- package/src/components/DataTable/__tests__/DataTable.hierarchical.test.tsx +17 -12
- package/src/components/DataTable/__tests__/DataTable.infinite-loop.test.tsx +0 -1
- package/src/components/DataTable/__tests__/DataTable.integration.test.tsx +4 -12
- package/src/components/DataTable/__tests__/DataTable.performance.test.tsx +0 -8
- package/src/components/DataTable/__tests__/DataTable.permissions.test.tsx +21 -11
- package/src/components/DataTable/__tests__/DataTable.sorting.test.tsx +321 -0
- package/src/components/DataTable/__tests__/DataTable.userWorkflows.test.tsx +21 -11
- package/src/components/DataTable/__tests__/DataTable.workflowValidation.test.tsx +94 -0
- package/src/components/DataTable/__tests__/DataTable.workflows.test.tsx +25 -15
- package/src/components/DataTable/__tests__/README.md +11 -2
- package/src/components/DataTable/__tests__/performance-regression.test.tsx +0 -11
- package/src/components/DataTable/__tests__/test-utils/sharedTestUtils.tsx +0 -1
- package/src/components/DataTable/components/ColumnVisibilityDropdown.tsx +2 -2
- package/src/components/DataTable/components/DataTableBody.tsx +34 -35
- package/src/components/DataTable/components/DataTableCore.tsx +205 -133
- package/src/components/DataTable/components/DataTableToolbar.tsx +9 -10
- package/src/components/DataTable/components/DraggableColumnHeader.tsx +3 -7
- package/src/components/DataTable/components/EditableRow.tsx +6 -7
- package/src/components/DataTable/components/FilterRow.tsx +0 -1
- package/src/components/DataTable/components/GroupingDropdown.tsx +2 -2
- package/src/components/DataTable/components/UnifiedTableBody.tsx +83 -281
- package/src/components/DataTable/components/VirtualizedDataTable.tsx +9 -89
- package/src/components/DataTable/components/__tests__/DataTable.accessibility.test.tsx +111 -5
- package/src/components/DataTable/components/__tests__/DataTable.integration.test.tsx +82 -13
- package/src/components/DataTable/components/__tests__/DataTable.performance.test.tsx +0 -1
- package/src/components/DataTable/components/__tests__/DataTable.real.test.tsx +2 -2
- package/src/components/DataTable/components/__tests__/DataTable.security.test.tsx +0 -1
- package/src/components/DataTable/components/__tests__/DataTable.unit.test.tsx +2 -2
- package/src/components/DataTable/components/__tests__/FilteringToggle.unit.test.tsx +3 -0
- package/src/components/DataTable/components/index.ts +0 -1
- package/src/components/DataTable/core/DataTableContext.tsx +0 -1
- package/src/components/DataTable/index.ts +0 -2
- package/src/components/DataTable/types.ts +0 -2
- package/src/components/Input/Input.tsx +2 -2
- package/src/components/Input/__tests__/Input.unit.test.tsx +4 -4
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.integration.test.tsx +6 -2
- package/src/components/RBAC/PagePermissionGuard.tsx +13 -0
- package/src/components/RBAC/__tests__/PagePermissionGuard.unit.test.tsx +10 -1
- package/src/components/Select/Select.tsx +7 -1
- package/src/components/__tests__/EdgeCaseTesting.enhanced.test.tsx +2 -1
- package/src/hooks/__tests__/useRBAC.unit.test.ts +32 -24
- package/src/providers/RBACProvider.tsx +14 -2
- package/src/providers/__tests__/UnifiedAuthProvider.unit.test.tsx +11 -3
- package/src/rbac/__tests__/cache-invalidation.test.ts +2 -2
- package/src/rbac/__tests__/cache.test.ts +3 -3
- package/src/rbac/hooks.ts +15 -7
- package/src/styles/core.css +83 -62
- package/src/utils/__tests__/lazyLoad.unit.test.tsx +13 -18
- package/src/utils/storage/__tests__/helpers.unit.test.ts +9 -7
- package/dist/cache-I72HKDOA.js +0 -12
- package/dist/cache-I72HKDOA.js.map +0 -1
- package/dist/chunk-ANE4PDC2.js.map +0 -1
- package/dist/chunk-DY5E3AT7.js.map +0 -1
- package/dist/chunk-MRRFJ6SA.js +0 -161
- package/dist/chunk-MRRFJ6SA.js.map +0 -1
- package/dist/chunk-UY7AM4QG.js.map +0 -1
- package/dist/chunk-WYB6MBZA.js.map +0 -1
- package/src/components/DataTable/__tests__/DataTable.autoSizing.test.tsx +0 -526
- package/src/components/DataTable/components/DataTableHeader.tsx +0 -31
- package/src/components/DataTable/components/__tests__/DataTableHeader.unit.test.tsx +0 -143
- package/src/components/DataTable/examples/AutoSizingExample.tsx +0 -180
- package/src/components/DataTable/examples/ColumnSizingComparison.tsx +0 -235
- package/src/components/DataTable/utils/__tests__/columnSizing.test.ts +0 -237
- package/src/components/DataTable/utils/columnSizing.ts +0 -125
- /package/dist/{DataTable-GEY5U7OI.js.map → DataTable-EEUDXPE5.js.map} +0 -0
- /package/dist/{api-T6CBS7IO.js.map → api-ETQ6YJ3C.js.map} +0 -0
- /package/dist/{chunk-TMRLB2LA.js.map → chunk-HEMJ4SUJ.js.map} +0 -0
- /package/dist/{chunk-O4T53L7X.js.map → chunk-HNDFPXUU.js.map} +0 -0
- /package/dist/{chunk-PFRRIDYA.js.map → chunk-TIVL4UQ7.js.map} +0 -0
- /package/dist/{chunk-2MKP6IYD.js.map → chunk-VYG4AXYW.js.map} +0 -0
package/dist/styles/core.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
@theme static {
|
|
22
22
|
|
|
23
23
|
--app-width: 90rem;
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
/* MAIN palette - silver */
|
|
26
26
|
--color-main-raw: oklch(0.7 0.057 252.02);
|
|
27
27
|
--color-main-50: oklch(0.98 0.001 252.02);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--color-main-800: oklch(0.456 0.034 252.02);
|
|
36
36
|
--color-main-900: oklch(0.332 0.024 252.02);
|
|
37
37
|
--color-main-950: oklch(0.195 0.014 252.02);
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
/* SEC palette - violet */
|
|
40
40
|
--color-sec-raw: oklch(0.58 0.23 280.75);
|
|
41
41
|
--color-sec-50: oklch(0.98 0.003 280.75);
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
--color-sec-800: oklch(0.456 0.158 280.75);
|
|
50
50
|
--color-sec-900: oklch(0.332 0.099 280.75);
|
|
51
51
|
--color-sec-950: oklch(0.195 0.047 280.75);
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
/* ACC palette - blood orange */
|
|
54
54
|
--color-acc-raw: oklch(0.64 0.21 37.76);
|
|
55
55
|
--color-acc-50: oklch(0.98 0.003 37.76);
|
|
@@ -97,10 +97,14 @@
|
|
|
97
97
|
--print-first-page-margin: 1in;
|
|
98
98
|
--print-cover-logo-size: 120px;
|
|
99
99
|
--print-cover-title-size: 2.5rem;
|
|
100
|
-
--print-page-width: 8.27in;
|
|
101
|
-
|
|
102
|
-
--print-
|
|
103
|
-
|
|
100
|
+
--print-page-width: 8.27in;
|
|
101
|
+
/* A4 width */
|
|
102
|
+
--print-page-height: 11.69in;
|
|
103
|
+
/* A4 height */
|
|
104
|
+
--print-landscape-width: 11.69in;
|
|
105
|
+
/* A4 landscape width */
|
|
106
|
+
--print-landscape-height: 8.27in;
|
|
107
|
+
/* A4 landscape height */
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
@layer base {
|
|
@@ -117,47 +121,51 @@
|
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
/* Font definitions - Loading from consuming app's public directory with system font fallbacks */
|
|
120
|
-
/* Font definitions */
|
|
121
|
-
@font-face {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
124
|
+
/* Font definitions */
|
|
125
|
+
@font-face {
|
|
126
|
+
font-family: "Georama";
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-weight: 100 200 300 400 500 600 700 800 900;
|
|
129
|
+
font-display: swap;
|
|
130
|
+
src: url("/fonts/georama.woff2") format("woff2");
|
|
131
|
+
}
|
|
128
132
|
|
|
129
|
-
@font-face {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
133
|
+
@font-face {
|
|
134
|
+
font-family: "Georama";
|
|
135
|
+
font-style: italic;
|
|
136
|
+
font-weight: 100 200 300 400 500 600 700 800 900;
|
|
137
|
+
font-display: swap;
|
|
138
|
+
src: url("/fonts/georama-italic.woff2") format("woff2");
|
|
139
|
+
}
|
|
136
140
|
|
|
137
|
-
@font-face {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
141
|
+
@font-face {
|
|
142
|
+
font-family: "Open Sans";
|
|
143
|
+
font-style: normal;
|
|
144
|
+
font-weight: 100 200 300 400 500 600 700 800 900;
|
|
145
|
+
font-display: swap;
|
|
146
|
+
src: url("/fonts/open-sans.woff2") format("woff2");
|
|
147
|
+
}
|
|
144
148
|
|
|
145
|
-
@font-face {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
149
|
+
@font-face {
|
|
150
|
+
font-family: "Open Sans";
|
|
151
|
+
font-style: italic;
|
|
152
|
+
font-weight: 100 200 300 400 500 600 700 800 900;
|
|
153
|
+
font-display: swap;
|
|
154
|
+
src: url("/fonts/open-sans-italic.woff2") format("woff2");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@font-face {
|
|
158
|
+
font-family: "Reddit Mono";
|
|
159
|
+
font-style: normal;
|
|
160
|
+
font-weight: 200 300 400 500 600 700 800 900;
|
|
161
|
+
font-display: swap;
|
|
162
|
+
src: url("/fonts/reddit-mono.woff2") format("woff2");
|
|
163
|
+
}
|
|
152
164
|
|
|
153
|
-
@font-face {
|
|
154
|
-
font-family: "Reddit Mono";
|
|
155
|
-
font-style: normal;
|
|
156
|
-
font-weight: 200 300 400 500 600 700 800 900;
|
|
157
|
-
font-display: swap;
|
|
158
|
-
src: url("/fonts/reddit-mono.woff2") format("woff2");
|
|
159
165
|
}
|
|
160
166
|
|
|
167
|
+
@layer components {
|
|
168
|
+
|
|
161
169
|
/* Elements */
|
|
162
170
|
h1,
|
|
163
171
|
h2,
|
|
@@ -301,16 +309,21 @@
|
|
|
301
309
|
}
|
|
302
310
|
}
|
|
303
311
|
|
|
304
|
-
@layer components {
|
|
305
|
-
/* Custom component styles go here */
|
|
306
|
-
}
|
|
307
|
-
|
|
308
312
|
@layer utilities {
|
|
313
|
+
|
|
309
314
|
/* Print-specific utilities */
|
|
310
|
-
.print-break-avoid {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
315
|
+
.print-break-avoid {
|
|
316
|
+
page-break-inside: avoid;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.print-break-before {
|
|
320
|
+
page-break-before: always;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.print-break-after {
|
|
324
|
+
page-break-after: always;
|
|
325
|
+
}
|
|
326
|
+
|
|
314
327
|
/* Print page size controls */
|
|
315
328
|
.print-a4-portrait {
|
|
316
329
|
@media print {
|
|
@@ -320,7 +333,7 @@
|
|
|
320
333
|
}
|
|
321
334
|
}
|
|
322
335
|
}
|
|
323
|
-
|
|
336
|
+
|
|
324
337
|
.print-a4-landscape {
|
|
325
338
|
@media print {
|
|
326
339
|
@page {
|
|
@@ -329,7 +342,7 @@
|
|
|
329
342
|
}
|
|
330
343
|
}
|
|
331
344
|
}
|
|
332
|
-
|
|
345
|
+
|
|
333
346
|
/* First page header styles */
|
|
334
347
|
.print-first-page-header {
|
|
335
348
|
@media print {
|
|
@@ -338,7 +351,7 @@
|
|
|
338
351
|
}
|
|
339
352
|
}
|
|
340
353
|
}
|
|
341
|
-
|
|
354
|
+
|
|
342
355
|
.print-cover-header {
|
|
343
356
|
@media print {
|
|
344
357
|
@page :first {
|
|
@@ -346,7 +359,7 @@
|
|
|
346
359
|
}
|
|
347
360
|
}
|
|
348
361
|
}
|
|
349
|
-
|
|
362
|
+
|
|
350
363
|
.print-subsequent-header {
|
|
351
364
|
@media print {
|
|
352
365
|
@page :not(:first) {
|
|
@@ -354,30 +367,38 @@
|
|
|
354
367
|
}
|
|
355
368
|
}
|
|
356
369
|
}
|
|
357
|
-
|
|
370
|
+
|
|
358
371
|
/* Print-specific layouts */
|
|
359
372
|
@media print {
|
|
360
|
-
.print-hidden {
|
|
361
|
-
|
|
362
|
-
|
|
373
|
+
.print-hidden {
|
|
374
|
+
display: none !important;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.print-visible {
|
|
378
|
+
display: block !important;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.print-first-page-only {
|
|
363
382
|
display: block;
|
|
364
383
|
}
|
|
384
|
+
|
|
365
385
|
.print-subsequent-pages-only {
|
|
366
386
|
display: none;
|
|
367
387
|
}
|
|
368
388
|
}
|
|
369
|
-
|
|
389
|
+
|
|
370
390
|
@media print {
|
|
371
391
|
@page :not(:first) {
|
|
372
|
-
.print-first-page-only {
|
|
392
|
+
.print-first-page-only {
|
|
373
393
|
display: none !important;
|
|
374
394
|
}
|
|
395
|
+
|
|
375
396
|
.print-subsequent-pages-only {
|
|
376
397
|
display: block !important;
|
|
377
398
|
}
|
|
378
399
|
}
|
|
379
400
|
}
|
|
380
|
-
|
|
401
|
+
|
|
381
402
|
/* Print typography */
|
|
382
403
|
.print-text {
|
|
383
404
|
@media print {
|
|
@@ -386,7 +407,7 @@
|
|
|
386
407
|
color: var(--print-color);
|
|
387
408
|
}
|
|
388
409
|
}
|
|
389
|
-
|
|
410
|
+
|
|
390
411
|
/* Print layout container */
|
|
391
412
|
.print-layout {
|
|
392
413
|
@media print {
|
|
@@ -309,8 +309,6 @@ interface DataTableFeatureConfig {
|
|
|
309
309
|
columnReordering: boolean;
|
|
310
310
|
/** Enable hierarchical parent/child rows */
|
|
311
311
|
hierarchical: boolean;
|
|
312
|
-
/** Enable automatic column width adjustment based on content */
|
|
313
|
-
autoColumnSizing?: boolean;
|
|
314
312
|
}
|
|
315
313
|
|
|
316
314
|
export type { AggregateConfig as A, ChunkingConfig as C, DataRecord as D, EmptyStateConfig as E, GetRowId as G, HierarchicalConfig as H, PerformanceConfig as P, ServerSideConfig as S, DataTableColumn as a, DataTableFeatureConfig as b, PaginationMode as c, SearchIndexConfig as d, DataTableAction as e, DataTableToolbarButton as f, ServerSideParams as g, ServerSideResponse as h };
|
package/dist/utils.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ export { A as AppConfig, S as SecureDataAccess, a as cn, g as getAppConfig, d as
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export { u as useComponentPerformance } from './useComponentPerformance-DE9l5RkL.js';
|
|
4
4
|
import * as date_fns from 'date-fns';
|
|
5
|
-
import { D as DataTable } from './DataTable-
|
|
5
|
+
import { D as DataTable } from './DataTable-C1AEm9Cx.js';
|
|
6
6
|
import React__default, { ComponentType } from 'react';
|
|
7
7
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
8
8
|
import './organisation-CO3Sh3_D.js';
|
|
9
9
|
import 'clsx';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
|
-
import './types-
|
|
11
|
+
import './types-DiRQsGJs.js';
|
|
12
12
|
import '@tanstack/react-table';
|
|
13
13
|
|
|
14
14
|
/**
|
package/dist/utils.js
CHANGED
|
@@ -547,7 +547,7 @@ function createLazyComponent(importFn, componentName, options = {}) {
|
|
|
547
547
|
return WrappedComponent;
|
|
548
548
|
}
|
|
549
549
|
var LazyDataTable = createLazyComponent(
|
|
550
|
-
() => import("./DataTable-
|
|
550
|
+
() => import("./DataTable-EEUDXPE5.js").then((module) => ({ default: module.DataTable })),
|
|
551
551
|
"DataTable"
|
|
552
552
|
);
|
|
553
553
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.2.
|
|
1
|
+
[@jmruthers/pace-core - v0.2.7](../README.md) / [Exports](../modules.md) / DataTableProps
|
|
2
2
|
|
|
3
3
|
# Interface: DataTableProps\<TData\>
|
|
4
4
|
|
|
@@ -57,7 +57,7 @@ Array of data records to display in the table
|
|
|
57
57
|
|
|
58
58
|
#### Defined in
|
|
59
59
|
|
|
60
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
60
|
+
[packages/core/src/components/DataTable/DataTable.tsx:299](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L299)
|
|
61
61
|
|
|
62
62
|
___
|
|
63
63
|
|
|
@@ -69,7 +69,7 @@ Column definitions for the table
|
|
|
69
69
|
|
|
70
70
|
#### Defined in
|
|
71
71
|
|
|
72
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
72
|
+
[packages/core/src/components/DataTable/DataTable.tsx:301](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L301)
|
|
73
73
|
|
|
74
74
|
___
|
|
75
75
|
|
|
@@ -81,7 +81,7 @@ Optional title displayed above the table
|
|
|
81
81
|
|
|
82
82
|
#### Defined in
|
|
83
83
|
|
|
84
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
84
|
+
[packages/core/src/components/DataTable/DataTable.tsx:308](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L308)
|
|
85
85
|
|
|
86
86
|
___
|
|
87
87
|
|
|
@@ -93,7 +93,7 @@ Optional description displayed below the title
|
|
|
93
93
|
|
|
94
94
|
#### Defined in
|
|
95
95
|
|
|
96
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
96
|
+
[packages/core/src/components/DataTable/DataTable.tsx:310](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L310)
|
|
97
97
|
|
|
98
98
|
___
|
|
99
99
|
|
|
@@ -105,7 +105,7 @@ Visual variant of the table
|
|
|
105
105
|
|
|
106
106
|
#### Defined in
|
|
107
107
|
|
|
108
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
108
|
+
[packages/core/src/components/DataTable/DataTable.tsx:312](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L312)
|
|
109
109
|
|
|
110
110
|
___
|
|
111
111
|
|
|
@@ -117,7 +117,7 @@ Additional CSS classes for the table container
|
|
|
117
117
|
|
|
118
118
|
#### Defined in
|
|
119
119
|
|
|
120
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
120
|
+
[packages/core/src/components/DataTable/DataTable.tsx:314](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L314)
|
|
121
121
|
|
|
122
122
|
___
|
|
123
123
|
|
|
@@ -129,7 +129,7 @@ Feature configuration - all features are disabled by default
|
|
|
129
129
|
|
|
130
130
|
#### Defined in
|
|
131
131
|
|
|
132
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
132
|
+
[packages/core/src/components/DataTable/DataTable.tsx:321](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L321)
|
|
133
133
|
|
|
134
134
|
___
|
|
135
135
|
|
|
@@ -141,7 +141,7 @@ Hierarchical parent/child row configuration
|
|
|
141
141
|
|
|
142
142
|
#### Defined in
|
|
143
143
|
|
|
144
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
144
|
+
[packages/core/src/components/DataTable/DataTable.tsx:328](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L328)
|
|
145
145
|
|
|
146
146
|
___
|
|
147
147
|
|
|
@@ -153,7 +153,7 @@ Performance optimization configuration
|
|
|
153
153
|
|
|
154
154
|
#### Defined in
|
|
155
155
|
|
|
156
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
156
|
+
[packages/core/src/components/DataTable/DataTable.tsx:335](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L335)
|
|
157
157
|
|
|
158
158
|
___
|
|
159
159
|
|
|
@@ -165,7 +165,7 @@ Server-side data fetching configuration
|
|
|
165
165
|
|
|
166
166
|
#### Defined in
|
|
167
167
|
|
|
168
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
168
|
+
[packages/core/src/components/DataTable/DataTable.tsx:337](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L337)
|
|
169
169
|
|
|
170
170
|
___
|
|
171
171
|
|
|
@@ -177,7 +177,7 @@ Override automatic pagination mode detection
|
|
|
177
177
|
|
|
178
178
|
#### Defined in
|
|
179
179
|
|
|
180
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
180
|
+
[packages/core/src/components/DataTable/DataTable.tsx:339](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L339)
|
|
181
181
|
|
|
182
182
|
___
|
|
183
183
|
|
|
@@ -189,7 +189,7 @@ Data chunking configuration for memory optimization
|
|
|
189
189
|
|
|
190
190
|
#### Defined in
|
|
191
191
|
|
|
192
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
192
|
+
[packages/core/src/components/DataTable/DataTable.tsx:341](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L341)
|
|
193
193
|
|
|
194
194
|
___
|
|
195
195
|
|
|
@@ -201,7 +201,7 @@ Search indexing configuration for fast search
|
|
|
201
201
|
|
|
202
202
|
#### Defined in
|
|
203
203
|
|
|
204
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
204
|
+
[packages/core/src/components/DataTable/DataTable.tsx:343](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L343)
|
|
205
205
|
|
|
206
206
|
___
|
|
207
207
|
|
|
@@ -213,7 +213,7 @@ Virtual scrolling height
|
|
|
213
213
|
|
|
214
214
|
#### Defined in
|
|
215
215
|
|
|
216
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
216
|
+
[packages/core/src/components/DataTable/DataTable.tsx:345](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L345)
|
|
217
217
|
|
|
218
218
|
___
|
|
219
219
|
|
|
@@ -225,7 +225,7 @@ Initial page size for pagination
|
|
|
225
225
|
|
|
226
226
|
#### Defined in
|
|
227
227
|
|
|
228
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
228
|
+
[packages/core/src/components/DataTable/DataTable.tsx:347](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L347)
|
|
229
229
|
|
|
230
230
|
___
|
|
231
231
|
|
|
@@ -237,7 +237,7 @@ Enable enhanced pagination controls
|
|
|
237
237
|
|
|
238
238
|
#### Defined in
|
|
239
239
|
|
|
240
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
240
|
+
[packages/core/src/components/DataTable/DataTable.tsx:349](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L349)
|
|
241
241
|
|
|
242
242
|
___
|
|
243
243
|
|
|
@@ -249,7 +249,7 @@ Custom loading component
|
|
|
249
249
|
|
|
250
250
|
#### Defined in
|
|
251
251
|
|
|
252
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
252
|
+
[packages/core/src/components/DataTable/DataTable.tsx:351](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L351)
|
|
253
253
|
|
|
254
254
|
___
|
|
255
255
|
|
|
@@ -261,7 +261,7 @@ Custom error component
|
|
|
261
261
|
|
|
262
262
|
#### Defined in
|
|
263
263
|
|
|
264
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
264
|
+
[packages/core/src/components/DataTable/DataTable.tsx:353](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L353)
|
|
265
265
|
|
|
266
266
|
___
|
|
267
267
|
|
|
@@ -288,7 +288,7 @@ Callback when a row is edited
|
|
|
288
288
|
|
|
289
289
|
#### Defined in
|
|
290
290
|
|
|
291
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
291
|
+
[packages/core/src/components/DataTable/DataTable.tsx:360](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L360)
|
|
292
292
|
|
|
293
293
|
___
|
|
294
294
|
|
|
@@ -314,7 +314,7 @@ Callback when a row is deleted
|
|
|
314
314
|
|
|
315
315
|
#### Defined in
|
|
316
316
|
|
|
317
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
317
|
+
[packages/core/src/components/DataTable/DataTable.tsx:362](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L362)
|
|
318
318
|
|
|
319
319
|
___
|
|
320
320
|
|
|
@@ -340,7 +340,7 @@ Callback when a new row is created
|
|
|
340
340
|
|
|
341
341
|
#### Defined in
|
|
342
342
|
|
|
343
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
343
|
+
[packages/core/src/components/DataTable/DataTable.tsx:364](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L364)
|
|
344
344
|
|
|
345
345
|
___
|
|
346
346
|
|
|
@@ -366,7 +366,7 @@ Callback when data is imported
|
|
|
366
366
|
|
|
367
367
|
#### Defined in
|
|
368
368
|
|
|
369
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
369
|
+
[packages/core/src/components/DataTable/DataTable.tsx:366](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L366)
|
|
370
370
|
|
|
371
371
|
___
|
|
372
372
|
|
|
@@ -392,7 +392,7 @@ Callback when row selection changes
|
|
|
392
392
|
|
|
393
393
|
#### Defined in
|
|
394
394
|
|
|
395
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
395
|
+
[packages/core/src/components/DataTable/DataTable.tsx:368](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L368)
|
|
396
396
|
|
|
397
397
|
___
|
|
398
398
|
|
|
@@ -404,7 +404,7 @@ Controlled selection state
|
|
|
404
404
|
|
|
405
405
|
#### Defined in
|
|
406
406
|
|
|
407
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
407
|
+
[packages/core/src/components/DataTable/DataTable.tsx:370](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L370)
|
|
408
408
|
|
|
409
409
|
___
|
|
410
410
|
|
|
@@ -430,7 +430,7 @@ Callback when bulk delete selected rows is triggered
|
|
|
430
430
|
|
|
431
431
|
#### Defined in
|
|
432
432
|
|
|
433
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
433
|
+
[packages/core/src/components/DataTable/DataTable.tsx:372](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L372)
|
|
434
434
|
|
|
435
435
|
___
|
|
436
436
|
|
|
@@ -442,7 +442,7 @@ Function to generate unique row IDs
|
|
|
442
442
|
|
|
443
443
|
#### Defined in
|
|
444
444
|
|
|
445
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
445
|
+
[packages/core/src/components/DataTable/DataTable.tsx:379](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L379)
|
|
446
446
|
|
|
447
447
|
___
|
|
448
448
|
|
|
@@ -454,7 +454,7 @@ Whether the table is in a loading state
|
|
|
454
454
|
|
|
455
455
|
#### Defined in
|
|
456
456
|
|
|
457
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
457
|
+
[packages/core/src/components/DataTable/DataTable.tsx:381](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L381)
|
|
458
458
|
|
|
459
459
|
___
|
|
460
460
|
|
|
@@ -466,7 +466,7 @@ Custom component to display when table is empty
|
|
|
466
466
|
|
|
467
467
|
#### Defined in
|
|
468
468
|
|
|
469
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
469
|
+
[packages/core/src/components/DataTable/DataTable.tsx:383](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L383)
|
|
470
470
|
|
|
471
471
|
___
|
|
472
472
|
|
|
@@ -478,7 +478,7 @@ Array of aggregation functions for grouped data
|
|
|
478
478
|
|
|
479
479
|
#### Defined in
|
|
480
480
|
|
|
481
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
481
|
+
[packages/core/src/components/DataTable/DataTable.tsx:385](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L385)
|
|
482
482
|
|
|
483
483
|
___
|
|
484
484
|
|
|
@@ -490,7 +490,7 @@ Import modal configuration
|
|
|
490
490
|
|
|
491
491
|
#### Defined in
|
|
492
492
|
|
|
493
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
493
|
+
[packages/core/src/components/DataTable/DataTable.tsx:388](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L388)
|
|
494
494
|
|
|
495
495
|
___
|
|
496
496
|
|
|
@@ -502,7 +502,7 @@ Custom row actions - use this for custom action buttons
|
|
|
502
502
|
|
|
503
503
|
#### Defined in
|
|
504
504
|
|
|
505
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
505
|
+
[packages/core/src/components/DataTable/DataTable.tsx:391](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L391)
|
|
506
506
|
|
|
507
507
|
___
|
|
508
508
|
|
|
@@ -514,4 +514,4 @@ Column order configuration - array of column IDs in desired order
|
|
|
514
514
|
|
|
515
515
|
#### Defined in
|
|
516
516
|
|
|
517
|
-
[packages/core/src/components/DataTable/DataTable.tsx:
|
|
517
|
+
[packages/core/src/components/DataTable/DataTable.tsx:394](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/DataTable.tsx#L394)
|