@uxland/primary-shell 5.3.4 → 5.3.6
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 +19 -14
- 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/api/ecap-event-manager/ecap-event-manager.d.ts +2 -2
- package/dist/primary/shell/src/disposer.d.ts +1 -0
- package/dist/primary/shell/src/features/exit/handler.d.ts +2 -1
- package/dist/primary/shell/src/features/exit/request.d.ts +2 -0
- package/package.json +1 -1
- package/src/UI/components/primaria-shell/styles.css +0 -1
- package/src/UI/internal-views/upper-nav-views.ts +1 -1
- package/src/api/ecap-event-manager/ecap-event-manager.ts +3 -3
- package/src/disposer.ts +4 -0
- package/src/features/exit/handler.ts +12 -4
- package/src/features/exit/request.ts +3 -1
- package/src/internal-plugins/activity-history/activity-history-item/domain/business-rules.ts +1 -6
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -3429,7 +3429,7 @@ class EcapEventManager {
|
|
|
3429
3429
|
}
|
|
3430
3430
|
class EcapEventManagerImpl {
|
|
3431
3431
|
publish(W, J, te) {
|
|
3432
|
-
const re = this.createEcapEvent(W, J, te);
|
|
3432
|
+
const re = this.createEcapEvent(W, J, te ?? {});
|
|
3433
3433
|
this.raiseEcapEvent(re);
|
|
3434
3434
|
}
|
|
3435
3435
|
createEcapEvent(W, J, te) {
|
|
@@ -15520,13 +15520,8 @@ function shouldShowRole(X) {
|
|
|
15520
15520
|
return !X.professional.speciality.description;
|
|
15521
15521
|
}
|
|
15522
15522
|
const hasItemDivider = (X, W) => {
|
|
15523
|
-
const J = W.findIndex((
|
|
15524
|
-
|
|
15525
|
-
return !1;
|
|
15526
|
-
if (J === W.length - 1)
|
|
15527
|
-
return !0;
|
|
15528
|
-
const te = new Date(X.date).getTime(), re = new Date(W[J + 1].date).getTime();
|
|
15529
|
-
return Math.abs(re - te) / (1e3 * 60) > 15;
|
|
15523
|
+
const J = W.findIndex((te) => te.id === X.id);
|
|
15524
|
+
return J === -1 ? !1 : J === W.length - 1 ? !0 : !X.diagnostics.length;
|
|
15530
15525
|
}, template$f = (X) => {
|
|
15531
15526
|
var W;
|
|
15532
15527
|
return X._hasUpdatedOnce ? ke$1`
|
|
@@ -15589,7 +15584,8 @@ const hasItemDivider = (X, W) => {
|
|
|
15589
15584
|
X.highlighted(W.professional.name),
|
|
15590
15585
|
J ? X.highlighted(W.professional.role.description) : null,
|
|
15591
15586
|
X.highlighted(W.center.description),
|
|
15592
|
-
X.highlighted(W.professional.speciality.description)
|
|
15587
|
+
X.highlighted(W.professional.speciality.description),
|
|
15588
|
+
X.highlighted(W.service.description)
|
|
15593
15589
|
].filter(Boolean);
|
|
15594
15590
|
return te.map(
|
|
15595
15591
|
(ne, oe) => ke$1`${ne}${oe < te.length - 1 ? " | " : ""}`
|
|
@@ -16298,7 +16294,7 @@ let ExitShellHandler = class {
|
|
|
16298
16294
|
constructor(X) {
|
|
16299
16295
|
this.api = X;
|
|
16300
16296
|
}
|
|
16301
|
-
async handle(X) {
|
|
16297
|
+
async handle({ ecapEvent: X }) {
|
|
16302
16298
|
try {
|
|
16303
16299
|
const W = this.api.pluginBusyManager.getBusyPluginTasks();
|
|
16304
16300
|
if (W.length > 0) {
|
|
@@ -16310,9 +16306,9 @@ let ExitShellHandler = class {
|
|
|
16310
16306
|
// S'intenta executar un dispose normal
|
|
16311
16307
|
this.timeout(5e3)
|
|
16312
16308
|
// Si passen 5s, es segueix amb l'execució
|
|
16313
|
-
]), disposeShell(),
|
|
16309
|
+
]), disposeShell(), this.emitClose(X);
|
|
16314
16310
|
} catch (W) {
|
|
16315
|
-
this.api.notificationService.error(W.message),
|
|
16311
|
+
this.api.notificationService.error(W.message), this.emitClose(X);
|
|
16316
16312
|
}
|
|
16317
16313
|
}
|
|
16318
16314
|
askForClose(X) {
|
|
@@ -16326,11 +16322,17 @@ let ExitShellHandler = class {
|
|
|
16326
16322
|
timeout(X) {
|
|
16327
16323
|
return new Promise((W) => setTimeout(W, X));
|
|
16328
16324
|
}
|
|
16325
|
+
emitClose(X) {
|
|
16326
|
+
X ? raiseCustomCloseEvent(X) : raiseCloseEvent();
|
|
16327
|
+
}
|
|
16329
16328
|
};
|
|
16330
16329
|
ExitShellHandler = __decorateClass$e([
|
|
16331
16330
|
__decorateParam$4(0, inject(TYPES$1.primaryApi))
|
|
16332
16331
|
], ExitShellHandler);
|
|
16333
16332
|
class ExitShell {
|
|
16333
|
+
constructor(W) {
|
|
16334
|
+
this.ecapEvent = W;
|
|
16335
|
+
}
|
|
16334
16336
|
}
|
|
16335
16337
|
let request$3;
|
|
16336
16338
|
const useExitShell = (X) => {
|
|
@@ -16559,9 +16561,11 @@ const useFinalizeVisit = (X) => {
|
|
|
16559
16561
|
disposeFeatures(shellApi);
|
|
16560
16562
|
}, raiseCloseEvent = () => {
|
|
16561
16563
|
shellApi.ecapEventManager.publish("CLOSE_FORM", "", {});
|
|
16564
|
+
}, raiseCustomCloseEvent = (X) => {
|
|
16565
|
+
shellApi.ecapEventManager.publish(X, "", {});
|
|
16562
16566
|
};
|
|
16563
16567
|
var shellViews = /* @__PURE__ */ ((X) => (X.shell = "primaria-shell", X.error = "primaria-error-view", X))(shellViews || {});
|
|
16564
|
-
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{
|
|
16568
|
+
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}";
|
|
16565
16569
|
let t$e = "";
|
|
16566
16570
|
function f$j() {
|
|
16567
16571
|
return t$e;
|
|
@@ -43968,7 +43972,7 @@ const useSharedUI = () => {
|
|
|
43968
43972
|
label: "Pàgina inici",
|
|
43969
43973
|
type: "item",
|
|
43970
43974
|
sortHint: "0010",
|
|
43971
|
-
callbackFn: () => shellApi.broker.send(new ExitShell())
|
|
43975
|
+
callbackFn: () => shellApi.broker.send(new ExitShell("OBRIR_PI"))
|
|
43972
43976
|
},
|
|
43973
43977
|
{
|
|
43974
43978
|
id: "processes",
|
|
@@ -44181,6 +44185,7 @@ export {
|
|
|
44181
44185
|
isNotCommonFilterGroup,
|
|
44182
44186
|
primariaApiFactory,
|
|
44183
44187
|
raiseCloseEvent,
|
|
44188
|
+
raiseCustomCloseEvent,
|
|
44184
44189
|
shellApi,
|
|
44185
44190
|
shellEvents,
|
|
44186
44191
|
shellRegions,
|