@kms-ngx-ui/presentational 20.4.1 → 20.4.2
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/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter, DoCheck, Renderer2, ElementRef, ApplicationRef, ChangeDetectorRef, NgZone, OnChanges, AfterViewInit, WritableSignal, Signal, SimpleChanges, TemplateRef, OnDestroy, PipeTransform, AfterContentChecked, InputSignal, Type } from '@angular/core';
|
|
3
|
+
import * as i52 from '@ngx-translate/core';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
5
|
import * as i40 from '@angular/forms';
|
|
4
6
|
import { ControlValueAccessor, FormControl, UntypedFormGroup, NgControl, AbstractControl, UntypedFormControl, FormArray, Validator, ValidationErrors, AsyncValidatorFn, ValidatorFn, FormGroup } from '@angular/forms';
|
|
5
7
|
import * as i36 from '@angular/material/checkbox';
|
|
@@ -31,8 +33,6 @@ import * as i46 from '@angular/material/expansion';
|
|
|
31
33
|
import * as i47 from '@angular/material/select';
|
|
32
34
|
import * as i48 from 'ngx-mat-select-search';
|
|
33
35
|
import * as i49 from '@angular/material/progress-spinner';
|
|
34
|
-
import * as i52 from '@ngx-translate/core';
|
|
35
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
36
36
|
import * as i53 from '@angular/material/tooltip';
|
|
37
37
|
import * as i55 from '@angular/material/autocomplete';
|
|
38
38
|
import * as i56 from '@angular/material/list';
|
|
@@ -1312,7 +1312,7 @@ declare class TextInputComponent implements ControlValueAccessor {
|
|
|
1312
1312
|
disabled: _angular_core.InputSignal<boolean>;
|
|
1313
1313
|
label: _angular_core.InputSignal<string>;
|
|
1314
1314
|
placeholder: _angular_core.InputSignal<string>;
|
|
1315
|
-
type: _angular_core.InputSignal<"
|
|
1315
|
+
type: _angular_core.InputSignal<"email" | "text" | "tel" | "url">;
|
|
1316
1316
|
required: _angular_core.InputSignal<boolean>;
|
|
1317
1317
|
hint: _angular_core.InputSignal<string>;
|
|
1318
1318
|
errorMessage: _angular_core.InputSignal<string>;
|
|
@@ -1617,6 +1617,7 @@ type DateRangeValue = {
|
|
|
1617
1617
|
end: Date | null;
|
|
1618
1618
|
};
|
|
1619
1619
|
declare class DateInputComponent implements ControlValueAccessor {
|
|
1620
|
+
private readonly translate;
|
|
1620
1621
|
readonly Color: typeof Color;
|
|
1621
1622
|
readonly IconSizePx: typeof IconSizePx;
|
|
1622
1623
|
dateChange: _angular_core.OutputEmitterRef<Date>;
|
|
@@ -1641,6 +1642,15 @@ declare class DateInputComponent implements ControlValueAccessor {
|
|
|
1641
1642
|
end: FormControl<Date>;
|
|
1642
1643
|
}>;
|
|
1643
1644
|
computedStartView: _angular_core.Signal<"month" | "year" | "multi-year">;
|
|
1645
|
+
/**
|
|
1646
|
+
* Tracks the active language so aria-label signals re-evaluate on
|
|
1647
|
+
* runtime language changes. `undefined` when TranslateService is not
|
|
1648
|
+
* provided (date-input used outside KmsUiPresentationalModule).
|
|
1649
|
+
*/
|
|
1650
|
+
private readonly activeLang;
|
|
1651
|
+
startDateAriaLabel: _angular_core.Signal<string>;
|
|
1652
|
+
endDateAriaLabel: _angular_core.Signal<string>;
|
|
1653
|
+
private resolveLabel;
|
|
1644
1654
|
private readonly disabledEffect;
|
|
1645
1655
|
readonly inputId: string;
|
|
1646
1656
|
readonly hintId: string;
|
|
@@ -1660,6 +1670,7 @@ declare class DateInputComponent implements ControlValueAccessor {
|
|
|
1660
1670
|
}
|
|
1661
1671
|
|
|
1662
1672
|
declare class KmsUiPresentationalModule {
|
|
1673
|
+
constructor(translate: TranslateService);
|
|
1663
1674
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KmsUiPresentationalModule, never>;
|
|
1664
1675
|
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<KmsUiPresentationalModule, [typeof BackToTopComponent, typeof CheckboxComponent, typeof ColorInputComponent, typeof DropdownFromDataComponent, typeof EnumRadiogroupComponent, typeof FileInputComponent, typeof ImageUploadComponent, typeof FlyoutComponent, typeof ConfirmationDialogComponent, typeof ImageSliderComponent, typeof KMSAccordionItemComponent, typeof KmsUiPresentationalComponent, typeof LoaderComponent, typeof MapComponent, typeof RadioButtonComponent, typeof RadioGroupComponent, typeof SalutationDropdownComponent, typeof SalutationRadiogroupComponent, typeof SlideToggleComponent, typeof TimeInputComponent, typeof TooltipIconComponent, typeof YesNoRadiogroupComponent, typeof PasswordComponent, typeof SliderComponent, typeof CardComponent, typeof ButtonComponent, typeof NumericInputComponent, typeof GenericFormComponent, typeof FormSectionComponent, typeof FormFieldComponent, typeof FormActionsComponent, typeof DynamicFieldDirective, typeof TextInputComponent], [typeof i8.CommonModule, typeof i35.DragDropModule, typeof i36.MatCheckboxModule, typeof i37.MatButtonModule, typeof i38.MatRadioModule, typeof i39.MatDialogModule, typeof i40.FormsModule, typeof i40.ReactiveFormsModule, typeof i41.MatFormFieldModule, typeof i42.MatInputModule, typeof i43.MatMenuModule, typeof CustomPipesModule, typeof i45.GoogleMapsModule, typeof i46.MatExpansionModule, typeof i47.MatSelectModule, typeof i48.NgxMatSelectSearchModule, typeof i49.MatProgressSpinnerModule, typeof DirectivesModule, typeof i51.MatSlideToggleModule, typeof i52.TranslateModule, typeof i53.MatTooltipModule, typeof i54.NgxSliderModule, typeof i55.MatAutocompleteModule, typeof i56.MatListModule, typeof i57.MatCardModule, typeof i58.MatDatepickerModule, typeof i59.MatNativeDateModule, typeof IconComponent, typeof InlineAlertComponent, typeof DateInputComponent], [typeof BackToTopComponent, typeof CheckboxComponent, typeof ColorInputComponent, typeof DropdownFromDataComponent, typeof EnumRadiogroupComponent, typeof RadioGroupComponent, typeof FileInputComponent, typeof ImageUploadComponent, typeof FlyoutComponent, typeof ConfirmationDialogComponent, typeof IconComponent, typeof ImageSliderComponent, typeof InlineAlertComponent, typeof KMSAccordionItemComponent, typeof KmsUiPresentationalComponent, typeof LoaderComponent, typeof MapComponent, typeof RadioButtonComponent, typeof SalutationDropdownComponent, typeof SalutationRadiogroupComponent, typeof SlideToggleComponent, typeof TimeInputComponent, typeof TooltipIconComponent, typeof YesNoRadiogroupComponent, typeof PasswordComponent, typeof SliderComponent, typeof CardComponent, typeof ButtonComponent, typeof NumericInputComponent, typeof GenericFormComponent, typeof FormSectionComponent, typeof FormActionsComponent, typeof DynamicFieldDirective, typeof DateInputComponent, typeof TextInputComponent]>;
|
|
1665
1676
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<KmsUiPresentationalModule>;
|
|
@@ -1833,20 +1844,18 @@ declare function noSpecialCharsOnly(): ValidatorFn;
|
|
|
1833
1844
|
* Lightweight facade module for the generic-form feature.
|
|
1834
1845
|
*
|
|
1835
1846
|
* - Provides `FieldRegistryService` (maps FieldType → library component classes).
|
|
1836
|
-
* - Merges pre-translated validation error messages into `@ngx-translate`
|
|
1837
|
-
* so that `GenericFormService.resolveErrorMessage()` can look them up.
|
|
1838
1847
|
*
|
|
1839
1848
|
* **Does NOT declare any components** — those live in `KmsUiPresentationalModule`
|
|
1840
1849
|
* to avoid circular AOT imports.
|
|
1841
1850
|
*
|
|
1842
|
-
*
|
|
1851
|
+
* Library translations (validator messages, date-input aria-labels, etc.)
|
|
1852
|
+
* are merged centrally by `KmsUiPresentationalModule`. Consuming apps
|
|
1853
|
+
* import both modules:
|
|
1843
1854
|
* ```ts
|
|
1844
1855
|
* imports: [KmsUiPresentationalModule, GenericFormModule]
|
|
1845
1856
|
* ```
|
|
1846
1857
|
*/
|
|
1847
1858
|
declare class GenericFormModule {
|
|
1848
|
-
constructor(translate: TranslateService);
|
|
1849
|
-
private mergeMessages;
|
|
1850
1859
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenericFormModule, never>;
|
|
1851
1860
|
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<GenericFormModule, never, [typeof i52.TranslateModule], never>;
|
|
1852
1861
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GenericFormModule>;
|