@overmap-ai/core 1.0.38-component-fields.35 → 1.0.38-component-fields.37
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
|
@@ -1737,6 +1737,21 @@ const selectStagesFromStageIds = restructureCreateSelectorWithArgs(
|
|
|
1737
1737
|
return stageIds.map((offline_id) => stageMapping[offline_id]).filter((stage) => !!stage);
|
|
1738
1738
|
})
|
|
1739
1739
|
);
|
|
1740
|
+
const selectStageFormIdsFromStageIds = restructureCreateSelectorWithArgs(
|
|
1741
|
+
createSelector([selectStageMapping, (_state, stageIds) => stageIds], (stageMapping, stageIds) => {
|
|
1742
|
+
const ret = {};
|
|
1743
|
+
for (const stageId of stageIds) {
|
|
1744
|
+
const stage = stageMapping[stageId];
|
|
1745
|
+
if (!stage) {
|
|
1746
|
+
throw new Error("No stage exists with the id " + stageId);
|
|
1747
|
+
}
|
|
1748
|
+
if (stage.user_form) {
|
|
1749
|
+
ret[stageId] = stage.user_form;
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
return ret;
|
|
1753
|
+
})
|
|
1754
|
+
);
|
|
1740
1755
|
const { addStages, updateStages, removeStages, linkStageToForm, unlinkStageToForm } = componentStageSlice.actions;
|
|
1741
1756
|
const componentStageReducer = componentStageSlice.reducer;
|
|
1742
1757
|
const initialState$g = {
|
|
@@ -12216,6 +12231,7 @@ export {
|
|
|
12216
12231
|
selectSortedOrganizationUsers,
|
|
12217
12232
|
selectSortedProjectUsers,
|
|
12218
12233
|
selectSortedProjects,
|
|
12234
|
+
selectStageFormIdsFromStageIds,
|
|
12219
12235
|
selectStageMapping,
|
|
12220
12236
|
selectStages,
|
|
12221
12237
|
selectStagesFromComponentType,
|