@uxland/primary-shell 6.0.3 → 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) {
@@ -16571,7 +16575,7 @@ const useGetUserInfo = (te) => {
16571
16575
  disposeGetUserInfo(), request$2 = registerRequest(te, container$1)(GetUserInfo, GetUserInfoHandler), registerDep(GetUserInfoBackendAdapter);
16572
16576
  }, disposeGetUserInfo = () => {
16573
16577
  request$2 == null || request$2.dispose(), unregisterDep(GetUserInfoBackendAdapter);
16574
- }, clinicalMonitoringId = "clinical-monitoring", styles$8 = ":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:25%;border-left:1px solid rgb(189,189,189)}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:24px 40px}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding-inline:40px;padding-bottom:24px}@media (max-width: 1024px){:host{min-height:100vh}.wrapper{flex-direction:column}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;padding-inline:40px;padding-bottom:24px}.wrapper .content #header-widgets-region{grid-template-columns:1fr;gap:16px}.wrapper .content #content-widgets-region{height:70vh;flex:none}}", template$a = (te) => ke$1`
16578
+ }, clinicalMonitoringId = "clinical-monitoring", styles$8 = ":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:25%;border-left:1px solid rgb(189,189,189);overflow:auto}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:24px 24px 0}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding:24px}@media (max-width: 1024px){:host{min-height:100vh}.wrapper{flex-direction:column}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;padding-inline:40px;padding-bottom:24px;overflow:auto}.wrapper .content #header-widgets-region{grid-template-columns:1fr;gap:16px}.wrapper .content #content-widgets-region{height:70vh;flex:none}}", template$a = (te) => ke$1`
16575
16579
  <div class="wrapper">
16576
16580
  <div class="content">
16577
16581
  <div id="header-widgets-region"></div>