@aurodesignsystem-dev/auro-flightline 0.0.0-pr141.0 → 0.0.0-pr141.1
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 +2 -2
- package/demo/api.md +7 -7
- package/demo/api.min.js +3 -3
- package/demo/index.md +1 -1
- package/demo/index.min.js +3 -3
- package/demo/readme.md +2 -2
- package/dist/index.d.ts +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ The following sections are editable by making changes to the following files:
|
|
|
23
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
24
|
The `<auro-flightline>` component represents any layovers and/or stopovers a guest may encounter throughout their journey.
|
|
25
25
|
|
|
26
|
-
When
|
|
26
|
+
When a flightline with two or more segments is `320px` wide or narrower, it hides the individual segments and shows the number of stops, counted from the `auro-flight-segment` elements inside it.
|
|
27
27
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
28
28
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
29
29
|
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
@@ -101,7 +101,7 @@ import { AuroFlightline, AuroFlightSegment } from "@aurodesignsystem/auro-flight
|
|
|
101
101
|
AuroFlightSegment.register("custom-flight-segment");
|
|
102
102
|
AuroFlightline.register("custom-flightline");</code></pre>
|
|
103
103
|
|
|
104
|
-
This creates `<custom-flightline>` and `<custom-flight-segment>`, which work like `<auro-flightline>` and `<auro-flight-segment>`. The flightline's "number of stops" summary at narrow widths
|
|
104
|
+
This creates `<custom-flightline>` and `<custom-flight-segment>`, which work like `<auro-flightline>` and `<auro-flight-segment>`. The flightline's "number of stops" summary at narrow widths uses `<auro-flight-segment>`, so also call `AuroFlightSegment.register()` to register it under its default name.
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
107
107
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|
package/demo/api.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Marks one stop on a flight as a layover or a stopover.
|
|
7
7
|
|
|
8
8
|
**Key capabilities**
|
|
9
|
-
- **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show it.
|
|
9
|
+
- **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show how long it lasts.
|
|
10
10
|
- **Stopover**: A stop with no duration, shown as an outlined marker. Set `stopover` to turn it on.
|
|
11
11
|
- **Cancellation**: `canceled` and `destinationCanceled` show the lines around the segment as canceled.
|
|
12
12
|
|
|
@@ -33,11 +33,11 @@ Read about [the difference between a layover and a stopover](https://www.turkish
|
|
|
33
33
|
|
|
34
34
|
# auro-flightline
|
|
35
35
|
|
|
36
|
-
Shows a flight's layovers and stopovers as dots on a timeline that adapts to
|
|
36
|
+
Shows a flight's layovers and stopovers as dots on a timeline that adapts to its width.
|
|
37
37
|
|
|
38
38
|
**Key capabilities**
|
|
39
39
|
- **Shows each stop**: Each `<auro-flight-segment>` in the default slot adds a dot to the timeline.
|
|
40
|
-
- **Adapts to narrow spaces**: When
|
|
40
|
+
- **Adapts to narrow spaces**: When it has two or more segments and is `320px` wide or narrower, it shows the number of stops instead of the dots.
|
|
41
41
|
- **Shows cancellations**: `canceled` shows the whole flight as canceled.
|
|
42
42
|
|
|
43
43
|
**Example**
|
|
@@ -223,7 +223,7 @@ Use `stopover` to show a stop with no duration.
|
|
|
223
223
|
|
|
224
224
|
### Container query
|
|
225
225
|
|
|
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
|
|
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 a flightline with two or more segments is `320px` wide or narrower (the `xs` grid breakpoint), it shows the number of stops instead of the individual segments.
|
|
227
227
|
|
|
228
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.
|
|
229
229
|
|
|
@@ -284,7 +284,7 @@ The first example sets the width to `300px`, the second uses the full width of i
|
|
|
284
284
|
|
|
285
285
|
### Stopover and layover
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
Mix stopover and layover segments in one flightline, as in this flight with one of each.
|
|
288
288
|
|
|
289
289
|
<div class="exampleWrapper">
|
|
290
290
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/stopover-and-layover.html) -->
|
|
@@ -309,7 +309,7 @@ A flight with a stopover and a layover.
|
|
|
309
309
|
|
|
310
310
|
### Flight with multiple stopovers and layovers
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
Add as many stopover and layover segments as the route needs, as in this flight with one stopover and three layovers.
|
|
313
313
|
|
|
314
314
|
<div class="exampleWrapper">
|
|
315
315
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/multiple-stop-and-layovers.html) -->
|
|
@@ -338,7 +338,7 @@ A flight with multiple stopovers and layovers.
|
|
|
338
338
|
|
|
339
339
|
### Canceled flight with multiple stopovers and layovers
|
|
340
340
|
|
|
341
|
-
|
|
341
|
+
Set `canceled` on individual segments, and `destinationCanceled` on the last one, to show a canceled international flight with stopovers and layovers.
|
|
342
342
|
|
|
343
343
|
<div class="exampleWrapper">
|
|
344
344
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/canceled-stop-and-layovers.html) -->
|
package/demo/api.min.js
CHANGED
|
@@ -145,7 +145,7 @@ var tokensCss = i$4`:host{--ds-auro-flightline-destination-line-color: var(--ds-
|
|
|
145
145
|
* Marks one stop on a flight as a layover or a stopover.
|
|
146
146
|
*
|
|
147
147
|
* **Key capabilities**
|
|
148
|
-
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show it.
|
|
148
|
+
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show how long it lasts.
|
|
149
149
|
* - **Stopover**: A stop with no duration, shown as an outlined marker. Set `stopover` to turn it on.
|
|
150
150
|
* - **Cancellation**: `canceled` and `destinationCanceled` show the lines around the segment as canceled.
|
|
151
151
|
*
|
|
@@ -292,11 +292,11 @@ var styleCss = i$4`:focus:not(:focus-visible){outline:3px solid transparent}:hos
|
|
|
292
292
|
|
|
293
293
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
294
294
|
/**
|
|
295
|
-
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to
|
|
295
|
+
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to its width.
|
|
296
296
|
*
|
|
297
297
|
* **Key capabilities**
|
|
298
298
|
* - **Shows each stop**: Each `<auro-flight-segment>` in the default slot adds a dot to the timeline.
|
|
299
|
-
* - **Adapts to narrow spaces**: When
|
|
299
|
+
* - **Adapts to narrow spaces**: When it has two or more segments and is `320px` wide or narrower, it shows the number of stops instead of the dots.
|
|
300
300
|
* - **Shows cancellations**: `canceled` shows the whole flight as canceled.
|
|
301
301
|
*
|
|
302
302
|
* **Example**
|
package/demo/index.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<!-- The below content is automatically added from ./../docs/partials/description.md -->
|
|
11
11
|
The `<auro-flightline>` component represents any layovers and/or stopovers a guest may encounter throughout their journey.
|
|
12
12
|
|
|
13
|
-
When
|
|
13
|
+
When a flightline with two or more segments is `320px` wide or narrower, it hides the individual segments and shows the number of stops, counted from the `auro-flight-segment` elements inside it.
|
|
14
14
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
15
15
|
|
|
16
16
|
## Use cases
|
package/demo/index.min.js
CHANGED
|
@@ -145,7 +145,7 @@ var tokensCss = i$4`:host{--ds-auro-flightline-destination-line-color: var(--ds-
|
|
|
145
145
|
* Marks one stop on a flight as a layover or a stopover.
|
|
146
146
|
*
|
|
147
147
|
* **Key capabilities**
|
|
148
|
-
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show it.
|
|
148
|
+
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show how long it lasts.
|
|
149
149
|
* - **Stopover**: A stop with no duration, shown as an outlined marker. Set `stopover` to turn it on.
|
|
150
150
|
* - **Cancellation**: `canceled` and `destinationCanceled` show the lines around the segment as canceled.
|
|
151
151
|
*
|
|
@@ -292,11 +292,11 @@ var styleCss = i$4`:focus:not(:focus-visible){outline:3px solid transparent}:hos
|
|
|
292
292
|
|
|
293
293
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
294
294
|
/**
|
|
295
|
-
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to
|
|
295
|
+
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to its width.
|
|
296
296
|
*
|
|
297
297
|
* **Key capabilities**
|
|
298
298
|
* - **Shows each stop**: Each `<auro-flight-segment>` in the default slot adds a dot to the timeline.
|
|
299
|
-
* - **Adapts to narrow spaces**: When
|
|
299
|
+
* - **Adapts to narrow spaces**: When it has two or more segments and is `320px` wide or narrower, it shows the number of stops instead of the dots.
|
|
300
300
|
* - **Shows cancellations**: `canceled` shows the whole flight as canceled.
|
|
301
301
|
*
|
|
302
302
|
* **Example**
|
package/demo/readme.md
CHANGED
|
@@ -23,7 +23,7 @@ The following sections are editable by making changes to the following files:
|
|
|
23
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
24
|
The `<auro-flightline>` component represents any layovers and/or stopovers a guest may encounter throughout their journey.
|
|
25
25
|
|
|
26
|
-
When
|
|
26
|
+
When a flightline with two or more segments is `320px` wide or narrower, it hides the individual segments and shows the number of stops, counted from the `auro-flight-segment` elements inside it.
|
|
27
27
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
28
28
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
29
29
|
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
@@ -101,7 +101,7 @@ import { AuroFlightline, AuroFlightSegment } from "@aurodesignsystem/auro-flight
|
|
|
101
101
|
AuroFlightSegment.register("custom-flight-segment");
|
|
102
102
|
AuroFlightline.register("custom-flightline");</code></pre>
|
|
103
103
|
|
|
104
|
-
This creates `<custom-flightline>` and `<custom-flight-segment>`, which work like `<auro-flightline>` and `<auro-flight-segment>`. The flightline's "number of stops" summary at narrow widths
|
|
104
|
+
This creates `<custom-flightline>` and `<custom-flight-segment>`, which work like `<auro-flightline>` and `<auro-flight-segment>`. The flightline's "number of stops" summary at narrow widths uses `<auro-flight-segment>`, so also call `AuroFlightSegment.register()` to register it under its default name.
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
107
107
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|
package/dist/index.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export type CustomElements = {
|
|
|
132
132
|
* Marks one stop on a flight as a layover or a stopover.
|
|
133
133
|
*
|
|
134
134
|
* **Key capabilities**
|
|
135
|
-
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show it.
|
|
135
|
+
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show how long it lasts.
|
|
136
136
|
* - **Stopover**: A stop with no duration, shown as an outlined marker. Set `stopover` to turn it on.
|
|
137
137
|
* - **Cancellation**: `canceled` and `destinationCanceled` show the lines around the segment as canceled.
|
|
138
138
|
*
|
|
@@ -165,11 +165,11 @@ export type CustomElements = {
|
|
|
165
165
|
>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
|
-
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to
|
|
168
|
+
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to its width.
|
|
169
169
|
*
|
|
170
170
|
* **Key capabilities**
|
|
171
171
|
* - **Shows each stop**: Each `<auro-flight-segment>` in the default slot adds a dot to the timeline.
|
|
172
|
-
* - **Adapts to narrow spaces**: When
|
|
172
|
+
* - **Adapts to narrow spaces**: When it has two or more segments and is `320px` wide or narrower, it shows the number of stops instead of the dots.
|
|
173
173
|
* - **Shows cancellations**: `canceled` shows the whole flight as canceled.
|
|
174
174
|
*
|
|
175
175
|
* **Example**
|
|
@@ -208,7 +208,7 @@ export type CustomElementsSolidJs = {
|
|
|
208
208
|
* Marks one stop on a flight as a layover or a stopover.
|
|
209
209
|
*
|
|
210
210
|
* **Key capabilities**
|
|
211
|
-
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show it.
|
|
211
|
+
* - **Layover**: A stop with a duration, shown as a filled marker. Set `duration` to show how long it lasts.
|
|
212
212
|
* - **Stopover**: A stop with no duration, shown as an outlined marker. Set `stopover` to turn it on.
|
|
213
213
|
* - **Cancellation**: `canceled` and `destinationCanceled` show the lines around the segment as canceled.
|
|
214
214
|
*
|
|
@@ -244,11 +244,11 @@ export type CustomElementsSolidJs = {
|
|
|
244
244
|
>;
|
|
245
245
|
|
|
246
246
|
/**
|
|
247
|
-
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to
|
|
247
|
+
* Shows a flight's layovers and stopovers as dots on a timeline that adapts to its width.
|
|
248
248
|
*
|
|
249
249
|
* **Key capabilities**
|
|
250
250
|
* - **Shows each stop**: Each `<auro-flight-segment>` in the default slot adds a dot to the timeline.
|
|
251
|
-
* - **Adapts to narrow spaces**: When
|
|
251
|
+
* - **Adapts to narrow spaces**: When it has two or more segments and is `320px` wide or narrower, it shows the number of stops instead of the dots.
|
|
252
252
|
* - **Shows cancellations**: `canceled` shows the whole flight as canceled.
|
|
253
253
|
*
|
|
254
254
|
* **Example**
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem-dev/auro-flightline",
|
|
10
|
-
"version": "0.0.0-pr141.
|
|
10
|
+
"version": "0.0.0-pr141.1",
|
|
11
11
|
"description": "auro-flightline HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|