@uxland/primary-shell 6.0.4 → 6.0.5

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/index.js CHANGED
@@ -11228,17 +11228,21 @@ isValidDateString(te.date), ensureAreValidBasicActivityHistoryItems = (te) => {
11228
11228
  };
11229
11229
  J.dispatch(addDiagnosticFilters(re));
11230
11230
  }
11231
- }, { addUpFilters } = activityHistoryFiltersSlice.actions, handleAddUpFilter = (te, J) => {
11232
- const X = te.flatMap((re) => re.up ?? []).filter((re, ne, oe) => ne === oe.findIndex((de) => de.id === re.id));
11233
- if (X.length > 0) {
11234
- const re = {
11231
+ }, { addUpFilters } = activityHistoryFiltersSlice.actions, getUpFilter = (te) => {
11232
+ const J = te.flatMap((X) => X.up ?? []).filter((X) => {
11233
+ var re;
11234
+ return (re = X == null ? void 0 : X.id) == null ? void 0 : re.trim();
11235
+ }).filter((X, re, ne) => re === ne.findIndex((oe) => oe.id === X.id));
11236
+ if (J.length > 0)
11237
+ return {
11235
11238
  id: upFilterId,
11236
11239
  title: "UP",
11237
- values: mapArrayToLabelValue(X, "description", "id"),
11240
+ values: mapArrayToLabelValue(J, "description", "id"),
11238
11241
  enabledValues: []
11239
11242
  };
11240
- J.dispatch(addUpFilters(re));
11241
- }
11243
+ }, handleAddUpFilter = (te, J) => {
11244
+ const X = getUpFilter(te);
11245
+ X && J.dispatch(addUpFilters(X));
11242
11246
  }, { addActivityHistoryItem } = activityHistoryCollectionsSlice.actions;
11243
11247
  class AddHistoryItemHandler extends StoreBaseHandler {
11244
11248
  async handle(J) {