@aurodesignsystem-dev/auro-flight 0.0.0-pr168.0 → 0.0.0-pr168.2
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/demo/api.md
CHANGED
|
@@ -14,7 +14,7 @@ The `auro-flight` element renders a DoT compliant Flight listing.
|
|
|
14
14
|
| departureStation | departureStation | | string | | String for the departure station. |
|
|
15
15
|
| departureTime | departureTime | | string | | String for the departure ISO 8601 time (e.g. `2022-04-13T12:30:00-04:00`). |
|
|
16
16
|
| duration | duration | | number | | Number that defines duration of flight in minutes. |
|
|
17
|
-
| flights | flights | | array |
|
|
17
|
+
| flights | flights | | array | | Array of flight numbers. |
|
|
18
18
|
| reroutedArrivalStation | reroutedArrivalStation | | string | | String for the new arrival station for rerouted flights. |
|
|
19
19
|
| reroutedDepartureStation | reroutedDepartureStation | | string | | String for the new departure station for rerouted flights. |
|
|
20
20
|
| stops | stops | | array | | Array of objects representing stopovers or layovers.<br>Each object contains:<br>- `isStopover`: boolean<br>- `arrivalStation`: string<br>- `duration`: string (e.g. "123hr 123m") |
|
package/demo/auro-flight.min.js
CHANGED
|
@@ -93,7 +93,7 @@ import{css as e,LitElement as s,html as t}from"lit";import{classMap as a}from"li
|
|
|
93
93
|
</span>
|
|
94
94
|
</span>
|
|
95
95
|
</div>
|
|
96
|
-
`}}customElements.get("auro-flight-main")||customElements.define("auro-flight-main",N);class R extends s{constructor(){super(),this.flights=[],this.runtimeUtils=new n}static get properties(){return{arrivalStation:{type:String},arrivalTime:{type:String},departureStation:{type:String},departureTime:{type:String},duration:{type:Number},flights:{type:Array},reroutedArrivalStation:{type:String},reroutedDepartureStation:{type:String},stops:{type:Array}}}static get styles(){return[o,c,m]}static register(e="auro-flight"){n.prototype.registerComponent(e,R)}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-flight");const e=this.shadowRoot.querySelector("#footer"),s=this.shadowRoot.querySelector("#flightFooter");this.shadowRoot.querySelector("auro-flight-main").exposeCssParts();return this.shadowRoot.querySelector("auro-flight-header").exposeCssParts(),this.unformatted||0!==e.assignedNodes().length?null:s.classList.remove("flightFooter")}convertDuration(e){const s=`${Number.parseInt(e/60,10)}h`,t=Number.parseInt(e%60,10);return`${s} ${0===t?"":`${t}m`}`}render(){return t`
|
|
96
|
+
`}}customElements.get("auro-flight-main")||customElements.define("auro-flight-main",N);class R extends s{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){this.flights=[],this.runtimeUtils=new n}static get properties(){return{arrivalStation:{type:String},arrivalTime:{type:String},departureStation:{type:String},departureTime:{type:String},duration:{type:Number},flights:{type:Array},reroutedArrivalStation:{type:String},reroutedDepartureStation:{type:String},stops:{type:Array}}}static get styles(){return[o,c,m]}static register(e="auro-flight"){n.prototype.registerComponent(e,R)}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-flight");const e=this.shadowRoot.querySelector("#footer"),s=this.shadowRoot.querySelector("#flightFooter");this.shadowRoot.querySelector("auro-flight-main").exposeCssParts();return this.shadowRoot.querySelector("auro-flight-header").exposeCssParts(),this.unformatted||0!==e.assignedNodes().length?null:s.classList.remove("flightFooter")}convertDuration(e){const s=`${Number.parseInt(e/60,10)}h`,t=Number.parseInt(e%60,10);return`${s} ${0===t?"":`${t}m`}`}render(){return t`
|
|
97
97
|
<section part="flightContainer">
|
|
98
98
|
<auro-flight-header
|
|
99
99
|
flights=${JSON.stringify(this.flights)}
|
package/dist/index.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ Each object contains:
|
|
|
144
144
|
*
|
|
145
145
|
* Methods that can be called to access component functionality.
|
|
146
146
|
*
|
|
147
|
+
* - `_initializeDefaults() => void`: undefined
|
|
147
148
|
* - `register(name?: string = "auro-flight") => void`: This will register this element with the browser.
|
|
148
149
|
*
|
|
149
150
|
* ## CSS Parts
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as AuroFlight}from"./auro-flight-
|
|
1
|
+
export{A as AuroFlight}from"./auro-flight-CcgpfaAy.js";import"lit";import"lit/directives/class-map.js";import"lit/static-html.js";
|
package/dist/registered.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t}from"./auro-flight-
|
|
1
|
+
import{A as t}from"./auro-flight-CcgpfaAy.js";import"lit";import"lit/directives/class-map.js";import"lit/static-html.js";t.register();
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem-dev/auro-flight",
|
|
10
|
-
"version": "0.0.0-pr168.
|
|
10
|
+
"version": "0.0.0-pr168.2",
|
|
11
11
|
"description": "auro-flight HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|