@sbb-esta/lyne-elements-experimental-dev 4.13.0-dev.1780925802 → 4.13.0-dev.1780984186
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/custom-elements.json +320 -320
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -498,6 +498,52 @@
|
|
|
498
498
|
}
|
|
499
499
|
]
|
|
500
500
|
},
|
|
501
|
+
{
|
|
502
|
+
"kind": "javascript-module",
|
|
503
|
+
"path": "core/datetime.js",
|
|
504
|
+
"declarations": [],
|
|
505
|
+
"exports": [
|
|
506
|
+
{
|
|
507
|
+
"kind": "js",
|
|
508
|
+
"name": "*",
|
|
509
|
+
"declaration": {
|
|
510
|
+
"name": "*",
|
|
511
|
+
"module": "core/datetime/date-helper.js"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"kind": "javascript-module",
|
|
518
|
+
"path": "core/timetable.js",
|
|
519
|
+
"declarations": [],
|
|
520
|
+
"exports": [
|
|
521
|
+
{
|
|
522
|
+
"kind": "js",
|
|
523
|
+
"name": "*",
|
|
524
|
+
"declaration": {
|
|
525
|
+
"name": "*",
|
|
526
|
+
"module": "core/timetable/access-leg-helper.js"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"kind": "js",
|
|
531
|
+
"name": "*",
|
|
532
|
+
"declaration": {
|
|
533
|
+
"name": "*",
|
|
534
|
+
"module": "core/timetable/timetable-helper.js"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"kind": "js",
|
|
539
|
+
"name": "*",
|
|
540
|
+
"declaration": {
|
|
541
|
+
"name": "*",
|
|
542
|
+
"module": "core/timetable/timetable-properties.js"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
},
|
|
501
547
|
{
|
|
502
548
|
"kind": "javascript-module",
|
|
503
549
|
"path": "journey-summary/journey-summary.component.js",
|
|
@@ -772,58 +818,12 @@
|
|
|
772
818
|
},
|
|
773
819
|
{
|
|
774
820
|
"kind": "javascript-module",
|
|
775
|
-
"path": "
|
|
776
|
-
"declarations": [],
|
|
777
|
-
"exports": [
|
|
778
|
-
{
|
|
779
|
-
"kind": "js",
|
|
780
|
-
"name": "*",
|
|
781
|
-
"declaration": {
|
|
782
|
-
"name": "*",
|
|
783
|
-
"module": "core/datetime/date-helper.js"
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
]
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"kind": "javascript-module",
|
|
790
|
-
"path": "core/timetable.js",
|
|
791
|
-
"declarations": [],
|
|
792
|
-
"exports": [
|
|
793
|
-
{
|
|
794
|
-
"kind": "js",
|
|
795
|
-
"name": "*",
|
|
796
|
-
"declaration": {
|
|
797
|
-
"name": "*",
|
|
798
|
-
"module": "core/timetable/access-leg-helper.js"
|
|
799
|
-
}
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
"kind": "js",
|
|
803
|
-
"name": "*",
|
|
804
|
-
"declaration": {
|
|
805
|
-
"name": "*",
|
|
806
|
-
"module": "core/timetable/timetable-helper.js"
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
"kind": "js",
|
|
811
|
-
"name": "*",
|
|
812
|
-
"declaration": {
|
|
813
|
-
"name": "*",
|
|
814
|
-
"module": "core/timetable/timetable-properties.js"
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
]
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
"kind": "javascript-module",
|
|
821
|
-
"path": "pearl-chain-time/pearl-chain-time.component.js",
|
|
821
|
+
"path": "pearl-chain/pearl-chain.component.js",
|
|
822
822
|
"declarations": [
|
|
823
823
|
{
|
|
824
824
|
"kind": "class",
|
|
825
|
-
"description": "
|
|
826
|
-
"name": "
|
|
825
|
+
"description": "It visually displays journey information.",
|
|
826
|
+
"name": "SbbPearlChainElement",
|
|
827
827
|
"members": [
|
|
828
828
|
{
|
|
829
829
|
"kind": "field",
|
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
"privacy": "public",
|
|
835
835
|
"static": true,
|
|
836
836
|
"readonly": true,
|
|
837
|
-
"default": "'sbb-pearl-chain
|
|
837
|
+
"default": "'sbb-pearl-chain'"
|
|
838
838
|
},
|
|
839
839
|
{
|
|
840
840
|
"kind": "field",
|
|
@@ -844,53 +844,9 @@
|
|
|
844
844
|
},
|
|
845
845
|
"privacy": "public",
|
|
846
846
|
"default": "[]",
|
|
847
|
-
"description": "
|
|
847
|
+
"description": "Define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
|
|
848
848
|
"attribute": "legs"
|
|
849
849
|
},
|
|
850
|
-
{
|
|
851
|
-
"kind": "field",
|
|
852
|
-
"name": "departureTime",
|
|
853
|
-
"type": {
|
|
854
|
-
"text": "string"
|
|
855
|
-
},
|
|
856
|
-
"privacy": "public",
|
|
857
|
-
"default": "''",
|
|
858
|
-
"description": "Prop to render the departure time - will be formatted as \"H:mm\"",
|
|
859
|
-
"attribute": "departure-time"
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
"kind": "field",
|
|
863
|
-
"name": "arrivalTime",
|
|
864
|
-
"type": {
|
|
865
|
-
"text": "string"
|
|
866
|
-
},
|
|
867
|
-
"privacy": "public",
|
|
868
|
-
"default": "''",
|
|
869
|
-
"description": "Prop to render the arrival time - will be formatted as \"H:mm\"",
|
|
870
|
-
"attribute": "arrival-time"
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
"kind": "field",
|
|
874
|
-
"name": "departureWalk",
|
|
875
|
-
"type": {
|
|
876
|
-
"text": "number"
|
|
877
|
-
},
|
|
878
|
-
"privacy": "public",
|
|
879
|
-
"default": "NaN",
|
|
880
|
-
"description": "Optional prop to render the walk time (in minutes) before departure",
|
|
881
|
-
"attribute": "departure-walk"
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"kind": "field",
|
|
885
|
-
"name": "arrivalWalk",
|
|
886
|
-
"type": {
|
|
887
|
-
"text": "number"
|
|
888
|
-
},
|
|
889
|
-
"privacy": "public",
|
|
890
|
-
"default": "NaN",
|
|
891
|
-
"description": "Optional prop to render the walk time (in minutes) after arrival",
|
|
892
|
-
"attribute": "arrival-walk"
|
|
893
|
-
},
|
|
894
850
|
{
|
|
895
851
|
"kind": "field",
|
|
896
852
|
"name": "disableAnimation",
|
|
@@ -902,24 +858,13 @@
|
|
|
902
858
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
903
859
|
"attribute": "disable-animation"
|
|
904
860
|
},
|
|
905
|
-
{
|
|
906
|
-
"kind": "field",
|
|
907
|
-
"name": "a11yFootpath",
|
|
908
|
-
"type": {
|
|
909
|
-
"text": "boolean"
|
|
910
|
-
},
|
|
911
|
-
"privacy": "public",
|
|
912
|
-
"default": "false",
|
|
913
|
-
"description": "Optional prop to render wheelchair-small instead of walk-small",
|
|
914
|
-
"attribute": "a11y-footpath"
|
|
915
|
-
},
|
|
916
861
|
{
|
|
917
862
|
"kind": "field",
|
|
918
863
|
"name": "now",
|
|
919
864
|
"privacy": "public",
|
|
920
865
|
"description": "A configured date which acts as the current date instead of the real current date.\nOnly recommended for testing purposes.",
|
|
921
866
|
"type": {
|
|
922
|
-
"text": "Date"
|
|
867
|
+
"text": "Date | null"
|
|
923
868
|
},
|
|
924
869
|
"attribute": "now",
|
|
925
870
|
"default": "null"
|
|
@@ -934,81 +879,186 @@
|
|
|
934
879
|
"default": "null"
|
|
935
880
|
},
|
|
936
881
|
{
|
|
937
|
-
"kind": "
|
|
938
|
-
"name": "
|
|
882
|
+
"kind": "method",
|
|
883
|
+
"name": "_getAllDuration",
|
|
939
884
|
"privacy": "private",
|
|
940
|
-
"
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
{
|
|
945
|
-
"name": "legs",
|
|
946
|
-
"type": {
|
|
947
|
-
"text": "(Leg | PtRideLeg)[]"
|
|
948
|
-
},
|
|
949
|
-
"default": "[]",
|
|
950
|
-
"description": "define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
|
|
951
|
-
"fieldName": "legs"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"name": "departure-time",
|
|
955
|
-
"type": {
|
|
956
|
-
"text": "string"
|
|
885
|
+
"return": {
|
|
886
|
+
"type": {
|
|
887
|
+
"text": "number"
|
|
888
|
+
}
|
|
957
889
|
},
|
|
958
|
-
"
|
|
959
|
-
|
|
960
|
-
|
|
890
|
+
"parameters": [
|
|
891
|
+
{
|
|
892
|
+
"name": "legs",
|
|
893
|
+
"type": {
|
|
894
|
+
"text": "PtRideLeg[]"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
]
|
|
961
898
|
},
|
|
962
899
|
{
|
|
963
|
-
"
|
|
964
|
-
"
|
|
965
|
-
|
|
900
|
+
"kind": "method",
|
|
901
|
+
"name": "_isAllCancelled",
|
|
902
|
+
"privacy": "private",
|
|
903
|
+
"return": {
|
|
904
|
+
"type": {
|
|
905
|
+
"text": "boolean"
|
|
906
|
+
}
|
|
966
907
|
},
|
|
967
|
-
"
|
|
968
|
-
|
|
969
|
-
|
|
908
|
+
"parameters": [
|
|
909
|
+
{
|
|
910
|
+
"name": "legs",
|
|
911
|
+
"type": {
|
|
912
|
+
"text": "PtRideLeg[]"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
]
|
|
970
916
|
},
|
|
971
917
|
{
|
|
972
|
-
"
|
|
973
|
-
"
|
|
974
|
-
|
|
918
|
+
"kind": "method",
|
|
919
|
+
"name": "_getRelativeDuration",
|
|
920
|
+
"privacy": "private",
|
|
921
|
+
"return": {
|
|
922
|
+
"type": {
|
|
923
|
+
"text": "number"
|
|
924
|
+
}
|
|
975
925
|
},
|
|
976
|
-
"
|
|
977
|
-
|
|
978
|
-
|
|
926
|
+
"parameters": [
|
|
927
|
+
{
|
|
928
|
+
"name": "legs",
|
|
929
|
+
"type": {
|
|
930
|
+
"text": "PtRideLeg[]"
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "leg",
|
|
935
|
+
"type": {
|
|
936
|
+
"text": "PtRideLeg"
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
]
|
|
979
940
|
},
|
|
980
941
|
{
|
|
981
|
-
"
|
|
982
|
-
"
|
|
983
|
-
|
|
942
|
+
"kind": "method",
|
|
943
|
+
"name": "_getProgress",
|
|
944
|
+
"privacy": "private",
|
|
945
|
+
"return": {
|
|
946
|
+
"type": {
|
|
947
|
+
"text": "number"
|
|
948
|
+
}
|
|
984
949
|
},
|
|
985
|
-
"
|
|
986
|
-
|
|
987
|
-
|
|
950
|
+
"parameters": [
|
|
951
|
+
{
|
|
952
|
+
"name": "now",
|
|
953
|
+
"type": {
|
|
954
|
+
"text": "Date"
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"name": "start",
|
|
959
|
+
"optional": true,
|
|
960
|
+
"type": {
|
|
961
|
+
"text": "Time"
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "end",
|
|
966
|
+
"optional": true,
|
|
967
|
+
"type": {
|
|
968
|
+
"text": "Time"
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
]
|
|
988
972
|
},
|
|
989
973
|
{
|
|
990
|
-
"
|
|
974
|
+
"kind": "method",
|
|
975
|
+
"name": "_getStatus",
|
|
976
|
+
"privacy": "private",
|
|
977
|
+
"return": {
|
|
978
|
+
"type": {
|
|
979
|
+
"text": "Status"
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"parameters": [
|
|
983
|
+
{
|
|
984
|
+
"name": "now",
|
|
985
|
+
"type": {
|
|
986
|
+
"text": "Date"
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "start",
|
|
991
|
+
"optional": true,
|
|
992
|
+
"type": {
|
|
993
|
+
"text": "Time"
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "end",
|
|
998
|
+
"optional": true,
|
|
999
|
+
"type": {
|
|
1000
|
+
"text": "Time"
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
]
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"kind": "method",
|
|
1007
|
+
"name": "_renderPosition",
|
|
1008
|
+
"privacy": "private",
|
|
1009
|
+
"return": {
|
|
1010
|
+
"type": {
|
|
1011
|
+
"text": "TemplateResult | undefined"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"parameters": [
|
|
1015
|
+
{
|
|
1016
|
+
"name": "now",
|
|
1017
|
+
"type": {
|
|
1018
|
+
"text": "Date"
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"name": "start",
|
|
1023
|
+
"optional": true,
|
|
1024
|
+
"type": {
|
|
1025
|
+
"text": "Time"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "end",
|
|
1030
|
+
"optional": true,
|
|
1031
|
+
"type": {
|
|
1032
|
+
"text": "Time"
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
]
|
|
1036
|
+
}
|
|
1037
|
+
],
|
|
1038
|
+
"attributes": [
|
|
1039
|
+
{
|
|
1040
|
+
"name": "legs",
|
|
991
1041
|
"type": {
|
|
992
|
-
"text": "
|
|
1042
|
+
"text": "(Leg | PtRideLeg)[]"
|
|
993
1043
|
},
|
|
994
|
-
"default": "
|
|
995
|
-
"description": "
|
|
996
|
-
"fieldName": "
|
|
1044
|
+
"default": "[]",
|
|
1045
|
+
"description": "Define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
|
|
1046
|
+
"fieldName": "legs"
|
|
997
1047
|
},
|
|
998
1048
|
{
|
|
999
|
-
"name": "
|
|
1049
|
+
"name": "disable-animation",
|
|
1000
1050
|
"type": {
|
|
1001
1051
|
"text": "boolean"
|
|
1002
1052
|
},
|
|
1003
1053
|
"default": "false",
|
|
1004
|
-
"description": "
|
|
1005
|
-
"fieldName": "
|
|
1054
|
+
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
1055
|
+
"fieldName": "disableAnimation"
|
|
1006
1056
|
},
|
|
1007
1057
|
{
|
|
1008
1058
|
"name": "now",
|
|
1009
1059
|
"description": "A configured date which acts as the current date instead of the real current date.\nOnly recommended for testing purposes.",
|
|
1010
1060
|
"type": {
|
|
1011
|
-
"text": "Date"
|
|
1061
|
+
"text": "Date | null"
|
|
1012
1062
|
},
|
|
1013
1063
|
"fieldName": "now"
|
|
1014
1064
|
}
|
|
@@ -1017,29 +1067,29 @@
|
|
|
1017
1067
|
"name": "SbbElement",
|
|
1018
1068
|
"package": "@sbb-esta/lyne-elements/core/base-elements.js"
|
|
1019
1069
|
},
|
|
1020
|
-
"tagName": "sbb-pearl-chain
|
|
1070
|
+
"tagName": "sbb-pearl-chain",
|
|
1021
1071
|
"customElement": true
|
|
1022
1072
|
}
|
|
1023
1073
|
],
|
|
1024
1074
|
"exports": [
|
|
1025
1075
|
{
|
|
1026
1076
|
"kind": "js",
|
|
1027
|
-
"name": "
|
|
1077
|
+
"name": "SbbPearlChainElement",
|
|
1028
1078
|
"declaration": {
|
|
1029
|
-
"name": "
|
|
1030
|
-
"module": "pearl-chain
|
|
1079
|
+
"name": "SbbPearlChainElement",
|
|
1080
|
+
"module": "pearl-chain/pearl-chain.component.js"
|
|
1031
1081
|
}
|
|
1032
1082
|
}
|
|
1033
1083
|
]
|
|
1034
1084
|
},
|
|
1035
1085
|
{
|
|
1036
1086
|
"kind": "javascript-module",
|
|
1037
|
-
"path": "pearl-chain/pearl-chain.component.js",
|
|
1087
|
+
"path": "pearl-chain-time/pearl-chain-time.component.js",
|
|
1038
1088
|
"declarations": [
|
|
1039
1089
|
{
|
|
1040
1090
|
"kind": "class",
|
|
1041
|
-
"description": "
|
|
1042
|
-
"name": "
|
|
1091
|
+
"description": "Combined with `sbb-pearl-chain`, it displays walk time information.",
|
|
1092
|
+
"name": "SbbPearlChainTimeElement",
|
|
1043
1093
|
"members": [
|
|
1044
1094
|
{
|
|
1045
1095
|
"kind": "field",
|
|
@@ -1050,7 +1100,7 @@
|
|
|
1050
1100
|
"privacy": "public",
|
|
1051
1101
|
"static": true,
|
|
1052
1102
|
"readonly": true,
|
|
1053
|
-
"default": "'sbb-pearl-chain'"
|
|
1103
|
+
"default": "'sbb-pearl-chain-time'"
|
|
1054
1104
|
},
|
|
1055
1105
|
{
|
|
1056
1106
|
"kind": "field",
|
|
@@ -1060,9 +1110,53 @@
|
|
|
1060
1110
|
},
|
|
1061
1111
|
"privacy": "public",
|
|
1062
1112
|
"default": "[]",
|
|
1063
|
-
"description": "
|
|
1113
|
+
"description": "define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
|
|
1064
1114
|
"attribute": "legs"
|
|
1065
1115
|
},
|
|
1116
|
+
{
|
|
1117
|
+
"kind": "field",
|
|
1118
|
+
"name": "departureTime",
|
|
1119
|
+
"type": {
|
|
1120
|
+
"text": "string"
|
|
1121
|
+
},
|
|
1122
|
+
"privacy": "public",
|
|
1123
|
+
"default": "''",
|
|
1124
|
+
"description": "Prop to render the departure time - will be formatted as \"H:mm\"",
|
|
1125
|
+
"attribute": "departure-time"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"kind": "field",
|
|
1129
|
+
"name": "arrivalTime",
|
|
1130
|
+
"type": {
|
|
1131
|
+
"text": "string"
|
|
1132
|
+
},
|
|
1133
|
+
"privacy": "public",
|
|
1134
|
+
"default": "''",
|
|
1135
|
+
"description": "Prop to render the arrival time - will be formatted as \"H:mm\"",
|
|
1136
|
+
"attribute": "arrival-time"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"kind": "field",
|
|
1140
|
+
"name": "departureWalk",
|
|
1141
|
+
"type": {
|
|
1142
|
+
"text": "number"
|
|
1143
|
+
},
|
|
1144
|
+
"privacy": "public",
|
|
1145
|
+
"default": "NaN",
|
|
1146
|
+
"description": "Optional prop to render the walk time (in minutes) before departure",
|
|
1147
|
+
"attribute": "departure-walk"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"kind": "field",
|
|
1151
|
+
"name": "arrivalWalk",
|
|
1152
|
+
"type": {
|
|
1153
|
+
"text": "number"
|
|
1154
|
+
},
|
|
1155
|
+
"privacy": "public",
|
|
1156
|
+
"default": "NaN",
|
|
1157
|
+
"description": "Optional prop to render the walk time (in minutes) after arrival",
|
|
1158
|
+
"attribute": "arrival-walk"
|
|
1159
|
+
},
|
|
1066
1160
|
{
|
|
1067
1161
|
"kind": "field",
|
|
1068
1162
|
"name": "disableAnimation",
|
|
@@ -1074,13 +1168,24 @@
|
|
|
1074
1168
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
1075
1169
|
"attribute": "disable-animation"
|
|
1076
1170
|
},
|
|
1171
|
+
{
|
|
1172
|
+
"kind": "field",
|
|
1173
|
+
"name": "a11yFootpath",
|
|
1174
|
+
"type": {
|
|
1175
|
+
"text": "boolean"
|
|
1176
|
+
},
|
|
1177
|
+
"privacy": "public",
|
|
1178
|
+
"default": "false",
|
|
1179
|
+
"description": "Optional prop to render wheelchair-small instead of walk-small",
|
|
1180
|
+
"attribute": "a11y-footpath"
|
|
1181
|
+
},
|
|
1077
1182
|
{
|
|
1078
1183
|
"kind": "field",
|
|
1079
1184
|
"name": "now",
|
|
1080
1185
|
"privacy": "public",
|
|
1081
1186
|
"description": "A configured date which acts as the current date instead of the real current date.\nOnly recommended for testing purposes.",
|
|
1082
1187
|
"type": {
|
|
1083
|
-
"text": "Date
|
|
1188
|
+
"text": "Date"
|
|
1084
1189
|
},
|
|
1085
1190
|
"attribute": "now",
|
|
1086
1191
|
"default": "null"
|
|
@@ -1095,171 +1200,57 @@
|
|
|
1095
1200
|
"default": "null"
|
|
1096
1201
|
},
|
|
1097
1202
|
{
|
|
1098
|
-
"kind": "
|
|
1099
|
-
"name": "
|
|
1203
|
+
"kind": "field",
|
|
1204
|
+
"name": "_language",
|
|
1100
1205
|
"privacy": "private",
|
|
1101
|
-
"
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
},
|
|
1106
|
-
"parameters": [
|
|
1107
|
-
{
|
|
1108
|
-
"name": "legs",
|
|
1109
|
-
"type": {
|
|
1110
|
-
"text": "PtRideLeg[]"
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
]
|
|
1114
|
-
},
|
|
1206
|
+
"default": "new SbbLanguageController(this)"
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"attributes": [
|
|
1115
1210
|
{
|
|
1116
|
-
"
|
|
1117
|
-
"
|
|
1118
|
-
|
|
1119
|
-
"return": {
|
|
1120
|
-
"type": {
|
|
1121
|
-
"text": "boolean"
|
|
1122
|
-
}
|
|
1211
|
+
"name": "legs",
|
|
1212
|
+
"type": {
|
|
1213
|
+
"text": "(Leg | PtRideLeg)[]"
|
|
1123
1214
|
},
|
|
1124
|
-
"
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
"type": {
|
|
1128
|
-
"text": "PtRideLeg[]"
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
]
|
|
1215
|
+
"default": "[]",
|
|
1216
|
+
"description": "define the legs of the pearl-chain.\nFormat:\n`{\"legs\": [{\"duration\": 25}, ...]}`\n`duration` in minutes. Duration of the leg is relative\nto the total travel time. Example: departure 16:30, change at 16:40,\narrival at 17:00. So the change should have a duration of 33.33%.",
|
|
1217
|
+
"fieldName": "legs"
|
|
1132
1218
|
},
|
|
1133
1219
|
{
|
|
1134
|
-
"
|
|
1135
|
-
"
|
|
1136
|
-
|
|
1137
|
-
"return": {
|
|
1138
|
-
"type": {
|
|
1139
|
-
"text": "number"
|
|
1140
|
-
}
|
|
1220
|
+
"name": "departure-time",
|
|
1221
|
+
"type": {
|
|
1222
|
+
"text": "string"
|
|
1141
1223
|
},
|
|
1142
|
-
"
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
"type": {
|
|
1146
|
-
"text": "PtRideLeg[]"
|
|
1147
|
-
}
|
|
1148
|
-
},
|
|
1149
|
-
{
|
|
1150
|
-
"name": "leg",
|
|
1151
|
-
"type": {
|
|
1152
|
-
"text": "PtRideLeg"
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
]
|
|
1224
|
+
"default": "''",
|
|
1225
|
+
"description": "Prop to render the departure time - will be formatted as \"H:mm\"",
|
|
1226
|
+
"fieldName": "departureTime"
|
|
1156
1227
|
},
|
|
1157
1228
|
{
|
|
1158
|
-
"
|
|
1159
|
-
"
|
|
1160
|
-
|
|
1161
|
-
"return": {
|
|
1162
|
-
"type": {
|
|
1163
|
-
"text": "number"
|
|
1164
|
-
}
|
|
1229
|
+
"name": "arrival-time",
|
|
1230
|
+
"type": {
|
|
1231
|
+
"text": "string"
|
|
1165
1232
|
},
|
|
1166
|
-
"
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
"type": {
|
|
1170
|
-
"text": "Date"
|
|
1171
|
-
}
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
"name": "start",
|
|
1175
|
-
"optional": true,
|
|
1176
|
-
"type": {
|
|
1177
|
-
"text": "Time"
|
|
1178
|
-
}
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
"name": "end",
|
|
1182
|
-
"optional": true,
|
|
1183
|
-
"type": {
|
|
1184
|
-
"text": "Time"
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
]
|
|
1233
|
+
"default": "''",
|
|
1234
|
+
"description": "Prop to render the arrival time - will be formatted as \"H:mm\"",
|
|
1235
|
+
"fieldName": "arrivalTime"
|
|
1188
1236
|
},
|
|
1189
1237
|
{
|
|
1190
|
-
"
|
|
1191
|
-
"
|
|
1192
|
-
|
|
1193
|
-
"return": {
|
|
1194
|
-
"type": {
|
|
1195
|
-
"text": "Status"
|
|
1196
|
-
}
|
|
1238
|
+
"name": "departure-walk",
|
|
1239
|
+
"type": {
|
|
1240
|
+
"text": "number"
|
|
1197
1241
|
},
|
|
1198
|
-
"
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
"type": {
|
|
1202
|
-
"text": "Date"
|
|
1203
|
-
}
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
"name": "start",
|
|
1207
|
-
"optional": true,
|
|
1208
|
-
"type": {
|
|
1209
|
-
"text": "Time"
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
"name": "end",
|
|
1214
|
-
"optional": true,
|
|
1215
|
-
"type": {
|
|
1216
|
-
"text": "Time"
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
]
|
|
1242
|
+
"default": "NaN",
|
|
1243
|
+
"description": "Optional prop to render the walk time (in minutes) before departure",
|
|
1244
|
+
"fieldName": "departureWalk"
|
|
1220
1245
|
},
|
|
1221
1246
|
{
|
|
1222
|
-
"
|
|
1223
|
-
"name": "_renderPosition",
|
|
1224
|
-
"privacy": "private",
|
|
1225
|
-
"return": {
|
|
1226
|
-
"type": {
|
|
1227
|
-
"text": "TemplateResult | undefined"
|
|
1228
|
-
}
|
|
1229
|
-
},
|
|
1230
|
-
"parameters": [
|
|
1231
|
-
{
|
|
1232
|
-
"name": "now",
|
|
1233
|
-
"type": {
|
|
1234
|
-
"text": "Date"
|
|
1235
|
-
}
|
|
1236
|
-
},
|
|
1237
|
-
{
|
|
1238
|
-
"name": "start",
|
|
1239
|
-
"optional": true,
|
|
1240
|
-
"type": {
|
|
1241
|
-
"text": "Time"
|
|
1242
|
-
}
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
"name": "end",
|
|
1246
|
-
"optional": true,
|
|
1247
|
-
"type": {
|
|
1248
|
-
"text": "Time"
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
]
|
|
1252
|
-
}
|
|
1253
|
-
],
|
|
1254
|
-
"attributes": [
|
|
1255
|
-
{
|
|
1256
|
-
"name": "legs",
|
|
1247
|
+
"name": "arrival-walk",
|
|
1257
1248
|
"type": {
|
|
1258
|
-
"text": "
|
|
1249
|
+
"text": "number"
|
|
1259
1250
|
},
|
|
1260
|
-
"default": "
|
|
1261
|
-
"description": "
|
|
1262
|
-
"fieldName": "
|
|
1251
|
+
"default": "NaN",
|
|
1252
|
+
"description": "Optional prop to render the walk time (in minutes) after arrival",
|
|
1253
|
+
"fieldName": "arrivalWalk"
|
|
1263
1254
|
},
|
|
1264
1255
|
{
|
|
1265
1256
|
"name": "disable-animation",
|
|
@@ -1270,11 +1261,20 @@
|
|
|
1270
1261
|
"description": "Per default, the current location has a pulsating animation. You can\ndisable the animation with this property.",
|
|
1271
1262
|
"fieldName": "disableAnimation"
|
|
1272
1263
|
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "a11y-footpath",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "boolean"
|
|
1268
|
+
},
|
|
1269
|
+
"default": "false",
|
|
1270
|
+
"description": "Optional prop to render wheelchair-small instead of walk-small",
|
|
1271
|
+
"fieldName": "a11yFootpath"
|
|
1272
|
+
},
|
|
1273
1273
|
{
|
|
1274
1274
|
"name": "now",
|
|
1275
1275
|
"description": "A configured date which acts as the current date instead of the real current date.\nOnly recommended for testing purposes.",
|
|
1276
1276
|
"type": {
|
|
1277
|
-
"text": "Date
|
|
1277
|
+
"text": "Date"
|
|
1278
1278
|
},
|
|
1279
1279
|
"fieldName": "now"
|
|
1280
1280
|
}
|
|
@@ -1283,17 +1283,17 @@
|
|
|
1283
1283
|
"name": "SbbElement",
|
|
1284
1284
|
"package": "@sbb-esta/lyne-elements/core/base-elements.js"
|
|
1285
1285
|
},
|
|
1286
|
-
"tagName": "sbb-pearl-chain",
|
|
1286
|
+
"tagName": "sbb-pearl-chain-time",
|
|
1287
1287
|
"customElement": true
|
|
1288
1288
|
}
|
|
1289
1289
|
],
|
|
1290
1290
|
"exports": [
|
|
1291
1291
|
{
|
|
1292
1292
|
"kind": "js",
|
|
1293
|
-
"name": "
|
|
1293
|
+
"name": "SbbPearlChainTimeElement",
|
|
1294
1294
|
"declaration": {
|
|
1295
|
-
"name": "
|
|
1296
|
-
"module": "pearl-chain/pearl-chain.component.js"
|
|
1295
|
+
"name": "SbbPearlChainTimeElement",
|
|
1296
|
+
"module": "pearl-chain-time/pearl-chain-time.component.js"
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
]
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-experimental-dev",
|
|
3
|
-
"version": "4.13.0-dev.
|
|
3
|
+
"version": "4.13.0-dev.1780984186",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
7
7
|
"web components",
|
|
8
8
|
"lit",
|
|
9
9
|
"storybook",
|
|
10
|
-
"https://github.com/sbb-design-systems/lyne-components/commit/
|
|
10
|
+
"https://github.com/sbb-design-systems/lyne-components/commit/e7f0b27e8ddfe2e444db3f96e734e9e34e71c1f9"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|