@klippa/ngx-enhancy-forms 18.34.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.
Files changed (91) hide show
  1. package/fesm2022/klippa-ngx-enhancy-forms.mjs +145 -140
  2. package/fesm2022/klippa-ngx-enhancy-forms.mjs.map +1 -1
  3. package/index.d.ts +707 -3
  4. package/package.json +5 -7
  5. package/esm2022/klippa-ngx-enhancy-forms.mjs +0 -5
  6. package/esm2022/lib/elementIsTruncatedCb.component.mjs +0 -58
  7. package/esm2022/lib/elements/button/button.component.mjs +0 -57
  8. package/esm2022/lib/elements/checkbox/checkbox.component.mjs +0 -23
  9. package/esm2022/lib/elements/date-picker/date-picker.component.mjs +0 -108
  10. package/esm2022/lib/elements/date-time-picker/date-time-picker.component.mjs +0 -436
  11. package/esm2022/lib/elements/email/email-input.component.mjs +0 -21
  12. package/esm2022/lib/elements/file-input/file-input.component.mjs +0 -76
  13. package/esm2022/lib/elements/hour-minute-input/hour-minute-input.component.mjs +0 -90
  14. package/esm2022/lib/elements/loading-indicator/loading-indicator.component.mjs +0 -20
  15. package/esm2022/lib/elements/number-input/number-input.component.mjs +0 -31
  16. package/esm2022/lib/elements/password-field/password-field.component.mjs +0 -21
  17. package/esm2022/lib/elements/radio/radio.component.mjs +0 -34
  18. package/esm2022/lib/elements/select/select-footer/select-footer.component.mjs +0 -15
  19. package/esm2022/lib/elements/select/select.component.mjs +0 -385
  20. package/esm2022/lib/elements/sortable-grouped-items/sortable-grouped-items.component.mjs +0 -54
  21. package/esm2022/lib/elements/sortable-items/sortable-items.component.mjs +0 -189
  22. package/esm2022/lib/elements/text-area/text-area.component.mjs +0 -23
  23. package/esm2022/lib/elements/text-input/text-input.component.mjs +0 -52
  24. package/esm2022/lib/elements/toggle/toggle.component.mjs +0 -21
  25. package/esm2022/lib/elements/value-accessor-base/multiple-value-accessor-base.component.mjs +0 -61
  26. package/esm2022/lib/elements/value-accessor-base/value-accessor-base.component.mjs +0 -167
  27. package/esm2022/lib/form/form-caption/form-caption.component.mjs +0 -31
  28. package/esm2022/lib/form/form-caption-end/form-caption-end.component.mjs +0 -34
  29. package/esm2022/lib/form/form-element/form-element.component.mjs +0 -317
  30. package/esm2022/lib/form/form-error/form-error.component.mjs +0 -40
  31. package/esm2022/lib/form/form-submit-button/form-submit-button.component.mjs +0 -71
  32. package/esm2022/lib/form/form-validation-error/form-validation-error.mjs +0 -22
  33. package/esm2022/lib/form/form.component.mjs +0 -456
  34. package/esm2022/lib/material.module.mjs +0 -22
  35. package/esm2022/lib/ngx-enhancy-forms.module.mjs +0 -191
  36. package/esm2022/lib/onRender.component.mjs +0 -19
  37. package/esm2022/lib/types.mjs +0 -2
  38. package/esm2022/lib/util/angular.mjs +0 -9
  39. package/esm2022/lib/util/arrays.mjs +0 -48
  40. package/esm2022/lib/util/classes.mjs +0 -2
  41. package/esm2022/lib/util/dom.mjs +0 -15
  42. package/esm2022/lib/util/objects.mjs +0 -38
  43. package/esm2022/lib/util/values.mjs +0 -23
  44. package/esm2022/lib/validators/dateValidator.mjs +0 -6
  45. package/esm2022/lib/validators/timeValidator.mjs +0 -6
  46. package/esm2022/lib/warning-icon/warning-icon.component.mjs +0 -17
  47. package/esm2022/lib/withTooltip.component.mjs +0 -185
  48. package/esm2022/public-api.mjs +0 -38
  49. package/lib/elementIsTruncatedCb.component.d.ts +0 -14
  50. package/lib/elements/button/button.component.d.ts +0 -16
  51. package/lib/elements/checkbox/checkbox.component.d.ts +0 -8
  52. package/lib/elements/date-picker/date-picker.component.d.ts +0 -26
  53. package/lib/elements/date-time-picker/date-time-picker.component.d.ts +0 -83
  54. package/lib/elements/email/email-input.component.d.ts +0 -7
  55. package/lib/elements/file-input/file-input.component.d.ts +0 -18
  56. package/lib/elements/hour-minute-input/hour-minute-input.component.d.ts +0 -20
  57. package/lib/elements/loading-indicator/loading-indicator.component.d.ts +0 -7
  58. package/lib/elements/number-input/number-input.component.d.ts +0 -9
  59. package/lib/elements/password-field/password-field.component.d.ts +0 -7
  60. package/lib/elements/radio/radio.component.d.ts +0 -21
  61. package/lib/elements/select/select-footer/select-footer.component.d.ts +0 -7
  62. package/lib/elements/select/select.component.d.ts +0 -91
  63. package/lib/elements/sortable-grouped-items/sortable-grouped-items.component.d.ts +0 -12
  64. package/lib/elements/sortable-items/sortable-items.component.d.ts +0 -29
  65. package/lib/elements/text-area/text-area.component.d.ts +0 -9
  66. package/lib/elements/text-input/text-input.component.d.ts +0 -19
  67. package/lib/elements/toggle/toggle.component.d.ts +0 -7
  68. package/lib/elements/value-accessor-base/multiple-value-accessor-base.component.d.ts +0 -14
  69. package/lib/elements/value-accessor-base/value-accessor-base.component.d.ts +0 -50
  70. package/lib/form/form-caption/form-caption.component.d.ts +0 -11
  71. package/lib/form/form-caption-end/form-caption-end.component.d.ts +0 -12
  72. package/lib/form/form-element/form-element.component.d.ts +0 -81
  73. package/lib/form/form-error/form-error.component.d.ts +0 -15
  74. package/lib/form/form-submit-button/form-submit-button.component.d.ts +0 -21
  75. package/lib/form/form-validation-error/form-validation-error.d.ts +0 -10
  76. package/lib/form/form.component.d.ts +0 -62
  77. package/lib/material.module.d.ts +0 -11
  78. package/lib/ngx-enhancy-forms.module.d.ts +0 -41
  79. package/lib/onRender.component.d.ts +0 -8
  80. package/lib/types.d.ts +0 -16
  81. package/lib/util/angular.d.ts +0 -2
  82. package/lib/util/arrays.d.ts +0 -8
  83. package/lib/util/classes.d.ts +0 -1
  84. package/lib/util/dom.d.ts +0 -2
  85. package/lib/util/objects.d.ts +0 -1
  86. package/lib/util/values.d.ts +0 -6
  87. package/lib/validators/dateValidator.d.ts +0 -3
  88. package/lib/validators/timeValidator.d.ts +0 -3
  89. package/lib/warning-icon/warning-icon.component.d.ts +0 -6
  90. package/lib/withTooltip.component.d.ts +0 -23
  91. package/public-api.d.ts +0 -34
