@kms-ngx-ui/presentational 20.4.0 → 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<"text" | "email" | "tel" | "url">;
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
- * Consuming apps import both modules:
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kms-ngx-ui/presentational",
3
- "version": "20.4.0",
3
+ "version": "20.4.2",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^20.2.14",
6
6
  "@angular/common": "^20.3.15",
@@ -1 +1 @@
1
- ["alert-outline","arrow-down","arrow-left","arrow-right-left","arrow-right","arrow-top","arrow-up-down","arrows-left","calendar","camera","cardealer","checkbox_active","checkbox_inactive","checkbox_inner","checkmark-circle","checkmark-filled","chevron-down","chevron-left","chevron-right","chevron-top","circle","clock","close-circle","close","cog","collapse-right","create","credit","diamond","distance_range","download","drag1","edit-circle","efficiency","electro-cable","ellipse","end","exclamation","export-all","facebook","file-download","file-upload","filter-outline","filter","floating_button","floating_button_clear","fullscreen","hearth-thick","ic-invoice","ic-policy","ic_GEZ","ic_Voucher","ic_abbrechen-filled","ic_abbrechen","ic_ai","ic_back","ic_bereifung","ic_bezeichnung","ic_booking","ic_cancel_form","ic_car","ic_check","ic_check_form","ic_checkin-checkout","ic_co2","ic_credit-card","ic_edit","ic_energie","ic_equipment","ic_extras","ic_eye","ic_eye_active","ic_filter","ic_form_error","ic_form_finished","ic_gkm","ic_heart","ic_heart_filled","ic_historie","ic_history","ic_home","ic_home_new","ic_inclusivekm","ic_info","ic_kraftstoff","ic_language","ic_large-arrow","ic_last","ic_laufleistung","ic_left","ic_lkm","ic_lock","ic_menu","ic_minus","ic_new-car","ic_next","ic_pickup","ic_pin","ic_plus-circle","ic_plus","ic_radiobutton_active","ic_radiobutton_inactive","ic_redirect","ic_return","ic_schaltung","ic_settings","ic_shops","ic_side_front","ic_side_front_left","ic_side_front_left_tire","ic_side_front_right","ic_side_front_right_tire","ic_side_front_zoomed","ic_side_rear","ic_side_rear_left","ic_side_rear_left_tire","ic_side_rear_right","ic_side_rear_right_tire","ic_slider","ic_spezification","ic_steuer_versicherung","ic_tool","ic_tooltip_drag","ic_used-car","ic_vertrag","ic_wartung_verschleiss","ic_zulassung","image","instagram","kms-logo-white","kms-logo","large-arrow","linkedin","mail","map","mileage","move-list-left","move-list-right","palette","pdf","polestar","position","price-tag","print","profile-filled","profile","profile2","question-circle","question-filled","question","rent","search","security","special_entry","star-outline","star","start","submenu-dots","subscription","support","trash","tumblr","twitter","tyre","upload","user-circle","users","water","whatsapp","width","xing","youtube","zahlung_active","zahlungsanforderung"]
1
+ ["alert-outline","arrow-down","arrow-left","arrow-right-left","arrow-right","arrow-top","arrow-up-down","arrows-left","blocked","calendar","camera","cardealer","checkbox_active","checkbox_inactive","checkbox_inner","checkmark-circle","checkmark-filled","chevron-down","chevron-left","chevron-right","chevron-top","circle","clock","close-circle","close","cog","collapse-right","create","credit","diamond","distance_range","download","drag1","edit-circle","efficiency","electro-cable","ellipse","end","exclamation","export-all","facebook","file-download","file-upload","filter-outline","filter","floating_button","floating_button_clear","fullscreen","hearth-thick","ic-invoice","ic-policy","ic_GEZ","ic_Voucher","ic_abbrechen-filled","ic_abbrechen","ic_ai","ic_back","ic_bereifung","ic_bezeichnung","ic_booking","ic_cancel_form","ic_car","ic_check","ic_check_form","ic_checkin-checkout","ic_co2","ic_credit-card","ic_edit","ic_energie","ic_equipment","ic_extras","ic_eye","ic_eye_active","ic_filter","ic_form_error","ic_form_finished","ic_gkm","ic_heart","ic_heart_filled","ic_historie","ic_history","ic_home","ic_home_new","ic_inclusivekm","ic_info","ic_kraftstoff","ic_language","ic_large-arrow","ic_last","ic_laufleistung","ic_left","ic_lkm","ic_lock","ic_menu","ic_minus","ic_new-car","ic_next","ic_pickup","ic_pin","ic_plus-circle","ic_plus","ic_radiobutton_active","ic_radiobutton_inactive","ic_redirect","ic_return","ic_schaltung","ic_settings","ic_shops","ic_side_front","ic_side_front_left","ic_side_front_left_tire","ic_side_front_right","ic_side_front_right_tire","ic_side_front_zoomed","ic_side_rear","ic_side_rear_left","ic_side_rear_left_tire","ic_side_rear_right","ic_side_rear_right_tire","ic_slider","ic_spezification","ic_steuer_versicherung","ic_tool","ic_tooltip_drag","ic_used-car","ic_vertrag","ic_wartung_verschleiss","ic_zulassung","image","instagram","kms-logo-white","kms-logo","large-arrow","linkedin","mail","map","mileage","move-list-left","move-list-right","palette","pdf","polestar","position","price-tag","print","profile-filled","profile","profile2","question-circle","question-filled","question","rent","search","security","special_entry","star-outline","star","start","submenu-dots","subscription","support","trash","tumblr","twitter","tyre","upload","user-circle","users","water","whatsapp","width","xing","youtube","zahlung_active","zahlungsanforderung"]
@@ -1073,5 +1073,5 @@ Usage: `value | kmsTypeOf`
1073
1073
 
1074
1074
  ## Icons
1075
1075
 
1076
- 174 icons available for `<kms-icon icon="name">`.
1076
+ 175 icons available for `<kms-icon icon="name">`.
1077
1077
  See `icons.json` (same directory as this file) for the full list of icon names.