2023-09-13 19:55:33 +02:00
|
|
|
import {Et2Select} from "../Et2Select";
|
|
|
|
import {Et2StaticSelectMixin, StaticOptions} from "../StaticOptions";
|
2023-09-14 19:48:30 +02:00
|
|
|
import {cleanSelectOptions} from "../FindSelectOptions";
|
2023-09-13 19:55:33 +02:00
|
|
|
|
|
|
|
export class Et2SelectTimezone extends Et2StaticSelectMixin(Et2Select)
|
|
|
|
{
|
|
|
|
constructor()
|
|
|
|
{
|
|
|
|
super();
|
2023-09-14 19:48:30 +02:00
|
|
|
this.fetchComplete = StaticOptions.timezone(this, {other: this.other ?? []}).then((options) =>
|
|
|
|
{
|
|
|
|
this.set_static_options(cleanSelectOptions(options));
|
|
|
|
})
|
2023-09-13 19:55:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
customElements.define("et2-select-timezone", Et2SelectTimezone);
|