yukit-web 0.10.6 → 0.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24457 -9670
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/types/yukit-web-chart.d.ts +184 -125
  129. package/types/yukit-web-helm-accordion.d.ts +49 -28
  130. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  131. package/types/yukit-web-helm-alert.d.ts +30 -32
  132. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  133. package/types/yukit-web-helm-attachment.d.ts +97 -69
  134. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  135. package/types/yukit-web-helm-avatar.d.ts +44 -39
  136. package/types/yukit-web-helm-badge.d.ts +18 -17
  137. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  138. package/types/yukit-web-helm-bubble.d.ts +54 -40
  139. package/types/yukit-web-helm-button-group.d.ts +29 -22
  140. package/types/yukit-web-helm-button.d.ts +41 -31
  141. package/types/yukit-web-helm-calendar.d.ts +157 -85
  142. package/types/yukit-web-helm-card.d.ts +38 -42
  143. package/types/yukit-web-helm-carousel.d.ts +105 -73
  144. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  145. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  146. package/types/yukit-web-helm-combobox.d.ts +355 -150
  147. package/types/yukit-web-helm-command.d.ts +140 -73
  148. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  149. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  150. package/types/yukit-web-helm-dialog.d.ts +106 -78
  151. package/types/yukit-web-helm-drawer.d.ts +90 -61
  152. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  153. package/types/yukit-web-helm-empty.d.ts +38 -42
  154. package/types/yukit-web-helm-field.d.ts +122 -91
  155. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  156. package/types/yukit-web-helm-input-group.d.ts +63 -41
  157. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  158. package/types/yukit-web-helm-input.d.ts +19 -12
  159. package/types/yukit-web-helm-item.d.ts +90 -82
  160. package/types/yukit-web-helm-kbd.d.ts +10 -15
  161. package/types/yukit-web-helm-label.d.ts +14 -11
  162. package/types/yukit-web-helm-marker.d.ts +26 -27
  163. package/types/yukit-web-helm-menubar.d.ts +61 -32
  164. package/types/yukit-web-helm-message.d.ts +34 -38
  165. package/types/yukit-web-helm-native-select.d.ts +102 -61
  166. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  167. package/types/yukit-web-helm-pagination.d.ts +344 -166
  168. package/types/yukit-web-helm-popover.d.ts +62 -42
  169. package/types/yukit-web-helm-progress.d.ts +27 -20
  170. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  171. package/types/yukit-web-helm-resizable.d.ts +46 -24
  172. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  173. package/types/yukit-web-helm-select.d.ts +231 -114
  174. package/types/yukit-web-helm-separator.d.ts +15 -12
  175. package/types/yukit-web-helm-sheet.d.ts +94 -65
  176. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  177. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  178. package/types/yukit-web-helm-slider.d.ts +33 -13
  179. package/types/yukit-web-helm-sonner.d.ts +112 -51
  180. package/types/yukit-web-helm-spinner.d.ts +24 -17
  181. package/types/yukit-web-helm-switch.d.ts +89 -51
  182. package/types/yukit-web-helm-table.d.ts +38 -42
  183. package/types/yukit-web-helm-tabs.d.ts +116 -60
  184. package/types/yukit-web-helm-textarea.d.ts +19 -12
  185. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  186. package/types/yukit-web-helm-toggle.d.ts +39 -21
  187. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  188. package/types/yukit-web-helm-typography.d.ts +62 -77
  189. package/types/yukit-web-helm-utils.d.ts +8 -11
  190. package/types/yukit-web.d.ts +5092 -2351
