@tedi-design-system/angular 6.5.0-rc.3 → 6.5.0-rc.4
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/fesm2022/tedi-design-system-angular-tedi.mjs +1522 -574
- package/fesm2022/tedi-design-system-angular-tedi.mjs.map +1 -1
- package/package.json +1 -1
- package/tedi/components/form/form-field/form-field.component.d.ts +1 -1
- package/tedi/components/form/index.d.ts +3 -1
- package/tedi/components/form/index.d.ts.map +1 -1
- package/tedi/components/form/time-field/index.d.ts +2 -0
- package/tedi/components/form/time-field/index.d.ts.map +1 -0
- package/tedi/components/form/time-field/time-field.component.d.ts +104 -0
- package/tedi/components/form/time-field/time-field.component.d.ts.map +1 -0
- package/tedi/components/form/time-field/time-picker-modal.component.d.ts +26 -0
- package/tedi/components/form/time-field/time-picker-modal.component.d.ts.map +1 -0
- package/tedi/components/form/time-picker/index.d.ts +2 -0
- package/tedi/components/form/time-picker/index.d.ts.map +1 -0
- package/tedi/components/form/time-picker/time-picker.component.d.ts +99 -0
- package/tedi/components/form/time-picker/time-picker.component.d.ts.map +1 -0
- package/tedi/components/helpers/scroll-fade/scroll-fade.component.d.ts +4 -2
- package/tedi/components/helpers/scroll-fade/scroll-fade.component.d.ts.map +1 -1
- package/tedi/components/overlay/popover/popover-content/popover-content.component.d.ts.map +1 -1
- package/tedi/services/translation/translations.d.ts +56 -0
- package/tedi/services/translation/translations.d.ts.map +1 -1
- package/tedi/utils/time.util.d.ts +22 -0
- package/tedi/utils/time.util.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ export declare class FormFieldComponent implements AfterContentInit {
|
|
|
57
57
|
}>;
|
|
58
58
|
clear(): void;
|
|
59
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "tedi-form-field", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, ["control", "ngControl", "feedback"], ["label[tedi-label]", "input[tedi-text-field]", "tedi-feedback-text"], true, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "tedi-form-field", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, ["control", "ngControl", "feedback"], ["label[tedi-label]", "input[tedi-text-field], tedi-time-field", "tedi-feedback-text"], true, never>;
|
|
61
61
|
}
|
|
62
62
|
export {};
|
|
63
63
|
//# sourceMappingURL=form-field.component.d.ts.map
|
|
@@ -12,7 +12,9 @@ export * from "./label/label.component";
|
|
|
12
12
|
export * from "./number-field/number-field.component";
|
|
13
13
|
export * from "./select";
|
|
14
14
|
export * from "./toggle/toggle.component";
|
|
15
|
-
export * from "./date-picker/date-picker.component";
|
|
16
15
|
export * from "./form-field/form-field.component";
|
|
16
|
+
export * from "./form-field/form-field-control";
|
|
17
17
|
export * from "./text-field/text-field.component";
|
|
18
|
+
export * from "./time-field";
|
|
19
|
+
export * from "./time-picker";
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../tedi/components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qDAAqD,CAAC;AACpE,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../tedi/components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qDAAqD,CAAC;AACpE,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/time-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
+
import { PopoverComponent } from "../../overlay/popover/popover.component";
|
|
4
|
+
import { TimePickerComponent, TimePickerVariant } from "../time-picker/time-picker.component";
|
|
5
|
+
import { ModalFullscreen } from "../../overlay/modal/modal.types";
|
|
6
|
+
import { FormFieldControl } from "../form-field/form-field-control";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export type TimeFieldPickerVariant = TimePickerVariant | "none";
|
|
9
|
+
export type TimeFieldPickerTrigger = "button" | "input";
|
|
10
|
+
export type TimeFieldModal = boolean | "sm" | "md" | "lg" | "xl";
|
|
11
|
+
export type TimeFieldFullscreen = ModalFullscreen;
|
|
12
|
+
export type TimeFieldUseNativePicker = boolean | "sm" | "md" | "lg" | "xl";
|
|
13
|
+
export declare class TimeFieldComponent implements ControlValueAccessor, FormFieldControl<string | null> {
|
|
14
|
+
/** Unique ID for label association and accessibility. */
|
|
15
|
+
readonly inputId: import("@angular/core").InputSignal<string>;
|
|
16
|
+
/** Selected time in `HH:mm` format. Two-way bindable. */
|
|
17
|
+
readonly value: import("@angular/core").ModelSignal<string | null>;
|
|
18
|
+
/** Placeholder shown when the input is empty. */
|
|
19
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Manually mark the field as invalid. Sets `aria-invalid` on the input and triggers
|
|
22
|
+
* the form-field's invalid styling. Combines with reactive-form validity reported
|
|
23
|
+
* via `setInvalidState`.
|
|
24
|
+
*/
|
|
25
|
+
protected readonly invalidInput: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
/** Disables interaction. Combines with the form-control disabled state. */
|
|
27
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
/** Show a clear button when the field has a value. */
|
|
29
|
+
readonly clearable: import("@angular/core").InputSignal<boolean>;
|
|
30
|
+
/** Picker variant. `none` renders just the input with no picker UI — typed input is still normalized on blur. */
|
|
31
|
+
readonly pickerVariant: import("@angular/core").InputSignal<TimeFieldPickerVariant>;
|
|
32
|
+
/**
|
|
33
|
+
* Use the OS native time picker instead of the custom one. `true` always, `false` never, breakpoint name → native below that breakpoint (custom from that breakpoint up).
|
|
34
|
+
* When resolved to `true`, overrides `pickerVariant` and `modal` — the input renders as `type="time"`.
|
|
35
|
+
*/
|
|
36
|
+
readonly useNativePicker: import("@angular/core").InputSignal<TimeFieldUseNativePicker>;
|
|
37
|
+
/** What opens the picker: only the icon (`button`) or also clicking the input (`input`). */
|
|
38
|
+
readonly pickerTrigger: import("@angular/core").InputSignal<TimeFieldPickerTrigger>;
|
|
39
|
+
/** Close the popover/modal as soon as the user picks a value. */
|
|
40
|
+
readonly closeOnSelect: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
/** Predefined `HH:mm` strings for the `slots` and `dropdown` variants. */
|
|
42
|
+
readonly timeSlots: import("@angular/core").InputSignal<string[]>;
|
|
43
|
+
/** Grid columns for the `slots` variant. */
|
|
44
|
+
readonly columns: import("@angular/core").InputSignal<number>;
|
|
45
|
+
/** Show the radio indicator dot on each card in the `slots` variant. */
|
|
46
|
+
readonly showSlotIndicator: import("@angular/core").InputSignal<boolean>;
|
|
47
|
+
/** Minute step for the `scroll` variant — e.g. `5` renders `00, 05, 10…`. */
|
|
48
|
+
readonly minuteStep: import("@angular/core").InputSignal<number>;
|
|
49
|
+
/** Open the picker in a modal: `true` always, `false` never, breakpoint name → modal below that breakpoint. */
|
|
50
|
+
readonly modal: import("@angular/core").InputSignal<TimeFieldModal>;
|
|
51
|
+
/** Make the mobile modal fullscreen: `true` always, `false` never, breakpoint name → fullscreen below that breakpoint. Only applies when the picker actually opens as a modal. */
|
|
52
|
+
readonly fullscreen: import("@angular/core").InputSignal<import("../../../services/breakpoint/breakpoint.service").BreakpointFlag>;
|
|
53
|
+
private readonly breakpointService;
|
|
54
|
+
private readonly modalService;
|
|
55
|
+
private readonly injector;
|
|
56
|
+
readonly inputElement: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
57
|
+
readonly fieldEl: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
58
|
+
readonly popover: import("@angular/core").Signal<PopoverComponent | undefined>;
|
|
59
|
+
readonly timePicker: import("@angular/core").Signal<TimePickerComponent | undefined>;
|
|
60
|
+
readonly dropdownMinWidth: import("@angular/core").WritableSignal<number | null>;
|
|
61
|
+
readonly inputValue: import("@angular/core").WritableSignal<string>;
|
|
62
|
+
private formDisabled;
|
|
63
|
+
private formInvalid;
|
|
64
|
+
private onChange;
|
|
65
|
+
private onTouched;
|
|
66
|
+
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
67
|
+
readonly invalid: import("@angular/core").Signal<boolean>;
|
|
68
|
+
readonly hasValue: import("@angular/core").Signal<boolean>;
|
|
69
|
+
readonly showClear: import("@angular/core").Signal<boolean>;
|
|
70
|
+
readonly useNativePickerResolved: import("@angular/core").Signal<boolean>;
|
|
71
|
+
readonly hasPicker: import("@angular/core").Signal<boolean>;
|
|
72
|
+
readonly hasNativePicker: import("@angular/core").Signal<boolean>;
|
|
73
|
+
readonly customPickerVariant: import("@angular/core").Signal<TimePickerVariant>;
|
|
74
|
+
readonly inputType: import("@angular/core").Signal<"time" | "text">;
|
|
75
|
+
readonly inputIsTrigger: import("@angular/core").Signal<boolean>;
|
|
76
|
+
readonly useMobileModal: import("@angular/core").Signal<boolean>;
|
|
77
|
+
readonly usePopover: import("@angular/core").Signal<boolean>;
|
|
78
|
+
readonly popoverPosition: import("@angular/core").Signal<"bottom-start" | "bottom-end">;
|
|
79
|
+
popoverIsOpen(): boolean;
|
|
80
|
+
constructor();
|
|
81
|
+
writeValue(value: string | null): void;
|
|
82
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
83
|
+
registerOnTouched(fn: () => void): void;
|
|
84
|
+
setDisabledState(disabled: boolean): void;
|
|
85
|
+
setInvalidState(isInvalid: boolean): void;
|
|
86
|
+
handleInput(event: Event): void;
|
|
87
|
+
handleBlur(): void;
|
|
88
|
+
clearInput(): void;
|
|
89
|
+
clearField(): void;
|
|
90
|
+
openNativePicker(): void;
|
|
91
|
+
onInputClick(event: MouseEvent): void;
|
|
92
|
+
onFieldClick(): void;
|
|
93
|
+
onIconClick(): void;
|
|
94
|
+
onClearClick(event: MouseEvent): void;
|
|
95
|
+
onFieldFocus(event: FocusEvent): void;
|
|
96
|
+
openPicker(): void;
|
|
97
|
+
private openMobileModal;
|
|
98
|
+
onPickerOpen(): void;
|
|
99
|
+
onPickerValueChange(newValue: string | null): void;
|
|
100
|
+
closePopover(notifyTouched?: boolean): void;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeFieldComponent, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimeFieldComponent, "tedi-time-field", never, { "inputId": { "alias": "inputId"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "pickerVariant": { "alias": "pickerVariant"; "required": false; "isSignal": true; }; "useNativePicker": { "alias": "useNativePicker"; "required": false; "isSignal": true; }; "pickerTrigger": { "alias": "pickerTrigger"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "timeSlots": { "alias": "timeSlots"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "showSlotIndicator": { "alias": "showSlotIndicator"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=time-field.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-field.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/time-field/time-field.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EAUX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAMzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AA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,KAAK,IAAI,GAAG,IAAI;IAI1D,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAIvC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAIzC,eAAe,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAIzC,WAAW,CAAC,KAAK,EAAE,KAAK;IAaxB,UAAU;IAyBV,UAAU;IAOV,UAAU;IAIV,gBAAgB;IAahB,YAAY,CAAC,KAAK,EAAE,UAAU;IAgB9B,YAAY;IASZ,WAAW;IAIX,YAAY,CAAC,KAAK,EAAE,UAAU;IAU9B,YAAY,CAAC,KAAK,EAAE,UAAU;IAK9B,UAAU;IAYV,OAAO,CAAC,eAAe;IAkCvB,YAAY;IA4BZ,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAmB3C,YAAY,CAAC,aAAa,UAAO;yCA/VtB,kBAAkB;2CAAlB,kBAAkB;CAoW9B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from "@angular/core";
|
|
2
|
+
import { TimePickerVariant } from "../time-picker/time-picker.component";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface TimePickerModalData {
|
|
5
|
+
value: string | null;
|
|
6
|
+
variant: TimePickerVariant;
|
|
7
|
+
timeSlots: string[];
|
|
8
|
+
columns: number;
|
|
9
|
+
showSlotIndicator: boolean;
|
|
10
|
+
minuteStep: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class TimePickerModalComponent implements AfterViewInit, OnDestroy {
|
|
13
|
+
readonly data: TimePickerModalData;
|
|
14
|
+
private readonly ref;
|
|
15
|
+
private readonly host;
|
|
16
|
+
readonly draft: import("@angular/core").WritableSignal<string | null>;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
cancel(): void;
|
|
20
|
+
confirm(): void;
|
|
21
|
+
onSubmit(event: Event): void;
|
|
22
|
+
private onCaptureKeydown;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerModalComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerModalComponent, "tedi-time-picker-modal", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=time-picker-modal.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-modal.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/time-field/time-picker-modal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKb,SAAS,EAGV,MAAM,eAAe,CAAC;AASvB,OAAO,EAEL,iBAAiB,EAClB,MAAM,sCAAsC,CAAC;;AAE9C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAiBa,wBAAyB,YAAW,aAAa,EAAE,SAAS;IACvE,QAAQ,CAAC,IAAI,EAAyB,mBAAmB,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAmC;IACvD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmC;IAExD,QAAQ,CAAC,KAAK,wDAA0C;IAExD,eAAe,IAAI,IAAI;IAIvB,WAAW,IAAI,IAAI;IAInB,MAAM,IAAI,IAAI;IAId,OAAO,IAAI,IAAI;IAIf,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK5B,OAAO,CAAC,gBAAgB,CAUtB;yCAtCS,wBAAwB;2CAAxB,wBAAwB;CAuCpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/time-picker/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, OnDestroy } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type TimePickerVariant = "scroll" | "slots" | "dropdown";
|
|
5
|
+
type WheelType = "hour" | "minute";
|
|
6
|
+
export declare class TimePickerComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
7
|
+
/** Selected time in `HH:mm` format. Two-way bindable. */
|
|
8
|
+
readonly value: import("@angular/core").ModelSignal<string | null>;
|
|
9
|
+
/** Visual variant. `scroll` shows hour/minute wheels, `slots` a grid of fixed times, `dropdown` a list. */
|
|
10
|
+
readonly variant: import("@angular/core").InputSignal<TimePickerVariant>;
|
|
11
|
+
/** Predefined times for the `slots` and `dropdown` variants (`HH:mm` strings). */
|
|
12
|
+
readonly timeSlots: import("@angular/core").InputSignal<string[]>;
|
|
13
|
+
/** Number of columns for the `slots` grid. */
|
|
14
|
+
readonly columns: import("@angular/core").InputSignal<number>;
|
|
15
|
+
/** Show the radio indicator dot on each card in the `slots` variant. Has no effect on other variants. */
|
|
16
|
+
readonly showSlotIndicator: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
/** Minute step for the `scroll` variant — e.g. `5` renders `00, 05, 10…`. */
|
|
18
|
+
readonly minuteStep: import("@angular/core").InputSignal<number>;
|
|
19
|
+
/** Disables interaction. Combines with the form-control disabled state. */
|
|
20
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
/** Render the picker with a surrounding border — useful when embedded inside other content where it needs to stand apart. */
|
|
22
|
+
readonly border: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
/** Trap Tab between hour/minute columns (`scroll`) or emit `closeRequested` (`slots`/`dropdown`). */
|
|
24
|
+
readonly trapFocus: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
/** Emitted when the picker requests to be closed (Tab while `trapFocus` is `true`). */
|
|
26
|
+
readonly closeRequested: import("@angular/core").OutputEmitterRef<void>;
|
|
27
|
+
private readonly el;
|
|
28
|
+
private readonly uniqueId;
|
|
29
|
+
private readonly formDisabled;
|
|
30
|
+
private onChange;
|
|
31
|
+
private onTouched;
|
|
32
|
+
private initialized;
|
|
33
|
+
private readonly isProgrammaticScroll;
|
|
34
|
+
private readonly scrollLockTimer;
|
|
35
|
+
private readonly scrollDebounceTimer;
|
|
36
|
+
private cachedItemHeight;
|
|
37
|
+
private resizeObserver;
|
|
38
|
+
private readonly hourScrollIndex;
|
|
39
|
+
private readonly minuteScrollIndex;
|
|
40
|
+
readonly hourColumns: import("@angular/core").Signal<readonly ElementRef<HTMLElement>[]>;
|
|
41
|
+
readonly minuteColumns: import("@angular/core").Signal<readonly ElementRef<HTMLElement>[]>;
|
|
42
|
+
/**
|
|
43
|
+
* The current `value` after validation. Invalid strings (e.g. `"25:99"`,
|
|
44
|
+
* `"abc"`, anything not matching `HH:mm`) collapse to `null`, so the picker
|
|
45
|
+
* renders as "no selection" instead of trying to scroll to a nonexistent
|
|
46
|
+
* row. The `value` model itself is left untouched — consumers using
|
|
47
|
+
* reactive forms can still see their invalid state.
|
|
48
|
+
*/
|
|
49
|
+
private readonly safeValue;
|
|
50
|
+
readonly selectedHour: import("@angular/core").Signal<number | null>;
|
|
51
|
+
readonly selectedMinute: import("@angular/core").Signal<number | null>;
|
|
52
|
+
readonly hours: string[];
|
|
53
|
+
readonly minutes: import("@angular/core").Signal<string[]>;
|
|
54
|
+
readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
55
|
+
readonly gridStyle: import("@angular/core").Signal<string>;
|
|
56
|
+
readonly selectedHourIndex: import("@angular/core").Signal<number>;
|
|
57
|
+
readonly selectedMinuteIndex: import("@angular/core").Signal<number>;
|
|
58
|
+
readonly highlightedHourIndex: import("@angular/core").Signal<number>;
|
|
59
|
+
readonly highlightedMinuteIndex: import("@angular/core").Signal<number>;
|
|
60
|
+
readonly hourActiveId: import("@angular/core").Signal<string>;
|
|
61
|
+
readonly minuteActiveId: import("@angular/core").Signal<string>;
|
|
62
|
+
hourItemId(index: number): string;
|
|
63
|
+
minuteItemId(index: number): string;
|
|
64
|
+
slotId(index: number): string;
|
|
65
|
+
get radioGroupName(): string;
|
|
66
|
+
onRadioChange(slot: string): void;
|
|
67
|
+
constructor();
|
|
68
|
+
ngAfterViewInit(): void;
|
|
69
|
+
private measureItemHeight;
|
|
70
|
+
private getItemHeight;
|
|
71
|
+
ngOnDestroy(): void;
|
|
72
|
+
writeValue(value: string | null): void;
|
|
73
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
74
|
+
registerOnTouched(fn: () => void): void;
|
|
75
|
+
setDisabledState(disabled: boolean): void;
|
|
76
|
+
selectHour(hour: string): void;
|
|
77
|
+
selectMinute(minute: string): void;
|
|
78
|
+
selectSlot(slot: string): void;
|
|
79
|
+
isSlotSelected(slot: string): boolean;
|
|
80
|
+
onHourClick(hour: string): void;
|
|
81
|
+
onMinuteClick(minute: string): void;
|
|
82
|
+
onColumnKeydown(event: KeyboardEvent, type: WheelType): void;
|
|
83
|
+
private computeWheelMove;
|
|
84
|
+
onColumnScroll(type: WheelType): void;
|
|
85
|
+
/** Roving-tabindex helper for dropdown items: only the selected item (or the first
|
|
86
|
+
* when nothing is selected yet) is in the tab sequence. */
|
|
87
|
+
getDropdownTabIndex(index: number): number;
|
|
88
|
+
onDropdownKeydown(event: KeyboardEvent): void;
|
|
89
|
+
private focusOtherColumn;
|
|
90
|
+
focusActiveItem(): void;
|
|
91
|
+
scrollToSelected(): void;
|
|
92
|
+
private getColumnElement;
|
|
93
|
+
private alignScroll;
|
|
94
|
+
private scrollColumnToIndex;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "tedi-time-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "timeSlots": { "alias": "timeSlots"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "showSlotIndicator": { "alias": "showSlotIndicator"; "required": false; "isSignal": true; }; "minuteStep": { "alias": "minuteStep"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "trapFocus": { "alias": "trapFocus"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "closeRequested": "closeRequested"; }, never, never, true, never>;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=time-picker.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/time-picker/time-picker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EASV,aAAa,EACb,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;;AAQzE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAOhE,KAAK,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnC,qBA6Ba,mBAAoB,YAAW,oBAAoB,EAAE,aAAa,EAAE,SAAS;IACxF,yDAAyD;IACzD,QAAQ,CAAC,KAAK,qDAA8B;IAC5C,2GAA2G;IAC3G,QAAQ,CAAC,OAAO,yDAAsC;IACtD,kFAAkF;IAClF,QAAQ,CAAC,SAAS,gDAAuB;IACzC,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,8CAAoB;IACpC,yGAAyG;IACzG,QAAQ,CAAC,iBAAiB,+CAAyB;IACnD,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,8CAAoB;IACvC,2EAA2E;IAC3E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Ae,IAAI,IAAI;IA6BvB,gBAAgB,IAAI,IAAI;IAIxB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,mBAAmB;yCA7ahB,mBAAmB;2CAAnB,mBAAmB;CA4c/B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AfterViewInit } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, OnDestroy } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export type ScrollFadeSize = 0 | 10 | 20;
|
|
4
4
|
export type ScrollFadePosition = "top" | "bottom" | "both";
|
|
5
5
|
export type ScrollFadeScrollbar = "default" | "custom";
|
|
6
|
-
export declare class ScrollFadeComponent implements AfterViewInit {
|
|
6
|
+
export declare class ScrollFadeComponent implements AfterViewInit, OnDestroy {
|
|
7
7
|
/** Size of the fade gradient in percentages. */
|
|
8
8
|
readonly fadeSize: import("@angular/core").InputSignal<ScrollFadeSize>;
|
|
9
9
|
/** Which edges show the fade. */
|
|
@@ -15,11 +15,13 @@ export declare class ScrollFadeComponent implements AfterViewInit {
|
|
|
15
15
|
/** Emitted when scrolled to the bottom. */
|
|
16
16
|
readonly scrolledToBottom: import("@angular/core").OutputEmitterRef<void>;
|
|
17
17
|
private readonly innerRef;
|
|
18
|
+
private resizeObserver;
|
|
18
19
|
private readonly fade;
|
|
19
20
|
readonly classes: import("@angular/core").Signal<string>;
|
|
20
21
|
readonly innerClasses: import("@angular/core").Signal<string>;
|
|
21
22
|
onScroll(): void;
|
|
22
23
|
ngAfterViewInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
23
25
|
private updateFade;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollFadeComponent, never>;
|
|
25
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollFadeComponent, "tedi-scroll-fade", never, { "fadeSize": { "alias": "fadeSize"; "required": false; "isSignal": true; }; "fadePosition": { "alias": "fadePosition"; "required": false; "isSignal": true; }; "scrollBar": { "alias": "scrollBar"; "required": false; "isSignal": true; }; }, { "scrolledToTop": "scrolledToTop"; "scrolledToBottom": "scrolledToBottom"; }, never, ["*"], true, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-fade.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/helpers/scroll-fade/scroll-fade.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"scroll-fade.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/helpers/scroll-fade/scroll-fade.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAIb,SAAS,EAOV,MAAM,eAAe,CAAC;;AAEvB,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;AACzC,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEvD,qBAWa,mBAAoB,YAAW,aAAa,EAAE,SAAS;IAClE,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,sDAA6B;IAE9C,iCAAiC;IACjC,QAAQ,CAAC,YAAY,0DAAqC;IAE1D,uBAAuB;IACvB,QAAQ,CAAC,SAAS,2DAAwC;IAE1D,wCAAwC;IACxC,QAAQ,CAAC,aAAa,iDAAkB;IAExC,2CAA2C;IAC3C,QAAQ,CAAC,gBAAgB,iDAAkB;IAE3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2D;IACpF,OAAO,CAAC,cAAc,CAA+B;IAErD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyC;IAE9D,QAAQ,CAAC,OAAO,yCAeb;IAEH,QAAQ,CAAC,YAAY,yCAQlB;IAEH,QAAQ,IAAI,IAAI;IAKhB,eAAe,IAAI,IAAI;IAUvB,WAAW,IAAI,IAAI;IAInB,OAAO,CAAC,UAAU;yCAnEP,mBAAmB;2CAAnB,mBAAmB;CAiF/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-content.component.d.ts","sourceRoot":"","sources":["../../../../../../tedi/components/overlay/popover/popover-content/popover-content.component.ts"],"names":[],"mappings":";AAYA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAIjE,qBAYa,uBAAuB;IAClC;;;OAGG;IACH,QAAQ,oDAAgC;IACxC;;OAEG;IACH,KAAK,8CAAa;IAClB;;;OAGG;IACH,SAAS,+CAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;IACpD,OAAO,SAAuC;IAE9C,OAAO,
|
|
1
|
+
{"version":3,"file":"popover-content.component.d.ts","sourceRoot":"","sources":["../../../../../../tedi/components/overlay/popover/popover-content/popover-content.component.ts"],"names":[],"mappings":";AAYA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAIjE,qBAYa,uBAAuB;IAClC;;;OAGG;IACH,QAAQ,oDAAgC;IACxC;;OAEG;IACH,KAAK,8CAAa;IAClB;;;OAGG;IACH,SAAS,+CAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;IACpD,OAAO,SAAuC;IAE9C,OAAO,yCAOJ;IAEH,WAAW;yCA5BA,uBAAuB;2CAAvB,uBAAuB;CA+BnC"}
|
|
@@ -1021,6 +1021,62 @@ export declare const translationsMap: {
|
|
|
1021
1021
|
en: string;
|
|
1022
1022
|
ru: string;
|
|
1023
1023
|
};
|
|
1024
|
+
"time-picker.hours": {
|
|
1025
|
+
description: string;
|
|
1026
|
+
components: string[];
|
|
1027
|
+
et: string;
|
|
1028
|
+
en: string;
|
|
1029
|
+
ru: string;
|
|
1030
|
+
};
|
|
1031
|
+
"time-picker.minutes": {
|
|
1032
|
+
description: string;
|
|
1033
|
+
components: string[];
|
|
1034
|
+
et: string;
|
|
1035
|
+
en: string;
|
|
1036
|
+
ru: string;
|
|
1037
|
+
};
|
|
1038
|
+
"time-field.clear": {
|
|
1039
|
+
description: string;
|
|
1040
|
+
components: string[];
|
|
1041
|
+
et: string;
|
|
1042
|
+
en: string;
|
|
1043
|
+
ru: string;
|
|
1044
|
+
};
|
|
1045
|
+
"time-field.select-time": {
|
|
1046
|
+
description: string;
|
|
1047
|
+
components: string[];
|
|
1048
|
+
et: string;
|
|
1049
|
+
en: string;
|
|
1050
|
+
ru: string;
|
|
1051
|
+
};
|
|
1052
|
+
"time-field.modal-title": {
|
|
1053
|
+
description: string;
|
|
1054
|
+
components: string[];
|
|
1055
|
+
et: string;
|
|
1056
|
+
en: string;
|
|
1057
|
+
ru: string;
|
|
1058
|
+
};
|
|
1059
|
+
"time-field.confirm": {
|
|
1060
|
+
description: string;
|
|
1061
|
+
components: string[];
|
|
1062
|
+
et: string;
|
|
1063
|
+
en: string;
|
|
1064
|
+
ru: string;
|
|
1065
|
+
};
|
|
1066
|
+
"time-field.cancel": {
|
|
1067
|
+
description: string;
|
|
1068
|
+
components: string[];
|
|
1069
|
+
et: string;
|
|
1070
|
+
en: string;
|
|
1071
|
+
ru: string;
|
|
1072
|
+
};
|
|
1073
|
+
"time-picker.no-slots": {
|
|
1074
|
+
description: string;
|
|
1075
|
+
components: string[];
|
|
1076
|
+
et: string;
|
|
1077
|
+
en: string;
|
|
1078
|
+
ru: string;
|
|
1079
|
+
};
|
|
1024
1080
|
"vertical-stepper.completed": {
|
|
1025
1081
|
description: string;
|
|
1026
1082
|
components: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../tedi/services/translation/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAAO;;;;;;;;;;;;;;;;;;;qBAuBzB,MAAM;qBACN,MAAM;qBACN,MAAM;;;;;;;;;;;;oBAaP,MAAM,UAAU,MAAM;oBACtB,MAAM,UAAU,MAAM;oBACtB,MAAM,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;oBA4BtB,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;;;;;oBAKf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;oBA0Bf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;;;;;oBAKf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;;;;;oBAMf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;oBACf,MAAM,GAAG,MAAM;;;;;;;;;;;;qBAYd,OAAO;qBACP,OAAO;qBACP,OAAO;;;;;oBAKR,MAAM,UAAU,OAAO;oBACvB,MAAM,UAAU,OAAO;oBACvB,MAAM,UAAU,OAAO;;;;;;;;;;;;0BAYjB,MAAM,eAAe,MAAM;0BAE3B,MAAM,eAAe,MAAM;0BAE3B,MAAM,eAAe,MAAM;;;;;;;;;;;;;;;;;;;0BAoB3B,MAAM;0BACN,MAAM;0BACN,MAAM
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../tedi/services/translation/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiFX,OAAO;qBACP,OAAO;qBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AiZ3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,QAAQ,IAAI;KACnD,CAAC,IAAI,MAAM,OAAO,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,GAAG;KAED,CAAC,IAAI,QAAQ,GAAG,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a string is a valid `HH:mm` time (00:00 – 23:59).
|
|
3
|
+
*/
|
|
4
|
+
export declare function isValidTime(time: string | null | undefined): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Normalizes common typing patterns into `HH:mm`.
|
|
7
|
+
*
|
|
8
|
+
* Returns:
|
|
9
|
+
* - the canonical `HH:mm` string when the input can be normalized
|
|
10
|
+
* - `""` when the input is empty
|
|
11
|
+
* - `null` when the input is non-empty but cannot be normalized
|
|
12
|
+
*
|
|
13
|
+
* Examples:
|
|
14
|
+
* `"9:5"` → `"09:05"`
|
|
15
|
+
* `"14:5"` → `"14:05"`
|
|
16
|
+
* `"2359"` → `"23:59"`
|
|
17
|
+
* `"930"` → `"09:30"`
|
|
18
|
+
* `"11.55"` / `"11-55"` → `"11:55"` (any non-digit treated as separator)
|
|
19
|
+
* `"4:89"` / `"24:00"` → `null`
|
|
20
|
+
*/
|
|
21
|
+
export declare function normalizeTime(input: string): string | null;
|
|
22
|
+
//# sourceMappingURL=time.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.util.d.ts","sourceRoot":"","sources":["../../../tedi/utils/time.util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAGpE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA2B1D"}
|