@uxland/primary-shell 7.46.2 → 7.46.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.
- package/dist/{component-BE8pBQfD.js → component-Cubb3jxz.js} +2 -2
- package/dist/{component-BE8pBQfD.js.map → component-Cubb3jxz.js.map} +1 -1
- package/dist/{index-JPNbnLH1.js → index-DtHjM8k5.js} +32 -89
- package/dist/index-DtHjM8k5.js.map +1 -0
- package/dist/index.js +14 -17
- package/dist/index.umd.cjs +10 -10
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/clinical-pathways-action-menu/clinical-pathways-action-menu.d.ts +1 -1
- package/dist/primary/shell/src/UI/components/communication-action-menu/communication-action-menu.d.ts +1 -1
- package/dist/primary/shell/src/UI/components/petitioner-action-menu/petitioner-action-menu.d.ts +1 -1
- package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +0 -1
- package/dist/primary/shell/src/api/broker/broker-events.d.ts +0 -2
- package/dist/primary/shell/src/api/token-manager/token-manager.d.ts +15 -2
- package/dist/primary/shell/src/index.d.ts +3 -1
- package/package.json +1 -1
- package/src/UI/components/clinical-pathways-action-menu/clinical-pathways-action-menu.ts +6 -5
- package/src/UI/components/communication-action-menu/communication-action-menu.ts +6 -5
- package/src/UI/components/petitioner-action-menu/petitioner-action-menu.ts +6 -5
- package/src/UI/components/primaria-shell/primaria-shell.ts +2 -92
- package/src/api/broker/broker-events.ts +0 -2
- package/src/api/token-manager/token-manager.ts +16 -2
- package/src/features/utils.ts +6 -3
- package/src/index.ts +9 -1
- package/dist/index-JPNbnLH1.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s, t as d, k as l, h as p, r as m, i as g, a as h } from "./index-
|
|
1
|
+
import { s, t as d, k as l, h as p, r as m, i as g, a as h } from "./index-DtHjM8k5.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-
|
|
52
|
+
//# sourceMappingURL=component-Cubb3jxz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-Cubb3jxz.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;"}
|
|
@@ -3122,9 +3122,7 @@ const f$o = (X) => new w$5(X), c$o = (X) => X.importer(), R$5 = async (X, W, te)
|
|
|
3122
3122
|
mainViewChanged: "mainViewChanged",
|
|
3123
3123
|
refreshTokenFailed: "refreshTokenFailed",
|
|
3124
3124
|
mpidHeaderInvalid: "mpidHeaderInvalid",
|
|
3125
|
-
quickActionBusyChanged: "quickActionBusyChanged"
|
|
3126
|
-
scrollToNavItemRequested: "scrollToNavItemRequested",
|
|
3127
|
-
scrollToNavItemCompleted: "scrollToNavItemCompleted"
|
|
3125
|
+
quickActionBusyChanged: "quickActionBusyChanged"
|
|
3128
3126
|
},
|
|
3129
3127
|
administrativeManagement: {
|
|
3130
3128
|
tabSelected: "administrative_management_tab_selected"
|
|
@@ -9474,7 +9472,7 @@ class ImportDataManagerImpl {
|
|
|
9474
9472
|
async import(W, te) {
|
|
9475
9473
|
this.currentImporterId = W, this.currentImportParams = te, this.selectedItems = {}, this.pluginTexts = {};
|
|
9476
9474
|
try {
|
|
9477
|
-
const { ImportDataManagerModal: re } = await import("./component-
|
|
9475
|
+
const { ImportDataManagerModal: re } = await import("./component-Cubb3jxz.js"), { confirmed: oe } = await this.interactionService.confirm(
|
|
9478
9476
|
void 0,
|
|
9479
9477
|
{ component: re },
|
|
9480
9478
|
{
|
|
@@ -44400,10 +44398,6 @@ const Xs = class Xs extends PrimariaRegionHost(h$n) {
|
|
|
44400
44398
|
shellApi.broker.subscribe(BROKER_EVENTS.shell.quickActionBusyChanged, (W) => {
|
|
44401
44399
|
this.quickActionBusy = W.busy;
|
|
44402
44400
|
})
|
|
44403
|
-
), this.subscriptions.push(
|
|
44404
|
-
shellApi.broker.subscribe(BROKER_EVENTS.shell.scrollToNavItemRequested, (W) => {
|
|
44405
|
-
this._scrollToNavItem(W);
|
|
44406
|
-
})
|
|
44407
44401
|
);
|
|
44408
44402
|
}
|
|
44409
44403
|
_handleError(W) {
|
|
@@ -44412,54 +44406,6 @@ const Xs = class Xs extends PrimariaRegionHost(h$n) {
|
|
|
44412
44406
|
_unsubscribeEvents() {
|
|
44413
44407
|
this.subscriptions.forEach((W) => W.dispose());
|
|
44414
44408
|
}
|
|
44415
|
-
async _scrollToNavItem(W) {
|
|
44416
|
-
const re = (await shellApi.regionManager.getRegion(shellApi.regionManager.regions.shell.navigationMenu)).currentActiveViews, oe = W.includes("::") ? W.split("::")[1] : W;
|
|
44417
|
-
if (!re.find((ge) => ge.id === oe)) {
|
|
44418
|
-
shellApi.broker.publish(BROKER_EVENTS.shell.scrollToNavItemCompleted, {
|
|
44419
|
-
scrollTop: 0,
|
|
44420
|
-
containerTop: 0,
|
|
44421
|
-
itemIndex: -1
|
|
44422
|
-
});
|
|
44423
|
-
return;
|
|
44424
|
-
}
|
|
44425
|
-
const ce = [...re].sort((ge, ve) => {
|
|
44426
|
-
const me = ge.sortHint || "999", _e = ve.sortHint || "999";
|
|
44427
|
-
return me.localeCompare(_e);
|
|
44428
|
-
}).findIndex((ge) => ge.id === oe);
|
|
44429
|
-
if (ce === -1) {
|
|
44430
|
-
shellApi.broker.publish(BROKER_EVENTS.shell.scrollToNavItemCompleted, {
|
|
44431
|
-
scrollTop: 0,
|
|
44432
|
-
containerTop: 0,
|
|
44433
|
-
itemIndex: -1
|
|
44434
|
-
});
|
|
44435
|
-
return;
|
|
44436
|
-
}
|
|
44437
|
-
const ue = this.shadowRoot?.querySelector("#menu-region-container");
|
|
44438
|
-
if (!ue) {
|
|
44439
|
-
shellApi.broker.publish(BROKER_EVENTS.shell.scrollToNavItemCompleted, {
|
|
44440
|
-
scrollTop: 0,
|
|
44441
|
-
containerTop: 0,
|
|
44442
|
-
itemIndex: ce
|
|
44443
|
-
});
|
|
44444
|
-
return;
|
|
44445
|
-
}
|
|
44446
|
-
const pe = 51, he = pe * ce, fe = ue.clientHeight, be = he - fe / 2 + pe / 2;
|
|
44447
|
-
ue.scrollTo({
|
|
44448
|
-
top: Math.max(0, be),
|
|
44449
|
-
behavior: "smooth"
|
|
44450
|
-
}), setTimeout(() => {
|
|
44451
|
-
const ge = ue.getBoundingClientRect(), ve = Array.from(ue.children);
|
|
44452
|
-
let me = window.innerHeight / 2;
|
|
44453
|
-
ve[ce] && (me = ve[ce].getBoundingClientRect().top);
|
|
44454
|
-
const _e = {
|
|
44455
|
-
scrollTop: ue.scrollTop,
|
|
44456
|
-
containerTop: ge.top,
|
|
44457
|
-
itemIndex: ce,
|
|
44458
|
-
itemAbsoluteY: me
|
|
44459
|
-
};
|
|
44460
|
-
shellApi.broker.publish(BROKER_EVENTS.shell.scrollToNavItemCompleted, _e);
|
|
44461
|
-
}, 300);
|
|
44462
|
-
}
|
|
44463
44409
|
};
|
|
44464
44410
|
Xs.styles = i$R`
|
|
44465
44411
|
${r$K(styles$b)}
|
|
@@ -44743,7 +44689,7 @@ let PrimariaAccordion = ri;
|
|
|
44743
44689
|
__decorateClass$b([
|
|
44744
44690
|
n$A({ type: Boolean })
|
|
44745
44691
|
], PrimariaAccordion.prototype, "isOpen");
|
|
44746
|
-
const template$8 = (X) => ke$1`
|
|
44692
|
+
const styles$8 = ".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}dss-tooltip{pointer-events:none}", template$8 = (X) => ke$1`
|
|
44747
44693
|
<div class="item" ?expanded=${X.showText}>
|
|
44748
44694
|
<div class="icon-label">
|
|
44749
44695
|
<dss-icon icon=${X.icon} size="md"></dss-icon>
|
|
@@ -44757,7 +44703,7 @@ const template$8 = (X) => ke$1`
|
|
|
44757
44703
|
</dss-action-menu>
|
|
44758
44704
|
${X.showText ? ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>` : D$4}
|
|
44759
44705
|
</div>
|
|
44760
|
-
|
|
44706
|
+
`;
|
|
44761
44707
|
var __defProp$a = Object.defineProperty, __decorateClass$a = (X, W, te, re) => {
|
|
44762
44708
|
for (var oe = void 0, ne = X.length - 1, de; ne >= 0; ne--)
|
|
44763
44709
|
(de = X[ne]) && (oe = de(W, te, oe) || oe);
|
|
@@ -44791,7 +44737,7 @@ __decorateClass$a([
|
|
|
44791
44737
|
r$H()
|
|
44792
44738
|
], CommunicationActionMenu.prototype, "showText");
|
|
44793
44739
|
__decorateClass$a([
|
|
44794
|
-
s$L({ targetId: "communication-sidenav-region-container", name:
|
|
44740
|
+
s$L({ targetId: "communication-sidenav-region-container", name: shellRegions.communicationSidenav })
|
|
44795
44741
|
], CommunicationActionMenu.prototype, "comminucationSidenavRegion");
|
|
44796
44742
|
__decorateClass$a([
|
|
44797
44743
|
n$A({ type: String })
|
|
@@ -44799,7 +44745,7 @@ __decorateClass$a([
|
|
|
44799
44745
|
__decorateClass$a([
|
|
44800
44746
|
n$A({ type: String })
|
|
44801
44747
|
], CommunicationActionMenu.prototype, "label");
|
|
44802
|
-
const template$7 = (X) => ke$1`
|
|
44748
|
+
const styles$7 = ".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}dss-tooltip{pointer-events:none}", template$7 = (X) => ke$1`
|
|
44803
44749
|
<div class="item" ?expanded=${X.showText}>
|
|
44804
44750
|
<div class="icon-label">
|
|
44805
44751
|
<dss-icon icon=${X.icon} size="md"></dss-icon>
|
|
@@ -44813,7 +44759,7 @@ const template$7 = (X) => ke$1`
|
|
|
44813
44759
|
</dss-action-menu>
|
|
44814
44760
|
${X.showText ? ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>` : D$4}
|
|
44815
44761
|
</div>
|
|
44816
|
-
|
|
44762
|
+
`;
|
|
44817
44763
|
var __defProp$9 = Object.defineProperty, __decorateClass$9 = (X, W, te, re) => {
|
|
44818
44764
|
for (var oe = void 0, ne = X.length - 1, de; ne >= 0; ne--)
|
|
44819
44765
|
(de = X[ne]) && (oe = de(W, te, oe) || oe);
|
|
@@ -44847,7 +44793,7 @@ __decorateClass$9([
|
|
|
44847
44793
|
r$H()
|
|
44848
44794
|
], ClinicalPathwaysActionMenu.prototype, "showText");
|
|
44849
44795
|
__decorateClass$9([
|
|
44850
|
-
s$L({ targetId: "clinical-pathways-sidenav-region-container", name:
|
|
44796
|
+
s$L({ targetId: "clinical-pathways-sidenav-region-container", name: shellRegions.clinicalPathwaysSidenav })
|
|
44851
44797
|
], ClinicalPathwaysActionMenu.prototype, "clinicalPathwaysSidenavRegion");
|
|
44852
44798
|
__decorateClass$9([
|
|
44853
44799
|
n$A({ type: String })
|
|
@@ -44855,7 +44801,7 @@ __decorateClass$9([
|
|
|
44855
44801
|
__decorateClass$9([
|
|
44856
44802
|
n$A({ type: String })
|
|
44857
44803
|
], ClinicalPathwaysActionMenu.prototype, "label");
|
|
44858
|
-
const template$6 = (X) => ke$1`
|
|
44804
|
+
const styles$6 = ".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}dss-tooltip{pointer-events:none}", template$6 = (X) => ke$1`
|
|
44859
44805
|
<div class="item" ?expanded=${X.showText}>
|
|
44860
44806
|
<div class="icon-label">
|
|
44861
44807
|
<dss-icon icon=${X.icon} size="md"></dss-icon>
|
|
@@ -44869,7 +44815,7 @@ const template$6 = (X) => ke$1`
|
|
|
44869
44815
|
</dss-action-menu>
|
|
44870
44816
|
${X.showText ? ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>` : D$4}
|
|
44871
44817
|
</div>
|
|
44872
|
-
|
|
44818
|
+
`;
|
|
44873
44819
|
var __defProp$8 = Object.defineProperty, __decorateClass$8 = (X, W, te, re) => {
|
|
44874
44820
|
for (var oe = void 0, ne = X.length - 1, de; ne >= 0; ne--)
|
|
44875
44821
|
(de = X[ne]) && (oe = de(W, te, oe) || oe);
|
|
@@ -44903,7 +44849,7 @@ __decorateClass$8([
|
|
|
44903
44849
|
r$H()
|
|
44904
44850
|
], PetitionerActionMenu.prototype, "showText");
|
|
44905
44851
|
__decorateClass$8([
|
|
44906
|
-
s$L({ targetId: "petitioner-sidenav-region-container", name:
|
|
44852
|
+
s$L({ targetId: "petitioner-sidenav-region-container", name: shellRegions.petitionerSidenav })
|
|
44907
44853
|
], PetitionerActionMenu.prototype, "petitionerSidenavRegion");
|
|
44908
44854
|
__decorateClass$8([
|
|
44909
44855
|
n$A({ type: String })
|
|
@@ -53712,36 +53658,33 @@ if (typeof document < "u") {
|
|
|
53712
53658
|
` + dssCSS, document.head.appendChild(X);
|
|
53713
53659
|
}
|
|
53714
53660
|
export {
|
|
53715
|
-
l as A,
|
|
53716
|
-
PrimariaInteractionService as B,
|
|
53717
53661
|
EcapEventManager as E,
|
|
53718
|
-
|
|
53662
|
+
PrimariaRegionHost as P,
|
|
53719
53663
|
QuickActionItem as Q,
|
|
53720
53664
|
t$z as a,
|
|
53721
|
-
|
|
53722
|
-
|
|
53723
|
-
|
|
53724
|
-
|
|
53725
|
-
|
|
53726
|
-
|
|
53665
|
+
PrimariaNavItem as b,
|
|
53666
|
+
PrimariaRegion as c,
|
|
53667
|
+
createEcapEventManager as d,
|
|
53668
|
+
ExitShell as e,
|
|
53669
|
+
initializeShell as f,
|
|
53670
|
+
disposeShell as g,
|
|
53727
53671
|
h$n as h,
|
|
53728
53672
|
i$R as i,
|
|
53729
|
-
|
|
53673
|
+
raiseCloseEvent as j,
|
|
53730
53674
|
ke$1 as k,
|
|
53731
|
-
|
|
53732
|
-
|
|
53733
|
-
|
|
53734
|
-
|
|
53735
|
-
|
|
53736
|
-
|
|
53675
|
+
raiseCustomCloseEvent as l,
|
|
53676
|
+
shellRegions as m,
|
|
53677
|
+
clinicalMonitoringRegions as n,
|
|
53678
|
+
activityHistoryRegions as o,
|
|
53679
|
+
administrativeManagementRegions as p,
|
|
53680
|
+
bootstrapPlugins as q,
|
|
53737
53681
|
r$K as r,
|
|
53738
53682
|
shellApi as s,
|
|
53739
53683
|
translate$1 as t,
|
|
53740
|
-
|
|
53741
|
-
|
|
53742
|
-
|
|
53743
|
-
|
|
53744
|
-
|
|
53745
|
-
|
|
53746
|
-
|
|
53747
|
-
//# sourceMappingURL=index-JPNbnLH1.js.map
|
|
53684
|
+
handleStartupPlugin as u,
|
|
53685
|
+
disposePlugins as v,
|
|
53686
|
+
PrimariaContentSwitcher as w,
|
|
53687
|
+
l as x,
|
|
53688
|
+
PrimariaInteractionService as y
|
|
53689
|
+
};
|
|
53690
|
+
//# sourceMappingURL=index-DtHjM8k5.js.map
|