@@ -1,48 +1,122 @@
1
- import * as i0 from '@angular/core';
2
- import { input, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { NgIcon, provideIcons } from '@ng-icons/core';
4
- import { lucideLoader2 } from '@ng-icons/lucide';
5
- import { classes } from 'yukit-web/helm/utils';
6
-
7
- class HlmSpinner {
8
- constructor() {
9
- /**
10
- * The name of the icon to be used as the spinner.
11
- * Use provideIcons({ ... }) to register custom icons.
12
- */
13
- this.icon = input('lucideLoader2', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
14
- /** Aria label for the spinner for accessibility. */
15
- this.ariaLabel = input('Loading', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
16
- classes(() => 'inline-flex text-[length:--spacing(4)] motion-safe:animate-spin');
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmSpinner, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
19
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmSpinner, isStandalone: true, selector: "hlm-spinner", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "spinner", "role": "status" }, properties: { "attr.aria-label": "ariaLabel()" } }, providers: [provideIcons({ lucideLoader2 })], ngImport: i0, template: `
20
- <ng-icon [name]="icon()" />
21
- `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmSpinner, decorators: [{
24
- type: Component,
25
- args: [{
26
- selector: 'hlm-spinner',
27
- imports: [NgIcon],
28
- providers: [provideIcons({ lucideLoader2 })],
29
- changeDetection: ChangeDetectionStrategy.OnPush,
30
- host: {
31
- 'data-slot': 'spinner',
32
- role: 'status',
33
- '[attr.aria-label]': 'ariaLabel()',
34
- },
35
- template: `
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, input } from "@angular/core";
3
+ import { NgIcon, provideIcons } from "@ng-icons/core";
4
+ import { lucideLoader2 } from "@ng-icons/lucide";
5
+ import { classes } from "yukit-web/helm/utils";
6
+ var HlmSpinner = class HlmSpinner {
7
+ constructor() {
8
+ this.icon = input("lucideLoader2", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
9
+ this.ariaLabel = input("Loading", {
10
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
11
+ alias: "aria-label"
12
+ });
13
+ classes(() => "inline-flex text-[length:--spacing(4)] motion-safe:animate-spin");
14
+ }
15
+ static {
16
+ this.ɵfac = i0.ɵɵngDeclareFactory({
17
+ minVersion: "12.0.0",
18
+ version: "22.2.4",
19
+ ngImport: i0,
20
+ type: HlmSpinner,
21
+ deps: [],
22
+ target: i0.ɵɵFactoryTarget.Component
23
+ });
24
+ }
25
+ static {
26
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
27
+ minVersion: "17.1.0",
28
+ version: "22.2.4",
29
+ type: HlmSpinner,
30
+ isStandalone: true,
31
+ selector: "hlm-spinner",
32
+ inputs: {
33
+ icon: {
34
+ classPropertyName: "icon",
35
+ publicName: "icon",
36
+ isSignal: true,
37
+ isRequired: false,
38
+ transformFunction: null
39
+ },
40
+ ariaLabel: {
41
+ classPropertyName: "ariaLabel",
42
+ publicName: "aria-label",
43
+ isSignal: true,
44
+ isRequired: false,
45
+ transformFunction: null
46
+ }
47
+ },
48
+ host: {
49
+ attributes: {
50
+ "data-slot": "spinner",
51
+ "role": "status"
52
+ },
53
+ properties: { "attr.aria-label": "ariaLabel()" }
54
+ },
55
+ providers: [provideIcons({ lucideLoader2 })],
56
+ ngImport: i0,
57
+ template: `
36
58
  <ng-icon [name]="icon()" />
37
59
  `,
38
- }]
39
- }], ctorParameters: () => [], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }] } });
40
-
60
+ isInline: true,
61
+ dependencies: [{
62
+ kind: "component",
63
+ type: NgIcon,
64
+ selector: "ng-icon",
65
+ inputs: [
66
+ "name",
67
+ "svg",
68
+ "size",
69
+ "strokeWidth",
70
+ "color"
71
+ ]
72
+ }],
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: HlmSpinner,
82
+ decorators: [{
83
+ type: Component,
84
+ args: [{
85
+ selector: "hlm-spinner",
86
+ imports: [NgIcon],
87
+ providers: [provideIcons({ lucideLoader2 })],
88
+ changeDetection: ChangeDetectionStrategy.OnPush,
89
+ host: {
90
+ "data-slot": "spinner",
91
+ role: "status",
92
+ "[attr.aria-label]": "ariaLabel()"
93
+ },
94
+ template: `
95
+ <ng-icon [name]="icon()" />
96
+ `
97
+ }]
98
+ }],
99
+ ctorParameters: () => [],
100
+ propDecorators: {
101
+ icon: [{
102
+ type: i0.Input,
103
+ args: [{
104
+ isSignal: true,
105
+ alias: "icon",
106
+ required: false
107
+ }]
108
+ }],
109
+ ariaLabel: [{
110
+ type: i0.Input,
111
+ args: [{
112
+ isSignal: true,
113
+ alias: "aria-label",
114
+ required: false
115
+ }]
116
+ }]
117
+ }
118
+ });
41
119
  const HlmSpinnerImports = [HlmSpinner];
42
-
43
- /**
44
- * Generated bundle index. Do not edit.
45
- */
46
-
47
120
  export { HlmSpinner, HlmSpinnerImports };
48
- //# sourceMappingURL=yukit-web-helm-spinner.mjs.map
121
+
122
+ //# sourceMappingURL=yukit-web-helm-spinner.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-spinner.mjs","sources":["../../../projects/yukit-web/helm/spinner/src/lib/hlm-spinner.ts","../../../projects/yukit-web/helm/spinner/src/index.ts","../../../projects/yukit-web/helm/spinner/src/yukit-web-helm-spinner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideLoader2 } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-spinner',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideLoader2 })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'spinner',\n\t\trole: 'status',\n\t\t'[attr.aria-label]': 'ariaLabel()',\n\t},\n\ttemplate: `\n\t\t<ng-icon [name]=\"icon()\" />\n\t`,\n})\nexport class HlmSpinner {\n\t/**\n\t * The name of the icon to be used as the spinner.\n\t * Use provideIcons({ ... }) to register custom icons.\n\t */\n\tpublic readonly icon = input<string>('lucideLoader2');\n\n\t/** Aria label for the spinner for accessibility. */\n\tpublic readonly ariaLabel = input<string>('Loading', { alias: 'aria-label' });\n\n\tconstructor() {\n\t\tclasses(() => 'inline-flex text-[length:--spacing(4)] motion-safe:animate-spin');\n\t}\n}\n","import { HlmSpinner } from './lib/hlm-spinner';\n\nexport * from './lib/hlm-spinner';\n\nexport const HlmSpinnerImports = [HlmSpinner] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAmBa,UAAU,CAAA;AAUtB,IAAA,WAAA,GAAA;AATA;;;AAGG;AACa,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,eAAe,2EAAC;;QAGrC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,SAAS,iFAAI,KAAK,EAAE,YAAY,EAAA,CAAG;AAG5E,QAAA,OAAO,CAAC,MAAM,iEAAiE,CAAC;IACjF;+GAZY,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,EAAA,EAAA,SAAA,EAXX,CAAC,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAOlC;;AAET,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAVS,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,KAAA,EAAA,MAAA,EAAA,aAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAYJ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAdtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,aAAa;oBACvB,OAAO,EAAE,CAAC,MAAM,CAAC;oBACjB,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC;oBAC5C,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,SAAS;AACtB,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,mBAAmB,EAAE,aAAa;AAClC,qBAAA;AACD,oBAAA,QAAQ,EAAE;;AAET,CAAA,CAAA;AACD,iBAAA;;;ACdM,MAAM,iBAAiB,GAAG,CAAC,UAAU;;ACJ5C;;AAEG;;"}
1
+ {"version":3,"file":"yukit-web-helm-spinner.mjs","names":[],"sources":["../../../projects/yukit-web/helm/spinner/src/lib/hlm-spinner.ts","../../../projects/yukit-web/helm/spinner/src/index.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideLoader2 } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-spinner',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideLoader2 })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'spinner',\n\t\trole: 'status',\n\t\t'[attr.aria-label]': 'ariaLabel()',\n\t},\n\ttemplate: `\n\t\t<ng-icon [name]=\"icon()\" />\n\t`,\n})\nexport class HlmSpinner {\n\t/**\n\t * The name of the icon to be used as the spinner.\n\t * Use provideIcons({ ... }) to register custom icons.\n\t */\n\tpublic readonly icon = input<string>('lucideLoader2');\n\n\t/** Aria label for the spinner for accessibility. */\n\tpublic readonly ariaLabel = input<string>('Loading', { alias: 'aria-label' });\n\n\tconstructor() {\n\t\tclasses(() => 'inline-flex text-[length:--spacing(4)] motion-safe:animate-spin');\n\t}\n}\n","import { HlmSpinner } from './lib/hlm-spinner';\n\nexport * from './lib/hlm-spinner';\n\nexport const HlmSpinnerImports = [HlmSpinner] as const;\n"],"mappings":";;;;;AAmBA,IAAa,aAAb,MAAa,WAAU;CAUtB,cAAA;EALgB,KAAA,OAAO,MAAc,iBAAgB,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAGrC,KAAA,YAAY,MAAc,WAAS;GAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;GAAI,OAAO;EAAY,CAAA;EAGzE,cAAc,iEAAiE;CAChF;CAZY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAU,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAV;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAU,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,MAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,WAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA;IAAA,YAAA;KAAA,aAAA;KAAA,QAAA;IAAA;IAAA,YAAA,EAAA,mBAAA,cAAA;GAAA;GAAA,WAXX,CAAC,aAAa,EAAE,cAAa,CAAE,CAAC;GAAC,UAAA;GAAA,UAOlC;;;GAET,UAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MAVS;IAAM,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAYJ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EAdtB,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,SAAS,CAAC,MAAM;GAChB,WAAW,CAAC,aAAa,EAAE,cAAa,CAAE,CAAC;GAC3C,iBAAiB,wBAAwB;GACzC,MAAM;IACL,aAAa;IACb,MAAM;IACN,qBAAqB;GACrB;GACD,UAAU;;;EAGV,CAAA;;;;;;;;;;;;;;;;;;;;;;ACdD,MAAa,oBAAoB,CAAC,UAAU"}
@@ -1,72 +1,192 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, forwardRef, input, computed, booleanAttribute, linkedSignal, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { BrnSwitchThumb, BrnSwitch } from '@spartan-ng/brain/switch';
5
- import { classes, hlm } from 'yukit-web/helm/utils';
6
-
7
- class HlmSwitchThumb {
8
- constructor() {
9
- classes(() => 'bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-unchecked:translate-x-0 data-checked:ltr:translate-x-[calc(100%-2px)] data-checked:rtl:-translate-x-[calc(100%-2px)] pointer-events-none block ring-0 transition-transform');
10
- }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmSwitchThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
12
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmSwitchThumb, isStandalone: true, selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]", host: { attributes: { "data-slot": "switch-thumb" } }, ngImport: i0 }); }
13
- }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmSwitchThumb, decorators: [{
15
- type: Directive,
16
- args: [{
17
- selector: 'brn-switch-thumb[hlm],[hlmSwitchThumb]',
18
- host: { 'data-slot': 'switch-thumb' },
19
- }]
20
- }], ctorParameters: () => [] });
21
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, computed, forwardRef, input, linkedSignal, output } from "@angular/core";
3
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ import { BrnSwitch, BrnSwitchThumb } from "@spartan-ng/brain/switch";
5
+ import { classes, hlm } from "yukit-web/helm/utils";
6
+ var HlmSwitchThumb = class HlmSwitchThumb {
7
+ constructor() {
8
+ classes(() => "bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-unchecked:translate-x-0 data-checked:ltr:translate-x-[calc(100%-2px)] data-checked:rtl:-translate-x-[calc(100%-2px)] pointer-events-none block ring-0 transition-transform");
9
+ }
10
+ static {
11
+ this.ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "22.2.4",
14
+ ngImport: i0,
15
+ type: HlmSwitchThumb,
16
+ deps: [],
17
+ target: i0.ɵɵFactoryTarget.Directive
18
+ });
19
+ }
20
+ static {
21
+ this.ɵdir = i0.ɵɵngDeclareDirective({
22
+ minVersion: "14.0.0",
23
+ version: "22.2.4",
24
+ type: HlmSwitchThumb,
25
+ isStandalone: true,
26
+ selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]",
27
+ host: { attributes: { "data-slot": "switch-thumb" } },
28
+ ngImport: i0
29
+ });
30
+ }
31
+ };
32
+ i0.ɵɵngDeclareClassMetadata({
33
+ minVersion: "12.0.0",
34
+ version: "22.2.4",
35
+ ngImport: i0,
36
+ type: HlmSwitchThumb,
37
+ decorators: [{
38
+ type: Directive,
39
+ args: [{
40
+ selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]",
41
+ host: { "data-slot": "switch-thumb" }
42
+ }]
43
+ }],
44
+ ctorParameters: () => []
45
+ });
22
46
  const HLM_SWITCH_VALUE_ACCESSOR = {
23
- provide: NG_VALUE_ACCESSOR,
24
- useExisting: forwardRef(() => HlmSwitch),
25
- multi: true,
47
+ provide: NG_VALUE_ACCESSOR,
48
+ useExisting: forwardRef(() => HlmSwitch),
49
+ multi: true
26
50
  };
