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,251 +1,559 @@
1
- import * as i0 from '@angular/core';
2
- import { input, Directive, inject, effect, booleanAttribute, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import * as i1 from '@spartan-ng/brain/field';
4
- import { BrnField, BrnFieldA11yService } from '@spartan-ng/brain/field';
5
- import { classes } from 'yukit-web/helm/utils';
6
- import { cva } from 'class-variance-authority';
7
- import * as i1$1 from 'yukit-web/helm/label';
8
- import { HlmLabel } from 'yukit-web/helm/label';
9
- import { HlmSeparator } from 'yukit-web/helm/separator';
10
-
11
- const fieldVariants = cva('data-[matches-spartan-invalid=true]:text-destructive gap-2 group/field flex w-full', {
12
- variants: {
13
- orientation: {
14
- vertical: 'flex-col *:w-full [&>.sr-only]:w-auto',
15
- horizontal: [
16
- 'flex-row items-center',
17
- '*:data-[slot=field-label]:flex-auto',
18
- 'has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',
19
- ],
20
- responsive: [
21
- 'flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto [&>.sr-only]:w-auto',
22
- '@md/field-group:*:data-[slot=field-label]:flex-auto',
23
- '@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',
24
- ],
25
- },
26
- },
27
- defaultVariants: {
28
- orientation: 'vertical',
29
- },
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, computed, effect, inject, input } from "@angular/core";
3
+ import * as i1$1 from "@spartan-ng/brain/field";
4
+ import { BrnField, BrnFieldA11yService } from "@spartan-ng/brain/field";
5
+ import { classes } from "yukit-web/helm/utils";
6
+ import { cva } from "class-variance-authority";
7
+ import * as i1 from "yukit-web/helm/label";
8
+ import { HlmLabel } from "yukit-web/helm/label";
9
+ import { HlmSeparator } from "yukit-web/helm/separator";
10
+ const fieldVariants = cva("data-[matches-spartan-invalid=true]:text-destructive gap-2 group/field flex w-full", {
11
+ variants: { orientation: {
12
+ vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
13
+ horizontal: [
14
+ "flex-row items-center",
15
+ "*:data-[slot=field-label]:flex-auto",
16
+ "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
17
+ ],
18
+ responsive: [
19
+ "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto [&>.sr-only]:w-auto",
20
+ "@md/field-group:*:data-[slot=field-label]:flex-auto",
21
+ "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
22
+ ]
23
+ } },
24
+ defaultVariants: { orientation: "vertical" }
30
25
  });
31
- class HlmField {
32
- constructor() {
33
- this.orientation = input('vertical', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
34
- classes(() => fieldVariants({ orientation: this.orientation() }));
35
- }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmField, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmField, isStandalone: true, selector: "[hlmField],hlm-field", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group", "data-slot": "field" }, properties: { "attr.data-orientation": "orientation()" } }, hostDirectives: [{ directive: i1.BrnField, inputs: ["data-invalid", "data-invalid", "forceInvalid", "forceInvalid"] }], ngImport: i0 }); }
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmField, decorators: [{
40
- type: Directive,
41
- args: [{
42
- selector: '[hlmField],hlm-field',
43
- hostDirectives: [{ directive: BrnField, inputs: ['data-invalid', 'forceInvalid'] }],
44
- host: {
45
- role: 'group',
46
- 'data-slot': 'field',
47
- '[attr.data-orientation]': 'orientation()',
48
- },
49
- }]
50
- }], ctorParameters: () => [], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }] } });
51
-
52
- class HlmFieldContent {
53
- constructor() {
54
- classes(() => 'gap-0.5 group/field-content flex flex-1 flex-col leading-snug');
55
- }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
57
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmFieldContent, isStandalone: true, selector: "[hlmFieldContent],hlm-field-content", host: { attributes: { "data-slot": "field-content" } }, ngImport: i0 }); }
58
- }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldContent, decorators: [{
60
- type: Directive,
61
- args: [{
62
- selector: '[hlmFieldContent],hlm-field-content',
63
- host: { 'data-slot': 'field-content' },
64
- }]
65
- }], ctorParameters: () => [] });
66
-
67
- class HlmFieldDescription {
68
- static { this._id = 0; }
69
- constructor() {
70
- this._a11y = inject(BrnFieldA11yService, { optional: true, host: true });
71
- this.id = input(`hlm-field-description-${HlmFieldDescription._id++}`, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
72
- this._cleanup = this._a11y
73
- ? effect(() => {
74
- const a11y = this._a11y;
75
- if (!a11y)
76
- return;
77
- const id = this.id();
78
- if (this._registeredId && this._registeredId !== id) {
79
- a11y.unregisterDescription(this._registeredId);
80
- }
81
- if (this._registeredId !== id) {
82
- a11y.registerDescription(id);
83
- this._registeredId = id;
84
- }
85
- })
86
- : null;
87
- classes(() => [
88
- 'text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance',
89
- 'last:mt-0 nth-last-2:-mt-1',
90
- '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',
91
- ]);
92
- }
93
- ngOnDestroy() {
94
- this._cleanup?.destroy();
95
- if (this._registeredId) {
96
- this._a11y?.unregisterDescription(this._registeredId);
97
- }
98
- }
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
100
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmFieldDescription, isStandalone: true, selector: "[hlmFieldDescription],hlm-field-description", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-description" }, properties: { "attr.id": "id()" } }, ngImport: i0 }); }
101
- }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldDescription, decorators: [{
103
- type: Directive,
104
- args: [{
105
- selector: '[hlmFieldDescription],hlm-field-description',
106
- host: {
107
- 'data-slot': 'field-description',
108
- '[attr.id]': 'id()',
109
- },
110
- }]
111
- }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
112
-
113
- class HlmFieldError {
114
- static { this._id = 0; }
115
- constructor() {
116
- this._field = inject(BrnField, { optional: true });
117
- this._a11y = inject(BrnFieldA11yService, { optional: true, host: true });
118
- this._hasParentField = !!this._field;
119
- /** The unique ID for the field error. If none is supplied, it will be auto-generated. */
120
- this.id = input(`hlm-field-error-${HlmFieldError._id++}`, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
121
- /**
122
- * The name of the specific validator error key to match (e.g. 'required').
123
- * When omitted, the error is shown if any validation error is present.
124
- */
125
- this.validator = input(...(ngDevMode ? [undefined, { debugName: "validator" }] : /* istanbul ignore next */ []));
126
- /** Forces the error message to be visible regardless of the control's validation state. */
127
- this.forceShow = input(false, { ...(ngDevMode ? { debugName: "forceShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
128
- this._display = computed(() => !this._hasParentField || this.forceShow() || this._hasError(), ...(ngDevMode ? [{ debugName: "_display" }] : /* istanbul ignore next */ []));
129
- this._hasError = computed(() => {
130
- const errors = this._field?.errors();
131
- if (!errors)
132
- return false;
133
- const validator = this.validator();
134
- const spartanInvalid = this._field?.controlState()?.spartanInvalid;
135
- if (!spartanInvalid)
136
- return false;
137
- return validator ? validator in errors : Object.keys(errors).length > 0;
138
- }, ...(ngDevMode ? [{ debugName: "_hasError" }] : /* istanbul ignore next */ []));
139
- this._cleanup = this._a11y
140
- ? effect(() => {
141
- const a11y = this._a11y;
142
- if (!a11y)
143
- return;
144
- const id = this.id();
145
- const hasError = this._hasError();
146
- if (this._registeredId && (this._registeredId !== id || !hasError)) {
147
- a11y.unregisterError(this._registeredId);
148
- this._registeredId = undefined;
149
- }
150
- if (hasError && this._registeredId !== id) {
151
- a11y.registerError(id);
152
- this._registeredId = id;
153
- }
154
- })
155
- : null;
156
- classes(() => 'text-destructive text-sm font-normal');
157
- }
158
- ngOnDestroy() {
159
- this._cleanup?.destroy();
160
- if (this._registeredId) {
161
- this._a11y?.unregisterError(this._registeredId);
162
- }
163
- }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldError, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
165
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmFieldError, isStandalone: true, selector: "hlm-field-error", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, forceShow: { classPropertyName: "forceShow", publicName: "forceShow", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "alert", "data-slot": "field-error" }, properties: { "attr.id": "id()", "hidden": "!_display()" } }, ngImport: i0, template: `
26
+ var HlmField = class HlmField {
27
+ constructor() {
28
+ this.orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
29
+ classes(() => fieldVariants({ orientation: this.orientation() }));
30
+ }
31
+ static {
32
+ this.ɵfac = i0.ɵɵngDeclareFactory({
33
+ minVersion: "12.0.0",
34
+ version: "22.2.4",
35
+ ngImport: i0,
36
+ type: HlmField,
37
+ deps: [],
38
+ target: i0.ɵɵFactoryTarget.Directive
39
+ });
40
+ }
41
+ static {
42
+ this.ɵdir = i0.ɵɵngDeclareDirective({
43
+ minVersion: "17.1.0",
44
+ version: "22.2.4",
45
+ type: HlmField,
46
+ isStandalone: true,
47
+ selector: "[hlmField],hlm-field",
48
+ inputs: { orientation: {
49
+ classPropertyName: "orientation",
50
+ publicName: "orientation",
51
+ isSignal: true,
52
+ isRequired: false,
53
+ transformFunction: null
54
+ } },
55
+ host: {
56
+ attributes: {
57
+ "role": "group",
58
+ "data-slot": "field"
59
+ },
60
+ properties: { "attr.data-orientation": "orientation()" }
61
+ },
62
+ hostDirectives: [{
63
+ directive: i1$1.BrnField,
64
+ inputs: [
65
+ "data-invalid",
66
+ "data-invalid",
67
+ "forceInvalid",
68
+ "forceInvalid"
69
+ ]
70
+ }],
71
+ ngImport: i0
72
+ });
73
+ }
74
+ };
75
+ i0.ɵɵngDeclareClassMetadata({
76
+ minVersion: "12.0.0",
77
+ version: "22.2.4",
78
+ ngImport: i0,
79
+ type: HlmField,
80
+ decorators: [{
81
+ type: Directive,
82
+ args: [{
83
+ selector: "[hlmField],hlm-field",
84
+ hostDirectives: [{
85
+ directive: BrnField,
86
+ inputs: ["data-invalid", "forceInvalid"]
87
+ }],
88
+ host: {
89
+ role: "group",
90
+ "data-slot": "field",
91
+ "[attr.data-orientation]": "orientation()"
92
+ }
93
+ }]
94
+ }],
95
+ ctorParameters: () => [],
96
+ propDecorators: { orientation: [{
97
+ type: i0.Input,
98
+ args: [{
99
+ isSignal: true,
100
+ alias: "orientation",
101
+ required: false
102
+ }]
103
+ }] }
104
+ });
105
+ var HlmFieldContent = class HlmFieldContent {
106
+ constructor() {
107
+ classes(() => "gap-0.5 group/field-content flex flex-1 flex-col leading-snug");
108
+ }
109
+ static {
110
+ this.ɵfac = i0.ɵɵngDeclareFactory({
111
+ minVersion: "12.0.0",
112
+ version: "22.2.4",
113
+ ngImport: i0,
114
+ type: HlmFieldContent,
115
+ deps: [],
116
+ target: i0.ɵɵFactoryTarget.Directive
117
+ });
118
+ }
119
+ static {
120
+ this.ɵdir = i0.ɵɵngDeclareDirective({
121
+ minVersion: "14.0.0",
122
+ version: "22.2.4",
123
+ type: HlmFieldContent,
124
+ isStandalone: true,
125
+ selector: "[hlmFieldContent],hlm-field-content",
126
+ host: { attributes: { "data-slot": "field-content" } },
127
+ ngImport: i0
128
+ });
129
+ }
130
+ };
131
+ i0.ɵɵngDeclareClassMetadata({
132
+ minVersion: "12.0.0",
133
+ version: "22.2.4",
134
+ ngImport: i0,
135
+ type: HlmFieldContent,
136
+ decorators: [{
137
+ type: Directive,
138
+ args: [{
139
+ selector: "[hlmFieldContent],hlm-field-content",
140
+ host: { "data-slot": "field-content" }
141
+ }]
142
+ }],
143
+ ctorParameters: () => []
144
+ });
145
+ var HlmFieldDescription = class HlmFieldDescription {
146
+ static {
147
+ this._id = 0;
148
+ }
149
+ constructor() {
150
+ this._a11y = inject(BrnFieldA11yService, {
151
+ optional: true,
152
+ host: true
153
+ });
154
+ this.id = input(`hlm-field-description-${HlmFieldDescription._id++}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
155
+ this._cleanup = this._a11y ? effect(() => {
156
+ const a11y = this._a11y;
157
+ if (!a11y) return;
158
+ const id = this.id();
159
+ if (this._registeredId && this._registeredId !== id) a11y.unregisterDescription(this._registeredId);
160
+ if (this._registeredId !== id) {
161
+ a11y.registerDescription(id);
162
+ this._registeredId = id;
163
+ }
164
+ }) : null;
165
+ classes(() => [
166
+ "text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance",
167
+ "last:mt-0 nth-last-2:-mt-1",
168
+ "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4"
169
+ ]);
170
+ }
171
+ ngOnDestroy() {
172
+ this._cleanup?.destroy();
173
+ if (this._registeredId) this._a11y?.unregisterDescription(this._registeredId);
174
+ }
175
+ static {
176
+ this.ɵfac = i0.ɵɵngDeclareFactory({
177
+ minVersion: "12.0.0",
178
+ version: "22.2.4",
179
+ ngImport: i0,
180
+ type: HlmFieldDescription,
181
+ deps: [],
182
+ target: i0.ɵɵFactoryTarget.Directive
183
+ });
184
+ }
185
+ static {
186
+ this.ɵdir = i0.ɵɵngDeclareDirective({
187
+ minVersion: "17.1.0",
188
+ version: "22.2.4",
189
+ type: HlmFieldDescription,
190
+ isStandalone: true,
191
+ selector: "[hlmFieldDescription],hlm-field-description",
192
+ inputs: { id: {
193
+ classPropertyName: "id",
194
+ publicName: "id",
195
+ isSignal: true,
196
+ isRequired: false,
197
+ transformFunction: null
198
+ } },
199
+ host: {
200
+ attributes: { "data-slot": "field-description" },
201
+ properties: { "attr.id": "id()" }
202
+ },
203
+ ngImport: i0
204
+ });
205
+ }
206
+ };
207
+ i0.ɵɵngDeclareClassMetadata({
208
+ minVersion: "12.0.0",
209
+ version: "22.2.4",
210
+ ngImport: i0,
211
+ type: HlmFieldDescription,
212
+ decorators: [{
213
+ type: Directive,
214
+ args: [{
215
+ selector: "[hlmFieldDescription],hlm-field-description",
216
+ host: {
217
+ "data-slot": "field-description",
218
+ "[attr.id]": "id()"
219
+ }
220
+ }]
221
+ }],
222
+ ctorParameters: () => [],
223
+ propDecorators: { id: [{
224
+ type: i0.Input,
225
+ args: [{
226
+ isSignal: true,
227
+ alias: "id",
228
+ required: false
229
+ }]
230
+ }] }
231
+ });
232
+ var HlmFieldError = class HlmFieldError {
233
+ static {
234
+ this._id = 0;
235
+ }
236
+ constructor() {
237
+ this._field = inject(BrnField, { optional: true });
238
+ this._a11y = inject(BrnFieldA11yService, {
239
+ optional: true,
240
+ host: true
241
+ });
242
+ this._hasParentField = !!this._field;
243
+ this.id = input(`hlm-field-error-${HlmFieldError._id++}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
244
+ this.validator = input(...ngDevMode ? [void 0, { debugName: "validator" }] : /* istanbul ignore next */ []);
245
+ this.forceShow = input(false, {
246
+ ...ngDevMode ? { debugName: "forceShow" } : /* istanbul ignore next */ {},
247
+ transform: booleanAttribute
248
+ });
249
+ this._display = computed(() => !this._hasParentField || this.forceShow() || this._hasError(), ...ngDevMode ? [{ debugName: "_display" }] : /* istanbul ignore next */ []);
250
+ this._hasError = computed(() => {
251
+ const errors = this._field?.errors();
252
+ if (!errors) return false;
253
+ const validator = this.validator();
254
+ if (!this._field?.controlState()?.spartanInvalid) return false;
255
+ return validator ? validator in errors : Object.keys(errors).length > 0;
256
+ }, ...ngDevMode ? [{ debugName: "_hasError" }] : /* istanbul ignore next */ []);
257
+ this._cleanup = this._a11y ? effect(() => {
258
+ const a11y = this._a11y;
259
+ if (!a11y) return;
260
+ const id = this.id();
261
+ const hasError = this._hasError();
262
+ if (this._registeredId && (this._registeredId !== id || !hasError)) {
263
+ a11y.unregisterError(this._registeredId);
264
+ this._registeredId = void 0;
265
+ }
266
+ if (hasError && this._registeredId !== id) {
267
+ a11y.registerError(id);
268
+ this._registeredId = id;
269
+ }
270
+ }) : null;
271
+ classes(() => "text-destructive text-sm font-normal");
272
+ }
273
+ ngOnDestroy() {
274
+ this._cleanup?.destroy();
275
+ if (this._registeredId) this._a11y?.unregisterError(this._registeredId);
276
+ }
277
+ static {
278
+ this.ɵfac = i0.ɵɵngDeclareFactory({
279
+ minVersion: "12.0.0",
280
+ version: "22.2.4",
281
+ ngImport: i0,
282
+ type: HlmFieldError,
283
+ deps: [],
284
+ target: i0.ɵɵFactoryTarget.Component
285
+ });
286
+ }
287
+ static {
288
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
289
+ minVersion: "17.0.0",
290
+ version: "22.2.4",
291
+ type: HlmFieldError,
292
+ isStandalone: true,
293
+ selector: "hlm-field-error",
294
+ inputs: {
295
+ id: {
296
+ classPropertyName: "id",
297
+ publicName: "id",
298
+ isSignal: true,
299
+ isRequired: false,
300
+ transformFunction: null
301
+ },
302
+ validator: {
303
+ classPropertyName: "validator",
304
+ publicName: "validator",
305
+ isSignal: true,
306
+ isRequired: false,
307
+ transformFunction: null
308
+ },
309
+ forceShow: {
310
+ classPropertyName: "forceShow",
311
+ publicName: "forceShow",
312
+ isSignal: true,
313
+ isRequired: false,
314
+ transformFunction: null
315
+ }
316
+ },
317
+ host: {
318
+ attributes: {
319
+ "role": "alert",
320
+ "data-slot": "field-error"
321
+ },
322
+ properties: {
323
+ "attr.id": "id()",
324
+ "hidden": "!_display()"
325
+ }
326
+ },
327
+ ngImport: i0,
328
+ template: `
166
329
  @if (_display()) {
167
330
  <ng-content />
168
331
  }
169
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
170
- }
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldError, decorators: [{
172
- type: Component,
173
- args: [{
174
- selector: 'hlm-field-error',
175
- changeDetection: ChangeDetectionStrategy.OnPush,
176
- host: {
177
- role: 'alert',
178
- 'data-slot': 'field-error',
179
- '[attr.id]': 'id()',
180
- '[hidden]': '!_display()',
181
- },
182
- template: `
332
+ `,
333
+ isInline: true,
334
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
335
+ });
336
+ }
337
+ };
338
+ i0.ɵɵngDeclareClassMetadata({
339
+ minVersion: "12.0.0",
340
+ version: "22.2.4",
341
+ ngImport: i0,
342
+ type: HlmFieldError,
343
+ decorators: [{
344
+ type: Component,
345
+ args: [{
346
+ selector: "hlm-field-error",
347
+ changeDetection: ChangeDetectionStrategy.OnPush,
348
+ host: {
349
+ role: "alert",
350
+ "data-slot": "field-error",
351
+ "[attr.id]": "id()",
352
+ "[hidden]": "!_display()"
353
+ },
354
+ template: `
183
355
  @if (_display()) {
184
356
  <ng-content />
185
357
  }
186
- `,
187
- }]
188
- }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], validator: [{ type: i0.Input, args: [{ isSignal: true, alias: "validator", required: false }] }], forceShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceShow", required: false }] }] } });
189
-
190
- class HlmFieldGroup {
191
- constructor() {
192
- classes(() => 'gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col');
193
- }
194
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
195
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmFieldGroup, isStandalone: true, selector: "[hlmFieldGroup],hlm-field-group", host: { attributes: { "data-slot": "field-group" } }, ngImport: i0 }); }
196
- }
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldGroup, decorators: [{
198
- type: Directive,
199
- args: [{
200
- selector: '[hlmFieldGroup],hlm-field-group',
201
- host: { 'data-slot': 'field-group' },
202
- }]
203
- }], ctorParameters: () => [] });
204
-
205
- class HlmFieldLabel {
206
- constructor() {
207
- classes(() => [
208
- 'has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit',
209
- 'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col',
210
- ]);
211
- }
212
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
213
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmFieldLabel, isStandalone: true, selector: "[hlmFieldLabel],hlm-field-label", host: { attributes: { "data-slot": "field-label" } }, hostDirectives: [{ directive: i1$1.HlmLabel }], ngImport: i0 }); }
214
- }
215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldLabel, decorators: [{
216
- type: Directive,
217
- args: [{
218
- selector: '[hlmFieldLabel],hlm-field-label',
219
- hostDirectives: [HlmLabel],
220
- host: { 'data-slot': 'field-label' },
221
- }]
222
- }], ctorParameters: () => [] });
223
-
224
- class HlmFieldLegend {
225
- constructor() {
226
- this.variant = input('legend', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
227
- classes(() => 'mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base');
228
- }
229
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
230
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmFieldLegend, isStandalone: true, selector: "legend[hlmFieldLegend]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-legend" }, properties: { "attr.data-variant": "variant()" } }, ngImport: i0 }); }
231
- }
232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldLegend, decorators: [{
233
- type: Directive,
234
- args: [{
235
- selector: 'legend[hlmFieldLegend]',
236
- host: {
237
- 'data-slot': 'field-legend',
238
- '[attr.data-variant]': 'variant()',
239
- },
240
- }]
241
- }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
242
-
243
- class HlmFieldSeparator {
244
- constructor() {
245
- classes(() => '-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative');
246
- }
247
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
248
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HlmFieldSeparator, isStandalone: true, selector: "hlm-field-separator", host: { attributes: { "data-slot": "field-separator" } }, ngImport: i0, template: `
358
+ `
359
+ }]
360
+ }],
361
+ ctorParameters: () => [],
362
+ propDecorators: {
363
+ id: [{
364
+ type: i0.Input,
365
+ args: [{
366
+ isSignal: true,
367
+ alias: "id",
368
+ required: false
369
+ }]
370
+ }],
371
+ validator: [{
372
+ type: i0.Input,
373
+ args: [{
374
+ isSignal: true,
375
+ alias: "validator",
376
+ required: false
377
+ }]
378
+ }],
379
+ forceShow: [{
380
+ type: i0.Input,
381
+ args: [{
382
+ isSignal: true,
383
+ alias: "forceShow",
384
+ required: false
385
+ }]
386
+ }]
387
+ }
388
+ });
389
+ var HlmFieldGroup = class HlmFieldGroup {
390
+ constructor() {
391
+ classes(() => "gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col");
392
+ }
393
+ static {
394
+ this.ɵfac = i0.ɵɵngDeclareFactory({
395
+ minVersion: "12.0.0",
396
+ version: "22.2.4",
397
+ ngImport: i0,
398
+ type: HlmFieldGroup,
399
+ deps: [],
400
+ target: i0.ɵɵFactoryTarget.Directive
401
+ });
402
+ }
403
+ static {
404
+ this.ɵdir = i0.ɵɵngDeclareDirective({
405
+ minVersion: "14.0.0",
406
+ version: "22.2.4",
407
+ type: HlmFieldGroup,
408
+ isStandalone: true,
409
+ selector: "[hlmFieldGroup],hlm-field-group",
410
+ host: { attributes: { "data-slot": "field-group" } },
411
+ ngImport: i0
412
+ });
413
+ }
414
+ };
415
+ i0.ɵɵngDeclareClassMetadata({
416
+ minVersion: "12.0.0",
417
+ version: "22.2.4",
418
+ ngImport: i0,
419
+ type: HlmFieldGroup,
420
+ decorators: [{
421
+ type: Directive,
422
+ args: [{
423
+ selector: "[hlmFieldGroup],hlm-field-group",
424
+ host: { "data-slot": "field-group" }
425
+ }]
426
+ }],
427
+ ctorParameters: () => []
428
+ });
429
+ var HlmFieldLabel = class HlmFieldLabel {
430
+ constructor() {
431
+ classes(() => ["has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col"]);
432
+ }
433
+ static {
434
+ this.ɵfac = i0.ɵɵngDeclareFactory({
435
+ minVersion: "12.0.0",
436
+ version: "22.2.4",
437
+ ngImport: i0,
438
+ type: HlmFieldLabel,
439
+ deps: [],
440
+ target: i0.ɵɵFactoryTarget.Directive
441
+ });
442
+ }
443
+ static {
444
+ this.ɵdir = i0.ɵɵngDeclareDirective({
445
+ minVersion: "14.0.0",
446
+ version: "22.2.4",
447
+ type: HlmFieldLabel,
448
+ isStandalone: true,
449
+ selector: "[hlmFieldLabel],hlm-field-label",
450
+ host: { attributes: { "data-slot": "field-label" } },
451
+ hostDirectives: [{ directive: i1.HlmLabel }],
452
+ ngImport: i0
453
+ });
454
+ }
455
+ };
456
+ i0.ɵɵngDeclareClassMetadata({
457
+ minVersion: "12.0.0",
458
+ version: "22.2.4",
459
+ ngImport: i0,
460
+ type: HlmFieldLabel,
461
+ decorators: [{
462
+ type: Directive,
463
+ args: [{
464
+ selector: "[hlmFieldLabel],hlm-field-label",
465
+ hostDirectives: [HlmLabel],
466
+ host: { "data-slot": "field-label" }
467
+ }]
468
+ }],
469
+ ctorParameters: () => []
470
+ });
471
+ var HlmFieldLegend = class HlmFieldLegend {
472
+ constructor() {
473
+ this.variant = input("legend", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
474
+ classes(() => "mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base");
475
+ }
476
+ static {
477
+ this.ɵfac = i0.ɵɵngDeclareFactory({
478
+ minVersion: "12.0.0",
479
+ version: "22.2.4",
480
+ ngImport: i0,
481
+ type: HlmFieldLegend,
482
+ deps: [],
483
+ target: i0.ɵɵFactoryTarget.Directive
484
+ });
485
+ }
486
+ static {
487
+ this.ɵdir = i0.ɵɵngDeclareDirective({
488
+ minVersion: "17.1.0",
489
+ version: "22.2.4",
490
+ type: HlmFieldLegend,
491
+ isStandalone: true,
492
+ selector: "legend[hlmFieldLegend]",
493
+ inputs: { variant: {
494
+ classPropertyName: "variant",
495
+ publicName: "variant",
496
+ isSignal: true,
497
+ isRequired: false,
498
+ transformFunction: null
499
+ } },
500
+ host: {
501
+ attributes: { "data-slot": "field-legend" },
502
+ properties: { "attr.data-variant": "variant()" }
503
+ },
504
+ ngImport: i0
505
+ });
506
+ }
507
+ };
508
+ i0.ɵɵngDeclareClassMetadata({
509
+ minVersion: "12.0.0",
510
+ version: "22.2.4",
511
+ ngImport: i0,
512
+ type: HlmFieldLegend,
513
+ decorators: [{
514
+ type: Directive,
515
+ args: [{
516
+ selector: "legend[hlmFieldLegend]",
517
+ host: {
518
+ "data-slot": "field-legend",
519
+ "[attr.data-variant]": "variant()"
520
+ }
521
+ }]
522
+ }],
523
+ ctorParameters: () => [],
524
+ propDecorators: { variant: [{
525
+ type: i0.Input,
526
+ args: [{
527
+ isSignal: true,
528
+ alias: "variant",
529
+ required: false
530
+ }]
531
+ }] }
532
+ });
533
+ var HlmFieldSeparator = class HlmFieldSeparator {
534
+ constructor() {
535
+ classes(() => "-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative");
536
+ }
537
+ static {
538
+ this.ɵfac = i0.ɵɵngDeclareFactory({
539
+ minVersion: "12.0.0",
540
+ version: "22.2.4",
541
+ ngImport: i0,
542
+ type: HlmFieldSeparator,
543
+ deps: [],
544
+ target: i0.ɵɵFactoryTarget.Component
545
+ });
546
+ }
547
+ static {
548
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
549
+ minVersion: "14.0.0",
550
+ version: "22.2.4",
551
+ type: HlmFieldSeparator,
552
+ isStandalone: true,
553
+ selector: "hlm-field-separator",
554
+ host: { attributes: { "data-slot": "field-separator" } },
555
+ ngImport: i0,
556
+ template: `
249
557
  <hlm-separator class="absolute inset-0 top-1/2" />
250
558
  <span
251
559
  data-slot="field-separator-content"
@@ -253,16 +561,30 @@ class HlmFieldSeparator {
253
561
  >
254
562
  <ng-content />
255
563
  </span>
256
- `, isInline: true, dependencies: [{ kind: "directive", type: HlmSeparator, selector: "[hlmSeparator],hlm-separator" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
257
- }
258
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldSeparator, decorators: [{
259
- type: Component,
260
- args: [{
261
- selector: 'hlm-field-separator',
262
- imports: [HlmSeparator],
263
- changeDetection: ChangeDetectionStrategy.OnPush,
264
- host: { 'data-slot': 'field-separator' },
265
- template: `
564
+ `,
565
+ isInline: true,
566
+ dependencies: [{
567
+ kind: "directive",
568
+ type: HlmSeparator,
569
+ selector: "[hlmSeparator],hlm-separator"
570
+ }],
571
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
572
+ });
573
+ }
574
+ };
575
+ i0.ɵɵngDeclareClassMetadata({
576
+ minVersion: "12.0.0",
577
+ version: "22.2.4",
578
+ ngImport: i0,
579
+ type: HlmFieldSeparator,
580
+ decorators: [{
581
+ type: Component,
582
+ args: [{
583
+ selector: "hlm-field-separator",
584
+ imports: [HlmSeparator],
585
+ changeDetection: ChangeDetectionStrategy.OnPush,
586
+ host: { "data-slot": "field-separator" },
587
+ template: `
266
588
  <hlm-separator class="absolute inset-0 top-1/2" />
267
589
  <span
268
590
  data-slot="field-separator-content"
@@ -270,56 +592,103 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
270
592
  >
271
593
  <ng-content />
272
594
  </span>
273
- `,
274
- }]
275
- }], ctorParameters: () => [] });
276
-
277
- class HlmFieldSet {
278
- constructor() {
279
- classes(() => 'gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col');
280
- }
281
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldSet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
282
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmFieldSet, isStandalone: true, selector: "fieldset[hlmFieldSet]", host: { attributes: { "data-slot": "field-set" } }, ngImport: i0 }); }
283
- }
284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldSet, decorators: [{
285
- type: Directive,
286
- args: [{
287
- selector: 'fieldset[hlmFieldSet]',
288
- host: { 'data-slot': 'field-set' },
289
- }]
290
- }], ctorParameters: () => [] });
291
-
292
- class HlmFieldTitle {
293
- constructor() {
294
- classes(() => 'gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center');
295
- }
296
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
297
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmFieldTitle, isStandalone: true, selector: "[hlmFieldTitle],hlm-field-title", host: { attributes: { "data-slot": "field-label" } }, ngImport: i0 }); }
298
- }
299
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmFieldTitle, decorators: [{
300
- type: Directive,
301
- args: [{
302
- selector: '[hlmFieldTitle],hlm-field-title',
303
- host: { 'data-slot': 'field-label' },
304
- }]
305
- }], ctorParameters: () => [] });
306
-
595
+ `
596
+ }]
597
+ }],
598
+ ctorParameters: () => []
599
+ });
600
+ var HlmFieldSet = class HlmFieldSet {
601
+ constructor() {
602
+ classes(() => "gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col");
603
+ }
604
+ static {
605
+ this.ɵfac = i0.ɵɵngDeclareFactory({
606
+ minVersion: "12.0.0",
607
+ version: "22.2.4",
608
+ ngImport: i0,
609
+ type: HlmFieldSet,
610
+ deps: [],
611
+ target: i0.ɵɵFactoryTarget.Directive
612
+ });
613
+ }
614
+ static {
615
+ this.ɵdir = i0.ɵɵngDeclareDirective({
616
+ minVersion: "14.0.0",
617
+ version: "22.2.4",
618
+ type: HlmFieldSet,
619
+ isStandalone: true,
620
+ selector: "fieldset[hlmFieldSet]",
621
+ host: { attributes: { "data-slot": "field-set" } },
622
+ ngImport: i0
623
+ });
624
+ }
625
+ };
626
+ i0.ɵɵngDeclareClassMetadata({
627
+ minVersion: "12.0.0",
628
+ version: "22.2.4",
629
+ ngImport: i0,
630
+ type: HlmFieldSet,
631
+ decorators: [{
632
+ type: Directive,
633
+ args: [{
634
+ selector: "fieldset[hlmFieldSet]",
635
+ host: { "data-slot": "field-set" }
636
+ }]
637
+ }],
638
+ ctorParameters: () => []
639
+ });
640
+ var HlmFieldTitle = class HlmFieldTitle {
641
+ constructor() {
642
+ classes(() => "gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center");
643
+ }
644
+ static {
645
+ this.ɵfac = i0.ɵɵngDeclareFactory({
646
+ minVersion: "12.0.0",
647
+ version: "22.2.4",
648
+ ngImport: i0,
649
+ type: HlmFieldTitle,
650
+ deps: [],
651
+ target: i0.ɵɵFactoryTarget.Directive
652
+ });
653
+ }
654
+ static {
655
+ this.ɵdir = i0.ɵɵngDeclareDirective({
656
+ minVersion: "14.0.0",
657
+ version: "22.2.4",
658
+ type: HlmFieldTitle,
659
+ isStandalone: true,
660
+ selector: "[hlmFieldTitle],hlm-field-title",
661
+ host: { attributes: { "data-slot": "field-label" } },
662
+ ngImport: i0
663
+ });
664
+ }
665
+ };
666
+ i0.ɵɵngDeclareClassMetadata({
667
+ minVersion: "12.0.0",
668
+ version: "22.2.4",
669
+ ngImport: i0,
670
+ type: HlmFieldTitle,
671
+ decorators: [{
672
+ type: Directive,
673
+ args: [{
674
+ selector: "[hlmFieldTitle],hlm-field-title",
675
+ host: { "data-slot": "field-label" }
676
+ }]
677
+ }],
678
+ ctorParameters: () => []
679
+ });
307
680
  const HlmFieldImports = [
308
- HlmField,
309
- HlmFieldContent,
310
- HlmFieldDescription,
311
- HlmFieldError,
312
- HlmFieldGroup,
313
- HlmFieldLabel,
314
- HlmFieldLegend,
315
- HlmFieldSeparator,
316
- HlmFieldSet,
317
- HlmFieldTitle,
681
+ HlmField,
682
+ HlmFieldContent,
683
+ HlmFieldDescription,
684
+ HlmFieldError,
685
+ HlmFieldGroup,
686
+ HlmFieldLabel,
687
+ HlmFieldLegend,
688
+ HlmFieldSeparator,
689
+ HlmFieldSet,
690
+ HlmFieldTitle
318
691
  ];
319
-
320
- /**
321
- * Generated bundle index. Do not edit.
322
- */
323
-
324
692
  export { HlmField, HlmFieldContent, HlmFieldDescription, HlmFieldError, HlmFieldGroup, HlmFieldImports, HlmFieldLabel, HlmFieldLegend, HlmFieldSeparator, HlmFieldSet, HlmFieldTitle };
325
- //# sourceMappingURL=yukit-web-helm-field.mjs.map
693
+
694
+ //# sourceMappingURL=yukit-web-helm-field.mjs.map