@overmap-ai/core 1.0.58-export-overmap-reducer.15 → 1.0.58-export-overmap-reducer.17
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/enums/index.d.ts +0 -1
- package/dist/overmap-core.js +34 -178
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +34 -178
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/store/slices/index.d.ts +0 -1
- package/dist/store/slices/projectSlice.d.ts +2 -10
- package/dist/store/slices/settingsSlice.d.ts +2 -23
- package/dist/store/store.d.ts +1 -2
- package/dist/typings/models/projects.d.ts +0 -4
- package/dist/typings/models/store.d.ts +1 -2
- package/package.json +1 -1
- package/dist/enums/map.d.ts +0 -6
- package/dist/store/slices/mapSlice.d.ts +0 -23
|
@@ -425,13 +425,6 @@ var __publicField = (obj, key, value) => {
|
|
|
425
425
|
IssueStatus2[IssueStatus2["DONE"] = 4] = "DONE";
|
|
426
426
|
return IssueStatus2;
|
|
427
427
|
})(IssueStatus || {});
|
|
428
|
-
var MapStyle = /* @__PURE__ */ ((MapStyle2) => {
|
|
429
|
-
MapStyle2["LIGHT"] = "LIGHT";
|
|
430
|
-
MapStyle2["DARK"] = "DARK";
|
|
431
|
-
MapStyle2["SATELLITE"] = "SATELLITE";
|
|
432
|
-
MapStyle2["NONE"] = "NONE";
|
|
433
|
-
return MapStyle2;
|
|
434
|
-
})(MapStyle || {});
|
|
435
428
|
const VERSION_REDUCER_KEY$1 = "versioning";
|
|
436
429
|
const latestVersion = () => migrations.length - 1;
|
|
437
430
|
const initialVersioning = (state) => {
|
|
@@ -458,15 +451,15 @@ var __publicField = (obj, key, value) => {
|
|
|
458
451
|
};
|
|
459
452
|
const migrations = [initialVersioning, signOut, signOut, createOutboxState];
|
|
460
453
|
const manifest = Object.fromEntries(migrations.map((migration2, i) => [i, wrapMigration(migration2)]));
|
|
461
|
-
const initialState$
|
|
454
|
+
const initialState$r = {
|
|
462
455
|
accessToken: "",
|
|
463
456
|
refreshToken: "",
|
|
464
457
|
isLoggedIn: false
|
|
465
458
|
};
|
|
466
459
|
const authSlice = toolkit.createSlice({
|
|
467
460
|
name: "auth",
|
|
468
|
-
initialState: initialState$
|
|
469
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
461
|
+
initialState: initialState$r,
|
|
462
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$r)),
|
|
470
463
|
reducers: {
|
|
471
464
|
setTokens: (state, action) => {
|
|
472
465
|
state.accessToken = action.payload.accessToken;
|
|
@@ -1110,7 +1103,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1110
1103
|
return getLocalDateString(date);
|
|
1111
1104
|
return relative.format(days, "days");
|
|
1112
1105
|
});
|
|
1113
|
-
const initialState$
|
|
1106
|
+
const initialState$q = {
|
|
1114
1107
|
categories: {},
|
|
1115
1108
|
usedCategoryColors: [],
|
|
1116
1109
|
categoryVisibility: {
|
|
@@ -1120,8 +1113,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1120
1113
|
};
|
|
1121
1114
|
const categorySlice = toolkit.createSlice({
|
|
1122
1115
|
name: "categories",
|
|
1123
|
-
initialState: initialState$
|
|
1124
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1116
|
+
initialState: initialState$q,
|
|
1117
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$q)),
|
|
1125
1118
|
reducers: {
|
|
1126
1119
|
setCategories: (state, action) => {
|
|
1127
1120
|
if (!Array.isArray(action.payload))
|
|
@@ -1305,15 +1298,15 @@ var __publicField = (obj, key, value) => {
|
|
|
1305
1298
|
delete state.attachments[attachmentId];
|
|
1306
1299
|
}
|
|
1307
1300
|
}
|
|
1308
|
-
const initialState$
|
|
1301
|
+
const initialState$p = {
|
|
1309
1302
|
assetTypes: {},
|
|
1310
1303
|
hiddenAssetTypeIds: {},
|
|
1311
1304
|
attachments: {}
|
|
1312
1305
|
};
|
|
1313
1306
|
const assetTypeSlice = toolkit.createSlice({
|
|
1314
1307
|
name: "assetTypes",
|
|
1315
|
-
initialState: initialState$
|
|
1316
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1308
|
+
initialState: initialState$p,
|
|
1309
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$p)),
|
|
1317
1310
|
reducers: {
|
|
1318
1311
|
addAssetType: (state, action) => {
|
|
1319
1312
|
state.assetTypes[action.payload.offline_id] = action.payload;
|
|
@@ -1423,14 +1416,14 @@ var __publicField = (obj, key, value) => {
|
|
|
1423
1416
|
)
|
|
1424
1417
|
);
|
|
1425
1418
|
const assetTypeReducer = assetTypeSlice.reducer;
|
|
1426
|
-
const initialState$
|
|
1419
|
+
const initialState$o = {
|
|
1427
1420
|
assets: {},
|
|
1428
1421
|
attachments: {}
|
|
1429
1422
|
};
|
|
1430
1423
|
const assetSlice = toolkit.createSlice({
|
|
1431
1424
|
name: "assets",
|
|
1432
|
-
initialState: initialState$
|
|
1433
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1425
|
+
initialState: initialState$o,
|
|
1426
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$o)),
|
|
1434
1427
|
reducers: {
|
|
1435
1428
|
addAsset: (state, action) => {
|
|
1436
1429
|
state.assets[action.payload.offline_id] = action.payload;
|
|
@@ -1603,13 +1596,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1603
1596
|
)
|
|
1604
1597
|
);
|
|
1605
1598
|
const assetReducer = assetSlice.reducer;
|
|
1606
|
-
const initialState$
|
|
1599
|
+
const initialState$n = {
|
|
1607
1600
|
completionsByAssetId: {}
|
|
1608
1601
|
};
|
|
1609
1602
|
const assetStageCompletionSlice = toolkit.createSlice({
|
|
1610
1603
|
name: "assetStageCompletions",
|
|
1611
|
-
initialState: initialState$
|
|
1612
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1604
|
+
initialState: initialState$n,
|
|
1605
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$n)),
|
|
1613
1606
|
reducers: {
|
|
1614
1607
|
addStageCompletion: (state, action) => {
|
|
1615
1608
|
let stageToCompletionDateMapping = state.completionsByAssetId[action.payload.asset];
|
|
@@ -1658,13 +1651,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1658
1651
|
return Object.keys(state.assetStageCompletionReducer.completionsByAssetId[asset.offline_id] ?? {});
|
|
1659
1652
|
};
|
|
1660
1653
|
const assetStageCompletionReducer = assetStageCompletionSlice.reducer;
|
|
1661
|
-
const initialState$
|
|
1654
|
+
const initialState$m = {
|
|
1662
1655
|
stages: {}
|
|
1663
1656
|
};
|
|
1664
1657
|
const assetStageSlice = toolkit.createSlice({
|
|
1665
1658
|
name: "assetStages",
|
|
1666
|
-
initialState: initialState$
|
|
1667
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
1659
|
+
initialState: initialState$m,
|
|
1660
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$m)),
|
|
1668
1661
|
reducers: {
|
|
1669
1662
|
addStages: (state, action) => {
|
|
1670
1663
|
Object.assign(state.stages, toOfflineIdRecord(action.payload));
|
|
@@ -1765,13 +1758,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1765
1758
|
);
|
|
1766
1759
|
const { addStages, updateStages, removeStages, linkStageToForm, unlinkStageToForm } = assetStageSlice.actions;
|
|
1767
1760
|
const assetStageReducer = assetStageSlice.reducer;
|
|
1768
|
-
const initialState$
|
|
1761
|
+
const initialState$l = {
|
|
1769
1762
|
workspaces: {},
|
|
1770
1763
|
activeWorkspaceId: null
|
|
1771
1764
|
};
|
|
1772
1765
|
const workspaceSlice = toolkit.createSlice({
|
|
1773
1766
|
name: "workspace",
|
|
1774
|
-
initialState: initialState$
|
|
1767
|
+
initialState: initialState$l,
|
|
1775
1768
|
// The `reducers` field lets us define reducers and generate associated actions
|
|
1776
1769
|
reducers: {
|
|
1777
1770
|
setWorkspaces: (state, action) => {
|
|
@@ -1828,7 +1821,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1828
1821
|
);
|
|
1829
1822
|
const workspaceReducer = workspaceSlice.reducer;
|
|
1830
1823
|
const maxRecentIssues = 10;
|
|
1831
|
-
const initialState$
|
|
1824
|
+
const initialState$k = {
|
|
1832
1825
|
issues: {},
|
|
1833
1826
|
attachments: {},
|
|
1834
1827
|
comments: {},
|
|
@@ -1840,9 +1833,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1840
1833
|
};
|
|
1841
1834
|
const issueSlice = toolkit.createSlice({
|
|
1842
1835
|
name: "issues",
|
|
1843
|
-
initialState: initialState$
|
|
1836
|
+
initialState: initialState$k,
|
|
1844
1837
|
extraReducers: (builder) => builder.addCase("RESET", (state) => {
|
|
1845
|
-
Object.assign(state, initialState$
|
|
1838
|
+
Object.assign(state, initialState$k);
|
|
1846
1839
|
}),
|
|
1847
1840
|
reducers: {
|
|
1848
1841
|
setIssues: (state, action) => {
|
|
@@ -2278,14 +2271,14 @@ var __publicField = (obj, key, value) => {
|
|
|
2278
2271
|
}
|
|
2279
2272
|
);
|
|
2280
2273
|
const issueReducer = issueSlice.reducer;
|
|
2281
|
-
const initialState$
|
|
2274
|
+
const initialState$j = {
|
|
2282
2275
|
issueTypes: {}
|
|
2283
2276
|
};
|
|
2284
2277
|
const issueTypeSlice = toolkit.createSlice({
|
|
2285
2278
|
name: "issueTypes",
|
|
2286
|
-
initialState: initialState$
|
|
2279
|
+
initialState: initialState$j,
|
|
2287
2280
|
extraReducers: (builder) => builder.addCase("RESET", (state) => {
|
|
2288
|
-
Object.assign(state, initialState$
|
|
2281
|
+
Object.assign(state, initialState$j);
|
|
2289
2282
|
}),
|
|
2290
2283
|
reducers: {
|
|
2291
2284
|
setIssueTypes: (state, action) => {
|
|
@@ -2352,15 +2345,15 @@ var __publicField = (obj, key, value) => {
|
|
|
2352
2345
|
return ((_a2 = selectIssuesOfIssueType(issueTypeId)(state)) == null ? void 0 : _a2.length) ?? 0;
|
|
2353
2346
|
};
|
|
2354
2347
|
const issueTypeReducer = issueTypeSlice.reducer;
|
|
2355
|
-
const initialState$
|
|
2348
|
+
const initialState$i = {
|
|
2356
2349
|
s3Urls: {}
|
|
2357
2350
|
};
|
|
2358
2351
|
const msPerHour = 1e3 * 60 * 60;
|
|
2359
2352
|
const msPerWeek = msPerHour * 24 * 7;
|
|
2360
2353
|
const fileSlice = toolkit.createSlice({
|
|
2361
2354
|
name: "file",
|
|
2362
|
-
initialState: initialState$
|
|
2363
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$
|
|
2355
|
+
initialState: initialState$i,
|
|
2356
|
+
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$i)),
|
|
2364
2357
|
reducers: {
|
|
2365
2358
|
setUploadUrl: (state, action) => {
|
|
2366
2359
|
const { url, fields, sha1 } = action.payload;
|
|
@@ -2387,33 +2380,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2387
2380
|
return url;
|
|
2388
2381
|
};
|
|
2389
2382
|
const fileReducer = fileSlice.reducer;
|
|
2390
|
-
const initialState$i = {
|
|
2391
|
-
// TODO: Change first MapStyle.SATELLITE to MaptStyle.None when project creation map is fixed
|
|
2392
|
-
mapStyle: MapStyle.SATELLITE,
|
|
2393
|
-
showTooltips: false,
|
|
2394
|
-
centerMapToProject: false
|
|
2395
|
-
};
|
|
2396
|
-
const mapSlice = toolkit.createSlice({
|
|
2397
|
-
name: "map",
|
|
2398
|
-
initialState: initialState$i,
|
|
2399
|
-
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$i)),
|
|
2400
|
-
reducers: {
|
|
2401
|
-
setMapStyle: (state, action) => {
|
|
2402
|
-
state.mapStyle = action.payload;
|
|
2403
|
-
},
|
|
2404
|
-
setShowTooltips: (state, action) => {
|
|
2405
|
-
state.showTooltips = action.payload;
|
|
2406
|
-
},
|
|
2407
|
-
setCenterMapToProject: (state, action) => {
|
|
2408
|
-
state.centerMapToProject = action.payload;
|
|
2409
|
-
}
|
|
2410
|
-
}
|
|
2411
|
-
});
|
|
2412
|
-
const { setMapStyle, setShowTooltips, setCenterMapToProject } = mapSlice.actions;
|
|
2413
|
-
const selectMapStyle = (state) => state.mapReducer.mapStyle;
|
|
2414
|
-
const selectShowTooltips = (state) => state.mapReducer.showTooltips;
|
|
2415
|
-
const selectCenterMapToProject = (state) => state.mapReducer.centerMapToProject;
|
|
2416
|
-
const mapReducer = mapSlice.reducer;
|
|
2417
2383
|
var ProjectAccessLevel = /* @__PURE__ */ ((ProjectAccessLevel2) => {
|
|
2418
2384
|
ProjectAccessLevel2[ProjectAccessLevel2["BASIC"] = 0] = "BASIC";
|
|
2419
2385
|
ProjectAccessLevel2[ProjectAccessLevel2["ADMIN"] = 2] = "ADMIN";
|
|
@@ -2442,11 +2408,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2442
2408
|
IssueUpdateChange2["DUE_DATE"] = "due_date";
|
|
2443
2409
|
return IssueUpdateChange2;
|
|
2444
2410
|
})(IssueUpdateChange || {});
|
|
2445
|
-
var ProjectType = /* @__PURE__ */ ((ProjectType2) => {
|
|
2446
|
-
ProjectType2[ProjectType2["PERSONAL"] = 0] = "PERSONAL";
|
|
2447
|
-
ProjectType2[ProjectType2["ORGANIZATION"] = 2] = "ORGANIZATION";
|
|
2448
|
-
return ProjectType2;
|
|
2449
|
-
})(ProjectType || {});
|
|
2450
2411
|
var VerificationCodeType = /* @__PURE__ */ ((VerificationCodeType2) => {
|
|
2451
2412
|
VerificationCodeType2[VerificationCodeType2["USER_REGISTRATION"] = 0] = "USER_REGISTRATION";
|
|
2452
2413
|
VerificationCodeType2[VerificationCodeType2["APPLICATION_INVITE"] = 2] = "APPLICATION_INVITE";
|
|
@@ -2744,9 +2705,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2744
2705
|
const initialState$d = {
|
|
2745
2706
|
projects: {},
|
|
2746
2707
|
activeProjectId: null,
|
|
2747
|
-
recentProjectIds: [],
|
|
2748
|
-
recentSearchableQueries: [],
|
|
2749
|
-
createProjectType: ProjectType.PERSONAL,
|
|
2750
2708
|
attachments: {}
|
|
2751
2709
|
};
|
|
2752
2710
|
const projectSlice = toolkit.createSlice({
|
|
@@ -2759,20 +2717,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2759
2717
|
projectsMap[project.id] = project;
|
|
2760
2718
|
});
|
|
2761
2719
|
state.projects = projectsMap;
|
|
2762
|
-
if (state.recentProjectIds.length === 0) {
|
|
2763
|
-
state.recentProjectIds = action.payload.map((project) => project.id);
|
|
2764
|
-
} else {
|
|
2765
|
-
state.recentProjectIds.unshift(
|
|
2766
|
-
...action.payload.map((project) => project.id).filter((id) => !state.recentProjectIds.includes(id))
|
|
2767
|
-
);
|
|
2768
|
-
}
|
|
2769
2720
|
},
|
|
2770
2721
|
setActiveProjectId: (state, action) => {
|
|
2771
2722
|
state.activeProjectId = action.payload;
|
|
2772
|
-
if (action.payload !== null) {
|
|
2773
|
-
state.recentProjectIds = state.recentProjectIds.filter((id) => id !== action.payload);
|
|
2774
|
-
state.recentProjectIds.push(action.payload);
|
|
2775
|
-
}
|
|
2776
2723
|
},
|
|
2777
2724
|
updateOrCreateProject: (state, action) => {
|
|
2778
2725
|
state.projects[action.payload.id] = action.payload;
|
|
@@ -2784,12 +2731,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2784
2731
|
state.projects[project.id] = project;
|
|
2785
2732
|
});
|
|
2786
2733
|
},
|
|
2787
|
-
setCreateProjectType: (state, action) => {
|
|
2788
|
-
state.createProjectType = action.payload;
|
|
2789
|
-
},
|
|
2790
2734
|
deleteProject: (state, action) => {
|
|
2791
2735
|
delete state.projects[action.payload.id];
|
|
2792
|
-
state.recentProjectIds = state.recentProjectIds.filter((id) => id !== action.payload.id);
|
|
2793
2736
|
},
|
|
2794
2737
|
acceptProjectInvite: (state, action) => {
|
|
2795
2738
|
if (action.payload in state.projects) {
|
|
@@ -2835,7 +2778,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2835
2778
|
updateOrCreateProject,
|
|
2836
2779
|
updateOrCreateProjects: addOrReplaceProjects,
|
|
2837
2780
|
setActiveProjectId,
|
|
2838
|
-
setCreateProjectType,
|
|
2839
2781
|
deleteProject,
|
|
2840
2782
|
acceptProjectInvite,
|
|
2841
2783
|
addActiveProjectIssuesCount,
|
|
@@ -2859,9 +2801,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2859
2801
|
}
|
|
2860
2802
|
return state.projectReducer.projects[activeProjectId] ?? null;
|
|
2861
2803
|
};
|
|
2862
|
-
const selectRecentProjects = (state) => {
|
|
2863
|
-
return state.projectReducer.recentProjectIds;
|
|
2864
|
-
};
|
|
2865
2804
|
const selectProject = restructureCreateSelectorWithArgs(
|
|
2866
2805
|
toolkit.createSelector(
|
|
2867
2806
|
[selectProjects, (_state, projectId) => projectId],
|
|
@@ -2883,7 +2822,6 @@ var __publicField = (obj, key, value) => {
|
|
|
2883
2822
|
});
|
|
2884
2823
|
}
|
|
2885
2824
|
);
|
|
2886
|
-
const selectCreateProjectType = (state) => state.projectReducer.createProjectType;
|
|
2887
2825
|
const projectReducer = projectSlice.reducer;
|
|
2888
2826
|
const selectProjectUsersIds = toolkit.createSelector(
|
|
2889
2827
|
[selectProjectAccesses],
|
|
@@ -3243,75 +3181,21 @@ var __publicField = (obj, key, value) => {
|
|
|
3243
3181
|
const selectRehydrated = (state) => state.rehydratedReducer.isRehydrated;
|
|
3244
3182
|
const rehydratedReducer = rehydratedSlice.reducer;
|
|
3245
3183
|
const initialState$8 = {
|
|
3246
|
-
|
|
3247
|
-
// TODO: marked for deletion
|
|
3248
|
-
placementMode: false,
|
|
3249
|
-
enableClustering: false,
|
|
3250
|
-
svgLayout: false,
|
|
3251
|
-
expandedSections: {
|
|
3252
|
-
// TODO: marked for deletion
|
|
3253
|
-
Issues: true,
|
|
3254
|
-
"Map Layers": false,
|
|
3255
|
-
Components: false,
|
|
3256
|
-
Experimental: false
|
|
3257
|
-
},
|
|
3258
|
-
appearance: "dark",
|
|
3259
|
-
isFetchingInitialData: false,
|
|
3260
|
-
// TODO: this is being used only in the custom hook in /web called useRetrySDK, which has something to do with licences
|
|
3261
|
-
// this has no purpose of being put into /core, it should be removed from here. But licences need to be fixed before this is done.
|
|
3262
|
-
isLoading: false
|
|
3184
|
+
isFetchingInitialData: false
|
|
3263
3185
|
};
|
|
3264
3186
|
const settingSlice = toolkit.createSlice({
|
|
3265
3187
|
name: "settings",
|
|
3266
3188
|
initialState: initialState$8,
|
|
3267
3189
|
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$8)),
|
|
3268
3190
|
reducers: {
|
|
3269
|
-
setEnableDuplicateIssues: (state, action) => {
|
|
3270
|
-
state.useIssueTemplate = action.payload;
|
|
3271
|
-
},
|
|
3272
|
-
setEnablePlacementMode: (state, action) => {
|
|
3273
|
-
state.placementMode = action.payload;
|
|
3274
|
-
},
|
|
3275
|
-
setEnableSvgLayout: (state, action) => {
|
|
3276
|
-
state.svgLayout = action.payload;
|
|
3277
|
-
},
|
|
3278
|
-
setSectionExpanded: (state, action) => {
|
|
3279
|
-
Object.assign(state.expandedSections, action.payload);
|
|
3280
|
-
},
|
|
3281
|
-
setEnableClustering: (state, action) => {
|
|
3282
|
-
state.enableClustering = action.payload;
|
|
3283
|
-
},
|
|
3284
|
-
setAppearance: (state, action) => {
|
|
3285
|
-
state.appearance = action.payload;
|
|
3286
|
-
},
|
|
3287
3191
|
setIsFetchingInitialData: (state, action) => {
|
|
3288
3192
|
state.isFetchingInitialData = action.payload;
|
|
3289
|
-
},
|
|
3290
|
-
setIsLoading: (state, action) => {
|
|
3291
|
-
state.isLoading = action.payload;
|
|
3292
3193
|
}
|
|
3293
3194
|
}
|
|
3294
3195
|
});
|
|
3295
|
-
const {
|
|
3296
|
-
setEnableDuplicateIssues,
|
|
3297
|
-
setEnablePlacementMode,
|
|
3298
|
-
setEnableSvgLayout,
|
|
3299
|
-
// TODO: needs to actually be used in /web
|
|
3300
|
-
setSectionExpanded,
|
|
3301
|
-
setEnableClustering,
|
|
3302
|
-
setAppearance,
|
|
3303
|
-
setIsFetchingInitialData,
|
|
3304
|
-
setIsLoading
|
|
3305
|
-
} = settingSlice.actions;
|
|
3306
|
-
const selectEnablePlacementMode = (state) => state.settingReducer.placementMode;
|
|
3307
|
-
const selectEnableDuplicateIssues = (state) => state.settingReducer.useIssueTemplate;
|
|
3308
|
-
const selectEnableSvgLayout = (state) => state.settingReducer.svgLayout;
|
|
3309
|
-
const selectExpandedSections = (state) => state.settingReducer.expandedSections;
|
|
3310
|
-
const selectEnableClustering = (state) => state.settingReducer.enableClustering;
|
|
3311
|
-
const selectAppearance = (state) => state.settingReducer.appearance;
|
|
3196
|
+
const { setIsFetchingInitialData } = settingSlice.actions;
|
|
3312
3197
|
const settingReducer = settingSlice.reducer;
|
|
3313
3198
|
const selectIsFetchingInitialData = (state) => state.settingReducer.isFetchingInitialData;
|
|
3314
|
-
const selectIsLoading = (state) => state.settingReducer.isLoading;
|
|
3315
3199
|
const formRevisionSortFn = (formRevisionA, formRevisionB) => {
|
|
3316
3200
|
const revisionA = formRevisionA.revision;
|
|
3317
3201
|
const revisionB = formRevisionB.revision;
|
|
@@ -4294,7 +4178,6 @@ var __publicField = (obj, key, value) => {
|
|
|
4294
4178
|
assetTypeReducer,
|
|
4295
4179
|
issueReducer,
|
|
4296
4180
|
issueTypeReducer,
|
|
4297
|
-
mapReducer,
|
|
4298
4181
|
organizationReducer,
|
|
4299
4182
|
outboxReducer,
|
|
4300
4183
|
projectReducer,
|
|
@@ -11430,8 +11313,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11430
11313
|
Theme.displayName = "Theme";
|
|
11431
11314
|
const ThemeRoot = React__namespace.forwardRef((props, forwardedRef) => {
|
|
11432
11315
|
const { appearance: appearanceProp = themePropDefs.appearance.default, accentColor: accentColorProp = themePropDefs.accentColor.default, grayColor: grayColorProp = themePropDefs.grayColor.default, panelBackground: panelBackgroundProp = themePropDefs.panelBackground.default, radius: radiusProp2 = themePropDefs.radius.default, scaling: scalingProp = themePropDefs.scaling.default, hasBackground = themePropDefs.hasBackground.default, ...rootProps } = props;
|
|
11433
|
-
const [appearance,
|
|
11434
|
-
React__namespace.useEffect(() =>
|
|
11316
|
+
const [appearance, setAppearance] = React__namespace.useState(appearanceProp);
|
|
11317
|
+
React__namespace.useEffect(() => setAppearance(appearanceProp), [appearanceProp]);
|
|
11435
11318
|
const [accentColor, setAccentColor] = React__namespace.useState(accentColorProp);
|
|
11436
11319
|
React__namespace.useEffect(() => setAccentColor(accentColorProp), [accentColorProp]);
|
|
11437
11320
|
const [grayColor, setGrayColor] = React__namespace.useState(grayColorProp);
|
|
@@ -11476,7 +11359,7 @@ body { background-color: var(--color-page-background); }
|
|
|
11476
11359
|
radius,
|
|
11477
11360
|
scaling,
|
|
11478
11361
|
//
|
|
11479
|
-
onAppearanceChange:
|
|
11362
|
+
onAppearanceChange: setAppearance,
|
|
11480
11363
|
onAccentColorChange: setAccentColor,
|
|
11481
11364
|
onGrayColorChange: setGrayColor,
|
|
11482
11365
|
onPanelBackgroundChange: setPanelBackground,
|
|
@@ -19901,7 +19784,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
19901
19784
|
exports2.LicenseService = LicenseService;
|
|
19902
19785
|
exports2.LicenseStatus = LicenseStatus;
|
|
19903
19786
|
exports2.MainService = MainService;
|
|
19904
|
-
exports2.MapStyle = MapStyle;
|
|
19905
19787
|
exports2.MultiSelectField = MultiSelectField;
|
|
19906
19788
|
exports2.MultiSelectInput = MultiSelectInput;
|
|
19907
19789
|
exports2.MultiStringField = MultiStringField;
|
|
@@ -19926,7 +19808,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
19926
19808
|
exports2.ProjectAttachmentService = ProjectAttachmentService;
|
|
19927
19809
|
exports2.ProjectFileService = ProjectFileService;
|
|
19928
19810
|
exports2.ProjectService = ProjectService;
|
|
19929
|
-
exports2.ProjectType = ProjectType;
|
|
19930
19811
|
exports2.QrField = QrField;
|
|
19931
19812
|
exports2.QrInput = QrInput;
|
|
19932
19813
|
exports2.QrScanner = QrScanner;
|
|
@@ -20112,8 +19993,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20112
19993
|
exports2.literalToCoordinates = literalToCoordinates;
|
|
20113
19994
|
exports2.logOnlyOnce = logOnlyOnce;
|
|
20114
19995
|
exports2.makeClient = makeClient;
|
|
20115
|
-
exports2.mapReducer = mapReducer;
|
|
20116
|
-
exports2.mapSlice = mapSlice;
|
|
20117
19996
|
exports2.markAsDeleted = markAsDeleted;
|
|
20118
19997
|
exports2.markForDeletion = markForDeletion;
|
|
20119
19998
|
exports2.markerCoordinatesToText = markerCoordinatesToText;
|
|
@@ -20208,7 +20087,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20208
20087
|
exports2.selectAllDocumentAttachments = selectAllDocumentAttachments;
|
|
20209
20088
|
exports2.selectAllProjectAttachments = selectAllProjectAttachments;
|
|
20210
20089
|
exports2.selectAncestorIdsOfDocument = selectAncestorIdsOfDocument;
|
|
20211
|
-
exports2.selectAppearance = selectAppearance;
|
|
20212
20090
|
exports2.selectAsset = selectAsset;
|
|
20213
20091
|
exports2.selectAssetAttachment = selectAssetAttachment;
|
|
20214
20092
|
exports2.selectAssetAttachmentMapping = selectAssetAttachmentMapping;
|
|
@@ -20243,7 +20121,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20243
20121
|
exports2.selectCategory = selectCategory;
|
|
20244
20122
|
exports2.selectCategoryMapping = selectCategoryMapping;
|
|
20245
20123
|
exports2.selectCategoryVisibility = selectCategoryVisibility;
|
|
20246
|
-
exports2.selectCenterMapToProject = selectCenterMapToProject;
|
|
20247
20124
|
exports2.selectCommentMapping = selectCommentMapping;
|
|
20248
20125
|
exports2.selectCommentsOfIssue = selectCommentsOfIssue;
|
|
20249
20126
|
exports2.selectCompletedStageIdsForAsset = selectCompletedStageIdsForAsset;
|
|
@@ -20251,7 +20128,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20251
20128
|
exports2.selectConversation = selectConversation;
|
|
20252
20129
|
exports2.selectConversationMapping = selectConversationMapping;
|
|
20253
20130
|
exports2.selectConversations = selectConversations;
|
|
20254
|
-
exports2.selectCreateProjectType = selectCreateProjectType;
|
|
20255
20131
|
exports2.selectCurrentUser = selectCurrentUser;
|
|
20256
20132
|
exports2.selectDeletedRequests = selectDeletedRequests;
|
|
20257
20133
|
exports2.selectDocument = selectDocument;
|
|
@@ -20260,13 +20136,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20260
20136
|
exports2.selectDocuments = selectDocuments;
|
|
20261
20137
|
exports2.selectDocumentsMapping = selectDocumentsMapping;
|
|
20262
20138
|
exports2.selectEmailDomainsAsMapping = selectEmailDomainsAsMapping;
|
|
20263
|
-
exports2.selectEnableClustering = selectEnableClustering;
|
|
20264
|
-
exports2.selectEnableDuplicateIssues = selectEnableDuplicateIssues;
|
|
20265
|
-
exports2.selectEnablePlacementMode = selectEnablePlacementMode;
|
|
20266
|
-
exports2.selectEnableSvgLayout = selectEnableSvgLayout;
|
|
20267
20139
|
exports2.selectEnabledProjectFileMapping = selectEnabledProjectFileMapping;
|
|
20268
20140
|
exports2.selectEnabledProjectFiles = selectEnabledProjectFiles;
|
|
20269
|
-
exports2.selectExpandedSections = selectExpandedSections;
|
|
20270
20141
|
exports2.selectFavouriteProjects = selectFavouriteProjects;
|
|
20271
20142
|
exports2.selectFileAttachmentsOfIssue = selectFileAttachmentsOfIssue;
|
|
20272
20143
|
exports2.selectFilteredForms = selectFilteredForms;
|
|
@@ -20294,7 +20165,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20294
20165
|
exports2.selectHiddenCategoryCount = selectHiddenCategoryCount;
|
|
20295
20166
|
exports2.selectIsFetchingInitialData = selectIsFetchingInitialData;
|
|
20296
20167
|
exports2.selectIsImportingProjectFile = selectIsImportingProjectFile;
|
|
20297
|
-
exports2.selectIsLoading = selectIsLoading;
|
|
20298
20168
|
exports2.selectIsLoggedIn = selectIsLoggedIn;
|
|
20299
20169
|
exports2.selectIssue = selectIssue;
|
|
20300
20170
|
exports2.selectIssueAttachment = selectIssueAttachment;
|
|
@@ -20320,7 +20190,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20320
20190
|
exports2.selectLicenses = selectLicenses;
|
|
20321
20191
|
exports2.selectLicensesForProjectsMapping = selectLicensesForProjectsMapping;
|
|
20322
20192
|
exports2.selectMainWorkspace = selectMainWorkspace;
|
|
20323
|
-
exports2.selectMapStyle = selectMapStyle;
|
|
20324
20193
|
exports2.selectNumberOfAssetTypesMatchingCaseInsensitiveName = selectNumberOfAssetTypesMatchingCaseInsensitiveName;
|
|
20325
20194
|
exports2.selectNumberOfAssetsOfAssetType = selectNumberOfAssetsOfAssetType;
|
|
20326
20195
|
exports2.selectOrganization = selectOrganization;
|
|
@@ -20350,10 +20219,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20350
20219
|
exports2.selectProjectsWithAccess = selectProjectsWithAccess;
|
|
20351
20220
|
exports2.selectRecentIssueIds = selectRecentIssueIds;
|
|
20352
20221
|
exports2.selectRecentIssuesAsSearchResults = selectRecentIssuesAsSearchResults;
|
|
20353
|
-
exports2.selectRecentProjects = selectRecentProjects;
|
|
20354
20222
|
exports2.selectRehydrated = selectRehydrated;
|
|
20355
20223
|
exports2.selectRootDocuments = selectRootDocuments;
|
|
20356
|
-
exports2.selectShowTooltips = selectShowTooltips;
|
|
20357
20224
|
exports2.selectSortedEmailDomains = selectSortedEmailDomains;
|
|
20358
20225
|
exports2.selectSortedFormSubmissionsOfForm = selectSortedFormSubmissionsOfForm;
|
|
20359
20226
|
exports2.selectSortedOrganizationLicenses = selectSortedOrganizationLicenses;
|
|
@@ -20387,7 +20254,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20387
20254
|
exports2.setActiveProjectFileId = setActiveProjectFileId;
|
|
20388
20255
|
exports2.setActiveProjectId = setActiveProjectId;
|
|
20389
20256
|
exports2.setActiveWorkspaceId = setActiveWorkspaceId;
|
|
20390
|
-
exports2.setAppearance = setAppearance;
|
|
20391
20257
|
exports2.setAssetAttachment = setAssetAttachment;
|
|
20392
20258
|
exports2.setAssetAttachments = setAssetAttachments;
|
|
20393
20259
|
exports2.setAssetTypeAttachment = setAssetTypeAttachment;
|
|
@@ -20395,19 +20261,13 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20395
20261
|
exports2.setAssetTypes = setAssetTypes;
|
|
20396
20262
|
exports2.setAssets = setAssets;
|
|
20397
20263
|
exports2.setCategories = setCategories;
|
|
20398
|
-
exports2.setCenterMapToProject = setCenterMapToProject;
|
|
20399
20264
|
exports2.setConversation = setConversation;
|
|
20400
20265
|
exports2.setConversations = setConversations;
|
|
20401
|
-
exports2.setCreateProjectType = setCreateProjectType;
|
|
20402
20266
|
exports2.setCurrentUser = setCurrentUser;
|
|
20403
20267
|
exports2.setDocumentAttachment = setDocumentAttachment;
|
|
20404
20268
|
exports2.setDocumentAttachments = setDocumentAttachments;
|
|
20405
20269
|
exports2.setDocuments = setDocuments;
|
|
20406
20270
|
exports2.setEmailDomains = setEmailDomains;
|
|
20407
|
-
exports2.setEnableClustering = setEnableClustering;
|
|
20408
|
-
exports2.setEnableDuplicateIssues = setEnableDuplicateIssues;
|
|
20409
|
-
exports2.setEnablePlacementMode = setEnablePlacementMode;
|
|
20410
|
-
exports2.setEnableSvgLayout = setEnableSvgLayout;
|
|
20411
20271
|
exports2.setFormRevision = setFormRevision;
|
|
20412
20272
|
exports2.setFormRevisionAttachments = setFormRevisionAttachments;
|
|
20413
20273
|
exports2.setFormRevisions = setFormRevisions;
|
|
@@ -20417,7 +20277,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20417
20277
|
exports2.setForms = setForms;
|
|
20418
20278
|
exports2.setIsFetchingInitialData = setIsFetchingInitialData;
|
|
20419
20279
|
exports2.setIsImportingProjectFile = setIsImportingProjectFile;
|
|
20420
|
-
exports2.setIsLoading = setIsLoading;
|
|
20421
20280
|
exports2.setIssueAttachment = setIssueAttachment;
|
|
20422
20281
|
exports2.setIssueAttachments = setIssueAttachments;
|
|
20423
20282
|
exports2.setIssueComment = setIssueComment;
|
|
@@ -20428,7 +20287,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20428
20287
|
exports2.setIssues = setIssues;
|
|
20429
20288
|
exports2.setLicenses = setLicenses;
|
|
20430
20289
|
exports2.setLoggedIn = setLoggedIn;
|
|
20431
|
-
exports2.setMapStyle = setMapStyle;
|
|
20432
20290
|
exports2.setOrganizationAccesses = setOrganizationAccesses;
|
|
20433
20291
|
exports2.setOrganizations = setOrganizations;
|
|
20434
20292
|
exports2.setProfilePicture = setProfilePicture;
|
|
@@ -20438,8 +20296,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
20438
20296
|
exports2.setProjectFileVisible = setProjectFileVisible;
|
|
20439
20297
|
exports2.setProjects = setProjects;
|
|
20440
20298
|
exports2.setRehydrated = setRehydrated;
|
|
20441
|
-
exports2.setSectionExpanded = setSectionExpanded;
|
|
20442
|
-
exports2.setShowTooltips = setShowTooltips;
|
|
20443
20299
|
exports2.setStageCompletions = setStageCompletions;
|
|
20444
20300
|
exports2.setTeam = setTeam;
|
|
20445
20301
|
exports2.setTeams = setTeams;
|