@aurodesignsystem-dev/auro-flightline 0.0.0-pr139.0 → 0.0.0-pr141.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/README.md +37 -51
- package/demo/api.md +232 -232
- package/demo/api.min.js +448 -1
- package/demo/index.md +18 -32
- package/demo/index.min.js +448 -1
- package/demo/readme.md +123 -0
- package/dist/auro-flightline-fhfUfH7l.js +27 -0
- package/dist/index.d.ts +356 -33
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +7 -7
- package/demo/auro-flightline.min.js +0 -432
- package/dist/auro-flightline-Ua1BdkHT.js +0 -27
package/demo/api.md
CHANGED
|
@@ -3,384 +3,384 @@
|
|
|
3
3
|
|
|
4
4
|
# auro-flight-segment
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
| [canceled](#canceled) | `canceled` | `Boolean` | false | Whether the segment is canceled. The line leading to the segment will be red. |
|
|
17
|
-
| [destinationCanceled](#destinationCanceled) | `destinationCanceled` | `Boolean` | false | Whether the following segment is canceled, will only affect the last segment in a flightline. The line after the segment will be red. |
|
|
18
|
-
| [duration](#duration) | `duration` | `String` | | Indicates time duration of a stop |
|
|
19
|
-
| [iata](#iata) | `iata` | `String` | | Text to display, typically a station code (SEA, PVD, AVP) |
|
|
20
|
-
| [nextDay](#nextDay) | `nextDay` | `Boolean` | | Indicates time is on the following calendar day. |
|
|
21
|
-
| [stopover](#stopover) | `stopover` | `Boolean` | false | Indicates a stopover. Do not provide duration. |
|
|
6
|
+
Marks one stop on a flight as a layover or a stopover.
|
|
7
|
+
|
|
8
|
+
**Key capabilities**
|
|
9
|
+
- **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show it.
|
|
10
|
+
- **Stopover**: A stop with no duration, shown as an outlined marker. Set `stopover` to turn it on.
|
|
11
|
+
- **Cancellation**: `canceled` and `destinationCanceled` show the lines around the segment as canceled.
|
|
12
|
+
|
|
13
|
+
**Example**
|
|
14
|
+
<pre class="language-html"><code class="language-html"><auro-flight-segment iata="ORD" duration="3h 40m"></auro-flight-segment></code></pre>
|
|
15
|
+
Read about [the difference between a layover and a stopover](https://www.turkishairlines.com/en-int/any-questions/what-is-the-difference-between-a-layover-and-a-stopover/).
|
|
22
16
|
|
|
17
|
+
### Properties and attributes
|
|
18
|
+
|
|
19
|
+
| Properties | Attributes | Modifiers | Type | Default | Description |
|
|
20
|
+
| ------------------- | ------------------- | --------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| canceled | canceled | | boolean | | Marks the segment as canceled. The line leading to the segment is red and dashed, and the segment's marker is red. |
|
|
22
|
+
| destinationCanceled | destinationCanceled | | boolean | | Marks the final leg after the last segment as canceled. Use it on the last segment in a flightline, where it turns the line after the segment red and dashed and the duration text red. |
|
|
23
|
+
| duration | duration | | string | | Sets the layover length shown under the station code, such as `3h 40m`. Don't set it on a stopover, because stopover durations can't be predicted. |
|
|
24
|
+
| iata | iata | | string | | Sets the text shown under the segment's marker, typically a station code such as `SEA`. |
|
|
25
|
+
| nextDay | nextDay | | boolean | | Marks a layover that extends into the next calendar day by showing its duration in red. |
|
|
26
|
+
| stopover | stopover | | boolean | | Marks the segment as a stopover and shows its marker as an outlined circle. Don't set `duration` on a stopover, because stopover durations can't be predicted. |
|
|
27
|
+
|
|
28
|
+
### Methods
|
|
29
|
+
|
|
30
|
+
| Name | Parameters | Return | Description |
|
|
31
|
+
| -------- | ------------------------------------------------------------- | ------ | -------------------------------------------------------- |
|
|
32
|
+
| register | `name` (string) - The tag name to register the element under. | | Registers the element with the browser under a tag name. |
|
|
33
|
+
|
|
23
34
|
# auro-flightline
|
|
24
35
|
|
|
25
|
-
|
|
36
|
+
Shows a flight's layovers and stopovers as dots on a timeline that adapts to the width of its container.
|
|
37
|
+
|
|
38
|
+
**Key capabilities**
|
|
39
|
+
- **Shows each stop**: Each `<auro-flight-segment>` in the default slot adds a dot to the timeline.
|
|
40
|
+
- **Adapts to narrow spaces**: When its container is `320px` wide or narrower, it shows the number of stops instead of the dots.
|
|
41
|
+
- **Shows cancellations**: `canceled` shows the whole flight as canceled.
|
|
42
|
+
|
|
43
|
+
**Example**
|
|
44
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
45
|
+
<auro-flight-segment iata="SEA" duration="1h 40m"></auro-flight-segment>
|
|
46
|
+
</auro-flightline></code></pre>
|
|
26
47
|
|
|
27
|
-
|
|
48
|
+
### Properties and attributes
|
|
49
|
+
|
|
50
|
+
| Properties | Attributes | Modifiers | Type | Default | Description |
|
|
51
|
+
| ---------- | ---------- | --------- | ------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
52
|
+
| canceled | canceled | | boolean | | Sets the whole flightline to canceled. The line turns red and dashed, and every segment inside it is shown as canceled. |
|
|
28
53
|
|
|
29
|
-
|
|
30
|
-
|------------|------------|-----------|---------|-------------------------------------|
|
|
31
|
-
| [canceled](#canceled) | `canceled` | `Boolean` | false | Whether the flightline is canceled. |
|
|
54
|
+
### Methods
|
|
32
55
|
|
|
33
|
-
|
|
56
|
+
| Name | Parameters | Return | Description |
|
|
57
|
+
| -------- | ------------------------------------------------------------- | ------ | -------------------------------------------------------- |
|
|
58
|
+
| register | `name` (string) - The tag name to register the element under. | | Registers the element with the browser under a tag name. |
|
|
34
59
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
| |
|
|
60
|
+
### Slots
|
|
61
|
+
|
|
62
|
+
| Name | Description |
|
|
63
|
+
| --------- | -------------------------------------------------------------------------------- |
|
|
64
|
+
| (default) | The `<auro-flight-segment>` elements that make up the flight, one for each stop. |
|
|
38
65
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
39
66
|
|
|
40
67
|
## Basic
|
|
41
68
|
|
|
42
69
|
<div class="exampleWrapper">
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
70
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
71
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
72
|
+
<auro-flightline></auro-flightline>
|
|
73
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
47
74
|
</div>
|
|
48
75
|
<auro-accordion alignRight>
|
|
49
|
-
|
|
76
|
+
<span slot="trigger">See code</span>
|
|
50
77
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
51
78
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
52
79
|
|
|
53
|
-
|
|
54
|
-
<auro-flightline></auro-flightline>
|
|
55
|
-
```
|
|
80
|
+
<pre class="language-html"><code class="language-html"><auro-flightline></auro-flightline></code></pre>
|
|
56
81
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
57
82
|
</auro-accordion>
|
|
58
83
|
|
|
59
|
-
## Property
|
|
84
|
+
## Property and attribute examples
|
|
60
85
|
|
|
61
86
|
### Canceled
|
|
62
87
|
|
|
63
|
-
#### Canceled
|
|
88
|
+
#### Canceled flight
|
|
64
89
|
|
|
65
|
-
|
|
90
|
+
Use `canceled` on a flightline with no segments to show a canceled nonstop flight, such as SEA to EWR.
|
|
66
91
|
|
|
67
92
|
<div class="exampleWrapper">
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
93
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/canceled.html) -->
|
|
94
|
+
<!-- The below content is automatically added from ../apiExamples/canceled.html -->
|
|
95
|
+
<auro-flightline canceled></auro-flightline>
|
|
96
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
72
97
|
</div>
|
|
73
98
|
<auro-accordion alignRight>
|
|
74
|
-
|
|
99
|
+
<span slot="trigger">See code</span>
|
|
75
100
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/canceled.html) -->
|
|
76
101
|
<!-- The below code snippet is automatically added from ../apiExamples/canceled.html -->
|
|
77
102
|
|
|
78
|
-
|
|
79
|
-
<auro-flightline canceled></auro-flightline>
|
|
80
|
-
```
|
|
103
|
+
<pre class="language-html"><code class="language-html"><auro-flightline canceled></auro-flightline></code></pre>
|
|
81
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
105
|
</auro-accordion>
|
|
83
106
|
|
|
84
|
-
#### Canceled
|
|
107
|
+
#### Canceled segment
|
|
85
108
|
|
|
86
|
-
|
|
109
|
+
When the `canceled` flightline has segments, it shows all of them as canceled. To cancel only some segments, set `canceled` on those segments, as in the canceled flight with multiple stopovers and layovers example.
|
|
87
110
|
|
|
88
111
|
<div class="exampleWrapper">
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
112
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/canceled-segment.html) -->
|
|
113
|
+
<!-- The below content is automatically added from ../apiExamples/canceled-segment.html -->
|
|
114
|
+
<auro-flightline canceled>
|
|
115
|
+
<auro-flight-segment iata="EWR" duration="3h 40m"></auro-flight-segment>
|
|
116
|
+
</auro-flightline>
|
|
117
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
118
|
</div>
|
|
96
119
|
<auro-accordion alignRight>
|
|
97
|
-
|
|
120
|
+
<span slot="trigger">See code</span>
|
|
98
121
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/canceled-segment.html) -->
|
|
99
122
|
<!-- The below code snippet is automatically added from ../apiExamples/canceled-segment.html -->
|
|
100
123
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</auro-flightline>
|
|
105
|
-
```
|
|
124
|
+
<pre class="language-html"><code class="language-html"><auro-flightline canceled>
|
|
125
|
+
<auro-flight-segment iata="EWR" duration="3h 40m"></auro-flight-segment>
|
|
126
|
+
</auro-flightline></code></pre>
|
|
106
127
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
107
128
|
</auro-accordion>
|
|
108
129
|
|
|
109
|
-
#### Canceled
|
|
130
|
+
#### Canceled destination
|
|
110
131
|
|
|
111
|
-
|
|
132
|
+
Use `destinationCanceled` on the last segment to show a canceled final leg.
|
|
112
133
|
|
|
113
134
|
<div class="exampleWrapper">
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
135
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/canceled-destination.html) -->
|
|
136
|
+
<!-- The below content is automatically added from ../apiExamples/canceled-destination.html -->
|
|
137
|
+
<auro-flightline>
|
|
138
|
+
<auro-flight-segment iata="EWR" duration="3h 40m" destinationCanceled></auro-flight-segment>
|
|
139
|
+
</auro-flightline>
|
|
140
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
120
141
|
</div>
|
|
121
142
|
<auro-accordion alignRight>
|
|
122
|
-
|
|
143
|
+
<span slot="trigger">See code</span>
|
|
123
144
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/canceled-destination.html) -->
|
|
124
145
|
<!-- The below code snippet is automatically added from ../apiExamples/canceled-destination.html -->
|
|
125
146
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
</auro-flightline>
|
|
130
|
-
```
|
|
147
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
148
|
+
<auro-flight-segment iata="EWR" duration="3h 40m" destinationCanceled></auro-flight-segment>
|
|
149
|
+
</auro-flightline></code></pre>
|
|
131
150
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
132
151
|
</auro-accordion>
|
|
133
152
|
|
|
134
153
|
### Layover
|
|
135
154
|
|
|
136
|
-
|
|
155
|
+
Use `iata` and `duration` to show a station code with the layover duration.
|
|
137
156
|
|
|
138
157
|
<div class="exampleWrapper">
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
158
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/iata.html) -->
|
|
159
|
+
<!-- The below content is automatically added from ../apiExamples/iata.html -->
|
|
160
|
+
<auro-flightline>
|
|
161
|
+
<auro-flight-segment iata="ORD" duration="3h 40m"></auro-flight-segment>
|
|
162
|
+
</auro-flightline>
|
|
163
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
145
164
|
</div>
|
|
146
165
|
<auro-accordion alignRight>
|
|
147
|
-
|
|
166
|
+
<span slot="trigger">See code</span>
|
|
148
167
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/iata.html) -->
|
|
149
168
|
<!-- The below code snippet is automatically added from ../apiExamples/iata.html -->
|
|
150
169
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</auro-flightline>
|
|
155
|
-
```
|
|
170
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
171
|
+
<auro-flight-segment iata="ORD" duration="3h 40m"></auro-flight-segment>
|
|
172
|
+
</auro-flightline></code></pre>
|
|
156
173
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
157
174
|
</auro-accordion>
|
|
158
175
|
|
|
159
|
-
#### Next
|
|
176
|
+
#### Next day layover
|
|
160
177
|
|
|
161
|
-
|
|
178
|
+
Use `nextDay` to show a layover that extends into the next day.
|
|
162
179
|
|
|
163
180
|
<div class="exampleWrapper">
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
181
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/next-day.html) -->
|
|
182
|
+
<!-- The below content is automatically added from ../apiExamples/next-day.html -->
|
|
183
|
+
<auro-flightline>
|
|
184
|
+
<auro-flight-segment nextDay iata="ORD" duration="3h 40m"></auro-flight-segment>
|
|
185
|
+
</auro-flightline>
|
|
186
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
170
187
|
</div>
|
|
171
188
|
<auro-accordion alignRight>
|
|
172
|
-
|
|
189
|
+
<span slot="trigger">See code</span>
|
|
173
190
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/next-day.html) -->
|
|
174
191
|
<!-- The below code snippet is automatically added from ../apiExamples/next-day.html -->
|
|
175
192
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
</auro-flightline>
|
|
180
|
-
```
|
|
193
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
194
|
+
<auro-flight-segment nextDay iata="ORD" duration="3h 40m"></auro-flight-segment>
|
|
195
|
+
</auro-flightline></code></pre>
|
|
181
196
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
182
197
|
</auro-accordion>
|
|
183
198
|
|
|
184
199
|
### Stopover
|
|
185
200
|
|
|
186
|
-
|
|
201
|
+
Use `stopover` to show a stop with no duration.
|
|
187
202
|
|
|
188
203
|
<div class="exampleWrapper">
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
204
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/stopover.html) -->
|
|
205
|
+
<!-- The below content is automatically added from ../apiExamples/stopover.html -->
|
|
206
|
+
<auro-flightline>
|
|
207
|
+
<auro-flight-segment stopover iata="CDB"></auro-flight-segment>
|
|
208
|
+
</auro-flightline>
|
|
209
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
195
210
|
</div>
|
|
196
211
|
<auro-accordion alignRight>
|
|
197
|
-
|
|
212
|
+
<span slot="trigger">See code</span>
|
|
198
213
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/stopover.html) -->
|
|
199
214
|
<!-- The below code snippet is automatically added from ../apiExamples/stopover.html -->
|
|
200
215
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
</auro-flightline>
|
|
205
|
-
```
|
|
216
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
217
|
+
<auro-flight-segment stopover iata="CDB"></auro-flight-segment>
|
|
218
|
+
</auro-flightline></code></pre>
|
|
206
219
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
207
220
|
</auro-accordion>
|
|
208
221
|
|
|
209
|
-
## Common
|
|
222
|
+
## Common usage patterns
|
|
210
223
|
|
|
211
|
-
### Container
|
|
212
|
-
|
|
213
|
-
The `auro-flightline` element is reactive to its parent container's `width` value versus a `@media` query based on the device `width`. This allows for greater control over the shape of the element when in constrained spaces.
|
|
224
|
+
### Container query
|
|
214
225
|
|
|
215
|
-
The
|
|
226
|
+
The `auro-flightline` element responds to its own width instead of the device width, so you can control its shape in narrow spaces. When the flightline is `320px` (`var(--ds-grid-breakpoint-xs)`) wide or narrower, it shows the number of stops instead of the individual segments.
|
|
216
227
|
|
|
217
|
-
The first example
|
|
228
|
+
The first example sets the width to `300px`, the second uses the full width of its container, and the third sets `75%` so you can resize the window and watch it switch.
|
|
218
229
|
|
|
219
230
|
<div class="exampleWrapper">
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
<auro-flightline style="width: 300px">
|
|
223
|
-
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
224
|
-
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
225
|
-
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
226
|
-
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
227
|
-
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
228
|
-
</auro-flightline>
|
|
229
|
-
<auro-flightline>
|
|
230
|
-
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
231
|
-
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
232
|
-
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
233
|
-
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
234
|
-
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
235
|
-
</auro-flightline>
|
|
236
|
-
<auro-flightline style="width: 75%">
|
|
237
|
-
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
238
|
-
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
239
|
-
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
240
|
-
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
241
|
-
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
242
|
-
</auro-flightline>
|
|
243
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
244
|
-
</div>
|
|
245
|
-
<auro-accordion alignRight>
|
|
246
|
-
<span slot="trigger">See code</span>
|
|
247
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/container-query.html) -->
|
|
248
|
-
<!-- The below code snippet is automatically added from ../apiExamples/container-query.html -->
|
|
249
|
-
|
|
250
|
-
```html
|
|
231
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/container-query.html) -->
|
|
232
|
+
<!-- The below content is automatically added from ../apiExamples/container-query.html -->
|
|
251
233
|
<auro-flightline style="width: 300px">
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
234
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
235
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
236
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
237
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
238
|
+
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
257
239
|
</auro-flightline>
|
|
258
240
|
<auro-flightline>
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
241
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
242
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
243
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
244
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
245
|
+
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
264
246
|
</auro-flightline>
|
|
265
247
|
<auro-flightline style="width: 75%">
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
</auro-flightline>
|
|
272
|
-
|
|
248
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
249
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
250
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
251
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
252
|
+
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
253
|
+
</auro-flightline>
|
|
254
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
255
|
+
</div>
|
|
256
|
+
<auro-accordion alignRight>
|
|
257
|
+
<span slot="trigger">See code</span>
|
|
258
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/container-query.html) -->
|
|
259
|
+
<!-- The below code snippet is automatically added from ../apiExamples/container-query.html -->
|
|
260
|
+
|
|
261
|
+
<pre class="language-html"><code class="language-html"><auro-flightline style="width: 300px">
|
|
262
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
263
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
264
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
265
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
266
|
+
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
267
|
+
</auro-flightline>
|
|
268
|
+
<auro-flightline>
|
|
269
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
270
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
271
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
272
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
273
|
+
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
274
|
+
</auro-flightline>
|
|
275
|
+
<auro-flightline style="width: 75%">
|
|
276
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
277
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
278
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
279
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
280
|
+
<auro-flight-segment iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
281
|
+
</auro-flightline></code></pre>
|
|
273
282
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
274
283
|
</auro-accordion>
|
|
275
284
|
|
|
276
|
-
### Stopover and
|
|
285
|
+
### Stopover and layover
|
|
277
286
|
|
|
278
|
-
|
|
287
|
+
A flight with a stopover and a layover.
|
|
279
288
|
|
|
280
289
|
<div class="exampleWrapper">
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
290
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/stopover-and-layover.html) -->
|
|
291
|
+
<!-- The below content is automatically added from ../apiExamples/stopover-and-layover.html -->
|
|
292
|
+
<auro-flightline>
|
|
293
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
294
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
295
|
+
</auro-flightline>
|
|
296
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
288
297
|
</div>
|
|
289
298
|
<auro-accordion alignRight>
|
|
290
|
-
|
|
299
|
+
<span slot="trigger">See code</span>
|
|
291
300
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/stopover-and-layover.html) -->
|
|
292
301
|
<!-- The below code snippet is automatically added from ../apiExamples/stopover-and-layover.html -->
|
|
293
302
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
</auro-flightline>
|
|
299
|
-
```
|
|
303
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
304
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
305
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
306
|
+
</auro-flightline></code></pre>
|
|
300
307
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
301
308
|
</auro-accordion>
|
|
302
309
|
|
|
303
|
-
### Flight with
|
|
310
|
+
### Flight with multiple stopovers and layovers
|
|
304
311
|
|
|
305
|
-
|
|
312
|
+
A flight with multiple stopovers and layovers.
|
|
306
313
|
|
|
307
314
|
<div class="exampleWrapper">
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/multiple-stop-and-layovers.html) -->
|
|
316
|
+
<!-- The below content is automatically added from ../apiExamples/multiple-stop-and-layovers.html -->
|
|
317
|
+
<auro-flightline>
|
|
318
|
+
<auro-flight-segment stopover iata="CDB"></auro-flight-segment>
|
|
319
|
+
<auro-flight-segment iata="ANC" duration="1h 30m"></auro-flight-segment>
|
|
320
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
321
|
+
<auro-flight-segment iata="SFO" duration="1h 40m"></auro-flight-segment>
|
|
322
|
+
</auro-flightline>
|
|
323
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
317
324
|
</div>
|
|
318
325
|
<auro-accordion alignRight>
|
|
319
|
-
|
|
326
|
+
<span slot="trigger">See code</span>
|
|
320
327
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/multiple-stop-and-layovers.html) -->
|
|
321
328
|
<!-- The below code snippet is automatically added from ../apiExamples/multiple-stop-and-layovers.html -->
|
|
322
329
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
</auro-flightline>
|
|
330
|
-
```
|
|
330
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
331
|
+
<auro-flight-segment stopover iata="CDB"></auro-flight-segment>
|
|
332
|
+
<auro-flight-segment iata="ANC" duration="1h 30m"></auro-flight-segment>
|
|
333
|
+
<auro-flight-segment iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
334
|
+
<auro-flight-segment iata="SFO" duration="1h 40m"></auro-flight-segment>
|
|
335
|
+
</auro-flightline></code></pre>
|
|
331
336
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
332
337
|
</auro-accordion>
|
|
333
338
|
|
|
334
|
-
### Canceled
|
|
339
|
+
### Canceled flight with multiple stopovers and layovers
|
|
335
340
|
|
|
336
|
-
|
|
341
|
+
A canceled international flight with stopovers and layovers.
|
|
337
342
|
|
|
338
343
|
<div class="exampleWrapper">
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
344
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/canceled-stop-and-layovers.html) -->
|
|
345
|
+
<!-- The below content is automatically added from ../apiExamples/canceled-stop-and-layovers.html -->
|
|
346
|
+
<auro-flightline>
|
|
347
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
348
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
349
|
+
<auro-flight-segment canceled iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
350
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
351
|
+
<auro-flight-segment canceled destinationCanceled iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
352
|
+
</auro-flightline>
|
|
353
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
349
354
|
</div>
|
|
350
355
|
<auro-accordion alignRight>
|
|
351
|
-
|
|
356
|
+
<span slot="trigger">See code</span>
|
|
352
357
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/canceled-stop-and-layovers.html) -->
|
|
353
358
|
<!-- The below code snippet is automatically added from ../apiExamples/canceled-stop-and-layovers.html -->
|
|
354
359
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
</auro-flightline>
|
|
363
|
-
```
|
|
360
|
+
<pre class="language-html"><code class="language-html"><auro-flightline>
|
|
361
|
+
<auro-flight-segment stopover iata="YAK"></auro-flight-segment>
|
|
362
|
+
<auro-flight-segment stopover iata="WRG"></auro-flight-segment>
|
|
363
|
+
<auro-flight-segment canceled iata="SEA" duration="0h 40m"></auro-flight-segment>
|
|
364
|
+
<auro-flight-segment iata="BOS" duration="1h 40m"></auro-flight-segment>
|
|
365
|
+
<auro-flight-segment canceled destinationCanceled iata="DUB" duration="13h 40m"></auro-flight-segment>
|
|
366
|
+
</auro-flightline></code></pre>
|
|
364
367
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
365
368
|
</auro-accordion>
|
|
366
369
|
|
|
367
|
-
## Restyle
|
|
370
|
+
## Restyle with CSS custom properties
|
|
368
371
|
|
|
369
|
-
|
|
372
|
+
Restyle the component by changing the values of the following tokens.
|
|
370
373
|
|
|
371
374
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
372
375
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
373
376
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
:host {
|
|
377
|
+
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
378
|
+
:host {
|
|
378
379
|
--ds-auro-flightline-destination-line-color: var(--ds-advanced-color-flightline-line, #{v.$ds-advanced-color-flightline-line});
|
|
379
380
|
--ds-auro-flightline-segment-iata-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
380
381
|
--ds-auro-flightline-segment-line-color: var(--ds-advanced-color-flightline-line, #{v.$ds-advanced-color-flightline-line});
|
|
381
382
|
--ds-auro-flightline-layover-duration-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
382
383
|
--ds-auro-flightline-layover-marker-border-color: var(--ds-advanced-color-flightline-indicator, #{v.$ds-advanced-color-flightline-indicator});
|
|
383
384
|
--ds-auro-flightline-layover-marker-container-color: var(--ds-advanced-color-flightline-indicator, #{v.$ds-advanced-color-flightline-indicator});
|
|
384
|
-
}
|
|
385
|
-
```
|
|
385
|
+
}</code></pre>
|
|
386
386
|
<!-- AURO-GENERATED-CONTENT:END -->
|