@overmap-ai/core 1.0.38-component-fields.7 → 1.0.38-component-fields.8
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/overmap-core.js
CHANGED
|
@@ -3269,6 +3269,28 @@ const selectLatestRevisionsForComponentTypeForms = restructureCreateSelectorWith
|
|
|
3269
3269
|
}
|
|
3270
3270
|
)
|
|
3271
3271
|
);
|
|
3272
|
+
const selectLatestRevisionsFromComponentTypeIds = restructureCreateSelectorWithArgs(
|
|
3273
|
+
createSelector(
|
|
3274
|
+
[
|
|
3275
|
+
selectUserFormMapping,
|
|
3276
|
+
selectRevisionMapping,
|
|
3277
|
+
(_state, componentTypeIds) => componentTypeIds
|
|
3278
|
+
],
|
|
3279
|
+
(userForms, revisions, componentTypeIds) => {
|
|
3280
|
+
const componentTypeIdsSet = new Set(componentTypeIds);
|
|
3281
|
+
const ret = {};
|
|
3282
|
+
for (const form of Object.values(userForms)) {
|
|
3283
|
+
if (form.component_type && componentTypeIdsSet.has(form.component_type)) {
|
|
3284
|
+
if (!ret[form.component_type]) {
|
|
3285
|
+
ret[form.component_type] = [];
|
|
3286
|
+
}
|
|
3287
|
+
ret[form.component_type].push(_selectLatestFormRevision(revisions, form.offline_id));
|
|
3288
|
+
}
|
|
3289
|
+
}
|
|
3290
|
+
return ret;
|
|
3291
|
+
}
|
|
3292
|
+
)
|
|
3293
|
+
);
|
|
3272
3294
|
const selectLatestRevisionByFormId = createSelector([selectRevisionMapping], (revisions) => {
|
|
3273
3295
|
const latestRevisions = {};
|
|
3274
3296
|
for (const revision of Object.values(revisions)) {
|
|
@@ -12063,6 +12085,7 @@ export {
|
|
|
12063
12085
|
selectLatestRetryTime,
|
|
12064
12086
|
selectLatestRevisionByFormId,
|
|
12065
12087
|
selectLatestRevisionsForComponentTypeForms,
|
|
12088
|
+
selectLatestRevisionsFromComponentTypeIds,
|
|
12066
12089
|
selectMainWorkspace,
|
|
12067
12090
|
selectMapStyle,
|
|
12068
12091
|
selectNumberOfComponentTypesMatchingCaseInsensitiveName,
|