@uxland/primary-shell 5.3.1 → 5.3.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/index.js CHANGED
@@ -11947,11 +11947,8 @@ function getUniqueObjects(X, W, J) {
11947
11947
  return Array.from(
11948
11948
  X.map((te) => ({
11949
11949
  id: W.reduce((re, ne) => re == null ? void 0 : re[ne], te),
11950
- description: J.reduce((re, ne) => re == null ? void 0 : re[ne], te)
11951
- })).filter((te) => typeof te.id == "string" && typeof te.description == "string").reduce(
11952
- (te, re) => te.set(re.id, re),
11953
- /* @__PURE__ */ new Map()
11954
- ).values()
11950
+ title: J.reduce((re, ne) => re == null ? void 0 : re[ne], te)
11951
+ })).filter((te) => typeof te.id == "string" && typeof te.title == "string").reduce((te, re) => te.set(re.id, re), /* @__PURE__ */ new Map()).values()
11955
11952
  );
11956
11953
  }
11957
11954
  class TrueSpec extends Spec {
@@ -14942,27 +14939,7 @@ function parse(X, W, J, te) {
14942
14939
  function cleanEscapedString(X) {
14943
14940
  return X.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
14944
14941
  }
14945
- /**
14946
- * @license
14947
- * Copyright 2017 Google LLC
14948
- * SPDX-License-Identifier: BSD-3-Clause
14949
- */
14950
- class le extends i$x {
14951
- constructor(W) {
14952
- if (super(W), this.it = D$1, W.type !== t$g.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
14953
- }
14954
- render(W) {
14955
- if (W === D$1 || W == null) return this._t = void 0, this.it = W;
14956
- if (W === R) return W;
14957
- if (typeof W != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
14958
- if (W === this.it) return this._t;
14959
- this.it = W;
14960
- const J = [W];
14961
- return J.raw = J, this._t = { _$litType$: this.constructor.resultType, strings: J, values: [] };
14962
- }
14963
- }
14964
- le.directiveName = "unsafeHTML", le.resultType = 1;
14965
- const ae = e$I(le), notFound = "data:image/svg+xml,%3csvg%20width='215'%20height='150'%20viewBox='0%200%20215%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.9'%20d='M135.132%2057.43C96.9221%2047.658%2083.3815%20-29.7048%2026.9734%2012.5083C-13.0511%2042.4595%2011.4691%20115.499%2061.6878%20107.019C92.0822%20101.867%2087.3917%20101.341%20113.129%20115.244C139.231%20129.308%20167.972%20136.397%20195.855%20111.436C210.28%2098.5179%20215.939%2067.0352%20201.939%2050.7417C184.388%2030.3592%20158.485%2063.4098%20135.132%2057.43Z'%20fill='%23EFF7FF'/%3e%3cellipse%20cx='120.5'%20cy='143.5'%20rx='52.5'%20ry='3.5'%20fill='%23F5F5F5'/%3e%3cpath%20d='M121.387%2080.2184C121.995%2079.5948%20122.563%2078.953%20123.09%2078.2959L134.396%2089.3383C135.09%2090.0177%20134.851%2091.389%20133.861%2092.4024C132.872%2093.4159%20131.505%2093.6888%20130.811%2093.0094L119.505%2081.967C120.148%2081.424%20120.777%2080.8407%20121.385%2080.2171L121.387%2080.2184Z'%20fill='%231D1D1D'/%3e%3cpath%20opacity='0.6'%20d='M121.127%2079.9896C132.157%2068.6986%20131.888%2050.5485%20120.527%2039.4502C109.166%2028.3519%2091.0149%2028.5081%2079.9849%2039.799C68.955%2051.09%2069.2233%2069.2401%2080.5843%2080.3385C91.9453%2091.4368%20110.097%2091.2806%20121.127%2079.9896Z'%20fill='%238FC2F5'/%3e%3cpath%20d='M78.0382%2083.0622C90.8729%2095.6382%20111.378%2095.4578%20123.835%2082.6609C136.293%2069.8625%20135.986%2049.2932%20123.15%2036.7173C110.316%2024.1413%2089.8107%2024.3217%2077.3538%2037.1186C64.8956%2049.9169%2065.2022%2070.4862%2078.0382%2083.0622ZM80.642%2080.387C69.289%2069.264%2069.0172%2051.0692%2080.037%2039.749C91.0569%2028.4288%20109.194%2028.2694%20120.547%2039.3938C131.9%2050.5182%20132.171%2068.713%20121.152%2080.0332C110.132%2091.3534%2091.9949%2091.5128%2080.642%2080.3884V80.387Z'%20fill='%237BACFC'/%3e%3cpath%20d='M169.953%20128.522L171.714%20126.696C173.474%20124.871%20173.421%20121.964%20171.595%20120.205L135.013%2084.9265C133.187%2083.1661%20130.281%2083.2205%20128.522%2085.0451L126.761%2086.8711C125.001%2088.6957%20125.055%2091.6028%20126.88%2093.3619L163.462%20128.64C165.287%20130.401%20168.194%20130.346%20169.953%20128.522Z'%20fill='%23656565'/%3e%3cpath%20opacity='0.35'%20d='M88.8399%2071.2315C96.506%2079.2245%20101.258%2078.1642%20100.757%2082.4547C100.256%2086.7452%2091.398%2085.7448%2082.7698%2076.0396C74.1415%2066.3344%2075.0893%2054.9166%2079.8491%2055.2485C84.6089%2055.5803%2080.129%2062.1492%2088.8399%2071.2315Z'%20fill='white'/%3e%3c/svg%3e";
14942
+ const notFound = "data:image/svg+xml,%3csvg%20width='215'%20height='150'%20viewBox='0%200%20215%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.9'%20d='M135.132%2057.43C96.9221%2047.658%2083.3815%20-29.7048%2026.9734%2012.5083C-13.0511%2042.4595%2011.4691%20115.499%2061.6878%20107.019C92.0822%20101.867%2087.3917%20101.341%20113.129%20115.244C139.231%20129.308%20167.972%20136.397%20195.855%20111.436C210.28%2098.5179%20215.939%2067.0352%20201.939%2050.7417C184.388%2030.3592%20158.485%2063.4098%20135.132%2057.43Z'%20fill='%23EFF7FF'/%3e%3cellipse%20cx='120.5'%20cy='143.5'%20rx='52.5'%20ry='3.5'%20fill='%23F5F5F5'/%3e%3cpath%20d='M121.387%2080.2184C121.995%2079.5948%20122.563%2078.953%20123.09%2078.2959L134.396%2089.3383C135.09%2090.0177%20134.851%2091.389%20133.861%2092.4024C132.872%2093.4159%20131.505%2093.6888%20130.811%2093.0094L119.505%2081.967C120.148%2081.424%20120.777%2080.8407%20121.385%2080.2171L121.387%2080.2184Z'%20fill='%231D1D1D'/%3e%3cpath%20opacity='0.6'%20d='M121.127%2079.9896C132.157%2068.6986%20131.888%2050.5485%20120.527%2039.4502C109.166%2028.3519%2091.0149%2028.5081%2079.9849%2039.799C68.955%2051.09%2069.2233%2069.2401%2080.5843%2080.3385C91.9453%2091.4368%20110.097%2091.2806%20121.127%2079.9896Z'%20fill='%238FC2F5'/%3e%3cpath%20d='M78.0382%2083.0622C90.8729%2095.6382%20111.378%2095.4578%20123.835%2082.6609C136.293%2069.8625%20135.986%2049.2932%20123.15%2036.7173C110.316%2024.1413%2089.8107%2024.3217%2077.3538%2037.1186C64.8956%2049.9169%2065.2022%2070.4862%2078.0382%2083.0622ZM80.642%2080.387C69.289%2069.264%2069.0172%2051.0692%2080.037%2039.749C91.0569%2028.4288%20109.194%2028.2694%20120.547%2039.3938C131.9%2050.5182%20132.171%2068.713%20121.152%2080.0332C110.132%2091.3534%2091.9949%2091.5128%2080.642%2080.3884V80.387Z'%20fill='%237BACFC'/%3e%3cpath%20d='M169.953%20128.522L171.714%20126.696C173.474%20124.871%20173.421%20121.964%20171.595%20120.205L135.013%2084.9265C133.187%2083.1661%20130.281%2083.2205%20128.522%2085.0451L126.761%2086.8711C125.001%2088.6957%20125.055%2091.6028%20126.88%2093.3619L163.462%20128.64C165.287%20130.401%20168.194%20130.346%20169.953%20128.522Z'%20fill='%23656565'/%3e%3cpath%20opacity='0.35'%20d='M88.8399%2071.2315C96.506%2079.2245%20101.258%2078.1642%20100.757%2082.4547C100.256%2086.7452%2091.398%2085.7448%2082.7698%2076.0396C74.1415%2066.3344%2075.0893%2054.9166%2079.8491%2055.2485C84.6089%2055.5803%2080.129%2062.1492%2088.8399%2071.2315Z'%20fill='white'/%3e%3c/svg%3e";
14966
14943
  /**
14967
14944
  * @license
14968
14945
  * Copyright 2018 Google LLC
@@ -15539,7 +15516,11 @@ class VirtualizeDirective extends $t {
15539
15516
  (W = this._virtualizer) == null || W.connected();
15540
15517
  }
15541
15518
  }
15542
- const virtualize = e$I(VirtualizeDirective), template$e = (X) => {
15519
+ const virtualize = e$I(VirtualizeDirective);
15520
+ function shouldShowRole(X) {
15521
+ return !X.professional.speciality.description;
15522
+ }
15523
+ const template$e = (X) => {
15543
15524
  var W;
15544
15525
  return X._hasUpdatedOnce ? ke$1`
15545
15526
  <div class="container">
@@ -15583,23 +15564,30 @@ const virtualize = e$I(VirtualizeDirective), template$e = (X) => {
15583
15564
  ` : !X.isAnyCollectionLoadingWithoutAnyLoaded && !X.isSomeCollectionLoadedAndOtherLoading ? ke$1`<dss-user-feedback class="feedback" imagesrc=${notFound} title=${translate("noResults")}></dss-user-feedback>` : D$1}
15584
15565
  </div>
15585
15566
  ` : ke$1`<div class="container"></div>`;
15586
- }, visitHeaderTemplate = (X, W) => W && ke$1`
15587
- <div class="visit__header">
15588
- <div class="title">
15589
- <div class="title-date">
15590
- <div>${format(new Date(W.date), "dd/MM/yyyy")}</div>
15591
- </div>
15592
- <div class="title-description">
15593
- <div>
15594
- ${ae(X.highlightMatch(W.professional.name, X.searchString))} |
15595
- ${ae(X.highlightMatch(W.professional.role.description, X.searchString))} |
15596
- ${ae(X.highlightMatch(W.center.description, X.searchString))} |
15597
- ${ae(X.highlightMatch(W.professional.speciality.description, X.searchString))}
15567
+ }, visitHeaderTemplate = (X, W) => W ? ke$1`
15568
+ <div class="visit__header">
15569
+ <div class="title">
15570
+ <div class="title-date">
15571
+ <div>${format(new Date(W.date), "dd/MM/yyyy")}</div>
15572
+ </div>
15573
+ <div class="title-description">
15574
+ <div>
15575
+ ${renderProfessionalValues(X, W)}
15576
+ </div>
15598
15577
  </div>
15599
15578
  </div>
15600
15579
  </div>
15601
- </div>
15602
- `, diagnosticHeaderTemplate = (X) => X && ke$1`
15580
+ ` : D$1, renderProfessionalValues = (X, W) => {
15581
+ const J = shouldShowRole(W), te = [
15582
+ X.highlighted(W.professional.name),
15583
+ J ? X.highlighted(W.professional.role.description) : null,
15584
+ X.highlighted(W.center.description),
15585
+ X.highlighted(W.professional.speciality.description)
15586
+ ].filter(Boolean);
15587
+ return te.map(
15588
+ (ne, oe) => ke$1`${ne}${oe < te.length - 1 ? " | " : ""}`
15589
+ );
15590
+ }, diagnosticHeaderTemplate = (X) => X && ke$1`
15603
15591
  <div class="diagnostics__header">
15604
15592
 
15605
15593
  ${X.diagnostics.filter(
@@ -15612,6 +15600,27 @@ const virtualize = e$I(VirtualizeDirective), template$e = (X) => {
15612
15600
  )}
15613
15601
  </div>
15614
15602
  `;
15603
+ /**
15604
+ * @license
15605
+ * Copyright 2017 Google LLC
15606
+ * SPDX-License-Identifier: BSD-3-Clause
15607
+ */
15608
+ class le extends i$x {
15609
+ constructor(W) {
15610
+ if (super(W), this.it = D$1, W.type !== t$g.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
15611
+ }
15612
+ render(W) {
15613
+ if (W === D$1 || W == null) return this._t = void 0, this.it = W;
15614
+ if (W === R) return W;
15615
+ if (typeof W != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
15616
+ if (W === this.it) return this._t;
15617
+ this.it = W;
15618
+ const J = [W];
15619
+ return J.raw = J, this._t = { _$litType$: this.constructor.resultType, strings: J, values: [] };
15620
+ }
15621
+ }
15622
+ le.directiveName = "unsafeHTML", le.resultType = 1;
15623
+ const ae = e$I(le);
15615
15624
  var __defProp$j = Object.defineProperty, __getOwnPropDesc$b = Object.getOwnPropertyDescriptor, __decorateClass$j = (X, W, J, te) => {
15616
15625
  for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$b(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
15617
15626
  (oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
@@ -15654,6 +15663,9 @@ let ActivityHistoryTimeline = class extends h$q {
15654
15663
  const J = new RegExp(`(${W})`, "gi");
15655
15664
  return X.replace(J, '<span class="highlight">$1</span>');
15656
15665
  }
15666
+ highlighted(X) {
15667
+ return X ? ae(this.highlightMatch(X, this.searchString)) : null;
15668
+ }
15657
15669
  _scrollIntoDate(X) {
15658
15670
  let W = null, J = Number.POSITIVE_INFINITY;
15659
15671
  this.shadowRoot.querySelectorAll(".visit").forEach((te) => {