@kms-ngx-ui/presentational 20.2.1 → 20.3.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.
@@ -1590,15 +1590,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1590
1590
  class LoaderComponent {
1591
1591
  constructor() {
1592
1592
  this.loading = false;
1593
+ /**
1594
+ * Accessible name for the spinner. Required to satisfy WCAG 1.1.1
1595
+ * (aria-progressbar-name) when the loader is visible.
1596
+ */
1597
+ this.ariaLabel = '';
1593
1598
  }
1594
1599
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1595
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: LoaderComponent, isStandalone: false, selector: "kms-loader", inputs: { loading: "loading" }, ngImport: i0, template: "@if (loading) {\n <div class=\"loading-spinner-shade\">\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: i1$3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] }); }
1600
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: LoaderComponent, isStandalone: false, selector: "kms-loader", inputs: { loading: "loading", ariaLabel: "ariaLabel" }, ngImport: i0, template: "@if (loading) {\n <div class=\"loading-spinner-shade\">\n <mat-spinner\n class=\"spinnerMargin\"\n color=\"accent\"\n diameter=\"44\"\n [attr.aria-label]=\"ariaLabel || null\"\n ></mat-spinner>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: i1$3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] }); }
1596
1601
  }
1597
1602
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LoaderComponent, decorators: [{
1598
1603
  type: Component,
1599
- args: [{ selector: 'kms-loader', standalone: false, template: "@if (loading) {\n <div class=\"loading-spinner-shade\">\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\n </div>\n}\n" }]
1604
+ args: [{ selector: 'kms-loader', standalone: false, template: "@if (loading) {\n <div class=\"loading-spinner-shade\">\n <mat-spinner\n class=\"spinnerMargin\"\n color=\"accent\"\n diameter=\"44\"\n [attr.aria-label]=\"ariaLabel || null\"\n ></mat-spinner>\n </div>\n}\n" }]
1600
1605
  }], propDecorators: { loading: [{
1601
1606
  type: Input
1607
+ }], ariaLabel: [{
1608
+ type: Input
1602
1609
  }] } });
1603
1610
 
1604
1611
  /**
@@ -2698,6 +2705,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2698
2705
  type: Output
2699
2706
  }] } });
2700
2707
 
2708
+ class InlineAlertComponent {
2709
+ constructor() {
2710
+ this.type = input('warning', ...(ngDevMode ? [{ debugName: "type" }] : []));
2711
+ this.icon = input('warning', ...(ngDevMode ? [{ debugName: "icon" }] : []));
2712
+ }
2713
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2714
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.16", type: InlineAlertComponent, isStandalone: true, selector: "kms-inline-alert", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"inline-alert inline-alert--{{ type() }}\"\n role=\"alert\"\n [attr.aria-live]=\"type() === 'error' ? 'assertive' : 'polite'\"\n>\n <kms-icon class=\"inline-alert__icon\" [icon]=\"icon()\"></kms-icon>\n <span class=\"inline-alert__content\">\n <ng-content></ng-content>\n </span>\n</div>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2715
+ }
2716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineAlertComponent, decorators: [{
2717
+ type: Component,
2718
+ args: [{ selector: 'kms-inline-alert', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [IconComponent], template: "<div\n class=\"inline-alert inline-alert--{{ type() }}\"\n role=\"alert\"\n [attr.aria-live]=\"type() === 'error' ? 'assertive' : 'polite'\"\n>\n <kms-icon class=\"inline-alert__icon\" [icon]=\"icon()\"></kms-icon>\n <span class=\"inline-alert__content\">\n <ng-content></ng-content>\n </span>\n</div>\n" }]
2719
+ }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }] } });
2720
+
2701
2721
  /**
2702
2722
  * @copyright KMS GmbH
2703
2723
  */
