@sbb-esta/lyne-elements 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.
- package/action-group.pure.js +1 -1
- package/alert.pure.js +14 -14
- package/breadcrumb.pure.js +3 -3
- package/calendar.pure.js +67 -67
- package/carousel/_carousel.global.scss +6 -0
- package/carousel.pure.js +1 -1
- package/clock.pure.js +1 -1
- package/core/styles/_theme.scss +1 -0
- package/core.js +2 -2
- package/custom-elements.json +99 -67
- package/date-input.pure.js +1 -1
- package/development/action-group.pure.js +1 -1
- package/development/alert.pure.js +14 -14
- package/development/breadcrumb.pure.js +3 -3
- package/development/calendar.pure.js +67 -67
- package/development/carousel.pure.js +1 -1
- package/development/clock.pure.js +15 -17
- package/development/core.js +2 -2
- package/development/date-input.pure.js +15 -7
- package/development/expansion-panel.pure.js +6 -6
- package/development/file-selector.pure.js +7 -3
- package/development/image.pure.js +8 -8
- package/development/map-container.pure.js +8 -8
- package/development/mini-calendar.pure.js +1 -1
- package/development/notification.pure.js +12 -9
- package/development/option.pure.js +11 -11
- package/development/paginator.pure.js +18 -18
- package/development/signet.pure.js +17 -17
- package/development/stepper/step/step.component.d.ts +0 -2
- package/development/stepper/stepper/stepper.component.d.ts +2 -2
- package/development/stepper.pure.js +24 -17
- package/development/tabs.pure.js +4 -4
- package/development/teaser.pure.js +1 -1
- package/development/time-input.pure.js +10 -6
- package/development/timetable-form.pure.js +3 -3
- package/development/timetable-occupancy.pure.js +22 -22
- package/development/toast.pure.js +6 -6
- package/development/tooltip.pure.js +4 -2
- package/development/train.pure.js +29 -29
- package/development/visual-checkbox.pure.js +13 -13
- package/expansion-panel.pure.js +6 -6
- package/file-selector.pure.js +2 -2
- package/image.pure.js +8 -8
- package/lean-off-brand-theme.css +39 -1
- package/lean-safety-theme.css +39 -1
- package/lean-theme.css +39 -1
- package/map-container.pure.js +8 -8
- package/mini-calendar.pure.js +1 -1
- package/notification.pure.js +12 -9
- package/off-brand-theme.css +39 -1
- package/option.pure.js +11 -11
- package/package.json +1 -1
- package/paginator.pure.js +18 -18
- package/safety-theme.css +39 -1
- package/signet.pure.js +17 -17
- package/standard-theme.css +39 -1
- package/stepper.pure.js +3 -3
- package/table/_table.global.scss +46 -1
- package/tabs.pure.js +4 -4
- package/teaser/_teaser.global.scss +4 -0
- package/teaser.pure.js +1 -1
- package/time-input.pure.js +1 -1
- package/timetable-form.pure.js +3 -3
- package/timetable-occupancy.pure.js +22 -22
- package/toast.pure.js +6 -6
- package/tooltip.pure.js +3 -3
- package/train.pure.js +29 -29
- package/visual-checkbox.pure.js +13 -13
package/custom-elements.json
CHANGED
|
@@ -79014,7 +79014,7 @@
|
|
|
79014
79014
|
"kind": "field",
|
|
79015
79015
|
"name": "color",
|
|
79016
79016
|
"type": {
|
|
79017
|
-
"text": "
|
|
79017
|
+
"text": "'white' | 'milk' | 'transparent-bordered' | 'transparent-bordered-dashed'"
|
|
79018
79018
|
},
|
|
79019
79019
|
"privacy": "public",
|
|
79020
79020
|
"default": "'white'",
|
|
@@ -79310,7 +79310,7 @@
|
|
|
79310
79310
|
{
|
|
79311
79311
|
"name": "color",
|
|
79312
79312
|
"type": {
|
|
79313
|
-
"text": "
|
|
79313
|
+
"text": "'white' | 'milk' | 'transparent-bordered' | 'transparent-bordered-dashed'"
|
|
79314
79314
|
},
|
|
79315
79315
|
"default": "'white'",
|
|
79316
79316
|
"description": "Option to set the component's background color.",
|
|
@@ -82939,7 +82939,7 @@
|
|
|
82939
82939
|
"kind": "field",
|
|
82940
82940
|
"name": "pagerPosition",
|
|
82941
82941
|
"type": {
|
|
82942
|
-
"text": "
|
|
82942
|
+
"text": "'start' | 'end'"
|
|
82943
82943
|
},
|
|
82944
82944
|
"privacy": "public",
|
|
82945
82945
|
"default": "'start'",
|
|
@@ -83263,7 +83263,7 @@
|
|
|
83263
83263
|
{
|
|
83264
83264
|
"name": "pager-position",
|
|
83265
83265
|
"type": {
|
|
83266
|
-
"text": "
|
|
83266
|
+
"text": "'start' | 'end'"
|
|
83267
83267
|
},
|
|
83268
83268
|
"default": "'start'",
|
|
83269
83269
|
"description": "Position of the prev/next buttons.",
|
|
@@ -83530,7 +83530,7 @@
|
|
|
83530
83530
|
"kind": "field",
|
|
83531
83531
|
"name": "pagerPosition",
|
|
83532
83532
|
"type": {
|
|
83533
|
-
"text": "
|
|
83533
|
+
"text": "'start' | 'end'"
|
|
83534
83534
|
},
|
|
83535
83535
|
"privacy": "public",
|
|
83536
83536
|
"default": "'start'",
|
|
@@ -84188,7 +84188,7 @@
|
|
|
84188
84188
|
{
|
|
84189
84189
|
"name": "pager-position",
|
|
84190
84190
|
"type": {
|
|
84191
|
-
"text": "
|
|
84191
|
+
"text": "'start' | 'end'"
|
|
84192
84192
|
},
|
|
84193
84193
|
"default": "'start'",
|
|
84194
84194
|
"description": "Position of the prev/next buttons.",
|
|
@@ -86578,7 +86578,7 @@
|
|
|
86578
86578
|
"kind": "field",
|
|
86579
86579
|
"name": "pagerPosition",
|
|
86580
86580
|
"type": {
|
|
86581
|
-
"text": "
|
|
86581
|
+
"text": "'start' | 'end'"
|
|
86582
86582
|
},
|
|
86583
86583
|
"privacy": "public",
|
|
86584
86584
|
"default": "'start'",
|
|
@@ -87387,7 +87387,7 @@
|
|
|
87387
87387
|
{
|
|
87388
87388
|
"name": "pager-position",
|
|
87389
87389
|
"type": {
|
|
87390
|
-
"text": "
|
|
87390
|
+
"text": "'start' | 'end'"
|
|
87391
87391
|
},
|
|
87392
87392
|
"default": "'start'",
|
|
87393
87393
|
"description": "Position of the prev/next buttons: if `pageSizeOptions` is set,\nthe sbb-select for the pageSize change will be positioned oppositely, with the page numbers always in the center.",
|
|
@@ -88671,7 +88671,7 @@
|
|
|
88671
88671
|
"privacy": "private",
|
|
88672
88672
|
"return": {
|
|
88673
88673
|
"type": {
|
|
88674
|
-
"text": "
|
|
88674
|
+
"text": "void"
|
|
88675
88675
|
}
|
|
88676
88676
|
}
|
|
88677
88677
|
},
|
|
@@ -88681,7 +88681,7 @@
|
|
|
88681
88681
|
"privacy": "private",
|
|
88682
88682
|
"return": {
|
|
88683
88683
|
"type": {
|
|
88684
|
-
"text": "
|
|
88684
|
+
"text": "void"
|
|
88685
88685
|
}
|
|
88686
88686
|
},
|
|
88687
88687
|
"description": "Starts the clock by defining the hands starting position then starting the animations."
|
|
@@ -88692,7 +88692,7 @@
|
|
|
88692
88692
|
"privacy": "private",
|
|
88693
88693
|
"return": {
|
|
88694
88694
|
"type": {
|
|
88695
|
-
"text": "
|
|
88695
|
+
"text": "void"
|
|
88696
88696
|
}
|
|
88697
88697
|
},
|
|
88698
88698
|
"description": "Stops the clock by removing all the animations."
|
|
@@ -89236,7 +89236,7 @@
|
|
|
89236
89236
|
"kind": "field",
|
|
89237
89237
|
"name": "color",
|
|
89238
89238
|
"type": {
|
|
89239
|
-
"text": "
|
|
89239
|
+
"text": "'transparent' | 'white' | 'milk' | 'midnight' | 'charcoal'"
|
|
89240
89240
|
},
|
|
89241
89241
|
"privacy": "public",
|
|
89242
89242
|
"default": "'white'",
|
|
@@ -89550,7 +89550,7 @@
|
|
|
89550
89550
|
{
|
|
89551
89551
|
"name": "color",
|
|
89552
89552
|
"type": {
|
|
89553
|
-
"text": "
|
|
89553
|
+
"text": "'transparent' | 'white' | 'milk' | 'midnight' | 'charcoal'"
|
|
89554
89554
|
},
|
|
89555
89555
|
"default": "'white'",
|
|
89556
89556
|
"description": "Color of the container, like transparent, white etc.",
|
|
@@ -89637,7 +89637,7 @@
|
|
|
89637
89637
|
"kind": "field",
|
|
89638
89638
|
"name": "color",
|
|
89639
89639
|
"type": {
|
|
89640
|
-
"text": "
|
|
89640
|
+
"text": "'white' | 'milk' | 'midnight' | 'charcoal' | null"
|
|
89641
89641
|
},
|
|
89642
89642
|
"privacy": "public",
|
|
89643
89643
|
"default": "null",
|
|
@@ -90177,7 +90177,7 @@
|
|
|
90177
90177
|
{
|
|
90178
90178
|
"name": "color",
|
|
90179
90179
|
"type": {
|
|
90180
|
-
"text": "
|
|
90180
|
+
"text": "'white' | 'milk' | 'midnight' | 'charcoal' | null"
|
|
90181
90181
|
},
|
|
90182
90182
|
"default": "null",
|
|
90183
90183
|
"description": "Color of the container, like transparent, white etc.",
|
|
@@ -100784,7 +100784,16 @@
|
|
|
100784
100784
|
"type": {
|
|
100785
100785
|
"text": "void"
|
|
100786
100786
|
}
|
|
100787
|
-
}
|
|
100787
|
+
},
|
|
100788
|
+
"parameters": [
|
|
100789
|
+
{
|
|
100790
|
+
"name": "except",
|
|
100791
|
+
"optional": true,
|
|
100792
|
+
"type": {
|
|
100793
|
+
"text": "keyof ValidityStateFlags"
|
|
100794
|
+
}
|
|
100795
|
+
}
|
|
100796
|
+
]
|
|
100788
100797
|
},
|
|
100789
100798
|
{
|
|
100790
100799
|
"kind": "field",
|
|
@@ -105684,7 +105693,7 @@
|
|
|
105684
105693
|
"kind": "field",
|
|
105685
105694
|
"name": "backdrop",
|
|
105686
105695
|
"type": {
|
|
105687
|
-
"text": "
|
|
105696
|
+
"text": "'opaque' | 'translucent'"
|
|
105688
105697
|
},
|
|
105689
105698
|
"privacy": "public",
|
|
105690
105699
|
"default": "'opaque'",
|
|
@@ -106741,7 +106750,7 @@
|
|
|
106741
106750
|
{
|
|
106742
106751
|
"name": "backdrop",
|
|
106743
106752
|
"type": {
|
|
106744
|
-
"text": "
|
|
106753
|
+
"text": "'opaque' | 'translucent'"
|
|
106745
106754
|
},
|
|
106746
106755
|
"default": "'opaque'",
|
|
106747
106756
|
"description": "Backdrop density.",
|
|
@@ -108950,6 +108959,10 @@
|
|
|
108950
108959
|
"type": {
|
|
108951
108960
|
"text": "FileList"
|
|
108952
108961
|
}
|
|
108962
|
+
},
|
|
108963
|
+
{
|
|
108964
|
+
"name": "emitNativeEvents",
|
|
108965
|
+
"default": "false"
|
|
108953
108966
|
}
|
|
108954
108967
|
]
|
|
108955
108968
|
},
|
|
@@ -108981,6 +108994,16 @@
|
|
|
108981
108994
|
}
|
|
108982
108995
|
]
|
|
108983
108996
|
},
|
|
108997
|
+
{
|
|
108998
|
+
"kind": "method",
|
|
108999
|
+
"name": "_dispatchNativeEvents",
|
|
109000
|
+
"privacy": "private",
|
|
109001
|
+
"return": {
|
|
109002
|
+
"type": {
|
|
109003
|
+
"text": "void"
|
|
109004
|
+
}
|
|
109005
|
+
}
|
|
109006
|
+
},
|
|
108984
109007
|
{
|
|
108985
109008
|
"kind": "method",
|
|
108986
109009
|
"name": "_dispatchFileChangedEvent",
|
|
@@ -110098,6 +110121,10 @@
|
|
|
110098
110121
|
"type": {
|
|
110099
110122
|
"text": "FileList"
|
|
110100
110123
|
}
|
|
110124
|
+
},
|
|
110125
|
+
{
|
|
110126
|
+
"name": "emitNativeEvents",
|
|
110127
|
+
"default": "false"
|
|
110101
110128
|
}
|
|
110102
110129
|
],
|
|
110103
110130
|
"inheritedFrom": {
|
|
@@ -110141,6 +110168,20 @@
|
|
|
110141
110168
|
"module": "file-selector/common/file-selector-common.js"
|
|
110142
110169
|
}
|
|
110143
110170
|
},
|
|
110171
|
+
{
|
|
110172
|
+
"kind": "method",
|
|
110173
|
+
"name": "_dispatchNativeEvents",
|
|
110174
|
+
"privacy": "private",
|
|
110175
|
+
"return": {
|
|
110176
|
+
"type": {
|
|
110177
|
+
"text": "void"
|
|
110178
|
+
}
|
|
110179
|
+
},
|
|
110180
|
+
"inheritedFrom": {
|
|
110181
|
+
"name": "SbbFileSelectorCommonElementMixin",
|
|
110182
|
+
"module": "file-selector/common/file-selector-common.js"
|
|
110183
|
+
}
|
|
110184
|
+
},
|
|
110144
110185
|
{
|
|
110145
110186
|
"kind": "method",
|
|
110146
110187
|
"name": "_dispatchFileChangedEvent",
|
|
@@ -111572,6 +111613,10 @@
|
|
|
111572
111613
|
"type": {
|
|
111573
111614
|
"text": "FileList"
|
|
111574
111615
|
}
|
|
111616
|
+
},
|
|
111617
|
+
{
|
|
111618
|
+
"name": "emitNativeEvents",
|
|
111619
|
+
"default": "false"
|
|
111575
111620
|
}
|
|
111576
111621
|
],
|
|
111577
111622
|
"inheritedFrom": {
|
|
@@ -111615,6 +111660,20 @@
|
|
|
111615
111660
|
"module": "file-selector/common/file-selector-common.js"
|
|
111616
111661
|
}
|
|
111617
111662
|
},
|
|
111663
|
+
{
|
|
111664
|
+
"kind": "method",
|
|
111665
|
+
"name": "_dispatchNativeEvents",
|
|
111666
|
+
"privacy": "private",
|
|
111667
|
+
"return": {
|
|
111668
|
+
"type": {
|
|
111669
|
+
"text": "void"
|
|
111670
|
+
}
|
|
111671
|
+
},
|
|
111672
|
+
"inheritedFrom": {
|
|
111673
|
+
"name": "SbbFileSelectorCommonElementMixin",
|
|
111674
|
+
"module": "file-selector/common/file-selector-common.js"
|
|
111675
|
+
}
|
|
111676
|
+
},
|
|
111618
111677
|
{
|
|
111619
111678
|
"kind": "method",
|
|
111620
111679
|
"name": "_dispatchFileChangedEvent",
|
|
@@ -138549,7 +138608,7 @@
|
|
|
138549
138608
|
"kind": "field",
|
|
138550
138609
|
"name": "type",
|
|
138551
138610
|
"type": {
|
|
138552
|
-
"text": "
|
|
138611
|
+
"text": "'info' | 'note' | 'success' | 'warn' | 'error'"
|
|
138553
138612
|
},
|
|
138554
138613
|
"privacy": "public",
|
|
138555
138614
|
"default": "'info'",
|
|
@@ -139137,7 +139196,7 @@
|
|
|
139137
139196
|
{
|
|
139138
139197
|
"name": "type",
|
|
139139
139198
|
"type": {
|
|
139140
|
-
"text": "
|
|
139199
|
+
"text": "'info' | 'note' | 'success' | 'warn' | 'error'"
|
|
139141
139200
|
},
|
|
139142
139201
|
"default": "'info'",
|
|
139143
139202
|
"description": "The type of the notification.",
|
|
@@ -146696,7 +146755,7 @@
|
|
|
146696
146755
|
"text": "void"
|
|
146697
146756
|
}
|
|
146698
146757
|
},
|
|
146699
|
-
"description": "Selects the next step."
|
|
146758
|
+
"description": "Selects the next enabled step. If no available step is found, it simply exits."
|
|
146700
146759
|
},
|
|
146701
146760
|
{
|
|
146702
146761
|
"kind": "method",
|
|
@@ -146707,7 +146766,7 @@
|
|
|
146707
146766
|
"text": "void"
|
|
146708
146767
|
}
|
|
146709
146768
|
},
|
|
146710
|
-
"description": "Selects the previous step."
|
|
146769
|
+
"description": "Selects the previous enabled step. If no available step is found, it simply exits."
|
|
146711
146770
|
},
|
|
146712
146771
|
{
|
|
146713
146772
|
"kind": "method",
|
|
@@ -147519,42 +147578,6 @@
|
|
|
147519
147578
|
],
|
|
147520
147579
|
"description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
|
|
147521
147580
|
},
|
|
147522
|
-
{
|
|
147523
|
-
"kind": "method",
|
|
147524
|
-
"name": "_isGoNextElement",
|
|
147525
|
-
"privacy": "private",
|
|
147526
|
-
"return": {
|
|
147527
|
-
"type": {
|
|
147528
|
-
"text": "boolean"
|
|
147529
|
-
}
|
|
147530
|
-
},
|
|
147531
|
-
"parameters": [
|
|
147532
|
-
{
|
|
147533
|
-
"name": "element",
|
|
147534
|
-
"type": {
|
|
147535
|
-
"text": "HTMLElement"
|
|
147536
|
-
}
|
|
147537
|
-
}
|
|
147538
|
-
]
|
|
147539
|
-
},
|
|
147540
|
-
{
|
|
147541
|
-
"kind": "method",
|
|
147542
|
-
"name": "_isGoPreviousElement",
|
|
147543
|
-
"privacy": "private",
|
|
147544
|
-
"return": {
|
|
147545
|
-
"type": {
|
|
147546
|
-
"text": "boolean"
|
|
147547
|
-
}
|
|
147548
|
-
},
|
|
147549
|
-
"parameters": [
|
|
147550
|
-
{
|
|
147551
|
-
"name": "element",
|
|
147552
|
-
"type": {
|
|
147553
|
-
"text": "HTMLElement"
|
|
147554
|
-
}
|
|
147555
|
-
}
|
|
147556
|
-
]
|
|
147557
|
-
},
|
|
147558
147581
|
{
|
|
147559
147582
|
"kind": "method",
|
|
147560
147583
|
"name": "_onStepElementResize",
|
|
@@ -157542,7 +157565,16 @@
|
|
|
157542
157565
|
"type": {
|
|
157543
157566
|
"text": "void"
|
|
157544
157567
|
}
|
|
157545
|
-
}
|
|
157568
|
+
},
|
|
157569
|
+
"parameters": [
|
|
157570
|
+
{
|
|
157571
|
+
"name": "except",
|
|
157572
|
+
"optional": true,
|
|
157573
|
+
"type": {
|
|
157574
|
+
"text": "keyof ValidityStateFlags"
|
|
157575
|
+
}
|
|
157576
|
+
}
|
|
157577
|
+
]
|
|
157546
157578
|
},
|
|
157547
157579
|
{
|
|
157548
157580
|
"kind": "method",
|
|
@@ -166959,7 +166991,7 @@
|
|
|
166959
166991
|
"kind": "field",
|
|
166960
166992
|
"name": "wagonClass",
|
|
166961
166993
|
"type": {
|
|
166962
|
-
"text": "
|
|
166994
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
166963
166995
|
},
|
|
166964
166996
|
"privacy": "public",
|
|
166965
166997
|
"default": "null",
|
|
@@ -167212,7 +167244,7 @@
|
|
|
167212
167244
|
{
|
|
167213
167245
|
"name": "wagon-class",
|
|
167214
167246
|
"type": {
|
|
167215
|
-
"text": "
|
|
167247
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
167216
167248
|
},
|
|
167217
167249
|
"default": "null",
|
|
167218
167250
|
"description": "Class label",
|
|
@@ -168995,7 +169027,7 @@
|
|
|
168995
169027
|
"kind": "field",
|
|
168996
169028
|
"name": "wagonClass",
|
|
168997
169029
|
"type": {
|
|
168998
|
-
"text": "
|
|
169030
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
168999
169031
|
},
|
|
169000
169032
|
"privacy": "public",
|
|
169001
169033
|
"default": "null",
|
|
@@ -170095,7 +170127,7 @@
|
|
|
170095
170127
|
{
|
|
170096
170128
|
"name": "wagon-class",
|
|
170097
170129
|
"type": {
|
|
170098
|
-
"text": "
|
|
170130
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
170099
170131
|
},
|
|
170100
170132
|
"default": "null",
|
|
170101
170133
|
"description": "Class label",
|
|
@@ -170348,7 +170380,7 @@
|
|
|
170348
170380
|
"kind": "field",
|
|
170349
170381
|
"name": "wagonClass",
|
|
170350
170382
|
"type": {
|
|
170351
|
-
"text": "
|
|
170383
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
170352
170384
|
},
|
|
170353
170385
|
"privacy": "public",
|
|
170354
170386
|
"default": "null",
|
|
@@ -171133,7 +171165,7 @@
|
|
|
171133
171165
|
{
|
|
171134
171166
|
"name": "wagon-class",
|
|
171135
171167
|
"type": {
|
|
171136
|
-
"text": "
|
|
171168
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
171137
171169
|
},
|
|
171138
171170
|
"default": "null",
|
|
171139
171171
|
"description": "Class label",
|
|
@@ -171401,7 +171433,7 @@
|
|
|
171401
171433
|
"kind": "field",
|
|
171402
171434
|
"name": "wagonClass",
|
|
171403
171435
|
"type": {
|
|
171404
|
-
"text": "
|
|
171436
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
171405
171437
|
},
|
|
171406
171438
|
"privacy": "public",
|
|
171407
171439
|
"default": "null",
|
|
@@ -171996,7 +172028,7 @@
|
|
|
171996
172028
|
{
|
|
171997
172029
|
"name": "wagon-class",
|
|
171998
172030
|
"type": {
|
|
171999
|
-
"text": "
|
|
172031
|
+
"text": "'1' | '2' | '1-2' | '2-1' | null"
|
|
172000
172032
|
},
|
|
172001
172033
|
"default": "null",
|
|
172002
172034
|
"description": "Class label",
|
package/date-input.pure.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{__esDecorate as e,__runInitializers as t}from"tslib";import{isServer as n,unsafeCSS as r}from"lit";import{property as i}from"lit/decorators.js";import{SbbElement as a,SbbFormAssociatedInputMixin as o,defaultDateAdapter as s,i18nDateInvalid as c,i18nDateMax as l,i18nDateMin as u,i18nDatePickerPlaceholder as d,plainDate as f,plainDateConverter as p,readConfig as m}from"./core.js";var h=`:host{cursor:text;align-items:center;min-width:9.375rem;max-width:100%;font-weight:400;display:inline-flex}@media (forced-colors:active){:host{color:fieldtext}}:host(:disabled){cursor:var(--sbb-cursor-default)}:host(:focus){text-overflow:initial!important}:host(:empty):after{content:attr(placeholder);color:var(--sbb-color-5);-webkit-text-fill-color:var(--sbb-color-5);opacity:1}@media (forced-colors:active){:host(:empty):after{color:graytext}}
|
|
2
|
-
`;Object.assign(ValidityState.prototype,{get sbbDateFilter(){return!1}});let g=(()=>{let g=o(a),_=[],v,y,b=[],x=[],S,C=[],w=[],T,E,D=[],O=[];return class extends g{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;v=[i({attribute:!1})],y=[f(),i({converter:p,reflect:!0})],S=[f(),i({converter:p,reflect:!0})],T=[i({attribute:!1})],E=[i({attribute:`weekday-style`})],e(this,null,v,{kind:`setter`,name:`valueAsDate`,static:!1,private:!1,access:{has:e=>`valueAsDate`in e,set:(e,t)=>{e.valueAsDate=t}},metadata:t},null,_),e(this,null,y,{kind:`accessor`,name:`min`,static:!1,private:!1,access:{has:e=>`min`in e,get:e=>e.min,set:(e,t)=>{e.min=t}},metadata:t},b,x),e(this,null,S,{kind:`accessor`,name:`max`,static:!1,private:!1,access:{has:e=>`max`in e,get:e=>e.max,set:(e,t)=>{e.max=t}},metadata:t},C,w),e(this,null,T,{kind:`setter`,name:`dateFilter`,static:!1,private:!1,access:{has:e=>`dateFilter`in e,set:(e,t)=>{e.dateFilter=t}},metadata:t},null,_),e(this,null,E,{kind:`accessor`,name:`weekdayStyle`,static:!1,private:!1,access:{has:e=>`weekdayStyle`in e,get:e=>e.weekdayStyle,set:(e,t)=>{e.weekdayStyle=t}},metadata:t},D,O),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.elementName=`sbb-date-input`}static{this.styles=[r(h)]}set value(e){this._tryParseValue(e),!n&&!this.isSelected()&&this.valueAsDate!==null&&(e=this._formatDate()),super.value=e}get value(){return super.value??``}set valueAsDate(e){if(e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),!(this.isSelected()&&(e===null||this._dateAdapter.sameDate(e,this._dateAdapter.parse(this.value))))){if(!e)this._valueAsDate=null,this._valueCache=[``,null],this.value=``;else if(!this._dateAdapter.isDateInstance(this._valueAsDate)||this._dateAdapter.compareDate(this._valueAsDate,e)!==0){this._valueAsDate=this._dateAdapter.createDate(this._dateAdapter.getYear(e),this._dateAdapter.getMonth(e),this._dateAdapter.getDate(e));let t=this._formatDate();this._valueCache=[t,this._valueAsDate],this.value=t}}}get valueAsDate(){return this._valueAsDate?this._dateAdapter.clone(this._valueAsDate):null}#e;get min(){return this.#e}set min(e){this.#e=e}#t;get max(){return this.#t}set max(e){this.#t=e}set dateFilter(e){this._dateFilter=e}get dateFilter(){return this._dateFilter}#n;get weekdayStyle(){return this.#n}set weekdayStyle(e){this.#n=e}get datepicker(){return this.parentElement.querySelector(`sbb-datepicker`)}constructor(){super(),this._valueAsDate=t(this,_),this.#e=t(this,b,null),this.#t=(t(this,x),t(this,C,null)),this.#n=(t(this,w),t(this,D,`short`)),this._valueCache=t(this,O),this._dateAdapter=m().datetime?.dateAdapter??s,this._placeholderMutable=!1,this._dateFilter=()=>!0,this.addEventListener?.(`change`,()=>this._updateValueDateFormat(),{capture:!0})}static resolveAssociation(e){if(e.hasAttribute(`input`)||e.input)return;let t=e.closest(`sbb-form-field`)?.querySelector(`sbb-date-input`);t&&(e.input=t)}connectedCallback(){super.connectedCallback(),this.placeholder||=(this._placeholderMutable=!0,d[this.language.current]);for(let e of Array.from(this.closest(`sbb-form-field`)?.children??[]))customElements.upgrade?.(e),e.constructor.sbbDateInputAssociated&&!e.hasAttribute(`input`)&&!e.input&&(e.input=this)}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this.hasUpdated&&!e?(this._updateValueDateFormat(),this._placeholderMutable&&(this.placeholder=d[this.language.current])):e===`weekdayStyle`&&this._updateValueDateFormat(),this.isConnected&&this.dispatchEvent(new Event(`ɵchange`))}updateFormValue(){this._tryParseValue();let e=this.valueAsDate===null?null:this._dateAdapter.toIso8601(this.valueAsDate);this.internals.setFormValue(e,this.value)}_tryParseValue(e=this.value){this._valueCache?.[0]!==e&&(this._valueAsDate=this._dateAdapter.parse(e),this._valueCache=[e,this._valueAsDate])}_updateValueDateFormat(){if(this.valueAsDate){let e=this._formatDate();this.value!==e&&(super.value=e)}}_formatDate(){return this._dateAdapter.format(this.valueAsDate,{weekdayStyle:this.weekdayStyle})}shouldValidate(e){return super.shouldValidate(e)||[`valueAsDate`,`min`,`max`,`dateFilter`].includes(e)}validate(){super.validate(),this.value?this._dateAdapter.isValid(this.valueAsDate)?this._dateAdapter.isValid(this.min)&&this._dateAdapter.compareDate(this.min,this.valueAsDate)>0?this.setValidityFlag(`rangeUnderflow`,u(this._dateAdapter.format(this.min,{weekdayStyle:`none`}))[this.language.current]):this._dateAdapter.isValid(this.max)&&this._dateAdapter.compareDate(this.valueAsDate,this.max)>0?this.setValidityFlag(`rangeOverflow`,l(this._dateAdapter.format(this.max,{weekdayStyle:`none`}))[this.language.current]):this.dateFilter&&!this.dateFilter(this.valueAsDate)?this.setValidityFlag(`sbbDateFilter`,c[this.language.current]):this._removeValidityErrors():this.setValidityFlag(`badInput`,c[this.language.current]):this._removeValidityErrors()}_removeValidityErrors(){[`badInput`,`rangeUnderflow`,`rangeOverflow`,`sbbDateFilter`].forEach(e=>this.removeValidityFlag(e))}}})();export{g as SbbDateInputElement};
|
|
2
|
+
`;Object.assign(ValidityState.prototype,{get sbbDateFilter(){return!1}});let g=(()=>{let g=o(a),_=[],v,y,b=[],x=[],S,C=[],w=[],T,E,D=[],O=[];return class extends g{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;v=[i({attribute:!1})],y=[f(),i({converter:p,reflect:!0})],S=[f(),i({converter:p,reflect:!0})],T=[i({attribute:!1})],E=[i({attribute:`weekday-style`})],e(this,null,v,{kind:`setter`,name:`valueAsDate`,static:!1,private:!1,access:{has:e=>`valueAsDate`in e,set:(e,t)=>{e.valueAsDate=t}},metadata:t},null,_),e(this,null,y,{kind:`accessor`,name:`min`,static:!1,private:!1,access:{has:e=>`min`in e,get:e=>e.min,set:(e,t)=>{e.min=t}},metadata:t},b,x),e(this,null,S,{kind:`accessor`,name:`max`,static:!1,private:!1,access:{has:e=>`max`in e,get:e=>e.max,set:(e,t)=>{e.max=t}},metadata:t},C,w),e(this,null,T,{kind:`setter`,name:`dateFilter`,static:!1,private:!1,access:{has:e=>`dateFilter`in e,set:(e,t)=>{e.dateFilter=t}},metadata:t},null,_),e(this,null,E,{kind:`accessor`,name:`weekdayStyle`,static:!1,private:!1,access:{has:e=>`weekdayStyle`in e,get:e=>e.weekdayStyle,set:(e,t)=>{e.weekdayStyle=t}},metadata:t},D,O),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.elementName=`sbb-date-input`}static{this.styles=[r(h)]}set value(e){this._tryParseValue(e),!n&&!this.isSelected()&&this.valueAsDate!==null&&(e=this._formatDate()),super.value=e}get value(){return super.value??``}set valueAsDate(e){if(e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),!(this.isSelected()&&(e===null||this._dateAdapter.sameDate(e,this._dateAdapter.parse(this.value))))){if(!e)this._valueAsDate=null,this._valueCache=[``,null],this.value=``;else if(!this._dateAdapter.isDateInstance(this._valueAsDate)||this._dateAdapter.compareDate(this._valueAsDate,e)!==0){this._valueAsDate=this._dateAdapter.createDate(this._dateAdapter.getYear(e),this._dateAdapter.getMonth(e),this._dateAdapter.getDate(e));let t=this._formatDate();this._valueCache=[t,this._valueAsDate],this.value=t}}}get valueAsDate(){return this._valueAsDate?this._dateAdapter.clone(this._valueAsDate):null}#e;get min(){return this.#e}set min(e){this.#e=e}#t;get max(){return this.#t}set max(e){this.#t=e}set dateFilter(e){this._dateFilter=e}get dateFilter(){return this._dateFilter}#n;get weekdayStyle(){return this.#n}set weekdayStyle(e){this.#n=e}get datepicker(){return this.parentElement.querySelector(`sbb-datepicker`)}constructor(){super(),this._valueAsDate=t(this,_),this.#e=t(this,b,null),this.#t=(t(this,x),t(this,C,null)),this.#n=(t(this,w),t(this,D,`short`)),this._valueCache=t(this,O),this._dateAdapter=m().datetime?.dateAdapter??s,this._placeholderMutable=!1,this._dateFilter=()=>!0,this.addEventListener?.(`change`,()=>this._updateValueDateFormat(),{capture:!0})}static resolveAssociation(e){if(e.hasAttribute(`input`)||e.input)return;let t=e.closest(`sbb-form-field`)?.querySelector(`sbb-date-input`);t&&(e.input=t)}connectedCallback(){super.connectedCallback(),this.placeholder||=(this._placeholderMutable=!0,d[this.language.current]);for(let e of Array.from(this.closest(`sbb-form-field`)?.children??[]))customElements.upgrade?.(e),e.constructor.sbbDateInputAssociated&&!e.hasAttribute(`input`)&&!e.input&&(e.input=this)}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this.hasUpdated&&!e?(this._updateValueDateFormat(),this._placeholderMutable&&(this.placeholder=d[this.language.current])):e===`weekdayStyle`&&this._updateValueDateFormat(),this.isConnected&&this.dispatchEvent(new Event(`ɵchange`))}updateFormValue(){this._tryParseValue();let e=this.valueAsDate===null?null:this._dateAdapter.toIso8601(this.valueAsDate);this.internals.setFormValue(e,this.value)}_tryParseValue(e=this.value){this._valueCache?.[0]!==e&&(this._valueAsDate=this._dateAdapter.parse(e),this._valueCache=[e,this._valueAsDate])}_updateValueDateFormat(){if(this.valueAsDate){let e=this._formatDate();this.value!==e&&(super.value=e)}}_formatDate(){return this._dateAdapter.format(this.valueAsDate,{weekdayStyle:this.weekdayStyle})}shouldValidate(e){return super.shouldValidate(e)||[`valueAsDate`,`min`,`max`,`dateFilter`].includes(e)}validate(){super.validate(),this.value?this._dateAdapter.isValid(this.valueAsDate)?this._dateAdapter.isValid(this.min)&&this._dateAdapter.compareDate(this.min,this.valueAsDate)>0?(this._removeValidityErrors(`rangeUnderflow`),this.setValidityFlag(`rangeUnderflow`,u(this._dateAdapter.format(this.min,{weekdayStyle:`none`}))[this.language.current])):this._dateAdapter.isValid(this.max)&&this._dateAdapter.compareDate(this.valueAsDate,this.max)>0?(this._removeValidityErrors(`rangeOverflow`),this.setValidityFlag(`rangeOverflow`,l(this._dateAdapter.format(this.max,{weekdayStyle:`none`}))[this.language.current])):this.dateFilter&&!this.dateFilter(this.valueAsDate)?(this._removeValidityErrors(`sbbDateFilter`),this.setValidityFlag(`sbbDateFilter`,c[this.language.current])):this._removeValidityErrors():(this._removeValidityErrors(`badInput`),this.setValidityFlag(`badInput`,c[this.language.current])):this._removeValidityErrors()}_removeValidityErrors(e){[`badInput`,`rangeUnderflow`,`rangeOverflow`,`sbbDateFilter`].filter(t=>t!==e).forEach(e=>this.removeValidityFlag(e))}}})();export{g as SbbDateInputElement};
|
|
@@ -2,7 +2,7 @@ import { html, unsafeCSS } from "lit";
|
|
|
2
2
|
import { SbbElement } from "./core.js";
|
|
3
3
|
|
|
4
4
|
//#region src/elements/action-group/action-group.scss?inline
|
|
5
|
-
var action_group_default = ":host {\n display: flex;\n align-items: center;\n justify-content: start;\n gap: var(--sbb-action-group-gap);\n}\n\n:host(.sbb-orientation-vertical-full-width) {\n flex-direction: column;\n align-items: stretch;\n}\n\n:host(:where(.sbb-orientation-vertical,\n.sbb-orientation-horizontal-from-small,\n.sbb-orientation-horizontal-from-large,\n.sbb-orientation-horizontal-from-ultra)) {\n align-items: start;\n}\n\n@media (min-width: calc(37.5rem)) {\n :host(.sbb-orientation-horizontal-from-small) {\n align-items: center;\n }\n}\n\n@media (min-width: calc(64rem)) {\n :host(.sbb-orientation-horizontal-from-large) {\n align-items: center;\n }\n}\n\n@media (min-width: calc(90rem)) {\n :host(.sbb-orientation-horizontal-from-ultra) {\n align-items: center;\n }\n}\n";
|
|
5
|
+
var action_group_default = ":host {\n display: flex;\n align-items: center;\n justify-content: start;\n gap: var(--sbb-action-group-gap);\n flex-wrap: wrap;\n}\n\n:host(.sbb-orientation-vertical-full-width) {\n flex-direction: column;\n align-items: stretch;\n}\n\n:host(:where(.sbb-orientation-vertical,\n.sbb-orientation-horizontal-from-small,\n.sbb-orientation-horizontal-from-large,\n.sbb-orientation-horizontal-from-ultra)) {\n align-items: start;\n}\n\n@media (min-width: calc(37.5rem)) {\n :host(.sbb-orientation-horizontal-from-small) {\n align-items: center;\n }\n}\n\n@media (min-width: calc(64rem)) {\n :host(.sbb-orientation-horizontal-from-large) {\n align-items: center;\n }\n}\n\n@media (min-width: calc(90rem)) {\n :host(.sbb-orientation-horizontal-from-ultra) {\n align-items: center;\n }\n}\n";
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/elements/action-group/action-group.component.ts
|
|
@@ -369,20 +369,20 @@ let SbbAlertElement = (() => {
|
|
|
369
369
|
</p>
|
|
370
370
|
</span>
|
|
371
371
|
${!this.readOnly ? html`<span class="sbb-alert__close-button-wrapper">
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
372
|
+
<sbb-divider
|
|
373
|
+
orientation="vertical"
|
|
374
|
+
?negative=${this._isLightMode()}
|
|
375
|
+
class="sbb-alert__close-button-divider"
|
|
376
|
+
></sbb-divider>
|
|
377
|
+
<sbb-transparent-button
|
|
378
|
+
?negative=${this._isLightMode()}
|
|
379
|
+
size=${this.size === "l" ? "m" : this.size || nothing}
|
|
380
|
+
icon-name="cross-small"
|
|
381
|
+
@click=${() => this.close()}
|
|
382
|
+
aria-label=${i18nCloseAlert[this._language.current]}
|
|
383
|
+
class="sbb-alert__close-button"
|
|
384
|
+
></sbb-transparent-button>
|
|
385
|
+
</span>` : nothing}
|
|
386
386
|
</div>
|
|
387
387
|
</div>
|
|
388
388
|
`;
|
|
@@ -178,9 +178,9 @@ let SbbBreadcrumbGroupElement = (() => {
|
|
|
178
178
|
<li class="sbb-breadcrumb-group__item">
|
|
179
179
|
<slot name=${slot.name}></slot>
|
|
180
180
|
${index !== array.length - 1 ? html`<sbb-icon
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
name="chevron-small-right-small"
|
|
182
|
+
class="sbb-breadcrumb-group__divider-icon"
|
|
183
|
+
></sbb-icon>` : nothing}
|
|
184
184
|
</li>
|
|
185
185
|
`);
|
|
186
186
|
}
|