yukit-web 0.10.5 → 0.10.7

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 (190) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24457 -9655
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/types/yukit-web-chart.d.ts +184 -125
  129. package/types/yukit-web-helm-accordion.d.ts +49 -28
  130. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  131. package/types/yukit-web-helm-alert.d.ts +30 -32
  132. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  133. package/types/yukit-web-helm-attachment.d.ts +97 -69
  134. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  135. package/types/yukit-web-helm-avatar.d.ts +44 -39
  136. package/types/yukit-web-helm-badge.d.ts +18 -17
  137. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  138. package/types/yukit-web-helm-bubble.d.ts +54 -40
  139. package/types/yukit-web-helm-button-group.d.ts +29 -22
  140. package/types/yukit-web-helm-button.d.ts +41 -31
  141. package/types/yukit-web-helm-calendar.d.ts +157 -85
  142. package/types/yukit-web-helm-card.d.ts +38 -42
  143. package/types/yukit-web-helm-carousel.d.ts +105 -73
  144. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  145. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  146. package/types/yukit-web-helm-combobox.d.ts +355 -150
  147. package/types/yukit-web-helm-command.d.ts +140 -73
  148. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  149. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  150. package/types/yukit-web-helm-dialog.d.ts +106 -78
  151. package/types/yukit-web-helm-drawer.d.ts +90 -61
  152. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  153. package/types/yukit-web-helm-empty.d.ts +38 -42
  154. package/types/yukit-web-helm-field.d.ts +122 -91
  155. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  156. package/types/yukit-web-helm-input-group.d.ts +63 -41
  157. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  158. package/types/yukit-web-helm-input.d.ts +19 -12
  159. package/types/yukit-web-helm-item.d.ts +90 -82
  160. package/types/yukit-web-helm-kbd.d.ts +10 -15
  161. package/types/yukit-web-helm-label.d.ts +14 -11
  162. package/types/yukit-web-helm-marker.d.ts +26 -27
  163. package/types/yukit-web-helm-menubar.d.ts +61 -32
  164. package/types/yukit-web-helm-message.d.ts +34 -38
  165. package/types/yukit-web-helm-native-select.d.ts +102 -61
  166. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  167. package/types/yukit-web-helm-pagination.d.ts +344 -166
  168. package/types/yukit-web-helm-popover.d.ts +62 -42
  169. package/types/yukit-web-helm-progress.d.ts +27 -20
  170. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  171. package/types/yukit-web-helm-resizable.d.ts +46 -24
  172. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  173. package/types/yukit-web-helm-select.d.ts +231 -114
  174. package/types/yukit-web-helm-separator.d.ts +15 -12
  175. package/types/yukit-web-helm-sheet.d.ts +94 -65
  176. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  177. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  178. package/types/yukit-web-helm-slider.d.ts +33 -13
  179. package/types/yukit-web-helm-sonner.d.ts +112 -51
  180. package/types/yukit-web-helm-spinner.d.ts +24 -17
  181. package/types/yukit-web-helm-switch.d.ts +89 -51
  182. package/types/yukit-web-helm-table.d.ts +38 -42
  183. package/types/yukit-web-helm-tabs.d.ts +116 -60
  184. package/types/yukit-web-helm-textarea.d.ts +19 -12
  185. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  186. package/types/yukit-web-helm-toggle.d.ts +39 -21
  187. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  188. package/types/yukit-web-helm-typography.d.ts +62 -77
  189. package/types/yukit-web-helm-utils.d.ts +8 -11
  190. package/types/yukit-web.d.ts +5092 -2351
