@4sh/ui-kit 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,151 +1,543 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, output, viewChild, signal, computed, Component } from '@angular/core';
3
- import { UiButton } from '@4sh/ui-kit/actions/ui-button';
4
- import { UiMenu } from '@4sh/ui-kit/navigation/ui-menu';
5
-
6
- /**
7
- * ui-button-split — a default action button glued to a dropdown trigger that
8
- * reveals a collection of additional options.
9
- *
10
- * The main button fires the default action (`buttonClick`); the caret trigger
11
- * toggles a {@link UiMenu} popup fed by the declarative `model`
12
- * ({@link UiMenuItem}: leaves with `command` / `routerLink` / `url`, nested
13
- * submenus, separators, icons…). Colors come from the `actions.*` tokens (via
14
- * the composed `ui-button`), the panel from the `navigation.*` tokens (via
15
- * `ui-menu`).
16
- *
17
- * The two buttons can be disabled independently: `buttonDisabled` for the
18
- * action, `menuButtonDisabled` for the trigger, or `disabled` for both.
19
- */
20
- class UiButtonSplit {
21
- constructor() {
22
- /** Additional options revealed by the dropdown (see {@link UiMenuItem}). */
23
- this.model = input([], /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
25
- /** Label of the default action button. */
26
- this.label = input(/* @ts-ignore */
27
- ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
28
- /** Leading/trailing FontAwesome icon of the action button. */
29
- this.icon = input(/* @ts-ignore */
30
- ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
31
- /** Position of the action button icon relative to its label. */
32
- this.iconPos = input('left', /* @ts-ignore */
33
- ...(ngDevMode ? [{ debugName: "iconPos" }] : /* istanbul ignore next */ []));
34
- /** Icon of the dropdown trigger (the caret). */
35
- this.dropdownIcon = input('chevron-down', /* @ts-ignore */
36
- ...(ngDevMode ? [{ debugName: "dropdownIcon" }] : /* istanbul ignore next */ []));
37
- /** Semantic level applied to both buttons. */
38
- this.level = input('high', /* @ts-ignore */
39
- ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
40
- /** Size of the whole control (buttons + menu density). */
41
- this.size = input('default', /* @ts-ignore */
42
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
43
- /** Apparence appliquée aux deux boutons (action + trigger). */
44
- this.variant = input('filled', /* @ts-ignore */
45
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
46
- /** Luminosité du fond de couleur sur lequel le contrôle est posé (voir `ui-button.onColor`). */
47
- this.onColor = input(null, /* @ts-ignore */
48
- ...(ngDevMode ? [{ debugName: "onColor" }] : /* istanbul ignore next */ []));
49
- /** Disable both the action and the dropdown trigger. */
50
- this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
51
- /** Disable only the default action button. */
52
- this.buttonDisabled = input(false, { ...(ngDevMode ? { debugName: "buttonDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
53
- /** Disable only the dropdown trigger button. */
54
- this.menuButtonDisabled = input(false, { ...(ngDevMode ? { debugName: "menuButtonDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
55
- /** Accessible name of the action button (required when it is icon-only). */
56
- this.ariaLabel = input(/* @ts-ignore */
57
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
58
- /** Accessible name of the dropdown trigger (icon-only button). */
59
- this.menuButtonAriaLabel = input("Plus d'options", /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "menuButtonAriaLabel" }] : /* istanbul ignore next */ []));
61
- /** Accessible name of the options list. */
62
- this.menuAriaLabel = input(/* @ts-ignore */
63
- ...(ngDevMode ? [undefined, { debugName: "menuAriaLabel" }] : /* istanbul ignore next */ []));
64
- /** Color family of the menu panel: `high` (default) or `low`. */
65
- this.menuLevel = input('high', /* @ts-ignore */
66
- ...(ngDevMode ? [{ debugName: "menuLevel" }] : /* istanbul ignore next */ []));
67
- /** Extra class(es) applied to the menu panel (scoped custom styling). */
68
- this.menuStyleClass = input(/* @ts-ignore */
69
- ...(ngDevMode ? [undefined, { debugName: "menuStyleClass" }] : /* istanbul ignore next */ []));
70
- /** Auto-flip the popup above the trigger when space is lacking below. */
71
- this.autoFlip = input(true, { ...(ngDevMode ? { debugName: "autoFlip" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
72
- /** Animate the popup entrance (reduced-motion always wins). */
73
- this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
74
- /** Native tabindex of the action button. */
75
- this.tabindex = input(/* @ts-ignore */
76
- ...(ngDevMode ? [undefined, { debugName: "tabindex" }] : /* istanbul ignore next */ []));
77
- /** Extra native attributes forwarded onto the action `<button>`. */
78
- this.buttonProps = input(/* @ts-ignore */
79
- ...(ngDevMode ? [undefined, { debugName: "buttonProps" }] : /* istanbul ignore next */ []));
80
- /** Fired when the default action button is clicked (never when disabled). */
81
- this.buttonClick = output();
82
- /** Fired when the dropdown trigger is clicked (never when disabled). */
83
- this.dropdownClick = output();
84
- /** Fired when the options popup opens. */
85
- this.menuShow = output();
86
- /** Fired when the options popup closes. */
87
- this.menuHide = output();
88
- /** Fired when an option is activated (click / keyboard). */
89
- this.itemClick = output();
90
- /** @ignore Action button (programmatic focus). */
91
- this.actionButton = viewChild('action', /* @ts-ignore */
92
- ...(ngDevMode ? [{ debugName: "actionButton" }] : /* istanbul ignore next */ []));
93
- /** @ignore Embedded options menu (programmatic close). */
94
- this.menu = viewChild('menu', /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
96
- /** @ignore Popup open state (drives the trigger's `aria-expanded`). */
97
- this.menuOpen = signal(false, /* @ts-ignore */
98
- ...(ngDevMode ? [{ debugName: "menuOpen" }] : /* istanbul ignore next */ []));
99
- /** @ignore Menu density mirrors the control size. */
100
- this.menuSize = computed(() => this.size(), /* @ts-ignore */
101
- ...(ngDevMode ? [{ debugName: "menuSize" }] : /* istanbul ignore next */ []));
102
- /** @ignore The action button is disabled by its own flag or the global one. */
103
- this.actionDisabled = computed(() => this.disabled() || this.buttonDisabled(), /* @ts-ignore */
104
- ...(ngDevMode ? [{ debugName: "actionDisabled" }] : /* istanbul ignore next */ []));
105
- /** @ignore The trigger is disabled by its own flag or the global one. */
106
- this.triggerDisabled = computed(() => this.disabled() || this.menuButtonDisabled(), /* @ts-ignore */
107
- ...(ngDevMode ? [{ debugName: "triggerDisabled" }] : /* istanbul ignore next */ []));
108
- /** @ignore */
109
- this.classes = computed(() => {
110
- const c = ['ui-button-split', `_${this.level()}`];
111
- if (this.size() !== 'default')
112
- c.push(`_${this.size()}`);
113
- return c.join(' ');
114
- }, /* @ts-ignore */
115
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
116
- }
117
- /** Sets focus on the default action button. */
118
- focus(options) {
119
- this.actionButton()?.focus(options);
120
- }
121
- /** Closes the options popup. */
122
- hide() {
123
- this.menu()?.hide();
124
- }
125
- /** @ignore */
126
- onButtonClick(event) {
127
- this.buttonClick.emit(event);
128
- }
129
- /** @ignore Trigger click: re-emit, then toggle the popup anchored to it. */
130
- onDropdownClick(event) {
131
- this.dropdownClick.emit(event);
132
- this.menu()?.toggle(event);
133
- }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiButtonSplit, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
135
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: UiButtonSplit, isStandalone: true, selector: "ui-button-split", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, onColor: { classPropertyName: "onColor", publicName: "onColor", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "buttonDisabled", isSignal: true, isRequired: false, transformFunction: null }, menuButtonDisabled: { classPropertyName: "menuButtonDisabled", publicName: "menuButtonDisabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, menuButtonAriaLabel: { classPropertyName: "menuButtonAriaLabel", publicName: "menuButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, menuAriaLabel: { classPropertyName: "menuAriaLabel", publicName: "menuAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, menuLevel: { classPropertyName: "menuLevel", publicName: "menuLevel", isSignal: true, isRequired: false, transformFunction: null }, menuStyleClass: { classPropertyName: "menuStyleClass", publicName: "menuStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick", dropdownClick: "dropdownClick", menuShow: "menuShow", menuHide: "menuHide", itemClick: "itemClick" }, viewQueries: [{ propertyName: "actionButton", first: true, predicate: ["action"], descendants: true, isSignal: true }, { propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"classes()\">\n <!-- Default action -->\n <ui-button\n #action\n class=\"ui-button-split-action\"\n [label]=\"label()\"\n [ariaLabel]=\"ariaLabel()\"\n [icon]=\"icon()\"\n [iconPos]=\"iconPos()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"actionDisabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"buttonProps()\"\n (buttonClick)=\"onButtonClick($event)\"\n >\n <ng-content />\n </ui-button>\n\n <!-- Dropdown trigger -->\n <ui-button\n class=\"ui-button-split-trigger\"\n [icon]=\"dropdownIcon()\"\n [ariaLabel]=\"menuButtonAriaLabel()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"triggerDisabled()\"\n iconOnly\n [buttonProps]=\"{\n 'aria-haspopup': 'menu',\n 'aria-expanded': menuOpen() ? 'true' : 'false',\n 'aria-controls': menu.uid,\n }\"\n (buttonClick)=\"onDropdownClick($event)\"\n />\n\n <!-- Options popup (anchored to the trigger) -->\n <ui-menu\n #menu\n popup\n [items]=\"model()\"\n [level]=\"menuLevel()\"\n [size]=\"menuSize()\"\n [motion]=\"motion()\"\n [autoFlip]=\"autoFlip()\"\n [ariaLabel]=\"menuAriaLabel()\"\n [styleClass]=\"menuStyleClass()\"\n (opened)=\"menuOpen.set(true); menuShow.emit()\"\n (closed)=\"menuOpen.set(false); menuHide.emit()\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n</div>\n", styles: [".ui-button-split{display:inline-flex;align-items:stretch}.ui-button-split-action,.ui-button-split-trigger{position:relative}.ui-button-split-action:hover,.ui-button-split-action:focus-within,.ui-button-split-trigger:hover,.ui-button-split-trigger:focus-within{z-index:1}.ui-button-split-action{--ui-button-radius: var(--ui-button-radius-default, var(--radius-sm)) 0 0 var(--ui-button-radius-default, var(--radius-sm))}.ui-button-split-trigger{--ui-button-radius: 0 var(--ui-button-radius-default, var(--radius-sm)) var(--ui-button-radius-default, var(--radius-sm)) 0;margin-left:calc(-1 * var(--ui-button-split-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))))}\n"], dependencies: [{ kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "ripple", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }] }); }
136
- }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiButtonSplit, decorators: [{
138
- type: Component,
139
- args: [{ selector: 'ui-button-split', imports: [UiButton, UiMenu], template: "<div [class]=\"classes()\">\n <!-- Default action -->\n <ui-button\n #action\n class=\"ui-button-split-action\"\n [label]=\"label()\"\n [ariaLabel]=\"ariaLabel()\"\n [icon]=\"icon()\"\n [iconPos]=\"iconPos()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"actionDisabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"buttonProps()\"\n (buttonClick)=\"onButtonClick($event)\"\n >\n <ng-content />\n </ui-button>\n\n <!-- Dropdown trigger -->\n <ui-button\n class=\"ui-button-split-trigger\"\n [icon]=\"dropdownIcon()\"\n [ariaLabel]=\"menuButtonAriaLabel()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"triggerDisabled()\"\n iconOnly\n [buttonProps]=\"{\n 'aria-haspopup': 'menu',\n 'aria-expanded': menuOpen() ? 'true' : 'false',\n 'aria-controls': menu.uid,\n }\"\n (buttonClick)=\"onDropdownClick($event)\"\n />\n\n <!-- Options popup (anchored to the trigger) -->\n <ui-menu\n #menu\n popup\n [items]=\"model()\"\n [level]=\"menuLevel()\"\n [size]=\"menuSize()\"\n [motion]=\"motion()\"\n [autoFlip]=\"autoFlip()\"\n [ariaLabel]=\"menuAriaLabel()\"\n [styleClass]=\"menuStyleClass()\"\n (opened)=\"menuOpen.set(true); menuShow.emit()\"\n (closed)=\"menuOpen.set(false); menuHide.emit()\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n</div>\n", styles: [".ui-button-split{display:inline-flex;align-items:stretch}.ui-button-split-action,.ui-button-split-trigger{position:relative}.ui-button-split-action:hover,.ui-button-split-action:focus-within,.ui-button-split-trigger:hover,.ui-button-split-trigger:focus-within{z-index:1}.ui-button-split-action{--ui-button-radius: var(--ui-button-radius-default, var(--radius-sm)) 0 0 var(--ui-button-radius-default, var(--radius-sm))}.ui-button-split-trigger{--ui-button-radius: 0 var(--ui-button-radius-default, var(--radius-sm)) var(--ui-button-radius-default, var(--radius-sm)) 0;margin-left:calc(-1 * var(--ui-button-split-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))))}\n"] }]
140
- }], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], onColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "onColor", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], buttonDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisabled", required: false }] }], menuButtonDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuButtonDisabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], menuButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuButtonAriaLabel", required: false }] }], menuAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuAriaLabel", required: false }] }], menuLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuLevel", required: false }] }], menuStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuStyleClass", required: false }] }], autoFlip: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFlip", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], buttonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonProps", required: false }] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], dropdownClick: [{ type: i0.Output, args: ["dropdownClick"] }], menuShow: [{ type: i0.Output, args: ["menuShow"] }], menuHide: [{ type: i0.Output, args: ["menuHide"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], actionButton: [{ type: i0.ViewChild, args: ['action', { isSignal: true }] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }] } });
141
-
142
- /*
143
- * Public API Surface of ui-kit/ui-button-split
144
- */
145
-
146
- /**
147
- * Generated bundle index. Do not edit.
148
- */
149
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, booleanAttribute, computed, input, output, signal, viewChild } from "@angular/core";
3
+ import { UiButton } from "@4sh/ui-kit/actions/ui-button";
4
+ import { UiMenu } from "@4sh/ui-kit/navigation/ui-menu";
5
+ var UiButtonSplit = class UiButtonSplit {
6
+ constructor() {
7
+ this.model = input([], ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
8
+ this.label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
9
+ this.icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
10
+ this.iconPos = input("left", ...ngDevMode ? [{ debugName: "iconPos" }] : /* istanbul ignore next */ []);
11
+ this.dropdownIcon = input("chevron-down", ...ngDevMode ? [{ debugName: "dropdownIcon" }] : /* istanbul ignore next */ []);
12
+ this.level = input("high", ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
13
+ this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
14
+ this.variant = input("filled", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
15
+ this.onColor = input(null, ...ngDevMode ? [{ debugName: "onColor" }] : /* istanbul ignore next */ []);
16
+ this.disabled = input(false, {
17
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
18
+ transform: booleanAttribute
19
+ });
20
+ this.buttonDisabled = input(false, {
21
+ ...ngDevMode ? { debugName: "buttonDisabled" } : /* istanbul ignore next */ {},
22
+ transform: booleanAttribute
23
+ });
24
+ this.menuButtonDisabled = input(false, {
25
+ ...ngDevMode ? { debugName: "menuButtonDisabled" } : /* istanbul ignore next */ {},
26
+ transform: booleanAttribute
27
+ });
28
+ this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
29
+ this.menuButtonAriaLabel = input("Plus d'options", ...ngDevMode ? [{ debugName: "menuButtonAriaLabel" }] : /* istanbul ignore next */ []);
30
+ this.menuAriaLabel = input(...ngDevMode ? [void 0, { debugName: "menuAriaLabel" }] : /* istanbul ignore next */ []);
31
+ this.menuLevel = input("high", ...ngDevMode ? [{ debugName: "menuLevel" }] : /* istanbul ignore next */ []);
32
+ this.menuStyleClass = input(...ngDevMode ? [void 0, { debugName: "menuStyleClass" }] : /* istanbul ignore next */ []);
33
+ this.autoFlip = input(true, {
34
+ ...ngDevMode ? { debugName: "autoFlip" } : /* istanbul ignore next */ {},
35
+ transform: booleanAttribute
36
+ });
37
+ this.motion = input(true, {
38
+ ...ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {},
39
+ transform: booleanAttribute
40
+ });
41
+ this.tabindex = input(...ngDevMode ? [void 0, { debugName: "tabindex" }] : /* istanbul ignore next */ []);
42
+ this.buttonProps = input(...ngDevMode ? [void 0, { debugName: "buttonProps" }] : /* istanbul ignore next */ []);
43
+ this.buttonClick = output();
44
+ this.dropdownClick = output();
45
+ this.menuShow = output();
46
+ this.menuHide = output();
47
+ this.itemClick = output();
48
+ this.actionButton = viewChild("action", ...ngDevMode ? [{ debugName: "actionButton" }] : /* istanbul ignore next */ []);
49
+ this.menu = viewChild("menu", ...ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []);
50
+ this.menuOpen = signal(false, ...ngDevMode ? [{ debugName: "menuOpen" }] : /* istanbul ignore next */ []);
51
+ this.menuSize = computed(() => this.size(), ...ngDevMode ? [{ debugName: "menuSize" }] : /* istanbul ignore next */ []);
52
+ this.actionDisabled = computed(() => this.disabled() || this.buttonDisabled(), ...ngDevMode ? [{ debugName: "actionDisabled" }] : /* istanbul ignore next */ []);
53
+ this.triggerDisabled = computed(() => this.disabled() || this.menuButtonDisabled(), ...ngDevMode ? [{ debugName: "triggerDisabled" }] : /* istanbul ignore next */ []);
54
+ this.classes = computed(() => {
55
+ const c = ["ui-button-split", `_${this.level()}`];
56
+ if (this.size() !== "default") c.push(`_${this.size()}`);
57
+ return c.join(" ");
58
+ }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
59
+ }
60
+ focus(options) {
61
+ this.actionButton()?.focus(options);
62
+ }
63
+ hide() {
64
+ this.menu()?.hide();
65
+ }
66
+ onButtonClick(event) {
67
+ this.buttonClick.emit(event);
68
+ }
69
+ onDropdownClick(event) {
70
+ this.dropdownClick.emit(event);
71
+ this.menu()?.toggle(event);
72
+ }
73
+ static {
74
+ this.ɵfac = i0.ɵɵngDeclareFactory({
75
+ minVersion: "12.0.0",
76
+ version: "22.3.0",
77
+ ngImport: i0,
78
+ type: UiButtonSplit,
79
+ deps: [],
80
+ target: i0.ɵɵFactoryTarget.Component
81
+ });
82
+ }
83
+ static {
84
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
85
+ minVersion: "17.2.0",
86
+ version: "22.3.0",
87
+ type: UiButtonSplit,
88
+ isStandalone: true,
89
+ selector: "ui-button-split",
90
+ inputs: {
91
+ model: {
92
+ classPropertyName: "model",
93
+ publicName: "model",
94
+ isSignal: true,
95
+ isRequired: false,
96
+ transformFunction: null
97
+ },
98
+ label: {
99
+ classPropertyName: "label",
100
+ publicName: "label",
101
+ isSignal: true,
102
+ isRequired: false,
103
+ transformFunction: null
104
+ },
105
+ icon: {
106
+ classPropertyName: "icon",
107
+ publicName: "icon",
108
+ isSignal: true,
109
+ isRequired: false,
110
+ transformFunction: null
111
+ },
112
+ iconPos: {
113
+ classPropertyName: "iconPos",
114
+ publicName: "iconPos",
115
+ isSignal: true,
116
+ isRequired: false,
117
+ transformFunction: null
118
+ },
119
+ dropdownIcon: {
120
+ classPropertyName: "dropdownIcon",
121
+ publicName: "dropdownIcon",
122
+ isSignal: true,
123
+ isRequired: false,
124
+ transformFunction: null
125
+ },
126
+ level: {
127
+ classPropertyName: "level",
128
+ publicName: "level",
129
+ isSignal: true,
130
+ isRequired: false,
131
+ transformFunction: null
132
+ },
133
+ size: {
134
+ classPropertyName: "size",
135
+ publicName: "size",
136
+ isSignal: true,
137
+ isRequired: false,
138
+ transformFunction: null
139
+ },
140
+ variant: {
141
+ classPropertyName: "variant",
142
+ publicName: "variant",
143
+ isSignal: true,
144
+ isRequired: false,
145
+ transformFunction: null
146
+ },
147
+ onColor: {
148
+ classPropertyName: "onColor",
149
+ publicName: "onColor",
150
+ isSignal: true,
151
+ isRequired: false,
152
+ transformFunction: null
153
+ },
154
+ disabled: {
155
+ classPropertyName: "disabled",
156
+ publicName: "disabled",
157
+ isSignal: true,
158
+ isRequired: false,
159
+ transformFunction: null
160
+ },
161
+ buttonDisabled: {
162
+ classPropertyName: "buttonDisabled",
163
+ publicName: "buttonDisabled",
164
+ isSignal: true,
165
+ isRequired: false,
166
+ transformFunction: null
167
+ },
168
+ menuButtonDisabled: {
169
+ classPropertyName: "menuButtonDisabled",
170
+ publicName: "menuButtonDisabled",
171
+ isSignal: true,
172
+ isRequired: false,
173
+ transformFunction: null
174
+ },
175
+ ariaLabel: {
176
+ classPropertyName: "ariaLabel",
177
+ publicName: "ariaLabel",
178
+ isSignal: true,
179
+ isRequired: false,
180
+ transformFunction: null
181
+ },
182
+ menuButtonAriaLabel: {
183
+ classPropertyName: "menuButtonAriaLabel",
184
+ publicName: "menuButtonAriaLabel",
185
+ isSignal: true,
186
+ isRequired: false,
187
+ transformFunction: null
188
+ },
189
+ menuAriaLabel: {
190
+ classPropertyName: "menuAriaLabel",
191
+ publicName: "menuAriaLabel",
192
+ isSignal: true,
193
+ isRequired: false,
194
+ transformFunction: null
195
+ },
196
+ menuLevel: {
197
+ classPropertyName: "menuLevel",
198
+ publicName: "menuLevel",
199
+ isSignal: true,
200
+ isRequired: false,
201
+ transformFunction: null
202
+ },
203
+ menuStyleClass: {
204
+ classPropertyName: "menuStyleClass",
205
+ publicName: "menuStyleClass",
206
+ isSignal: true,
207
+ isRequired: false,
208
+ transformFunction: null
209
+ },
210
+ autoFlip: {
211
+ classPropertyName: "autoFlip",
212
+ publicName: "autoFlip",
213
+ isSignal: true,
214
+ isRequired: false,
215
+ transformFunction: null
216
+ },
217
+ motion: {
218
+ classPropertyName: "motion",
219
+ publicName: "motion",
220
+ isSignal: true,
221
+ isRequired: false,
222
+ transformFunction: null
223
+ },
224
+ tabindex: {
225
+ classPropertyName: "tabindex",
226
+ publicName: "tabindex",
227
+ isSignal: true,
228
+ isRequired: false,
229
+ transformFunction: null
230
+ },
231
+ buttonProps: {
232
+ classPropertyName: "buttonProps",
233
+ publicName: "buttonProps",
234
+ isSignal: true,
235
+ isRequired: false,
236
+ transformFunction: null
237
+ }
238
+ },
239
+ outputs: {
240
+ buttonClick: "buttonClick",
241
+ dropdownClick: "dropdownClick",
242
+ menuShow: "menuShow",
243
+ menuHide: "menuHide",
244
+ itemClick: "itemClick"
245
+ },
246
+ viewQueries: [{
247
+ propertyName: "actionButton",
248
+ first: true,
249
+ predicate: ["action"],
250
+ descendants: true,
251
+ isSignal: true
252
+ }, {
253
+ propertyName: "menu",
254
+ first: true,
255
+ predicate: ["menu"],
256
+ descendants: true,
257
+ isSignal: true
258
+ }],
259
+ ngImport: i0,
260
+ template: "<div [class]=\"classes()\">\n <!-- Default action -->\n <ui-button\n #action\n class=\"ui-button-split-action\"\n [label]=\"label()\"\n [ariaLabel]=\"ariaLabel()\"\n [icon]=\"icon()\"\n [iconPos]=\"iconPos()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"actionDisabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"buttonProps()\"\n (buttonClick)=\"onButtonClick($event)\"\n >\n <ng-content />\n </ui-button>\n\n <!-- Dropdown trigger -->\n <ui-button\n class=\"ui-button-split-trigger\"\n [icon]=\"dropdownIcon()\"\n [ariaLabel]=\"menuButtonAriaLabel()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"triggerDisabled()\"\n iconOnly\n [buttonProps]=\"{\n 'aria-haspopup': 'menu',\n 'aria-expanded': menuOpen() ? 'true' : 'false',\n 'aria-controls': menu.uid,\n }\"\n (buttonClick)=\"onDropdownClick($event)\"\n />\n\n <!-- Options popup (anchored to the trigger) -->\n <ui-menu\n #menu\n popup\n [items]=\"model()\"\n [level]=\"menuLevel()\"\n [size]=\"menuSize()\"\n [motion]=\"motion()\"\n [autoFlip]=\"autoFlip()\"\n [ariaLabel]=\"menuAriaLabel()\"\n [styleClass]=\"menuStyleClass()\"\n (opened)=\"menuOpen.set(true); menuShow.emit()\"\n (closed)=\"menuOpen.set(false); menuHide.emit()\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n</div>\n",
261
+ styles: [".ui-button-split{display:inline-flex;align-items:stretch}.ui-button-split-action,.ui-button-split-trigger{position:relative}.ui-button-split-action:hover,.ui-button-split-action:focus-within,.ui-button-split-trigger:hover,.ui-button-split-trigger:focus-within{z-index:1}.ui-button-split-action{--ui-button-radius: var(--ui-button-radius-default, var(--radius-sm)) 0 0 var(--ui-button-radius-default, var(--radius-sm))}.ui-button-split-trigger{--ui-button-radius: 0 var(--ui-button-radius-default, var(--radius-sm)) var(--ui-button-radius-default, var(--radius-sm)) 0;margin-left:calc(-1 * var(--ui-button-split-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))))}\n"],
262
+ dependencies: [{
263
+ kind: "component",
264
+ type: UiButton,
265
+ selector: "ui-button",
266
+ inputs: [
267
+ "label",
268
+ "ariaLabel",
269
+ "type",
270
+ "level",
271
+ "variant",
272
+ "onColor",
273
+ "size",
274
+ "icon",
275
+ "iconPos",
276
+ "iconOnly",
277
+ "loading",
278
+ "loadingIcon",
279
+ "expanded",
280
+ "rounded",
281
+ "disabled",
282
+ "ripple",
283
+ "tabindex",
284
+ "buttonProps",
285
+ "iconTemplate",
286
+ "loadingIconTemplate",
287
+ "href",
288
+ "routerLink",
289
+ "target",
290
+ "rel"
291
+ ],
292
+ outputs: [
293
+ "buttonClick",
294
+ "buttonFocus",
295
+ "buttonBlur"
296
+ ]
297
+ }, {
298
+ kind: "component",
299
+ type: UiMenu,
300
+ selector: "ui-menu",
301
+ inputs: [
302
+ "items",
303
+ "popup",
304
+ "expandedKeys",
305
+ "ariaLabel",
306
+ "ariaLabelledBy",
307
+ "styleClass",
308
+ "level",
309
+ "size",
310
+ "submenus",
311
+ "motion",
312
+ "ripple",
313
+ "autoFlip",
314
+ "tabindex",
315
+ "itemTemplate",
316
+ "submenuHeaderTemplate"
317
+ ],
318
+ outputs: [
319
+ "expandedKeysChange",
320
+ "opened",
321
+ "closed",
322
+ "itemClick"
323
+ ]
324
+ }]
325
+ });
326
+ }
327
+ };
328
+ i0.ɵɵngDeclareClassMetadata({
329
+ minVersion: "12.0.0",
330
+ version: "22.3.0",
331
+ ngImport: i0,
332
+ type: UiButtonSplit,
333
+ decorators: [{
334
+ type: Component,
335
+ args: [{
336
+ selector: "ui-button-split",
337
+ imports: [UiButton, UiMenu],
338
+ template: "<div [class]=\"classes()\">\n <!-- Default action -->\n <ui-button\n #action\n class=\"ui-button-split-action\"\n [label]=\"label()\"\n [ariaLabel]=\"ariaLabel()\"\n [icon]=\"icon()\"\n [iconPos]=\"iconPos()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"actionDisabled()\"\n [tabindex]=\"tabindex()\"\n [buttonProps]=\"buttonProps()\"\n (buttonClick)=\"onButtonClick($event)\"\n >\n <ng-content />\n </ui-button>\n\n <!-- Dropdown trigger -->\n <ui-button\n class=\"ui-button-split-trigger\"\n [icon]=\"dropdownIcon()\"\n [ariaLabel]=\"menuButtonAriaLabel()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [onColor]=\"onColor()\"\n [disabled]=\"triggerDisabled()\"\n iconOnly\n [buttonProps]=\"{\n 'aria-haspopup': 'menu',\n 'aria-expanded': menuOpen() ? 'true' : 'false',\n 'aria-controls': menu.uid,\n }\"\n (buttonClick)=\"onDropdownClick($event)\"\n />\n\n <!-- Options popup (anchored to the trigger) -->\n <ui-menu\n #menu\n popup\n [items]=\"model()\"\n [level]=\"menuLevel()\"\n [size]=\"menuSize()\"\n [motion]=\"motion()\"\n [autoFlip]=\"autoFlip()\"\n [ariaLabel]=\"menuAriaLabel()\"\n [styleClass]=\"menuStyleClass()\"\n (opened)=\"menuOpen.set(true); menuShow.emit()\"\n (closed)=\"menuOpen.set(false); menuHide.emit()\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n</div>\n",
339
+ styles: [".ui-button-split{display:inline-flex;align-items:stretch}.ui-button-split-action,.ui-button-split-trigger{position:relative}.ui-button-split-action:hover,.ui-button-split-action:focus-within,.ui-button-split-trigger:hover,.ui-button-split-trigger:focus-within{z-index:1}.ui-button-split-action{--ui-button-radius: var(--ui-button-radius-default, var(--radius-sm)) 0 0 var(--ui-button-radius-default, var(--radius-sm))}.ui-button-split-trigger{--ui-button-radius: 0 var(--ui-button-radius-default, var(--radius-sm)) var(--ui-button-radius-default, var(--radius-sm)) 0;margin-left:calc(-1 * var(--ui-button-split-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))))}\n"]
340
+ }]
341
+ }],
342
+ propDecorators: {
343
+ model: [{
344
+ type: i0.Input,
345
+ args: [{
346
+ isSignal: true,
347
+ alias: "model",
348
+ required: false
349
+ }]
350
+ }],
351
+ label: [{
352
+ type: i0.Input,
353
+ args: [{
354
+ isSignal: true,
355
+ alias: "label",
356
+ required: false
357
+ }]
358
+ }],
359
+ icon: [{
360
+ type: i0.Input,
361
+ args: [{
362
+ isSignal: true,
363
+ alias: "icon",
364
+ required: false
365
+ }]
366
+ }],
367
+ iconPos: [{
368
+ type: i0.Input,
369
+ args: [{
370
+ isSignal: true,
371
+ alias: "iconPos",
372
+ required: false
373
+ }]
374
+ }],
375
+ dropdownIcon: [{
376
+ type: i0.Input,
377
+ args: [{
378
+ isSignal: true,
379
+ alias: "dropdownIcon",
380
+ required: false
381
+ }]
382
+ }],
383
+ level: [{
384
+ type: i0.Input,
385
+ args: [{
386
+ isSignal: true,
387
+ alias: "level",
388
+ required: false
389
+ }]
390
+ }],
391
+ size: [{
392
+ type: i0.Input,
393
+ args: [{
394
+ isSignal: true,
395
+ alias: "size",
396
+ required: false
397
+ }]
398
+ }],
399
+ variant: [{
400
+ type: i0.Input,
401
+ args: [{
402
+ isSignal: true,
403
+ alias: "variant",
404
+ required: false
405
+ }]
406
+ }],
407
+ onColor: [{
408
+ type: i0.Input,
409
+ args: [{
410
+ isSignal: true,
411
+ alias: "onColor",
412
+ required: false
413
+ }]
414
+ }],
415
+ disabled: [{
416
+ type: i0.Input,
417
+ args: [{
418
+ isSignal: true,
419
+ alias: "disabled",
420
+ required: false
421
+ }]
422
+ }],
423
+ buttonDisabled: [{
424
+ type: i0.Input,
425
+ args: [{
426
+ isSignal: true,
427
+ alias: "buttonDisabled",
428
+ required: false
429
+ }]
430
+ }],
431
+ menuButtonDisabled: [{
432
+ type: i0.Input,
433
+ args: [{
434
+ isSignal: true,
435
+ alias: "menuButtonDisabled",
436
+ required: false
437
+ }]
438
+ }],
439
+ ariaLabel: [{
440
+ type: i0.Input,
441
+ args: [{
442
+ isSignal: true,
443
+ alias: "ariaLabel",
444
+ required: false
445
+ }]
446
+ }],
447
+ menuButtonAriaLabel: [{
448
+ type: i0.Input,
449
+ args: [{
450
+ isSignal: true,
451
+ alias: "menuButtonAriaLabel",
452
+ required: false
453
+ }]
454
+ }],
455
+ menuAriaLabel: [{
456
+ type: i0.Input,
457
+ args: [{
458
+ isSignal: true,
459
+ alias: "menuAriaLabel",
460
+ required: false
461
+ }]
462
+ }],
463
+ menuLevel: [{
464
+ type: i0.Input,
465
+ args: [{
466
+ isSignal: true,
467
+ alias: "menuLevel",
468
+ required: false
469
+ }]
470
+ }],
471
+ menuStyleClass: [{
472
+ type: i0.Input,
473
+ args: [{
474
+ isSignal: true,
475
+ alias: "menuStyleClass",
476
+ required: false
477
+ }]
478
+ }],
479
+ autoFlip: [{
480
+ type: i0.Input,
481
+ args: [{
482
+ isSignal: true,
483
+ alias: "autoFlip",
484
+ required: false
485
+ }]
486
+ }],
487
+ motion: [{
488
+ type: i0.Input,
489
+ args: [{
490
+ isSignal: true,
491
+ alias: "motion",
492
+ required: false
493
+ }]
494
+ }],
495
+ tabindex: [{
496
+ type: i0.Input,
497
+ args: [{
498
+ isSignal: true,
499
+ alias: "tabindex",
500
+ required: false
501
+ }]
502
+ }],
503
+ buttonProps: [{
504
+ type: i0.Input,
505
+ args: [{
506
+ isSignal: true,
507
+ alias: "buttonProps",
508
+ required: false
509
+ }]
510
+ }],
511
+ buttonClick: [{
512
+ type: i0.Output,
513
+ args: ["buttonClick"]
514
+ }],
515
+ dropdownClick: [{
516
+ type: i0.Output,
517
+ args: ["dropdownClick"]
518
+ }],
519
+ menuShow: [{
520
+ type: i0.Output,
521
+ args: ["menuShow"]
522
+ }],
523
+ menuHide: [{
524
+ type: i0.Output,
525
+ args: ["menuHide"]
526
+ }],
527
+ itemClick: [{
528
+ type: i0.Output,
529
+ args: ["itemClick"]
530
+ }],
531
+ actionButton: [{
532
+ type: i0.ViewChild,
533
+ args: ["action", { isSignal: true }]
534
+ }],
535
+ menu: [{
536
+ type: i0.ViewChild,
537
+ args: ["menu", { isSignal: true }]
538
+ }]
539
+ }
540
+ });
150
541
  export { UiButtonSplit };
151
- //# sourceMappingURL=4sh-ui-kit-actions-ui-button-split.mjs.map
542
+
543
+ //# sourceMappingURL=4sh-ui-kit-actions-ui-button-split.mjs.map