@teselagen/ui 0.5.23-beta.10 → 0.5.23-beta.11
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/index.cjs.js +8 -4
- package/index.es.js +8 -4
- package/package.json +1 -1
- package/src/DataTable/index.js +10 -5
package/index.cjs.js
CHANGED
|
@@ -48470,6 +48470,9 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
48470
48470
|
}
|
|
48471
48471
|
return {};
|
|
48472
48472
|
}, [
|
|
48473
|
+
props.entities,
|
|
48474
|
+
props.noOrderError,
|
|
48475
|
+
props.isCodeModel,
|
|
48473
48476
|
convertedSchema,
|
|
48474
48477
|
currentParams,
|
|
48475
48478
|
doNotCoercePageSize,
|
|
@@ -48504,7 +48507,7 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
48504
48507
|
doNotShowEmptyRows,
|
|
48505
48508
|
doNotValidateUntouchedRows,
|
|
48506
48509
|
editingCellSelectAll,
|
|
48507
|
-
entities:
|
|
48510
|
+
entities: _origEntities = [],
|
|
48508
48511
|
entitiesAcrossPages: _entitiesAcrossPages,
|
|
48509
48512
|
entityCount,
|
|
48510
48513
|
errorParsingUrlString,
|
|
@@ -48585,10 +48588,11 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
48585
48588
|
withSort,
|
|
48586
48589
|
withTitle = !isSimple
|
|
48587
48590
|
} = props;
|
|
48588
|
-
const
|
|
48589
|
-
|
|
48590
|
-
|
|
48591
|
+
const _entities = React$1.useMemo(
|
|
48592
|
+
() => ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || [],
|
|
48593
|
+
[_origEntities, reduxFormEntities]
|
|
48591
48594
|
);
|
|
48595
|
+
const entities = useDeepEqualMemo(_entities);
|
|
48592
48596
|
const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
|
|
48593
48597
|
React$1.useEffect(() => {
|
|
48594
48598
|
if (change) {
|
package/index.es.js
CHANGED
|
@@ -48452,6 +48452,9 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
48452
48452
|
}
|
|
48453
48453
|
return {};
|
|
48454
48454
|
}, [
|
|
48455
|
+
props.entities,
|
|
48456
|
+
props.noOrderError,
|
|
48457
|
+
props.isCodeModel,
|
|
48455
48458
|
convertedSchema,
|
|
48456
48459
|
currentParams,
|
|
48457
48460
|
doNotCoercePageSize,
|
|
@@ -48486,7 +48489,7 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
48486
48489
|
doNotShowEmptyRows,
|
|
48487
48490
|
doNotValidateUntouchedRows,
|
|
48488
48491
|
editingCellSelectAll,
|
|
48489
|
-
entities:
|
|
48492
|
+
entities: _origEntities = [],
|
|
48490
48493
|
entitiesAcrossPages: _entitiesAcrossPages,
|
|
48491
48494
|
entityCount,
|
|
48492
48495
|
errorParsingUrlString,
|
|
@@ -48567,10 +48570,11 @@ const DataTable = /* @__PURE__ */ __name((_G) => {
|
|
|
48567
48570
|
withSort,
|
|
48568
48571
|
withTitle = !isSimple
|
|
48569
48572
|
} = props;
|
|
48570
|
-
const
|
|
48571
|
-
|
|
48572
|
-
|
|
48573
|
+
const _entities = useMemo(
|
|
48574
|
+
() => ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || [],
|
|
48575
|
+
[_origEntities, reduxFormEntities]
|
|
48573
48576
|
);
|
|
48577
|
+
const entities = useDeepEqualMemo(_entities);
|
|
48574
48578
|
const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
|
|
48575
48579
|
useEffect(() => {
|
|
48576
48580
|
if (change2) {
|
package/package.json
CHANGED
package/src/DataTable/index.js
CHANGED
|
@@ -364,6 +364,9 @@ const DataTable = ({
|
|
|
364
364
|
return {};
|
|
365
365
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
366
366
|
}, [
|
|
367
|
+
props.entities,
|
|
368
|
+
props.noOrderError,
|
|
369
|
+
props.isCodeModel,
|
|
367
370
|
convertedSchema,
|
|
368
371
|
currentParams,
|
|
369
372
|
doNotCoercePageSize,
|
|
@@ -403,7 +406,7 @@ const DataTable = ({
|
|
|
403
406
|
doNotShowEmptyRows,
|
|
404
407
|
doNotValidateUntouchedRows,
|
|
405
408
|
editingCellSelectAll,
|
|
406
|
-
entities:
|
|
409
|
+
entities: _origEntities = [],
|
|
407
410
|
entitiesAcrossPages: _entitiesAcrossPages,
|
|
408
411
|
entityCount,
|
|
409
412
|
errorParsingUrlString,
|
|
@@ -485,11 +488,13 @@ const DataTable = ({
|
|
|
485
488
|
withTitle = !isSimple
|
|
486
489
|
} = props;
|
|
487
490
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
(reduxFormEntities?.length ? reduxFormEntities : _origEntities) || []
|
|
491
|
+
const _entities = useMemo(
|
|
492
|
+
() => (reduxFormEntities?.length ? reduxFormEntities : _origEntities) || [],
|
|
493
|
+
[_origEntities, reduxFormEntities]
|
|
492
494
|
);
|
|
495
|
+
|
|
496
|
+
const entities = useDeepEqualMemo(_entities);
|
|
497
|
+
|
|
493
498
|
const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
|
|
494
499
|
|
|
495
500
|
// This is because we need to maintain the reduxFormSelectedEntityIdMap and
|