Files
klz-cables.com/.pnpm-store/v10/files/d5/d828bbfe7d656eb084d0f000def97383c40828367b059b08817c20f0e785f18e53ba7016527d984bfb18a0da4026bc3269ff2f76398c5e42aeaa1b6f9da7e5
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

46 lines
1.6 KiB
Plaintext

import React, { Component } from "react";
import { type Locale, type TimeFilterOptions } from "./date_utils";
interface TimeProps extends Pick<TimeFilterOptions, "minTime" | "maxTime" | "excludeTimes" | "includeTimes" | "filterTime"> {
format?: string;
intervals?: number;
selected?: Date | null;
openToDate?: Date;
onChange?: (time: Date) => void;
timeClassName?: (time: Date) => string;
todayButton?: React.ReactNode;
monthRef?: HTMLDivElement;
timeCaption?: string;
injectTimes?: Date[];
handleOnKeyDown?: React.KeyboardEventHandler<HTMLLIElement>;
locale?: Locale;
showTimeSelectOnly?: boolean;
showTimeCaption?: boolean;
}
interface TimeState {
height: number | null;
}
export default class Time extends Component<TimeProps, TimeState> {
static get defaultProps(): {
intervals: number;
todayButton: null;
timeCaption: string;
showTimeCaption: boolean;
};
static calcCenterPosition: (listHeight: number, centerLiRef: HTMLLIElement) => number;
state: TimeState;
componentDidMount(): void;
private header?;
private list?;
private centerLi?;
scrollToTheSelectedTime: () => void;
handleClick: (time: Date) => void;
isSelectedTime: (time: Date) => boolean | null | undefined;
isDisabledTime: (time: Date) => boolean | undefined;
liClasses: (time: Date) => string;
handleOnKeyDown: (event: React.KeyboardEvent<HTMLLIElement>, time: Date) => void;
renderTimes: () => React.ReactElement[];
renderTimeCaption: () => React.ReactElement;
render(): React.JSX.Element;
}
export {};