@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.
Files changed (219) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +299 -2
  143. package/mcp/data/text-search-docs.json +149 -9
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  150. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  151. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  152. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  153. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  154. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  155. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
  156. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  157. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  158. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  159. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  160. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  161. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  162. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  163. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  164. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
  165. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
  166. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
  167. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  168. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
  169. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  170. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  171. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  172. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  173. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  174. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  175. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  176. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  177. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  178. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
  179. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  180. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  181. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  182. package/types/4sh-ui-kit-forms.d.ts +275 -194
  183. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  184. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  185. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  186. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  187. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  188. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  189. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  190. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  191. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  192. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  193. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  194. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  195. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  196. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  197. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  198. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  199. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  200. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  201. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  202. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  203. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  204. package/types/4sh-ui-kit-motion.d.ts +117 -67
  205. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  206. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  207. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  208. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  209. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  210. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  211. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  212. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  213. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  214. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  215. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  216. package/types/4sh-ui-kit-theming.d.ts +27 -29
  217. package/types/4sh-ui-kit-types.d.ts +6 -5
  218. package/types/4sh-ui-kit.d.ts +4 -3
  219. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,52 +1,54 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TemplateRef } from '@angular/core';
3
- import { Params } from '@angular/router';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { TemplateRef } from "@angular/core";
6
+ import { Params } from "@angular/router";
5
7
  /** Breadcrumb density: `small` = compact rendering. */
6
- type BreadcrumbSize = 'default' | 'small';
8
+ export type BreadcrumbSize = 'default' | 'small';
7
9
  /** Payload passed to `command` callbacks and emitted by `itemClick`. */
