@uxland/primary-shell 5.3.4 → 5.3.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 +14 -5
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +5 -5
- 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/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/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) {
|
|
@@ -16298,7 +16298,7 @@ let ExitShellHandler = class {
|
|
|
16298
16298
|
constructor(X) {
|
|
16299
16299
|
this.api = X;
|
|
16300
16300
|
}
|
|
16301
|
-
async handle(X) {
|
|
16301
|
+
async handle({ ecapEvent: X }) {
|
|
16302
16302
|
try {
|
|
16303
16303
|
const W = this.api.pluginBusyManager.getBusyPluginTasks();
|
|
16304
16304
|
if (W.length > 0) {
|
|
@@ -16310,9 +16310,9 @@ let ExitShellHandler = class {
|
|
|
16310
16310
|
// S'intenta executar un dispose normal
|
|
16311
16311
|
this.timeout(5e3)
|
|
16312
16312
|
// Si passen 5s, es segueix amb l'execució
|
|
16313
|
-
]), disposeShell(),
|
|
16313
|
+
]), disposeShell(), this.emitClose(X);
|
|
16314
16314
|
} catch (W) {
|
|
16315
|
-
this.api.notificationService.error(W.message),
|
|
16315
|
+
this.api.notificationService.error(W.message), this.emitClose(X);
|
|
16316
16316
|
}
|
|
16317
16317
|
}
|
|
16318
16318
|
askForClose(X) {
|
|
@@ -16326,11 +16326,17 @@ let ExitShellHandler = class {
|
|
|
16326
16326
|
timeout(X) {
|
|
16327
16327
|
return new Promise((W) => setTimeout(W, X));
|
|
16328
16328
|
}
|
|
16329
|
+
emitClose(X) {
|
|
16330
|
+
X ? raiseCustomCloseEvent(X) : raiseCloseEvent();
|
|
16331
|
+
}
|
|
16329
16332
|
};
|
|
16330
16333
|
ExitShellHandler = __decorateClass$e([
|
|
16331
16334
|
__decorateParam$4(0, inject(TYPES$1.primaryApi))
|
|
16332
16335
|
], ExitShellHandler);
|
|
16333
16336
|
class ExitShell {
|
|
16337
|
+
constructor(W) {
|
|
16338
|
+
this.ecapEvent = W;
|
|
16339
|
+
}
|
|
16334
16340
|
}
|
|
16335
16341
|
let request$3;
|
|
16336
16342
|
const useExitShell = (X) => {
|
|
@@ -16559,6 +16565,8 @@ const useFinalizeVisit = (X) => {
|
|
|
16559
16565
|
disposeFeatures(shellApi);
|
|
16560
16566
|
}, raiseCloseEvent = () => {
|
|
16561
16567
|
shellApi.ecapEventManager.publish("CLOSE_FORM", "", {});
|
|
16568
|
+
}, raiseCustomCloseEvent = (X) => {
|
|
16569
|
+
shellApi.ecapEventManager.publish(X, "", {});
|
|
16562
16570
|
};
|
|
16563
16571
|
var shellViews = /* @__PURE__ */ ((X) => (X.shell = "primaria-shell", X.error = "primaria-error-view", X))(shellViews || {});
|
|
16564
16572
|
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{padding:1px;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}";
|
|
@@ -43968,7 +43976,7 @@ const useSharedUI = () => {
|
|
|
43968
43976
|
label: "Pàgina inici",
|
|
43969
43977
|
type: "item",
|
|
43970
43978
|
sortHint: "0010",
|
|
43971
|
-
callbackFn: () => shellApi.broker.send(new ExitShell())
|
|
43979
|
+
callbackFn: () => shellApi.broker.send(new ExitShell("OBRIR_PI"))
|
|
43972
43980
|
},
|
|
43973
43981
|
{
|
|
43974
43982
|
id: "processes",
|
|
@@ -44181,6 +44189,7 @@ export {
|
|
|
44181
44189
|
isNotCommonFilterGroup,
|
|
44182
44190
|
primariaApiFactory,
|
|
44183
44191
|
raiseCloseEvent,
|
|
44192
|
+
raiseCustomCloseEvent,
|
|
44184
44193
|
shellApi,
|
|
44185
44194
|
shellEvents,
|
|
44186
44195
|
shellRegions,
|