@uxland/primary-shell 7.29.7 → 7.29.12
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-DVZj1pQR.js → component-ArjwXoXT.js} +2 -2
- package/dist/{component-DVZj1pQR.js.map → component-ArjwXoXT.js.map} +1 -1
- package/dist/{index-CbiH0JOX.js → index-CRH7Fdpk.js} +125 -112
- package/dist/index-CRH7Fdpk.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +41 -42
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu.d.ts +1 -1
- package/package.json +2 -2
- package/src/UI/components/clinical-pathways-action-menu/styles.css +4 -0
- package/src/UI/components/communication-action-menu/styles.css +4 -0
- package/src/UI/shared-components/primaria-nav-item/styles.css +4 -0
- package/src/UI/shared-components/primaria-nav-item/template.ts +3 -4
- package/src/UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu.ts +6 -5
- package/src/UI/shared-components/primaria-nav-tree-menu/template.ts +35 -39
- package/src/features/visit/finalize-visit/component/template.ts +2 -2
- package/dist/index-CbiH0JOX.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CRH7Fdpk.js";
|
|
2
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">
|
|
@@ -44,4 +44,4 @@ i = c([
|
|
|
44
44
|
export {
|
|
45
45
|
i as ImportDataManagerModal
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=component-
|
|
47
|
+
//# sourceMappingURL=component-ArjwXoXT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-
|
|
1
|
+
{"version":3,"file":"component-ArjwXoXT.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;"}
|
|
@@ -9723,7 +9723,7 @@ class ImportDataManagerImpl {
|
|
|
9723
9723
|
async import(W) {
|
|
9724
9724
|
this.currentImporterId = W, this.selectedItems = {}, this.pluginTexts = {};
|
|
9725
9725
|
try {
|
|
9726
|
-
const { ImportDataManagerModal: X } = await import("./component-
|
|
9726
|
+
const { ImportDataManagerModal: X } = await import("./component-ArjwXoXT.js"), { confirmed: te } = await this.interactionService.confirm(
|
|
9727
9727
|
void 0,
|
|
9728
9728
|
{ component: X },
|
|
9729
9729
|
{
|
|
@@ -11793,6 +11793,26 @@ class CustomFilterSpec extends Spec {
|
|
|
11793
11793
|
return W.type === X.id;
|
|
11794
11794
|
}
|
|
11795
11795
|
}
|
|
11796
|
+
class DiagnosticCodeSpec extends Spec {
|
|
11797
|
+
constructor(W) {
|
|
11798
|
+
super(), this.diagnosticCodes = this.extractAllCodes(W);
|
|
11799
|
+
}
|
|
11800
|
+
extractAllCodes(W) {
|
|
11801
|
+
const X = /* @__PURE__ */ new Set();
|
|
11802
|
+
for (const te of W) {
|
|
11803
|
+
if (te.codi && X.add(te.codi), te.evolucions && Array.isArray(te.evolucions))
|
|
11804
|
+
for (const re of te.evolucions)
|
|
11805
|
+
re.codi && X.add(re.codi);
|
|
11806
|
+
if (te.relacions && Array.isArray(te.relacions))
|
|
11807
|
+
for (const re of te.relacions)
|
|
11808
|
+
re.codi && X.add(re.codi);
|
|
11809
|
+
}
|
|
11810
|
+
return Array.from(X);
|
|
11811
|
+
}
|
|
11812
|
+
isSatisfiedBy(W) {
|
|
11813
|
+
return this.diagnosticCodes?.length ? (W.diagnostics ?? []).some((te) => this.diagnosticCodes.includes(te.codi)) : !0;
|
|
11814
|
+
}
|
|
11815
|
+
}
|
|
11796
11816
|
const normalizeStringToNFD = (J) => J == null ? "" : String(J).normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase(), propContainsString = (J, W) => {
|
|
11797
11817
|
const X = normalizeStringToNFD(J), te = normalizeStringToNFD(W);
|
|
11798
11818
|
return X.toString().toLowerCase().indexOf(te) !== -1 || X.toString().indexOf(te) !== -1;
|
|
@@ -11830,6 +11850,17 @@ class ComposedTypeSpec extends Spec {
|
|
|
11830
11850
|
return X.length === 0 ? !0 : X.reduce((re, oe) => re.or(new TypeSpec(oe)), new FalseSpec()).isSatisfiedBy(W);
|
|
11831
11851
|
}
|
|
11832
11852
|
}
|
|
11853
|
+
class UpFilterSpec extends Spec {
|
|
11854
|
+
constructor(W) {
|
|
11855
|
+
super(), this.upIds = W;
|
|
11856
|
+
}
|
|
11857
|
+
isSatisfiedBy(W) {
|
|
11858
|
+
if (!this.upIds?.length)
|
|
11859
|
+
return !0;
|
|
11860
|
+
const X = W.up ?? null;
|
|
11861
|
+
return this.upIds.some((te) => X.id === te);
|
|
11862
|
+
}
|
|
11863
|
+
}
|
|
11833
11864
|
const activityHistoryFiltersSelector = (J) => J.activityHistoryFilters.filters, activityHistoryCommonFiltersSelector = createSelector(
|
|
11834
11865
|
activityHistoryFiltersSelector,
|
|
11835
11866
|
(J) => J.find(isCommonFilterGroup)?.filters || []
|
|
@@ -11858,7 +11889,22 @@ createSelector(
|
|
|
11858
11889
|
filters: oe.filter((ne) => ne.enabledValues?.length)
|
|
11859
11890
|
})).filter((W) => W.filters.length > 0)
|
|
11860
11891
|
);
|
|
11861
|
-
const
|
|
11892
|
+
const diagnosticFilterSelector = createSelector(
|
|
11893
|
+
activityHistoryFiltersSelector,
|
|
11894
|
+
(J) => J.find(isDiagnosticFilter)
|
|
11895
|
+
), diagnosticFilterEnabledValuesSelector = createSelector(
|
|
11896
|
+
diagnosticFilterSelector,
|
|
11897
|
+
(J) => J?.enabledValues || []
|
|
11898
|
+
), areDiagnosticFiltersActive = createSelector(
|
|
11899
|
+
diagnosticFilterEnabledValuesSelector,
|
|
11900
|
+
(J) => !!J.length
|
|
11901
|
+
), upFilterSelector = createSelector(
|
|
11902
|
+
activityHistoryFiltersSelector,
|
|
11903
|
+
(J) => J.find(isUpFilter)
|
|
11904
|
+
), upFilterEnabledValuesSelector = createSelector(
|
|
11905
|
+
upFilterSelector,
|
|
11906
|
+
(J) => J?.enabledValues || []
|
|
11907
|
+
), areUpFiltersActive = createSelector(upFilterEnabledValuesSelector, (J) => !!J.length), areSameDiagnostics = (J, W) => {
|
|
11862
11908
|
if (J.length !== W.length)
|
|
11863
11909
|
return !1;
|
|
11864
11910
|
const X = J.map((re) => re.codi).sort(), te = W.map((re) => re.codi).sort();
|
|
@@ -11943,55 +11989,7 @@ const groupActivityHistoryItems = (J) => {
|
|
|
11943
11989
|
}), J.sort(
|
|
11944
11990
|
(oe, ne) => re(ne).getTime() - re(oe).getTime()
|
|
11945
11991
|
);
|
|
11946
|
-
}, activityHistorySearchStringSelector = (J) => J.activityHistoryFilters.searchString,
|
|
11947
|
-
activityHistoryFiltersSelector,
|
|
11948
|
-
(J) => J.find(isDiagnosticFilter)
|
|
11949
|
-
), diagnosticFilterEnabledValuesSelector = createSelector(
|
|
11950
|
-
diagnosticFilterSelector,
|
|
11951
|
-
(J) => J?.enabledValues || []
|
|
11952
|
-
), areDiagnosticFiltersActive = createSelector(
|
|
11953
|
-
diagnosticFilterEnabledValuesSelector,
|
|
11954
|
-
(J) => !!J.length
|
|
11955
|
-
);
|
|
11956
|
-
class DiagnosticCodeSpec extends Spec {
|
|
11957
|
-
constructor(W) {
|
|
11958
|
-
super(), this.diagnosticCodes = this.extractAllCodes(W);
|
|
11959
|
-
}
|
|
11960
|
-
extractAllCodes(W) {
|
|
11961
|
-
const X = /* @__PURE__ */ new Set();
|
|
11962
|
-
for (const te of W) {
|
|
11963
|
-
if (te.codi && X.add(te.codi), te.evolucions && Array.isArray(te.evolucions))
|
|
11964
|
-
for (const re of te.evolucions)
|
|
11965
|
-
re.codi && X.add(re.codi);
|
|
11966
|
-
if (te.relacions && Array.isArray(te.relacions))
|
|
11967
|
-
for (const re of te.relacions)
|
|
11968
|
-
re.codi && X.add(re.codi);
|
|
11969
|
-
}
|
|
11970
|
-
return Array.from(X);
|
|
11971
|
-
}
|
|
11972
|
-
isSatisfiedBy(W) {
|
|
11973
|
-
return this.diagnosticCodes?.length ? (W.diagnostics ?? []).some((te) => this.diagnosticCodes.includes(te.codi)) : !0;
|
|
11974
|
-
}
|
|
11975
|
-
}
|
|
11976
|
-
const upFilterSelector = createSelector(
|
|
11977
|
-
activityHistoryFiltersSelector,
|
|
11978
|
-
(J) => J.find(isUpFilter)
|
|
11979
|
-
), upFilterEnabledValuesSelector = createSelector(
|
|
11980
|
-
upFilterSelector,
|
|
11981
|
-
(J) => J?.enabledValues || []
|
|
11982
|
-
), areUpFiltersActive = createSelector(upFilterEnabledValuesSelector, (J) => !!J.length);
|
|
11983
|
-
class UpFilterSpec extends Spec {
|
|
11984
|
-
constructor(W) {
|
|
11985
|
-
super(), this.upIds = W;
|
|
11986
|
-
}
|
|
11987
|
-
isSatisfiedBy(W) {
|
|
11988
|
-
if (!this.upIds?.length)
|
|
11989
|
-
return !0;
|
|
11990
|
-
const X = W.up ?? null;
|
|
11991
|
-
return this.upIds.some((te) => X.id === te);
|
|
11992
|
-
}
|
|
11993
|
-
}
|
|
11994
|
-
const activityHistoryCollectionsSelector = (J) => J.activityHistoryCollections.collections, mapItemsWithMetadata = (J, W, X, te) => J.map(
|
|
11992
|
+
}, activityHistorySearchStringSelector = (J) => J.activityHistoryFilters.searchString, activityHistoryCollectionsSelector = (J) => J.activityHistoryCollections.collections, mapItemsWithMetadata = (J, W, X, te) => J.map(
|
|
11995
11993
|
(re) => ({
|
|
11996
11994
|
...re,
|
|
11997
11995
|
searchPredicate: te,
|
|
@@ -12001,19 +11999,25 @@ const activityHistoryCollectionsSelector = (J) => J.activityHistoryCollections.c
|
|
|
12001
11999
|
), activityHistoryMappedItems = createSelector(
|
|
12002
12000
|
activityHistoryCollectionsSelector,
|
|
12003
12001
|
(J) => Object.values(J).flatMap((W) => mapItemsWithMetadata(W.items, W.componentFactory, W.id, W.searchPredicate))
|
|
12004
|
-
)
|
|
12002
|
+
);
|
|
12003
|
+
createSelector(
|
|
12004
|
+
activityHistoryCustomFilterGroupsSelector,
|
|
12005
|
+
activityHistoryCollectionsSelector,
|
|
12006
|
+
(J, W) => J.filter((X) => {
|
|
12007
|
+
const te = W[X.id];
|
|
12008
|
+
return te?.items && te.items.length > 0;
|
|
12009
|
+
})
|
|
12010
|
+
);
|
|
12011
|
+
const customFilterGroupsWithOptionsSelector = createSelector(
|
|
12005
12012
|
activityHistoryCustomFilterGroupsSelector,
|
|
12006
12013
|
activityHistoryCollectionsSelector,
|
|
12007
|
-
(J, W) => J.
|
|
12008
|
-
const
|
|
12009
|
-
return oe?.items && oe.items.length > 0;
|
|
12010
|
-
}).map((re) => {
|
|
12011
|
-
const oe = W[re.id];
|
|
12014
|
+
(J, W) => J.map((te) => {
|
|
12015
|
+
const re = W[te.id];
|
|
12012
12016
|
return {
|
|
12013
|
-
...
|
|
12014
|
-
filters:
|
|
12015
|
-
...
|
|
12016
|
-
options: (
|
|
12017
|
+
...te,
|
|
12018
|
+
filters: te.filters.map((oe) => ({
|
|
12019
|
+
...oe,
|
|
12020
|
+
options: (oe.singleOption ? [] : re?.items && getUniqueObjects(re.items, oe.propPathValue, oe.propsPathDescription, oe.title)) || []
|
|
12017
12021
|
}))
|
|
12018
12022
|
};
|
|
12019
12023
|
})
|
|
@@ -15386,14 +15390,21 @@ class VirtualScroller {
|
|
|
15386
15390
|
this._updateVisibleRange(), (Math.abs(oe.start - this._visibleRange.start) > 0 || Math.abs(oe.end - this._visibleRange.end) > 0) && te(this.getState());
|
|
15387
15391
|
};
|
|
15388
15392
|
return W.addEventListener("scroll", re), this._resizeObserver = new ResizeObserver(() => {
|
|
15389
|
-
|
|
15393
|
+
const oe = W.clientHeight;
|
|
15394
|
+
oe > 0 && (this._viewportHeight = oe, this._updateVisibleRange(), te(this.getState()));
|
|
15390
15395
|
}), this._resizeObserver.observe(W), () => {
|
|
15391
15396
|
W.removeEventListener("scroll", re), this._resizeObserver?.disconnect(), this._scrollTimeout && clearTimeout(this._scrollTimeout);
|
|
15392
15397
|
};
|
|
15393
15398
|
}
|
|
15394
15399
|
// Update items (when data changes)
|
|
15395
|
-
updateItems(W) {
|
|
15396
|
-
this._options.items
|
|
15400
|
+
updateItems(W, X) {
|
|
15401
|
+
this._options.items.length;
|
|
15402
|
+
const te = W.length > 0;
|
|
15403
|
+
this._options.items = W, this._initializeHeights(), this._content && (this._content.style.height = this._totalHeight + "px"), this._updateVisibleRange(), te && this._viewport && requestAnimationFrame(() => {
|
|
15404
|
+
if (!this._viewport) return;
|
|
15405
|
+
const re = this._viewport.clientHeight;
|
|
15406
|
+
re > 0 && re !== this._viewportHeight && (this._viewportHeight = re, this._updateVisibleRange(), X && X(this.getState()));
|
|
15407
|
+
});
|
|
15397
15408
|
}
|
|
15398
15409
|
// Measure actual heights of rendered items
|
|
15399
15410
|
_measureActualHeights() {
|
|
@@ -15416,7 +15427,8 @@ class VirtualScroller {
|
|
|
15416
15427
|
}
|
|
15417
15428
|
// Calculate visible range based on scroll position
|
|
15418
15429
|
_updateVisibleRange() {
|
|
15419
|
-
if (!this._options.items.length || this._viewportHeight === 0)
|
|
15430
|
+
if (!this._options.items.length || this._viewportHeight === 0)
|
|
15431
|
+
return;
|
|
15420
15432
|
const W = Math.floor(this._viewportHeight * (this._options.bufferSize / 100)), X = Math.max(0, this._scrollTop - W), te = this._scrollTop + this._viewportHeight + W;
|
|
15421
15433
|
let re = 0, oe = this._options.items.length - 1;
|
|
15422
15434
|
for (let ne = 0; ne < this._options.items.length; ne++)
|
|
@@ -15491,7 +15503,7 @@ let ActivityHistoryTimeline = class extends h$p {
|
|
|
15491
15503
|
super.disconnectedCallback(), this._cleanupVirtualScroller?.(), this._noDataMessageTimer && clearTimeout(this._noDataMessageTimer);
|
|
15492
15504
|
}
|
|
15493
15505
|
async updated(J) {
|
|
15494
|
-
J.has("historyGroups") && this.historyGroups?.length && (await this.prepareComponents(this.historyGroups), this._updateVirtualScroller()), this._viewport && this._content && !this._virtualScroller && setTimeout(() => this._setupVirtualScroller(), 0);
|
|
15506
|
+
J.has("historyGroups") && this.historyGroups?.length && (await this.prepareComponents(this.historyGroups), this._updateVirtualScroller()), this._viewport && this._content && !this._virtualScroller && setTimeout(() => this._setupVirtualScroller(), 0), this._viewport && this._virtualScroller && this._viewport !== this._lastViewportElement && (this._cleanupVirtualScroller?.(), this._virtualScroller = void 0, setTimeout(() => this._setupVirtualScroller(), 0)), this._viewport && (this._lastViewportElement = this._viewport);
|
|
15495
15507
|
}
|
|
15496
15508
|
async prepareComponents(J) {
|
|
15497
15509
|
for (const W of J) {
|
|
@@ -15543,7 +15555,9 @@ let ActivityHistoryTimeline = class extends h$p {
|
|
|
15543
15555
|
}), this._virtualScrollerState = this._virtualScroller.getState());
|
|
15544
15556
|
}
|
|
15545
15557
|
_updateVirtualScroller() {
|
|
15546
|
-
!this._virtualScroller || !this.historyGroups?.length || (this._virtualScroller.updateItems(this.historyGroups
|
|
15558
|
+
!this._virtualScroller || !this.historyGroups?.length || (this._virtualScroller.updateItems(this.historyGroups, (J) => {
|
|
15559
|
+
this._virtualScrollerState = J, this.requestUpdate();
|
|
15560
|
+
}), this._virtualScrollerState = this._virtualScroller.getState());
|
|
15547
15561
|
}
|
|
15548
15562
|
// Getters for template (maintaining original API)
|
|
15549
15563
|
get _visibleItems() {
|
|
@@ -16373,8 +16387,8 @@ FinalizeVisitHandler = __decorateClass$e([
|
|
|
16373
16387
|
class FinalizeVisit {
|
|
16374
16388
|
}
|
|
16375
16389
|
const template$b = (J) => ke$1`
|
|
16376
|
-
|
|
16377
|
-
`;
|
|
16390
|
+
<dss-button @click=${J.finalizeVisitHandler} variant="subtle" size="md" icon="door_front" label=${translate$1("actions.finalizeVisit")}></dss-button>
|
|
16391
|
+
`;
|
|
16378
16392
|
class FinalizeVisitButton extends h$p {
|
|
16379
16393
|
render() {
|
|
16380
16394
|
return ke$1`${template$b(this)}`;
|
|
@@ -40324,7 +40338,7 @@ const template$6 = (J) => ke$1`
|
|
|
40324
40338
|
</dss-action-menu>
|
|
40325
40339
|
${J.showText ? ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>` : D$7}
|
|
40326
40340
|
</div>
|
|
40327
|
-
`, 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}";
|
|
40341
|
+
`, 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}";
|
|
40328
40342
|
var __defProp$8 = Object.defineProperty, __decorateClass$8 = (J, W, X, te) => {
|
|
40329
40343
|
for (var re = void 0, oe = J.length - 1, ne; oe >= 0; oe--)
|
|
40330
40344
|
(ne = J[oe]) && (re = ne(W, X, re) || re);
|
|
@@ -40380,7 +40394,7 @@ const template$5 = (J) => ke$1`
|
|
|
40380
40394
|
</dss-action-menu>
|
|
40381
40395
|
${J.showText ? ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>` : D$7}
|
|
40382
40396
|
</div>
|
|
40383
|
-
`, styles$5 = ".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}";
|
|
40397
|
+
`, styles$5 = ".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}";
|
|
40384
40398
|
var __defProp$7 = Object.defineProperty, __decorateClass$7 = (J, W, X, te) => {
|
|
40385
40399
|
for (var re = void 0, oe = J.length - 1, ne; oe >= 0; oe--)
|
|
40386
40400
|
(ne = J[oe]) && (re = ne(W, X, re) || re);
|
|
@@ -40506,13 +40520,12 @@ __decorateClass$6([
|
|
|
40506
40520
|
__decorateClass$6([
|
|
40507
40521
|
n$B()
|
|
40508
40522
|
], PrimariaContentSwitcher.prototype, "animation");
|
|
40509
|
-
const styles$3 = ".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}", template$3 = (J) => ke$1`
|
|
40510
|
-
<div
|
|
40511
|
-
class=${Rt({ item: !0, active: J.isActive })}
|
|
40512
|
-
@click=${J.config.callbackFn}
|
|
40523
|
+
const styles$3 = ".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$3 = (J) => ke$1`
|
|
40524
|
+
<div
|
|
40525
|
+
class=${Rt({ item: !0, active: J.isActive })}
|
|
40513
40526
|
?expanded=${J.showText}
|
|
40514
40527
|
>
|
|
40515
|
-
<div class="icon-label">
|
|
40528
|
+
<div class="icon-label" @click=${J.config.callbackFn}>
|
|
40516
40529
|
<dss-icon icon=${J.config.icon} size="md" ?fill=${J.config.fill} style=${J.config.rotateIcon ? "transform: rotate(180deg);" : ""}></dss-icon>
|
|
40517
40530
|
${J.showText ? ke$1`<span>${J.config.label}</span>` : ""}
|
|
40518
40531
|
</div>
|
|
@@ -40583,40 +40596,40 @@ const styles$2 = ".wrapper{display:flex;flex-direction:column;gap:8px}.menu-acti
|
|
|
40583
40596
|
<div class="wrapper">
|
|
40584
40597
|
<primaria-nav-item
|
|
40585
40598
|
.config=${J.primariaNavItemConfig}
|
|
40586
|
-
@click=${J.handleItemClick}
|
|
40587
40599
|
class="${Rt({ "menu-active": J.showActionMenu })}"
|
|
40588
40600
|
></primaria-nav-item>
|
|
40589
|
-
|
|
40590
|
-
|
|
40591
|
-
|
|
40601
|
+
<dss-action-menu
|
|
40602
|
+
@onCloseActionMenu=${J.handleCloseMenu}
|
|
40603
|
+
?hidden=${!J.showActionMenu}
|
|
40604
|
+
>
|
|
40605
|
+
${J.config.actionMenuItems?.map(
|
|
40592
40606
|
(W) => W.hasNestedMenu ? ke$1`
|
|
40593
|
-
|
|
40594
|
-
|
|
40595
|
-
|
|
40596
|
-
|
|
40597
|
-
|
|
40598
|
-
|
|
40599
|
-
|
|
40607
|
+
<dss-action-menu-item
|
|
40608
|
+
righticon=${W.icon}
|
|
40609
|
+
.label=${W.label}
|
|
40610
|
+
hasnestedmenu
|
|
40611
|
+
>
|
|
40612
|
+
<dss-action-menu>
|
|
40613
|
+
${W.nestedMenuItems?.map(
|
|
40600
40614
|
(X) => ke$1`
|
|
40601
|
-
|
|
40602
|
-
|
|
40603
|
-
|
|
40604
|
-
|
|
40605
|
-
|
|
40606
|
-
|
|
40615
|
+
<dss-action-menu-item
|
|
40616
|
+
righticon=${X.icon}
|
|
40617
|
+
.label=${X.label}
|
|
40618
|
+
@click=${X.callbackFn}
|
|
40619
|
+
></dss-action-menu-item>
|
|
40620
|
+
`
|
|
40607
40621
|
)}
|
|
40608
|
-
|
|
40609
|
-
|
|
40610
|
-
|
|
40611
|
-
|
|
40612
|
-
|
|
40613
|
-
|
|
40614
|
-
|
|
40615
|
-
|
|
40616
|
-
|
|
40622
|
+
</dss-action-menu>
|
|
40623
|
+
</dss-action-menu-item>
|
|
40624
|
+
` : ke$1`
|
|
40625
|
+
<dss-action-menu-item
|
|
40626
|
+
righticon=${W.icon}
|
|
40627
|
+
.label=${W.label}
|
|
40628
|
+
@click=${W.callbackFn}
|
|
40629
|
+
></dss-action-menu-item>
|
|
40630
|
+
`
|
|
40617
40631
|
)}
|
|
40618
|
-
|
|
40619
|
-
` : D$7}
|
|
40632
|
+
</dss-action-menu>
|
|
40620
40633
|
</div>
|
|
40621
40634
|
`;
|
|
40622
40635
|
var __defProp$4 = Object.defineProperty, __decorateClass$4 = (J, W, X, te) => {
|
|
@@ -40627,12 +40640,15 @@ var __defProp$4 = Object.defineProperty, __decorateClass$4 = (J, W, X, te) => {
|
|
|
40627
40640
|
const Xs = class Xs extends h$p {
|
|
40628
40641
|
constructor(W) {
|
|
40629
40642
|
super(), this.showActionMenu = !1, this.handleItemClick = () => {
|
|
40630
|
-
this.showActionMenu = !0
|
|
40643
|
+
this.showActionMenu = !0;
|
|
40631
40644
|
}, this.handleCloseMenu = () => {
|
|
40632
40645
|
this.showActionMenu = !1;
|
|
40633
|
-
}, this.config = W
|
|
40634
|
-
|
|
40635
|
-
|
|
40646
|
+
}, this.config = W;
|
|
40647
|
+
}
|
|
40648
|
+
get primariaNavItemConfig() {
|
|
40649
|
+
return {
|
|
40650
|
+
icon: this.config.icon,
|
|
40651
|
+
label: this.config.label,
|
|
40636
40652
|
showArrow: !0,
|
|
40637
40653
|
callbackFn: this.handleItemClick
|
|
40638
40654
|
};
|
|
@@ -40648,9 +40664,6 @@ let PrimariaNavTreeMenu = Xs;
|
|
|
40648
40664
|
__decorateClass$4([
|
|
40649
40665
|
n$B({ type: Object })
|
|
40650
40666
|
], PrimariaNavTreeMenu.prototype, "config");
|
|
40651
|
-
__decorateClass$4([
|
|
40652
|
-
r$I()
|
|
40653
|
-
], PrimariaNavTreeMenu.prototype, "primariaNavItemConfig");
|
|
40654
40667
|
__decorateClass$4([
|
|
40655
40668
|
r$I()
|
|
40656
40669
|
], PrimariaNavTreeMenu.prototype, "showActionMenu");
|
|
@@ -49146,4 +49159,4 @@ export {
|
|
|
49146
49159
|
l as x,
|
|
49147
49160
|
PrimariaInteractionService as y
|
|
49148
49161
|
};
|
|
49149
|
-
//# sourceMappingURL=index-
|
|
49162
|
+
//# sourceMappingURL=index-CRH7Fdpk.js.map
|