@uxland/primary-shell 7.10.0 → 7.11.1
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-U4paEq5h.js → component-CO4giq86.js} +15 -15
- package/dist/component-CO4giq86.js.map +1 -0
- package/dist/{index-rzAClqiP.js → index-BpU2-bo3.js} +30 -18
- package/dist/index-BpU2-bo3.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +3 -3
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/internal-views/doctor-quick-action-menu.d.ts +1 -0
- package/package.json +1 -1
- package/src/UI/internal-views/doctor-quick-action-menu.ts +16 -0
- package/src/UI/internal-views/handle-views.ts +5 -3
- package/src/api/import-data-manager/component/component.ts +4 -4
- package/src/api/region-manager/region-manager.ts +2 -1
- package/dist/component-U4paEq5h.js.map +0 -1
- package/dist/index-rzAClqiP.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as d, k as
|
|
2
|
-
const
|
|
1
|
+
import { t as d, k as l, P as p, h as g, r as m, i as v, s as h, a as f, b as u } from "./index-BpU2-bo3.js";
|
|
2
|
+
const x = ".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:90vw;height:90vh;border-radius:var(--dss-radius-sm);overflow:hidden}.content{display:grid;height:100%;min-height:1px;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:16px;padding:16px;overflow-y:auto;max-height:calc(90vh - 120px)}.content>*{border:1px solid var(--color-neutral-200);border-radius:8px;padding:16px;background-color:var(--color-neutral-50);min-height:200px}.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)}", b = (r) => l`
|
|
3
3
|
<div class="container">
|
|
4
4
|
<!-- <div class="header">
|
|
5
5
|
<div class="title">
|
|
@@ -9,39 +9,39 @@ const h = ".container{background-color:#fff;display:flex;flex-direction:column;m
|
|
|
9
9
|
<div class="content" id="import-data-region"></div>
|
|
10
10
|
<div class="footer">
|
|
11
11
|
<dss-button label="${d("importDataManager.actions.cancel")}" @click="${() => {
|
|
12
|
-
|
|
12
|
+
r.cancel();
|
|
13
13
|
}}" size="md" variant="secondary"></dss-button>
|
|
14
14
|
<dss-button label="${d("importDataManager.actions.import")}" @click="${() => {
|
|
15
|
-
|
|
15
|
+
r._accept();
|
|
16
16
|
}}" size="md" variant="primary"></dss-button>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
`;
|
|
20
|
-
var
|
|
21
|
-
for (var a = e > 1 ? void 0 : e ?
|
|
22
|
-
(n =
|
|
23
|
-
return e && a &&
|
|
20
|
+
var y = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, c = (r, t, o, e) => {
|
|
21
|
+
for (var a = e > 1 ? void 0 : e ? $(t, o) : t, s = r.length - 1, n; s >= 0; s--)
|
|
22
|
+
(n = r[s]) && (a = (e ? n(t, o, a) : n(a)) || a);
|
|
23
|
+
return e && a && y(t, o, a), a;
|
|
24
24
|
};
|
|
25
|
-
let i = class extends p(
|
|
25
|
+
let i = class extends p(g) {
|
|
26
26
|
constructor() {
|
|
27
27
|
super(...arguments), this._accept = () => {
|
|
28
28
|
this.confirm();
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return
|
|
32
|
+
return l`${b(this)}`;
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
i.styles = v`
|
|
36
|
-
${
|
|
36
|
+
${m(x)}
|
|
37
37
|
`;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
c([
|
|
39
|
+
h({ targetId: "import-data-region", name: f.regionManager.regions.shell.importData })
|
|
40
40
|
], i.prototype, "importDataRegion", 2);
|
|
41
|
-
i =
|
|
41
|
+
i = c([
|
|
42
42
|
u("import-data-manager-modal")
|
|
43
43
|
], i);
|
|
44
44
|
export {
|
|
45
45
|
i as ImportDataManagerModal
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=component-
|
|
47
|
+
//# sourceMappingURL=component-CO4giq86.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-CO4giq86.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 { ImportDataManagerModal } from \"./component\";\n\nexport const template = (props: ImportDataManagerModal) => {\n return html`\n <div class=\"container\">\n <!-- <div class=\"header\">\n <div class=\"title\">\n <div>${translate(\"importDataManager.title\")}</div>\n </div> \n </div> -->\n <div class=\"content\" id=\"import-data-region\"></div>\n <div class=\"footer\">\n <dss-button label=\"${translate(\"importDataManager.actions.cancel\")}\" @click=\"${() => {\n props.cancel();\n }}\" size=\"md\" variant=\"secondary\"></dss-button>\n <dss-button label=\"${translate(\"importDataManager.actions.import\")}\" @click=\"${() => {\n props._accept();\n }}\" size=\"md\" variant=\"primary\"></dss-button>\n </div>\n </div>\n `;\n};\n","import { IRegion, region } from \"@uxland/regions\";\nimport { LitElement, css, html, unsafeCSS } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\nimport styles from \"./styles.css?inline\";\nimport { template } from \"./template\";\nimport { ConfirmationContentProps } from \"../../interaction-service\";\nimport { PrimariaRegionHost, shellApi } from \"../../api\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal\n extends PrimariaRegionHost(LitElement)\n implements ConfirmationContentProps<undefined, undefined>\n{\n data: undefined;\n setResult: (result: undefined) => void;\n setIsValid: (isValid: boolean) => void;\n confirm: () => void;\n cancel: () => void;\n\n @region({ targetId: \"import-data-region\", name: shellApi.regionManager.regions.shell.importData })\n importDataRegion: IRegion | undefined;\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","translate","ImportDataManagerModal","PrimariaRegionHost","LitElement","css","unsafeCSS","styles","__decorateClass","region","shellApi","customElement"],"mappings":";gqBAIaA,IAAW,CAACC,MAChBC;AAAAA;AAAAA;AAAAA;AAAAA,iBAIQC,EAAU,yBAAyB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,yBAK5BA,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACjF,EAAAF,EAAM,OAAA;AACR,CAAC;AAAA,2BACoBE,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACnF,EAAAF,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;;;;;;ACVA,IAAMG,IAAN,cACGC,EAAmBC,CAAU,EAEvC;AAAA,EAHO,cAAA;AAAA,UAAA,GAAA,SAAA,GAqBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAxBaI,EAiBJ,SAASG;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAPrBC,EAAA;AAAA,EADCC,EAAO,EAAE,UAAU,sBAAsB,MAAMC,EAAS,cAAc,QAAQ,MAAM,WAAA,CAAY;AAAA,GAVtFR,EAWX,WAAA,oBAAA,CAAA;AAXWA,IAANM,EAAA;AAAA,EADNG,EAAc,2BAA2B;AAAA,GAC7BT,CAAA;"}
|
|
@@ -9558,7 +9558,8 @@ class RegionManagerProxy {
|
|
|
9558
9558
|
* @return {Promise<void>} A promise that resolves when the view is successfully removed.
|
|
9559
9559
|
*/
|
|
9560
9560
|
removeView(J, X) {
|
|
9561
|
-
|
|
9561
|
+
const re = this.regionManager.getRegion(J);
|
|
9562
|
+
return re && re.removeView(`${this.pluginInfo.pluginId}::${X}`), Promise.resolve();
|
|
9562
9563
|
}
|
|
9563
9564
|
/**
|
|
9564
9565
|
* Activates a view in a specific region.
|
|
@@ -9681,7 +9682,7 @@ class ImportDataManagerImpl {
|
|
|
9681
9682
|
async import(J) {
|
|
9682
9683
|
this.currentImporterId = J, this.selectedItems = {}, this.pluginTexts = {};
|
|
9683
9684
|
try {
|
|
9684
|
-
const { ImportDataManagerModal: X } = await import("./component-
|
|
9685
|
+
const { ImportDataManagerModal: X } = await import("./component-CO4giq86.js"), { confirmed: re } = await this.interactionService.confirm(
|
|
9685
9686
|
void 0,
|
|
9686
9687
|
{ component: X },
|
|
9687
9688
|
{
|
|
@@ -45547,10 +45548,21 @@ const commonNavMenuItems = [
|
|
|
45547
45548
|
});
|
|
45548
45549
|
}, registerDoctorNavMenuViews = () => {
|
|
45549
45550
|
registerCommunicationNavMenu(), registerDoctorCommunicationMenuActions(), registerNavMenuViews(doctorNavMenuItems);
|
|
45551
|
+
}, registerDoctorQuickActionViews = () => {
|
|
45552
|
+
shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.quickActions, {
|
|
45553
|
+
id: "dates",
|
|
45554
|
+
sortHint: "0001",
|
|
45555
|
+
factory: () => {
|
|
45556
|
+
const te = new QuickActionItem("", "Cita", () => {
|
|
45557
|
+
navigateToEcapWithoutClosingWithCip("CREAR_VISITA");
|
|
45558
|
+
});
|
|
45559
|
+
return Promise.resolve(te);
|
|
45560
|
+
}
|
|
45561
|
+
});
|
|
45550
45562
|
}, registerMainViews = () => {
|
|
45551
45563
|
registerPDFVisorMainView();
|
|
45552
45564
|
}, useInternalViews = () => {
|
|
45553
|
-
registerMainViews(), shellApi.userManager.isUserRoleAdministrative() ? registerAdministrativeNavMenuViews() : registerDoctorNavMenuViews();
|
|
45565
|
+
registerMainViews(), shellApi.userManager.isUserRoleAdministrative() ? registerAdministrativeNavMenuViews() : (registerDoctorNavMenuViews(), registerDoctorQuickActionViews());
|
|
45554
45566
|
}, useUI = () => {
|
|
45555
45567
|
p$g.registerAdapterFactory(
|
|
45556
45568
|
"primaria-content-switcher",
|
|
@@ -45588,23 +45600,23 @@ if (typeof document < "u") {
|
|
|
45588
45600
|
export {
|
|
45589
45601
|
EcapEventManager as E,
|
|
45590
45602
|
PrimariaRegionHost as P,
|
|
45591
|
-
|
|
45592
|
-
|
|
45593
|
-
|
|
45594
|
-
|
|
45595
|
-
|
|
45596
|
-
|
|
45597
|
-
|
|
45603
|
+
shellApi as a,
|
|
45604
|
+
t$j as b,
|
|
45605
|
+
PrimariaNavItem as c,
|
|
45606
|
+
createEcapEventManager as d,
|
|
45607
|
+
initializeShell as e,
|
|
45608
|
+
disposeShell as f,
|
|
45609
|
+
raiseCloseEvent as g,
|
|
45598
45610
|
h$n as h,
|
|
45599
45611
|
i$A as i,
|
|
45600
|
-
|
|
45612
|
+
raiseCustomCloseEvent as j,
|
|
45601
45613
|
ke$1 as k,
|
|
45602
|
-
|
|
45603
|
-
|
|
45604
|
-
|
|
45605
|
-
|
|
45606
|
-
|
|
45607
|
-
|
|
45614
|
+
shellRegions as l,
|
|
45615
|
+
clinicalMonitoringRegions as m,
|
|
45616
|
+
bootstrapPlugins as n,
|
|
45617
|
+
handleStartupPlugin as o,
|
|
45618
|
+
disposePlugins as p,
|
|
45619
|
+
primariaApiFactory as q,
|
|
45608
45620
|
r$F as r,
|
|
45609
45621
|
s$A as s,
|
|
45610
45622
|
translate$1 as t,
|
|
@@ -45612,4 +45624,4 @@ export {
|
|
|
45612
45624
|
h as v,
|
|
45613
45625
|
PrimariaInteractionService as w
|
|
45614
45626
|
};
|
|
45615
|
-
//# sourceMappingURL=index-
|
|
45627
|
+
//# sourceMappingURL=index-BpU2-bo3.js.map
|