@sbb-esta/lyne-elements-experimental 5.1.0 → 5.2.0

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.
@@ -226,6 +226,15 @@ function addMinutes(date, amount, options) {
226
226
  return _date;
227
227
  }
228
228
 
229
+ //#endregion
230
+ //#region node_modules/date-fns/_lib/getRoundingMethod.js
231
+ function getRoundingMethod(method) {
232
+ return (number) => {
233
+ const result = (method ? Math[method] : Math.trunc)(number);
234
+ return result === 0 ? 0 : result;
235
+ };
236
+ }
237
+
229
238
  //#endregion
230
239
  //#region node_modules/date-fns/differenceInMilliseconds.js
231
240
  /**
@@ -254,15 +263,6 @@ function differenceInMilliseconds(laterDate, earlierDate) {
254
263
  return +toDate(laterDate) - +toDate(earlierDate);
255
264
  }
256
265
 
257
- //#endregion
258
- //#region node_modules/date-fns/_lib/getRoundingMethod.js
259
- function getRoundingMethod(method) {
260
- return (number) => {
261
- const result = (method ? Math[method] : Math.trunc)(number);
262
- return result === 0 ? 0 : result;
263
- };
264
- }
265
-
266
266
  //#endregion
267
267
  //#region node_modules/date-fns/differenceInMinutes.js
268
268
  /**
@@ -13043,10 +13043,10 @@ let SbbSeatReservationGraphicElement = (() => {
13043
13043
  })}"
13044
13044
  >
13045
13045
  ${svgObj.svgName ? html` <sbb-icon
13046
- name="${svgObj.svgName || ""}"
13047
- aria-hidden="false"
13048
- aria-label="${getI18nSeatReservation(svgObj.svgName, this._language.current)}"
13049
- ></sbb-icon>` : html`${this._getSvgElement(svgObj.svg)}`}
13046
+ name="${svgObj.svgName || ""}"
13047
+ aria-hidden="false"
13048
+ aria-label="${getI18nSeatReservation(svgObj.svgName, this._language.current)}"
13049
+ ></sbb-icon>` : html`${this._getSvgElement(svgObj.svg)}`}
13050
13050
  </span>`;
13051
13051
  }
13052
13052
  _getSvgElement(svg) {
@@ -13558,10 +13558,10 @@ let SbbSeatReservationNavigationCoachElement = (() => {
13558
13558
  >
13559
13559
  ${this._getNavigationButton()}
13560
13560
  ${this.coachItemDetails.propertyIds?.length ? html`<sbb-seat-reservation-navigation-services
13561
- ?vertical="${this.vertical}"
13562
- .propertyIds="${this.coachItemDetails.propertyIds}"
13563
- ?showTitleInfo="${this.showTitleInfo}"
13564
- ></sbb-seat-reservation-navigation-services>` : nothing}
13561
+ ?vertical="${this.vertical}"
13562
+ .propertyIds="${this.coachItemDetails.propertyIds}"
13563
+ ?showTitleInfo="${this.showTitleInfo}"
13564
+ ></sbb-seat-reservation-navigation-services>` : nothing}
13565
13565
  </div>
13566
13566
  `;
13567
13567
  }
@@ -13592,17 +13592,17 @@ let SbbSeatReservationNavigationCoachElement = (() => {
13592
13592
  return html`
13593
13593
  ${serviceClassNumber === 1 ? html`<span class="sbb-sr-navigation--first-class"></span>` : nothing}
13594
13594
  ${this.coachItemDetails.travelClass?.length > 0 || this.coachItemDetails.id ? html`<div class="sbb-sr-navigation__additional-information">
13595
- ${this.coachItemDetails.id ? html`<div class="sbb-sr-navigation__item-coach-number" aria-hidden="true">
13596
- ${this.coachItemDetails.id}
13597
- </div>` : nothing}
13598
- <div
13599
- ${serviceClassNumber ?? nothing}
13600
- class="sbb-sr-navigation__item-coach-travelclass"
13601
- aria-hidden="true"
13602
- >
13603
- ${serviceClassNumber}
13604
- </div>
13605
- </div>` : nothing}
13595
+ ${this.coachItemDetails.id ? html`<div class="sbb-sr-navigation__item-coach-number" aria-hidden="true">
13596
+ ${this.coachItemDetails.id}
13597
+ </div>` : nothing}
13598
+ <div
13599
+ ${serviceClassNumber ?? nothing}
13600
+ class="sbb-sr-navigation__item-coach-travelclass"
13601
+ aria-hidden="true"
13602
+ >
13603
+ ${serviceClassNumber}
13604
+ </div>
13605
+ </div>` : nothing}
13606
13606
  `;
13607
13607
  }
13608
13608
  _getTitleDescriptionNavCoachButton(serviceClassNumber) {
@@ -15884,8 +15884,8 @@ var SbbSeatReservationElement = class extends SeatReservationBaseElement {
15884
15884
  aria-hidden="true"
15885
15885
  >
15886
15886
  ${areaProperty ? html`
15887
- <sbb-seat-reservation-graphic
15888
- style=${styleMap({
15887
+ <sbb-seat-reservation-graphic
15888
+ style=${styleMap({
15889
15889
  "--sbb-seat-reservation-graphic-max-width": this.globalAreaIconDim.w,
15890
15890
  "--sbb-seat-reservation-graphic-max-height": this.globalAreaIconDim.h,
15891
15891
  "--sbb-seat-reservation-graphic-width": graphicElement.dimension.w,
@@ -15893,12 +15893,12 @@ var SbbSeatReservationElement = class extends SeatReservationBaseElement {
15893
15893
  "--sbb-seat-reservation-graphic-rotation": graphicElement.rotation,
15894
15894
  "--sbb-seat-reservation-graphic-padding-percent": areaProperty !== "ENTRY_EXIT" ? this.globalAreaIconPadding : 1
15895
15895
  })}
15896
- name=${areaProperty}
15897
- role="img"
15898
- aria-hidden="true"
15899
- class="sbb-sr-graphic__dimension--square-dim"
15900
- ></sbb-seat-reservation-graphic>
15901
- ` : nothing}
15896
+ name=${areaProperty}
15897
+ role="img"
15898
+ aria-hidden="true"
15899
+ class="sbb-sr-graphic__dimension--square-dim"
15900
+ ></sbb-seat-reservation-graphic>
15901
+ ` : nothing}
15902
15902
  </sbb-seat-reservation-area>
15903
15903
  ${areaProperty ? this._popover(triggerId, ariaLabelForArea) : nothing}
15904
15904
  `;