yukit-web 0.10.6 → 0.10.8

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 (193) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24592 -9669
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/src/lib/theme/components/button.css +14 -0
  129. package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
  130. package/src/lib/theme/tokens/component-colors.css +6 -2
  131. package/types/yukit-web-chart.d.ts +184 -125
  132. package/types/yukit-web-helm-accordion.d.ts +49 -28
  133. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  134. package/types/yukit-web-helm-alert.d.ts +30 -32
  135. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  136. package/types/yukit-web-helm-attachment.d.ts +97 -69
  137. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  138. package/types/yukit-web-helm-avatar.d.ts +44 -39
  139. package/types/yukit-web-helm-badge.d.ts +18 -17
  140. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  141. package/types/yukit-web-helm-bubble.d.ts +54 -40
  142. package/types/yukit-web-helm-button-group.d.ts +29 -22
  143. package/types/yukit-web-helm-button.d.ts +41 -31
  144. package/types/yukit-web-helm-calendar.d.ts +157 -85
  145. package/types/yukit-web-helm-card.d.ts +38 -42
  146. package/types/yukit-web-helm-carousel.d.ts +105 -73
  147. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  148. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  149. package/types/yukit-web-helm-combobox.d.ts +355 -150
  150. package/types/yukit-web-helm-command.d.ts +140 -73
  151. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  152. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  153. package/types/yukit-web-helm-dialog.d.ts +106 -78
  154. package/types/yukit-web-helm-drawer.d.ts +90 -61
  155. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  156. package/types/yukit-web-helm-empty.d.ts +38 -42
  157. package/types/yukit-web-helm-field.d.ts +122 -91
  158. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  159. package/types/yukit-web-helm-input-group.d.ts +63 -41
  160. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  161. package/types/yukit-web-helm-input.d.ts +19 -12
  162. package/types/yukit-web-helm-item.d.ts +90 -82
  163. package/types/yukit-web-helm-kbd.d.ts +10 -15
  164. package/types/yukit-web-helm-label.d.ts +14 -11
  165. package/types/yukit-web-helm-marker.d.ts +26 -27
  166. package/types/yukit-web-helm-menubar.d.ts +61 -32
  167. package/types/yukit-web-helm-message.d.ts +34 -38
  168. package/types/yukit-web-helm-native-select.d.ts +102 -61
  169. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  170. package/types/yukit-web-helm-pagination.d.ts +344 -166
  171. package/types/yukit-web-helm-popover.d.ts +62 -42
  172. package/types/yukit-web-helm-progress.d.ts +27 -20
  173. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  174. package/types/yukit-web-helm-resizable.d.ts +46 -24
  175. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  176. package/types/yukit-web-helm-select.d.ts +231 -114
  177. package/types/yukit-web-helm-separator.d.ts +15 -12
  178. package/types/yukit-web-helm-sheet.d.ts +94 -65
  179. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  180. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  181. package/types/yukit-web-helm-slider.d.ts +33 -13
  182. package/types/yukit-web-helm-sonner.d.ts +112 -51
  183. package/types/yukit-web-helm-spinner.d.ts +24 -17
  184. package/types/yukit-web-helm-switch.d.ts +89 -51
  185. package/types/yukit-web-helm-table.d.ts +38 -42
  186. package/types/yukit-web-helm-tabs.d.ts +116 -60
  187. package/types/yukit-web-helm-textarea.d.ts +19 -12
  188. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  189. package/types/yukit-web-helm-toggle.d.ts +39 -21
  190. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  191. package/types/yukit-web-helm-typography.d.ts +62 -77
  192. package/types/yukit-web-helm-utils.d.ts +8 -11
  193. package/types/yukit-web.d.ts +5125 -2357
