date-pickerpackage.src.vaadin-date-picker-overlay-content.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
The newest version!
/**
* @license
* Copyright (c) 2016 - 2024 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import '@vaadin/button/src/vaadin-button.js';
import './vaadin-date-picker-month-scroller.js';
import './vaadin-date-picker-year-scroller.js';
import './vaadin-date-picker-year.js';
import './vaadin-month-calendar.js';
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
import { DatePickerOverlayContentMixin } from './vaadin-date-picker-overlay-content-mixin.js';
import { overlayContentStyles } from './vaadin-date-picker-overlay-content-styles.js';
registerStyles('vaadin-date-picker-overlay-content', overlayContentStyles, {
moduleId: 'vaadin-date-picker-overlay-content-styles',
});
/**
* @customElement
* @extends HTMLElement
* @private
*/
class DatePickerOverlayContent extends DatePickerOverlayContentMixin(
ControllerMixin(ThemableMixin(DirMixin(PolymerElement))),
) {
static get template() {
return html`
`;
}
static get is() {
return 'vaadin-date-picker-overlay-content';
}
/** @protected */
ready() {
super.ready();
this.setAttribute('role', 'dialog');
this._addListeners();
this._initControllers();
}
}
defineCustomElement(DatePickerOverlayContent);