@@ -4603,6 +4623,7 @@ class KmsUiPresentationalModule {
4603
4623
  MatDatepickerModule,
4604
4624
  MatNativeDateModule,
4605
4625
  IconComponent,
4626
+ InlineAlertComponent,
4606
4627
  DateInputComponent], exports: [BackToTopComponent,
4607
4628
  CheckboxComponent,
4608
4629
  ColorInputComponent,
@@ -4614,6 +4635,7 @@ class KmsUiPresentationalModule {
4614
4635
  ConfirmationDialogComponent,
4615
4636
  IconComponent,
4616
4637
  ImageSliderComponent,
4638
+ InlineAlertComponent,
4617
4639
  KMSAccordionItemComponent,
4618
4640
  KmsUiPresentationalComponent,
4619
4641
  LoaderComponent,
@@ -4731,6 +4753,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4731
4753
  MatDatepickerModule,
4732
4754
  MatNativeDateModule,
4733
4755
  IconComponent,
4756
+ InlineAlertComponent,
4734
4757
  DateInputComponent,
4735
4758
  ],
4736
4759
  exports: [
@@ -4745,6 +4768,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4745
4768
  ConfirmationDialogComponent,
4746
4769
  IconComponent,
4747
4770
  ImageSliderComponent,
4771
+ InlineAlertComponent,
4748
4772
  KMSAccordionItemComponent,
4749
4773
  KmsUiPresentationalComponent,
4750
4774
  LoaderComponent,
@@ -4949,5 +4973,5 @@ var FormLayout;
4949
4973
  * Generated bundle index. Do not edit.
4950
4974
  */
4951
4975
 
4952
- export { BackToTopComponent, Breakpoint, ButtonAppearance, ButtonComponent, ButtonResponseType, CardComponent, CheckboxComponent, Color, ColorInputComponent, ConfirmationDialogComponent, CustomPipesModule, DateInputComponent, DirectivesModule, DropdownFromDataComponent, DynamicFieldDirective, EnumRadiogroupComponent, FieldRegistryService, FieldType, FileInputComponent, FlyoutComponent, FormActionsComponent, FormFieldComponent, FormLayout, FormParentComponent, FormSectionComponent, GenericFormComponent, GenericFormModule, GenericFormService, GetMaxHeightDirective, IconComponent, IconSizePx, IconSizesArr, ImageSliderComponent, ImageSnippet, ImageSourceType, IntegerCurrency, KMSAccordionItemComponent, KeyValuePair, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LabelValuePair, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, NumericInputComponent, PasswordComponent, RadioButtonComponent, RadioButtonSize, RadioGroupComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SanitizeNullPipe, SimpleBreakpoint, SlideToggleComponent, SliderComponent, StylingTheme, SwipeDirective, TextInputComponent, TextValuePair, TextValuePairArray, TimeDirective, TimeInputComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, WindowDimensions, YesNoRadiogroupComponent, noSpecialCharsOnly, noWhitespaceOnly };
4976
+ export { BackToTopComponent, Breakpoint, ButtonAppearance, ButtonComponent, ButtonResponseType, CardComponent, CheckboxComponent, Color, ColorInputComponent, ConfirmationDialogComponent, CustomPipesModule, DateInputComponent, DirectivesModule, DropdownFromDataComponent, DynamicFieldDirective, EnumRadiogroupComponent, FieldRegistryService, FieldType, FileInputComponent, FlyoutComponent, FormActionsComponent, FormFieldComponent, FormLayout, FormParentComponent, FormSectionComponent, GenericFormComponent, GenericFormModule, GenericFormService, GetMaxHeightDirective, IconComponent, IconSizePx, IconSizesArr, ImageSliderComponent, ImageSnippet, ImageSourceType, InlineAlertComponent, IntegerCurrency, KMSAccordionItemComponent, KeyValuePair, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LabelValuePair, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, NumericInputComponent, PasswordComponent, RadioButtonComponent, RadioButtonSize, RadioGroupComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SanitizeNullPipe, SimpleBreakpoint, SlideToggleComponent, SliderComponent, StylingTheme, SwipeDirective, TextInputComponent, TextValuePair, TextValuePairArray, TimeDirective, TimeInputComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, WindowDimensions, YesNoRadiogroupComponent, noSpecialCharsOnly, noWhitespaceOnly };
4953
4977
  //# sourceMappingURL=kms-ngx-ui-presentational.mjs.map