@uxland/primary-shell 7.47.1 → 7.47.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.
@@ -1,4 +1,4 @@
1
- import { s, q as d, k as l, h as p, r as m, b as g, t as h } from "./index-352_YRza.js";
1
+ import { s, u as d, k as l, h as p, r as m, b as g, t as h } from "./index-COaCoudK.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-Dj7xoJqp.js.map
52
+ //# sourceMappingURL=component-BQSdR2nu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-Dj7xoJqp.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 // Injectat pel servei d'interacció igual que la resta; faltava des que es va afegir a la\n // interfície.\n confirmResult: (result: undefined) => 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,GAkBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AArBaK,EAcJ,SAASE;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAfVJ,IAANK,EAAA;AAAA,EADNC,EAAc,2BAA2B;AAAA,GAC7BN,CAAA;"}
1
+ {"version":3,"file":"component-BQSdR2nu.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 // Injectat pel servei d'interacció igual que la resta; faltava des que es va afegir a la\n // interfície.\n confirmResult: (result: undefined) => 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,GAkBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AArBaK,EAcJ,SAASE;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAfVJ,IAANK,EAAA;AAAA,EADNC,EAAc,2BAA2B;AAAA,GAC7BN,CAAA;"}
@@ -8439,6 +8439,17 @@ function createTaggedDecorator(X) {
8439
8439
  typeof oe == "number" ? tagParameter(W, te, oe, X) : tagProperty(W, te, X);
8440
8440
  };
8441
8441
  }
8442
+ function _decorate(X, W) {
8443
+ Reflect.decorate(X, W);
8444
+ }
8445
+ function _param(X, W) {
8446
+ return function(te, oe) {
8447
+ W(te, oe, X);
8448
+ };
8449
+ }
8450
+ function decorate(X, W, te) {
8451
+ typeof te == "number" ? _decorate([_param(te, X)], W) : typeof te == "string" ? Reflect.decorate([X], W, te) : _decorate([X], W);
8452
+ }
8442
8453
  function injectable() {
8443
8454
  return function(X) {
8444
8455
  if (Reflect.hasOwnMetadata(PARAM_TYPES, X))
@@ -8932,7 +8943,7 @@ class ImportDataManagerImpl {
8932
8943
  async import(W, te) {
8933
8944
  this.currentImporterId = W, this.currentImportParams = te, this.selectedItems = {}, this.pluginTexts = {};
8934
8945
  try {
8935
- const { ImportDataManagerModal: oe } = await import("./component-Dj7xoJqp.js"), { confirmed: ne } = await this.interactionService.confirm(
8946
+ const { ImportDataManagerModal: oe } = await import("./component-BQSdR2nu.js"), { confirmed: ne } = await this.interactionService.confirm(
8936
8947
  void 0,
8937
8948
  { component: oe },
8938
8949
  {
@@ -9035,7 +9046,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
9035
9046
  let bootstrappedPlugins = [];
9036
9047
  const CORE_FIRST_ID = "activity-history", bundledActivityHistory = {
9037
9048
  pluginId: CORE_FIRST_ID,
9038
- importer: () => import("./plugin-CdZ1Y5f4.js")
9049
+ importer: () => import("./plugin-Bt7PVg3Z.js")
9039
9050
  }, bootstrapPlugins = async (X, W) => {
9040
9051
  const te = X ?? [], oe = te.filter((ue) => ue.pluginId === CORE_FIRST_ID), ne = te.filter((ue) => ue.pluginId !== CORE_FIRST_ID), re = oe.length ? oe : [bundledActivityHistory], de = await p$d(
9041
9052
  re,
@@ -45493,49 +45504,50 @@ if (typeof document < "u") {
45493
45504
  ` + dssCSS, document.head.appendChild(X);
45494
45505
  }
45495
45506
  export {
45496
- disposeShell as A,
45497
- raiseCloseEvent as B,
45507
+ initializeShell as A,
45508
+ disposeShell as B,
45498
45509
  Container as C,
45499
45510
  D$4 as D,
45500
45511
  EcapEventManager as E,
45501
- raiseCustomCloseEvent as F,
45502
- shellRegions as G,
45503
- clinicalMonitoringRegions as H,
45504
- activityHistoryRegions as I,
45505
- administrativeManagementRegions as J,
45506
- bootstrapPlugins as K,
45507
- handleStartupPlugin as L,
45508
- disposePlugins as M,
45509
- PrimariaContentSwitcher as N,
45510
- l as O,
45512
+ raiseCloseEvent as F,
45513
+ raiseCustomCloseEvent as G,
45514
+ shellRegions as H,
45515
+ clinicalMonitoringRegions as I,
45516
+ activityHistoryRegions as J,
45517
+ administrativeManagementRegions as K,
45518
+ bootstrapPlugins as L,
45519
+ handleStartupPlugin as M,
45520
+ disposePlugins as N,
45521
+ PrimariaContentSwitcher as O,
45511
45522
  PrimariaRegionHost as P,
45512
45523
  Qt as Q,
45513
- PrimariaInteractionService as R,
45524
+ l as R,
45525
+ PrimariaInteractionService as S,
45514
45526
  inject as a,
45515
45527
  i$R as b,
45516
45528
  nn as c,
45517
- r$H as d,
45518
- i$O as e,
45519
- rt as f,
45529
+ decorate as d,
45530
+ r$H as e,
45531
+ i$O as f,
45520
45532
  getDecorators as g,
45521
45533
  h$n as h,
45522
45534
  injectable as i,
45523
- t$w as j,
45535
+ rt as j,
45524
45536
  ke$1 as k,
45525
- e$Q as l,
45526
- to as m,
45537
+ t$w as l,
45538
+ e$Q as m,
45527
45539
  n$A as n,
45528
- e$T as o,
45529
- ae as p,
45530
- translate as q,
45540
+ to as o,
45541
+ e$T as p,
45542
+ ae as q,
45531
45543
  r$L as r,
45532
45544
  shellApi as s,
45533
45545
  t$z as t,
45534
- PrimariaNavItem as u,
45535
- QuickActionItem as v,
45536
- PrimariaRegion as w,
45537
- createEcapEventManager as x,
45538
- ExitShell as y,
45539
- initializeShell as z
45540
- };
45541
- //# sourceMappingURL=index-352_YRza.js.map
45546
+ translate as u,
45547
+ PrimariaNavItem as v,
45548
+ QuickActionItem as w,
45549
+ PrimariaRegion as x,
45550
+ createEcapEventManager as y,
45551
+ ExitShell as z
45552
+ };
45553
+ //# sourceMappingURL=index-COaCoudK.js.map