mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
parent
fe6a5fa0f0
commit
9a8375fa33
@ -12,12 +12,12 @@
|
||||
import {css, html} from "@lion/core";
|
||||
import 'lit-flatpickr';
|
||||
import {dateStyles} from "./DateStyles";
|
||||
import type {Instance} from 'flatpickr/dist/types/instance';
|
||||
import {default as scrollPlugin} from "flatpickr/dist/plugins/scrollPlugin.js";
|
||||
import {default as ShortcutButtonsPlugin} from "shortcut-buttons-flatpickr/dist/shortcut-buttons-flatpickr";
|
||||
import {Instance} from 'flatpickr/dist/types/instance';
|
||||
import "flatpickr/dist/plugins/scrollPlugin.js";
|
||||
import "shortcut-buttons-flatpickr/dist/shortcut-buttons-flatpickr";
|
||||
import flatpickr from "flatpickr";
|
||||
import {egw} from "../../jsapi/egw_global";
|
||||
import type {HTMLElementWithValue} from "@lion/form-core/types/FormControlMixinTypes";
|
||||
import {HTMLElementWithValue} from "@lion/form-core/types/FormControlMixinTypes";
|
||||
import {Et2Textbox} from "../Et2Textbox/Et2Textbox";
|
||||
import {Et2ButtonIcon} from "../Et2Button/Et2ButtonIcon";
|
||||
import {FormControlMixin} from "@lion/form-core";
|
||||
|
@ -11,8 +11,7 @@
|
||||
|
||||
import {css} from "@lion/core";
|
||||
import {Et2Date} from "./Et2Date";
|
||||
import type {Instance} from "flatpickr/dist/types/instance";
|
||||
import {default as ShortcutButtonsPlugin} from "shortcut-buttons-flatpickr/dist/shortcut-buttons-flatpickr";
|
||||
import {Instance} from "flatpickr/dist/types/instance";
|
||||
|
||||
|
||||
export class Et2DateTime extends Et2Date
|
||||
@ -116,6 +115,7 @@ export class Et2DateTime extends Et2Date
|
||||
*/
|
||||
protected _buttonPlugin()
|
||||
{
|
||||
// @ts-ignore TypeScript can't find ShortcutButtonsPlugin, but rollup does
|
||||
return ShortcutButtonsPlugin({
|
||||
button: [
|
||||
{label: this.egw().lang("ok")},
|
||||
@ -144,4 +144,4 @@ export class Et2DateTime extends Et2Date
|
||||
}
|
||||
|
||||
// @ts-ignore TypeScript is not recognizing that Et2DateTime is a LitElement
|
||||
customElements.define("et2-date-time", Et2DateTime);
|
||||
customElements.define("et2-date-time", Et2DateTime);
|
||||
|
Loading…
Reference in New Issue
Block a user