@overmap-ai/core 1.0.38-component-fields.36 → 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.
|
@@ -1733,6 +1733,21 @@ var __publicField = (obj, key, value) => {
|
|
|
1733
1733
|
return stageIds.map((offline_id) => stageMapping[offline_id]).filter((stage) => !!stage);
|
|
1734
1734
|
})
|
|
1735
1735
|
);
|
|
1736
|
+
const selectStageFormIdsFromStageIds = restructureCreateSelectorWithArgs(
|
|
1737
|
+
toolkit.createSelector([selectStageMapping, (_state, stageIds) => stageIds], (stageMapping, stageIds) => {
|
|
1738
|
+
const ret = {};
|
|
1739
|
+
for (const stageId of stageIds) {
|
|
1740
|
+
const stage = stageMapping[stageId];
|
|
1741
|
+
if (!stage) {
|
|
1742
|
+
throw new Error("No stage exists with the id " + stageId);
|
|
1743
|
+
}
|
|
1744
|
+
if (stage.user_form) {
|
|
1745
|
+
ret[stageId] = stage.user_form;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
return ret;
|
|
1749
|
+
})
|
|
1750
|
+
);
|
|
1736
1751
|
const { addStages, updateStages, removeStages, linkStageToForm, unlinkStageToForm } = componentStageSlice.actions;
|
|
1737
1752
|
const componentStageReducer = componentStageSlice.reducer;
|
|
1738
1753
|
const initialState$g = {
|
|
@@ -12211,6 +12226,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12211
12226
|
exports2.selectSortedOrganizationUsers = selectSortedOrganizationUsers;
|
|
12212
12227
|
exports2.selectSortedProjectUsers = selectSortedProjectUsers;
|
|
12213
12228
|
exports2.selectSortedProjects = selectSortedProjects;
|
|
12229
|
+
exports2.selectStageFormIdsFromStageIds = selectStageFormIdsFromStageIds;
|
|
12214
12230
|
exports2.selectStageMapping = selectStageMapping;
|
|
12215
12231
|
exports2.selectStages = selectStages;
|
|
12216
12232
|
exports2.selectStagesFromComponentType = selectStagesFromComponentType;
|