@wkly/datetime-picker 18.0.0 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdk-overlay/index.d.ts +32 -5
- package/fesm2022/wkly-datetime-picker-cdk-overlay.mjs +10 -10
- package/fesm2022/wkly-datetime-picker-cdk-overlay.mjs.map +1 -1
- package/fesm2022/wkly-datetime-picker.mjs +100 -95
- package/fesm2022/wkly-datetime-picker.mjs.map +1 -1
- package/index.d.ts +335 -5
- package/package.json +7 -11
- package/cdk-overlay/public-api.d.ts +0 -29
- package/config.d.ts +0 -85
- package/esm2022/cdk-overlay/public-api.mjs +0 -143
- package/esm2022/cdk-overlay/wkly-datetime-picker-cdk-overlay.mjs +0 -5
- package/esm2022/config.mjs +0 -136
- package/esm2022/field.component.mjs +0 -251
- package/esm2022/picker.component.mjs +0 -978
- package/esm2022/presentation.mjs +0 -330
- package/esm2022/public-api.mjs +0 -30
- package/esm2022/wkly-datetime-picker.mjs +0 -5
- package/field.component.d.ts +0 -44
- package/picker.component.d.ts +0 -137
- package/presentation.d.ts +0 -68
- package/public-api.d.ts +0 -15
package/presentation.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef, ComponentRef, ElementRef, EnvironmentInjector, Injector, OnDestroy } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
|
|
3
|
-
import { WklyCalendarDate, WklyPickerValue } from "@wkly/adapters";
|
|
4
|
-
import { WklyCloseReason, WklyJumpOptions, WklyPickerInputs } from "./config";
|
|
5
|
-
import { WklyDateTimePickerComponent } from "./picker.component";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export interface WklyPresentationRef {
|
|
8
|
-
readonly component: ComponentRef<WklyDateTimePickerComponent>;
|
|
9
|
-
destroy(): void;
|
|
10
|
-
}
|
|
11
|
-
/** Native-dialog factory. Browser resources are allocated only by open(). */
|
|
12
|
-
export declare class WklyDateTimePickerDialogService {
|
|
13
|
-
private environmentInjector;
|
|
14
|
-
private app;
|
|
15
|
-
private document;
|
|
16
|
-
private platform;
|
|
17
|
-
constructor(environmentInjector: EnvironmentInjector, app: ApplicationRef, document: Document, platform: Object);
|
|
18
|
-
open(trigger: HTMLElement, onCancel: (reason: WklyCloseReason) => void, backdrop?: boolean, injector?: Injector): WklyPresentationRef;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WklyDateTimePickerDialogService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WklyDateTimePickerDialogService>;
|
|
21
|
-
}
|
|
22
|
-
/** Shared trigger lifecycle; optional presentation packages extend this class. */
|
|
23
|
-
export declare abstract class WklyTriggerBase extends WklyPickerInputs implements ControlValueAccessor, Validator, OnDestroy {
|
|
24
|
-
protected element: ElementRef<HTMLElement>;
|
|
25
|
-
protected ref: WklyPresentationRef | null;
|
|
26
|
-
protected subscriptions: {
|
|
27
|
-
unsubscribe(): void;
|
|
28
|
-
}[];
|
|
29
|
-
private errors;
|
|
30
|
-
private change;
|
|
31
|
-
private touched;
|
|
32
|
-
private validation;
|
|
33
|
-
private readonly formValue;
|
|
34
|
-
private readonly formDisabled;
|
|
35
|
-
private previousInputs?;
|
|
36
|
-
private currentValue;
|
|
37
|
-
private isDisabled;
|
|
38
|
-
constructor(element: ElementRef<HTMLElement>);
|
|
39
|
-
protected abstract create(): WklyPresentationRef;
|
|
40
|
-
open(): void;
|
|
41
|
-
key(event: KeyboardEvent): void;
|
|
42
|
-
blur(): void;
|
|
43
|
-
close(reason?: WklyCloseReason): void;
|
|
44
|
-
ngOnDestroy(): void;
|
|
45
|
-
private copy;
|
|
46
|
-
private display;
|
|
47
|
-
private checkValue;
|
|
48
|
-
writeValue(value: WklyPickerValue): void;
|
|
49
|
-
registerOnChange(fn: (value: WklyPickerValue) => void): void;
|
|
50
|
-
registerOnTouched(fn: () => void): void;
|
|
51
|
-
setDisabledState(value: boolean): void;
|
|
52
|
-
validate(): ValidationErrors | null;
|
|
53
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
54
|
-
scrollToEpochDay(day: number, options?: WklyJumpOptions): void;
|
|
55
|
-
scrollToAbsoluteWeek(week: number, options?: WklyJumpOptions): void;
|
|
56
|
-
scrollToCalendarDate(date: WklyCalendarDate, options?: WklyJumpOptions): void;
|
|
57
|
-
scrollToValue(value: string, options?: WklyJumpOptions): void;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WklyTriggerBase, never>;
|
|
59
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WklyTriggerBase, never, never, {}, {}, never, never, false, never>;
|
|
60
|
-
}
|
|
61
|
-
export declare class WklyDateTimePickerDialogDirective extends WklyTriggerBase {
|
|
62
|
-
private service;
|
|
63
|
-
private triggerInjector;
|
|
64
|
-
constructor(element: ElementRef<HTMLElement>, service: WklyDateTimePickerDialogService, triggerInjector: Injector);
|
|
65
|
-
protected create(): WklyPresentationRef;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WklyDateTimePickerDialogDirective, never>;
|
|
67
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WklyDateTimePickerDialogDirective, "[wklyDateTimePickerDialog]", ["wklyDialog"], {}, {}, never, never, false, never>;
|
|
68
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./picker.component";
|
|
3
|
-
import * as i2 from "./presentation";
|
|
4
|
-
import * as i3 from "./field.component";
|
|
5
|
-
import * as i4 from "@angular/common";
|
|
6
|
-
export * from "./config";
|
|
7
|
-
export { WklyDateTimePickerComponent } from "./picker.component";
|
|
8
|
-
export { WklyPresentationRef, WklyDateTimePickerDialogService, WklyTriggerBase, WklyDateTimePickerDialogDirective, } from "./presentation";
|
|
9
|
-
export { WklyFieldComponent } from "./field.component";
|
|
10
|
-
export { WklyPickerValue, WklyIsoString, WklyRangeValue, WklySelectionMode, WklyValidationError, WklyValidationErrorCode, WklyViewportPreset, WklyHourCycle, WklyEndpoint, WklyDisabledDatePredicate, WklyDisabledTimePredicate, WklyRangeValidator, WklyWeekLabelMode, WklyWeekLabelFormatter, } from "@wkly/adapters";
|
|
11
|
-
export declare class WklyDateTimePickerModule {
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WklyDateTimePickerModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WklyDateTimePickerModule, [typeof i1.WklyDateTimePickerComponent, typeof i2.WklyDateTimePickerDialogDirective, typeof i3.WklyFieldComponent], [typeof i4.CommonModule], [typeof i1.WklyDateTimePickerComponent, typeof i2.WklyDateTimePickerDialogDirective]>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<WklyDateTimePickerModule>;
|
|
15
|
-
}
|