@lifecorner/angular-ui-kit 3.11.4 → 3.11.5

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 (28) hide show
  1. package/fesm2022/lifecorner-angular-ui-kit-accordion.mjs +6 -3
  2. package/fesm2022/lifecorner-angular-ui-kit-accordion.mjs.map +1 -1
  3. package/fesm2022/lifecorner-angular-ui-kit-calendar.mjs +11 -6
  4. package/fesm2022/lifecorner-angular-ui-kit-calendar.mjs.map +1 -1
  5. package/fesm2022/lifecorner-angular-ui-kit-file-upload.mjs +7 -2
  6. package/fesm2022/lifecorner-angular-ui-kit-file-upload.mjs.map +1 -1
  7. package/fesm2022/lifecorner-angular-ui-kit-gallery.mjs +7 -2
  8. package/fesm2022/lifecorner-angular-ui-kit-gallery.mjs.map +1 -1
  9. package/fesm2022/lifecorner-angular-ui-kit-header.mjs +4 -2
  10. package/fesm2022/lifecorner-angular-ui-kit-header.mjs.map +1 -1
  11. package/fesm2022/lifecorner-angular-ui-kit-internal-a11y.mjs +20 -0
  12. package/fesm2022/lifecorner-angular-ui-kit-internal-a11y.mjs.map +1 -0
  13. package/fesm2022/lifecorner-angular-ui-kit-pagination.mjs +5 -2
  14. package/fesm2022/lifecorner-angular-ui-kit-pagination.mjs.map +1 -1
  15. package/fesm2022/lifecorner-angular-ui-kit-rich-text-editor.mjs +6 -2
  16. package/fesm2022/lifecorner-angular-ui-kit-rich-text-editor.mjs.map +1 -1
  17. package/fesm2022/lifecorner-angular-ui-kit-stepper.mjs +11 -6
  18. package/fesm2022/lifecorner-angular-ui-kit-stepper.mjs.map +1 -1
  19. package/package.json +5 -1
  20. package/types/lifecorner-angular-ui-kit-accordion.d.ts +31 -9
  21. package/types/lifecorner-angular-ui-kit-calendar.d.ts +1 -0
  22. package/types/lifecorner-angular-ui-kit-file-upload.d.ts +18 -3
  23. package/types/lifecorner-angular-ui-kit-gallery.d.ts +17 -2
  24. package/types/lifecorner-angular-ui-kit-header.d.ts +12 -1
  25. package/types/lifecorner-angular-ui-kit-internal-a11y.d.ts +27 -0
  26. package/types/lifecorner-angular-ui-kit-pagination.d.ts +15 -2
  27. package/types/lifecorner-angular-ui-kit-rich-text-editor.d.ts +13 -1
  28. package/types/lifecorner-angular-ui-kit-stepper.d.ts +16 -5
