@uxland/primary-shell 3.1.2 → 3.1.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 +6 -11
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +3 -3
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/index.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/index.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/infrastructure/store/store.d.ts +12 -12
- package/dist/primary/shell/src/internal-plugins/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/internal-plugins/activity-history/features/state.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -7627,7 +7627,7 @@ __decorateClass$l([
|
|
|
7627
7627
|
ClinicalMonitoring = __decorateClass$l([
|
|
7628
7628
|
t$6("clinical-monitoring")
|
|
7629
7629
|
], ClinicalMonitoring);
|
|
7630
|
-
const styles$i = "*[hidden]{display:none!important}:host{width:100%;overflow:hidden}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px;height:60px;background-color:#fff;color:#000;z-index:1;box-shadow:#0000001f 4px -1px 3px,#0000003d 0 1px 2px}.header__left{display:flex;flex-direction:row;align-items:center;gap:24px}.
|
|
7630
|
+
const styles$i = "*[hidden]{display:none!important}:host{width:100%;overflow:hidden}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px;height:60px;background-color:#fff;color:#000;z-index:1;box-shadow:#0000001f 4px -1px 3px,#0000003d 0 1px 2px}.header__left{display:flex;flex-direction:row;align-items:center;gap:24px}.header__left .header-logo{align-self:center}.header__left #header-region-container{display:flex;flex-direction:row;align-items:center}.header__right{display:flex;flex-direction:row;align-items:center;gap:24px}.header__right #header-actions-region-container{display:flex;flex-direction:row;align-items:center}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:2px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:72px;height:100%;color:#fff}.main-container .sidebar .top-content{padding-top:24px;padding-bottom:24px}.main-container .sidebar #menu-region-container{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;padding-inline:16px}.main-container .sidebar md-menu{cursor:pointer;--md-menu-container-color: white;min-width:239px;color:var(--color-neutral-900)}.main-container .sidebar md-menu .menu-item{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:1rem;gap:50px}.main-container .sidebar md-menu .menu-item:hover{background-color:#f0f0f0}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center}.main-container .sidebar .create-button-opened{padding:1px;cursor:pointer;background-color:#f0f0f0;border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center}.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:200}.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}.actions-bottom{display:flex;flex-direction:column;gap:24px;width:100%}primaria-menu{border-radius:8px;color:var(--color-primary-700)}.toggle-opened,.toggle-closed{cursor:pointer;display:flex;margin-bottom:24px;padding:8px;gap:8px;border-radius:8px;border:1px;transition:background-color .3s ease}.toggle-opened:hover,.toggle-closed:hover{background-color:var(--color-primary-900)}.toggle-opened{justify-content:flex-start}.toggle-closed{justify-content:center}.close-menu{display:flex;flex-direction:row-reverse;align-items:center}";
|
|
7631
7631
|
function __decorate(X, W, J, AA) {
|
|
7632
7632
|
var eA = arguments.length, tA = eA < 3 ? W : AA === null ? AA = Object.getOwnPropertyDescriptor(W, J) : AA, sA;
|
|
7633
7633
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") tA = Reflect.decorate(X, W, J, AA);
|
|
@@ -30481,8 +30481,8 @@ const template$8 = (X) => ke$1`
|
|
|
30481
30481
|
<div class="header-logo">
|
|
30482
30482
|
<img src=${salutLogo} alt="logo" />
|
|
30483
30483
|
</div>
|
|
30484
|
-
<primaria-content-switcher id="header-region-container"></primaria-content-switcher>
|
|
30485
30484
|
<patient-header></patient-header>
|
|
30485
|
+
<div id="header-region-container"></div>
|
|
30486
30486
|
</div>
|
|
30487
30487
|
<div class="header__right">
|
|
30488
30488
|
<div id="header-actions-region-container"></div>
|
|
@@ -34477,11 +34477,6 @@ function noop() {
|
|
|
34477
34477
|
function formatProdErrorMessage(X) {
|
|
34478
34478
|
return `Minified Redux Toolkit error #${X}; visit https://redux-toolkit.js.org/Errors?code=${X} for the full message or use the non-minified dev environment for full errors. `;
|
|
34479
34479
|
}
|
|
34480
|
-
var pick = /* @__PURE__ */ _curry2(function X(W, J) {
|
|
34481
|
-
for (var AA = {}, eA = 0; eA < W.length; )
|
|
34482
|
-
W[eA] in J && (AA[W[eA]] = J[W[eA]]), eA += 1;
|
|
34483
|
-
return AA;
|
|
34484
|
-
});
|
|
34485
34480
|
const isSameVisit = (X, W) => {
|
|
34486
34481
|
var tA, sA, iA, aA, rA, nA, oA, lA, cA, gA, BA, dA, EA, hA;
|
|
34487
34482
|
const J = ((tA = X.professional) == null ? void 0 : tA.id) === ((sA = W.professional) == null ? void 0 : sA.id) && ((iA = X.professional) == null ? void 0 : iA.role.id) === ((aA = W.professional) == null ? void 0 : aA.role.id) && ((rA = X.professional) == null ? void 0 : rA.speciality.id) === ((nA = W.professional) == null ? void 0 : nA.speciality.id), AA = ((oA = X.ep) == null ? void 0 : oA.id) === ((lA = W.ep) == null ? void 0 : lA.id) && ((cA = X.up) == null ? void 0 : cA.id) === ((gA = W.up) == null ? void 0 : gA.id) && ((BA = X.center) == null ? void 0 : BA.id) === ((dA = W.center) == null ? void 0 : dA.id) && ((EA = X.service) == null ? void 0 : EA.id) === ((hA = W.service) == null ? void 0 : hA.id), eA = new Date(X.date).toDateString() === new Date(W.date).toDateString();
|
|
@@ -34557,7 +34552,7 @@ const isSameVisit = (X, W) => {
|
|
|
34557
34552
|
addActivityHistoryItems(X, W) {
|
|
34558
34553
|
var eA;
|
|
34559
34554
|
const { id: J, items: AA } = W.payload;
|
|
34560
|
-
X.collections = {
|
|
34555
|
+
X.collections[J] ? X.collections = {
|
|
34561
34556
|
...X.collections,
|
|
34562
34557
|
[J]: {
|
|
34563
34558
|
...X.collections[J],
|
|
@@ -34568,7 +34563,7 @@ const isSameVisit = (X, W) => {
|
|
|
34568
34563
|
// Nuevo array de action.payload.items
|
|
34569
34564
|
]
|
|
34570
34565
|
}
|
|
34571
|
-
};
|
|
34566
|
+
} : X.collections = { ...X.collections, [J]: W.payload };
|
|
34572
34567
|
},
|
|
34573
34568
|
removeErrorHistoryItem(X, W) {
|
|
34574
34569
|
X.error = X.error.filter((J) => J !== W.payload);
|
|
@@ -34587,7 +34582,7 @@ const isSameVisit = (X, W) => {
|
|
|
34587
34582
|
updateActivityHistoryItem
|
|
34588
34583
|
} = activityHistorySlice.actions, isAnyBusySelector = (X) => X.activityHistory.busy.length > 0, activityHistoryCollectionsSelector = (X) => X.activityHistory.collections, activityHistoryGroupableCollections = createSelector(
|
|
34589
34584
|
activityHistoryCollectionsSelector,
|
|
34590
|
-
(X) =>
|
|
34585
|
+
(X) => X
|
|
34591
34586
|
), activityHistoryGroupableItems = createSelector(
|
|
34592
34587
|
activityHistoryGroupableCollections,
|
|
34593
34588
|
(X) => Object.values(X).reduce((W, J) => [
|
|
@@ -34599,7 +34594,7 @@ const isSameVisit = (X, W) => {
|
|
|
34599
34594
|
), activityHistoryGroupedItems = createSelector(
|
|
34600
34595
|
activityHistoryGroupableItems,
|
|
34601
34596
|
(X) => groupActivityHistoryItems(X)
|
|
34602
|
-
),
|
|
34597
|
+
), registerRequest = (X, W) => (J, AA) => {
|
|
34603
34598
|
W.bind(AA).to(AA).inTransientScope(), injectable()(AA), X.broker.registerRequest(J, (eA) => W.get(AA).handle(eA));
|
|
34604
34599
|
}, unregisterRequest = (X, W) => (J) => {
|
|
34605
34600
|
W.isBound(J) && W.unbind(J);
|