@sbb-esta/lyne-elements 3.3.2 → 3.5.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.
Files changed (108) hide show
  1. package/core/i18n/i18n.d.ts +5 -0
  2. package/core/i18n/i18n.d.ts.map +1 -1
  3. package/core/i18n/i18n.js +108 -84
  4. package/core/i18n.js +84 -80
  5. package/core/mixins/element-internals-mixin.js +6 -6
  6. package/core/mixins/form-associated-input-mixin.d.ts +1 -0
  7. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  8. package/core/mixins/form-associated-input-mixin.js +2 -2
  9. package/core/styles/core/mediaqueries.scss +1 -1
  10. package/core/styles/core.scss +34 -1
  11. package/core/styles/mixins/typo.scss +88 -41
  12. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +530 -0
  13. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +1123 -0
  14. package/core.css +30 -0
  15. package/custom-elements.json +863 -147
  16. package/date-input/date-input.component.d.ts +5 -4
  17. package/date-input/date-input.component.d.ts.map +1 -1
  18. package/date-input/date-input.component.js +19 -21
  19. package/development/core/i18n/i18n.d.ts +5 -0
  20. package/development/core/i18n/i18n.d.ts.map +1 -1
  21. package/development/core/i18n/i18n.js +38 -10
  22. package/development/core/i18n.js +5 -1
  23. package/development/core/mixins/element-internals-mixin.js +3 -3
  24. package/development/core/mixins/form-associated-input-mixin.d.ts +1 -0
  25. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  26. package/development/core/mixins/form-associated-input-mixin.js +3 -2
  27. package/development/date-input/date-input.component.d.ts +5 -4
  28. package/development/date-input/date-input.component.d.ts.map +1 -1
  29. package/development/date-input/date-input.component.js +5 -8
  30. package/development/dialog/dialog/dialog.component.d.ts +2 -0
  31. package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
  32. package/development/dialog/dialog/dialog.component.js +6 -2
  33. package/development/dialog/dialog-title/dialog-title.component.js +2 -6
  34. package/development/file-selector/common/file-selector-common.d.ts +2 -1
  35. package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
  36. package/development/file-selector/common/file-selector-common.js +64 -19
  37. package/development/file-selector/common.js +1 -1
  38. package/development/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
  39. package/development/file-selector/file-selector/file-selector.component.js +12 -17
  40. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +0 -7
  41. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
  42. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +32 -76
  43. package/development/{file-selector-common-csww18o8.js → file-selector-common-BxXdRZxt.js} +3 -3
  44. package/development/file-selector.js +1 -1
  45. package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
  46. package/development/form-field/form-field/form-field.component.js +4 -4
  47. package/development/navigation/common/navigation-action-common.js +5 -8
  48. package/development/navigation/navigation/navigation.component.js +21 -4
  49. package/development/navigation/navigation-marker/navigation-marker.component.js +5 -8
  50. package/development/navigation/navigation-section/navigation-section.component.js +6 -19
  51. package/development/paginator/common/paginator-common.d.ts +3 -0
  52. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  53. package/development/paginator/common/paginator-common.js +68 -10
  54. package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  55. package/development/paginator/compact-paginator/compact-paginator.component.js +8 -3
  56. package/development/paginator/paginator/paginator.component.d.ts +5 -0
  57. package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
  58. package/development/paginator/paginator/paginator.component.js +28 -6
  59. package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  60. package/development/tabs/tab-group/tab-group.component.js +3 -4
  61. package/development/time-input/time-input.component.d.ts +5 -4
  62. package/development/time-input/time-input.component.d.ts.map +1 -1
  63. package/development/time-input/time-input.component.js +5 -8
  64. package/development/title/title-base.js +14 -67
  65. package/development/title/title.component.js +17 -14
  66. package/development/toast/toast.component.js +6 -9
  67. package/development/train/train-wagon/train-wagon.component.js +6 -9
  68. package/dialog/dialog/dialog.component.d.ts +2 -0
  69. package/dialog/dialog/dialog.component.d.ts.map +1 -1
  70. package/dialog/dialog/dialog.component.js +14 -10
  71. package/dialog/dialog-title/dialog-title.component.js +1 -1
  72. package/file-selector/common/file-selector-common.d.ts +2 -1
  73. package/file-selector/common/file-selector-common.d.ts.map +1 -1
  74. package/file-selector/common/file-selector-common.js +88 -63
  75. package/file-selector/common.js +1 -1
  76. package/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
  77. package/file-selector/file-selector/file-selector.component.js +26 -31
  78. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +0 -7
  79. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
  80. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +50 -74
  81. package/file-selector-common-Cn6U8goV.js +5 -0
  82. package/file-selector.js +1 -1
  83. package/form-field/form-field/form-field.component.d.ts.map +1 -1
  84. package/form-field/form-field/form-field.component.js +3 -3
  85. package/navigation/common/navigation-action-common.js +8 -8
  86. package/navigation/navigation/navigation.component.js +1 -1
  87. package/navigation/navigation-marker/navigation-marker.component.js +1 -1
  88. package/navigation/navigation-section/navigation-section.component.js +14 -14
  89. package/package.json +1 -1
  90. package/paginator/common/paginator-common.d.ts +3 -0
  91. package/paginator/common/paginator-common.d.ts.map +1 -1
  92. package/paginator/common/paginator-common.js +103 -63
  93. package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  94. package/paginator/compact-paginator/compact-paginator.component.js +13 -8
  95. package/paginator/paginator/paginator.component.d.ts +5 -0
  96. package/paginator/paginator/paginator.component.d.ts.map +1 -1
  97. package/paginator/paginator/paginator.component.js +77 -61
  98. package/sidebar/sidebar-title/sidebar-title.component.js +14 -14
  99. package/standard-theme.css +30 -0
  100. package/tabs/tab-group/tab-group.component.js +7 -7
  101. package/time-input/time-input.component.d.ts +5 -4
  102. package/time-input/time-input.component.d.ts.map +1 -1
  103. package/time-input/time-input.component.js +21 -22
  104. package/title/title-base.js +33 -33
  105. package/title/title.component.js +9 -9
  106. package/toast/toast.component.js +1 -1
  107. package/train/train-wagon/train-wagon.component.js +6 -6
  108. package/file-selector-common-Dw5d8vA4.js +0 -5
