@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 +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/internal-plugins/activity-history/activity-history-item/filter/up-filters/handle-add-up-options-from-item.d.ts +9 -0
- package/dist/internal-plugins/activity-history/activity-history-item/filter/up-filters/handle-add-up-options-from-item.test.d.ts +1 -0
- package/package.json +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/up-filters/handle-add-up-options-from-item.test.ts +237 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/up-filters/handle-add-up-options-from-item.ts +12 -3
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,
|
|
11232
|
-
const
|
|
11233
|
-
|
|
11234
|
-
|
|
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(
|
|
11240
|
+
values: mapArrayToLabelValue(J, "description", "id"),
|
|
11238
11241
|
enabledValues: []
|
|
11239
11242
|
};
|
|
11240
|
-
|
|
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) {
|