@flexkit/studio 0.0.26 → 0.0.27
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/asset-REAMGMQL.js +2 -0
- package/dist/{asset-HOJ43RVO.js.map → asset-REAMGMQL.js.map} +1 -1
- package/dist/astro.js +1 -1
- package/dist/{chunk-OXTER7HO.js → chunk-27Y2SQ67.js} +2 -2
- package/dist/{chunk-OXTER7HO.js.map → chunk-27Y2SQ67.js.map} +1 -1
- package/dist/{chunk-SW6NNU5D.js → chunk-2FFSI7IK.js} +2 -2
- package/dist/chunk-2FFSI7IK.js.map +1 -0
- package/dist/chunk-2PEDKE5Z.js +2 -0
- package/dist/chunk-2PEDKE5Z.js.map +1 -0
- package/dist/chunk-553TQFSU.js +2 -0
- package/dist/chunk-553TQFSU.js.map +1 -0
- package/dist/{chunk-FPK7J4BP.js → chunk-7GBAYC7G.js} +2 -2
- package/dist/chunk-7GBAYC7G.js.map +1 -0
- package/dist/{chunk-53TUQIKJ.js → chunk-AALMEPYG.js} +2 -2
- package/dist/chunk-AALMEPYG.js.map +1 -0
- package/dist/{chunk-V2UTZEJQ.js → chunk-CWHDJ7Q4.js} +2 -2
- package/dist/{chunk-V2UTZEJQ.js.map → chunk-CWHDJ7Q4.js.map} +1 -1
- package/dist/{chunk-6MOUYNN4.js → chunk-KGYH74NA.js} +2 -2
- package/dist/chunk-KGYH74NA.js.map +1 -0
- package/dist/chunk-KR7CLPY2.js +2 -0
- package/dist/chunk-KR7CLPY2.js.map +1 -0
- package/dist/{chunk-ND3OZVR5.js → chunk-NNRD7YZU.js} +2 -2
- package/dist/chunk-NNRD7YZU.js.map +1 -0
- package/dist/{chunk-PEYW7XOU.js → chunk-OEWYLKO7.js} +2 -2
- package/dist/chunk-OEWYLKO7.js.map +1 -0
- package/dist/{chunk-Z5CZVKD4.js → chunk-QXCD5JR4.js} +2 -2
- package/dist/chunk-QXCD5JR4.js.map +1 -0
- package/dist/{chunk-YXRNHQPG.js → chunk-TBCSVE5L.js} +2 -2
- package/dist/{chunk-YXRNHQPG.js.map → chunk-TBCSVE5L.js.map} +1 -1
- package/dist/{chunk-PCZI6VXG.js → chunk-UKLE7J3K.js} +2 -2
- package/dist/chunk-UUGIVWK4.js +2 -0
- package/dist/chunk-UUGIVWK4.js.map +1 -0
- package/dist/chunk-WDRCARCP.js +3 -0
- package/dist/{chunk-ZBV4BY36.js.map → chunk-WDRCARCP.js.map} +1 -1
- package/dist/{chunk-V7UK6RMM.js → chunk-X3S7TRCM.js} +2 -2
- package/dist/{chunk-V7UK6RMM.js.map → chunk-X3S7TRCM.js.map} +1 -1
- package/dist/{chunk-AOVXSAH5.js → chunk-XU2JGXYC.js} +2 -2
- package/dist/chunk-XU2JGXYC.js.map +1 -0
- package/dist/{chunk-5CKMFBWH.js → chunk-YW2EEXMV.js} +2 -2
- package/dist/chunk-YW2EEXMV.js.map +1 -0
- package/dist/{chunk-RVGMKQPC.js → chunk-ZSJAPCIZ.js} +2 -2
- package/dist/chunk-ZSJAPCIZ.js.map +1 -0
- package/dist/{chunk-7XBIC5RC.js → chunk-ZSSNAIMU.js} +2 -2
- package/dist/{chunk-7XBIC5RC.js.map → chunk-ZSSNAIMU.js.map} +1 -1
- package/dist/datetime-TWONUNXS.js +2 -0
- package/dist/{datetime-VZJ7XF33.js.map → datetime-TWONUNXS.js.map} +1 -1
- package/dist/index.css +45 -13
- package/dist/index.d.ts +35 -9
- package/dist/index.js +237 -199
- package/dist/index.js.map +1 -1
- package/dist/nextjs.js +1 -1
- package/dist/{project-selector-TWMWLTCH.js → project-selector-X6YVZYKL.js} +2 -2
- package/dist/{project-selector-TWMWLTCH.js.map → project-selector-X6YVZYKL.js.map} +1 -1
- package/dist/{search-MG2W4GGN.js → search-6ASIDGYA.js} +2 -2
- package/dist/{search-MG2W4GGN.js.map → search-6ASIDGYA.js.map} +1 -1
- package/dist/switch-KVO3JRNX.js +2 -0
- package/dist/{switch-FBS75HI4.js.map → switch-KVO3JRNX.js.map} +1 -1
- package/dist/tanstack-start.js +1 -1
- package/dist/text-ODG7ABSW.js +2 -0
- package/dist/{text-RZOXKHWE.js.map → text-ODG7ABSW.js.map} +1 -1
- package/dist/textarea-M4YPSJEC.js +2 -0
- package/dist/{textarea-OUJM7E6O.js.map → textarea-M4YPSJEC.js.map} +1 -1
- package/dist/{types.d-Da7sP-Fn.d.ts → types.d-DiA0h3ut.d.ts} +32 -7
- package/dist/ui.d.ts +3 -2
- package/dist/ui.js +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/{user-nav-E7MLJ36Y.js → user-nav-O5G4M2VA.js} +2 -2
- package/dist/{user-nav-E7MLJ36Y.js.map → user-nav-O5G4M2VA.js.map} +1 -1
- package/package.json +1 -1
- package/dist/asset-HOJ43RVO.js +0 -2
- package/dist/chunk-53TUQIKJ.js.map +0 -1
- package/dist/chunk-5CKMFBWH.js.map +0 -1
- package/dist/chunk-6MOUYNN4.js.map +0 -1
- package/dist/chunk-6YHHL4XI.js +0 -2
- package/dist/chunk-6YHHL4XI.js.map +0 -1
- package/dist/chunk-AOVXSAH5.js.map +0 -1
- package/dist/chunk-FPK7J4BP.js.map +0 -1
- package/dist/chunk-I4C65MUI.js +0 -2
- package/dist/chunk-I4C65MUI.js.map +0 -1
- package/dist/chunk-JHDZP6RC.js +0 -2
- package/dist/chunk-JHDZP6RC.js.map +0 -1
- package/dist/chunk-ND3OZVR5.js.map +0 -1
- package/dist/chunk-PEYW7XOU.js.map +0 -1
- package/dist/chunk-RVGMKQPC.js.map +0 -1
- package/dist/chunk-SW6NNU5D.js.map +0 -1
- package/dist/chunk-SXZZFHMJ.js +0 -2
- package/dist/chunk-SXZZFHMJ.js.map +0 -1
- package/dist/chunk-Z5CZVKD4.js.map +0 -1
- package/dist/chunk-ZBV4BY36.js +0 -3
- package/dist/datetime-VZJ7XF33.js +0 -2
- package/dist/switch-FBS75HI4.js +0 -2
- package/dist/text-RZOXKHWE.js +0 -2
- package/dist/textarea-OUJM7E6O.js +0 -2
package/dist/index.css
CHANGED
|
@@ -233,6 +233,9 @@
|
|
|
233
233
|
.fk\:relative {
|
|
234
234
|
position: relative;
|
|
235
235
|
}
|
|
236
|
+
.fk\:sticky {
|
|
237
|
+
position: sticky;
|
|
238
|
+
}
|
|
236
239
|
.fk\:inset-0 {
|
|
237
240
|
inset: calc(var(--fk-spacing) * 0);
|
|
238
241
|
}
|
|
@@ -263,6 +266,9 @@
|
|
|
263
266
|
.fk\:top-4 {
|
|
264
267
|
top: calc(var(--fk-spacing) * 4);
|
|
265
268
|
}
|
|
269
|
+
.fk\:top-10\.25 {
|
|
270
|
+
top: calc(var(--fk-spacing) * 10.25);
|
|
271
|
+
}
|
|
266
272
|
.fk\:top-\[0\.1875rem\] {
|
|
267
273
|
top: 0.1875rem;
|
|
268
274
|
}
|
|
@@ -293,6 +299,9 @@
|
|
|
293
299
|
.fk\:right-\[0\.1875rem\] {
|
|
294
300
|
right: 0.1875rem;
|
|
295
301
|
}
|
|
302
|
+
.fk\:right-px {
|
|
303
|
+
right: 1px;
|
|
304
|
+
}
|
|
296
305
|
.fk\:bottom-0 {
|
|
297
306
|
bottom: calc(var(--fk-spacing) * 0);
|
|
298
307
|
}
|
|
@@ -308,6 +317,9 @@
|
|
|
308
317
|
.fk\:left-\[50\%\] {
|
|
309
318
|
left: 50%;
|
|
310
319
|
}
|
|
320
|
+
.fk\:left-px {
|
|
321
|
+
left: 1px;
|
|
322
|
+
}
|
|
311
323
|
.fk\:z-10 {
|
|
312
324
|
z-index: 10;
|
|
313
325
|
}
|
|
@@ -1063,6 +1075,9 @@
|
|
|
1063
1075
|
.fk\:ml-0\! {
|
|
1064
1076
|
margin-left: calc(var(--fk-spacing) * 0) !important;
|
|
1065
1077
|
}
|
|
1078
|
+
.fk\:ml-1 {
|
|
1079
|
+
margin-left: calc(var(--fk-spacing) * 1);
|
|
1080
|
+
}
|
|
1066
1081
|
.fk\:ml-2 {
|
|
1067
1082
|
margin-left: calc(var(--fk-spacing) * 2);
|
|
1068
1083
|
}
|
|
@@ -1160,6 +1175,9 @@
|
|
|
1160
1175
|
.fk\:h-\(--radix-select-trigger-height\) {
|
|
1161
1176
|
height: var(--radix-select-trigger-height);
|
|
1162
1177
|
}
|
|
1178
|
+
.fk\:h-0\.5 {
|
|
1179
|
+
height: calc(var(--fk-spacing) * 0.5);
|
|
1180
|
+
}
|
|
1163
1181
|
.fk\:h-1\.5 {
|
|
1164
1182
|
height: calc(var(--fk-spacing) * 1.5);
|
|
1165
1183
|
}
|
|
@@ -1211,6 +1229,9 @@
|
|
|
1211
1229
|
.fk\:h-\[2\.375rem\] {
|
|
1212
1230
|
height: 2.375rem;
|
|
1213
1231
|
}
|
|
1232
|
+
.fk\:h-\[17\.5rem\] {
|
|
1233
|
+
height: 17.5rem;
|
|
1234
|
+
}
|
|
1214
1235
|
.fk\:h-\[20px\] {
|
|
1215
1236
|
height: 20px;
|
|
1216
1237
|
}
|
|
@@ -1253,9 +1274,6 @@
|
|
|
1253
1274
|
.fk\:max-h-80 {
|
|
1254
1275
|
max-height: calc(var(--fk-spacing) * 80);
|
|
1255
1276
|
}
|
|
1256
|
-
.fk\:max-h-\[17\.5rem\] {
|
|
1257
|
-
max-height: 17.5rem;
|
|
1258
|
-
}
|
|
1259
1277
|
.fk\:max-h-\[220px\] {
|
|
1260
1278
|
max-height: 220px;
|
|
1261
1279
|
}
|
|
@@ -1289,9 +1307,6 @@
|
|
|
1289
1307
|
.fk\:min-h-\[2\.5rem\] {
|
|
1290
1308
|
min-height: 2.5rem;
|
|
1291
1309
|
}
|
|
1292
|
-
.fk\:min-h-\[2\.375rem\] {
|
|
1293
|
-
min-height: 2.375rem;
|
|
1294
|
-
}
|
|
1295
1310
|
.fk\:min-h-\[3\.5rem\] {
|
|
1296
1311
|
min-height: 3.5rem;
|
|
1297
1312
|
}
|
|
@@ -1346,6 +1361,9 @@
|
|
|
1346
1361
|
.fk\:w-28 {
|
|
1347
1362
|
width: calc(var(--fk-spacing) * 28);
|
|
1348
1363
|
}
|
|
1364
|
+
.fk\:w-44 {
|
|
1365
|
+
width: calc(var(--fk-spacing) * 44);
|
|
1366
|
+
}
|
|
1349
1367
|
.fk\:w-48 {
|
|
1350
1368
|
width: calc(var(--fk-spacing) * 48);
|
|
1351
1369
|
}
|
|
@@ -1599,6 +1617,9 @@
|
|
|
1599
1617
|
.fk\:justify-items-start {
|
|
1600
1618
|
justify-items: start;
|
|
1601
1619
|
}
|
|
1620
|
+
.fk\:gap-0 {
|
|
1621
|
+
gap: calc(var(--fk-spacing) * 0);
|
|
1622
|
+
}
|
|
1602
1623
|
.fk\:gap-0\.5 {
|
|
1603
1624
|
gap: calc(var(--fk-spacing) * 0.5);
|
|
1604
1625
|
}
|
|
@@ -1705,9 +1726,6 @@
|
|
|
1705
1726
|
.fk\:overflow-visible {
|
|
1706
1727
|
overflow: visible;
|
|
1707
1728
|
}
|
|
1708
|
-
.fk\:overflow-x-auto {
|
|
1709
|
-
overflow-x: auto;
|
|
1710
|
-
}
|
|
1711
1729
|
.fk\:overflow-x-hidden {
|
|
1712
1730
|
overflow-x: hidden;
|
|
1713
1731
|
}
|
|
@@ -1956,6 +1974,9 @@
|
|
|
1956
1974
|
.fk\:p-0 {
|
|
1957
1975
|
padding: calc(var(--fk-spacing) * 0);
|
|
1958
1976
|
}
|
|
1977
|
+
.fk\:p-0\.5 {
|
|
1978
|
+
padding: calc(var(--fk-spacing) * 0.5);
|
|
1979
|
+
}
|
|
1959
1980
|
.fk\:p-1 {
|
|
1960
1981
|
padding: calc(var(--fk-spacing) * 1);
|
|
1961
1982
|
}
|
|
@@ -2064,8 +2085,8 @@
|
|
|
2064
2085
|
.fk\:pr-9 {
|
|
2065
2086
|
padding-right: calc(var(--fk-spacing) * 9);
|
|
2066
2087
|
}
|
|
2067
|
-
.fk\:
|
|
2068
|
-
padding-
|
|
2088
|
+
.fk\:pb-0 {
|
|
2089
|
+
padding-bottom: calc(var(--fk-spacing) * 0);
|
|
2069
2090
|
}
|
|
2070
2091
|
.fk\:pb-1\.5 {
|
|
2071
2092
|
padding-bottom: calc(var(--fk-spacing) * 1.5);
|
|
@@ -2079,8 +2100,8 @@
|
|
|
2079
2100
|
.fk\:pl-0 {
|
|
2080
2101
|
padding-left: calc(var(--fk-spacing) * 0);
|
|
2081
2102
|
}
|
|
2082
|
-
.fk\:pl-
|
|
2083
|
-
padding-left: calc(var(--fk-spacing) *
|
|
2103
|
+
.fk\:pl-1\! {
|
|
2104
|
+
padding-left: calc(var(--fk-spacing) * 1) !important;
|
|
2084
2105
|
}
|
|
2085
2106
|
.fk\:pl-2 {
|
|
2086
2107
|
padding-left: calc(var(--fk-spacing) * 2);
|
|
@@ -2268,6 +2289,9 @@
|
|
|
2268
2289
|
color: color-mix(in oklab, hsl(var(--sidebar-foreground)) 70%, transparent);
|
|
2269
2290
|
}
|
|
2270
2291
|
}
|
|
2292
|
+
.fk\:text-success {
|
|
2293
|
+
color: hsl(var(--success));
|
|
2294
|
+
}
|
|
2271
2295
|
.fk\:text-white {
|
|
2272
2296
|
color: var(--fk-color-white);
|
|
2273
2297
|
}
|
|
@@ -2296,6 +2320,9 @@
|
|
|
2296
2320
|
.fk\:opacity-0 {
|
|
2297
2321
|
opacity: 0%;
|
|
2298
2322
|
}
|
|
2323
|
+
.fk\:opacity-4 {
|
|
2324
|
+
opacity: 4%;
|
|
2325
|
+
}
|
|
2299
2326
|
.fk\:opacity-40 {
|
|
2300
2327
|
opacity: 40%;
|
|
2301
2328
|
}
|
|
@@ -4625,6 +4652,11 @@
|
|
|
4625
4652
|
padding-inline: calc(var(--fk-spacing) * 0);
|
|
4626
4653
|
}
|
|
4627
4654
|
}
|
|
4655
|
+
.fk\:lg\:px-3 {
|
|
4656
|
+
@media (width >= 64rem) {
|
|
4657
|
+
padding-inline: calc(var(--fk-spacing) * 3);
|
|
4658
|
+
}
|
|
4659
|
+
}
|
|
4628
4660
|
.fk\:dark\:border-input {
|
|
4629
4661
|
&:is([style="color-scheme: dark;"] *) {
|
|
4630
4662
|
border-color: hsl(var(--input));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { Dispatch, JSX, SetStateAction, UIEvent, ReactElement } from 'react';
|
|
3
|
-
import { A as AppContextType, a as ActionSetRelationship, b as ActionSetScope, C as Config, c as AppOptions, E as Entity, P as PluginOptions, d as ProjectOptions, O as OrderedAssetValue, e as SearchRequestProps, f as SearchResultItem, U as UseEntityQueryParams, M as MappedEntityItem, F as FormEntityItem, I as ImageValue, g as Schema, h as EntityData, i as AttributeValue, j as Attribute, k as MultipleRelationshipConnection, l as SingleRelationshipConnection } from './types.d-
|
|
4
|
-
export { D as DataType, m as
|
|
3
|
+
import { A as AppContextType, a as ActionSetRelationship, b as ActionSetScope, C as Config, c as AppOptions, E as Entity, P as PluginOptions, d as ProjectOptions, O as OrderedAssetValue, e as SearchRequestProps, f as SearchResultItem, U as UseEntityQueryParams, M as MappedEntityItem, F as FormEntityItem, I as ImageValue, g as Schema, h as EntityData, i as AttributeValue, j as Attribute, k as MultipleRelationshipConnection, l as SingleRelationshipConnection } from './types.d-DiA0h3ut.js';
|
|
4
|
+
export { D as DataType, m as DefaultValue, n as DefaultValueByDataType, o as FormFieldParams, p as FormFieldProps, q as FormFieldValue, L as LogoProps, r as ScopeType, S as SingleProject } from './types.d-DiA0h3ut.js';
|
|
5
5
|
export { Outlet, useLocation, useParams } from 'react-router-dom';
|
|
6
6
|
import { OperationVariables, DocumentNode, ErrorLike } from '@apollo/client';
|
|
7
7
|
export { gql } from '@apollo/client';
|
|
8
|
-
import { Column, Row, ColumnDef, Table, RowSelectionState } from '@tanstack/react-table';
|
|
8
|
+
import { Column, Row, ColumnDef, Table, RowSelectionState, OnChangeFn, SortingState } from '@tanstack/react-table';
|
|
9
9
|
export { ColumnDef, ColumnFiltersState, Table as ReactTable, Row, RowSelectionState, SortingState, TableMeta, Updater, VisibilityState, flexRender, getCoreRowModel, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
|
|
10
10
|
export { useVirtualizer } from '@tanstack/react-virtual';
|
|
11
11
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -122,13 +122,15 @@ type FetchMoreOptions = {
|
|
|
122
122
|
limit: number;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
declare function useEntityQuery({ entityNamePlural, schema, scope, variables, isForm }: UseEntityQueryParams): {
|
|
125
|
+
declare function useEntityQuery({ entityNamePlural, schema, scope, variables, isForm, selection, }: UseEntityQueryParams): {
|
|
126
126
|
count: number;
|
|
127
127
|
data: MappedEntityItem[] | FormEntityItem[] | ImageValue[] | undefined;
|
|
128
128
|
fetchMore: (args: FetchMoreOptions) => void;
|
|
129
129
|
isLoading: boolean;
|
|
130
|
+
isLoadingMore: boolean;
|
|
130
131
|
isProjectDisabled: boolean;
|
|
131
132
|
isProjectReadOnly: boolean;
|
|
133
|
+
reload: () => void;
|
|
132
134
|
schemaErrorMessage: string | null;
|
|
133
135
|
};
|
|
134
136
|
|
|
@@ -150,7 +152,9 @@ type EntityQuery = {
|
|
|
150
152
|
queryEntityName: string;
|
|
151
153
|
query: string;
|
|
152
154
|
};
|
|
153
|
-
declare function getEntityQuery(entityNamePlural: string, scope: string, schema: Schema
|
|
155
|
+
declare function getEntityQuery(entityNamePlural: string, scope: string, schema: Schema, options?: {
|
|
156
|
+
selection?: 'list' | 'full';
|
|
157
|
+
}): EntityQuery;
|
|
154
158
|
/**
|
|
155
159
|
* Returns a string with the GraphQl query needed to mutate the dataToMutate object for the given entity and scope.
|
|
156
160
|
*/
|
|
@@ -179,12 +183,20 @@ type Props<TData> = {
|
|
|
179
183
|
attributesSchema: Attribute[];
|
|
180
184
|
checkboxSelect?: 'single' | 'multiple';
|
|
181
185
|
actionsComponent?: (row: Row<TData>) => JSX.Element;
|
|
186
|
+
enableColumnSorting?: boolean;
|
|
182
187
|
};
|
|
183
188
|
type ColumnDefinition<TData extends AttributeValue, TValue> = ColumnDef<TData, TValue> & {
|
|
184
189
|
id?: string;
|
|
185
190
|
size: number;
|
|
186
191
|
};
|
|
187
|
-
declare function useGridColumnsDefinition<TData extends AttributeValue, TValue>({ attributesSchema, checkboxSelect, actionsComponent, }: Props<TData>): ColumnDefinition<TData, TValue>[];
|
|
192
|
+
declare function useGridColumnsDefinition<TData extends AttributeValue, TValue>({ attributesSchema, checkboxSelect, actionsComponent, enableColumnSorting, }: Props<TData>): ColumnDefinition<TData, TValue>[];
|
|
193
|
+
|
|
194
|
+
interface DataTableColumnHeaderProps<TData, TValue> {
|
|
195
|
+
column: Column<TData, TValue>;
|
|
196
|
+
title: string;
|
|
197
|
+
className?: string;
|
|
198
|
+
}
|
|
199
|
+
declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): JSX.Element;
|
|
188
200
|
|
|
189
201
|
interface DataTableRowActionsProps<TData> {
|
|
190
202
|
entityName: string;
|
|
@@ -197,11 +209,18 @@ interface DataTableRowActionsProps<TData> {
|
|
|
197
209
|
}
|
|
198
210
|
declare function DataTableRowActions<TData>({ entityName, entityNamePlural, row, options, }: DataTableRowActionsProps<TData>): JSX.Element;
|
|
199
211
|
|
|
212
|
+
interface DataTableSortedByProps<TData> {
|
|
213
|
+
table: Table<TData>;
|
|
214
|
+
}
|
|
215
|
+
declare function DataTableSortedBy<TData>({ table }: DataTableSortedByProps<TData>): JSX.Element | null;
|
|
216
|
+
|
|
200
217
|
interface DataTableToolbarProps<TData> {
|
|
201
218
|
entityName: string;
|
|
219
|
+
isReloading?: boolean;
|
|
220
|
+
onReload?: () => void;
|
|
202
221
|
table: Table<TData>;
|
|
203
222
|
}
|
|
204
|
-
declare function DataTableToolbar<TData>({ entityName, table }: DataTableToolbarProps<TData>): JSX.Element;
|
|
223
|
+
declare function DataTableToolbar<TData>({ entityName, isReloading, onReload, table, }: DataTableToolbarProps<TData>): JSX.Element;
|
|
205
224
|
|
|
206
225
|
interface DataTableViewOptionsProps<TData> {
|
|
207
226
|
table: Table<TData>;
|
|
@@ -212,21 +231,28 @@ interface DataTableProps<TData extends AttributeValue, TValue> {
|
|
|
212
231
|
classNames?: {
|
|
213
232
|
wrapper?: string;
|
|
214
233
|
table?: string;
|
|
234
|
+
tableContainer?: string;
|
|
215
235
|
row?: string;
|
|
216
236
|
};
|
|
217
237
|
columns: ColumnDef<AttributeValue, TValue>[];
|
|
218
238
|
data: TData[];
|
|
219
239
|
entityName: string;
|
|
240
|
+
hasMore?: boolean;
|
|
220
241
|
initialSelectionState?: RowSelectionState;
|
|
242
|
+
isLoadingMore?: boolean;
|
|
221
243
|
onEntitySelectionChange?: (rowSelection: string[]) => void;
|
|
244
|
+
onLoadMore?: () => void;
|
|
222
245
|
onScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
246
|
+
onSortingChange?: OnChangeFn<SortingState>;
|
|
223
247
|
pageSize?: number;
|
|
224
248
|
rowHeightEstimate?: number;
|
|
225
249
|
rowAdditionState?: MultipleRelationshipConnection;
|
|
226
250
|
rowDeletionState?: string[];
|
|
251
|
+
scrollToTopKey?: number;
|
|
252
|
+
sorting?: SortingState;
|
|
227
253
|
toolbarComponent?: (table: Table<AttributeValue>) => ReactElement;
|
|
228
254
|
}
|
|
229
|
-
declare function DataTable<TData extends AttributeValue, TValue>({ classNames, columns, data, initialSelectionState, onEntitySelectionChange, onScroll, pageSize, rowHeightEstimate, rowAdditionState, rowDeletionState, toolbarComponent, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
255
|
+
declare function DataTable<TData extends AttributeValue, TValue>({ classNames, columns, data, entityName, hasMore, initialSelectionState, isLoadingMore, onEntitySelectionChange, onLoadMore, onScroll, onSortingChange, pageSize, rowHeightEstimate, rowAdditionState, rowDeletionState, scrollToTopKey, sorting: sortingProp, toolbarComponent, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
230
256
|
|
|
231
257
|
type Action = ActionAddEntity | ActionEditEntity | ActionEditRelationship | ActionDeleteEntity | ActionDismiss | ActionAlertDialog;
|
|
232
258
|
type ActionAddEntity = {
|
|
@@ -297,4 +323,4 @@ declare const assetSchema: Entity;
|
|
|
297
323
|
|
|
298
324
|
declare const tagSchema: Entity;
|
|
299
325
|
|
|
300
|
-
export { AppOptions, Attribute, AttributeValue, type ConfigContext, DataTable, DataTableFacetedFilter, DataTableRowActions, DataTableToolbar, DataTableViewOptions, DefaultValueSwitch, Entity, EntityData, FlexkitStudio, FormEntityItem, IMAGES_BASE_URL, MappedEntityItem, PluginOptions, ProjectDisabled, Schema, SchemaError, SearchRequestProps, SearchResultItem, type UploadedFileResult, assetSchema, defineConfig, defineEntity, getEntityCreateMutation, getEntityDeleteMutation, getEntityQuery, getEntitySchema, getEntityUpdateMutation, tagSchema, useAppContext, useAppDispatch, useAuth, useConfig, useDispatch, useEntityMutation, useEntityQuery, useGraphQLError, useGridColumnsDefinition, useSearch, useUploadAssets };
|
|
326
|
+
export { AppOptions, Attribute, AttributeValue, type ConfigContext, DataTable, DataTableColumnHeader, DataTableFacetedFilter, DataTableRowActions, DataTableSortedBy, DataTableToolbar, DataTableViewOptions, DefaultValueSwitch, Entity, EntityData, FlexkitStudio, FormEntityItem, IMAGES_BASE_URL, MappedEntityItem, PluginOptions, ProjectDisabled, Schema, SchemaError, SearchRequestProps, SearchResultItem, type UploadedFileResult, assetSchema, defineConfig, defineEntity, getEntityCreateMutation, getEntityDeleteMutation, getEntityQuery, getEntitySchema, getEntityUpdateMutation, tagSchema, useAppContext, useAppDispatch, useAuth, useConfig, useDispatch, useEntityMutation, useEntityQuery, useGraphQLError, useGridColumnsDefinition, useSearch, useUploadAssets };
|