@uxland/primary-shell 5.3.1 → 5.3.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.
package/dist/index.js CHANGED
@@ -14942,27 +14942,7 @@ function parse(X, W, J, te) {
14942
14942
  function cleanEscapedString(X) {
14943
14943
  return X.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
14944
14944
  }
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";
14945
+ 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
14946
  /**
14967
14947
  * @license
14968
14948
  * Copyright 2018 Google LLC
@@ -15539,7 +15519,11 @@ class VirtualizeDirective extends $t {
15539
15519
  (W = this._virtualizer) == null || W.connected();
15540
15520
  }
15541
15521
  }
15542
- const virtualize = e$I(VirtualizeDirective), template$e = (X) => {
15522
+ const virtualize = e$I(VirtualizeDirective);
15523
+ function shouldShowRole(X) {
15524
+ return !X.professional.speciality.description;
15525
+ }
15526
+ const template$e = (X) => {
15543
15527
  var W;
15544
15528
  return X._hasUpdatedOnce ? ke$1`
15545
15529
  <div class="container">
@@ -15583,23 +15567,30 @@ const virtualize = e$I(VirtualizeDirective), template$e = (X) => {
15583
15567
  ` : !X.isAnyCollectionLoadingWithoutAnyLoaded && !X.isSomeCollectionLoadedAndOtherLoading ? ke$1`<dss-user-feedback class="feedback" imagesrc=${notFound} title=${translate("noResults")}></dss-user-feedback>` : D$1}
15584
15568
  </div>
15585
15569
  ` : 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))}
15570
+ }, visitHeaderTemplate = (X, W) => W ? ke$1`
15571
+ <div class="visit__header">
15572
+ <div class="title">
15573
+ <div class="title-date">
15574
+ <div>${format(new Date(W.date), "dd/MM/yyyy")}</div>
15575
+ </div>
15576
+ <div class="title-description">
15577
+ <div>
15578
+ ${renderProfessionalValues(X, W)}
15579
+ </div>
15598
15580
  </div>
15599
15581
  </div>
15600
15582
  </div>
15601
- </div>
15602
- `, diagnosticHeaderTemplate = (X) => X && ke$1`
15583
+ ` : D$1, renderProfessionalValues = (X, W) => {
15584
+ const J = shouldShowRole(W), te = [
15585
+ X.highlighted(W.professional.name),
15586
+ J ? X.highlighted(W.professional.role.description) : null,
15587
+ X.highlighted(W.center.description),
15588
+ X.highlighted(W.professional.speciality.description)
15589
+ ].filter(Boolean);
15590
+ return te.map(
15591
+ (ne, oe) => ke$1`${ne}${oe < te.length - 1 ? " | " : ""}`
15592
+ );
15593
+ }, diagnosticHeaderTemplate = (X) => X && ke$1`
15603
15594
  <div class="diagnostics__header">
15604
15595
 
15605
15596
  ${X.diagnostics.filter(
@@ -15612,6 +15603,27 @@ const virtualize = e$I(VirtualizeDirective), template$e = (X) => {
15612
15603
  )}
15613
15604
  </div>
15614
15605
  `;
15606
+ /**
15607
+ * @license
15608
+ * Copyright 2017 Google LLC
15609
+ * SPDX-License-Identifier: BSD-3-Clause
15610
+ */
15611
+ class le extends i$x {
15612
+ constructor(W) {
15613
+ if (super(W), this.it = D$1, W.type !== t$g.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
15614
+ }
15615
+ render(W) {
15616
+ if (W === D$1 || W == null) return this._t = void 0, this.it = W;
15617
+ if (W === R) return W;
15618
+ if (typeof W != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
15619
+ if (W === this.it) return this._t;
15620
+ this.it = W;
15621
+ const J = [W];
15622
+ return J.raw = J, this._t = { _$litType$: this.constructor.resultType, strings: J, values: [] };
15623
+ }
15624
+ }
15625
+ le.directiveName = "unsafeHTML", le.resultType = 1;
15626
+ const ae = e$I(le);
15615
15627
  var __defProp$j = Object.defineProperty, __getOwnPropDesc$b = Object.getOwnPropertyDescriptor, __decorateClass$j = (X, W, J, te) => {
15616
15628
  for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$b(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
15617
15629
  (oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
@@ -15654,6 +15666,9 @@ let ActivityHistoryTimeline = class extends h$q {
15654
15666
  const J = new RegExp(`(${W})`, "gi");
15655
15667
  return X.replace(J, '<span class="highlight">$1</span>');
15656
15668
  }
15669
+ highlighted(X) {
15670
+ return X ? ae(this.highlightMatch(X, this.searchString)) : null;
15671
+ }
15657
15672
  _scrollIntoDate(X) {
15658
15673
  let W = null, J = Number.POSITIVE_INFINITY;
15659
15674
  this.shadowRoot.querySelectorAll(".visit").forEach((te) => {