@teselagen/ui 0.8.6-beta.18 → 0.8.6-beta.19
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
CHANGED
|
@@ -19884,14 +19884,13 @@ function applyOrderBy(records, _order_by) {
|
|
|
19884
19884
|
__name(applyOrderBy, "applyOrderBy");
|
|
19885
19885
|
function restoreEntitiesFromLocalFilter(ents) {
|
|
19886
19886
|
return ents.map((entity) => {
|
|
19887
|
-
const newEnt = __spreadValues({}, entity);
|
|
19888
19887
|
forEach(entity, (val, key) => {
|
|
19889
19888
|
if (key.startsWith("___original___")) {
|
|
19890
|
-
|
|
19891
|
-
delete
|
|
19889
|
+
entity[key.slice("___original___".length)] = val;
|
|
19890
|
+
delete entity[key];
|
|
19892
19891
|
}
|
|
19893
19892
|
});
|
|
19894
|
-
return
|
|
19893
|
+
return entity;
|
|
19895
19894
|
});
|
|
19896
19895
|
}
|
|
19897
19896
|
__name(restoreEntitiesFromLocalFilter, "restoreEntitiesFromLocalFilter");
|
|
@@ -20231,14 +20230,15 @@ function getQueryParams({
|
|
|
20231
20230
|
__name(getQueryParams, "getQueryParams");
|
|
20232
20231
|
function prepEntitiesForLocalFilter({ entities, ccFields }) {
|
|
20233
20232
|
const r2 = entities.map((entity) => {
|
|
20233
|
+
const newEnt = __spreadValues({}, entity);
|
|
20234
20234
|
forEach(ccFields, ({ getValueToFilterOn, path: path2 }) => {
|
|
20235
20235
|
if (getValueToFilterOn) {
|
|
20236
|
-
|
|
20237
|
-
const value = getValueToFilterOn(
|
|
20238
|
-
|
|
20236
|
+
newEnt["___original___" + path2] = newEnt[path2];
|
|
20237
|
+
const value = getValueToFilterOn(newEnt);
|
|
20238
|
+
newEnt[path2] = value;
|
|
20239
20239
|
}
|
|
20240
20240
|
});
|
|
20241
|
-
return
|
|
20241
|
+
return newEnt;
|
|
20242
20242
|
});
|
|
20243
20243
|
return r2;
|
|
20244
20244
|
}
|
package/index.es.js
CHANGED
|
@@ -19866,14 +19866,13 @@ function applyOrderBy(records, _order_by) {
|
|
|
19866
19866
|
__name(applyOrderBy, "applyOrderBy");
|
|
19867
19867
|
function restoreEntitiesFromLocalFilter(ents) {
|
|
19868
19868
|
return ents.map((entity) => {
|
|
19869
|
-
const newEnt = __spreadValues({}, entity);
|
|
19870
19869
|
forEach(entity, (val, key) => {
|
|
19871
19870
|
if (key.startsWith("___original___")) {
|
|
19872
|
-
|
|
19873
|
-
delete
|
|
19871
|
+
entity[key.slice("___original___".length)] = val;
|
|
19872
|
+
delete entity[key];
|
|
19874
19873
|
}
|
|
19875
19874
|
});
|
|
19876
|
-
return
|
|
19875
|
+
return entity;
|
|
19877
19876
|
});
|
|
19878
19877
|
}
|
|
19879
19878
|
__name(restoreEntitiesFromLocalFilter, "restoreEntitiesFromLocalFilter");
|
|
@@ -20213,14 +20212,15 @@ function getQueryParams({
|
|
|
20213
20212
|
__name(getQueryParams, "getQueryParams");
|
|
20214
20213
|
function prepEntitiesForLocalFilter({ entities, ccFields }) {
|
|
20215
20214
|
const r2 = entities.map((entity) => {
|
|
20215
|
+
const newEnt = __spreadValues({}, entity);
|
|
20216
20216
|
forEach(ccFields, ({ getValueToFilterOn, path: path2 }) => {
|
|
20217
20217
|
if (getValueToFilterOn) {
|
|
20218
|
-
|
|
20219
|
-
const value = getValueToFilterOn(
|
|
20220
|
-
|
|
20218
|
+
newEnt["___original___" + path2] = newEnt[path2];
|
|
20219
|
+
const value = getValueToFilterOn(newEnt);
|
|
20220
|
+
newEnt[path2] = value;
|
|
20221
20221
|
}
|
|
20222
20222
|
});
|
|
20223
|
-
return
|
|
20223
|
+
return newEnt;
|
|
20224
20224
|
});
|
|
20225
20225
|
return r2;
|
|
20226
20226
|
}
|
package/package.json
CHANGED
|
@@ -344,13 +344,12 @@ function applyOrderBy(records, _order_by) {
|
|
|
344
344
|
|
|
345
345
|
function restoreEntitiesFromLocalFilter(ents) {
|
|
346
346
|
return ents.map(entity => {
|
|
347
|
-
const newEnt = { ...entity };
|
|
348
347
|
forEach(entity, (val, key) => {
|
|
349
348
|
if (key.startsWith("___original___")) {
|
|
350
|
-
|
|
351
|
-
delete
|
|
349
|
+
entity[key.slice("___original___".length)] = val;
|
|
350
|
+
delete entity[key];
|
|
352
351
|
}
|
|
353
352
|
});
|
|
354
|
-
return
|
|
353
|
+
return entity;
|
|
355
354
|
});
|
|
356
355
|
}
|
|
@@ -420,15 +420,16 @@ export function getQueryParams({
|
|
|
420
420
|
function prepEntitiesForLocalFilter({ entities, ccFields }) {
|
|
421
421
|
// Prepare entities for local filtering by mapping over them and applying necessary transformations
|
|
422
422
|
const r = entities.map(entity => {
|
|
423
|
+
const newEnt = { ...entity };
|
|
423
424
|
// Apply any necessary transformations using ccFields
|
|
424
425
|
forEach(ccFields, ({ getValueToFilterOn, path }) => {
|
|
425
426
|
if (getValueToFilterOn) {
|
|
426
|
-
|
|
427
|
-
const value = getValueToFilterOn(
|
|
428
|
-
|
|
427
|
+
newEnt["___original___" + path] = newEnt[path];
|
|
428
|
+
const value = getValueToFilterOn(newEnt);
|
|
429
|
+
newEnt[path] = value;
|
|
429
430
|
}
|
|
430
431
|
});
|
|
431
|
-
return
|
|
432
|
+
return newEnt;
|
|
432
433
|
});
|
|
433
434
|
return r;
|
|
434
435
|
}
|