@uxland/primary-shell 7.11.0 → 7.11.2

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.
@@ -1,5 +1,5 @@
1
- import { t as d, k as c, P as p, h as m, r as g, i as v, s as f, a as u } from "./index-OmsP_dgZ.js";
2
- const h = ".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)}", x = (t) => c`
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-Cv-b9XHD.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
- t.cancel();
12
+ r.cancel();
13
13
  }}" size="md" variant="secondary"></dss-button>
14
14
  <dss-button label="${d("importDataManager.actions.import")}" @click="${() => {
15
- t._accept();
15
+ r._accept();
16
16
  }}" size="md" variant="primary"></dss-button>
17
17
  </div>
18
18
  </div>
19
19
  `;
20
- var b = Object.defineProperty, y = Object.getOwnPropertyDescriptor, l = (t, r, o, e) => {
21
- for (var a = e > 1 ? void 0 : e ? y(r, o) : r, s = t.length - 1, n; s >= 0; s--)
22
- (n = t[s]) && (a = (e ? n(r, o, a) : n(a)) || a);
23
- return e && a && b(r, o, a), 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(m) {
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 c`${x(this)}`;
32
+ return l`${b(this)}`;
33
33
  }
34
34
  };
35
35
  i.styles = v`
36
- ${g(h)}
36
+ ${m(x)}
37
37
  `;
38
- l([
39
- f({ targetId: "import-data-region", name: "import-data-region" })
38
+ c([
39
+ h({ targetId: "import-data-region", name: f.regionManager.regions.shell.importData })
40
40
  ], i.prototype, "importDataRegion", 2);
41
- i = l([
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-DnzxDlBH.js.map
47
+ //# sourceMappingURL=component-Dpavkfpg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-Dpavkfpg.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
- return this.regionManager.getRegion(J).removeView(`${this.pluginInfo.pluginId}::${X}`), Promise.resolve();
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-DnzxDlBH.js"), { confirmed: re } = await this.interactionService.confirm(
9685
+ const { ImportDataManagerModal: X } = await import("./component-Dpavkfpg.js"), { confirmed: re } = await this.interactionService.confirm(
9685
9686
  void 0,
9686
9687
  { component: X },
9687
9688
  {
@@ -45550,7 +45551,7 @@ const commonNavMenuItems = [
45550
45551
  }, registerDoctorQuickActionViews = () => {
45551
45552
  shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.quickActions, {
45552
45553
  id: "dates",
45553
- sortHint: "0001",
45554
+ sortHint: "0011",
45554
45555
  factory: () => {
45555
45556
  const te = new QuickActionItem("", "Cita", () => {
45556
45557
  navigateToEcapWithoutClosingWithCip("CREAR_VISITA");
@@ -45599,23 +45600,23 @@ if (typeof document < "u") {
45599
45600
  export {
45600
45601
  EcapEventManager as E,
45601
45602
  PrimariaRegionHost as P,
45602
- t$j as a,
45603
- PrimariaNavItem as b,
45604
- createEcapEventManager as c,
45605
- initializeShell as d,
45606
- disposeShell as e,
45607
- raiseCloseEvent as f,
45608
- raiseCustomCloseEvent as g,
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,
45609
45610
  h$n as h,
45610
45611
  i$A as i,
45611
- shellRegions as j,
45612
+ raiseCustomCloseEvent as j,
45612
45613
  ke$1 as k,
45613
- clinicalMonitoringRegions as l,
45614
- bootstrapPlugins as m,
45615
- handleStartupPlugin as n,
45616
- disposePlugins as o,
45617
- primariaApiFactory as p,
45618
- shellApi as q,
45614
+ shellRegions as l,
45615
+ clinicalMonitoringRegions as m,
45616
+ bootstrapPlugins as n,
45617
+ handleStartupPlugin as o,
45618
+ disposePlugins as p,
45619
+ primariaApiFactory as q,
45619
45620
  r$F as r,
45620
45621
  s$A as s,
45621
45622
  translate$1 as t,
@@ -45623,4 +45624,4 @@ export {
45623
45624
  h as v,
45624
45625
  PrimariaInteractionService as w
45625
45626
  };
45626
- //# sourceMappingURL=index-OmsP_dgZ.js.map
45627
+ //# sourceMappingURL=index-Cv-b9XHD.js.map