@uxland/primary-shell 7.6.0 → 7.6.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,4 +1,4 @@
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-Ch8yQs0A.js";
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-TGuZITiN.js";
2
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`
3
3
  <div class="container">
4
4
  <!-- <div class="header">
@@ -44,4 +44,4 @@ i = l([
44
44
  export {
45
45
  i as ImportDataManagerModal
46
46
  };
47
- //# sourceMappingURL=component-BZxwWLj2.js.map
47
+ //# sourceMappingURL=component-IeDCtH1B.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-BZxwWLj2.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","\nimport { 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 } from \"../../api\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal\n extends PrimariaRegionHost(LitElement) 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: \"import-data-region\" })\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","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;;;;;;ACTA,IAAMG,IAAN,cACGC,EAAmBC,CAAU,EACvC;AAAA,EAFO,cAAA;AAAA,UAAA,GAAA,SAAA,GAoBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAvBaI,EAgBJ,SAASG;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAPrBC,EAAA;AAAA,EADCC,EAAO,EAAE,UAAU,sBAAsB,MAAM,sBAAsB;AAAA,GAT3DP,EAUX,WAAA,oBAAA,CAAA;AAVWA,IAANM,EAAA;AAAA,EADNE,EAAc,2BAA2B;AAAA,GAC7BR,CAAA;"}
1
+ {"version":3,"file":"component-IeDCtH1B.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","\nimport { 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 } from \"../../api\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal\n extends PrimariaRegionHost(LitElement) 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: \"import-data-region\" })\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","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;;;;;;ACTA,IAAMG,IAAN,cACGC,EAAmBC,CAAU,EACvC;AAAA,EAFO,cAAA;AAAA,UAAA,GAAA,SAAA,GAoBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAvBaI,EAgBJ,SAASG;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAPrBC,EAAA;AAAA,EADCC,EAAO,EAAE,UAAU,sBAAsB,MAAM,sBAAsB;AAAA,GAT3DP,EAUX,WAAA,oBAAA,CAAA;AAVWA,IAANM,EAAA;AAAA,EADNE,EAAc,2BAA2B;AAAA,GAC7BR,CAAA;"}
@@ -8930,12 +8930,10 @@ const useLocalization = async (te) => {
8930
8930
  askExit: "Atenció, vols sortir igualment?",
8931
8931
  finalizeVisit: "Finalitzar visita"
8932
8932
  },
8933
- clinicalMonitoring: {
8934
- title: "Seguiment clínic"
8935
- },
8936
8933
  errors: {
8937
8934
  session: "Hi ha hagut un error amb la sessió. Siusplau, tanca i torna a obrir l'aplicació.",
8938
- invalidPatient: "El pacient actual no és vàlid. Siusplau, tanca i torna a obrir l'aplicació."
8935
+ invalidPatient: "El pacient actual no és vàlid. Siusplau, tanca i torna a obrir l'aplicació.",
8936
+ exit: "Hi ha hagut un error en sortir de l'ETC"
8939
8937
  },
8940
8938
  header: {
8941
8939
  workCenter: "Centre treball",
@@ -9673,7 +9671,7 @@ class ImportDataManagerImpl {
9673
9671
  async import(J) {
9674
9672
  this.currentImporterId = J, this.selectedItems = {}, this.pluginTexts = {};
9675
9673
  try {
9676
- const { ImportDataManagerModal: X } = await import("./component-BZxwWLj2.js"), { confirmed: re } = await this.interactionService.confirm(
9674
+ const { ImportDataManagerModal: X } = await import("./component-IeDCtH1B.js"), { confirmed: re } = await this.interactionService.confirm(
9677
9675
  void 0,
9678
9676
  { component: X },
9679
9677
  {
@@ -16012,7 +16010,7 @@ const registerViews$2 = (te) => {
16012
16010
  bootstrapActivityHistoryItem(te);
16013
16011
  }, teardownFeatures = () => {
16014
16012
  teardownActivityHistoryItem();
16015
- }, initialize$2 = async (te) => (setShellApiForOwnSpec(te), registerViews$2(te), await initializeLocalization(te), bindDeps(te), bootstrapFeatures(te), Promise.resolve()), dispose$2 = () => (setShellApiForOwnSpec(null), teardownFeatures(), unregisterViews$2(), unbindDeps(), Promise.resolve()), styles$9 = ":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:25%;border-left:1px solid rgb(189,189,189);overflow:auto}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:24px 24px 0}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding:24px}@media (max-width: 1439px){:host{min-height:100vh}.wrapper{flex-direction:column}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;overflow:auto;min-height:100%}.wrapper .content #header-widgets-region{grid-template-columns:1fr;gap:16px}.wrapper .content #content-widgets-region{height:70vh;flex:none}}", template$b = (te) => ke$1`
16013
+ }, initialize$2 = async (te) => (setShellApiForOwnSpec(te), registerViews$2(te), await initializeLocalization(te), bindDeps(te), bootstrapFeatures(te), Promise.resolve()), dispose$2 = () => (setShellApiForOwnSpec(null), teardownFeatures(), unregisterViews$2(), unbindDeps(), Promise.resolve()), styles$9 = ":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:25%;border-left:1px solid rgb(189,189,189);overflow:auto}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:24px 24px 0}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding:24px}@media (max-width: 1439px){:host{min-height:100vh}.wrapper{flex-direction:column}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;overflow:auto;min-height:100%}.wrapper .content #content-widgets-region{height:70vh;flex:none}}", template$b = (te) => ke$1`
16016
16014
  <div class="wrapper">
16017
16015
  <div class="content">
16018
16016
  <div id="header-widgets-region"></div>
@@ -16099,7 +16097,7 @@ const registerViews$1 = async (te) => {
16099
16097
  te.regionManager.removeView(te.regionManager.regions.shell.main, te.pluginInfo.pluginId), te.regionManager.removeView(te.regionManager.regions.shell.navigationMenu, te.pluginInfo.pluginId);
16100
16098
  }, activateClinicalMonitoringView$1 = (te) => {
16101
16099
  te.regionManager.activateMainView(te.pluginInfo.pluginId);
16102
- }, initialize$1 = async (te) => (registerViews$1(te), Promise.resolve()), dispose$1 = (te) => (unregisterViews$1(te), Promise.resolve()), styles$8 = ":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:50%;border-left:1px solid rgb(189,189,189);overflow:auto}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;padding:24px 24px 0}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding:24px}@media (max-width: 1439px){:host{min-height:100vh}.wrapper{flex-direction:column}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;overflow:auto}.wrapper .content #header-widgets-region{grid-template-columns:1fr;gap:16px}.wrapper .content #content-widgets-region{height:70vh;flex:none}}", template$a = (te) => ke$1`
16100
+ }, initialize$1 = async (te) => (registerViews$1(te), Promise.resolve()), dispose$1 = (te) => (unregisterViews$1(te), Promise.resolve()), styles$8 = ":host{min-height:1px;height:100%;width:100%}.wrapper{position:relative;min-height:1px;height:100%;display:flex;flex-direction:row}.wrapper #widgets-sidebar-region{width:50%;border-left:1px solid rgb(189,189,189);overflow:auto}.wrapper .content{flex:1;display:flex;flex-direction:column}.wrapper .content #header-widgets-region{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;padding:24px 24px 0}.wrapper .content #content-widgets-region{flex:1;min-height:1px;height:100%;padding:24px}@media (max-width: 1439px){:host{min-height:100vh}.wrapper{flex-direction:column}.wrapper #widgets-sidebar-region{max-width:100%;width:auto;border-left:none;overflow:auto}.wrapper .content #content-widgets-region{height:70vh;flex:none}}", template$a = (te) => ke$1`
16103
16101
  <div class="wrapper">
16104
16102
  <div class="content">
16105
16103
  <div id="header-widgets-region"></div>
@@ -16171,7 +16169,7 @@ const registerViews = async (te) => {
16171
16169
  factory: () => {
16172
16170
  const J = new PrimariaNavItem({
16173
16171
  icon: "account_box",
16174
- label: "Seguiment clínic",
16172
+ label: "Seguiment administratiu",
16175
16173
  callbackFn: () => {
16176
16174
  te.regionManager.activateMainView(te.pluginInfo.pluginId);
16177
16175
  }
@@ -16239,8 +16237,8 @@ let ExitShellHandler = class {
16239
16237
  this.timeout(1e4)
16240
16238
  // Si passen 5s, es segueix amb l'execució
16241
16239
  ]), disposeShell(), this.emitClose(J);
16242
- } catch (X) {
16243
- this.api.notificationService.error(X.message), this.emitClose(J);
16240
+ } catch {
16241
+ this.api.notificationService.error(translate$1("errors.exit")), this.emitClose(J);
16244
16242
  }
16245
16243
  }
16246
16244
  askForClose(te) {
@@ -45140,4 +45138,4 @@ export {
45140
45138
  h as u,
45141
45139
  PrimariaInteractionService as v
45142
45140
  };
45143
- //# sourceMappingURL=index-Ch8yQs0A.js.map
45141
+ //# sourceMappingURL=index-TGuZITiN.js.map