@@ -1,127 +1,319 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, ChangeDetectionStrategy, Component, input, numberAttribute, booleanAttribute } from '@angular/core';
3
- import { classes } from 'yukit-web/helm/utils';
4
- import { NgIcon, provideIcons } from '@ng-icons/core';
5
- import { lucideMinus } from '@ng-icons/lucide';
6
- import { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';
7
-
8
- class HlmInputOtp {
9
- constructor() {
10
- classes(() => 'gap-2 flex items-center has-disabled:opacity-50');
11
- }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtp, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
13
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmInputOtp, isStandalone: true, selector: "brn-input-otp[hlmInputOtp], brn-input-otp[hlm]", host: { attributes: { "data-slot": "input-otp" } }, ngImport: i0 }); }
14
- }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtp, decorators: [{
16
- type: Directive,
17
- args: [{
18
- selector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',
19
- host: { 'data-slot': 'input-otp' },
20
- }]
21
- }], ctorParameters: () => [] });
22
-
23
- class HlmInputOtpFakeCaret {
24
- constructor() {
25
- classes(() => 'pointer-events-none absolute inset-0 flex items-center justify-center');
26
- }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpFakeCaret, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HlmInputOtpFakeCaret, isStandalone: true, selector: "hlm-input-otp-fake-caret", ngImport: i0, template: `
29
- <div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
30
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpFakeCaret, decorators: [{
33
- type: Component,
34
- args: [{
35
- selector: 'hlm-input-otp-fake-caret',
36
- changeDetection: ChangeDetectionStrategy.OnPush,
37
- template: `
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, input, numberAttribute } from "@angular/core";
3
+ import { classes } from "yukit-web/helm/utils";
4
+ import { NgIcon, provideIcons } from "@ng-icons/core";
5
+ import { lucideMinus } from "@ng-icons/lucide";
6
+ import { BrnInputOtpSlot } from "@spartan-ng/brain/input-otp";
7
+ var HlmInputOtp = class HlmInputOtp {
8
+ constructor() {
9
+ classes(() => "gap-2 flex items-center has-disabled:opacity-50");
10
+ }
11
+ static {
12
+ this.ɵfac = i0.ɵɵngDeclareFactory({
13
+ minVersion: "12.0.0",
14
+ version: "22.2.4",
15
+ ngImport: i0,
16
+ type: HlmInputOtp,
17
+ deps: [],
18
+ target: i0.ɵɵFactoryTarget.Directive
19
+ });
20
+ }
21
+ static {
22
+ this.ɵdir = i0.ɵɵngDeclareDirective({
23
+ minVersion: "14.0.0",
24
+ version: "22.2.4",
25
+ type: HlmInputOtp,
26
+ isStandalone: true,
27
+ selector: "brn-input-otp[hlmInputOtp], brn-input-otp[hlm]",
28
+ host: { attributes: { "data-slot": "input-otp" } },
29
+ ngImport: i0
30
+ });
31
+ }
32
+ };
33
+ i0.ɵɵngDeclareClassMetadata({
34
+ minVersion: "12.0.0",
35
+ version: "22.2.4",
36
+ ngImport: i0,
37
+ type: HlmInputOtp,
38
+ decorators: [{
39
+ type: Directive,
40
+ args: [{
41
+ selector: "brn-input-otp[hlmInputOtp], brn-input-otp[hlm]",
42
+ host: { "data-slot": "input-otp" }
43
+ }]
44
+ }],
45
+ ctorParameters: () => []
46
+ });
47
+ var HlmInputOtpFakeCaret = class HlmInputOtpFakeCaret {
48
+ constructor() {
49
+ classes(() => "pointer-events-none absolute inset-0 flex items-center justify-center");
50
+ }
51
+ static {
52
+ this.ɵfac = i0.ɵɵngDeclareFactory({
53
+ minVersion: "12.0.0",
54
+ version: "22.2.4",
55
+ ngImport: i0,
56
+ type: HlmInputOtpFakeCaret,
57
+ deps: [],
58
+ target: i0.ɵɵFactoryTarget.Component
59
+ });
60
+ }
61
+ static {
62
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
63
+ minVersion: "14.0.0",
64
+ version: "22.2.4",
65
+ type: HlmInputOtpFakeCaret,
66
+ isStandalone: true,
67
+ selector: "hlm-input-otp-fake-caret",
68
+ ngImport: i0,
69
+ template: `
38
70
  <div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
39
71
  `,
40
- }]
41
- }], ctorParameters: () => [] });
42
-
43
- class HlmInputOtpGroup {
44
- constructor() {
45
- classes(() => 'has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center');
46
- }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
48
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmInputOtpGroup, isStandalone: true, selector: "[hlmInputOtpGroup],hlm-input-otp-group", host: { attributes: { "data-slot": "input-otp-group" } }, ngImport: i0 }); }
49
- }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpGroup, decorators: [{
51
- type: Directive,
52
- args: [{
53
- selector: '[hlmInputOtpGroup],hlm-input-otp-group',
54
- host: { 'data-slot': 'input-otp-group' },
55
- }]
56
- }], ctorParameters: () => [] });
57
-
58
- class HlmInputOtpSeparator {
59
- constructor() {
60
- classes(() => "[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center");
61
- }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
63
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HlmInputOtpSeparator, isStandalone: true, selector: "hlm-input-otp-separator", host: { attributes: { "role": "separator", "data-slot": "input-otp-separator" } }, providers: [provideIcons({ lucideMinus })], ngImport: i0, template: `
64
- <ng-icon name="lucideMinus" />
65
- `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
66
- }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpSeparator, decorators: [{
68
- type: Component,
69
- args: [{
70
- selector: 'hlm-input-otp-separator',
71
- imports: [NgIcon],
72
- providers: [provideIcons({ lucideMinus })],
73
- changeDetection: ChangeDetectionStrategy.OnPush,
74
- host: {
75
- role: 'separator',
76
- 'data-slot': 'input-otp-separator',
77
- },
78
- template: `
72
+ isInline: true,
73
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
74
+ });
75
+ }
76
+ };
77
+ i0.ɵɵngDeclareClassMetadata({
78
+ minVersion: "12.0.0",
79
+ version: "22.2.4",
80
+ ngImport: i0,
81
+ type: HlmInputOtpFakeCaret,
82
+ decorators: [{
83
+ type: Component,
84
+ args: [{
85
+ selector: "hlm-input-otp-fake-caret",
86
+ changeDetection: ChangeDetectionStrategy.OnPush,
87
+ template: `
88
+ <div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
89
+ `
90
+ }]
91
+ }],
92
+ ctorParameters: () => []
93
+ });
94
+ var HlmInputOtpGroup = class HlmInputOtpGroup {
95
+ constructor() {
96
+ classes(() => "has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center");
97
+ }
98
+ static {
99
+ this.ɵfac = i0.ɵɵngDeclareFactory({
100
+ minVersion: "12.0.0",
101
+ version: "22.2.4",
102
+ ngImport: i0,
103
+ type: HlmInputOtpGroup,
104
+ deps: [],
105
+ target: i0.ɵɵFactoryTarget.Directive
106
+ });
107
+ }
108
+ static {
109
+ this.ɵdir = i0.ɵɵngDeclareDirective({
110
+ minVersion: "14.0.0",
111
+ version: "22.2.4",
112
+ type: HlmInputOtpGroup,
113
+ isStandalone: true,
114
+ selector: "[hlmInputOtpGroup],hlm-input-otp-group",
115
+ host: { attributes: { "data-slot": "input-otp-group" } },
116
+ ngImport: i0
117
+ });
118
+ }
119
+ };
120
+ i0.ɵɵngDeclareClassMetadata({
121
+ minVersion: "12.0.0",
122
+ version: "22.2.4",
123
+ ngImport: i0,
124
+ type: HlmInputOtpGroup,
125
+ decorators: [{
126
+ type: Directive,
127
+ args: [{
128
+ selector: "[hlmInputOtpGroup],hlm-input-otp-group",
129
+ host: { "data-slot": "input-otp-group" }
130
+ }]
131
+ }],
132
+ ctorParameters: () => []
133
+ });
134
+ var HlmInputOtpSeparator = class HlmInputOtpSeparator {
135
+ constructor() {
136
+ classes(() => "[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center");
137
+ }
138
+ static {
139
+ this.ɵfac = i0.ɵɵngDeclareFactory({
140
+ minVersion: "12.0.0",
141
+ version: "22.2.4",
142
+ ngImport: i0,
143
+ type: HlmInputOtpSeparator,
144
+ deps: [],
145
+ target: i0.ɵɵFactoryTarget.Component
146
+ });
147
+ }
148
+ static {
149
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
150
+ minVersion: "14.0.0",
151
+ version: "22.2.4",
152
+ type: HlmInputOtpSeparator,
153
+ isStandalone: true,
154
+ selector: "hlm-input-otp-separator",
155
+ host: { attributes: {
156
+ "role": "separator",
157
+ "data-slot": "input-otp-separator"
158
+ } },
159
+ providers: [provideIcons({ lucideMinus })],
160
+ ngImport: i0,
161
+ template: `
79
162
  <ng-icon name="lucideMinus" />
80
163
  `,
81
- }]
82
- }], ctorParameters: () => [] });
83
-
84
- class HlmInputOtpSlot {
85
- constructor() {
86
- /** The index of the slot to render the char or a fake caret */
87
- this.index = input.required({ ...(ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {}), transform: numberAttribute });
88
- /** Whether to force the input into an invalid state. */
89
- this.forceInvalid = input(false, { ...(ngDevMode ? { debugName: "forceInvalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
90
- classes(() => 'dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active="true"]]:border-ring has-[brn-input-otp-slot[data-active="true"]]:ring-ring/50 has-[brn-input-otp-slot[data-active="true"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active="true"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active="true"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active="true"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active="true"]]:z-10');
91
- }
92
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpSlot, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
93
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmInputOtpSlot, isStandalone: true, selector: "hlm-input-otp-slot", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, forceInvalid: { classPropertyName: "forceInvalid", publicName: "forceInvalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "input-otp-slot" } }, ngImport: i0, template: `
164
+ isInline: true,
165
+ dependencies: [{
166
+ kind: "component",
167
+ type: NgIcon,
168
+ selector: "ng-icon",
169
+ inputs: [
170
+ "name",
171
+ "svg",
172
+ "size",
173
+ "strokeWidth",
174
+ "color"
175
+ ]
176
+ }],
177
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
178
+ });
179
+ }
180
+ };
181
+ i0.ɵɵngDeclareClassMetadata({
182
+ minVersion: "12.0.0",
183
+ version: "22.2.4",
184
+ ngImport: i0,
185
+ type: HlmInputOtpSeparator,
186
+ decorators: [{
187
+ type: Component,
188
+ args: [{
189
+ selector: "hlm-input-otp-separator",
190
+ imports: [NgIcon],
191
+ providers: [provideIcons({ lucideMinus })],
192
+ changeDetection: ChangeDetectionStrategy.OnPush,
193
+ host: {
194
+ role: "separator",
195
+ "data-slot": "input-otp-separator"
196
+ },
197
+ template: `
198
+ <ng-icon name="lucideMinus" />
199
+ `
200
+ }]
201
+ }],
202
+ ctorParameters: () => []
203
+ });
204
+ var HlmInputOtpSlot = class HlmInputOtpSlot {
205
+ constructor() {
206
+ this.index = input.required({
207
+ ...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
208
+ transform: numberAttribute
209
+ });
210
+ this.forceInvalid = input(false, {
211
+ ...ngDevMode ? { debugName: "forceInvalid" } : /* istanbul ignore next */ {},
212
+ transform: booleanAttribute
213
+ });
214
+ classes(() => "dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active=\"true\"]]:border-ring has-[brn-input-otp-slot[data-active=\"true\"]]:ring-ring/50 has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active=\"true\"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active=\"true\"]]:z-10");
215
+ }
216
+ static {
217
+ this.ɵfac = i0.ɵɵngDeclareFactory({
218
+ minVersion: "12.0.0",
219
+ version: "22.2.4",
220
+ ngImport: i0,
221
+ type: HlmInputOtpSlot,
222
+ deps: [],
223
+ target: i0.ɵɵFactoryTarget.Component
224
+ });
225
+ }
226
+ static {
227
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
228
+ minVersion: "17.1.0",
229
+ version: "22.2.4",
230
+ type: HlmInputOtpSlot,
231
+ isStandalone: true,
232
+ selector: "hlm-input-otp-slot",
233
+ inputs: {
234
+ index: {
235
+ classPropertyName: "index",
236
+ publicName: "index",
237
+ isSignal: true,
238
+ isRequired: true,
239
+ transformFunction: null
240
+ },
241
+ forceInvalid: {
242
+ classPropertyName: "forceInvalid",
243
+ publicName: "forceInvalid",
244
+ isSignal: true,
245
+ isRequired: false,
246
+ transformFunction: null
247
+ }
248
+ },
249
+ host: { attributes: { "data-slot": "input-otp-slot" } },
250
+ ngImport: i0,
251
+ template: `
94
252
  <brn-input-otp-slot [index]="index()" [forceInvalid]="forceInvalid()">
95
253
  <hlm-input-otp-fake-caret />
96
254
  </brn-input-otp-slot>
97
- `, isInline: true, dependencies: [{ kind: "component", type: BrnInputOtpSlot, selector: "brn-input-otp-slot", inputs: ["index", "forceInvalid"] }, { kind: "component", type: HlmInputOtpFakeCaret, selector: "hlm-input-otp-fake-caret" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
98
- }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInputOtpSlot, decorators: [{
100
- type: Component,
101
- args: [{
102
- selector: 'hlm-input-otp-slot',
103
- imports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],
104
- changeDetection: ChangeDetectionStrategy.OnPush,
105
- host: { 'data-slot': 'input-otp-slot' },
106
- template: `
255
+ `,
256
+ isInline: true,
257
+ dependencies: [{
258
+ kind: "component",
259
+ type: BrnInputOtpSlot,
260
+ selector: "brn-input-otp-slot",
261
+ inputs: ["index", "forceInvalid"]
262
+ }, {
263
+ kind: "component",
264
+ type: HlmInputOtpFakeCaret,
265
+ selector: "hlm-input-otp-fake-caret"
266
+ }],
267
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
268
+ });
269
+ }
270
+ };
271
+ i0.ɵɵngDeclareClassMetadata({
272
+ minVersion: "12.0.0",
273
+ version: "22.2.4",
274
+ ngImport: i0,
275
+ type: HlmInputOtpSlot,
276
+ decorators: [{
277
+ type: Component,
278
+ args: [{
279
+ selector: "hlm-input-otp-slot",
280
+ imports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],
281
+ changeDetection: ChangeDetectionStrategy.OnPush,
282
+ host: { "data-slot": "input-otp-slot" },
283
+ template: `
107
284
  <brn-input-otp-slot [index]="index()" [forceInvalid]="forceInvalid()">
108
285
  <hlm-input-otp-fake-caret />
109
286
  </brn-input-otp-slot>
110
- `,
111
- }]
112
- }], ctorParameters: () => [], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], forceInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceInvalid", required: false }] }] } });
113
-
287
+ `
288
+ }]
289
+ }],
290
+ ctorParameters: () => [],
291
+ propDecorators: {
292
+ index: [{
293
+ type: i0.Input,
294
+ args: [{
295
+ isSignal: true,
296
+ alias: "index",
297
+ required: true
298
+ }]
299
+ }],
300
+ forceInvalid: [{
301
+ type: i0.Input,
302
+ args: [{
303
+ isSignal: true,
304
+ alias: "forceInvalid",
305
+ required: false
306
+ }]
307
+ }]
308
+ }
309
+ });
114
310
  const HlmInputOtpImports = [
115
- HlmInputOtp,
116
- HlmInputOtpGroup,
117
- HlmInputOtpSeparator,
118
- HlmInputOtpSlot,
119
- HlmInputOtpFakeCaret,
311
+ HlmInputOtp,
312
+ HlmInputOtpGroup,
313
+ HlmInputOtpSeparator,
314
+ HlmInputOtpSlot,
315
+ HlmInputOtpFakeCaret
120
316
  ];
121
-
122
- /**
123
- * Generated bundle index. Do not edit.
124
- */
125
-
126
317
  export { HlmInputOtp, HlmInputOtpFakeCaret, HlmInputOtpGroup, HlmInputOtpImports, HlmInputOtpSeparator, HlmInputOtpSlot };
127
- //# sourceMappingURL=yukit-web-helm-input-otp.mjs.map
318
+
319
+ //# sourceMappingURL=yukit-web-helm-input-otp.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-input-otp.mjs","sources":["../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-fake-caret.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-group.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-separator.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-slot.ts","../../../projects/yukit-web/helm/input-otp/src/index.ts","../../../projects/yukit-web/helm/input-otp/src/yukit-web-helm-input-otp.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',\n\thost: { 'data-slot': 'input-otp' },\n})\nexport class HlmInputOtp {\n\tconstructor() {\n\t\tclasses(() => 'gap-2 flex items-center has-disabled:opacity-50');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-fake-caret',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"animate-caret-blink bg-foreground h-4 w-px duration-1000\"></div>\n\t`,\n})\nexport class HlmInputOtpFakeCaret {\n\tconstructor() {\n\t\tclasses(() => 'pointer-events-none absolute inset-0 flex items-center justify-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInputOtpGroup],hlm-input-otp-group',\n\thost: { 'data-slot': 'input-otp-group' },\n})\nexport class HlmInputOtpGroup {\n\tconstructor() {\n\t\tclasses(() => 'has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideMinus } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-separator',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideMinus })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\trole: 'separator',\n\t\t'data-slot': 'input-otp-separator',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideMinus\" />\n\t`,\n})\nexport class HlmInputOtpSeparator {\n\tconstructor() {\n\t\tclasses(() => \"[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center\");\n\t}\n}\n","import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input, numberAttribute } from '@angular/core';\nimport { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmInputOtpFakeCaret } from './hlm-input-otp-fake-caret';\n\n@Component({\n\tselector: 'hlm-input-otp-slot',\n\timports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { 'data-slot': 'input-otp-slot' },\n\ttemplate: `\n\t\t<brn-input-otp-slot [index]=\"index()\" [forceInvalid]=\"forceInvalid()\">\n\t\t\t<hlm-input-otp-fake-caret />\n\t\t</brn-input-otp-slot>\n\t`,\n})\nexport class HlmInputOtpSlot {\n\t/** The index of the slot to render the char or a fake caret */\n\tpublic readonly index = input.required<number, NumberInput>({ transform: numberAttribute });\n\n\t/** Whether to force the input into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active=\"true\"]]:border-ring has-[brn-input-otp-slot[data-active=\"true\"]]:ring-ring/50 has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active=\"true\"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active=\"true\"]]:z-10',\n\t\t);\n\t}\n}\n","import { HlmInputOtp } from './lib/hlm-input-otp';\nimport { HlmInputOtpFakeCaret } from './lib/hlm-input-otp-fake-caret';\nimport { HlmInputOtpGroup } from './lib/hlm-input-otp-group';\nimport { HlmInputOtpSeparator } from './lib/hlm-input-otp-separator';\nimport { HlmInputOtpSlot } from './lib/hlm-input-otp-slot';\n\nexport * from './lib/hlm-input-otp';\nexport * from './lib/hlm-input-otp-fake-caret';\nexport * from './lib/hlm-input-otp-group';\nexport * from './lib/hlm-input-otp-separator';\nexport * from './lib/hlm-input-otp-slot';\n\nexport const HlmInputOtpImports = [\n\tHlmInputOtp,\n\tHlmInputOtpGroup,\n\tHlmInputOtpSeparator,\n\tHlmInputOtpSlot,\n\tHlmInputOtpFakeCaret,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAOa,WAAW,CAAA;AACvB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,iDAAiD,CAAC;IACjE;+GAHY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gDAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,gDAAgD;AAC1D,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE;AAClC,iBAAA;;;MCIY,oBAAoB,CAAA;AAChC,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,uEAAuE,CAAC;IACvF;+GAHY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA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AE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE;AACvC,oBAAA,QAAQ,EAAE;;;;AAIT,CAAA,CAAA;AACD,iBAAA;;;ACJM,MAAM,kBAAkB,GAAG;IACjC,WAAW;IACX,gBAAgB;IAChB,oBAAoB;IACpB,eAAe;IACf,oBAAoB;;;ACjBrB;;AAEG;;"}
1
+ {"version":3,"file":"yukit-web-helm-input-otp.mjs","names":[],"sources":["../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-fake-caret.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-group.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-separator.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-slot.ts","../../../projects/yukit-web/helm/input-otp/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',\n\thost: { 'data-slot': 'input-otp' },\n})\nexport class HlmInputOtp {\n\tconstructor() {\n\t\tclasses(() => 'gap-2 flex items-center has-disabled:opacity-50');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-fake-caret',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"animate-caret-blink bg-foreground h-4 w-px duration-1000\"></div>\n\t`,\n})\nexport class HlmInputOtpFakeCaret {\n\tconstructor() {\n\t\tclasses(() => 'pointer-events-none absolute inset-0 flex items-center justify-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInputOtpGroup],hlm-input-otp-group',\n\thost: { 'data-slot': 'input-otp-group' },\n})\nexport class HlmInputOtpGroup {\n\tconstructor() {\n\t\tclasses(() => 'has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideMinus } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-separator',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideMinus })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\trole: 'separator',\n\t\t'data-slot': 'input-otp-separator',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideMinus\" />\n\t`,\n})\nexport class HlmInputOtpSeparator {\n\tconstructor() {\n\t\tclasses(() => \"[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center\");\n\t}\n}\n","import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input, numberAttribute } from '@angular/core';\nimport { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmInputOtpFakeCaret } from './hlm-input-otp-fake-caret';\n\n@Component({\n\tselector: 'hlm-input-otp-slot',\n\timports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { 'data-slot': 'input-otp-slot' },\n\ttemplate: `\n\t\t<brn-input-otp-slot [index]=\"index()\" [forceInvalid]=\"forceInvalid()\">\n\t\t\t<hlm-input-otp-fake-caret />\n\t\t</brn-input-otp-slot>\n\t`,\n})\nexport class HlmInputOtpSlot {\n\t/** The index of the slot to render the char or a fake caret */\n\tpublic readonly index = input.required<number, NumberInput>({ transform: numberAttribute });\n\n\t/** Whether to force the input into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active=\"true\"]]:border-ring has-[brn-input-otp-slot[data-active=\"true\"]]:ring-ring/50 has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active=\"true\"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active=\"true\"]]:z-10',\n\t\t);\n\t}\n}\n","import { HlmInputOtp } from './lib/hlm-input-otp';\nimport { HlmInputOtpFakeCaret } from './lib/hlm-input-otp-fake-caret';\nimport { HlmInputOtpGroup } from './lib/hlm-input-otp-group';\nimport { HlmInputOtpSeparator } from './lib/hlm-input-otp-separator';\nimport { HlmInputOtpSlot } from './lib/hlm-input-otp-slot';\n\nexport * from './lib/hlm-input-otp';\nexport * from './lib/hlm-input-otp-fake-caret';\nexport * from './lib/hlm-input-otp-group';\nexport * from './lib/hlm-input-otp-separator';\nexport * from './lib/hlm-input-otp-slot';\n\nexport const HlmInputOtpImports = [\n\tHlmInputOtp,\n\tHlmInputOtpGroup,\n\tHlmInputOtpSeparator,\n\tHlmInputOtpSlot,\n\tHlmInputOtpFakeCaret,\n] as const;\n"],"mappings":";;;;;;AAOA,IAAa,cAAb,MAAa,YAAW;CACvB,cAAA;EACC,cAAc,iDAAiD;CAChE;CAHY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;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ACzC,MAAM,EAAE,aAAa,iBAAgB;GACrC,UAAU;;;;;EAKV,CAAA;;;;;;;;;;;;;;;;;;;;;;ACJD,MAAa,qBAAqB;CACjC;CACA;CACA;CACA;CACA;AACS"}
@@ -1,32 +1,64 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import * as i2 from '@spartan-ng/brain/field';
4
- import { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';
5
- import * as i1 from '@spartan-ng/brain/input';
6
- import { BrnInput } from '@spartan-ng/brain/input';
7
- import { classes } from 'yukit-web/helm/utils';
8
-
9
- class HlmInput {
10
- constructor() {
11
- classes(() => 'dark:bg-input/30 border-input 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 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50');
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
14
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmInput, isStandalone: true, selector: "[hlmInput]", host: { attributes: { "data-slot": "input" } }, hostDirectives: [{ directive: i1.BrnInput, inputs: ["id", "id", "forceInvalid", "forceInvalid"] }, { directive: i2.BrnFieldControlDescribedBy }], ngImport: i0 }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmInput, decorators: [{
17
- type: Directive,
18
- args: [{
19
- selector: '[hlmInput]',
20
- hostDirectives: [{ directive: BrnInput, inputs: ['id', 'forceInvalid'] }, BrnFieldControlDescribedBy],
21
- host: { 'data-slot': 'input' },
22
- }]
23
- }], ctorParameters: () => [] });
24
-
1
+ import * as i0 from "@angular/core";
2
+ import { Directive } from "@angular/core";
3
+ import * as i2 from "@spartan-ng/brain/field";
4
+ import { BrnFieldControlDescribedBy } from "@spartan-ng/brain/field";
5
+ import * as i1 from "@spartan-ng/brain/input";
6
+ import { BrnInput } from "@spartan-ng/brain/input";
7
+ import { classes } from "yukit-web/helm/utils";
8
+ var HlmInput = class HlmInput {
9
+ constructor() {
10
+ classes(() => "dark:bg-input/30 border-input 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 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50");
11
+ }
12
+ static {
13
+ this.ɵfac = i0.ɵɵngDeclareFactory({
14
+ minVersion: "12.0.0",
15
+ version: "22.2.4",
16
+ ngImport: i0,
17
+ type: HlmInput,
18
+ deps: [],
19
+ target: i0.ɵɵFactoryTarget.Directive
20
+ });
21
+ }
22
+ static {
23
+ this.ɵdir = i0.ɵɵngDeclareDirective({
24
+ minVersion: "14.0.0",
25
+ version: "22.2.4",
26
+ type: HlmInput,
27
+ isStandalone: true,
28
+ selector: "[hlmInput]",
29
+ host: { attributes: { "data-slot": "input" } },
30
+ hostDirectives: [{
31
+ directive: i1.BrnInput,
32
+ inputs: [
33
+ "id",
34
+ "id",
35
+ "forceInvalid",
36
+ "forceInvalid"
37
+ ]
38
+ }, { directive: i2.BrnFieldControlDescribedBy }],
39
+ ngImport: i0
40
+ });
41
+ }
42
+ };
43
+ i0.ɵɵngDeclareClassMetadata({
44
+ minVersion: "12.0.0",
45
+ version: "22.2.4",
46
+ ngImport: i0,
47
+ type: HlmInput,
48
+ decorators: [{
49
+ type: Directive,
50
+ args: [{
51
+ selector: "[hlmInput]",
52
+ hostDirectives: [{
53
+ directive: BrnInput,
54
+ inputs: ["id", "forceInvalid"]
55
+ }, BrnFieldControlDescribedBy],
56
+ host: { "data-slot": "input" }
57
+ }]
58
+ }],
59
+ ctorParameters: () => []
60
+ });
25
61
  const HlmInputImports = [HlmInput];
26
-
27
- /**
28
- * Generated bundle index. Do not edit.
29
- */
30
-
31
62
  export { HlmInput, HlmInputImports };
32
- //# sourceMappingURL=yukit-web-helm-input.mjs.map
63
+
64
+ //# sourceMappingURL=yukit-web-helm-input.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-input.mjs","sources":["../../../projects/yukit-web/helm/input/src/lib/hlm-input.ts","../../../projects/yukit-web/helm/input/src/index.ts","../../../projects/yukit-web/helm/input/src/yukit-web-helm-input.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';\nimport { BrnInput } from '@spartan-ng/brain/input';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInput]',\n\thostDirectives: [{ directive: BrnInput, inputs: ['id', 'forceInvalid'] }, BrnFieldControlDescribedBy],\n\thost: { 'data-slot': 'input' },\n})\nexport class HlmInput {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input 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 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n\t\t);\n\t}\n}\n","import { HlmInput } from './lib/hlm-input';\n\nexport * from './lib/hlm-input';\n\nexport const HlmInputImports = [HlmInput] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,QAAQ,CAAA;AACpB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CACN,MACC,gwBAAgwB,CACjwB;IACF;+GANY,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,OAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,CAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,cAAA,CAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBALpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,EAAE,0BAA0B,CAAC;AACrG,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE;AAC9B,iBAAA;;;ACLM,MAAM,eAAe,GAAG,CAAC,QAAQ;;ACJxC;;AAEG;;"}
1
+ {"version":3,"file":"yukit-web-helm-input.mjs","names":[],"sources":["../../../projects/yukit-web/helm/input/src/lib/hlm-input.ts","../../../projects/yukit-web/helm/input/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';\nimport { BrnInput } from '@spartan-ng/brain/input';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInput]',\n\thostDirectives: [{ directive: BrnInput, inputs: ['id', 'forceInvalid'] }, BrnFieldControlDescribedBy],\n\thost: { 'data-slot': 'input' },\n})\nexport class HlmInput {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input 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 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n\t\t);\n\t}\n}\n","import { HlmInput } from './lib/hlm-input';\n\nexport * from './lib/hlm-input';\n\nexport const HlmInputImports = [HlmInput] as const;\n"],"mappings":";;;;;;;AAUA,IAAa,WAAb,MAAa,SAAQ;CACpB,cAAA;EACC,cAEE,gwBAAgwB;CAEnwB;CANY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAQ,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAR;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAQ,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,aAAA,QAAA,EAAA;GAAA,gBAAA,CAAA;IAAA,WAAA,GAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,GAAA,EAAA,WAAA,GAAA,2BAAA,CAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAR,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAQ,YAAA,CAAA;EALpB,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,gBAAgB,CAAC;IAAE,WAAW;IAAU,QAAQ,CAAC,MAAM,cAAc;GAAC,GAAI,0BAA0B;GACpG,MAAM,EAAE,aAAa,QAAO;EAC5B,CAAA;;;;ACLD,MAAa,kBAAkB,CAAC,QAAQ"}