@@ -35,9 +35,18 @@ export declare class PaginationComponent {
35
35
  readonly previousLabel: import("@angular/core").InputSignal<string>;
36
36
  /** Visible text of the next button */
37
37
  readonly nextLabel: import("@angular/core").InputSignal<string>;
38
- /** Accessible name of the previous button (the visible text is hidden on small screens) */
38
+ /**
39
+ * Accessible name of the previous button (the visible text is hidden on
40
+ * small screens). `previousLabel` is appended when this doesn't contain it
41
+ * (WCAG 2.5.3 Label in Name), e.g. `Vorherige Seite, Zurück`.
42
+ * @default 'Previous page'
43
+ */
39
44
  readonly previousAriaLabel: import("@angular/core").InputSignal<string>;
40
- /** Accessible name of the next button */
45
+ /**
46
+ * Accessible name of the next button. `nextLabel` is appended when this
47
+ * doesn't contain it (WCAG 2.5.3 Label in Name), e.g. `Nächste Seite, Weiter`.
48
+ * @default 'Next page'
49
+ */
41
50
  readonly nextAriaLabel: import("@angular/core").InputSignal<string>;
42
51
  /** Accessible name of a page button; `{page}` is replaced with the page number */
43
52
  readonly pageAriaLabel: import("@angular/core").InputSignal<string>;
@@ -47,6 +56,10 @@ export declare class PaginationComponent {
47
56
  */
48
57
  readonly infoText: import("@angular/core").InputSignal<string>;
49
58
  readonly pageChange: import("@angular/core").OutputEmitterRef<number>;
59
+ /** Name of the previous button: its label, then the visible text unless contained (AS-33). */
60
+ protected readonly previousButtonAriaLabel: import("@angular/core").Signal<string>;
61
+ /** Name of the next button: its label, then the visible text unless contained (AS-33). */
62
+ protected readonly nextButtonAriaLabel: import("@angular/core").Signal<string>;
50
63
  totalPages: import("@angular/core").Signal<number>;
51
64
  firstItemIndex: import("@angular/core").Signal<number>;
52
65
  lastItemIndex: import("@angular/core").Signal<number>;
@@ -47,7 +47,13 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
47
47
  toolbar: import("@angular/core").InputSignal<ToolbarConfig>;
48
48
  /** Whether to show word count */
49
49
  showWordCount: import("@angular/core").InputSignal<boolean>;
50
- /** Tooltips and accessible names of the toolbar actions, by action (`{ bold: 'Fett' }`); missing ones keep the English default. */
50
+ /**
51
+ * Tooltips and accessible names of the toolbar actions, by action
52
+ * (`{ bold: 'Fett' }`); missing ones keep the English default. A visible
53
+ * button label with letters or digits that the title doesn't contain is
54
+ * appended (`Heading 1, H1`, WCAG 2.5.3 Label in Name).
55
+ * @default {}
56
+ */
51
57
  actionTitles: import("@angular/core").InputSignal<Partial<Record<ToolbarAction, string>>>;
52
58
  /** Label of the rich-text mode button. */
53
59
  richModeLabel: import("@angular/core").InputSignal<string>;
@@ -118,6 +124,12 @@ export declare class RichTextEditorComponent implements ControlValueAccessor {
118
124
  private getSelection;
119
125
  protected getActionLabel(action: ToolbarAction): string;
120
126
  protected getActionTitle(action: ToolbarAction): string;
127
+ /**
128
+ * Tooltip and accessible name of a toolbar button (AS-33, WCAG 2.5.3 Label
129
+ * in Name): the title, then the visible label when it has letters or digits
130
+ * the title doesn't contain (`Heading 1, H1`). Symbol labels keep the title.
131
+ */
132
+ protected getActionName(action: ToolbarAction): string;
121
133
  /**
122
134
  * Converts the editor's markdown subset to HTML. The source is HTML-escaped
123
135
  * *first*, so nothing in it can open a tag or an attribute; the conversions
@@ -35,12 +35,18 @@ export declare class StepperComponent {
35
35
  readonly linear: import("@angular/core").InputSignal<boolean>;
36
36
  /** Orientation */
37
37
  readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
38
- /** Text shown under optional steps */
38
+ /**
39
+ * Text shown under optional steps; it also ends the step's accessible name.
40
+ * @default 'Optional'
41
+ */
39
42
  readonly optionalLabel: import("@angular/core").InputSignal<string>;
40
43
  /**
41
44
  * Accessible name template for each step button. Placeholders: `{n}`
42
- * (1-based step number), `{m}` (step count), `{label}`. Optional steps get
43
- * `optionalLabel` appended.
45
+ * (1-based step number), `{m}` (step count), `{label}`. The step's visible
46
+ * description and `optionalLabel` follow the filled template,
47
+ * comma-separated (`Step 2 of 3: Profile, Set up your profile`). Keep
48
+ * `{label}` last, so that the name contains the visible text (WCAG 2.5.3).
49
+ * @default 'Step {n} of {m}: {label}'
44
50
  */
45
51
  readonly stepAriaLabel: import("@angular/core").InputSignal<string>;
46
52
  /** Emitted when active step changes */
@@ -60,9 +66,14 @@ export declare class StepperComponent {
60
66
  * only completed steps (and the active one) are reachable.
61
67
  */
62
68
  isStepNavigable(index: number): boolean;
63
- /** Accessible name for the step button at `index` */
69
+ /**
70
+ * Accessible name for the step button at `index` (AS-33, WCAG 2.5.3 Label
71
+ * in Name): the filled `stepAriaLabel`, then the visible description and
72
+ * `optionalLabel`, comma-separated, so the name contains the visible text.
73
+ * A template that doesn't end with `{label}` gets the label after it.
74
+ */
64
75
  getStepAriaLabel(index: number): string;
65
- /** Id of the description element for `aria-describedby` (or null) */
76
+ /** Id of the description element (or null); the description is part of the step's name. */
66
77
  getDescriptionId(index: number): string | null;
67
78
  /** Navigate to a specific step (only if navigable, see `isStepNavigable`) */
68
79
  goToStep(index: number): void;