yukit-web 0.0.11 → 0.0.13

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 (130) hide show
  1. package/.npm/_cacache/content-v2/sha512/03/98/70979fc359861d63479e1619d042ae426b2765f31a8af329a1f76a60cd26b0159ea29bb70209838d246dd6a0a5bafc6617f597733ccae24b8f25ae597d19 +1 -0
  2. package/.npm/_cacache/index-v5/64/dc/73c7a26f2e6eb0c711133d96c247da5ecf0eba708cd37c450a7b3c7cb488 +1 -1
  3. package/.npm/_logs/{2026-08-31T12_58_48_812Z-debug-0.log → 2026-09-03T11_06_22_047Z-debug-0.log} +10 -10
  4. package/.npm/_logs/{2026-08-31T12_58_49_377Z-debug-0.log → 2026-09-03T11_06_22_642Z-debug-0.log} +2 -2
  5. package/fesm2022/yukit-web-helm-accordion.mjs +12 -12
  6. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert-dialog.mjs +36 -36
  8. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-alert.mjs +12 -12
  10. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +3 -3
  12. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-attachment.mjs +27 -27
  14. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-autocomplete.mjs +36 -36
  16. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-avatar.mjs +18 -18
  18. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-badge.mjs +3 -3
  20. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-breadcrumb.mjs +21 -21
  22. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-bubble.mjs +12 -12
  24. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button-group.mjs +9 -9
  26. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-button.mjs +3 -3
  28. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-calendar.mjs +12 -12
  30. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-card.mjs +21 -21
  32. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-carousel.mjs +18 -18
  34. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-checkbox.mjs +3 -3
  36. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-collapsible.mjs +9 -9
  38. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-combobox.mjs +63 -63
  40. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-command.mjs +33 -33
  42. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-context-menu.mjs +3 -3
  44. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-date-picker.mjs +30 -30
  46. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-dialog.mjs +33 -33
  48. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-drawer.mjs +30 -30
  50. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +51 -51
  52. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-empty.mjs +18 -18
  54. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-field.mjs +30 -30
  56. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-hover-card.mjs +12 -12
  58. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-group.mjs +18 -18
  60. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input-otp.mjs +15 -15
  62. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-input.mjs +3 -3
  64. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-item.mjs +30 -30
  66. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-kbd.mjs +6 -6
  68. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-label.mjs +3 -3
  70. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-marker.mjs +9 -9
  72. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-menubar.mjs +6 -6
  74. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-message.mjs +18 -18
  76. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-native-select.mjs +9 -9
  78. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-navigation-menu.mjs +21 -21
  80. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-pagination.mjs +27 -27
  82. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-popover.mjs +21 -21
  84. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-progress.mjs +6 -6
  86. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-radio-group.mjs +9 -9
  88. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-resizable.mjs +9 -9
  90. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-scroll-area.mjs +3 -3
  92. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-select.mjs +48 -48
  94. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-separator.mjs +3 -3
  96. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sheet.mjs +30 -30
  98. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-sidebar.mjs +72 -72
  100. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-skeleton.mjs +3 -3
  102. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-slider.mjs +3 -3
  104. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-sonner.mjs +3 -3
  106. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-spinner.mjs +3 -3
  108. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-switch.mjs +6 -6
  110. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-table.mjs +27 -27
  112. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-tabs.mjs +18 -18
  114. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-textarea.mjs +3 -3
  116. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle-group.mjs +6 -6
  118. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-toggle.mjs +3 -3
  120. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-tooltip.mjs +3 -3
  122. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-typography.mjs +36 -36
  124. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  125. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  126. package/fesm2022/yukit-web.mjs +997 -910
  127. package/fesm2022/yukit-web.mjs.map +1 -1
  128. package/package.json +2 -2
  129. package/types/yukit-web.d.ts +315 -290
  130. package/.npm/_cacache/content-v2/sha512/91/84/7c92c9dd9c293aab175752ad46bf81644f183a08e6d676883687d9582b567e12d86c1a66d285eecd45ad523581dc28033a028ee028f51693fc126121d19f +0 -1
@@ -19,10 +19,10 @@ class HlmCard {
19
19
  this.size = input(this._defaultConfig.size, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
20
20
  classes(() => 'ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col');
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCard, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
23
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmCard, isStandalone: true, selector: "[hlmCard],hlm-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "card" }, properties: { "attr.data-size": "size()" } }, ngImport: i0 }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCard, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
23
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmCard, isStandalone: true, selector: "[hlmCard],hlm-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "card" }, properties: { "attr.data-size": "size()" } }, ngImport: i0 }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCard, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCard, decorators: [{
26
26
  type: Directive,
27
27
  args: [{
28
28
  selector: '[hlmCard],hlm-card',
@@ -37,10 +37,10 @@ class HlmCardAction {
37
37
  constructor() {
38
38
  classes(() => 'col-start-2 row-span-2 row-start-1 self-start justify-self-end');
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardAction, isStandalone: true, selector: "[hlmCardAction]", host: { attributes: { "data-slot": "card-action" } }, ngImport: i0 }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCardAction, isStandalone: true, selector: "[hlmCardAction]", host: { attributes: { "data-slot": "card-action" } }, ngImport: i0 }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardAction, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardAction, decorators: [{
44
44
  type: Directive,
45
45
  args: [{
46
46
  selector: '[hlmCardAction]',
@@ -52,10 +52,10 @@ class HlmCardContent {
52
52
  constructor() {
53
53
  classes(() => 'px-(--card-spacing)');
54
54
  }
55
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
56
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardContent, isStandalone: true, selector: "[hlmCardContent]", host: { attributes: { "data-slot": "card-content" } }, ngImport: i0 }); }
55
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
56
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCardContent, isStandalone: true, selector: "[hlmCardContent]", host: { attributes: { "data-slot": "card-content" } }, ngImport: i0 }); }
57
57
  }
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardContent, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardContent, decorators: [{
59
59
  type: Directive,
60
60
  args: [{
61
61
  selector: '[hlmCardContent]',
@@ -67,10 +67,10 @@ class HlmCardDescription {
67
67
  constructor() {
68
68
  classes(() => 'text-muted-foreground text-sm');
69
69
  }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
71
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardDescription, isStandalone: true, selector: "[hlmCardDescription]", host: { attributes: { "data-slot": "card-description" } }, ngImport: i0 }); }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
71
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCardDescription, isStandalone: true, selector: "[hlmCardDescription]", host: { attributes: { "data-slot": "card-description" } }, ngImport: i0 }); }
72
72
  }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardDescription, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardDescription, decorators: [{
74
74
  type: Directive,
75
75
  args: [{
76
76
  selector: '[hlmCardDescription]',
@@ -82,10 +82,10 @@ class HlmCardFooter {
82
82
  constructor() {
83
83
  classes(() => 'bg-muted/50 rounded-b-xl border-t p-(--card-spacing) flex items-center');
84
84
  }
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
86
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardFooter, isStandalone: true, selector: "[hlmCardFooter],hlm-card-footer", host: { attributes: { "data-slot": "card-footer" } }, ngImport: i0 }); }
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
86
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCardFooter, isStandalone: true, selector: "[hlmCardFooter],hlm-card-footer", host: { attributes: { "data-slot": "card-footer" } }, ngImport: i0 }); }
87
87
  }
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardFooter, decorators: [{
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardFooter, decorators: [{
89
89
  type: Directive,
90
90
  args: [{
91
91
  selector: '[hlmCardFooter],hlm-card-footer',
@@ -97,10 +97,10 @@ class HlmCardHeader {
97
97
  constructor() {
98
98
  classes(() => 'gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]');
99
99
  }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
101
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardHeader, isStandalone: true, selector: "[hlmCardHeader],hlm-card-header", host: { attributes: { "data-slot": "card-header" } }, ngImport: i0 }); }
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
101
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCardHeader, isStandalone: true, selector: "[hlmCardHeader],hlm-card-header", host: { attributes: { "data-slot": "card-header" } }, ngImport: i0 }); }
102
102
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardHeader, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardHeader, decorators: [{
104
104
  type: Directive,
105
105
  args: [{
106
106
  selector: '[hlmCardHeader],hlm-card-header',
@@ -112,10 +112,10 @@ class HlmCardTitle {
112
112
  constructor() {
113
113
  classes(() => 'text-base leading-snug font-medium group-data-[size=sm]/card:text-sm');
114
114
  }
115
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
116
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCardTitle, isStandalone: true, selector: "[hlmCardTitle]", host: { attributes: { "data-slot": "card-title" } }, ngImport: i0 }); }
115
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
116
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCardTitle, isStandalone: true, selector: "[hlmCardTitle]", host: { attributes: { "data-slot": "card-title" } }, ngImport: i0 }); }
117
117
  }