package/core/i18n.js CHANGED
@@ -1,95 +1,99 @@
1
- import { i18nAdditionalWagonInformationHeading as i, i18nArrival as a, i18nBlockedPassage as o, i18nBreadcrumbEllipsisButtonLabel as r, i18nCalendarDateSelection as t, i18nCalendarWeekNumber as l, i18nCheckboxRequired as u, i18nChipDelete as s, i18nChipGroupInputDescription as c, i18nClass as d, i18nClearInput as C, i18nCloseAlert as g, i18nCloseDialog as p, i18nCloseNavigation as D, i18nCloseNotification as P, i18nClosePopover as S, i18nCloseSidebar as b, i18nClosedCompartmentLabel as m, i18nCollapsed as T, i18nConnectionFrom as v, i18nConnectionRoundtrip as h, i18nConnectionTo as L, i18nCouchetteWagonLabel as x, i18nDateChangedTo as N, i18nDateInvalid as W, i18nDateMax as I, i18nDateMin as M, i18nDatePickerPlaceholder as y, i18nDeparture as R, i18nDialog as f, i18nDirection as F, i18nDurationDay as k, i18nDurationHour as B, i18nDurationMinute as Y, i18nExpanded as w, i18nFileSelectorButtonLabel as A, i18nFileSelectorCurrentlySelected as O, i18nFileSelectorDeleteFile as q, i18nFileSelectorSubtitleLabel as E, i18nFlipCard as G, i18nFromPlatform as H, i18nGoBack as Q, i18nInputRequired as j, i18nItemsPerPage as z, i18nLocomotiveLabel as J, i18nMapContainerButtonLabel as K, i18nMeansOfTransport as U, i18nNew as V, i18nNextDay as X, i18nNextMonth as Z, i18nNextPage as _, i18nNextYear as $, i18nNextYearRange as nn, i18nOccupancy as en, i18nOptional as an, i18nPage as on, i18nPreviousDay as rn, i18nPreviousMonth as tn, i18nPreviousPage as ln, i18nPreviousYear as un, i18nPreviousYearRange as sn, i18nRealTimeInfo as cn, i18nRestaurantWagonLabel as dn, i18nReverseCard as Cn, i18nSector as gn, i18nSectorShort as pn, i18nSelectNextDay as Dn, i18nSelectPreviousDay as Pn, i18nSelectedPage as Sn, i18nSelectionRequired as bn, i18nShowCalendar as mn, i18nSleepingWagonLabel as Tn, i18nSupersaver as vn, i18nTargetOpensInNewWindow as hn, i18nTimeInputChange as Ln, i18nTimeInvalid as xn, i18nTimeMax as Nn, i18nTimeMaxLength as Wn, i18nToday as In, i18nTrain as Mn, i18nTrains as yn, i18nTransferProcedure as Rn, i18nTransferProcedures as fn, i18nTravelhints as Fn, i18nTripDuration as kn, i18nTripQuayChange as Bn, i18nWagonLabel as Yn, i18nWagonLabelNumber as wn, i18nWagonsLabel as An, i18nWalkingDistanceArrival as On, i18nWalkingDistanceDeparture as qn, i18nYearMonthSelection as En } from "./i18n/i18n.js";
1
+ import { i18nAdditionalWagonInformationHeading as i, i18nArrival as a, i18nBlockedPassage as o, i18nBreadcrumbEllipsisButtonLabel as t, i18nCalendarDateSelection as r, i18nCalendarWeekNumber as l, i18nCheckboxRequired as u, i18nChipDelete as c, i18nChipGroupInputDescription as s, i18nClass as d, i18nClearInput as g, i18nCloseAlert as p, i18nCloseDialog as C, i18nCloseNavigation as D, i18nCloseNotification as S, i18nClosePopover as b, i18nCloseSidebar as P, i18nClosedCompartmentLabel as m, i18nCollapsed as T, i18nConnectionFrom as v, i18nConnectionRoundtrip as L, i18nConnectionTo as h, i18nCouchetteWagonLabel as x, i18nDateChangedTo as M, i18nDateInvalid as N, i18nDateMax as W, i18nDateMin as F, i18nDatePickerPlaceholder as I, i18nDeparture as f, i18nDialog as y, i18nDirection as R, i18nDurationDay as k, i18nDurationHour as B, i18nDurationMinute as O, i18nExpanded as Y, i18nFileSelectorButtonLabel as w, i18nFileSelectorButtonLabelMultiple as A, i18nFileSelectorCurrentlySelected as q, i18nFileSelectorDeleteFile as E, i18nFileSelectorSubtitleLabel as G, i18nFileSelectorSubtitleLabelMultiple as H, i18nFlipCard as Q, i18nFromPlatform as j, i18nGoBack as z, i18nInputRequired as J, i18nItemsPerPage as K, i18nLocomotiveLabel as U, i18nMapContainerButtonLabel as V, i18nMeansOfTransport as X, i18nNew as Z, i18nNextDay as _, i18nNextMonth as $, i18nNextPage as ee, i18nNextYear as ne, i18nNextYearRange as ie, i18nOccupancy as ae, i18nOptional as oe, i18nPage as te, i18nPaginatorOf as re, i18nPaginatorSelected as le, i18nPreviousDay as ue, i18nPreviousMonth as ce, i18nPreviousPage as se, i18nPreviousYear as de, i18nPreviousYearRange as ge, i18nRealTimeInfo as pe, i18nRestaurantWagonLabel as Ce, i18nReverseCard as De, i18nSector as Se, i18nSectorShort as be, i18nSelectNextDay as Pe, i18nSelectPreviousDay as me, i18nSelectedPage as Te, i18nSelectionRequired as ve, i18nShowCalendar as Le, i18nSleepingWagonLabel as he, i18nSupersaver as xe, i18nTargetOpensInNewWindow as Me, i18nTimeInputChange as Ne, i18nTimeInvalid as We, i18nTimeMax as Fe, i18nTimeMaxLength as Ie, i18nToday as fe, i18nTrain as ye, i18nTrains as Re, i18nTransferProcedure as ke, i18nTransferProcedures as Be, i18nTravelhints as Oe, i18nTripDuration as Ye, i18nTripQuayChange as we, i18nWagonLabel as Ae, i18nWagonLabelNumber as qe, i18nWagonsLabel as Ee, i18nWalkingDistanceArrival as Ge, i18nWalkingDistanceDeparture as He, i18nYearMonthSelection as Qe } from "./i18n/i18n.js";
2
2
  export {
3
3
  i as i18nAdditionalWagonInformationHeading,
4
4
  a as i18nArrival,
5
5
  o as i18nBlockedPassage,
6
- r as i18nBreadcrumbEllipsisButtonLabel,
7
- t as i18nCalendarDateSelection,
6
+ t as i18nBreadcrumbEllipsisButtonLabel,
7
+ r as i18nCalendarDateSelection,
8
8
  l as i18nCalendarWeekNumber,
9
9
  u as i18nCheckboxRequired,
10
- s as i18nChipDelete,
11
- c as i18nChipGroupInputDescription,
10
+ c as i18nChipDelete,
11
+ s as i18nChipGroupInputDescription,
12
12
  d as i18nClass,
13
- C as i18nClearInput,
14
- g as i18nCloseAlert,
15
- p as i18nCloseDialog,
13
+ g as i18nClearInput,
14
+ p as i18nCloseAlert,
15
+ C as i18nCloseDialog,
16
16
  D as i18nCloseNavigation,
17
- P as i18nCloseNotification,
18
- S as i18nClosePopover,
19
- b as i18nCloseSidebar,
17
+ S as i18nCloseNotification,
18
+ b as i18nClosePopover,
19
+ P as i18nCloseSidebar,
20
20
  m as i18nClosedCompartmentLabel,
21
21
  T as i18nCollapsed,
22
22
  v as i18nConnectionFrom,
23
- h as i18nConnectionRoundtrip,
24
- L as i18nConnectionTo,
23
+ L as i18nConnectionRoundtrip,
24
+ h as i18nConnectionTo,
25
25
  x as i18nCouchetteWagonLabel,
26
- N as i18nDateChangedTo,
27
- W as i18nDateInvalid,
28
- I as i18nDateMax,
29
- M as i18nDateMin,
30
- y as i18nDatePickerPlaceholder,
31
- R as i18nDeparture,
32
- f as i18nDialog,
33
- F as i18nDirection,
26
+ M as i18nDateChangedTo,
27
+ N as i18nDateInvalid,
28
+ W as i18nDateMax,
29
+ F as i18nDateMin,
30
+ I as i18nDatePickerPlaceholder,
31
+ f as i18nDeparture,
32
+ y as i18nDialog,
33
+ R as i18nDirection,
34
34
  k as i18nDurationDay,
35
35
  B as i18nDurationHour,
36
- Y as i18nDurationMinute,
37
- w as i18nExpanded,
38
- A as i18nFileSelectorButtonLabel,
39
- O as i18nFileSelectorCurrentlySelected,
40
- q as i18nFileSelectorDeleteFile,
41
- E as i18nFileSelectorSubtitleLabel,
42
- G as i18nFlipCard,
43
- H as i18nFromPlatform,
44
- Q as i18nGoBack,
45
- j as i18nInputRequired,
46
- z as i18nItemsPerPage,
47
- J as i18nLocomotiveLabel,
48
- K as i18nMapContainerButtonLabel,
49
- U as i18nMeansOfTransport,
50
- V as i18nNew,
51
- X as i18nNextDay,
52
- Z as i18nNextMonth,
53
- _ as i18nNextPage,
54
- $ as i18nNextYear,
55
- nn as i18nNextYearRange,
56
- en as i18nOccupancy,
57
- an as i18nOptional,
58
- on as i18nPage,
59
- rn as i18nPreviousDay,
60
- tn as i18nPreviousMonth,
61
- ln as i18nPreviousPage,
62
- un as i18nPreviousYear,
63
- sn as i18nPreviousYearRange,
64
- cn as i18nRealTimeInfo,
65
- dn as i18nRestaurantWagonLabel,
66
- Cn as i18nReverseCard,
67
- gn as i18nSector,
68
- pn as i18nSectorShort,
69
- Dn as i18nSelectNextDay,
70
- Pn as i18nSelectPreviousDay,
71
- Sn as i18nSelectedPage,
72
- bn as i18nSelectionRequired,
73
- mn as i18nShowCalendar,
74
- Tn as i18nSleepingWagonLabel,
75
- vn as i18nSupersaver,
76
- hn as i18nTargetOpensInNewWindow,
77
- Ln as i18nTimeInputChange,
78
- xn as i18nTimeInvalid,
79
- Nn as i18nTimeMax,
80
- Wn as i18nTimeMaxLength,
81
- In as i18nToday,
82
- Mn as i18nTrain,
83
- yn as i18nTrains,
84
- Rn as i18nTransferProcedure,
85
- fn as i18nTransferProcedures,
86
- Fn as i18nTravelhints,
87
- kn as i18nTripDuration,
88
- Bn as i18nTripQuayChange,
89
- Yn as i18nWagonLabel,
90
- wn as i18nWagonLabelNumber,
91
- An as i18nWagonsLabel,
92
- On as i18nWalkingDistanceArrival,
93
- qn as i18nWalkingDistanceDeparture,
94
- En as i18nYearMonthSelection
36
+ O as i18nDurationMinute,
37
+ Y as i18nExpanded,
38
+ w as i18nFileSelectorButtonLabel,
39
+ A as i18nFileSelectorButtonLabelMultiple,
40
+ q as i18nFileSelectorCurrentlySelected,
41
+ E as i18nFileSelectorDeleteFile,
42
+ G as i18nFileSelectorSubtitleLabel,
43
+ H as i18nFileSelectorSubtitleLabelMultiple,
44
+ Q as i18nFlipCard,
45
+ j as i18nFromPlatform,
46
+ z as i18nGoBack,
47
+ J as i18nInputRequired,
48
+ K as i18nItemsPerPage,
49
+ U as i18nLocomotiveLabel,
50
+ V as i18nMapContainerButtonLabel,
51
+ X as i18nMeansOfTransport,
52
+ Z as i18nNew,
53
+ _ as i18nNextDay,
54
+ $ as i18nNextMonth,
55
+ ee as i18nNextPage,
56
+ ne as i18nNextYear,
57
+ ie as i18nNextYearRange,
58
+ ae as i18nOccupancy,
59
+ oe as i18nOptional,
60
+ te as i18nPage,
61
+ re as i18nPaginatorOf,
62
+ le as i18nPaginatorSelected,
63
+ ue as i18nPreviousDay,
64
+ ce as i18nPreviousMonth,
65
+ se as i18nPreviousPage,
66
+ de as i18nPreviousYear,
67
+ ge as i18nPreviousYearRange,
68
+ pe as i18nRealTimeInfo,
69
+ Ce as i18nRestaurantWagonLabel,
70
+ De as i18nReverseCard,
71
+ Se as i18nSector,
72
+ be as i18nSectorShort,
73
+ Pe as i18nSelectNextDay,
74
+ me as i18nSelectPreviousDay,
75
+ Te as i18nSelectedPage,
76
+ ve as i18nSelectionRequired,
77
+ Le as i18nShowCalendar,
78
+ he as i18nSleepingWagonLabel,
79
+ xe as i18nSupersaver,
80
+ Me as i18nTargetOpensInNewWindow,
81
+ Ne as i18nTimeInputChange,
82
+ We as i18nTimeInvalid,
83
+ Fe as i18nTimeMax,
84
+ Ie as i18nTimeMaxLength,
85
+ fe as i18nToday,
86
+ ye as i18nTrain,
87
+ Re as i18nTrains,
88
+ ke as i18nTransferProcedure,
89
+ Be as i18nTransferProcedures,
90
+ Oe as i18nTravelhints,
91
+ Ye as i18nTripDuration,
92
+ we as i18nTripQuayChange,
93
+ Ae as i18nWagonLabel,
94
+ qe as i18nWagonLabelNumber,
95
+ Ee as i18nWagonsLabel,
96
+ Ge as i18nWalkingDistanceArrival,
97
+ He as i18nWalkingDistanceDeparture,
98
+ Qe as i18nYearMonthSelection
95
99
  };
