@uxland/primary-shell 7.46.9 → 7.46.11

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,4 +1,4 @@
1
- import { s, u as d, k as l, h as p, r as m, b as g, c as h } from "./index-BgG_JnBV.js";
1
+ import { s, u as d, k as l, h as p, r as m, b as g, c as h } from "./index-eNimG-uq.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-B4MBATTL.js.map
52
+ //# sourceMappingURL=component-D1LT-9ft.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-B4MBATTL.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;"}
1
+ {"version":3,"file":"component-D1LT-9ft.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;"}
@@ -9478,7 +9478,7 @@ class ImportDataManagerImpl {
9478
9478
  async import(W, X) {
9479
9479
  this.currentImporterId = W, this.currentImportParams = X, this.selectedItems = {}, this.pluginTexts = {};
9480
9480
  try {
9481
- const { ImportDataManagerModal: oe } = await import("./component-B4MBATTL.js"), { confirmed: ne } = await this.interactionService.confirm(
9481
+ const { ImportDataManagerModal: oe } = await import("./component-D1LT-9ft.js"), { confirmed: ne } = await this.interactionService.confirm(
9482
9482
  void 0,
9483
9483
  { component: oe },
9484
9484
  {
@@ -9581,7 +9581,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
9581
9581
  let bootstrappedPlugins = [];
9582
9582
  const CORE_FIRST_ID = "activity-history", bundledActivityHistory = {
9583
9583
  pluginId: CORE_FIRST_ID,
9584
- importer: () => import("./plugin-Ki8G_OEU.js")
9584
+ importer: () => import("./plugin-Dl1Lkn7z.js")
9585
9585
  }, bootstrapPlugins = async (te, W) => {
9586
9586
  const X = te ?? [], oe = X.filter((ue) => ue.pluginId === CORE_FIRST_ID), ne = X.filter((ue) => ue.pluginId !== CORE_FIRST_ID), re = oe.length ? oe : [bundledActivityHistory], de = await p$d(
9587
9587
  re,
@@ -45769,7 +45769,12 @@ const commonNavMenuItems = [
45769
45769
  registerCommunicationNavMenu(), registerAdministrativeCommunicationMenuActions(), registerNavMenuViews(administrativeNavMenuItems), registerNavMenuDivider();
45770
45770
  }, getVisiId = async (te) => {
45771
45771
  const W = te.contextManager.getContext();
45772
- return W.visi_id ? W.visi_id : await te.broker.send("get_visi_id");
45772
+ if (W.visi_id) return W.visi_id;
45773
+ try {
45774
+ return await te.broker.send("get_visi_id");
45775
+ } catch {
45776
+ return;
45777
+ }
45773
45778
  }, doctorNavMenuItems = [
45774
45779
  {
45775
45780
  id: "dinamic-monitoring",
@@ -45836,7 +45841,7 @@ const commonNavMenuItems = [
45836
45841
  label: "Prescripció",
45837
45842
  callbackFn: async () => {
45838
45843
  const te = await getVisiId(shellApi);
45839
- navigateToEcap("PRESCRIPCIO_ACTIVA", "NO_TANCAR", { VisiId: te });
45844
+ navigateToEcap("PRESCRIPCIO_ACTIVA", "NO_TANCAR", te ? { VisiId: te } : {});
45840
45845
  }
45841
45846
  },
45842
45847
  {
@@ -45872,7 +45877,7 @@ const commonNavMenuItems = [
45872
45877
  sortHint: "0100",
45873
45878
  callbackFn: async () => {
45874
45879
  const te = await getVisiId(shellApi);
45875
- navigateToEcap("REV_IT", "NO_TANCAR", { VisiId: te });
45880
+ navigateToEcap("REV_IT", "NO_TANCAR", te ? { VisiId: te } : {});
45876
45881
  }
45877
45882
  },
45878
45883
  {
@@ -46133,4 +46138,4 @@ export {
46133
46138
  createEcapEventManager as y,
46134
46139
  ExitShell as z
46135
46140
  };
46136
- //# sourceMappingURL=index-BgG_JnBV.js.map
46141
+ //# sourceMappingURL=index-eNimG-uq.js.map