@uxland/primary-shell 5.4.2 → 5.4.4
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 +10 -20
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +7 -7
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/utils.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +1 -0
- package/package.json +3 -3
- package/src/UI/components/primaria-shell/styles.css +11 -0
- package/src/UI/internal-views/upper-nav-views.ts +1 -1
- package/src/UI/shared-components/primaria-nav-item/styles.css +1 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/template.ts +2 -2
- package/src/internal-plugins/activity-history/activity-history-item/filter/utils.ts +8 -2
- package/src/internal-plugins/activity-history/activity-history-item/list/group-history-items/group-history-items.test.ts +61 -96
- package/src/internal-plugins/activity-history/activity-history-item/list/group-history-items/group-history-items.ts +2 -30
- package/src/internal-plugins/activity-history/localization.ts +4 -7
package/dist/index.js
CHANGED
|
@@ -8938,7 +8938,7 @@ const useLocalization = async (te) => {
|
|
|
8938
8938
|
}
|
|
8939
8939
|
}
|
|
8940
8940
|
}
|
|
8941
|
-
}, styles$l = ".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white}";
|
|
8941
|
+
}, styles$l = ".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}";
|
|
8942
8942
|
/**
|
|
8943
8943
|
* @license
|
|
8944
8944
|
* Copyright 2017 Google LLC
|
|
@@ -11259,7 +11259,8 @@ const initializeLocalization = async (te) => {
|
|
|
11259
11259
|
prescriptions: "Prescripcions"
|
|
11260
11260
|
},
|
|
11261
11261
|
chipHeader: {
|
|
11262
|
-
selection: "Selecció:"
|
|
11262
|
+
selection: "Selecció:",
|
|
11263
|
+
without: "Sense"
|
|
11263
11264
|
},
|
|
11264
11265
|
error: {
|
|
11265
11266
|
general: {
|
|
@@ -11614,23 +11615,13 @@ const groupActivityHistoryItems = (te) => {
|
|
|
11614
11615
|
for (const ne of J) {
|
|
11615
11616
|
const oe = ne.items[0], de = ne.items[ne.items.length - 1];
|
|
11616
11617
|
if (isSameVisit(oe, X) && withinEightHours(oe.date, X.date) && withinEightHours(de.date, X.date)) {
|
|
11617
|
-
ne.items.push(X),
|
|
11618
|
+
ne.items.push(X), re = !0;
|
|
11618
11619
|
break;
|
|
11619
11620
|
}
|
|
11620
11621
|
}
|
|
11621
|
-
if (!re)
|
|
11622
|
-
for (const ne of J) {
|
|
11623
|
-
if (ne.sameVisit) continue;
|
|
11624
|
-
const oe = ne.items[0], de = ne.items[ne.items.length - 1];
|
|
11625
|
-
if (withinEightHours(oe.date, X.date) && withinEightHours(de.date, X.date)) {
|
|
11626
|
-
ne.items.push(X), re = !0;
|
|
11627
|
-
break;
|
|
11628
|
-
}
|
|
11629
|
-
}
|
|
11630
11622
|
re || J.push({
|
|
11631
|
-
idGroup:
|
|
11632
|
-
items: [X]
|
|
11633
|
-
sameVisit: !1
|
|
11623
|
+
idGroup: Math.random().toString(36).substr(2, 9),
|
|
11624
|
+
items: [X]
|
|
11634
11625
|
});
|
|
11635
11626
|
}), groupByValidDiagnostics(J), J;
|
|
11636
11627
|
}, sortGroupsByMostRecentDate = (te) => {
|
|
@@ -15805,9 +15796,9 @@ ActivityHistorySearchBar = __decorateClass$i([
|
|
|
15805
15796
|
const formatShowFilterTitle = (te) => {
|
|
15806
15797
|
const J = te.replace(/veure/gi, "").trim();
|
|
15807
15798
|
return J.charAt(0).toUpperCase() + J.slice(1);
|
|
15808
|
-
}, normalizeDeletedFilterBooleanValue = (te) => te === !0 ? translate("filters.deleted") : te, MAX_VISIBLE_CHIPS = 5, renderChip = (te, J, X, re) => ke$1`
|
|
15799
|
+
}, normalizeDeletedFilterBooleanValue = (te) => te === !0 ? translate("filters.deleted") : te, normalizeEmptyFilterValue = (te, J) => te === "" ? formatEmptyFilterValue(J) : te, formatEmptyFilterValue = (te) => `${translate("chipHeader.without")} ${te.toLowerCase()}`, MAX_VISIBLE_CHIPS = 5, renderChip = (te, J, X, re) => ke$1`
|
|
15809
15800
|
<dss-chip
|
|
15810
|
-
label=${X}
|
|
15801
|
+
label=${normalizeEmptyFilterValue(X, J.title)}
|
|
15811
15802
|
size="sm"
|
|
15812
15803
|
hasdelete
|
|
15813
15804
|
selected
|
|
@@ -16413,7 +16404,7 @@ const useFinalizeVisit = (te) => {
|
|
|
16413
16404
|
shellApi.ecapEventManager.publish(te, "", {});
|
|
16414
16405
|
};
|
|
16415
16406
|
var shellViews = /* @__PURE__ */ ((te) => (te.shell = "primaria-shell", te.error = "primaria-error-view", te))(shellViews || {});
|
|
16416
|
-
const styles$5 = ":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .quick-actions-content{padding-top:24px;padding-bottom:22px;border-radius:8px}.main-container .sidebar .quick-actions-content .create-button-icon-badge{position:relative}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-notification-badge{position:absolute;top:-7px;right:-6px;z-index:1}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-icon{position:relative}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{padding-top:24px;min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:4px}.main-container .sidebar #quick-actions-region-container{width:100%}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}";
|
|
16407
|
+
const styles$5 = ":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .quick-actions-content{padding-top:24px;padding-bottom:22px;border-radius:8px}.main-container .sidebar .quick-actions-content .create-button-icon-badge{position:relative}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-notification-badge{position:absolute;top:-7px;right:-6px;z-index:1}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-icon{position:relative}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{padding-top:24px;min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px}.main-container .sidebar #menu-region-container{overflow-y:auto;margin-right:-10px;padding-right:10px;scrollbar-color:var(--color-primary-900) var(--color-primary-700);scrollbar-width:thin}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:4px}.main-container .sidebar #quick-actions-region-container{width:100%}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}";
|
|
16417
16408
|
let t$f = "";
|
|
16418
16409
|
function f$l() {
|
|
16419
16410
|
return t$f;
|
|
@@ -44085,8 +44076,7 @@ const useSharedUI = () => {
|
|
|
44085
44076
|
label: "Gabinets de proves",
|
|
44086
44077
|
type: "item",
|
|
44087
44078
|
sortHint: "0080",
|
|
44088
|
-
callbackFn: () =>
|
|
44089
|
-
}
|
|
44079
|
+
callbackFn: () => navigateToEcapWithoutClosingWithCip("GABINETS_PROVES")
|
|
44090
44080
|
},
|
|
44091
44081
|
{
|
|
44092
44082
|
id: "prescriptions",
|