package/index.d.ts CHANGED
@@ -1,5 +1,709 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy, OnChanges, TemplateRef, EventEmitter, SimpleChanges, AfterViewInit, ElementRef, NgZone, InjectionToken, ChangeDetectorRef, QueryList, ApplicationRef } from '@angular/core';
3
+ import * as i32 from '@angular/forms';
4
+ import { FormGroup, FormArray, AbstractControl, UntypedFormArray, UntypedFormGroup, UntypedFormControl, ControlValueAccessor, ControlContainer, ValidationErrors } from '@angular/forms';
5
+ import * as i3 from '@angular/material/core';
6
+ import { MatDateFormats, DateAdapter } from '@angular/material/core';
7
+ import * as i1 from '@angular/material/datepicker';
8
+ import { MatDatepicker, DateFilterFn } from '@angular/material/datepicker';
9
+ import * as i31 from '@angular/common';
10
+ import * as i33 from '@ng-select/ng-select';
11
+ import * as i2 from '@angular/material/form-field';
12
+ import * as i4 from '@angular/material/input';
13
+ import * as i5 from '@angular/material/button';
14
+
15
+ interface FormErrorMessages {
16
+ min: string;
17
+ max: string;
18
+ required: string;
19
+ email: string;
20
+ minLength: string;
21
+ maxLength: string;
22
+ pattern: string;
23
+ matchPassword: string;
24
+ date: string;
25
+ formLevel?: string;
26
+ }
27
+ type CustomErrorMessages = Record<keyof FormErrorMessages, () => string>;
28
+ type KlpDateFormats = (format: string) => MatDateFormats;
29
+ type ErrorTypes = keyof FormErrorMessages | 'message' | 'async' | string;
30
+
31
+ declare const invalidFieldsSymbol: unique symbol;
32
+ type OnInjectedEmitterType = {
33
+ childValue: Record<string, any>;
34
+ parentValue: Record<string, any>;
35
+ };
36
+ declare class SubFormDirective {
37
+ injectInto: UntypedFormArray | UntypedFormGroup;
38
+ at: number | string;
39
+ manuallyTriggerInjection: boolean;
40
+ allowInjectionToOverwrite: boolean;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubFormDirective, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SubFormDirective, "klp-sub-form", never, { "injectInto": { "alias": "injectInto"; "required": false; }; "at": { "alias": "at"; "required": false; }; "manuallyTriggerInjection": { "alias": "manuallyTriggerInjection"; "required": false; }; "allowInjectionToOverwrite": { "alias": "allowInjectionToOverwrite"; "required": false; }; }, {}, never, never, false, never>;
43
+ }
44
+ declare class FormComponent implements OnInit, OnDestroy, OnChanges {
45
+ private parent;
46
+ private subFormDirective;
47
+ readOnly: boolean;
48
+ showErrorMessages: boolean;
49
+ errorMessageLocation: 'belowCaption' | 'rightOfCaption';
50
+ formGroup: FormGroup;
51
+ formArray: FormArray;
52
+ warnings: Map<AbstractControl, string | TemplateRef<any>>;
53
+ immutableValues: Record<string, any>;
54
+ errors: Map<AbstractControl, string>;
55
+ patchValueInterceptor: (values: any) => Promise<any>;
56
+ allowSubmitOn: 'buttonAndEnter' | 'buttonOnly';
57
+ onInjected: EventEmitter<OnInjectedEmitterType>;
58
+ private topLevelFormControl;
59
+ private activeControls;
60
+ constructor(parent: FormComponent, subFormDirective: SubFormDirective);
61
+ ngOnInit(): void;
62
+ _ext_attachAsSubForm(): void;
63
+ private attachAsSubForm;
64
+ ngOnChanges(simpleChanges: SimpleChanges): void;
65
+ ngOnDestroy(): void;
66
+ private patchFormWarningsMap;
67
+ private patchFormErrorsMap;
68
+ private addSupportForPatchValueInterceptor;
69
+ registerControl(formControl: UntypedFormControl, formElement: FormElementComponent): () => any;
70
+ private getPathFromParentToControl;
71
+ private getImmutableValueFromPath;
72
+ unregisterControl(formControl: UntypedFormControl): void;
73
+ private addFormGroupControls;
74
+ private addFormArrayControls;
75
+ private getAllFormControls;
76
+ private addFormControl;
77
+ private disableInactiveFormControl;
78
+ getFormElementByFormControl(control: AbstractControl): FormElementComponent;
79
+ getWarningToShow(control: AbstractControl): string | TemplateRef<any>;
80
+ trySubmit(): Promise<any>;
81
+ private handleSubmission;
82
+ private getRenderedFieldValuesFormGroup;
83
+ private getRenderedFieldValuesFormArray;
84
+ _ext_getRenderedFieldValues(): Record<string, any>;
85
+ private setDisabledStatesForAllControls;
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "klp-form", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "showErrorMessages": { "alias": "showErrorMessages"; "required": false; }; "errorMessageLocation": { "alias": "errorMessageLocation"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "warnings": { "alias": "warnings"; "required": false; }; "immutableValues": { "alias": "immutableValues"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "patchValueInterceptor": { "alias": "patchValueInterceptor"; "required": false; }; "allowSubmitOn": { "alias": "allowSubmitOn"; "required": false; }; }, { "onInjected": "onInjected"; }, never, ["*"], false, never>;
88
+ }
89
+
90
+ declare const FORM_ERROR_MESSAGES: InjectionToken<CustomErrorMessages>;
91
+ declare const DEFAULT_ERROR_MESSAGES: FormErrorMessages;
92
+ declare class FormElementComponent implements AfterViewInit, OnDestroy {
93
+ private parent;
94
+ private customMessages;
95
+ private elRef;
96
+ private ngZone;
97
+ attachedControl: AbstractControl;
98
+ caption: string;
99
+ direction: 'horizontal' | 'vertical';
100
+ captionSpacing: 'percentages' | 'none';
101
+ verticalAlignment: 'center' | 'top';
102
+ spaceDistribution: '40-60' | '34-66' | '30-70' | 'fixedInputWidth' | 'fixedCaptionWidth';
103
+ swapInputAndCaption: boolean;
104
+ errorMessageAsTooltip: boolean;
105
+ errorMessageHasMaxWidth: boolean;
106
+ internalComponentRef: ElementRef;
107
+ tailTpl: TemplateRef<any>;
108
+ captionDummyForSpaceCalculation: ElementRef;
109
+ absoluteAnchor: ElementRef;
110
+ fixedAnchor: ElementRef;
111
+ fixedWrapper: ElementRef;
112
+ inputContainer: ElementRef;
113
+ fieldInput: ValueAccessorBase<any>;
114
+ captionRef: TemplateRef<any>;
115
+ captionEndRef: TemplateRef<any>;
116
+ errorMessages: FormErrorMessages;
117
+ customErrorHandlers: Array<{
118
+ error: string;
119
+ templateRef: TemplateRef<any>;
120
+ }>;
121
+ private input;
122
+ errorFullyVisible: boolean;
123
+ private popupState;
124
+ private subscriptions;
125
+ constructor(parent: FormComponent, customMessages: CustomErrorMessages, elRef: ElementRef, ngZone: NgZone);
126
+ ngAfterViewInit(): Promise<void>;
127
+ shouldShowErrorMessages(): boolean;
128
+ substituteParameters(message: string, parameters: Record<string, any>): string;
129
+ registerControl(formControl: UntypedFormControl, input?: ValueAccessorBase<any>): () => any;
130
+ determinePopupState(): void;
131
+ private setUpErrorTooltipListeners;
132
+ unregisterControl(formControl: UntypedFormControl): void;
133
+ getAttachedControl(): AbstractControl;
134
+ getAttachedInput(): ValueAccessorBase<any>;
135
+ registerErrorHandler(error: string, templateRef: TemplateRef<any>): void;
136
+ registerCaption(templateRef: TemplateRef<any>): void;
137
+ registerCaptionEnd(templateRef: TemplateRef<any>): void;
138
+ getWarningToShow(): string | TemplateRef<any>;
139
+ getWarningToShowAsTemplateRef(): TemplateRef<any>;
140
+ getWarningToShowIsTemplateRef(): boolean;
141
+ getErrorToShow(): string;
142
+ getCustomErrorHandler(error: string): {
143
+ error: string;
144
+ templateRef: TemplateRef<any>;
145
+ };
146
+ showDefaultError(error: string): boolean;
147
+ getScrollableParent(node: any): any;
148
+ scrollTo(): void;
149
+ isRequired(): boolean;
150
+ getErrorMessage(key: keyof FormErrorMessages): string;
151
+ getErrorLocation(): 'belowCaption' | 'rightOfCaption';
152
+ shouldShowErrorTooltipOpened(): boolean;
153
+ hasHoverableErrorTooltip(): boolean;
154
+ hasRightOfCaptionError(): boolean;
155
+ setErrorMessageIsTruncated: (isTruncated: boolean) => void;
156
+ shouldShowWarningPopup(): boolean;
157
+ closePopup(): void;
158
+ togglePopup(): void;
159
+ setErrorTooltipOffset: () => void;
160
+ ngOnDestroy(): void;
161
+ private initializeTailTpl;
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormElementComponent, [{ optional: true; }, { optional: true; }, null, null]>;
163
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormElementComponent, "klp-form-element", never, { "caption": { "alias": "caption"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "captionSpacing": { "alias": "captionSpacing"; "required": false; }; "verticalAlignment": { "alias": "verticalAlignment"; "required": false; }; "spaceDistribution": { "alias": "spaceDistribution"; "required": false; }; "swapInputAndCaption": { "alias": "swapInputAndCaption"; "required": false; }; "errorMessageAsTooltip": { "alias": "errorMessageAsTooltip"; "required": false; }; "errorMessageHasMaxWidth": { "alias": "errorMessageHasMaxWidth"; "required": false; }; }, {}, ["fieldInput"], ["*"], false, never>;
164
+ }
165
+
1
166
  /**
2
- * Generated bundle index. Do not edit.
167
+ * This component is a base in order to create a component that supports ngModel.
168
+ * Some important things to know about it:
169
+ *
170
+ * innerValue = your own inner state, which you should use to store the current state of what ngModel should be.
171
+ * writeValue() = called by angular, when ngModel is changed from OUTSIDE of the component. Feel free to patch this method if you need inner logic to happen when ngModel is altered from the outside. Always remember to also call the super.writeValue if you do!
172
+ * setInnerValueAndNotify() = call this when you want your ngModel to be updated from INSIDE of your component, and provide it to the OUTSIDE.
173
+ * ngOnInit() = Used to support the angular reactive forms framework. If you use ngOnInit in your own component (which happens fairly often) you must not forget to call the super.ngOnInit() method.
3
174
  */
4
- /// <amd-module name="@klippa/ngx-enhancy-forms" />
5
- export * from './public-api';
175
+ declare class ValueAccessorBase<T> implements ControlValueAccessor, OnInit, OnDestroy {
176
+ protected parent: FormElementComponent;
177
+ protected controlContainer: ControlContainer;
178
+ innerValue: T;
179
+ changed: ((value: T) => void)[];
180
+ private touched;
181
+ private prevValue;
182
+ disabled: boolean;
183
+ private latestInnerValueChangedInterceptorPromise;
184
+ innerValueChangeInterceptor: (prev: T, cur: T) => Promise<void>;
185
+ formControlName: string;
186
+ formControl: UntypedFormControl;
187
+ inErrorState: boolean;
188
+ getTailTplFn: () => TemplateRef<any>;
189
+ onTouch: EventEmitter<void>;
190
+ nativeInputRef: ElementRef;
191
+ private attachedFormControl;
192
+ private tailTpl;
193
+ private getImmutableValueFn;
194
+ constructor(parent: FormElementComponent, controlContainer: ControlContainer);
195
+ ngOnInit(): void;
196
+ protected getImmutableValue(): T;
197
+ isInErrorState(): boolean;
198
+ ngOnDestroy(): void;
199
+ touch(): void;
200
+ writeValue(value: T): void;
201
+ registerOnChange(fn: (value: T) => void): void;
202
+ registerOnTouched(fn: () => void): void;
203
+ setInnerValueAndNotify(value: T): void;
204
+ resetToNull(): void;
205
+ hasValidator(validatorName: string): boolean;
206
+ focus: () => void;
207
+ setTailTpl: (tpl: TemplateRef<any>) => void;
208
+ getTailTpl: () => TemplateRef<any>;
209
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessorBase<any>, [{ optional: true; host: true; }, { optional: true; host: true; }]>;
210
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValueAccessorBase<any>, "ng-component", never, { "disabled": { "alias": "disabled"; "required": false; }; "innerValueChangeInterceptor": { "alias": "innerValueChangeInterceptor"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "inErrorState": { "alias": "inErrorState"; "required": false; }; "getTailTplFn": { "alias": "getTailTplFn"; "required": false; }; }, { "onTouch": "onTouch"; }, never, never, false, never>;
211
+ }
212
+
213
+ declare class MultipleValueAccessorBase<T> extends ValueAccessorBase<Array<T> | T> {
214
+ protected parent: FormElementComponent;
215
+ protected controlContainer: ControlContainer;
216
+ multiple: boolean;
217
+ constructor(parent: FormElementComponent, controlContainer: ControlContainer);
218
+ writeValue(value: Array<T> | T): void;
219
+ setInnerValueAndNotify(value: T | Array<T>): void;
220
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultipleValueAccessorBase<any>, [{ optional: true; host: true; }, { optional: true; host: true; }]>;
221
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultipleValueAccessorBase<any>, "ng-component", never, { "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, never, false, never>;
222
+ }
223
+
224
+ type ButtonVariant = 'white' | 'greenFilled' | 'greenOutlined' | 'greenLink' | 'contextMenuItem' | 'redFilled' | 'redOutlined' | 'orangeFilled';
225
+ declare class ButtonComponent {
226
+ variant: ButtonVariant;
227
+ size: 'small' | 'medium' | 'large';
228
+ fullWidth: boolean;
229
+ hasBorder: boolean;
230
+ disabled: boolean;
231
+ isLoading: boolean;
232
+ type: 'button' | 'submit';
233
+ clickCallback: (event: Event) => Promise<any>;
234
+ get _(): boolean;
235
+ onClick(event: Event): Promise<void>;
236
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
237
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "klp-form-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "hasBorder": { "alias": "hasBorder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clickCallback": { "alias": "clickCallback"; "required": false; }; }, {}, never, ["*"], false, never>;
238
+ }
239
+
240
+ declare class CheckboxComponent extends ValueAccessorBase<boolean> {
241
+ caption: string;
242
+ renderUndefinedAsIndeterminate: boolean;
243
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
244
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "klp-form-checkbox", never, { "caption": { "alias": "caption"; "required": false; }; "renderUndefinedAsIndeterminate": { "alias": "renderUndefinedAsIndeterminate"; "required": false; }; }, {}, never, never, false, never>;
245
+ }
246
+
247
+ declare const invalidDateKey = "--invalid_date--";
248
+ declare function dateValidator(control: AbstractControl): ValidationErrors | null;
249
+
250
+ declare const DATE_PICKER_TRANSLATIONS: InjectionToken<any>;
251
+ declare class DatePickerComponent extends MultipleValueAccessorBase<string | typeof invalidDateKey> {
252
+ protected parent: FormElementComponent;
253
+ protected controlContainer: ControlContainer;
254
+ private translations;
255
+ minDate: Date;
256
+ maxDate: Date;
257
+ sameMonthOnly: boolean;
258
+ format: string;
259
+ placeholder: string;
260
+ clearable: boolean;
261
+ dateValue: Date | Array<Date>;
262
+ constructor(parent: FormElementComponent, controlContainer: ControlContainer, translations: any);
263
+ writeValue(value: string | Array<string> | typeof invalidDateKey): void;
264
+ dateChanged(value: Date | Array<Date> | typeof invalidDateKey): void;
265
+ getDefaultTranslation(key: string): (x: any) => string;
266
+ getTranslation(key: string, params?: any): string;
267
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, [{ optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }]>;
268
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "klp-form-date-picker", never, { "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "sameMonthOnly": { "alias": "sameMonthOnly"; "required": false; }; "format": { "alias": "format"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; }, {}, never, never, false, never>;
269
+ }
270
+
271
+ declare const KLP_DATE_FORMATS: InjectionToken<KlpDateFormats>;
272
+ declare const DATE_TIME_PICKER_TRANSLATIONS: InjectionToken<any>;
273
+ declare const DATE_PICKER_LOCALE: InjectionToken<any>;
274
+ declare function matDateFormatsFactory(component: DateTimePickerComponent, dateFormats?: KlpDateFormats): MatDateFormats;
275
+ declare class DateTimePickerComponent extends MultipleValueAccessorBase<Date | typeof invalidDateKey> implements OnInit, AfterViewInit, OnChanges {
276
+ protected parent: FormElementComponent;
277
+ protected controlContainer: ControlContainer;
278
+ private translations;
279
+ private datePickerLocale;
280
+ private dateAdapter;
281
+ private elRef;
282
+ private cdr;
283
+ private ngZone;
284
+ minDate: Date;
285
+ maxDate: Date;
286
+ sameMonthOnly: boolean;
287
+ format: string;
288
+ placeholder: string;
289
+ clearable: boolean;
290
+ showTimeInput: boolean;
291
+ initHour: string;
292
+ initMinute: string;
293
+ invalidTimeAsMidnight: boolean;
294
+ nativeInputRef: ElementRef;
295
+ datePickerRef: MatDatepicker<Date>;
296
+ timeDoubleDropdown: ElementRef;
297
+ openPickerOnDate: Date;
298
+ minDateStartOfDay: Date;
299
+ maxDateEndOfDay: Date;
300
+ valueForMaterialDatePicker: Date;
301
+ hours: string;
302
+ minutes: string;
303
+ protected selectedDates: Array<Date>;
304
+ private datePickingClosingFn;
305
+ private dateTouched;
306
+ private hoursTouched;
307
+ private minutesTouched;
308
+ protected dropdownVisible: boolean;
309
+ protected minutesOfHour: Array<number>;
310
+ protected Number: NumberConstructor;
311
+ constructor(parent: FormElementComponent, controlContainer: ControlContainer, translations: any, datePickerLocale: any, dateAdapter: DateAdapter<Date>, elRef: ElementRef, cdr: ChangeDetectorRef, ngZone: NgZone);
312
+ ngOnInit(): void;
313
+ ngAfterViewInit(): void;
314
+ ngOnChanges(changes: SimpleChanges): void;
315
+ setMinDate(minDate: Date): void;
316
+ setMaxDate(maxDate: Date): void;
317
+ getSelectedMonths(): number;
318
+ dateChanged(event: any): void;
319
+ determineMinAndMaxDates(): void;
320
+ notifyNewDate(): void;
321
+ writeValue(value: Date | Array<Date> | typeof invalidDateKey): void;
322
+ nativeValueChanged(): void;
323
+ resetToNull(): void;
324
+ isSelected: (d: Date) => "" | "selected";
325
+ filterDates: DateFilterFn<any>;
326
+ formatTime(): void;
327
+ touchDate(): void;
328
+ touchHours(): void;
329
+ touchMinutes(): void;
330
+ determineAllTouched(): void;
331
+ getDefaultTranslation(key: string): (x: any) => string;
332
+ getTranslation(key: string, params?: any): string;
333
+ counter(i: number): Array<number>;
334
+ setHour(hour: number): void;
335
+ setMinute(minute: number): void;
336
+ blurredHours(): void;
337
+ blurredMinutes(): void;
338
+ isActive(toCheck: number, actualValue: string): boolean;
339
+ timeDropdownRendered: () => void;
340
+ clickHandlerForTimeDropdown: (event: MouseEvent) => void;
341
+ shizzle(): void;
342
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, [{ optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }, { optional: true; }, null, null, null, null]>;
343
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "klp-form-date-time-picker", never, { "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "sameMonthOnly": { "alias": "sameMonthOnly"; "required": false; }; "format": { "alias": "format"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "showTimeInput": { "alias": "showTimeInput"; "required": false; }; "initHour": { "alias": "initHour"; "required": false; }; "initMinute": { "alias": "initMinute"; "required": false; }; "invalidTimeAsMidnight": { "alias": "invalidTimeAsMidnight"; "required": false; }; }, {}, never, never, false, never>;
344
+ }
345
+
346
+ declare class EmailInputComponent extends ValueAccessorBase<string> {
347
+ placeholder: string;
348
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmailInputComponent, never>;
349
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmailInputComponent, "klp-form-email-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
350
+ }
351
+
352
+ declare class LoadingIndicatorComponent {
353
+ variant: '3dots' | 'spinner' | 'textInput' | 'picker';
354
+ size: 'tiny' | 'small' | 'medium' | 'large' | 'huge';
355
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorComponent, never>;
356
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoadingIndicatorComponent, "klp-form-loading-indicator", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
357
+ }
358
+
359
+ declare class NumberInputComponent extends ValueAccessorBase<string | number> {
360
+ placeholder: string;
361
+ parseNumber: boolean;
362
+ setInnerValueAndNotify(value: string | number): void;
363
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, never>;
364
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "klp-form-number-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "parseNumber": { "alias": "parseNumber"; "required": false; }; }, {}, never, never, false, never>;
365
+ }
366
+
367
+ declare class PasswordFieldComponent extends ValueAccessorBase<string> {
368
+ placeholder: string;
369
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordFieldComponent, never>;
370
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordFieldComponent, "klp-form-password-field", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
371
+ }
372
+
373
+ type AppSelectOptions = Array<AppSelectOption>;
374
+ type AppSelectOption = {
375
+ id: any;
376
+ name: string;
377
+ description?: string;
378
+ active?: boolean;
379
+ disabled?: boolean;
380
+ };
381
+ declare const SELECT_TRANSLATIONS: InjectionToken<any>;
382
+ declare class KlpSelectOptionTemplateDirective {
383
+ static ɵfac: i0.ɵɵFactoryDeclaration<KlpSelectOptionTemplateDirective, never>;
384
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KlpSelectOptionTemplateDirective, "[klpSelectOptionTpl]", never, {}, {}, never, never, false, never>;
385
+ }
386
+ declare class SelectComponent extends ValueAccessorBase<string | string[]> implements OnChanges, AfterViewInit, OnDestroy {
387
+ protected parent: FormElementComponent;
388
+ protected controlContainer: ControlContainer;
389
+ private translations;
390
+ private elRef;
391
+ private ngZone;
392
+ placeholder: string;
393
+ prefix: string;
394
+ orientation: 'vertical' | 'horizontal';
395
+ options: AppSelectOptions;
396
+ multiple: boolean;
397
+ multipleDisplayedAsAmount: boolean;
398
+ clearable: boolean;
399
+ truncateOptions: boolean;
400
+ withSeparatingLine: boolean;
401
+ searchable: boolean;
402
+ hasBorderLeft: boolean;
403
+ hasBorderRight: boolean;
404
+ dropdownPosition: 'auto' | 'bottom' | 'top' | 'left' | 'right';
405
+ dropdownAlignment: 'left' | 'right';
406
+ customSearchFn: (term: string, item: {
407
+ id: string;
408
+ name: string;
409
+ description: string;
410
+ }) => boolean;
411
+ footerElement: TemplateRef<any>;
412
+ onSearch: EventEmitter<string>;
413
+ onEndReached: EventEmitter<void>;
414
+ onOpened: EventEmitter<void>;
415
+ onClosed: EventEmitter<void>;
416
+ onBlur: EventEmitter<void>;
417
+ onClear: EventEmitter<void>;
418
+ onEnterKey: EventEmitter<string>;
419
+ ngSelect: any;
420
+ tailRef: ElementRef;
421
+ tailMockRef: ElementRef;
422
+ customOptionTpl: TemplateRef<any>;
423
+ private lastItemIndexReached;
424
+ dropdownPositionToUse: 'auto' | 'bottom' | 'top' | 'left' | 'right';
425
+ private isOpen;
426
+ private dropdownPanelOffsetX;
427
+ private dropdownPanelOffsetY;
428
+ private anchorAbsolute;
429
+ private anchorFixed;
430
+ constructor(parent: FormElementComponent, controlContainer: ControlContainer, translations: any, elRef: ElementRef, ngZone: NgZone);
431
+ ngAfterViewInit(): void;
432
+ private keyListener;
433
+ private addTail;
434
+ private addPrefix;
435
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
436
+ getDefaultTranslation(key: string): (x: any) => string;
437
+ getTranslation(key: string, params?: any): string;
438
+ onScroll(lastItemIndex: number): void;
439
+ searchQueryChanged(searchQuery: string): void;
440
+ onOpen(): Promise<void>;
441
+ private createAnchors;
442
+ private removeAnchors;
443
+ private setFixedDropdownPanelPosition;
444
+ private setWidthBasedOnOptionsWidths;
445
+ private getAllLimitingContainers;
446
+ private setPanelOffsets;
447
+ private determineDropdownPosition;
448
+ private isLimitingContainer;
449
+ focus: () => void;
450
+ open: () => void;
451
+ close: () => void;
452
+ onClose(): void;
453
+ onFocus(): void;
454
+ private getScrollbarWidth;
455
+ ngOnDestroy(): void;
456
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }, null, null]>;
457
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "klp-form-select", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "multipleDisplayedAsAmount": { "alias": "multipleDisplayedAsAmount"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "truncateOptions": { "alias": "truncateOptions"; "required": false; }; "withSeparatingLine": { "alias": "withSeparatingLine"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "hasBorderLeft": { "alias": "hasBorderLeft"; "required": false; }; "hasBorderRight": { "alias": "hasBorderRight"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "dropdownAlignment": { "alias": "dropdownAlignment"; "required": false; }; "customSearchFn": { "alias": "customSearchFn"; "required": false; }; "footerElement": { "alias": "footerElement"; "required": false; }; }, { "onSearch": "onSearch"; "onEndReached": "onEndReached"; "onOpened": "onOpened"; "onClosed": "onClosed"; "onBlur": "onBlur"; "onClear": "onClear"; "onEnterKey": "onEnterKey"; }, ["customOptionTpl"], never, false, never>;
458
+ }
459
+
460
+ declare class SelectFooterComponent {
461
+ prefix: string;
462
+ text: string;
463
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectFooterComponent, never>;
464
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectFooterComponent, "klp-select-footer", never, { "prefix": { "alias": "prefix"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
465
+ }
466
+
467
+ declare class SortableItemsComponent extends ValueAccessorBase<Array<any>> implements OnInit, AfterViewInit {
468
+ protected parent: FormElementComponent;
469
+ protected controlContainer: ControlContainer;
470
+ private ngZone;
471
+ template: TemplateRef<any>;
472
+ sortableItemSize: 'sm' | 'lg';
473
+ dragItems: QueryList<ElementRef>;
474
+ dragSourceIndex: number;
475
+ private currentDragPosition;
476
+ private scrollInterval;
477
+ constructor(parent: FormElementComponent, controlContainer: ControlContainer, ngZone: NgZone);
478
+ ngAfterViewInit(): void;
479
+ private setDragItemListeners;
480
+ private onDragOver;
481
+ private onDragEnter;
482
+ private onDragStart;
483
+ private onDragEnd;
484
+ shouldShoveDown(index: number): boolean;
485
+ shouldShoveUp(index: number): boolean;
486
+ private scrollPage;
487
+ private stopScrolling;
488
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortableItemsComponent, [{ optional: true; host: true; }, { optional: true; host: true; }, null]>;
489
+ static ɵcmp: i0.ɵɵComponentDeclaration<SortableItemsComponent, "klp-form-sortable-items", never, { "sortableItemSize": { "alias": "sortableItemSize"; "required": false; }; }, {}, ["template"], never, false, never>;
490
+ }
491
+
492
+ declare class SortableGroupedItemsComponent<T> extends ValueAccessorBase<Array<Array<T>>> {
493
+ items: Array<T | string>;
494
+ template: TemplateRef<any>;
495
+ reloader: boolean;
496
+ writeValue(value: Array<Array<T>>): void;
497
+ onItemsRearranged(value: Array<T | string>): void;
498
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortableGroupedItemsComponent<any>, never>;
499
+ static ɵcmp: i0.ɵɵComponentDeclaration<SortableGroupedItemsComponent<any>, "klp-form-sortable-grouped-items", never, {}, {}, ["template"], never, false, never>;
500
+ }
501
+
502
+ declare class TextInputComponent extends ValueAccessorBase<string> {
503
+ private isPeekingPassword;
504
+ placeholder: string;
505
+ type: 'text' | 'password';
506
+ clearable: boolean;
507
+ icon: 'search';
508
+ hasBorderLeft: boolean;
509
+ hasBorderRight: boolean;
510
+ passwordPeekIcon: TemplateRef<any>;
511
+ size: 'small' | 'medium';
512
+ onBlur: EventEmitter<void>;
513
+ togglePeakPassword(): void;
514
+ getType(): 'text' | 'password';
515
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
516
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "klp-form-text-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "hasBorderLeft": { "alias": "hasBorderLeft"; "required": false; }; "hasBorderRight": { "alias": "hasBorderRight"; "required": false; }; "passwordPeekIcon": { "alias": "passwordPeekIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "onBlur": "onBlur"; }, never, never, false, never>;
517
+ }
518
+
519
+ declare class TextAreaComponent extends ValueAccessorBase<string> {
520
+ placeholder: string;
521
+ onBlur: EventEmitter<void>;
522
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, never>;
523
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "klp-form-text-area", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, { "onBlur": "onBlur"; }, never, never, false, never>;
524
+ }
525
+
526
+ declare class ToggleComponent extends ValueAccessorBase<boolean> {
527
+ transparentBackground: boolean;
528
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
529
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "klp-form-toggle", never, { "transparentBackground": { "alias": "transparentBackground"; "required": false; }; }, {}, never, never, false, never>;
530
+ }
531
+
532
+ declare class FileInputComponent extends MultipleValueAccessorBase<File> {
533
+ isLoading: boolean;
534
+ clearable: boolean;
535
+ onlyShowUploadButton: boolean;
536
+ useFullParentSize: boolean;
537
+ buttonText: string;
538
+ fullyCustom: boolean;
539
+ nativeInputRef: ElementRef<HTMLInputElement>;
540
+ onChange(files: FileList): void;
541
+ getFileNames(): string;
542
+ shouldShowClearButton(): boolean;
543
+ uploadFileClicked(): void;
544
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent, never>;
545
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent, "klp-form-file-input", never, { "isLoading": { "alias": "isLoading"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "onlyShowUploadButton": { "alias": "onlyShowUploadButton"; "required": false; }; "useFullParentSize": { "alias": "useFullParentSize"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "fullyCustom": { "alias": "fullyCustom"; "required": false; }; }, {}, never, ["*"], false, never>;
546
+ }
547
+
548
+ declare class FormCaptionComponent implements OnInit {
549
+ private parent;
550
+ contentRef: TemplateRef<any>;
551
+ constructor(parent: FormElementComponent);
552
+ ngOnInit(): void;
553
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormCaptionComponent, [{ optional: true; host: true; }]>;
554
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormCaptionComponent, "klp-form-caption", never, {}, {}, never, ["*"], false, never>;
555
+ }
556
+
557
+ declare class FormCaptionEndComponent implements OnInit, OnDestroy {
558
+ private parent;
559
+ contentRef: TemplateRef<any>;
560
+ constructor(parent: FormElementComponent);
561
+ ngOnInit(): void;
562
+ ngOnDestroy(): void;
563
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormCaptionEndComponent, [{ optional: true; host: true; }]>;
564
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormCaptionEndComponent, "klp-form-caption-end", never, {}, {}, never, ["*"], false, never>;
565
+ }
566
+
567
+ declare class FormErrorComponent implements OnInit {
568
+ private parent;
569
+ error: ErrorTypes;
570
+ contentRef: TemplateRef<any>;
571
+ contentChild: TemplateRef<any>;
572
+ constructor(parent: FormElementComponent);
573
+ ngOnInit(): void;
574
+ getErrorValueMessage(): string;
575
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorComponent, [{ optional: true; host: true; }]>;
576
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorComponent, "klp-form-error", never, { "error": { "alias": "error"; "required": false; }; }, {}, ["contentChild"], never, false, never>;
577
+ }
578
+
579
+ type SubmitButtonVariant = Extract<ButtonVariant, 'greenFilled' | 'redFilled' | 'greenOutlined' | 'white'>;
580
+ declare class FormSubmitButtonComponent implements OnInit {
581
+ private parentForm;
582
+ private handleError;
583
+ buttonType: 'submit' | 'button';
584
+ isLoading: boolean;
585
+ fullWidth: boolean;
586
+ variant: SubmitButtonVariant;
587
+ submitCallback: (renderedAndEnabledValues: object, allRenderedValues: object) => Promise<any>;
588
+ before: () => Promise<any>;
589
+ after: () => Promise<any>;
590
+ disabled: boolean;
591
+ ngOnInit(): void;
592
+ private setValidationError;
593
+ submitForm(): Promise<void>;
594
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitButtonComponent, never>;
595
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmitButtonComponent, "klp-form-submit-button", never, { "isLoading": { "alias": "isLoading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "submitCallback": { "alias": "submitCallback"; "required": false; }; "before": { "alias": "before"; "required": false; }; "after": { "alias": "after"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
596
+ }
597
+
598
+ declare const invalidTimeKey = "--invalid_time--";
599
+
600
+ declare class HourMinuteInputComponent extends ValueAccessorBase<number | typeof invalidTimeKey> {
601
+ hours: string;
602
+ minutes: string;
603
+ placeholders: Array<string>;
604
+ private hoursTouched;
605
+ private minutesTouched;
606
+ formatHours(): void;
607
+ formatMinutes(): void;
608
+ formatTime(): void;
609
+ writeValue(value: number | typeof invalidTimeKey): void;
610
+ notifyNewTime(): void;
611
+ touchHours(): void;
612
+ touchMinutes(): void;
613
+ determineAllTouched(): void;
614
+ static ɵfac: i0.ɵɵFactoryDeclaration<HourMinuteInputComponent, never>;
615
+ static ɵcmp: i0.ɵɵComponentDeclaration<HourMinuteInputComponent, "klp-form-hour-minute-input", never, { "placeholders": { "alias": "placeholders"; "required": false; }; }, {}, never, never, false, never>;
616
+ }
617
+
618
+ declare enum Orientation {
619
+ COLUMN = "column",
620
+ ROW = "row"
621
+ }
622
+ type RadioOptions = Array<RadioOption>;
623
+ type RadioOption = {
624
+ id: any;
625
+ name: string;
626
+ description?: string;
627
+ };
628
+ declare class RadioComponent extends ValueAccessorBase<string> {
629
+ options: RadioOptions;
630
+ orientation: Orientation;
631
+ variant: 'classic' | 'button' | 'buttonGray';
632
+ size: 'small' | 'medium';
633
+ Orientation: typeof Orientation;
634
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
635
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "klp-form-radio", never, { "options": { "alias": "options"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
636
+ }
637
+
638
+ declare class WithTooltipDirective {
639
+ private el;
640
+ private appRef;
641
+ private ngZone;
642
+ private div;
643
+ private triangle;
644
+ private triangleWhite;
645
+ klpWithTooltip: 'orange' | 'black' | 'whiteOnBlack';
646
+ tooltipText: string;
647
+ tooltipTemplate: TemplateRef<any>;
648
+ tooltipMinWidth: any;
649
+ tooltipMaxWidth: number;
650
+ position: 'top' | 'bottom';
651
+ private templateInstance;
652
+ private viewRefForTemplate;
653
+ constructor(el: ElementRef, appRef: ApplicationRef, ngZone: NgZone);
654
+ hookUpTemplate(): void;
655
+ cleanUpTemplate(): void;
656
+ static ɵfac: i0.ɵɵFactoryDeclaration<WithTooltipDirective, never>;
657
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WithTooltipDirective, "[klpWithTooltip]", never, { "klpWithTooltip": { "alias": "klpWithTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; "tooltipMinWidth": { "alias": "tooltipMinWidth"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, false, never>;
658
+ }
659
+
660
+ declare class OnRenderDirective implements AfterViewInit {
661
+ onRenderFn: () => any;
662
+ ngAfterViewInit(): void;
663
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnRenderDirective, never>;
664
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OnRenderDirective, "[onRenderFn]", never, { "onRenderFn": { "alias": "onRenderFn"; "required": false; }; }, {}, never, never, false, never>;
665
+ }
666
+
667
+ declare class WarningIconComponent {
668
+ variant: 'line' | 'fill';
669
+ static ɵfac: i0.ɵɵFactoryDeclaration<WarningIconComponent, never>;
670
+ static ɵcmp: i0.ɵɵComponentDeclaration<WarningIconComponent, "klp-form-warning-icon", never, { "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, false, never>;
671
+ }
672
+
673
+ declare class ElementIsTruncatedCbComponent implements AfterViewInit, OnDestroy {
674
+ private elementRef;
675
+ private observer;
676
+ elementIsTruncatedCb: (isTruncated: boolean) => void;
677
+ constructor(elementRef: ElementRef);
678
+ ngAfterViewInit(): void;
679
+ private checkForTruncation;
680
+ private isTruncated;
681
+ ngOnDestroy(): void;
682
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementIsTruncatedCbComponent, never>;
683
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElementIsTruncatedCbComponent, "[elementIsTruncatedCb]", never, { "elementIsTruncatedCb": { "alias": "elementIsTruncatedCb"; "required": false; }; }, {}, never, never, false, never>;
684
+ }
685
+
686
+ declare class MaterialModule {
687
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
688
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.MatDatepickerModule, typeof i2.MatFormFieldModule, typeof i3.MatNativeDateModule, typeof i4.MatInputModule, typeof i5.MatButtonModule], [typeof i1.MatDatepickerModule, typeof i2.MatFormFieldModule, typeof i3.MatNativeDateModule, typeof i4.MatInputModule, typeof i5.MatButtonModule]>;
689
+ static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
690
+ }
691
+
692
+ declare class NgxEnhancyFormsModule {
693
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxEnhancyFormsModule, never>;
694
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxEnhancyFormsModule, [typeof ValueAccessorBase, typeof MultipleValueAccessorBase, typeof ButtonComponent, typeof CheckboxComponent, typeof DatePickerComponent, typeof DateTimePickerComponent, typeof EmailInputComponent, typeof LoadingIndicatorComponent, typeof NumberInputComponent, typeof PasswordFieldComponent, typeof SelectComponent, typeof KlpSelectOptionTemplateDirective, typeof SelectFooterComponent, typeof SortableItemsComponent, typeof SortableGroupedItemsComponent, typeof TextInputComponent, typeof TextAreaComponent, typeof ToggleComponent, typeof FileInputComponent, typeof FormCaptionComponent, typeof FormCaptionEndComponent, typeof FormElementComponent, typeof FormErrorComponent, typeof FormSubmitButtonComponent, typeof FormComponent, typeof SubFormDirective, typeof HourMinuteInputComponent, typeof RadioComponent, typeof WithTooltipDirective, typeof OnRenderDirective, typeof WarningIconComponent, typeof ElementIsTruncatedCbComponent], [typeof i31.CommonModule, typeof i32.FormsModule, typeof i33.NgSelectModule, typeof MaterialModule], [typeof ValueAccessorBase, typeof MultipleValueAccessorBase, typeof ButtonComponent, typeof DatePickerComponent, typeof DateTimePickerComponent, typeof CheckboxComponent, typeof EmailInputComponent, typeof LoadingIndicatorComponent, typeof NumberInputComponent, typeof PasswordFieldComponent, typeof SelectComponent, typeof KlpSelectOptionTemplateDirective, typeof SelectFooterComponent, typeof SortableItemsComponent, typeof SortableGroupedItemsComponent, typeof TextInputComponent, typeof TextAreaComponent, typeof ToggleComponent, typeof FileInputComponent, typeof FormCaptionComponent, typeof FormCaptionEndComponent, typeof FormElementComponent, typeof FormErrorComponent, typeof FormSubmitButtonComponent, typeof FormComponent, typeof SubFormDirective, typeof HourMinuteInputComponent, typeof RadioComponent, typeof WithTooltipDirective, typeof OnRenderDirective, typeof ElementIsTruncatedCbComponent]>;
695
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgxEnhancyFormsModule>;
696
+ }
697
+
698
+ declare class FormValidationError extends Error {
699
+ readonly name = "FormValidationError";
700
+ readonly path: string;
701
+ constructor(path: string, message: string);
702
+ }
703
+ type FormValidationErrors = Array<FormValidationError>;
704
+ type FormErrorHandler = (error: any) => FormValidationErrors;
705
+ declare const KLP_FORM_ERROR_HANDLER: InjectionToken<FormErrorHandler>;
706
+ declare const DefaultErrorHandler: FormErrorHandler;
707
+
708
+ export { ButtonComponent, CheckboxComponent, DATE_PICKER_LOCALE, DATE_PICKER_TRANSLATIONS, DATE_TIME_PICKER_TRANSLATIONS, DEFAULT_ERROR_MESSAGES, DatePickerComponent, DateTimePickerComponent, DefaultErrorHandler, ElementIsTruncatedCbComponent, EmailInputComponent, FORM_ERROR_MESSAGES, FileInputComponent, FormCaptionComponent, FormCaptionEndComponent, FormComponent, FormElementComponent, FormErrorComponent, FormSubmitButtonComponent, FormValidationError, HourMinuteInputComponent, KLP_DATE_FORMATS, KLP_FORM_ERROR_HANDLER, KlpSelectOptionTemplateDirective, LoadingIndicatorComponent, MultipleValueAccessorBase, NgxEnhancyFormsModule, NumberInputComponent, OnRenderDirective, Orientation, PasswordFieldComponent, RadioComponent, SELECT_TRANSLATIONS, SelectComponent, SelectFooterComponent, SortableGroupedItemsComponent, SortableItemsComponent, SubFormDirective, TextAreaComponent, TextInputComponent, ToggleComponent, ValueAccessorBase, WithTooltipDirective, dateValidator, invalidDateKey, invalidFieldsSymbol, matDateFormatsFactory };
709
+ export type { AppSelectOption, AppSelectOptions, ButtonVariant, CustomErrorMessages, ErrorTypes, FormErrorHandler, FormErrorMessages, FormValidationErrors, KlpDateFormats, OnInjectedEmitterType, RadioOption, RadioOptions, SubmitButtonVariant };