Skip to content

Commit

Permalink
add version 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pglejzer committed May 6, 2022
1 parent 14d5f0f commit c322104
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
10 changes: 7 additions & 3 deletions app/src/timepicker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export default class TimepickerUI {
private _isTouchMouseMove;
private _disabledTime;
private _cloned;
private _inputEvents;
private _isModalRemove?;
constructor(element: HTMLElement, options?: OptionTypes);
private get modalTemplate();
private get modalElement();
Expand Down Expand Up @@ -55,7 +57,7 @@ export default class TimepickerUI {
* or just boolean or just callback. If the boolean is set to true the input will be updating with the current value on picker.
* The callback function start immediately after close, if is invoke. The max parameters length is set to 2
*/
close: (...args: Array<boolean | TypeFunction>) => void;
close: (...args: (boolean | TypeFunction)[]) => void;
/**
* @description The destroy method destroy actual instance of picker by cloning element.
* @param callback - The callback function is started after destroyed method. This parameter is optional.
Expand Down Expand Up @@ -94,6 +96,7 @@ export default class TimepickerUI {
private _getInputValueOnOpenAndSet;
private _handleCancelButton;
private _handleOkButton;
private _setShowClassToBackdrop;
private _handleBackdropClick;
private _setBgColorToCirleWithHourTips;
private _setBgColorToCircleWithMinutesTips;
Expand All @@ -109,8 +112,9 @@ export default class TimepickerUI {
private _handlePmClick;
private _handleAnimationClock;
private _handleAnimationSwitchTipsMode;
private _handleHourClick;
private _handleMinutesClick;
private _handleClasses24h;
private _handleHourEvents;
private _handleMinutesEvents;
private _handleEventToMoveHand;
private _toggleClassActiveToValueTips;
private _handleMoveHand;
Expand Down
1 change: 1 addition & 0 deletions app/src/timepicker/utils/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ export declare const range: (start?: string | number | undefined, stop?: string
export declare const reverseRange: (start?: string | number | undefined, stop?: string | number | undefined) => number[];
export declare const initCallback: (callback?: (() => void) | undefined) => void;
export declare const timeConversion: (str?: string) => string;
export declare const debounce: <T extends (...args: any[]) => ReturnType<T>>(callback: T, timeout: number) => (...args: Parameters<T>) => void;
7 changes: 1 addition & 6 deletions app/src/timepicker/utils/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export declare type OptionTypes = {
*/
cancelLabel?: string;
/**
* @description Edit hour/minutes on the web mode. You have set option `preventDefault` to false.
* @description Edit hour/minutes on the web mode.
* @default false
*/
editable?: boolean;
Expand Down Expand Up @@ -94,11 +94,6 @@ export declare type OptionTypes = {
* @default "PM"
*/
pmLabel?: string;
/**
* @description Set on/off defaults events to clock face events
* @default true
*/
preventDefault?: boolean;
/**
* @description Set custom text to time label on desktop version
* @default "Select Time"
Expand Down
11 changes: 5 additions & 6 deletions app/src/timepicker/utils/variables.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
declare const name = 'timepicker-ui';
declare const mouseEvents = 'mousedown mouseup mousemove mouseleave mouseover';
declare const touchEvents = 'touchstart touchmove touchend';
declare const allEvents: string;
declare const selectorActive = 'active';
export { name, mouseEvents, touchEvents, allEvents, selectorActive };
export declare const name = "timepicker-ui";
export declare const mouseEvents = "mousedown mouseup mousemove mouseleave mouseover";
export declare const touchEvents = "touchstart touchmove touchend";
export declare const allEvents: string;
export declare const selectorActive = "active";

0 comments on commit c322104

Please sign in to comment.