constants.d.ts 1.1 KB

123456789101112131415161718192021222324252627
  1. import { CommonPickerContext } from "./composables/use-common-picker.js";
  2. import { InjectionKey } from "vue";
  3. //#region ../../packages/components/time-picker/src/constants.d.ts
  4. declare const timeUnits: readonly ["hours", "minutes", "seconds"];
  5. declare const PICKER_BASE_INJECTION_KEY = "EP_PICKER_BASE";
  6. declare const PICKER_POPPER_OPTIONS_INJECTION_KEY = "ElPopperOptions";
  7. declare const ROOT_COMMON_PICKER_INJECTION_KEY: InjectionKey<CommonPickerContext>;
  8. declare const DEFAULT_FORMATS_TIME = "HH:mm:ss";
  9. declare const DEFAULT_FORMATS_DATE = "YYYY-MM-DD";
  10. declare const DEFAULT_FORMATS_DATEPICKER: {
  11. date: string;
  12. dates: string;
  13. week: string;
  14. year: string;
  15. years: string;
  16. month: string;
  17. months: string;
  18. datetime: string;
  19. monthrange: string;
  20. yearrange: string;
  21. daterange: string;
  22. datetimerange: string;
  23. };
  24. type TimeUnit = (typeof timeUnits)[number];
  25. //#endregion
  26. export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, TimeUnit, timeUnits };