8
- interface UiBreadcrumbItemCommandEvent {
9
- originalEvent: Event;
10
- item: UiBreadcrumbItem;
10
+ export interface UiBreadcrumbItemCommandEvent {
11
+ originalEvent: Event;
12
+ item: UiBreadcrumbItem;
11
13
  }
12
14
  /**
13
15
  * Declarative breadcrumb entry. An item navigates through `url` (external)
14
16
  * or `routerLink` (internal), and/or triggers a `command` callback.
15
17
  */
16
- interface UiBreadcrumbItem {
17
- /** Text of the crumb. */
18
- label?: string;
19
- /** Leading FontAwesome icon name (icon-only crumb when no label, e.g. home). */
20
- icon?: string;
21
- /** Accessible name override (required for an icon-only crumb). */
22
- ariaLabel?: string;
23
- /** External / plain URL — the crumb renders a plain anchor. */
24
- url?: string;
25
- /** Anchor target (e.g. `_blank`). */
26
- target?: string;
27
- /** Anchor rel. Defaults to `noopener noreferrer` when `target="_blank"`. */
28
- rel?: string;
29
- /** Angular router target — the crumb renders a RouterLink anchor. */
30
- routerLink?: string | unknown[];
31
- /** Query params passed to `routerLink`. */
32
- queryParams?: Params;
33
- /** URL fragment passed to `routerLink`. */
34
- fragment?: string;
35
- /** Callback invoked when the crumb is clicked. */
36
- command?: (event: UiBreadcrumbItemCommandEvent) => void;
37
- /** Disable the crumb (no navigation, out of the tab sequence). */
38
- disabled?: boolean;
39
- /** Hide the crumb entirely (default true). */
40
- visible?: boolean;
41
- /** Extra class on the crumb's `<li>`. */
42
- styleClass?: string;
18
+ export interface UiBreadcrumbItem {
19
+ /** Text of the crumb. */
20
+ label?: string;
21
+ /** Leading FontAwesome icon name (icon-only crumb when no label, e.g. home). */
22
+ icon?: string;
23
+ /** Accessible name override (required for an icon-only crumb). */
24
+ ariaLabel?: string;
25
+ /** External / plain URL — the crumb renders a plain anchor. */
26
+ url?: string;
27
+ /** Anchor target (e.g. `_blank`). */
28
+ target?: string;
29
+ /** Anchor rel. Defaults to `noopener noreferrer` when `target="_blank"`. */
30
+ rel?: string;
31
+ /** Angular router target — the crumb renders a RouterLink anchor. */
32
+ routerLink?: string | unknown[];
33
+ /** Query params passed to `routerLink`. */
34
+ queryParams?: Params;
35
+ /** URL fragment passed to `routerLink`. */
36
+ fragment?: string;
37
+ /** Callback invoked when the crumb is clicked. */
38
+ command?: (event: UiBreadcrumbItemCommandEvent) => void;
39
+ /** Disable the crumb (no navigation, out of the tab sequence). */
40
+ disabled?: boolean;
41
+ /** Hide the crumb entirely (default true). */
42
+ visible?: boolean;
43
+ /** Extra class on the crumb's `<li>`. */
44
+ styleClass?: string;
43
45
  }
44
46
  /** @ignore Resolved render entry (crumb or overflow ellipsis). */
45
47
  interface UiBreadcrumbEntry {
46
- kind: 'item' | 'ellipsis';
47
- item?: UiBreadcrumbItem;
48
- key: string;
49
- last: boolean;
48
+ kind: 'item' | 'ellipsis';
49
+ item?: UiBreadcrumbItem;
50
+ key: string;
51
+ last: boolean;
50
52
  }
51
53
  /**
52
54
  * ui-breadcrumb — headless breadcrumb trail: shows the current location
@@ -71,61 +73,97 @@ interface UiBreadcrumbEntry {
71
73
  * Customisation: `separator` (string, default "/"), `#separator` template,
72
74
  * and `#item` template (crumb content, `$implicit` = item, `last`).
73
75
  */
74
- declare class UiBreadcrumb {
75
- /** Breadcrumb entries, in hierarchy order (see {@link UiBreadcrumbItem}). */
76
- items: _angular_core.InputSignal<UiBreadcrumbItem[]>;
77
- /** Density: `default`, or `small` for compact rendering. */
78
- size: _angular_core.InputSignal<BreadcrumbSize>;
79
- /** Separator character(s) between crumbs (overridden by the `#separator` template). */
80
- separator: _angular_core.InputSignal<string>;
81
- /**
82
- * Maximum number of crumbs displayed (minimum 2). Beyond it, the middle
83
- * collapses behind an ellipsis button: first crumb + "…" + the trailing
84
- * crumbs. Unset = never collapse.
85
- */
86
- maxItems: _angular_core.InputSignal<number | undefined>;
87
- /** Accessible name of the `<nav>` landmark. */
88
- ariaLabel: _angular_core.InputSignal<string>;
89
- /** Accessible name of the ellipsis button revealing the hidden crumbs. */
90
- ellipsisAriaLabel: _angular_core.InputSignal<string>;
91
- /** Extra class(es) applied to the root `<nav>`. */
92
- styleClass: _angular_core.InputSignal<string | undefined>;
93
- /** Emitted when a crumb is clicked (never when disabled). */
94
- itemClick: _angular_core.OutputEmitterRef<UiBreadcrumbItemCommandEvent>;
95
- /** Custom crumb content: `<ng-template #item let-item let-last="last">`. */
96
- protected readonly itemTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
97
- /** Custom separator content: `<ng-template #separator>`. */
98
- protected readonly separatorTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
99
- /** @ignore Root list — focus management after expanding the overflow. */
100
- private readonly listEl;
101
- /** @ignore */
102
- private readonly injector;
103
- constructor();
104
- /** @ignore Overflow revealed by the ellipsis button; resets when items change. */
105
- protected readonly overflowExpanded: _angular_core.WritableSignal<boolean>;
106
- /** @ignore Crumb / ellipsis icon size follows the breadcrumb density. */
107
- protected readonly iconSize: _angular_core.Signal<"default" | "sm">;
108
- /** @ignore */
109
- protected readonly classes: _angular_core.Signal<string>;
110
- /** @ignore Render entries: visible crumbs, middle collapsed when overflowing. */
111
- protected readonly entries: _angular_core.Signal<UiBreadcrumbEntry[]>;
112
- /** @ignore Class list of a crumb `<li>` (base + per-item styleClass). */
113
- protected itemClasses(item: UiBreadcrumbItem): string;
114
- /** @ignore Internal navigation: `routerLink` wins over `url`. */
115
- protected isRouterCrumb(item: UiBreadcrumbItem): boolean;
116
- /** @ignore Plain navigation: an `url` and no `routerLink`. */
117
- protected isHrefCrumb(item: UiBreadcrumbItem): boolean;
118
- /** @ignore Action-only crumb (a `command` with no destination) → real `<button>`. */
119
- protected isActionCrumb(item: UiBreadcrumbItem): boolean;
120
- /** @ignore Anchor `rel`: explicit, or a safe default for `target="_blank"`. */
121
- protected relFor(item: UiBreadcrumbItem): string | null;
122
- /** @ignore Reveal the hidden crumbs, moving focus to the first revealed one. */
123
- protected expandOverflow(): void;
124
- /** @ignore Crumb activation: command + itemClick (navigation stays native). */
125
- protected onItemClick(event: Event, item: UiBreadcrumbItem): void;
126
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiBreadcrumb, never>;
127
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiBreadcrumb, "ui-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "maxItems": { "alias": "maxItems"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ellipsisAriaLabel": { "alias": "ellipsisAriaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, ["itemTemplate", "separatorTemplate"], never, true, never>;
76
+ export declare class UiBreadcrumb {
77
+ /** Breadcrumb entries, in hierarchy order (see {@link UiBreadcrumbItem}). */
78
+ items: import("@angular/core").InputSignal<UiBreadcrumbItem[]>;
79
+ /** Density: `default`, or `small` for compact rendering. */
80
+ size: import("@angular/core").InputSignal<BreadcrumbSize>;
81
+ /** Separator character(s) between crumbs (overridden by the `#separator` template). */
82
+ separator: import("@angular/core").InputSignal<string>;
83
+ /**
84
+ * Maximum number of crumbs displayed (minimum 2). Beyond it, the middle
85
+ * collapses behind an ellipsis button: first crumb + "…" + the trailing
86
+ * crumbs. Unset = never collapse.
87
+ */
88
+ maxItems: import("@angular/core").InputSignal<number | undefined>;
89
+ /** Accessible name of the `<nav>` landmark. */
90
+ ariaLabel: import("@angular/core").InputSignal<string>;
91
+ /** Accessible name of the ellipsis button revealing the hidden crumbs. */
92
+ ellipsisAriaLabel: import("@angular/core").InputSignal<string>;
93
+ /** Extra class(es) applied to the root `<nav>`. */
94
+ styleClass: import("@angular/core").InputSignal<string | undefined>;
95
+ /** Emitted when a crumb is clicked (never when disabled). */
96
+ itemClick: import("@angular/core").OutputEmitterRef<UiBreadcrumbItemCommandEvent>;
97
+ /** Custom crumb content: `<ng-template #item let-item let-last="last">`. */
98
+ protected readonly itemTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
99
+ /** Custom separator content: `<ng-template #separator>`. */
100
+ protected readonly separatorTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
101
+ /** @ignore Root list — focus management after expanding the overflow. */
102
+ private readonly listEl;
103
+ /** @ignore */
104
+ private readonly injector;
105
+ constructor();
106
+ /** @ignore Overflow revealed by the ellipsis button; resets when items change. */
107
+ protected readonly overflowExpanded: import("@angular/core").WritableSignal<boolean>;
108
+ /** @ignore Crumb / ellipsis icon size follows the breadcrumb density. */
109
+ protected readonly iconSize: import("@angular/core").Signal<"default" | "sm">;
110
+ /** @ignore */
111
+ protected readonly classes: import("@angular/core").Signal<string>;
112
+ /** @ignore Render entries: visible crumbs, middle collapsed when overflowing. */
113
+ protected readonly entries: import("@angular/core").Signal<UiBreadcrumbEntry[]>;
114
+ /** @ignore Class list of a crumb `<li>` (base + per-item styleClass). */
115
+ protected itemClasses(item: UiBreadcrumbItem): string;
116
+ /** @ignore Internal navigation: `routerLink` wins over `url`. */
117
+ protected isRouterCrumb(item: UiBreadcrumbItem): boolean;
118
+ /** @ignore Plain navigation: an `url` and no `routerLink`. */
119
+ protected isHrefCrumb(item: UiBreadcrumbItem): boolean;
120
+ /** @ignore Action-only crumb (a `command` with no destination) → real `<button>`. */
121
+ protected isActionCrumb(item: UiBreadcrumbItem): boolean;
122
+ /** @ignore Anchor `rel`: explicit, or a safe default for `target="_blank"`. */
123
+ protected relFor(item: UiBreadcrumbItem): string | null;
124
+ /** @ignore Reveal the hidden crumbs, moving focus to the first revealed one. */
125
+ protected expandOverflow(): void;
126
+ /** @ignore Crumb activation: command + itemClick (navigation stays native). */
127
+ protected onItemClick(event: Event, item: UiBreadcrumbItem): void;
128
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiBreadcrumb, never>;
129
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiBreadcrumb, "ui-breadcrumb", never, {
130
+ "items": {
131
+ "alias": "items";
132
+ "required": false;
133
+ "isSignal": true;
134
+ };
135
+ "size": {
136
+ "alias": "size";
137
+ "required": false;
138
+ "isSignal": true;
139
+ };
140
+ "separator": {
141
+ "alias": "separator";
142
+ "required": false;
143
+ "isSignal": true;
144
+ };
145
+ "maxItems": {
146
+ "alias": "maxItems";
147
+ "required": false;
148
+ "isSignal": true;
149
+ };
150
+ "ariaLabel": {
151
+ "alias": "ariaLabel";
152
+ "required": false;
153
+ "isSignal": true;
154
+ };
155
+ "ellipsisAriaLabel": {
156
+ "alias": "ellipsisAriaLabel";
157
+ "required": false;
158
+ "isSignal": true;
159
+ };
160
+ "styleClass": {
161
+ "alias": "styleClass";
162
+ "required": false;
163
+ "isSignal": true;
164
+ };
165
+ }, {
166
+ "itemClick": "itemClick";
167
+ }, ["itemTemplate", "separatorTemplate"], never, true, never>;
128
168
  }
129
-
130
- export { UiBreadcrumb };
131
- export type { BreadcrumbSize, UiBreadcrumbItem, UiBreadcrumbItemCommandEvent };
169
+ export {};
@@ -1,11 +1,13 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ElementRef, TemplateRef } from '@angular/core';
3
- import { ConnectedPosition } from '@angular/cdk/overlay';
4
- import { UiSubLevel } from '@4sh/ui-kit/types';
5
- import { UiMenuItem, MenuSize, MenuSubmenuMode, UiMenuItemCommandEvent } from '@4sh/ui-kit/navigation/ui-menu';
6
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { ElementRef, TemplateRef } from "@angular/core";
6
+ import { ConnectedPosition } from "@angular/cdk/overlay";
7
+ import { UiSubLevel } from "@4sh/ui-kit/types";
8
+ import { MenuSize, MenuSubmenuMode, UiMenuItem, UiMenuItemCommandEvent } from "@4sh/ui-kit/navigation/ui-menu";
7
9
  /** Accepted shapes for the `target` input. */
8
- type ContextMenuTarget = HTMLElement | ElementRef<HTMLElement> | null;
10
+ export type ContextMenuTarget = HTMLElement | ElementRef<HTMLElement> | null;
9
11
  /**
10
12
  * ui-context-menu — contextual menu opened with a right-click (or any
11
13
  * `triggerEvent`), positioned at the pointer.
@@ -23,85 +25,142 @@ type ContextMenuTarget = HTMLElement | ElementRef<HTMLElement> | null;
23
25
  * Customisation: `#item` and `#submenuheader` templates (forwarded to the
24
26
  * embedded menu), `styleClass`, `level`, `size`.
25
27
  */
26
- declare class UiContextMenu {
27
- /** Menu entries (see {@link UiMenuItem}). */
28
- items: _angular_core.InputSignal<UiMenuItem[]>;
29
- /** Element the context menu is attached to (template reference variable). */
30
- target: _angular_core.InputSignal<ContextMenuTarget>;
31
- /** Attach to the whole document instead of a specific `target`. */
32
- global: _angular_core.InputSignalWithTransform<boolean, unknown>;
33
- /** DOM event opening the menu on the target (right-click by default). */
34
- triggerEvent: _angular_core.InputSignal<string>;
35
- /** Accessible name of the menu list. */
36
- ariaLabel: _angular_core.InputSignal<string | undefined>;
37
- /** Extra class(es) applied to the panel (scoped custom styling). */
38
- styleClass: _angular_core.InputSignal<string | undefined>;
39
- /** Color family: `high` (default) or `low` navigation tokens. */
40
- level: _angular_core.InputSignal<UiSubLevel>;
41
- /** Density — compact by default (contextual action menus). */
42
- size: _angular_core.InputSignal<MenuSize>;
43
- /** Group rendering — cascading side panels by default (classic context menus). */
44
- submenus: _angular_core.InputSignal<MenuSubmenuMode>;
45
- /** Animate the menu entrance (reduced-motion always wins). */
46
- motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
47
- /** Ripple Effect */
48
- ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
49
- /** Emitted when the menu opens. */
50
- opened: _angular_core.OutputEmitterRef<void>;
51
- /** Emitted when the menu closes. */
52
- closed: _angular_core.OutputEmitterRef<void>;
53
- /** Emitted when a leaf item is clicked / keyboard-activated. */
54
- itemClick: _angular_core.OutputEmitterRef<UiMenuItemCommandEvent>;
55
- /** Custom menuitem content: `<ng-template #item let-item>` (forwarded to the menu). */
56
- protected readonly itemTemplateContent: _angular_core.Signal<TemplateRef<unknown> | undefined>;
57
- /** Custom group-header content: `<ng-template #submenuheader let-item>` (forwarded). */
58
- protected readonly submenuHeaderTemplateContent: _angular_core.Signal<TemplateRef<unknown> | undefined>;
59
- /** @ignore Embedded menu (roving focus entry point). */
60
- private readonly menu;
61
- /** @ignore */
62
- private readonly doc;
63
- /** @ignore Menu visibility. */
64
- protected readonly open: _angular_core.WritableSignal<boolean>;
65
- /** @ignore Viewport coordinates the overlay is anchored on (derived from `anchorPage`). */
66
- protected readonly overlayPoint: _angular_core.WritableSignal<{
67
- x: number;
68
- y: number;
69
- }>;
70
- /** @ignore DOCUMENT coordinates of the anchor: the menu belongs to the content,
71
- * not to the screen — it must follow the page when it scrolls. */
72
- private anchorPage;
73
- /** @ignore Below-right of the pointer, flipping on the viewport edges. */
74
- protected readonly overlayPositions: ConnectedPosition[];
75
- /** @ignore `_floating` gives the embedded panel its own viewport cap +
76
- * internal scroll (a wrapper overflow would clip the panel's shadow). */
77
- protected readonly menuClasses: _angular_core.Signal<string>;
78
- /** @ignore */
79
- private readonly resolvedTarget;
80
- constructor();
81
- /** Opens the menu at the event's pointer coordinates. */
82
- show(event: MouseEvent): void;
83
- /** Closes the menu. */
84
- hide(): void;
85
- /** Toggles the menu at the event's pointer coordinates. */
86
- toggle(event: MouseEvent): void;
87
- /** @ignore Trigger event on the target/document: hijack it and open at the pointer. */
88
- private onTrigger;
89
- /** @ignore A new pointer press outside every overlay closes the menu.
90
- * Presses inside an overlay (menu panel, flyout side panels) are kept;
91
- * a press on the attached zone closes then immediately reopens through
92
- * the trigger handler (native repositioning behavior). */
93
- private onDocumentPointerdown;
94
- /** @ignore */
95
- protected onEscape(event: Event): void;
96
- /** @ignore Activation of a leaf item: re-emit and close. */
97
- protected onItemClick(event: UiMenuItemCommandEvent): void;
98
- /** @ignore Focus the menu's first entry once the overlay is rendered.
99
- * The overlay attaches after change detection: retry over macrotasks
100
- * (NOT rAF — it never fires in throttled/background tabs). */
101
- private queueFocusFirst;
102
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiContextMenu, never>;
103
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiContextMenu, "ui-context-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "global": { "alias": "global"; "required": false; "isSignal": true; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "submenus": { "alias": "submenus"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "ripple": { "alias": "ripple"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; "itemClick": "itemClick"; }, ["itemTemplateContent", "submenuHeaderTemplateContent"], never, true, never>;
104
- }
105
-
106
- export { UiContextMenu };
107
- export type { ContextMenuTarget };
28
+ export declare class UiContextMenu {
29
+ /** Menu entries (see {@link UiMenuItem}). */
30
+ items: import("@angular/core").InputSignal<UiMenuItem[]>;
31
+ /** Element the context menu is attached to (template reference variable). */
32
+ target: import("@angular/core").InputSignal<ContextMenuTarget>;
33
+ /** Attach to the whole document instead of a specific `target`. */
34
+ global: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
35
+ /** DOM event opening the menu on the target (right-click by default). */
36
+ triggerEvent: import("@angular/core").InputSignal<string>;
37
+ /** Accessible name of the menu list. */
38
+ ariaLabel: import("@angular/core").InputSignal<string | undefined>;
39
+ /** Extra class(es) applied to the panel (scoped custom styling). */
40
+ styleClass: import("@angular/core").InputSignal<string | undefined>;
41
+ /** Color family: `high` (default) or `low` navigation tokens. */
42
+ level: import("@angular/core").InputSignal<UiSubLevel>;
43
+ /** Density — compact by default (contextual action menus). */
44
+ size: import("@angular/core").InputSignal<MenuSize>;
45
+ /** Group rendering — cascading side panels by default (classic context menus). */
46
+ submenus: import("@angular/core").InputSignal<MenuSubmenuMode>;
47
+ /** Animate the menu entrance (reduced-motion always wins). */
48
+ motion: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
49
+ /** Ripple Effect */
50
+ ripple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
51
+ /** Emitted when the menu opens. */
52
+ opened: import("@angular/core").OutputEmitterRef<void>;
53
+ /** Emitted when the menu closes. */
54
+ closed: import("@angular/core").OutputEmitterRef<void>;
55
+ /** Emitted when a leaf item is clicked / keyboard-activated. */
56
+ itemClick: import("@angular/core").OutputEmitterRef<UiMenuItemCommandEvent>;
57
+ /** Custom menuitem content: `<ng-template #item let-item>` (forwarded to the menu). */
58
+ protected readonly itemTemplateContent: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
59
+ /** Custom group-header content: `<ng-template #submenuheader let-item>` (forwarded). */
60
+ protected readonly submenuHeaderTemplateContent: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
61
+ /** @ignore Embedded menu (roving focus entry point). */
62
+ private readonly menu;
63
+ /** @ignore */
64
+ private readonly doc;
65
+ /** @ignore Menu visibility. */
66
+ protected readonly open: import("@angular/core").WritableSignal<boolean>;
67
+ /** @ignore Viewport coordinates the overlay is anchored on (derived from `anchorPage`). */
68
+ protected readonly overlayPoint: import("@angular/core").WritableSignal<{
69
+ x: number;
70
+ y: number;
71
+ }>;
72
+ /** @ignore DOCUMENT coordinates of the anchor: the menu belongs to the content,
73
+ * not to the screen — it must follow the page when it scrolls. */
74
+ private anchorPage;
75
+ /** @ignore Below-right of the pointer, flipping on the viewport edges. */
76
+ protected readonly overlayPositions: ConnectedPosition[];
77
+ /** @ignore `_floating` gives the embedded panel its own viewport cap +
78
+ * internal scroll (a wrapper overflow would clip the panel's shadow). */
79
+ protected readonly menuClasses: import("@angular/core").Signal<string>;
80
+ /** @ignore */
81
+ private readonly resolvedTarget;
82
+ constructor();
83
+ /** Opens the menu at the event's pointer coordinates. */
84
+ show(event: MouseEvent): void;
85
+ /** Closes the menu. */
86
+ hide(): void;
87
+ /** Toggles the menu at the event's pointer coordinates. */
88
+ toggle(event: MouseEvent): void;
89
+ /** @ignore Trigger event on the target/document: hijack it and open at the pointer. */
90
+ private onTrigger;
91
+ /** @ignore A new pointer press outside every overlay closes the menu.
92
+ * Presses inside an overlay (menu panel, flyout side panels) are kept;
93
+ * a press on the attached zone closes then immediately reopens through
94
+ * the trigger handler (native repositioning behavior). */
95
+ private onDocumentPointerdown;
96
+ /** @ignore */
97
+ protected onEscape(event: Event): void;
98
+ /** @ignore Activation of a leaf item: re-emit and close. */
99
+ protected onItemClick(event: UiMenuItemCommandEvent): void;
100
+ /** @ignore Focus the menu's first entry once the overlay is rendered.
101
+ * The overlay attaches after change detection: retry over macrotasks
102
+ * (NOT rAF — it never fires in throttled/background tabs). */
103
+ private queueFocusFirst;
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiContextMenu, never>;
105
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiContextMenu, "ui-context-menu", never, {
106
+ "items": {
107
+ "alias": "items";
108
+ "required": false;
109
+ "isSignal": true;
110
+ };
111
+ "target": {
112
+ "alias": "target";
113
+ "required": false;
114
+ "isSignal": true;
115
+ };
116
+ "global": {
117
+ "alias": "global";
118
+ "required": false;
119
+ "isSignal": true;
120
+ };
121
+ "triggerEvent": {
122
+ "alias": "triggerEvent";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "ariaLabel": {
127
+ "alias": "ariaLabel";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ "styleClass": {
132
+ "alias": "styleClass";
133
+ "required": false;
134
+ "isSignal": true;
135
+ };
136
+ "level": {
137
+ "alias": "level";
138
+ "required": false;
139
+ "isSignal": true;
140
+ };
141
+ "size": {
142
+ "alias": "size";
143
+ "required": false;
144
+ "isSignal": true;
145
+ };
146
+ "submenus": {
147
+ "alias": "submenus";
148
+ "required": false;
149
+ "isSignal": true;
150
+ };
151
+ "motion": {
152
+ "alias": "motion";
153
+ "required": false;
154
+ "isSignal": true;
155
+ };
156
+ "ripple": {
157
+ "alias": "ripple";
158
+ "required": false;
159
+ "isSignal": true;
160
+ };
161
+ }, {
162
+ "opened": "opened";
163
+ "closed": "closed";
164
+ "itemClick": "itemClick";
165
+ }, ["itemTemplateContent", "submenuHeaderTemplateContent"], never, true, never>;
166
+ }