package.src.vaadin-time-picker-overlay.js Maven / Gradle / Ivy
/**
* @license
* Copyright (c) 2018 - 2024 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
import { ComboBoxOverlayMixin } from '@vaadin/combo-box/src/vaadin-combo-box-overlay-mixin.js';
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
import { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';
import { overlayStyles } from '@vaadin/overlay/src/vaadin-overlay-styles.js';
import { css, registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const timePickerOverlayStyles = css`
#overlay {
width: var(--vaadin-time-picker-overlay-width, var(--_vaadin-time-picker-overlay-default-width, auto));
}
[part='content'] {
display: flex;
flex-direction: column;
height: 100%;
}
`;
registerStyles('vaadin-time-picker-overlay', [overlayStyles, timePickerOverlayStyles], {
moduleId: 'vaadin-time-picker-overlay-styles',
});
/**
* An element used internally by ``. Not intended to be used separately.
*
* @extends HTMLElement
* @mixes ComboBoxOverlayMixin
* @mixes DirMixin
* @mixes OverlayMixin
* @mixes ThemableMixin
* @private
*/
export class TimePickerOverlay extends ComboBoxOverlayMixin(OverlayMixin(DirMixin(ThemableMixin(PolymerElement)))) {
static get is() {
return 'vaadin-time-picker-overlay';
}
static get template() {
return html`
`;
}
}
defineCustomElement(TimePickerOverlay);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy