props.ts 963 B

1234567891011121314151617181920212223242526272829303132333435
  1. import type { ClSelectDateShortcut, ClSelectOption } from "../../types";
  2. import type { ClSelectTriggerPassThrough } from "../cl-select-trigger/props";
  3. import type { ClPopupPassThrough } from "../cl-popup/props";
  4. export type ClSelectDatePassThrough = {
  5. trigger?: ClSelectTriggerPassThrough;
  6. popup?: ClPopupPassThrough;
  7. };
  8. export type ClSelectDateProps = {
  9. className?: string;
  10. pt?: ClSelectDatePassThrough;
  11. modelValue?: string;
  12. values?: string[];
  13. headers?: string[];
  14. title?: string;
  15. placeholder?: string;
  16. showTrigger?: boolean;
  17. disabled?: boolean;
  18. confirmText?: string;
  19. showConfirm?: boolean;
  20. cancelText?: string;
  21. showCancel?: boolean;
  22. labelFormat?: string;
  23. valueFormat?: string;
  24. start?: string;
  25. end?: string;
  26. type?: "year" | "month" | "date" | "hour" | "minute" | "second";
  27. rangeable?: boolean;
  28. startPlaceholder?: string;
  29. endPlaceholder?: string;
  30. rangeSeparator?: string;
  31. showShortcuts?: boolean;
  32. shortcuts?: ClSelectDateShortcut[];
  33. };