@@ -1,67 +1,116 @@
1
- import { Directionality } from '@angular/cdk/bidi';
2
- import * as i0 from '@angular/core';
3
- import { viewChild, inject, input, computed, signal, ChangeDetectionStrategy, Component, Directive, effect, untracked } from '@angular/core';
4
- import { classes, hlm } from 'yukit-web/helm/utils';
5
- import { EmblaCarouselDirective } from 'embla-carousel-angular';
6
- import { NgIcon, provideIcons } from '@ng-icons/core';
7
- import { lucideArrowRight, lucideArrowLeft } from '@ng-icons/lucide';
8
- import * as i1 from 'yukit-web/helm/button';
9
- import { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';
10
-
11
- class HlmCarousel {
12
- constructor() {
13
- this._emblaCarousel = viewChild.required(EmblaCarouselDirective);
14
- this._dir = inject(Directionality);
15
- this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
16
- this.options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
17
- this.plugins = input([], ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
18
- this._emblaOptions = computed(() => ({
19
- // Default embla's direction to the ambient layout direction so the carousel scrolls RTL
20
- // automatically; an explicit `direction` in `options` still wins.
21
- direction: this._dir.valueSignal(),
22
- ...this.options(),
23
- axis: this.orientation() === 'horizontal' ? 'x' : 'y',
24
- }), ...(ngDevMode ? [{ debugName: "_emblaOptions" }] : /* istanbul ignore next */ []));
25
- this._canScrollPrev = signal(false, ...(ngDevMode ? [{ debugName: "_canScrollPrev" }] : /* istanbul ignore next */ []));
26
- this.canScrollPrev = this._canScrollPrev.asReadonly();
27
- this._canScrollNext = signal(false, ...(ngDevMode ? [{ debugName: "_canScrollNext" }] : /* istanbul ignore next */ []));
28
- this.canScrollNext = this._canScrollNext.asReadonly();
29
- this._currentSlide = signal(0, ...(ngDevMode ? [{ debugName: "_currentSlide" }] : /* istanbul ignore next */ []));
30
- this.currentSlide = this._currentSlide.asReadonly();
31
- this._slideCount = signal(0, ...(ngDevMode ? [{ debugName: "_slideCount" }] : /* istanbul ignore next */ []));
32
- this.slideCount = this._slideCount.asReadonly();
33
- classes(() => 'relative');
34
- }
35
- onEmblaEvent(event) {
36
- const emblaApi = this._emblaCarousel().emblaApi;
37
- if (!emblaApi) {
38
- return;
39
- }
40
- if (event === 'select' || event === 'init' || event === 'reInit') {
41
- this._canScrollPrev.set(emblaApi.canScrollPrev());
42
- this._canScrollNext.set(emblaApi.canScrollNext());
43
- this._currentSlide.set(emblaApi.selectedScrollSnap());
44
- this._slideCount.set(emblaApi.scrollSnapList().length);
45
- }
46
- }
47
- onKeydown(event) {
48
- if (event.key === 'ArrowLeft') {
49
- event.preventDefault();
50
- this._emblaCarousel().scrollPrev();
51
- }
52
- else if (event.key === 'ArrowRight') {
53
- event.preventDefault();
54
- this._emblaCarousel().scrollNext();
55
- }
56
- }
57
- scrollPrev() {
58
- this._emblaCarousel().scrollPrev();
59
- }
60
- scrollNext() {
61
- this._emblaCarousel().scrollNext();
62
- }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarousel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: HlmCarousel, isStandalone: true, selector: "hlm-carousel", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "carousel", "role": "region", "aria-roledescription": "carousel" }, listeners: { "keydown": "onKeydown($event)" } }, viewQueries: [{ propertyName: "_emblaCarousel", first: true, predicate: EmblaCarouselDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
1
+ import { Directionality } from "@angular/cdk/bidi";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, Directive, computed, effect, inject, input, signal, untracked, viewChild } from "@angular/core";
4
+ import { classes, hlm } from "yukit-web/helm/utils";
5
+ import { EmblaCarouselDirective } from "embla-carousel-angular";
6
+ import { NgIcon, provideIcons } from "@ng-icons/core";
7
+ import { lucideArrowLeft, lucideArrowRight } from "@ng-icons/lucide";
8
+ import * as i1 from "yukit-web/helm/button";
9
+ import { HlmButton, provideBrnButtonConfig } from "yukit-web/helm/button";
10
+ var HlmCarousel = class HlmCarousel {
11
+ constructor() {
12
+ this._emblaCarousel = viewChild.required(EmblaCarouselDirective, ...ngDevMode ? [{ debugName: "_emblaCarousel" }] : /* istanbul ignore next */ []);
13
+ this._dir = inject(Directionality);
14
+ this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
15
+ this.options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
16
+ this.plugins = input([], ...ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []);
17
+ this._emblaOptions = computed(() => ({
18
+ direction: this._dir.valueSignal(),
19
+ ...this.options(),
20
+ axis: this.orientation() === "horizontal" ? "x" : "y"
21
+ }), ...ngDevMode ? [{ debugName: "_emblaOptions" }] : /* istanbul ignore next */ []);
22
+ this._canScrollPrev = signal(false, ...ngDevMode ? [{ debugName: "_canScrollPrev" }] : /* istanbul ignore next */ []);
23
+ this.canScrollPrev = this._canScrollPrev.asReadonly();
24
+ this._canScrollNext = signal(false, ...ngDevMode ? [{ debugName: "_canScrollNext" }] : /* istanbul ignore next */ []);
25
+ this.canScrollNext = this._canScrollNext.asReadonly();
26
+ this._currentSlide = signal(0, ...ngDevMode ? [{ debugName: "_currentSlide" }] : /* istanbul ignore next */ []);
27
+ this.currentSlide = this._currentSlide.asReadonly();
28
+ this._slideCount = signal(0, ...ngDevMode ? [{ debugName: "_slideCount" }] : /* istanbul ignore next */ []);
29
+ this.slideCount = this._slideCount.asReadonly();
30
+ classes(() => "relative");
31
+ }
32
+ onEmblaEvent(event) {
33
+ const emblaApi = this._emblaCarousel().emblaApi;
34
+ if (!emblaApi) return;
35
+ if (event === "select" || event === "init" || event === "reInit") {
36
+ this._canScrollPrev.set(emblaApi.canScrollPrev());
37
+ this._canScrollNext.set(emblaApi.canScrollNext());
38
+ this._currentSlide.set(emblaApi.selectedScrollSnap());
39
+ this._slideCount.set(emblaApi.scrollSnapList().length);
40
+ }
41
+ }
42
+ onKeydown(event) {
43
+ if (event.key === "ArrowLeft") {
44
+ event.preventDefault();
45
+ this._emblaCarousel().scrollPrev();
46
+ } else if (event.key === "ArrowRight") {
47
+ event.preventDefault();
48
+ this._emblaCarousel().scrollNext();
49
+ }
50
+ }
51
+ scrollPrev() {
52
+ this._emblaCarousel().scrollPrev();
53
+ }
54
+ scrollNext() {
55
+ this._emblaCarousel().scrollNext();
56
+ }
57
+ static {
58
+ this.ɵfac = i0.ɵɵngDeclareFactory({
59
+ minVersion: "12.0.0",
60
+ version: "22.2.4",
61
+ ngImport: i0,
62
+ type: HlmCarousel,
63
+ deps: [],
64
+ target: i0.ɵɵFactoryTarget.Component
65
+ });
66
+ }
67
+ static {
68
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
69
+ minVersion: "17.2.0",
70
+ version: "22.2.4",
71
+ type: HlmCarousel,
72
+ isStandalone: true,
73
+ selector: "hlm-carousel",
74
+ inputs: {
75
+ orientation: {
76
+ classPropertyName: "orientation",
77
+ publicName: "orientation",
78
+ isSignal: true,
79
+ isRequired: false,
80
+ transformFunction: null
81
+ },
82
+ options: {
83
+ classPropertyName: "options",
84
+ publicName: "options",
85
+ isSignal: true,
86
+ isRequired: false,
87
+ transformFunction: null
88
+ },
89
+ plugins: {
90
+ classPropertyName: "plugins",
91
+ publicName: "plugins",
92
+ isSignal: true,
93
+ isRequired: false,
94
+ transformFunction: null
95
+ }
96
+ },
97
+ host: {
98
+ attributes: {
99
+ "data-slot": "carousel",
100
+ "role": "region",
101
+ "aria-roledescription": "carousel"
102
+ },
103
+ listeners: { "keydown": "onKeydown($event)" }
104
+ },
105
+ viewQueries: [{
106
+ propertyName: "_emblaCarousel",
107
+ first: true,
108
+ predicate: EmblaCarouselDirective,
109
+ descendants: true,
110
+ isSignal: true
111
+ }],
112
+ ngImport: i0,
113
+ template: `
65
114
  <div
66
115
  emblaCarousel
67
116
  class="overflow-hidden"
@@ -73,21 +122,43 @@ class HlmCarousel {
73
122
  <ng-content select="[hlmCarouselContent],hlm-carousel-content" />
74
123
  </div>
75
124
  <ng-content />
76
- `, isInline: true, dependencies: [{ kind: "directive", type: EmblaCarouselDirective, selector: "[emblaCarousel]", inputs: ["options", "plugins", "subscribeToEvents", "eventsThrottleTime"], outputs: ["emblaChange"], exportAs: ["emblaCarousel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
77
- }
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarousel, decorators: [{
79
- type: Component,
80
- args: [{
81
- selector: 'hlm-carousel',
82
- imports: [EmblaCarouselDirective],
83
- changeDetection: ChangeDetectionStrategy.OnPush,
84
- host: {
85
- 'data-slot': 'carousel',
86
- role: 'region',
87
- 'aria-roledescription': 'carousel',
88
- '(keydown)': 'onKeydown($event)',
89
- },
90
- template: `
125
+ `,
126
+ isInline: true,
127
+ dependencies: [{
128
+ kind: "directive",
129
+ type: EmblaCarouselDirective,
130
+ selector: "[emblaCarousel]",
131
+ inputs: [
132
+ "options",
133
+ "plugins",
134
+ "subscribeToEvents",
135
+ "eventsThrottleTime"
136
+ ],
137
+ outputs: ["emblaChange"],
138
+ exportAs: ["emblaCarousel"]
139
+ }],
140
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
141
+ });
142
+ }
143
+ };
144
+ i0.ɵɵngDeclareClassMetadata({
145
+ minVersion: "12.0.0",
146
+ version: "22.2.4",
147
+ ngImport: i0,
148
+ type: HlmCarousel,
149
+ decorators: [{
150
+ type: Component,
151
+ args: [{
152
+ selector: "hlm-carousel",
153
+ imports: [EmblaCarouselDirective],
154
+ changeDetection: ChangeDetectionStrategy.OnPush,
155
+ host: {
156
+ "data-slot": "carousel",
157
+ role: "region",
158
+ "aria-roledescription": "carousel",
159
+ "(keydown)": "onKeydown($event)"
160
+ },
161
+ template: `
91
162
  <div
92
163
  emblaCarousel
93
164
  class="overflow-hidden"
@@ -99,172 +170,431 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
99
170
  <ng-content select="[hlmCarouselContent],hlm-carousel-content" />
100
171
  </div>
101
172
  <ng-content />
102
- `,
103
- }]
104
- }], ctorParameters: () => [], propDecorators: { _emblaCarousel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => EmblaCarouselDirective), { isSignal: true }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }] } });
105
-
106
- class HlmCarouselContent {
107
- constructor() {
108
- this._orientation = inject(HlmCarousel).orientation;
109
- classes(() => ['flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col']);
110
- }
111
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
112
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCarouselContent, isStandalone: true, selector: "[hlmCarouselContent],hlm-carousel-content", host: { attributes: { "data-slot": "carousel-content" } }, ngImport: i0 }); }
113
- }
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselContent, decorators: [{
115
- type: Directive,
116
- args: [{
117
- selector: '[hlmCarouselContent],hlm-carousel-content',
118
- host: {
119
- 'data-slot': 'carousel-content',
120
- },
121
- }]
122
- }], ctorParameters: () => [] });
123
-
124
- class HlmCarouselItem {
125
- constructor() {
126
- this._orientation = inject(HlmCarousel).orientation;
127
- classes(() => ['min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4']);
128
- }
129
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
130
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCarouselItem, isStandalone: true, selector: "[hlmCarouselItem],hlm-carousel-item", host: { attributes: { "data-slot": "carousel-item", "role": "group", "aria-roledescription": "slide" } }, ngImport: i0 }); }
131
- }
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselItem, decorators: [{
133
- type: Directive,
134
- args: [{
135
- selector: '[hlmCarouselItem],hlm-carousel-item',
136
- host: {
137
- 'data-slot': 'carousel-item',
138
- role: 'group',
139
- 'aria-roledescription': 'slide',
140
- },
141
- }]
142
- }], ctorParameters: () => [] });
143
-
144
- class HlmCarouselNext {
145
- constructor() {
146
- this._button = inject(HlmButton);
147
- this._carousel = inject(HlmCarousel);
148
- this._computedClass = computed(() => hlm('rounded-full absolute h-8 w-8', this._carousel.orientation() === 'horizontal'
149
- ? '-end-12 top-1/2 -translate-y-1/2'
150
- : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90'), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
151
- this.isDisabled = () => !this._carousel.canScrollNext();
152
- effect(() => {
153
- const computedClass = this._computedClass();
154
- untracked(() => this._button.setClass(computedClass));
155
- });
156
- }
157
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselNext, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
158
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HlmCarouselNext, isStandalone: true, selector: "button[hlm-carousel-next], button[hlmCarouselNext]", host: { attributes: { "data-slot": "carousel-next" }, listeners: { "click": "_carousel.scrollNext()" }, properties: { "disabled": "isDisabled()" } }, providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })], hostDirectives: [{ directive: i1.HlmButton, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0, template: `
173
+ `
174
+ }]
175
+ }],
176
+ ctorParameters: () => [],
177
+ propDecorators: {
178
+ _emblaCarousel: [{
179
+ type: i0.ViewChild,
180
+ args: [i0.forwardRef(() => EmblaCarouselDirective), { isSignal: true }]
181
+ }],
182
+ orientation: [{
183
+ type: i0.Input,
184
+ args: [{
185
+ isSignal: true,
186
+ alias: "orientation",
187
+ required: false
188
+ }]
189
+ }],
190
+ options: [{
191
+ type: i0.Input,
192
+ args: [{
193
+ isSignal: true,
194
+ alias: "options",
195
+ required: false
196
+ }]
197
+ }],
198
+ plugins: [{
199
+ type: i0.Input,
200
+ args: [{
201
+ isSignal: true,
202
+ alias: "plugins",
203
+ required: false
204
+ }]
205
+ }]
206
+ }
207
+ });
208
+ var HlmCarouselContent = class HlmCarouselContent {
209
+ constructor() {
210
+ this._orientation = inject(HlmCarousel).orientation;
211
+ classes(() => ["flex", this._orientation() === "horizontal" ? "-ml-4" : "-mt-4 flex-col"]);
212
+ }
213
+ static {
214
+ this.ɵfac = i0.ɵɵngDeclareFactory({
215
+ minVersion: "12.0.0",
216
+ version: "22.2.4",
217
+ ngImport: i0,
218
+ type: HlmCarouselContent,
219
+ deps: [],
220
+ target: i0.ɵɵFactoryTarget.Directive
221
+ });
222
+ }
223
+ static {
224
+ this.ɵdir = i0.ɵɵngDeclareDirective({
225
+ minVersion: "14.0.0",
226
+ version: "22.2.4",
227
+ type: HlmCarouselContent,
228
+ isStandalone: true,
229
+ selector: "[hlmCarouselContent],hlm-carousel-content",
230
+ host: { attributes: { "data-slot": "carousel-content" } },
231
+ ngImport: i0
232
+ });
233
+ }
234
+ };
235
+ i0.ɵɵngDeclareClassMetadata({
236
+ minVersion: "12.0.0",
237
+ version: "22.2.4",
238
+ ngImport: i0,
239
+ type: HlmCarouselContent,
240
+ decorators: [{
241
+ type: Directive,
242
+ args: [{
243
+ selector: "[hlmCarouselContent],hlm-carousel-content",
244
+ host: { "data-slot": "carousel-content" }
245
+ }]
246
+ }],
247
+ ctorParameters: () => []
248
+ });
249
+ var HlmCarouselItem = class HlmCarouselItem {
250
+ constructor() {
251
+ this._orientation = inject(HlmCarousel).orientation;
252
+ classes(() => ["min-w-0 shrink-0 grow-0 basis-full", this._orientation() === "horizontal" ? "pl-4" : "pt-4"]);
253
+ }
254
+ static {
255
+ this.ɵfac = i0.ɵɵngDeclareFactory({
256
+ minVersion: "12.0.0",
257
+ version: "22.2.4",
258
+ ngImport: i0,
259
+ type: HlmCarouselItem,
260
+ deps: [],
261
+ target: i0.ɵɵFactoryTarget.Directive
262
+ });
263
+ }
264
+ static {
265
+ this.ɵdir = i0.ɵɵngDeclareDirective({
266
+ minVersion: "14.0.0",
267
+ version: "22.2.4",
268
+ type: HlmCarouselItem,
269
+ isStandalone: true,
270
+ selector: "[hlmCarouselItem],hlm-carousel-item",
271
+ host: { attributes: {
272
+ "data-slot": "carousel-item",
273
+ "role": "group",
274
+ "aria-roledescription": "slide"
275
+ } },
276
+ ngImport: i0
277
+ });
278
+ }
279
+ };
280
+ i0.ɵɵngDeclareClassMetadata({
281
+ minVersion: "12.0.0",
282
+ version: "22.2.4",
283
+ ngImport: i0,
284
+ type: HlmCarouselItem,
285
+ decorators: [{
286
+ type: Directive,
287
+ args: [{
288
+ selector: "[hlmCarouselItem],hlm-carousel-item",
289
+ host: {
290
+ "data-slot": "carousel-item",
291
+ role: "group",
292
+ "aria-roledescription": "slide"
293
+ }
294
+ }]
295
+ }],
296
+ ctorParameters: () => []
297
+ });
298
+ var HlmCarouselNext = class HlmCarouselNext {
299
+ constructor() {
300
+ this._button = inject(HlmButton);
301
+ this._carousel = inject(HlmCarousel);
302
+ this._computedClass = computed(() => hlm("rounded-full absolute h-8 w-8", this._carousel.orientation() === "horizontal" ? "-end-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90"), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
303
+ this.isDisabled = () => !this._carousel.canScrollNext();
304
+ effect(() => {
305
+ const computedClass = this._computedClass();
306
+ untracked(() => this._button.setClass(computedClass));
307
+ });
308
+ }
309
+ static {
310
+ this.ɵfac = i0.ɵɵngDeclareFactory({
311
+ minVersion: "12.0.0",
312
+ version: "22.2.4",
313
+ ngImport: i0,
314
+ type: HlmCarouselNext,
315
+ deps: [],
316
+ target: i0.ɵɵFactoryTarget.Component
317
+ });
318
+ }
319
+ static {
320
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
321
+ minVersion: "14.0.0",
322
+ version: "22.2.4",
323
+ type: HlmCarouselNext,
324
+ isStandalone: true,
325
+ selector: "button[hlm-carousel-next], button[hlmCarouselNext]",
326
+ host: {
327
+ attributes: { "data-slot": "carousel-next" },
328
+ listeners: { "click": "_carousel.scrollNext()" },
329
+ properties: { "disabled": "isDisabled()" }
330
+ },
331
+ providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({
332
+ variant: "outline",
333
+ size: "icon-sm"
334
+ })],
335
+ hostDirectives: [{
336
+ directive: i1.HlmButton,
337
+ inputs: [
338
+ "variant",
339
+ "variant",
340
+ "size",
341
+ "size"
342
+ ]
343
+ }],
344
+ ngImport: i0,
345
+ template: `
159
346
  <ng-icon name="lucideArrowRight" class="rtl:rotate-180" />
160
347
  <span class="sr-only">Next slide</span>
161
- `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
162
- }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselNext, decorators: [{
164
- type: Component,
165
- args: [{
166
- selector: 'button[hlm-carousel-next], button[hlmCarouselNext]',
167
- imports: [NgIcon],
168
- providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],
169
- changeDetection: ChangeDetectionStrategy.OnPush,
170
- hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
171
- host: {
172
- 'data-slot': 'carousel-next',
173
- '[disabled]': 'isDisabled()',
174
- '(click)': '_carousel.scrollNext()',
175
- },
176
- template: `
348
+ `,
349
+ isInline: true,
350
+ dependencies: [{
351
+ kind: "component",
352
+ type: NgIcon,
353
+ selector: "ng-icon",
354
+ inputs: [
355
+ "name",
356
+ "svg",
357
+ "size",
358
+ "strokeWidth",
359
+ "color"
360
+ ]
361
+ }],
362
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
363
+ });
364
+ }
365
+ };
366
+ i0.ɵɵngDeclareClassMetadata({
367
+ minVersion: "12.0.0",
368
+ version: "22.2.4",
369
+ ngImport: i0,
370
+ type: HlmCarouselNext,
371
+ decorators: [{
372
+ type: Component,
373
+ args: [{
374
+ selector: "button[hlm-carousel-next], button[hlmCarouselNext]",
375
+ imports: [NgIcon],
376
+ providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({
377
+ variant: "outline",
378
+ size: "icon-sm"
379
+ })],
380
+ changeDetection: ChangeDetectionStrategy.OnPush,
381
+ hostDirectives: [{
382
+ directive: HlmButton,
383
+ inputs: ["variant", "size"]
384
+ }],
385
+ host: {
386
+ "data-slot": "carousel-next",
387
+ "[disabled]": "isDisabled()",
388
+ "(click)": "_carousel.scrollNext()"
389
+ },
390
+ template: `
177
391
  <ng-icon name="lucideArrowRight" class="rtl:rotate-180" />
178
392
  <span class="sr-only">Next slide</span>
179
- `,
180
- }]
181
- }], ctorParameters: () => [] });
182
-
183
- class HlmCarouselPrevious {
184
- constructor() {
185
- this._button = inject(HlmButton);
186
- this._carousel = inject(HlmCarousel);
187
- this._computedClass = computed(() => hlm('rounded-full absolute h-8 w-8', this._carousel.orientation() === 'horizontal'
188
- ? '-start-12 top-1/2 -translate-y-1/2'
189
- : '-top-12 left-1/2 -translate-x-1/2 rotate-90'), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
190
- this.isDisabled = () => !this._carousel.canScrollPrev();
191
- effect(() => {
192
- const computedClass = this._computedClass();
193
- untracked(() => this._button.setClass(computedClass));
194
- });
195
- }
196
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselPrevious, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
197
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HlmCarouselPrevious, isStandalone: true, selector: "button[hlm-carousel-previous], button[hlmCarouselPrevious]", host: { attributes: { "data-slot": "carousel-previous" }, listeners: { "click": "_carousel.scrollPrev()" }, properties: { "disabled": "isDisabled()" } }, providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })], hostDirectives: [{ directive: i1.HlmButton, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0, template: `
393
+ `
394
+ }]
395
+ }],
396
+ ctorParameters: () => []
397
+ });
398
+ var HlmCarouselPrevious = class HlmCarouselPrevious {
399
+ constructor() {
400
+ this._button = inject(HlmButton);
401
+ this._carousel = inject(HlmCarousel);
402
+ this._computedClass = computed(() => hlm("rounded-full absolute h-8 w-8", this._carousel.orientation() === "horizontal" ? "-start-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90"), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
403
+ this.isDisabled = () => !this._carousel.canScrollPrev();
404
+ effect(() => {
405
+ const computedClass = this._computedClass();
406
+ untracked(() => this._button.setClass(computedClass));
407
+ });
408
+ }
409
+ static {
410
+ this.ɵfac = i0.ɵɵngDeclareFactory({
411
+ minVersion: "12.0.0",
412
+ version: "22.2.4",
413
+ ngImport: i0,
414
+ type: HlmCarouselPrevious,
415
+ deps: [],
416
+ target: i0.ɵɵFactoryTarget.Component
417
+ });
418
+ }
419
+ static {
420
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
421
+ minVersion: "14.0.0",
422
+ version: "22.2.4",
423
+ type: HlmCarouselPrevious,
424
+ isStandalone: true,
425
+ selector: "button[hlm-carousel-previous], button[hlmCarouselPrevious]",
426
+ host: {
427
+ attributes: { "data-slot": "carousel-previous" },
428
+ listeners: { "click": "_carousel.scrollPrev()" },
429
+ properties: { "disabled": "isDisabled()" }
430
+ },
431
+ providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({
432
+ variant: "outline",
433
+ size: "icon-sm"
434
+ })],
435
+ hostDirectives: [{
436
+ directive: i1.HlmButton,
437
+ inputs: [
438
+ "variant",
439
+ "variant",
440
+ "size",
441
+ "size"
442
+ ]
443
+ }],
444
+ ngImport: i0,
445
+ template: `
198
446
  <ng-icon name="lucideArrowLeft" class="rtl:rotate-180" />
199
447
  <span class="sr-only">Previous slide</span>
200
- `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
201
- }
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselPrevious, decorators: [{
203
- type: Component,
204
- args: [{
205
- selector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',
206
- imports: [NgIcon],
207
- providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],
208
- changeDetection: ChangeDetectionStrategy.OnPush,
209
- hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
210
- host: {
211
- 'data-slot': 'carousel-previous',
212
- '[disabled]': 'isDisabled()',
213
- '(click)': '_carousel.scrollPrev()',
214
- },
215
- template: `
448
+ `,
449
+ isInline: true,
450
+ dependencies: [{
451
+ kind: "component",
452
+ type: NgIcon,
453
+ selector: "ng-icon",
454
+ inputs: [
455
+ "name",
456
+ "svg",
457
+ "size",
458
+ "strokeWidth",
459
+ "color"
460
+ ]
461
+ }],
462
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
463
+ });
464
+ }
465
+ };
466
+ i0.ɵɵngDeclareClassMetadata({
467
+ minVersion: "12.0.0",
468
+ version: "22.2.4",
469
+ ngImport: i0,
470
+ type: HlmCarouselPrevious,
471
+ decorators: [{
472
+ type: Component,
473
+ args: [{
474
+ selector: "button[hlm-carousel-previous], button[hlmCarouselPrevious]",
475
+ imports: [NgIcon],
476
+ providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({
477
+ variant: "outline",
478
+ size: "icon-sm"
479
+ })],
480
+ changeDetection: ChangeDetectionStrategy.OnPush,
481
+ hostDirectives: [{
482
+ directive: HlmButton,
483
+ inputs: ["variant", "size"]
484
+ }],
485
+ host: {
486
+ "data-slot": "carousel-previous",
487
+ "[disabled]": "isDisabled()",
488
+ "(click)": "_carousel.scrollPrev()"
489
+ },
490
+ template: `
216
491
  <ng-icon name="lucideArrowLeft" class="rtl:rotate-180" />
217
492
  <span class="sr-only">Previous slide</span>
218
- `,
219
- }]
220
- }], ctorParameters: () => [] });
221
-
222
- class HlmCarouselSlideDisplay {
223
- constructor() {
224
- this._carousel = inject(HlmCarousel);
225
- this._currentSlide = computed(() => this._carousel.currentSlide() + 1, ...(ngDevMode ? [{ debugName: "_currentSlide" }] : /* istanbul ignore next */ []));
226
- this.slideClass = input('text-muted-foreground text-sm', ...(ngDevMode ? [{ debugName: "slideClass" }] : /* istanbul ignore next */ []));
227
- /** Screen reader only text for the slide display */
228
- this.label = input('Slide', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
229
- this._labelContent = computed(() => {
230
- const currentSlide = this._currentSlide();
231
- const slideCount = this._carousel.slideCount();
232
- return `${this.label()} ${currentSlide} of ${slideCount} is displayed`;
233
- }, ...(ngDevMode ? [{ debugName: "_labelContent" }] : /* istanbul ignore next */ []));
234
- }
235
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselSlideDisplay, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
236
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmCarouselSlideDisplay, isStandalone: true, selector: "hlm-carousel-slide-display", inputs: { slideClass: { classPropertyName: "slideClass", publicName: "slideClass", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "carousel-slide-display" } }, ngImport: i0, template: `
493
+ `
494
+ }]
495
+ }],
496
+ ctorParameters: () => []
497
+ });
498
+ var HlmCarouselSlideDisplay = class HlmCarouselSlideDisplay {
499
+ constructor() {
500
+ this._carousel = inject(HlmCarousel);
501
+ this._currentSlide = computed(() => this._carousel.currentSlide() + 1, ...ngDevMode ? [{ debugName: "_currentSlide" }] : /* istanbul ignore next */ []);
502
+ this.slideClass = input("text-muted-foreground text-sm", ...ngDevMode ? [{ debugName: "slideClass" }] : /* istanbul ignore next */ []);
503
+ this.label = input("Slide", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
504
+ this._labelContent = computed(() => {
505
+ const currentSlide = this._currentSlide();
506
+ const slideCount = this._carousel.slideCount();
507
+ return `${this.label()} ${currentSlide} of ${slideCount} is displayed`;
508
+ }, ...ngDevMode ? [{ debugName: "_labelContent" }] : /* istanbul ignore next */ []);
509
+ }
510
+ static {
511
+ this.ɵfac = i0.ɵɵngDeclareFactory({
512
+ minVersion: "12.0.0",
513
+ version: "22.2.4",
514
+ ngImport: i0,
515
+ type: HlmCarouselSlideDisplay,
516
+ deps: [],
517
+ target: i0.ɵɵFactoryTarget.Component
518
+ });
519
+ }
520
+ static {
521
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
522
+ minVersion: "17.1.0",
523
+ version: "22.2.4",
524
+ type: HlmCarouselSlideDisplay,
525
+ isStandalone: true,
526
+ selector: "hlm-carousel-slide-display",
527
+ inputs: {
528
+ slideClass: {
529
+ classPropertyName: "slideClass",
530
+ publicName: "slideClass",
531
+ isSignal: true,
532
+ isRequired: false,
533
+ transformFunction: null
534
+ },
535
+ label: {
536
+ classPropertyName: "label",
537
+ publicName: "label",
538
+ isSignal: true,
539
+ isRequired: false,
540
+ transformFunction: null
541
+ }
542
+ },
543
+ host: { attributes: { "data-slot": "carousel-slide-display" } },
544
+ ngImport: i0,
545
+ template: `
237
546
  <span class="sr-only">{{ _labelContent() }}</span>
238
547
  <div aria-hidden="true" [class]="slideClass()">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>
239
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
240
- }
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselSlideDisplay, decorators: [{
242
- type: Component,
243
- args: [{
244
- selector: 'hlm-carousel-slide-display',
245
- changeDetection: ChangeDetectionStrategy.OnPush,
246
- host: {
247
- 'data-slot': 'carousel-slide-display',
248
- },
249
- template: `
548
+ `,
549
+ isInline: true,
550
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
551
+ });
552
+ }
553
+ };
554
+ i0.ɵɵngDeclareClassMetadata({
555
+ minVersion: "12.0.0",
556
+ version: "22.2.4",
557
+ ngImport: i0,
558
+ type: HlmCarouselSlideDisplay,
559
+ decorators: [{
560
+ type: Component,
561
+ args: [{
562
+ selector: "hlm-carousel-slide-display",
563
+ changeDetection: ChangeDetectionStrategy.OnPush,
564
+ host: { "data-slot": "carousel-slide-display" },
565
+ template: `
250
566
  <span class="sr-only">{{ _labelContent() }}</span>
251
567
  <div aria-hidden="true" [class]="slideClass()">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>
252
- `,
253
- }]
254
- }], propDecorators: { slideClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideClass", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
255
-
568
+ `
569
+ }]
570
+ }],
571
+ propDecorators: {
572
+ slideClass: [{
573
+ type: i0.Input,
574
+ args: [{
575
+ isSignal: true,
576
+ alias: "slideClass",
577
+ required: false
578
+ }]
579
+ }],
580
+ label: [{
581
+ type: i0.Input,
582
+ args: [{
583
+ isSignal: true,
584
+ alias: "label",
585
+ required: false
586
+ }]
587
+ }]
588
+ }
589
+ });
256
590
  const HlmCarouselImports = [
257
- HlmCarousel,
258
- HlmCarouselContent,
259
- HlmCarouselItem,
260
- HlmCarouselPrevious,
261
- HlmCarouselNext,
262
- HlmCarouselSlideDisplay,
591
+ HlmCarousel,
592
+ HlmCarouselContent,
593
+ HlmCarouselItem,
594
+ HlmCarouselPrevious,
595
+ HlmCarouselNext,
596
+ HlmCarouselSlideDisplay
263
597
  ];
264
-
265
- /**
266
- * Generated bundle index. Do not edit.
267
- */
268
-
269
598
  export { HlmCarousel, HlmCarouselContent, HlmCarouselImports, HlmCarouselItem, HlmCarouselNext, HlmCarouselPrevious, HlmCarouselSlideDisplay };
270
- //# sourceMappingURL=yukit-web-helm-carousel.mjs.map
599
+
600
+ //# sourceMappingURL=yukit-web-helm-carousel.mjs.map