118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCardTitle, decorators: [{
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCardTitle, decorators: [{
119
119
  type: Directive,
120
120
  args: [{
121
121
  selector: '[hlmCardTitle]',
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-card.mjs","sources":["../../../projects/yukit-web/helm/card/src/lib/hlm-card.token.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-action.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-content.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-description.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-footer.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-header.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-title.ts","../../../projects/yukit-web/helm/card/src/index.ts","../../../projects/yukit-web/helm/card/src/yukit-web-helm-card.ts"],"sourcesContent":["import { inject, InjectionToken, type ValueProvider } from '@angular/core';\n\nexport type HlmCardConfig = {\n\tsize: 'sm' | 'default';\n};\n\nconst defaultConfig: HlmCardConfig = {\n\tsize: 'default',\n};\n\nconst HlmCardConfigToken = new InjectionToken<HlmCardConfig>('HlmCardConfig');\n\nexport function provideHlmCardConfig(config: Partial<HlmCardConfig>): ValueProvider {\n\treturn { provide: HlmCardConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectHlmCardConfig(): HlmCardConfig {\n\treturn inject(HlmCardConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCardConfig, injectHlmCardConfig } from './hlm-card.token';\n\n@Directive({\n\tselector: '[hlmCard],hlm-card',\n\thost: {\n\t\t'data-slot': 'card',\n\t\t'[attr.data-size]': 'size()',\n\t},\n})\nexport class HlmCard {\n\tprivate readonly _defaultConfig = injectHlmCardConfig();\n\tpublic readonly size = input<HlmCardConfig['size']>(this._defaultConfig.size);\n\n\tconstructor() {\n\t\tclasses(() => 'ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardAction]',\n\thost: { 'data-slot': 'card-action' },\n})\nexport class HlmCardAction {\n\tconstructor() {\n\t\tclasses(() => 'col-start-2 row-span-2 row-start-1 self-start justify-self-end');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardContent]',\n\thost: { 'data-slot': 'card-content' },\n})\nexport class HlmCardContent {\n\tconstructor() {\n\t\tclasses(() => 'px-(--card-spacing)');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardDescription]',\n\thost: { 'data-slot': 'card-description' },\n})\nexport class HlmCardDescription {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground text-sm');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardFooter],hlm-card-footer',\n\thost: { 'data-slot': 'card-footer' },\n})\nexport class HlmCardFooter {\n\tconstructor() {\n\t\tclasses(() => 'bg-muted/50 rounded-b-xl border-t p-(--card-spacing) flex items-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardHeader],hlm-card-header',\n\thost: { 'data-slot': 'card-header' },\n})\nexport class HlmCardHeader {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardTitle]',\n\thost: { 'data-slot': 'card-title' },\n})\nexport class HlmCardTitle {\n\tconstructor() {\n\t\tclasses(() => 'text-base leading-snug font-medium group-data-[size=sm]/card:text-sm');\n\t}\n}\n","import { HlmCard } from './lib/hlm-card';\nimport { HlmCardAction } from './lib/hlm-card-action';\nimport { HlmCardContent } from './lib/hlm-card-content';\nimport { HlmCardDescription } from './lib/hlm-card-description';\nimport { HlmCardFooter } from './lib/hlm-card-footer';\nimport { HlmCardHeader } from './lib/hlm-card-header';\nimport { HlmCardTitle } from './lib/hlm-card-title';\n\nexport * from './lib/hlm-card';\nexport * from './lib/hlm-card-action';\nexport * from './lib/hlm-card-content';\nexport * from './lib/hlm-card-description';\nexport * from './lib/hlm-card-footer';\nexport * from './lib/hlm-card-header';\nexport * from './lib/hlm-card-title';\n\nexport const HlmCardImports = [\n\tHlmCard,\n\tHlmCardAction,\n\tHlmCardContent,\n\tHlmCardDescription,\n\tHlmCardFooter,\n\tHlmCardHeader,\n\tHlmCardTitle,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMA,MAAM,aAAa,GAAkB;AACpC,IAAA,IAAI,EAAE,SAAS;CACf;AAED,MAAM,kBAAkB,GAAG,IAAI,cAAc,CAAgB,eAAe,CAAC;AAEvE,SAAU,oBAAoB,CAAC,MAA8B,EAAA;AAClE,IAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,GAAG,aAAa,EAAE,GAAG,MAAM,EAAE,EAAE;AAClF;SAEgB,mBAAmB,GAAA;AAClC,IAAA,OAAO,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,aAAa;AACvE;;MCPa,OAAO,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;kBAJzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iCAAiC;AAC3C,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;AACpC,iBAAA;;;MCCY,YAAY,CAAA;AACxB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,sEAAsE,CAAC;IACtF;8GAHY,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE;AACnC,iBAAA;;;ACUM,MAAM,cAAc,GAAG;IAC7B,OAAO;IACP,aAAa;IACb,cAAc;IACd,kBAAkB;IAClB,aAAa;IACb,aAAa;IACb,YAAY;;;ACvBb;;AAEG;;;;"}
1
+ {"version":3,"file":"yukit-web-helm-card.mjs","sources":["../../../projects/yukit-web/helm/card/src/lib/hlm-card.token.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-action.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-content.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-description.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-footer.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-header.ts","../../../projects/yukit-web/helm/card/src/lib/hlm-card-title.ts","../../../projects/yukit-web/helm/card/src/index.ts","../../../projects/yukit-web/helm/card/src/yukit-web-helm-card.ts"],"sourcesContent":["import { inject, InjectionToken, type ValueProvider } from '@angular/core';\n\nexport type HlmCardConfig = {\n\tsize: 'sm' | 'default';\n};\n\nconst defaultConfig: HlmCardConfig = {\n\tsize: 'default',\n};\n\nconst HlmCardConfigToken = new InjectionToken<HlmCardConfig>('HlmCardConfig');\n\nexport function provideHlmCardConfig(config: Partial<HlmCardConfig>): ValueProvider {\n\treturn { provide: HlmCardConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectHlmCardConfig(): HlmCardConfig {\n\treturn inject(HlmCardConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCardConfig, injectHlmCardConfig } from './hlm-card.token';\n\n@Directive({\n\tselector: '[hlmCard],hlm-card',\n\thost: {\n\t\t'data-slot': 'card',\n\t\t'[attr.data-size]': 'size()',\n\t},\n})\nexport class HlmCard {\n\tprivate readonly _defaultConfig = injectHlmCardConfig();\n\tpublic readonly size = input<HlmCardConfig['size']>(this._defaultConfig.size);\n\n\tconstructor() {\n\t\tclasses(() => 'ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardAction]',\n\thost: { 'data-slot': 'card-action' },\n})\nexport class HlmCardAction {\n\tconstructor() {\n\t\tclasses(() => 'col-start-2 row-span-2 row-start-1 self-start justify-self-end');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardContent]',\n\thost: { 'data-slot': 'card-content' },\n})\nexport class HlmCardContent {\n\tconstructor() {\n\t\tclasses(() => 'px-(--card-spacing)');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardDescription]',\n\thost: { 'data-slot': 'card-description' },\n})\nexport class HlmCardDescription {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground text-sm');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardFooter],hlm-card-footer',\n\thost: { 'data-slot': 'card-footer' },\n})\nexport class HlmCardFooter {\n\tconstructor() {\n\t\tclasses(() => 'bg-muted/50 rounded-b-xl border-t p-(--card-spacing) flex items-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardHeader],hlm-card-header',\n\thost: { 'data-slot': 'card-header' },\n})\nexport class HlmCardHeader {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCardTitle]',\n\thost: { 'data-slot': 'card-title' },\n})\nexport class HlmCardTitle {\n\tconstructor() {\n\t\tclasses(() => 'text-base leading-snug font-medium group-data-[size=sm]/card:text-sm');\n\t}\n}\n","import { HlmCard } from './lib/hlm-card';\nimport { HlmCardAction } from './lib/hlm-card-action';\nimport { HlmCardContent } from './lib/hlm-card-content';\nimport { HlmCardDescription } from './lib/hlm-card-description';\nimport { HlmCardFooter } from './lib/hlm-card-footer';\nimport { HlmCardHeader } from './lib/hlm-card-header';\nimport { HlmCardTitle } from './lib/hlm-card-title';\n\nexport * from './lib/hlm-card';\nexport * from './lib/hlm-card-action';\nexport * from './lib/hlm-card-content';\nexport * from './lib/hlm-card-description';\nexport * from './lib/hlm-card-footer';\nexport * from './lib/hlm-card-header';\nexport * from './lib/hlm-card-title';\n\nexport const HlmCardImports = [\n\tHlmCard,\n\tHlmCardAction,\n\tHlmCardContent,\n\tHlmCardDescription,\n\tHlmCardFooter,\n\tHlmCardHeader,\n\tHlmCardTitle,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMA,MAAM,aAAa,GAAkB;AACpC,IAAA,IAAI,EAAE,SAAS;CACf;AAED,MAAM,kBAAkB,GAAG,IAAI,cAAc,CAAgB,eAAe,CAAC;AAEvE,SAAU,oBAAoB,CAAC,MAA8B,EAAA;AAClE,IAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,GAAG,aAAa,EAAE,GAAG,MAAM,EAAE,EAAE;AAClF;SAEgB,mBAAmB,GAAA;AAClC,IAAA,OAAO,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,aAAa;AACvE;;MCPa,OAAO,CAAA;AAInB,IAAA,WAAA,GAAA;QAHiB,IAAA,CAAA,cAAc,GAAG,mBAAmB,EAAE;QACvC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAwB,IAAI,CAAC,cAAc,CAAC,IAAI,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AAG5E,QAAA,OAAO,CAAC,MAAM,sZAAsZ,CAAC;IACta;+GANY,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAP,OA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BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE;AACnC,iBAAA;;;ACUM,MAAM,cAAc,GAAG;IAC7B,OAAO;IACP,aAAa;IACb,cAAc;IACd,kBAAkB;IAClB,aAAa;IACb,aAAa;IACb,YAAY;;;ACvBb;;AAEG;;"}
@@ -60,8 +60,8 @@ class HlmCarousel {
60
60
  scrollNext() {
61
61
  this._emblaCarousel().scrollNext();
62
62
  }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarousel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.8", 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: `
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: `
65
65
  <div
66
66
  emblaCarousel
67
67
  class="overflow-hidden"
@@ -75,7 +75,7 @@ class HlmCarousel {
75
75
  <ng-content />
76
76
  `, isInline: true, dependencies: [{ kind: "directive", type: EmblaCarouselDirective, selector: "[emblaCarousel]", inputs: ["options", "plugins", "subscribeToEvents", "eventsThrottleTime"], outputs: ["emblaChange"], exportAs: ["emblaCarousel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
77
77
  }
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarousel, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarousel, decorators: [{
79
79
  type: Component,
80
80
  args: [{
81
81
  selector: 'hlm-carousel',
@@ -108,10 +108,10 @@ class HlmCarouselContent {
108
108
  this._orientation = inject(HlmCarousel).orientation;
109
109
  classes(() => ['flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col']);
110
110
  }
111
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
112
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCarouselContent, isStandalone: true, selector: "[hlmCarouselContent],hlm-carousel-content", host: { attributes: { "data-slot": "carousel-content" } }, ngImport: i0 }); }
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
113
  }
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselContent, decorators: [{
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselContent, decorators: [{
115
115
  type: Directive,
116
116
  args: [{
117
117
  selector: '[hlmCarouselContent],hlm-carousel-content',
@@ -126,10 +126,10 @@ class HlmCarouselItem {
126
126
  this._orientation = inject(HlmCarousel).orientation;
127
127
  classes(() => ['min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4']);
128
128
  }
129
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
130
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCarouselItem, isStandalone: true, selector: "[hlmCarouselItem],hlm-carousel-item", host: { attributes: { "data-slot": "carousel-item", "role": "group", "aria-roledescription": "slide" } }, ngImport: i0 }); }
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
131
  }
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselItem, decorators: [{
132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselItem, decorators: [{
133
133
  type: Directive,
134
134
  args: [{
135
135
  selector: '[hlmCarouselItem],hlm-carousel-item',
@@ -154,13 +154,13 @@ class HlmCarouselNext {
154
154
  untracked(() => this._button.setClass(computedClass));
155
155
  });
156
156
  }
157
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselNext, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
158
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", 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: `
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: `
159
159
  <ng-icon name="lucideArrowRight" class="rtl:rotate-180" />
160
160
  <span class="sr-only">Next slide</span>
161
161
  `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
162
162
  }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselNext, decorators: [{
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselNext, decorators: [{
164
164
  type: Component,
165
165
  args: [{
166
166
  selector: 'button[hlm-carousel-next], button[hlmCarouselNext]',
@@ -193,13 +193,13 @@ class HlmCarouselPrevious {
193
193
  untracked(() => this._button.setClass(computedClass));
194
194
  });
195
195
  }
196
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselPrevious, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
197
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", 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: `
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: `
198
198
  <ng-icon name="lucideArrowLeft" class="rtl:rotate-180" />
199
199
  <span class="sr-only">Previous slide</span>
200
200
  `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
201
201
  }
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselPrevious, decorators: [{
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselPrevious, decorators: [{
203
203
  type: Component,
204
204
  args: [{
205
205
  selector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',
@@ -232,13 +232,13 @@ class HlmCarouselSlideDisplay {
232
232
  return `${this.label()} ${currentSlide} of ${slideCount} is displayed`;
233
233
  }, ...(ngDevMode ? [{ debugName: "_labelContent" }] : /* istanbul ignore next */ []));
234
234
  }
235
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselSlideDisplay, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
236
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", 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: `
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: `
237
237
  <span class="sr-only">{{ _labelContent() }}</span>
238
238
  <div aria-hidden="true" [class]="slideClass()">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>
239
239
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
240
240
  }
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCarouselSlideDisplay, decorators: [{
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCarouselSlideDisplay, decorators: [{
242
242
  type: Component,
243
243
  args: [{
244
244
  selector: 'hlm-carousel-slide-display',
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-carousel.mjs","sources":["../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-content.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-item.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-next.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-previous.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-slide-display.ts","../../../projects/yukit-web/helm/carousel/src/index.ts","../../../projects/yukit-web/helm/carousel/src/yukit-web-helm-carousel.ts"],"sourcesContent":["import { Directionality } from '@angular/cdk/bidi';\nimport {\n\tChangeDetectionStrategy,\n\tComponent,\n\ttype InputSignal,\n\ttype Signal,\n\tcomputed,\n\tinject,\n\tinput,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport type { EmblaEventType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel';\nimport { EmblaCarouselDirective } from 'embla-carousel-angular';\n\n@Component({\n\tselector: 'hlm-carousel',\n\timports: [EmblaCarouselDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'carousel',\n\t\trole: 'region',\n\t\t'aria-roledescription': 'carousel',\n\t\t'(keydown)': 'onKeydown($event)',\n\t},\n\ttemplate: `\n\t\t<div\n\t\t\temblaCarousel\n\t\t\tclass=\"overflow-hidden\"\n\t\t\t[plugins]=\"plugins()\"\n\t\t\t[options]=\"_emblaOptions()\"\n\t\t\t[subscribeToEvents]=\"['init', 'select', 'reInit']\"\n\t\t\t(emblaChange)=\"onEmblaEvent($event)\"\n\t\t>\n\t\t\t<ng-content select=\"[hlmCarouselContent],hlm-carousel-content\" />\n\t\t</div>\n\t\t<ng-content />\n\t`,\n})\nexport class HlmCarousel {\n\tprotected readonly _emblaCarousel = viewChild.required(EmblaCarouselDirective);\n\tprivate readonly _dir = inject(Directionality);\n\n\tpublic readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\tpublic readonly options: InputSignal<Omit<EmblaOptionsType, 'axis'> | undefined> =\n\t\tinput<Omit<EmblaOptionsType, 'axis'>>();\n\tpublic readonly plugins: InputSignal<EmblaPluginType[]> = input<EmblaPluginType[]>([]);\n\n\tprotected readonly _emblaOptions: Signal<EmblaOptionsType> = computed(() => ({\n\t\t// Default embla's direction to the ambient layout direction so the carousel scrolls RTL\n\t\t// automatically; an explicit `direction` in `options` still wins.\n\t\tdirection: this._dir.valueSignal(),\n\t\t...this.options(),\n\t\taxis: this.orientation() === 'horizontal' ? 'x' : 'y',\n\t}));\n\n\tprivate readonly _canScrollPrev = signal(false);\n\tpublic readonly canScrollPrev = this._canScrollPrev.asReadonly();\n\tprivate readonly _canScrollNext = signal(false);\n\tpublic readonly canScrollNext = this._canScrollNext.asReadonly();\n\n\tprivate readonly _currentSlide = signal(0);\n\tpublic readonly currentSlide = this._currentSlide.asReadonly();\n\tprivate readonly _slideCount = signal(0);\n\tpublic readonly slideCount = this._slideCount.asReadonly();\n\n\tconstructor() {\n\t\tclasses(() => 'relative');\n\t}\n\n\tprotected onEmblaEvent(event: EmblaEventType) {\n\t\tconst emblaApi = this._emblaCarousel().emblaApi;\n\n\t\tif (!emblaApi) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (event === 'select' || event === 'init' || event === 'reInit') {\n\t\t\tthis._canScrollPrev.set(emblaApi.canScrollPrev());\n\t\t\tthis._canScrollNext.set(emblaApi.canScrollNext());\n\n\t\t\tthis._currentSlide.set(emblaApi.selectedScrollSnap());\n\t\t\tthis._slideCount.set(emblaApi.scrollSnapList().length);\n\t\t}\n\t}\n\n\tprotected onKeydown(event: KeyboardEvent) {\n\t\tif (event.key === 'ArrowLeft') {\n\t\t\tevent.preventDefault();\n\t\t\tthis._emblaCarousel().scrollPrev();\n\t\t} else if (event.key === 'ArrowRight') {\n\t\t\tevent.preventDefault();\n\t\t\tthis._emblaCarousel().scrollNext();\n\t\t}\n\t}\n\n\tscrollPrev() {\n\t\tthis._emblaCarousel().scrollPrev();\n\t}\n\n\tscrollNext() {\n\t\tthis._emblaCarousel().scrollNext();\n\t}\n}\n","import { Directive, inject } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Directive({\n\tselector: '[hlmCarouselContent],hlm-carousel-content',\n\thost: {\n\t\t'data-slot': 'carousel-content',\n\t},\n})\nexport class HlmCarouselContent {\n\tprivate readonly _orientation = inject(HlmCarousel).orientation;\n\n\tconstructor() {\n\t\tclasses(() => ['flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col']);\n\t}\n}\n","import { Directive, inject } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Directive({\n\tselector: '[hlmCarouselItem],hlm-carousel-item',\n\thost: {\n\t\t'data-slot': 'carousel-item',\n\t\trole: 'group',\n\t\t'aria-roledescription': 'slide',\n\t},\n})\nexport class HlmCarouselItem {\n\tprivate readonly _orientation = inject(HlmCarousel).orientation;\n\n\tconstructor() {\n\t\tclasses(() => ['min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4']);\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideArrowRight } from '@ng-icons/lucide';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'button[hlm-carousel-next], button[hlmCarouselNext]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: {\n\t\t'data-slot': 'carousel-next',\n\t\t'[disabled]': 'isDisabled()',\n\t\t'(click)': '_carousel.scrollNext()',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideArrowRight\" class=\"rtl:rotate-180\" />\n\t\t<span class=\"sr-only\">Next slide</span>\n\t`,\n})\nexport class HlmCarouselNext {\n\tprivate readonly _button = inject(HlmButton);\n\tprotected readonly _carousel = inject(HlmCarousel);\n\tprivate readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'rounded-full absolute h-8 w-8',\n\t\t\tthis._carousel.orientation() === 'horizontal'\n\t\t\t\t? '-end-12 top-1/2 -translate-y-1/2'\n\t\t\t\t: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n\t\t),\n\t);\n\tprotected readonly isDisabled = () => !this._carousel.canScrollNext();\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst computedClass = this._computedClass();\n\n\t\t\tuntracked(() => this._button.setClass(computedClass));\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideArrowLeft } from '@ng-icons/lucide';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: {\n\t\t'data-slot': 'carousel-previous',\n\t\t'[disabled]': 'isDisabled()',\n\t\t'(click)': '_carousel.scrollPrev()',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideArrowLeft\" class=\"rtl:rotate-180\" />\n\t\t<span class=\"sr-only\">Previous slide</span>\n\t`,\n})\nexport class HlmCarouselPrevious {\n\tprivate readonly _button = inject(HlmButton);\n\n\tprotected readonly _carousel = inject(HlmCarousel);\n\n\tprivate readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'rounded-full absolute h-8 w-8',\n\t\t\tthis._carousel.orientation() === 'horizontal'\n\t\t\t\t? '-start-12 top-1/2 -translate-y-1/2'\n\t\t\t\t: '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n\t\t),\n\t);\n\tprotected readonly isDisabled = () => !this._carousel.canScrollPrev();\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst computedClass = this._computedClass();\n\t\t\tuntracked(() => this._button.setClass(computedClass));\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport type { ClassValue } from 'clsx';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'hlm-carousel-slide-display',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'carousel-slide-display',\n\t},\n\ttemplate: `\n\t\t<span class=\"sr-only\">{{ _labelContent() }}</span>\n\t\t<div aria-hidden=\"true\" [class]=\"slideClass()\">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>\n\t`,\n})\nexport class HlmCarouselSlideDisplay {\n\tprotected readonly _carousel = inject(HlmCarousel);\n\n\tprotected readonly _currentSlide = computed(() => this._carousel.currentSlide() + 1);\n\n\tpublic readonly slideClass = input<ClassValue>('text-muted-foreground text-sm');\n\n\t/** Screen reader only text for the slide display */\n\tpublic readonly label = input<string>('Slide');\n\n\tprotected readonly _labelContent = computed(() => {\n\t\tconst currentSlide = this._currentSlide();\n\t\tconst slideCount = this._carousel.slideCount();\n\t\treturn `${this.label()} ${currentSlide} of ${slideCount} is displayed`;\n\t});\n}\n","import { HlmCarousel } from './lib/hlm-carousel';\nimport { HlmCarouselContent } from './lib/hlm-carousel-content';\nimport { HlmCarouselItem } from './lib/hlm-carousel-item';\nimport { HlmCarouselNext } from './lib/hlm-carousel-next';\nimport { HlmCarouselPrevious } from './lib/hlm-carousel-previous';\nimport { HlmCarouselSlideDisplay } from './lib/hlm-carousel-slide-display';\n\nexport * from './lib/hlm-carousel';\nexport * from './lib/hlm-carousel-content';\nexport * from './lib/hlm-carousel-item';\nexport * from './lib/hlm-carousel-next';\nexport * from './lib/hlm-carousel-previous';\nexport * from './lib/hlm-carousel-slide-display';\n\nexport const HlmCarouselImports = [\n\tHlmCarousel,\n\tHlmCarouselContent,\n\tHlmCarouselItem,\n\tHlmCarouselPrevious,\n\tHlmCarouselNext,\n\tHlmCarouselSlideDisplay,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAwCa,WAAW,CAAA;AA2BvB,IAAA,WAAA,GAAA;AA1BmB,QAAA,IAAA,CAAA,cAAc,GAAG,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC;AAC7D,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,cAAc,CAAC;AAE9B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAA4B,YAAY,kFAAC;QAC5D,IAAA,CAAA,OAAO,GACtB,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAkC;AACxB,QAAA,IAAA,CAAA,OAAO,GAAmC,KAAK,CAAoB,EAAE,8EAAC;AAEnE,QAAA,IAAA,CAAA,aAAa,GAA6B,QAAQ,CAAC,OAAO;;;AAG5E,YAAA,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAClC,GAAG,IAAI,CAAC,OAAO,EAAE;AACjB,YAAA,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY,GAAG,GAAG,GAAG,GAAG;AACrD,SAAA,CAAC,oFAAC;AAEc,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,KAAK,qFAAC;AAC/B,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE;AAC/C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,KAAK,qFAAC;AAC/B,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A,4BAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,wBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EALzB;;;AAGT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEW,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAXnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;oBACtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,wBAAwB;AACrC,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;AAGT,CAAA,CAAA;AACD,iBAAA;;;ACAM,MAAM,kBAAkB,GAAG;IACjC,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,uBAAuB;;;ACpBxB;;AAEG;;;;"}
1
+ {"version":3,"file":"yukit-web-helm-carousel.mjs","sources":["../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-content.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-item.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-next.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-previous.ts","../../../projects/yukit-web/helm/carousel/src/lib/hlm-carousel-slide-display.ts","../../../projects/yukit-web/helm/carousel/src/index.ts","../../../projects/yukit-web/helm/carousel/src/yukit-web-helm-carousel.ts"],"sourcesContent":["import { Directionality } from '@angular/cdk/bidi';\nimport {\n\tChangeDetectionStrategy,\n\tComponent,\n\ttype InputSignal,\n\ttype Signal,\n\tcomputed,\n\tinject,\n\tinput,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport type { EmblaEventType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel';\nimport { EmblaCarouselDirective } from 'embla-carousel-angular';\n\n@Component({\n\tselector: 'hlm-carousel',\n\timports: [EmblaCarouselDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'carousel',\n\t\trole: 'region',\n\t\t'aria-roledescription': 'carousel',\n\t\t'(keydown)': 'onKeydown($event)',\n\t},\n\ttemplate: `\n\t\t<div\n\t\t\temblaCarousel\n\t\t\tclass=\"overflow-hidden\"\n\t\t\t[plugins]=\"plugins()\"\n\t\t\t[options]=\"_emblaOptions()\"\n\t\t\t[subscribeToEvents]=\"['init', 'select', 'reInit']\"\n\t\t\t(emblaChange)=\"onEmblaEvent($event)\"\n\t\t>\n\t\t\t<ng-content select=\"[hlmCarouselContent],hlm-carousel-content\" />\n\t\t</div>\n\t\t<ng-content />\n\t`,\n})\nexport class HlmCarousel {\n\tprotected readonly _emblaCarousel = viewChild.required(EmblaCarouselDirective);\n\tprivate readonly _dir = inject(Directionality);\n\n\tpublic readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\tpublic readonly options: InputSignal<Omit<EmblaOptionsType, 'axis'> | undefined> =\n\t\tinput<Omit<EmblaOptionsType, 'axis'>>();\n\tpublic readonly plugins: InputSignal<EmblaPluginType[]> = input<EmblaPluginType[]>([]);\n\n\tprotected readonly _emblaOptions: Signal<EmblaOptionsType> = computed(() => ({\n\t\t// Default embla's direction to the ambient layout direction so the carousel scrolls RTL\n\t\t// automatically; an explicit `direction` in `options` still wins.\n\t\tdirection: this._dir.valueSignal(),\n\t\t...this.options(),\n\t\taxis: this.orientation() === 'horizontal' ? 'x' : 'y',\n\t}));\n\n\tprivate readonly _canScrollPrev = signal(false);\n\tpublic readonly canScrollPrev = this._canScrollPrev.asReadonly();\n\tprivate readonly _canScrollNext = signal(false);\n\tpublic readonly canScrollNext = this._canScrollNext.asReadonly();\n\n\tprivate readonly _currentSlide = signal(0);\n\tpublic readonly currentSlide = this._currentSlide.asReadonly();\n\tprivate readonly _slideCount = signal(0);\n\tpublic readonly slideCount = this._slideCount.asReadonly();\n\n\tconstructor() {\n\t\tclasses(() => 'relative');\n\t}\n\n\tprotected onEmblaEvent(event: EmblaEventType) {\n\t\tconst emblaApi = this._emblaCarousel().emblaApi;\n\n\t\tif (!emblaApi) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (event === 'select' || event === 'init' || event === 'reInit') {\n\t\t\tthis._canScrollPrev.set(emblaApi.canScrollPrev());\n\t\t\tthis._canScrollNext.set(emblaApi.canScrollNext());\n\n\t\t\tthis._currentSlide.set(emblaApi.selectedScrollSnap());\n\t\t\tthis._slideCount.set(emblaApi.scrollSnapList().length);\n\t\t}\n\t}\n\n\tprotected onKeydown(event: KeyboardEvent) {\n\t\tif (event.key === 'ArrowLeft') {\n\t\t\tevent.preventDefault();\n\t\t\tthis._emblaCarousel().scrollPrev();\n\t\t} else if (event.key === 'ArrowRight') {\n\t\t\tevent.preventDefault();\n\t\t\tthis._emblaCarousel().scrollNext();\n\t\t}\n\t}\n\n\tscrollPrev() {\n\t\tthis._emblaCarousel().scrollPrev();\n\t}\n\n\tscrollNext() {\n\t\tthis._emblaCarousel().scrollNext();\n\t}\n}\n","import { Directive, inject } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Directive({\n\tselector: '[hlmCarouselContent],hlm-carousel-content',\n\thost: {\n\t\t'data-slot': 'carousel-content',\n\t},\n})\nexport class HlmCarouselContent {\n\tprivate readonly _orientation = inject(HlmCarousel).orientation;\n\n\tconstructor() {\n\t\tclasses(() => ['flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col']);\n\t}\n}\n","import { Directive, inject } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Directive({\n\tselector: '[hlmCarouselItem],hlm-carousel-item',\n\thost: {\n\t\t'data-slot': 'carousel-item',\n\t\trole: 'group',\n\t\t'aria-roledescription': 'slide',\n\t},\n})\nexport class HlmCarouselItem {\n\tprivate readonly _orientation = inject(HlmCarousel).orientation;\n\n\tconstructor() {\n\t\tclasses(() => ['min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4']);\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideArrowRight } from '@ng-icons/lucide';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'button[hlm-carousel-next], button[hlmCarouselNext]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: {\n\t\t'data-slot': 'carousel-next',\n\t\t'[disabled]': 'isDisabled()',\n\t\t'(click)': '_carousel.scrollNext()',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideArrowRight\" class=\"rtl:rotate-180\" />\n\t\t<span class=\"sr-only\">Next slide</span>\n\t`,\n})\nexport class HlmCarouselNext {\n\tprivate readonly _button = inject(HlmButton);\n\tprotected readonly _carousel = inject(HlmCarousel);\n\tprivate readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'rounded-full absolute h-8 w-8',\n\t\t\tthis._carousel.orientation() === 'horizontal'\n\t\t\t\t? '-end-12 top-1/2 -translate-y-1/2'\n\t\t\t\t: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n\t\t),\n\t);\n\tprotected readonly isDisabled = () => !this._carousel.canScrollNext();\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst computedClass = this._computedClass();\n\n\t\t\tuntracked(() => this._button.setClass(computedClass));\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideArrowLeft } from '@ng-icons/lucide';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: {\n\t\t'data-slot': 'carousel-previous',\n\t\t'[disabled]': 'isDisabled()',\n\t\t'(click)': '_carousel.scrollPrev()',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideArrowLeft\" class=\"rtl:rotate-180\" />\n\t\t<span class=\"sr-only\">Previous slide</span>\n\t`,\n})\nexport class HlmCarouselPrevious {\n\tprivate readonly _button = inject(HlmButton);\n\n\tprotected readonly _carousel = inject(HlmCarousel);\n\n\tprivate readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'rounded-full absolute h-8 w-8',\n\t\t\tthis._carousel.orientation() === 'horizontal'\n\t\t\t\t? '-start-12 top-1/2 -translate-y-1/2'\n\t\t\t\t: '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n\t\t),\n\t);\n\tprotected readonly isDisabled = () => !this._carousel.canScrollPrev();\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst computedClass = this._computedClass();\n\t\t\tuntracked(() => this._button.setClass(computedClass));\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport type { ClassValue } from 'clsx';\nimport { HlmCarousel } from './hlm-carousel';\n\n@Component({\n\tselector: 'hlm-carousel-slide-display',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'carousel-slide-display',\n\t},\n\ttemplate: `\n\t\t<span class=\"sr-only\">{{ _labelContent() }}</span>\n\t\t<div aria-hidden=\"true\" [class]=\"slideClass()\">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>\n\t`,\n})\nexport class HlmCarouselSlideDisplay {\n\tprotected readonly _carousel = inject(HlmCarousel);\n\n\tprotected readonly _currentSlide = computed(() => this._carousel.currentSlide() + 1);\n\n\tpublic readonly slideClass = input<ClassValue>('text-muted-foreground text-sm');\n\n\t/** Screen reader only text for the slide display */\n\tpublic readonly label = input<string>('Slide');\n\n\tprotected readonly _labelContent = computed(() => {\n\t\tconst currentSlide = this._currentSlide();\n\t\tconst slideCount = this._carousel.slideCount();\n\t\treturn `${this.label()} ${currentSlide} of ${slideCount} is displayed`;\n\t});\n}\n","import { HlmCarousel } from './lib/hlm-carousel';\nimport { HlmCarouselContent } from './lib/hlm-carousel-content';\nimport { HlmCarouselItem } from './lib/hlm-carousel-item';\nimport { HlmCarouselNext } from './lib/hlm-carousel-next';\nimport { HlmCarouselPrevious } from './lib/hlm-carousel-previous';\nimport { HlmCarouselSlideDisplay } from './lib/hlm-carousel-slide-display';\n\nexport * from './lib/hlm-carousel';\nexport * from './lib/hlm-carousel-content';\nexport * from './lib/hlm-carousel-item';\nexport * from './lib/hlm-carousel-next';\nexport * from './lib/hlm-carousel-previous';\nexport * from './lib/hlm-carousel-slide-display';\n\nexport const HlmCarouselImports = [\n\tHlmCarousel,\n\tHlmCarouselContent,\n\tHlmCarouselItem,\n\tHlmCarouselPrevious,\n\tHlmCarouselNext,\n\tHlmCarouselSlideDisplay,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAwCa,WAAW,CAAA;AA2BvB,IAAA,WAAA,GAAA;AA1BmB,QAAA,IAAA,CAAA,cAAc,GAAG,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC;AAC7D,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,cAAc,CAAC;AAE9B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAA4B,YAAY,kFAAC;QAC5D,IAAA,CAAA,OAAO,GACtB,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAkC;AACxB,QAAA,IAAA,CAAA,OAAO,GAAmC,KAAK,CAAoB,EAAE,8EAAC;AAEnE,QAAA,IAAA,CAAA,aAAa,GAA6B,QAAQ,CAAC,OAAO;;;AAG5E,YAAA,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAClC,GAAG,IAAI,CAAC,OAAO,EAAE;AACjB,YAAA,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY,GAAG,GAAG,GAAG,GAAG;AACrD,SAAA,CAAC,oFAAC;AAEc,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,KAAK,qFAAC;AAC/B,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE;AAC/C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,KAAK,qFAAC;AAC/B,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,CAAC,cAAc,CAA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iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,wBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EALzB;;;AAGT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAEW,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAXnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;oBACtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,wBAAwB;AACrC,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;AAGT,CAAA,CAAA;AACD,iBAAA;;;ACAM,MAAM,kBAAkB,GAAG;IACjC,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,uBAAuB;;;ACpBxB;;AAEG;;"}
@@ -70,8 +70,8 @@ class HlmCheckbox {
70
70
  setDisabledState(isDisabled) {
71
71
  this._disabled.set(isDisabled);
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
74
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: HlmCheckbox, isStandalone: true, selector: "hlm-checkbox", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, checkedInput: { classPropertyName: "checkedInput", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, forceInvalid: { classPropertyName: "forceInvalid", publicName: "forceInvalid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange", indeterminate: "indeterminateChange" }, host: { attributes: { "data-slot": "checkbox" }, properties: { "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.data-disabled": "_disabled() ? \"\" : null" }, classAttribute: "contents peer" }, providers: [HLM_CHECKBOX_VALUE_ACCESSOR], viewQueries: [{ propertyName: "_brnCheckbox", first: true, predicate: BrnCheckbox, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.BrnFieldControlDescribedBy }], ngImport: i0, template: `
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
74
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmCheckbox, isStandalone: true, selector: "hlm-checkbox", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, checkedInput: { classPropertyName: "checkedInput", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, forceInvalid: { classPropertyName: "forceInvalid", publicName: "forceInvalid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange", indeterminate: "indeterminateChange" }, host: { attributes: { "data-slot": "checkbox" }, properties: { "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.data-disabled": "_disabled() ? \"\" : null" }, classAttribute: "contents peer" }, providers: [HLM_CHECKBOX_VALUE_ACCESSOR], viewQueries: [{ propertyName: "_brnCheckbox", first: true, predicate: BrnCheckbox, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.BrnFieldControlDescribedBy }], ngImport: i0, template: `
75
75
  <brn-checkbox
76
76
  [id]="inputId()"
77
77
  [name]="name()"
@@ -95,7 +95,7 @@ class HlmCheckbox {
95
95
  </brn-checkbox>
96
96
  `, isInline: true, dependencies: [{ kind: "component", type: BrnCheckbox, selector: "brn-checkbox", inputs: ["checked", "indeterminate", "id", "name", "class", "hostStyles", "aria-label", "aria-labelledby", "aria-describedby", "required", "disabled", "forceInvalid"], outputs: ["checkedChange", "indeterminateChange", "touched"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], viewProviders: [provideIcons({ lucideCheck })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
97
97
  }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCheckbox, decorators: [{
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCheckbox, decorators: [{
99
99
  type: Component,
100
100
  args: [{
101
101
  selector: 'hlm-checkbox',
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-checkbox.mjs","sources":["../../../projects/yukit-web/helm/checkbox/src/lib/hlm-checkbox.ts","../../../projects/yukit-web/helm/checkbox/src/index.ts","../../../projects/yukit-web/helm/checkbox/src/yukit-web-helm-checkbox.ts"],"sourcesContent":["import type { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tforwardRef,\n\tinput,\n\tlinkedSignal,\n\tmodel,\n\toutput,\n\tviewChild,\n} from '@angular/core';\nimport { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideCheck } from '@ng-icons/lucide';\nimport { BrnCheckbox } from '@spartan-ng/brain/checkbox';\nimport { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';\nimport type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport { hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\n\nexport const HLM_CHECKBOX_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => HlmCheckbox),\n\tmulti: true,\n};\n\n@Component({\n\tselector: 'hlm-checkbox',\n\timports: [BrnCheckbox, NgIcon],\n\tproviders: [HLM_CHECKBOX_VALUE_ACCESSOR],\n\tviewProviders: [provideIcons({ lucideCheck })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [BrnFieldControlDescribedBy],\n\thost: {\n\t\tclass: 'contents peer',\n\t\t'data-slot': 'checkbox',\n\t\t'[attr.aria-label]': 'null',\n\t\t'[attr.aria-labelledby]': 'null',\n\t\t'[attr.data-disabled]': '_disabled() ? \"\" : null',\n\t},\n\ttemplate: `\n\t\t<brn-checkbox\n\t\t\t[id]=\"inputId()\"\n\t\t\t[name]=\"name()\"\n\t\t\t[class]=\"_computedClass()\"\n\t\t\t[checked]=\"checked()\"\n\t\t\t[(indeterminate)]=\"indeterminate\"\n\t\t\t[disabled]=\"_disabled()\"\n\t\t\t[required]=\"required()\"\n\t\t\t[aria-label]=\"ariaLabel()\"\n\t\t\t[aria-labelledby]=\"ariaLabelledby()\"\n\t\t\t[aria-describedby]=\"ariaDescribedby()\"\n\t\t\t[forceInvalid]=\"forceInvalid()\"\n\t\t\t(checkedChange)=\"_handleChange($event)\"\n\t\t\t(touched)=\"_onTouched?.()\"\n\t\t>\n\t\t\t@if (checked() || indeterminate()) {\n\t\t\t\t<span class=\"[&>ng-icon]:text-[length:--spacing(3.5)] flex items-center justify-center text-current transition-none\">\n\t\t\t\t\t<ng-icon name=\"lucideCheck\" />\n\t\t\t\t</span>\n\t\t\t}\n\t\t</brn-checkbox>\n\t`,\n})\nexport class HlmCheckbox implements ControlValueAccessor {\n\tpublic readonly userClass = input<ClassValue>('', { alias: 'class' });\n\n\tprotected readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary data-[matches-spartan-invalid=true]:aria-checked:border-primary data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 peer shrink-0 cursor-default outline-none disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\tthis.userClass(),\n\t\t\tthis._errorStateClass(),\n\t\t),\n\t);\n\n\t/** Used to set the id on the underlying brn element. */\n\tpublic readonly inputId = input<string | null>(null);\n\n\t/** Used to set the aria-label attribute on the underlying brn element. */\n\tpublic readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n\n\t/** Used to set the aria-labelledby attribute on the underlying brn element. */\n\tpublic readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n\t/** Used to set the aria-describedby attribute on the underlying brn element. */\n\tpublic readonly ariaDescribedby = input<string | null>(null, { alias: 'aria-describedby' });\n\n\t/** The checked state of the checkbox. */\n\tpublic readonly checkedInput = input<boolean, BooleanInput>(false, { alias: 'checked', transform: booleanAttribute });\n\tpublic readonly checked = linkedSignal(this.checkedInput);\n\n\t/** Emits when checked state changes. */\n\tpublic readonly checkedChange = output<boolean>();\n\n\t/**\n\t * The indeterminate state of the checkbox.\n\t * For example, a \"select all/deselect all\" checkbox may be in the indeterminate state when some but not all of its sub-controls are checked.\n\t */\n\tpublic readonly indeterminate = model<boolean>(false);\n\n\t/** The name attribute of the checkbox. */\n\tpublic readonly name = input<string | null>(null);\n\n\t/** Whether the checkbox is required. */\n\tpublic readonly required = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\t/** Whether the checkbox is disabled. */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\t/** Whether to force the checkbox into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tprotected readonly _disabled = linkedSignal(this.disabled);\n\n\tprivate readonly _brnCheckbox = viewChild.required(BrnCheckbox);\n\n\tprivate readonly _spartanInvalid = computed(() => this.forceInvalid() || this._brnCheckbox().spartanInvalid?.());\n\tprotected readonly _errorStateClass = computed(() =>\n\t\tthis._spartanInvalid()\n\t\t\t? 'border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40'\n\t\t\t: '',\n\t);\n\n\tprotected _onChange?: ChangeFn<boolean>;\n\tprotected _onTouched?: TouchFn;\n\n\tprotected _handleChange(value: boolean): void {\n\t\tif (this._disabled()) return;\n\t\tthis.checked.set(value);\n\t\tthis.checkedChange.emit(value);\n\t\tthis._onChange?.(value);\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\twriteValue(value: boolean): void {\n\t\tthis.checked.set(value);\n\t}\n\n\tregisterOnChange(fn: ChangeFn<boolean>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { HlmCheckbox } from './lib/hlm-checkbox';\n\nexport * from './lib/hlm-checkbox';\n\nexport const HlmCheckboxImports = [HlmCheckbox] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAsBO,MAAM,2BAA2B,GAAG;AAC1C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,WAAW,CAAC;AAC1C,IAAA,KAAK,EAAE,IAAI;;MAyCC,WAAW,CAAA;AAtCxB,IAAA,WAAA,GAAA;QAuCiB,IAAA,CAAA,SAAS,GAAG,KAAK,CAAa,EAAE,iFAAI,KAAK,EAAE,OAAO,EAAA,CAAG;QAElD,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,MAC5C,GAAG,CACF,kwBAAkwB,EAClwB,IAAI,CAAC,SAAS,EAAE,EAChB,IAAI,CAAC,gBAAgB,EAAE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AM,CAAC;oBAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;oBACxC,aAAa,EAAE,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;oBAC9C,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,cAAc,EAAE,CAAC,0BAA0B,CAAC;AAC5C,oBAAA,IAAI,EAAE;AACL,wBAAA,KAAK,EAAE,eAAe;AACtB,wBAAA,WAAW,EAAE,UAAU;AACvB,wBAAA,mBAAmB,EAAE,MAAM;AAC3B,wBAAA,wBAAwB,EAAE,MAAM;AAChC,wBAAA,sBAAsB,EAAE,yBAAyB;AACjD,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;AAsBT,CAAA,CAAA;AACD,iBAAA;yxCAmDmD,WAAW,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AChHxD,MAAM,kBAAkB,GAAG,CAAC,WAAW;;ACJ9C;;AAEG;;;;"}
1
+ {"version":3,"file":"yukit-web-helm-checkbox.mjs","sources":["../../../projects/yukit-web/helm/checkbox/src/lib/hlm-checkbox.ts","../../../projects/yukit-web/helm/checkbox/src/index.ts","../../../projects/yukit-web/helm/checkbox/src/yukit-web-helm-checkbox.ts"],"sourcesContent":["import type { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tforwardRef,\n\tinput,\n\tlinkedSignal,\n\tmodel,\n\toutput,\n\tviewChild,\n} from '@angular/core';\nimport { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideCheck } from '@ng-icons/lucide';\nimport { BrnCheckbox } from '@spartan-ng/brain/checkbox';\nimport { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';\nimport type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport { hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\n\nexport const HLM_CHECKBOX_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => HlmCheckbox),\n\tmulti: true,\n};\n\n@Component({\n\tselector: 'hlm-checkbox',\n\timports: [BrnCheckbox, NgIcon],\n\tproviders: [HLM_CHECKBOX_VALUE_ACCESSOR],\n\tviewProviders: [provideIcons({ lucideCheck })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [BrnFieldControlDescribedBy],\n\thost: {\n\t\tclass: 'contents peer',\n\t\t'data-slot': 'checkbox',\n\t\t'[attr.aria-label]': 'null',\n\t\t'[attr.aria-labelledby]': 'null',\n\t\t'[attr.data-disabled]': '_disabled() ? \"\" : null',\n\t},\n\ttemplate: `\n\t\t<brn-checkbox\n\t\t\t[id]=\"inputId()\"\n\t\t\t[name]=\"name()\"\n\t\t\t[class]=\"_computedClass()\"\n\t\t\t[checked]=\"checked()\"\n\t\t\t[(indeterminate)]=\"indeterminate\"\n\t\t\t[disabled]=\"_disabled()\"\n\t\t\t[required]=\"required()\"\n\t\t\t[aria-label]=\"ariaLabel()\"\n\t\t\t[aria-labelledby]=\"ariaLabelledby()\"\n\t\t\t[aria-describedby]=\"ariaDescribedby()\"\n\t\t\t[forceInvalid]=\"forceInvalid()\"\n\t\t\t(checkedChange)=\"_handleChange($event)\"\n\t\t\t(touched)=\"_onTouched?.()\"\n\t\t>\n\t\t\t@if (checked() || indeterminate()) {\n\t\t\t\t<span class=\"[&>ng-icon]:text-[length:--spacing(3.5)] flex items-center justify-center text-current transition-none\">\n\t\t\t\t\t<ng-icon name=\"lucideCheck\" />\n\t\t\t\t</span>\n\t\t\t}\n\t\t</brn-checkbox>\n\t`,\n})\nexport class HlmCheckbox implements ControlValueAccessor {\n\tpublic readonly userClass = input<ClassValue>('', { alias: 'class' });\n\n\tprotected readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary data-[matches-spartan-invalid=true]:aria-checked:border-primary data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 peer shrink-0 cursor-default outline-none disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\tthis.userClass(),\n\t\t\tthis._errorStateClass(),\n\t\t),\n\t);\n\n\t/** Used to set the id on the underlying brn element. */\n\tpublic readonly inputId = input<string | null>(null);\n\n\t/** Used to set the aria-label attribute on the underlying brn element. */\n\tpublic readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n\n\t/** Used to set the aria-labelledby attribute on the underlying brn element. */\n\tpublic readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n\t/** Used to set the aria-describedby attribute on the underlying brn element. */\n\tpublic readonly ariaDescribedby = input<string | null>(null, { alias: 'aria-describedby' });\n\n\t/** The checked state of the checkbox. */\n\tpublic readonly checkedInput = input<boolean, BooleanInput>(false, { alias: 'checked', transform: booleanAttribute });\n\tpublic readonly checked = linkedSignal(this.checkedInput);\n\n\t/** Emits when checked state changes. */\n\tpublic readonly checkedChange = output<boolean>();\n\n\t/**\n\t * The indeterminate state of the checkbox.\n\t * For example, a \"select all/deselect all\" checkbox may be in the indeterminate state when some but not all of its sub-controls are checked.\n\t */\n\tpublic readonly indeterminate = model<boolean>(false);\n\n\t/** The name attribute of the checkbox. */\n\tpublic readonly name = input<string | null>(null);\n\n\t/** Whether the checkbox is required. */\n\tpublic readonly required = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\t/** Whether the checkbox is disabled. */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\t/** Whether to force the checkbox into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tprotected readonly _disabled = linkedSignal(this.disabled);\n\n\tprivate readonly _brnCheckbox = viewChild.required(BrnCheckbox);\n\n\tprivate readonly _spartanInvalid = computed(() => this.forceInvalid() || this._brnCheckbox().spartanInvalid?.());\n\tprotected readonly _errorStateClass = computed(() =>\n\t\tthis._spartanInvalid()\n\t\t\t? 'border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40'\n\t\t\t: '',\n\t);\n\n\tprotected _onChange?: ChangeFn<boolean>;\n\tprotected _onTouched?: TouchFn;\n\n\tprotected _handleChange(value: boolean): void {\n\t\tif (this._disabled()) return;\n\t\tthis.checked.set(value);\n\t\tthis.checkedChange.emit(value);\n\t\tthis._onChange?.(value);\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\twriteValue(value: boolean): void {\n\t\tthis.checked.set(value);\n\t}\n\n\tregisterOnChange(fn: ChangeFn<boolean>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { HlmCheckbox } from './lib/hlm-checkbox';\n\nexport * from './lib/hlm-checkbox';\n\nexport const HlmCheckboxImports = [HlmCheckbox] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAsBO,MAAM,2BAA2B,GAAG;AAC1C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,WAAW,CAAC;AAC1C,IAAA,KAAK,EAAE,IAAI;;MAyCC,WAAW,CAAA;AAtCxB,IAAA,WAAA,GAAA;QAuCiB,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A,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAkClC,WAAW,EAAA,UAAA,EAAA,CAAA;kBAtCvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC;oBAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;oBACxC,aAAa,EAAE,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;oBAC9C,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,cAAc,EAAE,CAAC,0BAA0B,CAAC;AAC5C,oBAAA,IAAI,EAAE;AACL,wBAAA,KAAK,EAAE,eAAe;AACtB,wBAAA,WAAW,EAAE,UAAU;AACvB,wBAAA,mBAAmB,EAAE,MAAM;AAC3B,wBAAA,wBAAwB,EAAE,MAAM;AAChC,wBAAA,sBAAsB,EAAE,yBAAyB;AACjD,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;AAsBT,CAAA,CAAA;AACD,iBAAA;yxCAmDmD,WAAW,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AChHxD,MAAM,kBAAkB,GAAG,CAAC,WAAW;;ACJ9C;;AAEG;;"}
@@ -5,10 +5,10 @@ import { BrnCollapsible, BrnCollapsibleContent, BrnCollapsibleTrigger } from '@s
5
5
  import { classes } from 'yukit-web/helm/utils';
6
6
 
7
7
  class HlmCollapsible {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCollapsible, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
9
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCollapsible, isStandalone: true, selector: "[hlmCollapsible],hlm-collapsible", host: { attributes: { "data-slot": "collapsible" } }, hostDirectives: [{ directive: i1.BrnCollapsible, inputs: ["expanded", "expanded", "disabled", "disabled"], outputs: ["expandedChange", "expandedChange"] }], ngImport: i0 }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCollapsible, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
9
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCollapsible, isStandalone: true, selector: "[hlmCollapsible],hlm-collapsible", host: { attributes: { "data-slot": "collapsible" } }, hostDirectives: [{ directive: i1.BrnCollapsible, inputs: ["expanded", "expanded", "disabled", "disabled"], outputs: ["expandedChange", "expandedChange"] }], ngImport: i0 }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCollapsible, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCollapsible, decorators: [{
12
12
  type: Directive,
13
13
  args: [{
14
14
  selector: '[hlmCollapsible],hlm-collapsible',
@@ -27,10 +27,10 @@ class HlmCollapsibleContent {
27
27
  constructor() {
28
28
  classes(() => 'data-[state=closed]:hidden');
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCollapsibleContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
31
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCollapsibleContent, isStandalone: true, selector: "[hlmCollapsibleContent],hlm-collapsible-content", host: { attributes: { "data-slot": "collapsible-content" } }, hostDirectives: [{ directive: i1.BrnCollapsibleContent, inputs: ["id", "id"] }], ngImport: i0 }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCollapsibleContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
31
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCollapsibleContent, isStandalone: true, selector: "[hlmCollapsibleContent],hlm-collapsible-content", host: { attributes: { "data-slot": "collapsible-content" } }, hostDirectives: [{ directive: i1.BrnCollapsibleContent, inputs: ["id", "id"] }], ngImport: i0 }); }
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCollapsibleContent, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCollapsibleContent, decorators: [{
34
34
  type: Directive,
35
35
  args: [{
36
36
  selector: '[hlmCollapsibleContent],hlm-collapsible-content',
@@ -40,10 +40,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
40
40
  }], ctorParameters: () => [] });
41
41
 
42
42
  class HlmCollapsibleTrigger {
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCollapsibleTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmCollapsibleTrigger, isStandalone: true, selector: "button[hlmCollapsibleTrigger]", host: { attributes: { "data-slot": "collapsible-trigger" } }, hostDirectives: [{ directive: i1.BrnCollapsibleTrigger, inputs: ["type", "type"] }], ngImport: i0 }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCollapsibleTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCollapsibleTrigger, isStandalone: true, selector: "button[hlmCollapsibleTrigger]", host: { attributes: { "data-slot": "collapsible-trigger" } }, hostDirectives: [{ directive: i1.BrnCollapsibleTrigger, inputs: ["type", "type"] }], ngImport: i0 }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmCollapsibleTrigger, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCollapsibleTrigger, decorators: [{
47
47
  type: Directive,
48
48
  args: [{
49
49
  selector: 'button[hlmCollapsibleTrigger]',
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-collapsible.mjs","sources":["../../../projects/yukit-web/helm/collapsible/src/lib/hlm-collapsible.ts","../../../projects/yukit-web/helm/collapsible/src/lib/hlm-collapsible-content.ts","../../../projects/yukit-web/helm/collapsible/src/lib/hlm-collapsible-trigger.ts","../../../projects/yukit-web/helm/collapsible/src/index.ts","../../../projects/yukit-web/helm/collapsible/src/yukit-web-helm-collapsible.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnCollapsible } from '@spartan-ng/brain/collapsible';\n\n@Directive({\n\tselector: '[hlmCollapsible],hlm-collapsible',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCollapsible,\n\t\t\tinputs: ['expanded', 'disabled'],\n\t\t\toutputs: ['expandedChange'],\n\t\t},\n\t],\n\thost: { 'data-slot': 'collapsible' },\n})\nexport class HlmCollapsible {}\n","import { Directive } from '@angular/core';\nimport { BrnCollapsibleContent } from '@spartan-ng/brain/collapsible';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCollapsibleContent],hlm-collapsible-content',\n\thostDirectives: [{ directive: BrnCollapsibleContent, inputs: ['id'] }],\n\thost: { 'data-slot': 'collapsible-content' },\n})\nexport class HlmCollapsibleContent {\n\tconstructor() {\n\t\tclasses(() => 'data-[state=closed]:hidden');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCollapsibleTrigger } from '@spartan-ng/brain/collapsible';\n\n@Directive({\n\tselector: 'button[hlmCollapsibleTrigger]',\n\thostDirectives: [{ directive: BrnCollapsibleTrigger, inputs: ['type'] }],\n\thost: { 'data-slot': 'collapsible-trigger' },\n})\nexport class HlmCollapsibleTrigger {}\n","import { HlmCollapsible } from './lib/hlm-collapsible';\nimport { HlmCollapsibleContent } from './lib/hlm-collapsible-content';\nimport { HlmCollapsibleTrigger } from './lib/hlm-collapsible-trigger';\n\nexport * from './lib/hlm-collapsible';\nexport * from './lib/hlm-collapsible-content';\nexport * from './lib/hlm-collapsible-trigger';\n\nexport const HlmCollapsibleImports = [HlmCollapsible, HlmCollapsibleContent, HlmCollapsibleTrigger] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAca,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,cAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAX1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,kCAAkC;AAC5C,oBAAA,cAAc,EAAE;AACf,wBAAA;AACC,4BAAA,SAAS,EAAE,cAAc;AACzB,4BAAA,MAAM,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,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,+BAA+B;AACzC,oBAAA,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;AACxE,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;AAC5C,iBAAA;;;ACCM,MAAM,qBAAqB,GAAG,CAAC,cAAc,EAAE,qBAAqB,EAAE,qBAAqB;;ACRlG;;AAEG;;;;"}
1
+ {"version":3,"file":"yukit-web-helm-collapsible.mjs","sources":["../../../projects/yukit-web/helm/collapsible/src/lib/hlm-collapsible.ts","../../../projects/yukit-web/helm/collapsible/src/lib/hlm-collapsible-content.ts","../../../projects/yukit-web/helm/collapsible/src/lib/hlm-collapsible-trigger.ts","../../../projects/yukit-web/helm/collapsible/src/index.ts","../../../projects/yukit-web/helm/collapsible/src/yukit-web-helm-collapsible.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnCollapsible } from '@spartan-ng/brain/collapsible';\n\n@Directive({\n\tselector: '[hlmCollapsible],hlm-collapsible',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnCollapsible,\n\t\t\tinputs: ['expanded', 'disabled'],\n\t\t\toutputs: ['expandedChange'],\n\t\t},\n\t],\n\thost: { 'data-slot': 'collapsible' },\n})\nexport class HlmCollapsible {}\n","import { Directive } from '@angular/core';\nimport { BrnCollapsibleContent } from '@spartan-ng/brain/collapsible';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmCollapsibleContent],hlm-collapsible-content',\n\thostDirectives: [{ directive: BrnCollapsibleContent, inputs: ['id'] }],\n\thost: { 'data-slot': 'collapsible-content' },\n})\nexport class HlmCollapsibleContent {\n\tconstructor() {\n\t\tclasses(() => 'data-[state=closed]:hidden');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnCollapsibleTrigger } from '@spartan-ng/brain/collapsible';\n\n@Directive({\n\tselector: 'button[hlmCollapsibleTrigger]',\n\thostDirectives: [{ directive: BrnCollapsibleTrigger, inputs: ['type'] }],\n\thost: { 'data-slot': 'collapsible-trigger' },\n})\nexport class HlmCollapsibleTrigger {}\n","import { HlmCollapsible } from './lib/hlm-collapsible';\nimport { HlmCollapsibleContent } from './lib/hlm-collapsible-content';\nimport { HlmCollapsibleTrigger } from './lib/hlm-collapsible-trigger';\n\nexport * from './lib/hlm-collapsible';\nexport * from './lib/hlm-collapsible-content';\nexport * from './lib/hlm-collapsible-trigger';\n\nexport const HlmCollapsibleImports = [HlmCollapsible, HlmCollapsibleContent, HlmCollapsibleTrigger] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAca,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,cAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA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