@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,190 +1,404 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, input, booleanAttribute, contentChild, viewChild, signal, computed, afterNextRender, Component } from '@angular/core';
3
-
4
- /**
5
- * Slot markers — apply them (attribute or element form) on the content you project
6
- * into a `<ui-card>` to route it to the matching region. They carry no behaviour;
7
- * the card queries their presence to render the surrounding structure.
8
- *
9
- * <ui-card>
10
- * <img uiCardMedia … />
11
- * <span uiCardTitle>Title</span>
12
- * <span uiCardSubtitle>Subtitle</span>
13
- * Body content (default slot)
14
- * <div uiCardFooter><ui-button … /></div>
15
- * </ui-card>
16
- */
17
- /** Full-bleed media region, rendered above the body (image, illustration…). */
18
- class UiCardMedia {
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: UiCardMedia, isStandalone: true, selector: "[uiCardMedia], ui-card-media", ngImport: i0 }); }
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardMedia, decorators: [{
23
- type: Directive,
24
- args: [{ selector: '[uiCardMedia], ui-card-media' }]
25
- }] });
26
- /** Title region (also settable via the `header` string input). */
27
- class UiCardTitle {
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
29
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: UiCardTitle, isStandalone: true, selector: "[uiCardTitle], ui-card-title", ngImport: i0 }); }
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardTitle, decorators: [{
32
- type: Directive,
33
- args: [{ selector: '[uiCardTitle], ui-card-title' }]
34
- }] });
35
- /** Subtitle region (also settable via the `subheader` string input). */
36
- class UiCardSubtitle {
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardSubtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
38
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: UiCardSubtitle, isStandalone: true, selector: "[uiCardSubtitle], ui-card-subtitle", ngImport: i0 }); }
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardSubtitle, decorators: [{
41
- type: Directive,
42
- args: [{ selector: '[uiCardSubtitle], ui-card-subtitle' }]
43
- }] });
44
- /** Footer region (actions, tags…), rendered below the body content. */
45
- class UiCardFooter {
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
47
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: UiCardFooter, isStandalone: true, selector: "[uiCardFooter], ui-card-footer", ngImport: i0 }); }
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCardFooter, decorators: [{
50
- type: Directive,
51
- args: [{ selector: '[uiCardFooter], ui-card-footer' }]
52
- }] });
53
- /**
54
- * ui-card — flexible container that composes optional regions: media, header
55
- * (title + subtitle), body content and footer.
56
- *
57
- * Headless: renders a neutral `surface` box (border + radius, optional elevation) whose
58
- * regions are driven by content projection. Each region is rendered only when it holds
59
- * content, so no empty wrapper (and no phantom gap) is emitted. The most common case —
60
- * dropping content into the card — needs no imports (default `<ng-content>`); title and
61
- * subtitle also accept the `header`/`subheader` string inputs. Richer slots use the
62
- * exported marker directives (`UiCardMedia`, `UiCardTitle`, `UiCardSubtitle`, `UiCardFooter`).
63
- *
64
- * Sizing: no intrinsic width (a block parent gives 100%, `fluid` fills a flex/grid one) and
65
- * the visible box fills the host's height, so a row of cards lines up on its own.
66
- */
67
- class UiCard {
68
- constructor() {
69
- /** Title text (convenience shorthand for the `uiCardTitle` slot). */
70
- this.header = input(/* @ts-ignore */
71
- ...(ngDevMode ? [undefined, { debugName: "header" }] : /* istanbul ignore next */ []));
72
- /** Subtitle text (convenience shorthand for the `uiCardSubtitle` slot). */
73
- this.subheader = input(/* @ts-ignore */
74
- ...(ngDevMode ? [undefined, { debugName: "subheader" }] : /* istanbul ignore next */ []));
75
- /** Visual treatment of the surface. */
76
- this.variant = input('outlined', /* @ts-ignore */
77
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
78
- /** Span the full width of the parent (a flex/grid parent otherwise sizes the card to its content). */
79
- this.fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
80
- /**
81
- * Removes the horizontal gutter of the default content region so it bleeds to
82
- * the card edges — lets the consumer own the inner layout (e.g. a full-bleed
83
- * media/color band + a padded paragraph). Re-apply the gutter on inner blocks
84
- * with `padding-inline: var(--ui-card-gutter)`.
85
- */
86
- this.contentFlush = input(false, { ...(ngDevMode ? { debugName: "contentFlush" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
87
- /**
88
- * Classes applied to the default content region, gutter kept: lets the consumer lay
89
- * the content out (Gridaflex, utilities) without an intermediate wrapper.
90
- */
91
- this.contentClass = input('', /* @ts-ignore */
92
- ...(ngDevMode ? [{ debugName: "contentClass" }] : /* istanbul ignore next */ []));
93
- /** Accessible name for the card region (use when the card conveys a landmark). */
94
- this.ariaLabel = input(/* @ts-ignore */
95
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
96
- /** Id of the element labelling the card region. */
97
- this.ariaLabelledBy = input(/* @ts-ignore */
98
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
99
- /** @ignore */
100
- this.titleSlot = contentChild(UiCardTitle, /* @ts-ignore */
101
- ...(ngDevMode ? [{ debugName: "titleSlot" }] : /* istanbul ignore next */ []));
102
- /** @ignore */
103
- this.subtitleSlot = contentChild(UiCardSubtitle, /* @ts-ignore */
104
- ...(ngDevMode ? [{ debugName: "subtitleSlot" }] : /* istanbul ignore next */ []));
105
- /** @ignore */
106
- this.mediaSlot = contentChild(UiCardMedia, /* @ts-ignore */
107
- ...(ngDevMode ? [{ debugName: "mediaSlot" }] : /* istanbul ignore next */ []));
108
- /** @ignore */
109
- this.footerSlot = contentChild(UiCardFooter, /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []));
111
- /** @ignore */
112
- this.contentWrap = viewChild('contentWrap', /* @ts-ignore */
113
- ...(ngDevMode ? [{ debugName: "contentWrap" }] : /* istanbul ignore next */ []));
114
- /** @ignore Default content actually projected (detected after rendering). */
115
- this.hasProjectedContent = signal(false, /* @ts-ignore */
116
- ...(ngDevMode ? [{ debugName: "hasProjectedContent" }] : /* istanbul ignore next */ []));
117
- /** @ignore A title is provided (string input or projected slot). */
118
- this.hasTitle = computed(() => !!this.header() || !!this.titleSlot(), /* @ts-ignore */
119
- ...(ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []));
120
- /** @ignore A subtitle is provided (string input or projected slot). */
121
- this.hasSubtitle = computed(() => !!this.subheader() || !!this.subtitleSlot(), /* @ts-ignore */
122
- ...(ngDevMode ? [{ debugName: "hasSubtitle" }] : /* istanbul ignore next */ []));
123
- /** @ignore The header region (title and/or subtitle) has content. */
124
- this.hasHeader = computed(() => this.hasTitle() || this.hasSubtitle(), /* @ts-ignore */
125
- ...(ngDevMode ? [{ debugName: "hasHeader" }] : /* istanbul ignore next */ []));
126
- /** @ignore A media slot is provided. */
127
- this.hasMedia = computed(() => !!this.mediaSlot(), /* @ts-ignore */
128
- ...(ngDevMode ? [{ debugName: "hasMedia" }] : /* istanbul ignore next */ []));
129
- /** @ignore A footer slot is provided. */
130
- this.hasFooter = computed(() => !!this.footerSlot(), /* @ts-ignore */
131
- ...(ngDevMode ? [{ debugName: "hasFooter" }] : /* istanbul ignore next */ []));
132
- /** @ignore The body has default content. */
133
- this.hasContent = computed(() => this.hasProjectedContent(), /* @ts-ignore */
134
- ...(ngDevMode ? [{ debugName: "hasContent" }] : /* istanbul ignore next */ []));
135
- /** @ignore Render the string title only when no title slot overrides it. */
136
- this.showHeaderString = computed(() => !!this.header() && !this.titleSlot(), /* @ts-ignore */
137
- ...(ngDevMode ? [{ debugName: "showHeaderString" }] : /* istanbul ignore next */ []));
138
- /** @ignore Render the string subtitle only when no subtitle slot overrides it. */
139
- this.showSubheaderString = computed(() => !!this.subheader() && !this.subtitleSlot(), /* @ts-ignore */
140
- ...(ngDevMode ? [{ debugName: "showSubheaderString" }] : /* istanbul ignore next */ []));
141
- /** @ignore */
142
- this.contentClasses = computed(() => {
143
- const c = ['ui-card-content'];
144
- if (!this.hasContent())
145
- c.push('_empty');
146
- if (this.contentFlush())
147
- c.push('_flush');
148
- const extra = this.contentClass().trim();
149
- if (extra)
150
- c.push(extra);
151
- return c.join(' ');
152
- }, /* @ts-ignore */
153
- ...(ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []));
154
- /** @ignore */
155
- this.classes = computed(() => {
156
- const c = ['ui-card', `_${this.variant()}`];
157
- if (this.hasMedia())
158
- c.push('_has-media');
159
- return c.join(' ');
160
- }, /* @ts-ignore */
161
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
162
- // Detect projected default content (<ng-content>) — SSR-safe (browser only).
163
- afterNextRender(() => {
164
- const el = this.contentWrap()?.nativeElement;
165
- const has = !!el &&
166
- Array.from(el.childNodes).some((n) => n.nodeType === Node.ELEMENT_NODE ||
167
- (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()));
168
- this.hasProjectedContent.set(has);
169
- });
170
- }
171
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiCard, isStandalone: true, selector: "ui-card", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, subheader: { classPropertyName: "subheader", publicName: "subheader", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, contentFlush: { classPropertyName: "contentFlush", publicName: "contentFlush", isSignal: true, isRequired: false, transformFunction: null }, contentClass: { classPropertyName: "contentClass", publicName: "contentClass", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._fluid": "fluid()" } }, queries: [{ propertyName: "titleSlot", first: true, predicate: UiCardTitle, descendants: true, isSignal: true }, { propertyName: "subtitleSlot", first: true, predicate: UiCardSubtitle, descendants: true, isSignal: true }, { propertyName: "mediaSlot", first: true, predicate: UiCardMedia, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiCardFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "contentWrap", first: true, predicate: ["contentWrap"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div #contentWrap [class]=\"contentClasses()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}:host._fluid{width:100%}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;background-color:var(--ui-card-surface, var(--global-background-default));border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--ui-card-color, var(--global-text-default));font-family:var(--ui-card-font-family, var(--fontfamily-base))}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--ui-card-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-default);font-weight:var(--ui-card-weight, var(--weight-bold));line-height:1.2;color:var(--ui-card-title-color, var(--global-text-default))}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--ui-card-subtitle-color, var(--global-text-muted))}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--ui-card-content-color, var(--global-text-default))}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--ui-card-stroke, var(--global-border-subtle))}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"] }); }
173
- }
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiCard, decorators: [{
175
- type: Component,
176
- args: [{ selector: 'ui-card', imports: [], host: {
177
- '[class._fluid]': 'fluid()',
178
- }, template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div #contentWrap [class]=\"contentClasses()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}:host._fluid{width:100%}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;background-color:var(--ui-card-surface, var(--global-background-default));border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--ui-card-color, var(--global-text-default));font-family:var(--ui-card-font-family, var(--fontfamily-base))}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--ui-card-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-default);font-weight:var(--ui-card-weight, var(--weight-bold));line-height:1.2;color:var(--ui-card-title-color, var(--global-text-default))}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--ui-card-subtitle-color, var(--global-text-muted))}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--ui-card-content-color, var(--global-text-default))}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--ui-card-stroke, var(--global-border-subtle))}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"] }]
179
- }], ctorParameters: () => [], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], subheader: [{ type: i0.Input, args: [{ isSignal: true, alias: "subheader", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], contentFlush: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentFlush", required: false }] }], contentClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentClass", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], titleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardTitle), { isSignal: true }] }], subtitleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardSubtitle), { isSignal: true }] }], mediaSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardMedia), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardFooter), { isSignal: true }] }], contentWrap: [{ type: i0.ViewChild, args: ['contentWrap', { isSignal: true }] }] } });
180
-
181
- /*
182
- * Public API Surface of ui-kit/ui-card
183
- */
184
-
185
- /**
186
- * Generated bundle index. Do not edit.
187
- */
188
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, Directive, afterNextRender, booleanAttribute, computed, contentChild, input, signal, viewChild } from "@angular/core";
3
+ var UiCardMedia = class UiCardMedia {
4
+ static {
5
+ this.ɵfac = i0.ɵɵngDeclareFactory({
6
+ minVersion: "12.0.0",
7
+ version: "22.3.0",
8
+ ngImport: i0,
9
+ type: UiCardMedia,
10
+ deps: [],
11
+ target: i0.ɵɵFactoryTarget.Directive
12
+ });
13
+ }
14
+ static {
15
+ this.ɵdir = i0.ɵɵngDeclareDirective({
16
+ minVersion: "14.0.0",
17
+ version: "22.3.0",
18
+ type: UiCardMedia,
19
+ isStandalone: true,
20
+ selector: "[uiCardMedia], ui-card-media",
21
+ ngImport: i0
22
+ });
23
+ }
24
+ };
25
+ i0.ɵɵngDeclareClassMetadata({
26
+ minVersion: "12.0.0",
27
+ version: "22.3.0",
28
+ ngImport: i0,
29
+ type: UiCardMedia,
30
+ decorators: [{
31
+ type: Directive,
32
+ args: [{ selector: "[uiCardMedia], ui-card-media" }]
33
+ }]
34
+ });
35
+ var UiCardTitle = class UiCardTitle {
36
+ static {
37
+ this.ɵfac = i0.ɵɵngDeclareFactory({
38
+ minVersion: "12.0.0",
39
+ version: "22.3.0",
40
+ ngImport: i0,
41
+ type: UiCardTitle,
42
+ deps: [],
43
+ target: i0.ɵɵFactoryTarget.Directive
44
+ });
45
+ }
46
+ static {
47
+ this.ɵdir = i0.ɵɵngDeclareDirective({
48
+ minVersion: "14.0.0",
49
+ version: "22.3.0",
50
+ type: UiCardTitle,
51
+ isStandalone: true,
52
+ selector: "[uiCardTitle], ui-card-title",
53
+ ngImport: i0
54
+ });
55
+ }
56
+ };
57
+ i0.ɵɵngDeclareClassMetadata({
58
+ minVersion: "12.0.0",
59
+ version: "22.3.0",
60
+ ngImport: i0,
61
+ type: UiCardTitle,
62
+ decorators: [{
63
+ type: Directive,
64
+ args: [{ selector: "[uiCardTitle], ui-card-title" }]
65
+ }]
66
+ });
67
+ var UiCardSubtitle = class UiCardSubtitle {
68
+ static {
69
+ this.ɵfac = i0.ɵɵngDeclareFactory({
70
+ minVersion: "12.0.0",
71
+ version: "22.3.0",
72
+ ngImport: i0,
73
+ type: UiCardSubtitle,
74
+ deps: [],
75
+ target: i0.ɵɵFactoryTarget.Directive
76
+ });
77
+ }
78
+ static {
79
+ this.ɵdir = i0.ɵɵngDeclareDirective({
80
+ minVersion: "14.0.0",
81
+ version: "22.3.0",
82
+ type: UiCardSubtitle,
83
+ isStandalone: true,
84
+ selector: "[uiCardSubtitle], ui-card-subtitle",
85
+ ngImport: i0
86
+ });
87
+ }
88
+ };
89
+ i0.ɵɵngDeclareClassMetadata({
90
+ minVersion: "12.0.0",
91
+ version: "22.3.0",
92
+ ngImport: i0,
93
+ type: UiCardSubtitle,
94
+ decorators: [{
95
+ type: Directive,
96
+ args: [{ selector: "[uiCardSubtitle], ui-card-subtitle" }]
97
+ }]
98
+ });
99
+ var UiCardFooter = class UiCardFooter {
100
+ static {
101
+ this.ɵfac = i0.ɵɵngDeclareFactory({
102
+ minVersion: "12.0.0",
103
+ version: "22.3.0",
104
+ ngImport: i0,
105
+ type: UiCardFooter,
106
+ deps: [],
107
+ target: i0.ɵɵFactoryTarget.Directive
108
+ });
109
+ }
110
+ static {
111
+ this.ɵdir = i0.ɵɵngDeclareDirective({
112
+ minVersion: "14.0.0",
113
+ version: "22.3.0",
114
+ type: UiCardFooter,
115
+ isStandalone: true,
116
+ selector: "[uiCardFooter], ui-card-footer",
117
+ ngImport: i0
118
+ });
119
+ }
120
+ };
121
+ i0.ɵɵngDeclareClassMetadata({
122
+ minVersion: "12.0.0",
123
+ version: "22.3.0",
124
+ ngImport: i0,
125
+ type: UiCardFooter,
126
+ decorators: [{
127
+ type: Directive,
128
+ args: [{ selector: "[uiCardFooter], ui-card-footer" }]
129
+ }]
130
+ });
131
+ var UiCard = class UiCard {
132
+ constructor() {
133
+ this.header = input(...ngDevMode ? [void 0, { debugName: "header" }] : /* istanbul ignore next */ []);
134
+ this.subheader = input(...ngDevMode ? [void 0, { debugName: "subheader" }] : /* istanbul ignore next */ []);
135
+ this.variant = input("outlined", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
136
+ this.fluid = input(false, {
137
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
138
+ transform: booleanAttribute
139
+ });
140
+ this.contentFlush = input(false, {
141
+ ...ngDevMode ? { debugName: "contentFlush" } : /* istanbul ignore next */ {},
142
+ transform: booleanAttribute
143
+ });
144
+ this.contentClass = input("", ...ngDevMode ? [{ debugName: "contentClass" }] : /* istanbul ignore next */ []);
145
+ this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
146
+ this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
147
+ this.titleSlot = contentChild(UiCardTitle, ...ngDevMode ? [{ debugName: "titleSlot" }] : /* istanbul ignore next */ []);
148
+ this.subtitleSlot = contentChild(UiCardSubtitle, ...ngDevMode ? [{ debugName: "subtitleSlot" }] : /* istanbul ignore next */ []);
149
+ this.mediaSlot = contentChild(UiCardMedia, ...ngDevMode ? [{ debugName: "mediaSlot" }] : /* istanbul ignore next */ []);
150
+ this.footerSlot = contentChild(UiCardFooter, ...ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []);
151
+ this.contentWrap = viewChild("contentWrap", ...ngDevMode ? [{ debugName: "contentWrap" }] : /* istanbul ignore next */ []);
152
+ this.hasProjectedContent = signal(false, ...ngDevMode ? [{ debugName: "hasProjectedContent" }] : /* istanbul ignore next */ []);
153
+ this.hasTitle = computed(() => !!this.header() || !!this.titleSlot(), ...ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []);
154
+ this.hasSubtitle = computed(() => !!this.subheader() || !!this.subtitleSlot(), ...ngDevMode ? [{ debugName: "hasSubtitle" }] : /* istanbul ignore next */ []);
155
+ this.hasHeader = computed(() => this.hasTitle() || this.hasSubtitle(), ...ngDevMode ? [{ debugName: "hasHeader" }] : /* istanbul ignore next */ []);
156
+ this.hasMedia = computed(() => !!this.mediaSlot(), ...ngDevMode ? [{ debugName: "hasMedia" }] : /* istanbul ignore next */ []);
157
+ this.hasFooter = computed(() => !!this.footerSlot(), ...ngDevMode ? [{ debugName: "hasFooter" }] : /* istanbul ignore next */ []);
158
+ this.hasContent = computed(() => this.hasProjectedContent(), ...ngDevMode ? [{ debugName: "hasContent" }] : /* istanbul ignore next */ []);
159
+ this.showHeaderString = computed(() => !!this.header() && !this.titleSlot(), ...ngDevMode ? [{ debugName: "showHeaderString" }] : /* istanbul ignore next */ []);
160
+ this.showSubheaderString = computed(() => !!this.subheader() && !this.subtitleSlot(), ...ngDevMode ? [{ debugName: "showSubheaderString" }] : /* istanbul ignore next */ []);
161
+ this.contentClasses = computed(() => {
162
+ const c = ["ui-card-content"];
163
+ if (!this.hasContent()) c.push("_empty");
164
+ if (this.contentFlush()) c.push("_flush");
165
+ const extra = this.contentClass().trim();
166
+ if (extra) c.push(extra);
167
+ return c.join(" ");
168
+ }, ...ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []);
169
+ this.classes = computed(() => {
170
+ const c = ["ui-card", `_${this.variant()}`];
171
+ if (this.hasMedia()) c.push("_has-media");
172
+ return c.join(" ");
173
+ }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
174
+ afterNextRender(() => {
175
+ const el = this.contentWrap()?.nativeElement;
176
+ const has = !!el && Array.from(el.childNodes).some((n) => n.nodeType === Node.ELEMENT_NODE || n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim());
177
+ this.hasProjectedContent.set(has);
178
+ });
179
+ }
180
+ static {
181
+ this.ɵfac = i0.ɵɵngDeclareFactory({
182
+ minVersion: "12.0.0",
183
+ version: "22.3.0",
184
+ ngImport: i0,
185
+ type: UiCard,
186
+ deps: [],
187
+ target: i0.ɵɵFactoryTarget.Component
188
+ });
189
+ }
190
+ static {
191
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
192
+ minVersion: "17.0.0",
193
+ version: "22.3.0",
194
+ type: UiCard,
195
+ isStandalone: true,
196
+ selector: "ui-card",
197
+ inputs: {
198
+ header: {
199
+ classPropertyName: "header",
200
+ publicName: "header",
201
+ isSignal: true,
202
+ isRequired: false,
203
+ transformFunction: null
204
+ },
205
+ subheader: {
206
+ classPropertyName: "subheader",
207
+ publicName: "subheader",
208
+ isSignal: true,
209
+ isRequired: false,
210
+ transformFunction: null
211
+ },
212
+ variant: {
213
+ classPropertyName: "variant",
214
+ publicName: "variant",
215
+ isSignal: true,
216
+ isRequired: false,
217
+ transformFunction: null
218
+ },
219
+ fluid: {
220
+ classPropertyName: "fluid",
221
+ publicName: "fluid",
222
+ isSignal: true,
223
+ isRequired: false,
224
+ transformFunction: null
225
+ },
226
+ contentFlush: {
227
+ classPropertyName: "contentFlush",
228
+ publicName: "contentFlush",
229
+ isSignal: true,
230
+ isRequired: false,
231
+ transformFunction: null
232
+ },
233
+ contentClass: {
234
+ classPropertyName: "contentClass",
235
+ publicName: "contentClass",
236
+ isSignal: true,
237
+ isRequired: false,
238
+ transformFunction: null
239
+ },
240
+ ariaLabel: {
241
+ classPropertyName: "ariaLabel",
242
+ publicName: "ariaLabel",
243
+ isSignal: true,
244
+ isRequired: false,
245
+ transformFunction: null
246
+ },
247
+ ariaLabelledBy: {
248
+ classPropertyName: "ariaLabelledBy",
249
+ publicName: "ariaLabelledBy",
250
+ isSignal: true,
251
+ isRequired: false,
252
+ transformFunction: null
253
+ }
254
+ },
255
+ host: { properties: { "class._fluid": "fluid()" } },
256
+ queries: [
257
+ {
258
+ propertyName: "titleSlot",
259
+ first: true,
260
+ predicate: UiCardTitle,
261
+ descendants: true,
262
+ isSignal: true
263
+ },
264
+ {
265
+ propertyName: "subtitleSlot",
266
+ first: true,
267
+ predicate: UiCardSubtitle,
268
+ descendants: true,
269
+ isSignal: true
270
+ },
271
+ {
272
+ propertyName: "mediaSlot",
273
+ first: true,
274
+ predicate: UiCardMedia,
275
+ descendants: true,
276
+ isSignal: true
277
+ },
278
+ {
279
+ propertyName: "footerSlot",
280
+ first: true,
281
+ predicate: UiCardFooter,
282
+ descendants: true,
283
+ isSignal: true
284
+ }
285
+ ],
286
+ viewQueries: [{
287
+ propertyName: "contentWrap",
288
+ first: true,
289
+ predicate: ["contentWrap"],
290
+ descendants: true,
291
+ isSignal: true
292
+ }],
293
+ ngImport: i0,
294
+ template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div #contentWrap [class]=\"contentClasses()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n",
295
+ styles: [":host{display:flex;flex-direction:column}:host._fluid{width:100%}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;background-color:var(--ui-card-surface, var(--global-background-default));border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--ui-card-color, var(--global-text-default));font-family:var(--ui-card-font-family, var(--fontfamily-base))}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--ui-card-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-default);font-weight:var(--ui-card-weight, var(--weight-bold));line-height:1.2;color:var(--ui-card-title-color, var(--global-text-default))}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--ui-card-subtitle-color, var(--global-text-muted))}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--ui-card-content-color, var(--global-text-default))}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--ui-card-stroke, var(--global-border-subtle))}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"]
296
+ });
297
+ }
298
+ };
299
+ i0.ɵɵngDeclareClassMetadata({
300
+ minVersion: "12.0.0",
301
+ version: "22.3.0",
302
+ ngImport: i0,
303
+ type: UiCard,
304
+ decorators: [{
305
+ type: Component,
306
+ args: [{
307
+ selector: "ui-card",
308
+ imports: [],
309
+ host: { "[class._fluid]": "fluid()" },
310
+ template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div #contentWrap [class]=\"contentClasses()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n",
311
+ styles: [":host{display:flex;flex-direction:column}:host._fluid{width:100%}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;background-color:var(--ui-card-surface, var(--global-background-default));border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--ui-card-color, var(--global-text-default));font-family:var(--ui-card-font-family, var(--fontfamily-base))}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--ui-card-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-default);font-weight:var(--ui-card-weight, var(--weight-bold));line-height:1.2;color:var(--ui-card-title-color, var(--global-text-default))}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--ui-card-subtitle-color, var(--global-text-muted))}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--ui-card-content-color, var(--global-text-default))}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--ui-card-stroke, var(--global-border-subtle))}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"]
312
+ }]
313
+ }],
314
+ ctorParameters: () => [],
315
+ propDecorators: {
316
+ header: [{
317
+ type: i0.Input,
318
+ args: [{
319
+ isSignal: true,
320
+ alias: "header",
321
+ required: false
322
+ }]
323
+ }],
324
+ subheader: [{
325
+ type: i0.Input,
326
+ args: [{
327
+ isSignal: true,
328
+ alias: "subheader",
329
+ required: false
330
+ }]
331
+ }],
332
+ variant: [{
333
+ type: i0.Input,
334
+ args: [{
335
+ isSignal: true,
336
+ alias: "variant",
337
+ required: false
338
+ }]
339
+ }],
340
+ fluid: [{
341
+ type: i0.Input,
342
+ args: [{
343
+ isSignal: true,
344
+ alias: "fluid",
345
+ required: false
346
+ }]
347
+ }],
348
+ contentFlush: [{
349
+ type: i0.Input,
350
+ args: [{
351
+ isSignal: true,
352
+ alias: "contentFlush",
353
+ required: false
354
+ }]
355
+ }],
356
+ contentClass: [{
357
+ type: i0.Input,
358
+ args: [{
359
+ isSignal: true,
360
+ alias: "contentClass",
361
+ required: false
362
+ }]
363
+ }],
364
+ ariaLabel: [{
365
+ type: i0.Input,
366
+ args: [{
367
+ isSignal: true,
368
+ alias: "ariaLabel",
369
+ required: false
370
+ }]
371
+ }],
372
+ ariaLabelledBy: [{
373
+ type: i0.Input,
374
+ args: [{
375
+ isSignal: true,
376
+ alias: "ariaLabelledBy",
377
+ required: false
378
+ }]
379
+ }],
380
+ titleSlot: [{
381
+ type: i0.ContentChild,
382
+ args: [i0.forwardRef(() => UiCardTitle), { isSignal: true }]
383
+ }],
384
+ subtitleSlot: [{
385
+ type: i0.ContentChild,
386
+ args: [i0.forwardRef(() => UiCardSubtitle), { isSignal: true }]
387
+ }],
388
+ mediaSlot: [{
389
+ type: i0.ContentChild,
390
+ args: [i0.forwardRef(() => UiCardMedia), { isSignal: true }]
391
+ }],
392
+ footerSlot: [{
393
+ type: i0.ContentChild,
394
+ args: [i0.forwardRef(() => UiCardFooter), { isSignal: true }]
395
+ }],
396
+ contentWrap: [{
397
+ type: i0.ViewChild,
398
+ args: ["contentWrap", { isSignal: true }]
399
+ }]
400
+ }
401
+ });
189
402
  export { UiCard, UiCardFooter, UiCardMedia, UiCardSubtitle, UiCardTitle };
190
- //# sourceMappingURL=4sh-ui-kit-layout-ui-card.mjs.map
403
+
404
+ //# sourceMappingURL=4sh-ui-kit-layout-ui-card.mjs.map