27
- class HlmSwitch {
28
- constructor() {
29
- this.userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
30
- this._computedClass = computed(() => hlm('data-checked:bg-primary data-unchecked:bg-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 dark:data-unchecked:bg-input/80 rounded-full border border-transparent focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] group/switch inline-flex shrink-0 items-center transition-all outline-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
31
- /** The checked state of the switch. */
32
- this.checkedInput = input(false, { ...(ngDevMode ? { debugName: "checkedInput" } : /* istanbul ignore next */ {}), alias: 'checked', transform: booleanAttribute });
33
- this.checked = linkedSignal(this.checkedInput, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
34
- /** Emits when the checked state of the switch changes. */
35
- this.checkedChange = output();
36
- /** The disabled state of the switch. */
37
- this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
38
- /** The size of the switch. */
39
- this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
40
- /** Used to set the id on the underlying brn element. */
41
- this.inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
42
- /** Used to set the aria-label attribute on the underlying brn element. */
43
- this.ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
44
- /** Used to set the aria-labelledby attribute on the underlying brn element. */
45
- this.ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
46
- /** Used to set the aria-describedby attribute on the underlying brn element. */
47
- this.ariaDescribedby = input(null, { ...(ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
48
- this._disabled = linkedSignal(this.disabled, ...(ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []));
49
- }
50
- handleChange(value) {
51
- this.checked.set(value);
52
- this._onChange?.(value);
53
- this.checkedChange.emit(value);
54
- }
55
- /** CONTROL VALUE ACCESSOR */
56
- writeValue(value) {
57
- this.checked.set(Boolean(value));
58
- }
59
- registerOnChange(fn) {
60
- this._onChange = fn;
61
- }
62
- registerOnTouched(fn) {
63
- this._onTouched = fn;
64
- }
65
- setDisabledState(isDisabled) {
66
- this._disabled.set(isDisabled);
67
- }
68
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmSwitch, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
69
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmSwitch, isStandalone: true, selector: "hlm-switch", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, checkedInput: { classPropertyName: "checkedInput", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", 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 } }, outputs: { checkedChange: "checkedChange" }, host: { attributes: { "data-slot": "switch" }, properties: { "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.aria-describedby": "null" }, classAttribute: "contents" }, providers: [HLM_SWITCH_VALUE_ACCESSOR], ngImport: i0, template: `
51
+ var HlmSwitch = class HlmSwitch {
52
+ constructor() {
53
+ this.userClass = input("", {
54
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
55
+ alias: "class"
56
+ });
57
+ this._computedClass = computed(() => hlm("data-checked:bg-primary data-unchecked:bg-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 dark:data-unchecked:bg-input/80 rounded-full border border-transparent focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] group/switch inline-flex shrink-0 items-center transition-all outline-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", this.userClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
58
+ this.checkedInput = input(false, {
59
+ ...ngDevMode ? { debugName: "checkedInput" } : /* istanbul ignore next */ {},
60
+ alias: "checked",
61
+ transform: booleanAttribute
62
+ });
63
+ this.checked = linkedSignal(this.checkedInput, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
64
+ this.checkedChange = output();
65
+ this.disabled = input(false, {
66
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
67
+ transform: booleanAttribute
68
+ });
69
+ this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
70
+ this.inputId = input(null, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
71
+ this.ariaLabel = input(null, {
72
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
73
+ alias: "aria-label"
74
+ });
75
+ this.ariaLabelledby = input(null, {
76
+ ...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
77
+ alias: "aria-labelledby"
78
+ });
79
+ this.ariaDescribedby = input(null, {
80
+ ...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
81
+ alias: "aria-describedby"
82
+ });
83
+ this._disabled = linkedSignal(this.disabled, ...ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []);
84
+ }
85
+ handleChange(value) {
86
+ this.checked.set(value);
87
+ this._onChange?.(value);
88
+ this.checkedChange.emit(value);
89
+ }
90
+ writeValue(value) {
91
+ this.checked.set(Boolean(value));
92
+ }
93
+ registerOnChange(fn) {
94
+ this._onChange = fn;
95
+ }
96
+ registerOnTouched(fn) {
97
+ this._onTouched = fn;
98
+ }
99
+ setDisabledState(isDisabled) {
100
+ this._disabled.set(isDisabled);
101
+ }
102
+ static {
103
+ this.ɵfac = i0.ɵɵngDeclareFactory({
104
+ minVersion: "12.0.0",
105
+ version: "22.2.4",
106
+ ngImport: i0,
107
+ type: HlmSwitch,
108
+ deps: [],
109
+ target: i0.ɵɵFactoryTarget.Component
110
+ });
111
+ }
112
+ static {
113
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
114
+ minVersion: "17.1.0",
115
+ version: "22.2.4",
116
+ type: HlmSwitch,
117
+ isStandalone: true,
118
+ selector: "hlm-switch",
119
+ inputs: {
120
+ userClass: {
121
+ classPropertyName: "userClass",
122
+ publicName: "class",
123
+ isSignal: true,
124
+ isRequired: false,
125
+ transformFunction: null
126
+ },
127
+ checkedInput: {
128
+ classPropertyName: "checkedInput",
129
+ publicName: "checked",
130
+ isSignal: true,
131
+ isRequired: false,
132
+ transformFunction: null
133
+ },
134
+ disabled: {
135
+ classPropertyName: "disabled",
136
+ publicName: "disabled",
137
+ isSignal: true,
138
+ isRequired: false,
139
+ transformFunction: null
140
+ },
141
+ size: {
142
+ classPropertyName: "size",
143
+ publicName: "size",
144
+ isSignal: true,
145
+ isRequired: false,
146
+ transformFunction: null
147
+ },
148
+ inputId: {
149
+ classPropertyName: "inputId",
150
+ publicName: "inputId",
151
+ isSignal: true,
152
+ isRequired: false,
153
+ transformFunction: null
154
+ },
155
+ ariaLabel: {
156
+ classPropertyName: "ariaLabel",
157
+ publicName: "aria-label",
158
+ isSignal: true,
159
+ isRequired: false,
160
+ transformFunction: null
161
+ },
162
+ ariaLabelledby: {
163
+ classPropertyName: "ariaLabelledby",
164
+ publicName: "aria-labelledby",
165
+ isSignal: true,
166
+ isRequired: false,
167
+ transformFunction: null
168
+ },
169
+ ariaDescribedby: {
170
+ classPropertyName: "ariaDescribedby",
171
+ publicName: "aria-describedby",
172
+ isSignal: true,
173
+ isRequired: false,
174
+ transformFunction: null
175
+ }
176
+ },
177
+ outputs: { checkedChange: "checkedChange" },
178
+ host: {
179
+ attributes: { "data-slot": "switch" },
180
+ properties: {
181
+ "attr.aria-label": "null",
182
+ "attr.aria-labelledby": "null",
183
+ "attr.aria-describedby": "null"
184
+ },
185
+ classAttribute: "contents"
186
+ },
187
+ providers: [HLM_SWITCH_VALUE_ACCESSOR],
188
+ ngImport: i0,
189
+ template: `
70
190
  <brn-switch
71
191
  [class]="_computedClass()"
72
192
  [size]="size()"
@@ -81,23 +201,69 @@ class HlmSwitch {
81
201
  >
82
202
  <brn-switch-thumb hlm />
83
203
  </brn-switch>
84
- `, isInline: true, dependencies: [{ kind: "directive", type: BrnSwitchThumb, selector: "[brnSwitchThumb],brn-switch-thumb" }, { kind: "component", type: BrnSwitch, selector: "brn-switch", inputs: ["checked", "id", "name", "class", "hostStyles", "size", "forceInvalid", "aria-label", "aria-labelledby", "aria-describedby", "required", "disabled", "tabIndex"], outputs: ["checkedChange", "touched"] }, { kind: "directive", type: HlmSwitchThumb, selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
85
- }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmSwitch, decorators: [{
87
- type: Component,
88
- args: [{
89
- selector: 'hlm-switch',
90
- imports: [BrnSwitchThumb, BrnSwitch, HlmSwitchThumb],
91
- providers: [HLM_SWITCH_VALUE_ACCESSOR],
92
- changeDetection: ChangeDetectionStrategy.OnPush,
93
- host: {
94
- 'data-slot': 'switch',
95
- class: 'contents',
96
- '[attr.aria-label]': 'null',
97
- '[attr.aria-labelledby]': 'null',
98
- '[attr.aria-describedby]': 'null',
99
- },
100
- template: `
204
+ `,
205
+ isInline: true,
206
+ dependencies: [
207
+ {
208
+ kind: "directive",
209
+ type: BrnSwitchThumb,
210
+ selector: "[brnSwitchThumb],brn-switch-thumb"
211
+ },
212
+ {
213
+ kind: "component",
214
+ type: BrnSwitch,
215
+ selector: "brn-switch",
216
+ inputs: [
217
+ "checked",
218
+ "id",
219
+ "name",
220
+ "class",
221
+ "hostStyles",
222
+ "size",
223
+ "forceInvalid",
224
+ "aria-label",
225
+ "aria-labelledby",
226
+ "aria-describedby",
227
+ "required",
228
+ "disabled",
229
+ "tabIndex"
230
+ ],
231
+ outputs: ["checkedChange", "touched"]
232
+ },
233
+ {
234
+ kind: "directive",
235
+ type: HlmSwitchThumb,
236
+ selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]"
237
+ }
238
+ ],
239
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
240
+ });
241
+ }
242
+ };
243
+ i0.ɵɵngDeclareClassMetadata({
244
+ minVersion: "12.0.0",
245
+ version: "22.2.4",
246
+ ngImport: i0,
247
+ type: HlmSwitch,
248
+ decorators: [{
249
+ type: Component,
250
+ args: [{
251
+ selector: "hlm-switch",
252
+ imports: [
253
+ BrnSwitchThumb,
254
+ BrnSwitch,
255
+ HlmSwitchThumb
256
+ ],
257
+ providers: [HLM_SWITCH_VALUE_ACCESSOR],
258
+ changeDetection: ChangeDetectionStrategy.OnPush,
259
+ host: {
260
+ "data-slot": "switch",
261
+ class: "contents",
262
+ "[attr.aria-label]": "null",
263
+ "[attr.aria-labelledby]": "null",
264
+ "[attr.aria-describedby]": "null"
265
+ },
266
+ template: `
101
267
  <brn-switch
102
268
  [class]="_computedClass()"
103
269
  [size]="size()"
@@ -112,15 +278,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
112
278
  >
113
279
  <brn-switch-thumb hlm />
114
280
  </brn-switch>
115
- `,
116
- }]
117
- }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], checkedInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], checkedChange: [{ type: i0.Output, args: ["checkedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }] } });
118
-
281
+ `
282
+ }]
283
+ }],
284
+ propDecorators: {
285
+ userClass: [{
286
+ type: i0.Input,
287
+ args: [{
288
+ isSignal: true,
289
+ alias: "class",
290
+ required: false
291
+ }]
292
+ }],
293
+ checkedInput: [{
294
+ type: i0.Input,
295
+ args: [{
296
+ isSignal: true,
297
+ alias: "checked",
298
+ required: false
299
+ }]
300
+ }],
301
+ checkedChange: [{
302
+ type: i0.Output,
303
+ args: ["checkedChange"]
304
+ }],
305
+ disabled: [{
306
+ type: i0.Input,
307
+ args: [{
308
+ isSignal: true,
309
+ alias: "disabled",
310
+ required: false
311
+ }]
312
+ }],
313
+ size: [{
314
+ type: i0.Input,
315
+ args: [{
316
+ isSignal: true,
317
+ alias: "size",
318
+ required: false
319
+ }]
320
+ }],
321
+ inputId: [{
322
+ type: i0.Input,
323
+ args: [{
324
+ isSignal: true,
325
+ alias: "inputId",
326
+ required: false
327
+ }]
328
+ }],
329
+ ariaLabel: [{
330
+ type: i0.Input,
331
+ args: [{
332
+ isSignal: true,
333
+ alias: "aria-label",
334
+ required: false
335
+ }]
336
+ }],
337
+ ariaLabelledby: [{
338
+ type: i0.Input,
339
+ args: [{
340
+ isSignal: true,
341
+ alias: "aria-labelledby",
342
+ required: false
343
+ }]
344
+ }],
345
+ ariaDescribedby: [{
346
+ type: i0.Input,
347
+ args: [{
348
+ isSignal: true,
349
+ alias: "aria-describedby",
350
+ required: false
351
+ }]
352
+ }]
353
+ }
354
+ });
119
355
  const HlmSwitchImports = [HlmSwitch, HlmSwitchThumb];
120
-
121
- /**
122
- * Generated bundle index. Do not edit.
123
- */
124
-
125
356
  export { HLM_SWITCH_VALUE_ACCESSOR, HlmSwitch, HlmSwitchImports, HlmSwitchThumb };
126
- //# sourceMappingURL=yukit-web-helm-switch.mjs.map
357
+
358
+ //# sourceMappingURL=yukit-web-helm-switch.mjs.map