@@ -1,5 +1,5 @@
1
- import { isServer as E } from "lit";
2
- const g = !E && !CSS.supports("selector(:state(loading))") ? class extends Set {
1
+ import { isServer as g } from "lit";
2
+ const E = !g && !CSS.supports("selector(:state(loading))") ? class extends Set {
3
3
  constructor(e) {
4
4
  super(), this._host = e, this._host.addController(this);
5
5
  }
@@ -19,7 +19,7 @@ const g = !E && !CSS.supports("selector(:state(loading))") ? class extends Set {
19
19
  this._host.toggleAttribute(`state--${e}`, a);
20
20
  }
21
21
  } : null;
22
- if (!E) {
22
+ if (!g) {
23
23
  let d = 0;
24
24
  const e = (l) => l.shadowRoot?.host ?? (l instanceof Element ? l : (() => {
25
25
  throw new Error("Unable to resolve related element! This should never happen.");
@@ -81,7 +81,7 @@ if (!E) {
81
81
  t = t?.filter((r, h, b) => b.indexOf(r) === h) ?? null;
82
82
  const n = i.get(s);
83
83
  if (n?.observer?.disconnect(), t === null)
84
- n && (delete n.elements[l.name], Object.keys(n).length ? n.elements?.length && Object.values(n.elements).reduce((r, h) => r.concat(h)).forEach((r) => n.observer.observe(r, a)) : i.delete(s));
84
+ n && (delete n.elements[l.name], Object.keys(n.elements).length ? Object.values(n.elements).reduce((r, h) => r.concat(h)).forEach((r) => n.observer.observe(r, a)) : i.delete(s));
85
85
  else if (n)
86
86
  n.elements[l.name] = t, f(s, o, n.elements), Object.values(n.elements).reduce((r, h) => r.concat(h)).forEach((r) => n.observer.observe(r, a));
87
87
  else {
@@ -105,8 +105,8 @@ const y = (d, ...e) => {
105
105
  }, S = (d) => {
106
106
  class e extends d {
107
107
  constructor(...c) {
108
- super(...c), this.internals = this.attachInternals(), g && Object.defineProperty(this.internals, "states", {
109
- value: new g(this),
108
+ super(...c), this.internals = this.attachInternals(), E && Object.defineProperty(this.internals, "states", {
109
+ value: new E(this),
110
110
  writable: !1,
111
111
  configurable: !1,
112
112
  enumerable: !1
@@ -4,6 +4,7 @@ import { AbstractConstructor } from './constructor.js';
4
4
  import { FormRestoreReason, FormRestoreState } from './form-associated-mixin.js';
5
5
  declare const SbbFormAssociatedInputMixinType_base: AbstractConstructor<import('./required-mixin.js').SbbRequiredMixinType> & AbstractConstructor<import('./form-associated-mixin.js').SbbFormAssociatedMixinType> & AbstractConstructor<import('./element-internals-mixin.js').SbbElementInternalsMixinType> & typeof LitElement & import('./element-internals-mixin.js').SbbElementInternalsConstructor;
6
6
  export declare abstract class SbbFormAssociatedInputMixinType extends SbbFormAssociatedInputMixinType_base {
7
+ static readonly formFieldAssociated = true;
7
8
  set value(value: string);
8
9
  get value(): string;
9
10
  set disabled(value: boolean);
@@ -1 +1 @@
1
- {"version":3,"file":"form-associated-input-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/form-associated-input-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAGhB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAEtB,MAAM,4BAA4B,CAAC;;AAIpC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,+BAAgC,SAAQ,oCAErE;IACC,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE;IAChC,IAAW,KAAK,IAAI,MAAM,CAAC;IAE3B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE;IACtC,IAAW,WAAW,IAAI,MAAM,CAAC;IAEjC;;;;OAIG;IACI,MAAM,IAAI,IAAI;IAEd,iBAAiB,IAAI,IAAI;IACzB,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,MAAM,EAAE,iBAAiB,GAAG,IAAI;IAEhG,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IACjD,SAAS,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC3C;AAgBD;;GAEG;AAEH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EACnF,YAAY,CAAC,KACZ,mBAAmB,CAAC,+BAA+B,CAAC,GAAG,CAkXzD,CAAC"}
1
+ {"version":3,"file":"form-associated-input-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/form-associated-input-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAGhB,MAAM,KAAK,CAAC;AAIb,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAEtB,MAAM,4BAA4B,CAAC;;AAIpC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,+BAAgC,SAAQ,oCAErE;IACC,gBAAuB,mBAAmB,QAAQ;IAElD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE;IAChC,IAAW,KAAK,IAAI,MAAM,CAAC;IAE3B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE;IACpC,IAAW,QAAQ,IAAI,OAAO,CAAC;IAE/B,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE;IACtC,IAAW,WAAW,IAAI,MAAM,CAAC;IAEjC;;;;OAIG;IACI,MAAM,IAAI,IAAI;IAEd,iBAAiB,IAAI,IAAI;IACzB,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,MAAM,EAAE,iBAAiB,GAAG,IAAI;IAEhG,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IACjD,SAAS,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC3C;AAgBD;;GAEG;AAEH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EACnF,YAAY,CAAC,KACZ,mBAAmB,CAAC,+BAA+B,CAAC,GAAG,CAqXzD,CAAC"}
@@ -30,7 +30,7 @@ const k = () => {
30
30
  * The value of the input. Reflects the current text value of this input.
31
31
  */
32
32
  set value(e) {
33
- this._value = this._cleanText(e), this.hasUpdated && (this.innerHTML = this._value);
33
+ this._value = this._cleanText(e), this.hasUpdated && (this.innerHTML = this._value), this.dispatchEvent(new Event("displayvaluechange", { bubbles: !0, composed: !0 }));
34
34
  }
35
35
  get value() {
36
36
  return this._value ?? "";
@@ -167,7 +167,7 @@ const k = () => {
167
167
  } }, metadata: e }, null, n), r(s, null, h, { kind: "setter", name: "placeholder", static: !1, private: !1, access: { has: (t) => "placeholder" in t, set: (t, i) => {
168
168
  t.placeholder = i;
169
169
  } }, metadata: e }, null, n), r(s, null, u, { kind: "method", name: "_cleanChildren", static: !1, private: !1, access: { has: (t) => "_cleanChildren" in t, get: (t) => t._cleanChildren }, metadata: e }, null, n), e && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
170
- })(), s.role = "textbox", s;
170
+ })(), s.role = "textbox", s.formFieldAssociated = !0, s;
171
171
  })();
172
172
  export {
173
173
  H as SbbFormAssociatedInputMixin
@@ -4,7 +4,7 @@
4
4
  @use 'sass:math';
5
5
  @use 'sass:meta';
6
6
  @use 'sass:string';
7
- @use '@sbb-esta/lyne-design-tokens/dist/scss/sbb-variables.scss' as sbb-tokens;
7
+ @use '../node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss' as sbb-tokens;
8
8
 
9
9
  $mq-breakpoints: (
10
10
  zero: sbb-tokens.$sbb-breakpoint-zero-min,
@@ -1,4 +1,4 @@
1
- @use '@sbb-esta/lyne-design-tokens/dist/scss/sbb-variables_css--mixin.scss' as sbb-css-tokens;
1
+ @use 'node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss' as sbb-css-tokens;
2
2
  @use './core/mediaqueries';
3
3
  @use './core/functions';
4
4
  @use './mixins/a11y';
@@ -33,6 +33,39 @@
33
33
  // Overlay
34
34
  --sbb-overlay-default-z-index: 1000;
35
35
 
36
+ // Title
37
+ --sbb-title-font-size-level-1: var(--sbb-font-size-title-1);
38
+ --sbb-title-font-size-level-2: var(--sbb-font-size-title-2);
39
+ --sbb-title-font-size-level-3: var(--sbb-font-size-title-3);
40
+ --sbb-title-font-size-level-4: var(--sbb-font-size-title-4);
41
+ --sbb-title-font-size-level-5: var(--sbb-font-size-title-5);
42
+ --sbb-title-font-size-level-6: var(--sbb-font-size-title-6);
43
+ --sbb-title-default-margin-block-start: var(--sbb-spacing-responsive-m);
44
+ --sbb-title-margin-block-start-level-1: var(--sbb-spacing-responsive-l);
45
+ --sbb-title-margin-block-end-level-1: var(--sbb-spacing-responsive-s);
46
+ --sbb-title-margin-block-end-level-2: var(--sbb-spacing-responsive-xxxs);
47
+ --sbb-title-margin-block-end-level-3: var(--sbb-spacing-responsive-xxxs);
48
+ --sbb-title-margin-block-end-level-4: var(--sbb-spacing-fixed-3x);
49
+ --sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-2x);
50
+ --sbb-title-margin-block-end-level-6: var(--sbb-spacing-fixed-1x);
51
+
52
+ &.sbb-lean {
53
+ --sbb-title-font-size-level-1: var(--sbb-font-size-title-2);
54
+ --sbb-title-font-size-level-2: var(--sbb-font-size-title-3);
55
+ --sbb-title-font-size-level-3: var(--sbb-font-size-title-4);
56
+ --sbb-title-font-size-level-4: var(--sbb-font-size-title-5);
57
+ --sbb-title-font-size-level-5: var(--sbb-font-size-title-6);
58
+ --sbb-title-font-size-level-6: var(--sbb-font-size-title-7);
59
+ --sbb-title-default-margin-block-start: var(--sbb-spacing-responsive-s);
60
+ --sbb-title-margin-block-start-level-1: var(--sbb-spacing-responsive-s);
61
+ --sbb-title-margin-block-end-level-1: var(--sbb-spacing-fixed-3x);
62
+ --sbb-title-margin-block-end-level-2: var(--sbb-spacing-fixed-3x);
63
+ --sbb-title-margin-block-end-level-3: var(--sbb-spacing-responsive-xxxs);
64
+ --sbb-title-margin-block-end-level-4: var(--sbb-spacing-fixed-2x);
65
+ --sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-1x);
66
+ --sbb-title-margin-block-end-level-6: 0;
67
+ }
68
+
36
69
  // Infinity border radius, can be used to achieve rounded border on start and end
37
70
  // TODO: Check if infinity is supported by all browsers (e.g. Firefox) -> calc(1em * infinity);
38
71
  --sbb-border-radius-infinity: 100000em;
@@ -2,86 +2,133 @@
2
2
  // Typo: Title Style Mixins
3
3
  // ----------------------------------------------------------------------------------------------------
4
4
 
5
- @mixin title($exclude-spacing: false) {
6
- --sbb-title-line-height: var(--sbb-typo-line-height-titles);
7
- --sbb-title-margin-block-start: 0;
8
- --sbb-title-margin-block-end: 0;
9
-
10
- @if not($exclude-spacing) {
11
- --sbb-title-margin-block-start: var(--sbb-spacing-responsive-m);
12
- --sbb-title-margin-block-end: var(--sbb-spacing-responsive-s);
13
- }
14
-
15
- margin: 0;
16
- margin-block: var(--sbb-title-margin-block-start) var(--sbb-title-margin-block-end);
5
+ @mixin title-rules {
6
+ margin-block: var(--sbb-title-margin-block-start, 0) var(--sbb-title-margin-block-end, 0);
7
+ margin-inline: 0;
17
8
  font-family: var(--sbb-typo-font-family);
18
9
  font-weight: bold;
19
- line-height: var(--sbb-title-line-height);
10
+ line-height: var(--sbb-title-line-height, var(--sbb-typo-line-height-titles));
20
11
  letter-spacing: var(--sbb-typo-letter-spacing-titles);
21
12
  font-size: var(--sbb-title-font-size);
22
13
  }
23
14
 
24
- @mixin title-1($exclude-spacing: false) {
25
- @include title($exclude-spacing);
15
+ @mixin title--level-1 {
16
+ --sbb-title-font-size: var(--sbb-title-font-size-level-1);
17
+ }
26
18
 
27
- --sbb-title-font-size: var(--sbb-font-size-title-1);
19
+ @mixin title--level-1-spacing {
20
+ --sbb-title-margin-block-start: var(--sbb-title-margin-block-start-level-1);
21
+ --sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-1);
28
22
  }
29
23
 
30
- @mixin title-2($exclude-spacing: false) {
31
- @include title($exclude-spacing);
24
+ @mixin title--level-2 {
25
+ --sbb-title-font-size: var(--sbb-title-font-size-level-2);
26
+ }
32
27
 
33
- --sbb-title-font-size: var(--sbb-font-size-title-2);
28
+ @mixin title--level-2-spacing {
29
+ --sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
30
+ --sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-2);
31
+ }
34
32
 
35
- @if not($exclude-spacing) {
36
- --sbb-title-margin-block-end: var(--sbb-spacing-responsive-xxxs);
37
- }
33
+ @mixin title--level-3 {
34
+ --sbb-title-font-size: var(--sbb-title-font-size-level-3);
38
35
  }
39
36
 
40
- @mixin title-3($exclude-spacing: false) {
41
- @include title($exclude-spacing);
37
+ @mixin title--level-3-spacing {
38
+ --sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
39
+ --sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-3);
40
+ }
41
+
42
+ @mixin title--level-4 {
43
+ --sbb-title-font-size: var(--sbb-title-font-size-level-4);
44
+ }
45
+
46
+ @mixin title--level-4-spacing {
47
+ --sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
48
+ --sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-4);
49
+ }
50
+
51
+ @mixin title--level-5 {
52
+ --sbb-title-font-size: var(--sbb-title-font-size-level-5);
53
+ }
54
+
55
+ @mixin title--level-5-spacing {
56
+ --sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
57
+ --sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-5);
58
+ }
59
+
60
+ @mixin title--level-6 {
61
+ --sbb-title-font-size: var(--sbb-title-font-size-level-6);
62
+ --sbb-title-line-height: var(--sbb-typo-line-height-body-text);
63
+ }
42
64
 
43
- --sbb-title-font-size: var(--sbb-font-size-title-3);
65
+ @mixin title--level-6-spacing {
66
+ --sbb-title-margin-block-start: var(--sbb-title-default-margin-block-start);
67
+ --sbb-title-margin-block-end: var(--sbb-title-margin-block-end-level-6);
68
+ }
44
69
 
70
+ @mixin title-1($exclude-spacing: false) {
71
+ @include title--level-1;
45
72
  @if not($exclude-spacing) {
46
- --sbb-title-margin-block-end: var(--sbb-spacing-responsive-xxxs);
73
+ @include title--level-1-spacing;
47
74
  }
75
+ @include title-rules;
48
76
  }
49
77
 
50
- @mixin title-4($exclude-spacing: false) {
51
- @include title($exclude-spacing);
78
+ @mixin title-2($exclude-spacing: false) {
79
+ @include title--level-2;
80
+ @if not($exclude-spacing) {
81
+ @include title--level-2-spacing;
82
+ }
83
+ @include title-rules;
84
+ }
52
85
 
53
- --sbb-title-font-size: var(--sbb-font-size-title-4);
86
+ @mixin title-3($exclude-spacing: false) {
87
+ @include title--level-3;
88
+ @if not($exclude-spacing) {
89
+ @include title--level-3-spacing;
90
+ }
91
+ @include title-rules;
92
+ }
54
93
 
94
+ @mixin title-4($exclude-spacing: false) {
95
+ @include title--level-4;
55
96
  @if not($exclude-spacing) {
56
- --sbb-title-margin-block-end: var(--sbb-spacing-fixed-3x);
97
+ @include title--level-4-spacing;
57
98
  }
99
+ @include title-rules;
58
100
  }
59
101
 
60
102
  @mixin title-5($exclude-spacing: false) {
61
- @include title($exclude-spacing);
62
-
63
- --sbb-title-font-size: var(--sbb-font-size-title-5);
64
-
103
+ @include title--level-5;
65
104
  @if not($exclude-spacing) {
66
- --sbb-title-margin-block-end: var(--sbb-spacing-fixed-2x);
105
+ @include title--level-5-spacing;
67
106
  }
107
+ @include title-rules;
68
108
  }
69
109
 
70
110
  @mixin title-6($exclude-spacing: false) {
71
- @include title($exclude-spacing);
72
-
73
- --sbb-title-font-size: var(--sbb-font-size-title-6);
74
- --sbb-title-line-height: var(--sbb-typo-line-height-body-text);
75
-
111
+ @include title--level-6;
76
112
  @if not($exclude-spacing) {
77
- --sbb-title-margin-block-end: var(--sbb-spacing-fixed-1x);
113
+ @include title--level-6-spacing;
78
114
  }
115
+ @include title-rules;
79
116
  }
80
117
 
81
118
  @mixin title--negative {
82
119
  --sbb-title-text-color-normal: var(--sbb-color-milk);
83
120
  }
84
121
 
122
+ // @deprecated, non-standard values, title rules combined with title level mixins are the alternative
123
+ @mixin title($exclude-spacing: false) {
124
+ @if not($exclude-spacing) {
125
+ --sbb-title-margin-block-start: var(--sbb-spacing-responsive-m);
126
+ --sbb-title-margin-block-end: var(--sbb-spacing-responsive-s);
127
+ }
128
+
129
+ @include title-rules;
130
+ }
131
+
85
132
  // ----------------------------------------------------------------------------------------------------
86
133
  // Typo: Text Style Mixins
87
134
  // ----------------------------------------------------------------------------------------------------