@uxland/primary-shell 7.41.1 → 7.41.3
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/{component-DQ89sOAa.js → component-D15ByiOA.js} +2 -2
- package/dist/{component-DQ89sOAa.js.map → component-D15ByiOA.js.map} +1 -1
- package/dist/{index-DatOFmmM.js → index-DSWQpDr0.js} +19 -9
- package/dist/{index-DatOFmmM.js.map → index-DSWQpDr0.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/component.d.ts +2 -2
- package/dist/primary/shell/src/features/exit/handler.d.ts +1 -0
- package/package.json +1 -1
- package/src/UI/internal-views/doctor-nav-menu.ts +0 -7
- package/src/api/plugin-busy-manager/plugin-busy-list/component.ts +2 -2
- package/src/api/plugin-busy-manager/plugin-busy-list/template.ts +3 -3
- package/src/features/exit/handler.test.ts +65 -5
- package/src/features/exit/handler.ts +26 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s, t as d, k as l, h as p, r as m, i as g, a as h } from "./index-
|
|
1
|
+
import { s, t as d, k as l, h as p, r as m, i as g, a as h } from "./index-DSWQpDr0.js";
|
|
2
2
|
const v = ".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:95vw;height:95vh;border-radius:var(--dss-radius-sm);overflow:hidden}.content{display:grid;flex:1;min-height:0;grid-template-columns:1fr 1fr;gap:16px;padding:16px}.content>primaria-region{width:100%;height:100%;min-height:0}.content primaria-region>div{width:100%;height:100%;border:1px solid var(--color-neutral-200);border-radius:8px;padding:16px;box-sizing:border-box}.content>primaria-region[name=import-data-region]>div{overflow-y:auto}.content>primaria-region[name=import-data-activity-history-region]>div{display:flex;flex-direction:column;gap:16px;overflow:hidden}.content>primaria-region[name=import-data-activity-history-region]>div>*{flex-shrink:0}.content>primaria-region[name=import-data-activity-history-region]>div>*:last-child{flex:1;min-height:0}.footer{display:flex;flex-direction:row;align-items:center;background:#fff;justify-content:end;gap:12px;height:56px;border-top:1px solid var(--color-neutral-100);padding:var(--dss-spacing-sm)}", f = (i) => l`
|
|
3
3
|
<div class="container">
|
|
4
4
|
<div class="content">
|
|
@@ -49,4 +49,4 @@ t = x([
|
|
|
49
49
|
export {
|
|
50
50
|
t as ImportDataManagerModal
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=component-
|
|
52
|
+
//# sourceMappingURL=component-D15ByiOA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-D15ByiOA.js","sources":["../src/api/import-data-manager/component/template.ts","../src/api/import-data-manager/component/component.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { translate } from \"../../../locales\";\nimport { shellApi } from \"../../api\";\nimport { ImportDataManagerModal } from \"./component\";\n\nexport const template = (props: ImportDataManagerModal) => {\n return html`\n <div class=\"container\">\n <div class=\"content\">\n <primaria-region name=\"${shellApi.regionManager.regions.shell.importDataActivityHistory}\"></primaria-region>\n <primaria-region name=\"${shellApi.regionManager.regions.shell.importData}\"></primaria-region>\n </div>\n <div class=\"footer\">\n <dss-button\n label=\"${translate(\"importDataManager.actions.cancel\")}\"\n @click=\"${() => {\n props.cancel();\n }}\"\n size=\"md\"\n variant=\"secondary\"\n ></dss-button>\n <dss-button\n label=\"${translate(\"importDataManager.actions.import\")}\"\n @click=\"${() => {\n props._accept();\n }}\"\n size=\"md\"\n variant=\"primary\"\n ></dss-button>\n </div>\n </div>\n `;\n};\n","import { LitElement, css, html, unsafeCSS } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\nimport { ConfirmationContentProps } from \"../../interaction-service\";\nimport styles from \"./styles.css?inline\";\nimport { template } from \"./template\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal extends LitElement implements ConfirmationContentProps<undefined, undefined> {\n data: undefined;\n setResult: (result: undefined) => void;\n setIsValid: (isValid: boolean) => void;\n confirm: () => void;\n cancel: () => void;\n\n render() {\n return html`${template(this)}`;\n }\n\n static styles = css`\n ${unsafeCSS(styles)}\n `;\n\n _accept = () => {\n this.confirm();\n };\n}\n"],"names":["template","props","html","shellApi","translate","ImportDataManagerModal","LitElement","css","unsafeCSS","styles","__decorateClass","customElement"],"mappings":";kiCAKaA,IAAW,CAACC,MAChBC;AAAAA;AAAAA;AAAAA,iCAGwBC,EAAS,cAAc,QAAQ,MAAM,yBAAyB;AAAA,iCAC9DA,EAAS,cAAc,QAAQ,MAAM,UAAU;AAAA;AAAA;AAAA;AAAA,mBAI7DC,EAAU,kCAAkC,CAAC;AAAA,oBAC5C,MAAM;AACd,EAAAH,EAAM,OAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,mBAKQG,EAAU,kCAAkC,CAAC;AAAA,oBAC5C,MAAM;AACd,EAAAH,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;AClBJ,IAAMI,IAAN,cAAqCC,EAAqE;AAAA,EAA1G,cAAA;AAAA,UAAA,GAAA,SAAA,GAeL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAlBaK,EAWJ,SAASE;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAZVJ,IAANK,EAAA;AAAA,EADNC,EAAc,2BAA2B;AAAA,GAC7BN,CAAA;"}
|
|
@@ -9692,7 +9692,7 @@ class ImportDataManagerImpl {
|
|
|
9692
9692
|
async import(W, J) {
|
|
9693
9693
|
this.currentImporterId = W, this.currentImportParams = J, this.selectedItems = {}, this.pluginTexts = {};
|
|
9694
9694
|
try {
|
|
9695
|
-
const { ImportDataManagerModal: te } = await import("./component-
|
|
9695
|
+
const { ImportDataManagerModal: te } = await import("./component-D15ByiOA.js"), { confirmed: re } = await this.interactionService.confirm(
|
|
9696
9696
|
void 0,
|
|
9697
9697
|
{ component: te },
|
|
9698
9698
|
{
|
|
@@ -16727,6 +16727,11 @@ let ExitShellHandler = class {
|
|
|
16727
16727
|
const W = X && X.ecapEvent !== void 0 ? X : void 0;
|
|
16728
16728
|
try {
|
|
16729
16729
|
if (!await this.api.exitGuardManager.canExit()) return;
|
|
16730
|
+
const te = this.api.pluginBusyManager.getTasks();
|
|
16731
|
+
if (te.length > 0) {
|
|
16732
|
+
const { confirmed: re } = await this.askForClose(te);
|
|
16733
|
+
if (!re) return;
|
|
16734
|
+
}
|
|
16730
16735
|
await Promise.race([
|
|
16731
16736
|
disposePlugins(),
|
|
16732
16737
|
// S'intenta executar un dispose normal
|
|
@@ -16740,6 +16745,18 @@ let ExitShellHandler = class {
|
|
|
16740
16745
|
timeout(X) {
|
|
16741
16746
|
return new Promise((W) => setTimeout(W, X));
|
|
16742
16747
|
}
|
|
16748
|
+
askForClose(X) {
|
|
16749
|
+
return this.api.interactionService.confirm(
|
|
16750
|
+
{ busyTasks: X },
|
|
16751
|
+
{ component: PluginBusyList },
|
|
16752
|
+
{
|
|
16753
|
+
title: translate$1("actions.askExit"),
|
|
16754
|
+
state: "error",
|
|
16755
|
+
confirmButtonText: "Sí",
|
|
16756
|
+
cancelButtonText: "No"
|
|
16757
|
+
}
|
|
16758
|
+
);
|
|
16759
|
+
}
|
|
16743
16760
|
emitClose(X) {
|
|
16744
16761
|
X ? raiseCustomCloseEvent(X) : raiseCloseEvent();
|
|
16745
16762
|
}
|
|
@@ -52241,13 +52258,6 @@ const commonNavMenuItems = [
|
|
|
52241
52258
|
});
|
|
52242
52259
|
}, registerDoctorClinicalPathwaysMenuActions = () => {
|
|
52243
52260
|
const X = [
|
|
52244
|
-
{
|
|
52245
|
-
id: "1",
|
|
52246
|
-
sortHint: "0010",
|
|
52247
|
-
icon: "open_in_new",
|
|
52248
|
-
label: "Proces d'atenció - ARES (Obsolet)",
|
|
52249
|
-
callbackFn: () => navigateToEcap("PROCES_ATENCIO")
|
|
52250
|
-
},
|
|
52251
52261
|
{
|
|
52252
52262
|
id: "3",
|
|
52253
52263
|
sortHint: "0030",
|
|
@@ -52426,4 +52436,4 @@ export {
|
|
|
52426
52436
|
l as y,
|
|
52427
52437
|
PrimariaInteractionService as z
|
|
52428
52438
|
};
|
|
52429
|
-
//# sourceMappingURL=index-
|
|
52439
|
+
//# sourceMappingURL=index-DSWQpDr0.js.map
|