@lifecorner/angular-ui-kit 3.25.1 → 3.26.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 (24) hide show
  1. package/fesm2022/lifecorner-angular-ui-kit-button.mjs +18 -2
  2. package/fesm2022/lifecorner-angular-ui-kit-button.mjs.map +1 -1
  3. package/fesm2022/lifecorner-angular-ui-kit-choice-prompt.mjs +1 -0
  4. package/fesm2022/lifecorner-angular-ui-kit-choice-prompt.mjs.map +1 -1
  5. package/fesm2022/lifecorner-angular-ui-kit-confirm-dialog.mjs +1 -0
  6. package/fesm2022/lifecorner-angular-ui-kit-confirm-dialog.mjs.map +1 -1
  7. package/fesm2022/lifecorner-angular-ui-kit-copy-field.mjs +1 -0
  8. package/fesm2022/lifecorner-angular-ui-kit-copy-field.mjs.map +1 -1
  9. package/fesm2022/lifecorner-angular-ui-kit-description-list.mjs +2 -2
  10. package/fesm2022/lifecorner-angular-ui-kit-description-list.mjs.map +1 -1
  11. package/fesm2022/lifecorner-angular-ui-kit-file-upload.mjs +8 -4
  12. package/fesm2022/lifecorner-angular-ui-kit-file-upload.mjs.map +1 -1
  13. package/fesm2022/lifecorner-angular-ui-kit-header.mjs +1 -0
  14. package/fesm2022/lifecorner-angular-ui-kit-header.mjs.map +1 -1
  15. package/fesm2022/lifecorner-angular-ui-kit-list.mjs +1 -0
  16. package/fesm2022/lifecorner-angular-ui-kit-list.mjs.map +1 -1
  17. package/fesm2022/lifecorner-angular-ui-kit-next-step-card.mjs +1 -0
  18. package/fesm2022/lifecorner-angular-ui-kit-next-step-card.mjs.map +1 -1
  19. package/fesm2022/lifecorner-angular-ui-kit-table.mjs +1 -0
  20. package/fesm2022/lifecorner-angular-ui-kit-table.mjs.map +1 -1
  21. package/package.json +1 -1
  22. package/types/lifecorner-angular-ui-kit-button.d.ts +20 -0
  23. package/types/lifecorner-angular-ui-kit-description-list.d.ts +4 -0
  24. package/types/lifecorner-angular-ui-kit-file-upload.d.ts +5 -0
@@ -54,6 +54,19 @@ export declare class ButtonComponent {
54
54
  readonly iconOnly: import("@angular/core").InputSignal<boolean>;
55
55
  readonly fullWidth: import("@angular/core").InputSignal<boolean>;
56
56
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
57
+ /**
58
+ * Id, or space-separated ids, of elements that describe the button, set as
59
+ * `aria-describedby` on the inner `<button>`: a screen reader reads the
60
+ * button's name and then their text, also while `disabled` or `loading`.
61
+ * Use it to tie a visible reason line ("Wählen Sie zuerst eine Datei.") to a
62
+ * disabled button; `disabledReason` stays a tooltip for pointers (with both
63
+ * set, the description comes from the ids, so the tooltip is not read
64
+ * twice). Empty renders no attribute. The kit does not check that the ids
65
+ * exist. Don't put `aria-describedby` on `<lc-button>` itself: it would stay
66
+ * on the host. (3.26)
67
+ * @default ''
68
+ */
69
+ readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
57
70
  readonly type: import("@angular/core").InputSignal<ButtonType>;
58
71
  /**
59
72
  * Native tooltip (title attribute) on the button.
@@ -146,6 +159,11 @@ export declare class ButtonComponent {
146
159
  "required": false;
147
160
  "isSignal": true;
148
161
  };
162
+ "ariaDescribedBy": {
163
+ "alias": "ariaDescribedBy";
164
+ "required": false;
165
+ "isSignal": true;
166
+ };
149
167
  "type": {
150
168
  "alias": "type";
151
169
  "required": false;
@@ -186,6 +204,8 @@ export declare class ButtonComponent {
186
204
  * `title`, `aria-*`) passes through untouched, and the component adds no event
187
205
  * listeners: after server-side rendering or prerendering the markup is a plain
188
206
  * `<a class="btn btn-primary btn-md" href="…">` that works without JavaScript.
207
+ * For a description, set `aria-describedby` on the anchor itself; unlike
208
+ * `lc-button` there is no `ariaDescribedBy` input (3.26).
189
209
  * `routerLink` can sit on the same anchor for in-app navigation.
190
210
  *
191
211
  * Same variants, sizes and modifiers as `lc-button` (it shares its stylesheet).
@@ -46,6 +46,10 @@ export type DescriptionListSeparator = 'line' | 'divider' | 'none';
46
46
  * Features:
47
47
  * - `rows` layout: term on the left, value on the right, with an optional
48
48
  * dotted leader line connecting them (the DS2.0 "spec sheet" look).
49
+ * - `rows`: a row that is too narrow is shared — term and value each keep
50
+ * their width up to half of the free width (row − 32 px); the longer one
51
+ * wraps in the rest: the term at spaces, the value at spaces or inside an
52
+ * unbroken string (3.26).
49
53
  * - `stacked` layout: term above value, for narrow columns.
50
54
  * - Per-row value emphasis and optional links.
51
55
  * - Semantic markup (`<dl>`/`<dt>`/`<dd>`) for accessibility; `clickable`
@@ -119,6 +119,11 @@ export declare class FileUploadComponent {
119
119
  protected onDrop(event: DragEvent): void;
120
120
  protected onFileChange(event: Event): void;
121
121
  protected openFilePicker(): void;
122
+ /**
123
+ * Enter or Space on the zone (3.25.2): no page scroll on Space, one open per
124
+ * press (auto-repeat ignored).
125
+ */
126
+ protected onKeyActivate(event: Event): void;
122
127
  protected removeFile(index: number): void;
123
128
  protected formatSize(bytes: number): string;
124
129
  /** Why `file` is rejected: type first, then size; null when it is accepted. */