@4sh/ui-kit 0.16.0 → 0.17.1
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/README.fr.md +10 -10
- package/README.md +10 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +275 -194
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { UiIconSize } from "@4sh/ui-kit/base/ui-icon";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type AvatarSize = 'tiny' | 'small' | 'default' | 'large';
|
|
7
|
+
export type AvatarShape = 'circle' | 'square';
|
|
6
8
|
/** Rendering mode resolved from the provided inputs. */
|
|
7
|
-
type AvatarMode = 'image' | 'label' | 'icon';
|
|
9
|
+
export type AvatarMode = 'image' | 'label' | 'icon';
|
|
8
10
|
/**
|
|
9
11
|
* ui-avatar — represents a user or entity with an image, initials or an icon.
|
|
10
12
|
*
|
|
@@ -15,41 +17,76 @@ type AvatarMode = 'image' | 'label' | 'icon';
|
|
|
15
17
|
* Accessible: exposes an accessible name via `alt` (image) or `ariaLabel`; a bare icon
|
|
16
18
|
* avatar with no name is treated as decorative (aria-hidden).
|
|
17
19
|
*/
|
|
18
|
-
declare class UiAvatar {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
20
|
+
export declare class UiAvatar {
|
|
21
|
+
/** Image source (image mode). Highest priority. */
|
|
22
|
+
image: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
/** Alternative text for the image (accessible name in image mode). */
|
|
24
|
+
alt: import("@angular/core").InputSignal<string | undefined>;
|
|
25
|
+
/** Short text / initials (label mode). Used when no image is set. */
|
|
26
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
27
|
+
/** FontAwesome icon name (icon mode). Fallback when neither image nor label is set. */
|
|
28
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
29
|
+
/** Avatar size. */
|
|
30
|
+
size: import("@angular/core").InputSignal<AvatarSize>;
|
|
31
|
+
/** Avatar shape. */
|
|
32
|
+
shape: import("@angular/core").InputSignal<AvatarShape>;
|
|
33
|
+
/** Explicit accessible name (recommended for image and icon modes). */
|
|
34
|
+
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
35
|
+
/** Emitted when the image fails to load (the avatar then falls back to label/icon). */
|
|
36
|
+
imageError: import("@angular/core").OutputEmitterRef<Event>;
|
|
37
|
+
/** @ignore Set once the current image source failed to load. */
|
|
38
|
+
private readonly imageFailed;
|
|
39
|
+
constructor();
|
|
40
|
+
/** @ignore Rendering mode resolved from the inputs (image > label > icon). */
|
|
41
|
+
protected readonly mode: import("@angular/core").Signal<AvatarMode>;
|
|
42
|
+
/** @ignore Icon size mapped from the avatar size. */
|
|
43
|
+
protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
|
|
44
|
+
/** @ignore Accessible name for the label/icon modes (image mode uses `alt`). */
|
|
45
|
+
protected readonly accessibleName: import("@angular/core").Signal<string | null>;
|
|
46
|
+
/** @ignore Icon avatar with no accessible name → purely decorative. */
|
|
47
|
+
protected readonly isDecorative: import("@angular/core").Signal<boolean>;
|
|
48
|
+
/** @ignore */
|
|
49
|
+
protected readonly classes: import("@angular/core").Signal<string>;
|
|
50
|
+
/** @ignore */
|
|
51
|
+
protected onImageError(event: Event): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiAvatar, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiAvatar, "ui-avatar", never, {
|
|
54
|
+
"image": {
|
|
55
|
+
"alias": "image";
|
|
56
|
+
"required": false;
|
|
57
|
+
"isSignal": true;
|
|
58
|
+
};
|
|
59
|
+
"alt": {
|
|
60
|
+
"alias": "alt";
|
|
61
|
+
"required": false;
|
|
62
|
+
"isSignal": true;
|
|
63
|
+
};
|
|
64
|
+
"label": {
|
|
65
|
+
"alias": "label";
|
|
66
|
+
"required": false;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"icon": {
|
|
70
|
+
"alias": "icon";
|
|
71
|
+
"required": false;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"size": {
|
|
75
|
+
"alias": "size";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
"shape": {
|
|
80
|
+
"alias": "shape";
|
|
81
|
+
"required": false;
|
|
82
|
+
"isSignal": true;
|
|
83
|
+
};
|
|
84
|
+
"ariaLabel": {
|
|
85
|
+
"alias": "ariaLabel";
|
|
86
|
+
"required": false;
|
|
87
|
+
"isSignal": true;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
"imageError": "imageError";
|
|
91
|
+
}, never, ["[avatarBadge]"], true, never>;
|
|
92
|
+
}
|
|
@@ -1,44 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { UiIconSize } from "@4sh/ui-kit/base/ui-icon";
|
|
5
|
+
import { UiFeedbackLevel, UiSubLevel } from "@4sh/ui-kit/types";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type BadgeSize = 'default' | 'small' | 'large';
|
|
6
8
|
/**
|
|
7
9
|
* ui-badge — small status / count indicator.
|
|
8
10
|
*/
|
|
9
|
-
declare class UiBadge {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
11
|
+
export declare class UiBadge {
|
|
12
|
+
/** Text content (counter or short label). Absent with no icon: the badge is a dot. */
|
|
13
|
+
value: import("@angular/core").InputSignal<string | number | undefined>;
|
|
14
|
+
/** Feedback level (colour family). */
|
|
15
|
+
level: import("@angular/core").InputSignal<UiFeedbackLevel>;
|
|
16
|
+
/** Intensity: `high` (strong) or `low` (subtle). */
|
|
17
|
+
subLevel: import("@angular/core").InputSignal<UiSubLevel>;
|
|
18
|
+
/** Badge size. */
|
|
19
|
+
size: import("@angular/core").InputSignal<BadgeSize>;
|
|
20
|
+
/** FontAwesome icon name, shown before the text. */
|
|
21
|
+
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
22
|
+
/** Accessible name, recommended for an icon-only badge or an ambiguous counter. */
|
|
23
|
+
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
24
|
+
constructor();
|
|
25
|
+
/** @ignore There is text here */
|
|
26
|
+
protected readonly hasText: import("@angular/core").Signal<boolean>;
|
|
27
|
+
/** @ignore There is an icon. */
|
|
28
|
+
protected readonly hasIcon: import("@angular/core").Signal<boolean>;
|
|
29
|
+
/** @ignore Icon only (no text). */
|
|
30
|
+
protected readonly isIconOnly: import("@angular/core").Signal<boolean>;
|
|
31
|
+
/** @ignore Dot: no text and no icon. */
|
|
32
|
+
protected readonly isDot: import("@angular/core").Signal<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* @ignore Single glyph: a lone icon, or a single character (counter "1", symbol "★").
|
|
35
|
+
*/
|
|
36
|
+
protected readonly isSingle: import("@angular/core").Signal<boolean>;
|
|
37
|
+
/** @ignore Bullet: Neither text nor icon. */
|
|
38
|
+
protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
|
|
39
|
+
/** @ignore */
|
|
40
|
+
protected readonly classes: import("@angular/core").Signal<string>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiBadge, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiBadge, "ui-badge", never, {
|
|
43
|
+
"value": {
|
|
44
|
+
"alias": "value";
|
|
45
|
+
"required": false;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
"level": {
|
|
49
|
+
"alias": "level";
|
|
50
|
+
"required": false;
|
|
51
|
+
"isSignal": true;
|
|
52
|
+
};
|
|
53
|
+
"subLevel": {
|
|
54
|
+
"alias": "subLevel";
|
|
55
|
+
"required": false;
|
|
56
|
+
"isSignal": true;
|
|
57
|
+
};
|
|
58
|
+
"size": {
|
|
59
|
+
"alias": "size";
|
|
60
|
+
"required": false;
|
|
61
|
+
"isSignal": true;
|
|
62
|
+
};
|
|
63
|
+
"icon": {
|
|
64
|
+
"alias": "icon";
|
|
65
|
+
"required": false;
|
|
66
|
+
"isSignal": true;
|
|
67
|
+
};
|
|
68
|
+
"ariaLabel": {
|
|
69
|
+
"alias": "ariaLabel";
|
|
70
|
+
"required": false;
|
|
71
|
+
"isSignal": true;
|
|
72
|
+
};
|
|
73
|
+
}, {}, never, never, true, never>;
|
|
74
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { UiIconSize } from "@4sh/ui-kit/base/ui-icon";
|
|
5
|
+
import { UiFeedbackLevel, UiSubLevel } from "@4sh/ui-kit/types";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type ChipSize = 'default' | 'small';
|
|
6
8
|
/**
|
|
7
9
|
* ui-chip — compact, interactive entity token.
|
|
8
10
|
*
|
|
@@ -18,97 +20,190 @@ type ChipSize = 'default' | 'small';
|
|
|
18
20
|
* `ariaLabel` / `ariaLabelledBy`); the remove action is a native `<button>`, focusable
|
|
19
21
|
* with Tab and removable with Enter/Space (native) plus Backspace/Delete.
|
|
20
22
|
*/
|
|
21
|
-
declare class UiChip {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
23
|
+
export declare class UiChip {
|
|
24
|
+
/** Text content of the chip. */
|
|
25
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
26
|
+
/** Color family. */
|
|
27
|
+
level: import("@angular/core").InputSignal<UiFeedbackLevel>;
|
|
28
|
+
/** Intensity: high (solid) or low (subtle). Chips default to the discreet `low`. */
|
|
29
|
+
subLevel: import("@angular/core").InputSignal<UiSubLevel>;
|
|
30
|
+
/** Size. */
|
|
31
|
+
size: import("@angular/core").InputSignal<ChipSize>;
|
|
32
|
+
/** FontAwesome name of the leading icon (ignored when `image` is set). */
|
|
33
|
+
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
34
|
+
/** Leading image source (avatar-like). Takes priority over `icon`. */
|
|
35
|
+
image: import("@angular/core").InputSignal<string | undefined>;
|
|
36
|
+
/** Alternative text for the image (leave empty for a decorative image next to a label). */
|
|
37
|
+
alt: import("@angular/core").InputSignal<string | undefined>;
|
|
38
|
+
/** Pill shape when true (default); rounded-rectangle when false. */
|
|
39
|
+
rounded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
/** Displays a remove action at the end of the chip. */
|
|
41
|
+
removable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
42
|
+
/** FontAwesome name of the remove icon. */
|
|
43
|
+
removeIcon: import("@angular/core").InputSignal<string>;
|
|
44
|
+
/** Disables the chip (the remove action / selection becomes non-interactive). */
|
|
45
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
46
|
+
/**
|
|
47
|
+
* Turns the whole chip into a selectable toggle (choice/filter chip). The root
|
|
48
|
+
* becomes a native `<button aria-pressed>`; clicking toggles `selected`.
|
|
49
|
+
* Mutually exclusive with `removable` (nesting interactive elements is invalid).
|
|
50
|
+
*/
|
|
51
|
+
selectable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
/** Two-way selection state (only meaningful when `selectable`). */
|
|
53
|
+
selected: import("@angular/core").ModelSignal<boolean>;
|
|
54
|
+
/** FontAwesome name shown in the leading slot while selected (selectable mode). */
|
|
55
|
+
selectedIcon: import("@angular/core").InputSignal<string>;
|
|
56
|
+
/** Explicit accessible name (overrides the `label` default). */
|
|
57
|
+
ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
58
|
+
/** Id of the element labelling the chip (overrides `ariaLabel`/`label`). */
|
|
59
|
+
ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
60
|
+
/** Accessible name of the remove action. */
|
|
61
|
+
removeAriaLabel: import("@angular/core").InputSignal<string>;
|
|
62
|
+
/**
|
|
63
|
+
* `tabindex` of the remove action. Leave unset for the natural tab order;
|
|
64
|
+
* set `-1` when the chip lives inside a roving-focus container (e.g.
|
|
65
|
+
* `ui-input-tags`) so the button is not a separate tab stop.
|
|
66
|
+
*/
|
|
67
|
+
removeTabindex: import("@angular/core").InputSignal<number | undefined>;
|
|
68
|
+
/** Emitted when the chip is removed (click or keyboard on the remove action). */
|
|
69
|
+
remove: import("@angular/core").OutputEmitterRef<Event>;
|
|
70
|
+
/** Emitted when a selectable chip is toggled (click or keyboard on the chip). */
|
|
71
|
+
chipClick: import("@angular/core").OutputEmitterRef<Event>;
|
|
72
|
+
/** Emitted when the image fails to load (the chip then falls back to icon/label). */
|
|
73
|
+
imageError: import("@angular/core").OutputEmitterRef<Event>;
|
|
74
|
+
/** @ignore Set once the current image source failed to load. */
|
|
75
|
+
private readonly imageFailed;
|
|
76
|
+
constructor();
|
|
77
|
+
/** @ignore There is a textual label. */
|
|
78
|
+
protected readonly hasLabel: import("@angular/core").Signal<boolean>;
|
|
79
|
+
/** @ignore The leading image is shown (source set and not failed). */
|
|
80
|
+
protected readonly showImage: import("@angular/core").Signal<boolean>;
|
|
81
|
+
/** @ignore Selectable + selected: the leading slot shows the selected icon. */
|
|
82
|
+
protected readonly showSelectedIcon: import("@angular/core").Signal<boolean>;
|
|
83
|
+
/** @ignore The leading image is shown (not overridden by the selected icon). */
|
|
84
|
+
protected readonly showLeadingImage: import("@angular/core").Signal<boolean>;
|
|
85
|
+
/** @ignore The leading font icon is shown (no image / selected icon taking its place). */
|
|
86
|
+
protected readonly showIcon: import("@angular/core").Signal<boolean>;
|
|
87
|
+
/** @ignore The leading font icon is shown (not overridden by the selected icon). */
|
|
88
|
+
protected readonly showLeadingIcon: import("@angular/core").Signal<boolean>;
|
|
89
|
+
/** @ignore The remove action is rendered (never inside a selectable button). */
|
|
90
|
+
protected readonly showRemove: import("@angular/core").Signal<boolean>;
|
|
91
|
+
/** @ignore A visual (icon/image) with no textual label. */
|
|
92
|
+
protected readonly isVisualOnly: import("@angular/core").Signal<boolean>;
|
|
93
|
+
/** @ignore Resolved accessible name from the explicit label / ariaLabel. */
|
|
94
|
+
protected readonly accessibleName: import("@angular/core").Signal<string | null>;
|
|
95
|
+
/** @ignore Root `aria-label`: explicit name, suppressed when `ariaLabelledBy` wins. */
|
|
96
|
+
protected readonly rootAriaLabel: import("@angular/core").Signal<string | null>;
|
|
97
|
+
/** @ignore Leading icon size derived from the chip size. */
|
|
98
|
+
protected readonly iconSize: import("@angular/core").Signal<UiIconSize>;
|
|
99
|
+
/** @ignore Remove icon is compact regardless of chip size. */
|
|
100
|
+
protected readonly removeIconSize: UiIconSize;
|
|
101
|
+
/** @ignore */
|
|
102
|
+
protected readonly classes: import("@angular/core").Signal<string>;
|
|
103
|
+
/** @ignore */
|
|
104
|
+
protected onImageError(event: Event): void;
|
|
105
|
+
/** @ignore */
|
|
106
|
+
protected onRemove(event: Event): void;
|
|
107
|
+
/** @ignore Backspace/Delete on the remove button also removes (Enter/Space are native). */
|
|
108
|
+
protected onRemoveKeydown(event: KeyboardEvent): void;
|
|
109
|
+
/** @ignore Toggle the selection (selectable mode). Enter/Space fire this via native click. */
|
|
110
|
+
protected onToggle(event: Event): void;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiChip, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiChip, "ui-chip", never, {
|
|
113
|
+
"label": {
|
|
114
|
+
"alias": "label";
|
|
115
|
+
"required": false;
|
|
116
|
+
"isSignal": true;
|
|
117
|
+
};
|
|
118
|
+
"level": {
|
|
119
|
+
"alias": "level";
|
|
120
|
+
"required": false;
|
|
121
|
+
"isSignal": true;
|
|
122
|
+
};
|
|
123
|
+
"subLevel": {
|
|
124
|
+
"alias": "subLevel";
|
|
125
|
+
"required": false;
|
|
126
|
+
"isSignal": true;
|
|
127
|
+
};
|
|
128
|
+
"size": {
|
|
129
|
+
"alias": "size";
|
|
130
|
+
"required": false;
|
|
131
|
+
"isSignal": true;
|
|
132
|
+
};
|
|
133
|
+
"icon": {
|
|
134
|
+
"alias": "icon";
|
|
135
|
+
"required": false;
|
|
136
|
+
"isSignal": true;
|
|
137
|
+
};
|
|
138
|
+
"image": {
|
|
139
|
+
"alias": "image";
|
|
140
|
+
"required": false;
|
|
141
|
+
"isSignal": true;
|
|
142
|
+
};
|
|
143
|
+
"alt": {
|
|
144
|
+
"alias": "alt";
|
|
145
|
+
"required": false;
|
|
146
|
+
"isSignal": true;
|
|
147
|
+
};
|
|
148
|
+
"rounded": {
|
|
149
|
+
"alias": "rounded";
|
|
150
|
+
"required": false;
|
|
151
|
+
"isSignal": true;
|
|
152
|
+
};
|
|
153
|
+
"removable": {
|
|
154
|
+
"alias": "removable";
|
|
155
|
+
"required": false;
|
|
156
|
+
"isSignal": true;
|
|
157
|
+
};
|
|
158
|
+
"removeIcon": {
|
|
159
|
+
"alias": "removeIcon";
|
|
160
|
+
"required": false;
|
|
161
|
+
"isSignal": true;
|
|
162
|
+
};
|
|
163
|
+
"disabled": {
|
|
164
|
+
"alias": "disabled";
|
|
165
|
+
"required": false;
|
|
166
|
+
"isSignal": true;
|
|
167
|
+
};
|
|
168
|
+
"selectable": {
|
|
169
|
+
"alias": "selectable";
|
|
170
|
+
"required": false;
|
|
171
|
+
"isSignal": true;
|
|
172
|
+
};
|
|
173
|
+
"selected": {
|
|
174
|
+
"alias": "selected";
|
|
175
|
+
"required": false;
|
|
176
|
+
"isSignal": true;
|
|
177
|
+
};
|
|
178
|
+
"selectedIcon": {
|
|
179
|
+
"alias": "selectedIcon";
|
|
180
|
+
"required": false;
|
|
181
|
+
"isSignal": true;
|
|
182
|
+
};
|
|
183
|
+
"ariaLabel": {
|
|
184
|
+
"alias": "ariaLabel";
|
|
185
|
+
"required": false;
|
|
186
|
+
"isSignal": true;
|
|
187
|
+
};
|
|
188
|
+
"ariaLabelledBy": {
|
|
189
|
+
"alias": "ariaLabelledBy";
|
|
190
|
+
"required": false;
|
|
191
|
+
"isSignal": true;
|
|
192
|
+
};
|
|
193
|
+
"removeAriaLabel": {
|
|
194
|
+
"alias": "removeAriaLabel";
|
|
195
|
+
"required": false;
|
|
196
|
+
"isSignal": true;
|
|
197
|
+
};
|
|
198
|
+
"removeTabindex": {
|
|
199
|
+
"alias": "removeTabindex";
|
|
200
|
+
"required": false;
|
|
201
|
+
"isSignal": true;
|
|
202
|
+
};
|
|
203
|
+
}, {
|
|
204
|
+
"selected": "selectedChange";
|
|
205
|
+
"remove": "remove";
|
|
206
|
+
"chipClick": "chipClick";
|
|
207
|
+
"imageError": "imageError";
|
|
208
|
+
}, never, ["*"], true, never>;
|
|
209
|
+
}
|