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,74 +1,166 @@
1
- import * as i0 from '@angular/core';
2
- import { forwardRef, inject, input, computed, booleanAttribute, linkedSignal, output, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { NgIcon, provideIcons } from '@ng-icons/core';
5
- import { lucideChevronDown } from '@ng-icons/lucide';
6
- import * as i1 from '@spartan-ng/brain/field';
7
- import { BrnFieldControl, provideBrnLabelable } from '@spartan-ng/brain/field';
8
- import { hlm, classes } from 'yukit-web/helm/utils';
9
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, computed, forwardRef, inject, input, linkedSignal, output } from "@angular/core";
3
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ import { NgIcon, provideIcons } from "@ng-icons/core";
5
+ import { lucideChevronDown } from "@ng-icons/lucide";
6
+ import * as i1 from "@spartan-ng/brain/field";
7
+ import { BrnFieldControl, provideBrnLabelable } from "@spartan-ng/brain/field";
8
+ import { classes, hlm } from "yukit-web/helm/utils";
10
9
  const HLM_NATIVE_SELECT_VALUE_ACCESSOR = {
11
- provide: NG_VALUE_ACCESSOR,
12
- useExisting: forwardRef(() => HlmNativeSelect),
13
- multi: true,
10
+ provide: NG_VALUE_ACCESSOR,
11
+ useExisting: forwardRef(() => HlmNativeSelect),
12
+ multi: true
14
13
  };
15
- class HlmNativeSelect {
16
- static { this._id = 0; }
17
- constructor() {
18
- this._fieldControl = inject(BrnFieldControl, { optional: true });
19
- this.selectId = input(`hlm-native-select-${HlmNativeSelect._id++}`, ...(ngDevMode ? [{ debugName: "selectId" }] : /* istanbul ignore next */ []));
20
- this.selectClass = input('', ...(ngDevMode ? [{ debugName: "selectClass" }] : /* istanbul ignore next */ []));
21
- this._computedSelectClass = computed(() => hlm('border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors select-none focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed', this.selectClass()), ...(ngDevMode ? [{ debugName: "_computedSelectClass" }] : /* istanbul ignore next */ []));
22
- this.selectIconClass = input('', ...(ngDevMode ? [{ debugName: "selectIconClass" }] : /* istanbul ignore next */ []));
23
- this._computedSelectIconClass = computed(() => hlm('text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[length:--spacing(4)] pointer-events-none absolute select-none', this.selectIconClass()), ...(ngDevMode ? [{ debugName: "_computedSelectIconClass" }] : /* istanbul ignore next */ []));
24
- this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
25
- this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
26
- this._disabled = linkedSignal(this.disabled, ...(ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []));
27
- /** Whether to force the input into an invalid state. */
28
- this.forceInvalid = input(false, { ...(ngDevMode ? { debugName: "forceInvalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
29
- /** Manual override for aria-invalid. When not set, auto-detects from the parent autocomplete error state. */
30
- this.ariaInvalidOverride = input(undefined, { ...(ngDevMode ? { debugName: "ariaInvalidOverride" } : /* istanbul ignore next */ {}), transform: (v) => (v === '' || v === undefined ? undefined : booleanAttribute(v)),
31
- alias: 'aria-invalid' });
32
- this._ariaInvalid = computed(() => this.ariaInvalidOverride() ?? this._invalid?.(), ...(ngDevMode ? [{ debugName: "_ariaInvalid" }] : /* istanbul ignore next */ []));
33
- this.valueInput = input('', { ...(ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {}), alias: 'value' });
34
- this.value = linkedSignal(this.valueInput, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
35
- this.valueChange = output();
36
- this.labelableId = this.selectId;
37
- this._invalid = this._fieldControl?.invalid;
38
- this._touched = this._fieldControl?.touched;
39
- this._dirty = this._fieldControl?.dirty;
40
- this._spartanInvalid = computed(() => this.forceInvalid() || this._fieldControl?.spartanInvalid(), ...(ngDevMode ? [{ debugName: "_spartanInvalid" }] : /* istanbul ignore next */ []));
41
- classes(() => 'group/native-select relative w-fit has-[select:disabled]:opacity-50');
42
- }
43
- _valueChanged(event) {
44
- const value = event.target.value;
45
- this.value.set(value);
46
- this.valueChange.emit(value);
47
- this._onChange?.(value);
48
- this._onTouched?.();
49
- }
50
- _blur() {
51
- this._onTouched?.();
52
- }
53
- /** CONTROL VALUE ACCESSOR */
54
- writeValue(value) {
55
- this.value.set(value);
56
- }
57
- registerOnChange(fn) {
58
- this._onChange = fn;
59
- }
60
- registerOnTouched(fn) {
61
- this._onTouched = fn;
62
- }
63
- setDisabledState(isDisabled) {
64
- this._disabled.set(isDisabled);
65
- }
66
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNativeSelect, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
67
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: HlmNativeSelect, isStandalone: true, selector: "hlm-native-select", inputs: { selectId: { classPropertyName: "selectId", publicName: "selectId", isSignal: true, isRequired: false, transformFunction: null }, selectClass: { classPropertyName: "selectClass", publicName: "selectClass", isSignal: true, isRequired: false, transformFunction: null }, selectIconClass: { classPropertyName: "selectIconClass", publicName: "selectIconClass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, forceInvalid: { classPropertyName: "forceInvalid", publicName: "forceInvalid", isSignal: true, isRequired: false, transformFunction: null }, ariaInvalidOverride: { classPropertyName: "ariaInvalidOverride", publicName: "aria-invalid", isSignal: true, isRequired: false, transformFunction: null }, valueInput: { classPropertyName: "valueInput", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { attributes: { "data-slot": "native-select-wrapper" }, properties: { "attr.data-size": "size()" } }, providers: [
68
- HLM_NATIVE_SELECT_VALUE_ACCESSOR,
69
- provideIcons({ lucideChevronDown }),
70
- provideBrnLabelable(HlmNativeSelect),
71
- ], hostDirectives: [{ directive: i1.BrnFieldControl }], ngImport: i0, template: `
14
+ var HlmNativeSelect = class HlmNativeSelect {
15
+ static {
16
+ this._id = 0;
17
+ }
18
+ constructor() {
19
+ this._fieldControl = inject(BrnFieldControl, { optional: true });
20
+ this.selectId = input(`hlm-native-select-${HlmNativeSelect._id++}`, ...ngDevMode ? [{ debugName: "selectId" }] : /* istanbul ignore next */ []);
21
+ this.selectClass = input("", ...ngDevMode ? [{ debugName: "selectClass" }] : /* istanbul ignore next */ []);
22
+ this._computedSelectClass = computed(() => hlm("border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors select-none focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed", this.selectClass()), ...ngDevMode ? [{ debugName: "_computedSelectClass" }] : /* istanbul ignore next */ []);
23
+ this.selectIconClass = input("", ...ngDevMode ? [{ debugName: "selectIconClass" }] : /* istanbul ignore next */ []);
24
+ this._computedSelectIconClass = computed(() => hlm("text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[length:--spacing(4)] pointer-events-none absolute select-none", this.selectIconClass()), ...ngDevMode ? [{ debugName: "_computedSelectIconClass" }] : /* istanbul ignore next */ []);
25
+ this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
26
+ this.disabled = input(false, {
27
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
28
+ transform: booleanAttribute
29
+ });
30
+ this._disabled = linkedSignal(this.disabled, ...ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []);
31
+ this.forceInvalid = input(false, {
32
+ ...ngDevMode ? { debugName: "forceInvalid" } : /* istanbul ignore next */ {},
33
+ transform: booleanAttribute
34
+ });
35
+ this.ariaInvalidOverride = input(void 0, {
36
+ ...ngDevMode ? { debugName: "ariaInvalidOverride" } : /* istanbul ignore next */ {},
37
+ transform: (v) => v === "" || v === void 0 ? void 0 : booleanAttribute(v),
38
+ alias: "aria-invalid"
39
+ });
40
+ this._ariaInvalid = computed(() => this.ariaInvalidOverride() ?? this._invalid?.(), ...ngDevMode ? [{ debugName: "_ariaInvalid" }] : /* istanbul ignore next */ []);
41
+ this.valueInput = input("", {
42
+ ...ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {},
43
+ alias: "value"
44
+ });
45
+ this.value = linkedSignal(this.valueInput, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
46
+ this.valueChange = output();
47
+ this.labelableId = this.selectId;
48
+ this._invalid = this._fieldControl?.invalid;
49
+ this._touched = this._fieldControl?.touched;
50
+ this._dirty = this._fieldControl?.dirty;
51
+ this._spartanInvalid = computed(() => this.forceInvalid() || this._fieldControl?.spartanInvalid(), ...ngDevMode ? [{ debugName: "_spartanInvalid" }] : /* istanbul ignore next */ []);
52
+ classes(() => "group/native-select relative w-fit has-[select:disabled]:opacity-50");
53
+ }
54
+ _valueChanged(event) {
55
+ const value = event.target.value;
56
+ this.value.set(value);
57
+ this.valueChange.emit(value);
58
+ this._onChange?.(value);
59
+ this._onTouched?.();
60
+ }
61
+ _blur() {
62
+ this._onTouched?.();
63
+ }
64
+ writeValue(value) {
65
+ this.value.set(value);
66
+ }
67
+ registerOnChange(fn) {
68
+ this._onChange = fn;
69
+ }
70
+ registerOnTouched(fn) {
71
+ this._onTouched = fn;
72
+ }
73
+ setDisabledState(isDisabled) {
74
+ this._disabled.set(isDisabled);
75
+ }
76
+ static {
77
+ this.ɵfac = i0.ɵɵngDeclareFactory({
78
+ minVersion: "12.0.0",
79
+ version: "22.2.4",
80
+ ngImport: i0,
81
+ type: HlmNativeSelect,
82
+ deps: [],
83
+ target: i0.ɵɵFactoryTarget.Component
84
+ });
85
+ }
86
+ static {
87
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
88
+ minVersion: "17.1.0",
89
+ version: "22.2.4",
90
+ type: HlmNativeSelect,
91
+ isStandalone: true,
92
+ selector: "hlm-native-select",
93
+ inputs: {
94
+ selectId: {
95
+ classPropertyName: "selectId",
96
+ publicName: "selectId",
97
+ isSignal: true,
98
+ isRequired: false,
99
+ transformFunction: null
100
+ },
101
+ selectClass: {
102
+ classPropertyName: "selectClass",
103
+ publicName: "selectClass",
104
+ isSignal: true,
105
+ isRequired: false,
106
+ transformFunction: null
107
+ },
108
+ selectIconClass: {
109
+ classPropertyName: "selectIconClass",
110
+ publicName: "selectIconClass",
111
+ isSignal: true,
112
+ isRequired: false,
113
+ transformFunction: null
114
+ },
115
+ size: {
116
+ classPropertyName: "size",
117
+ publicName: "size",
118
+ isSignal: true,
119
+ isRequired: false,
120
+ transformFunction: null
121
+ },
122
+ disabled: {
123
+ classPropertyName: "disabled",
124
+ publicName: "disabled",
125
+ isSignal: true,
126
+ isRequired: false,
127
+ transformFunction: null
128
+ },
129
+ forceInvalid: {
130
+ classPropertyName: "forceInvalid",
131
+ publicName: "forceInvalid",
132
+ isSignal: true,
133
+ isRequired: false,
134
+ transformFunction: null
135
+ },
136
+ ariaInvalidOverride: {
137
+ classPropertyName: "ariaInvalidOverride",
138
+ publicName: "aria-invalid",
139
+ isSignal: true,
140
+ isRequired: false,
141
+ transformFunction: null
142
+ },
143
+ valueInput: {
144
+ classPropertyName: "valueInput",
145
+ publicName: "value",
146
+ isSignal: true,
147
+ isRequired: false,
148
+ transformFunction: null
149
+ }
150
+ },
151
+ outputs: { valueChange: "valueChange" },
152
+ host: {
153
+ attributes: { "data-slot": "native-select-wrapper" },
154
+ properties: { "attr.data-size": "size()" }
155
+ },
156
+ providers: [
157
+ HLM_NATIVE_SELECT_VALUE_ACCESSOR,
158
+ provideIcons({ lucideChevronDown }),
159
+ provideBrnLabelable(HlmNativeSelect)
160
+ ],
161
+ hostDirectives: [{ directive: i1.BrnFieldControl }],
162
+ ngImport: i0,
163
+ template: `
72
164
  <select
73
165
  data-slot="native-select"
74
166
  [id]="selectId()"
@@ -93,25 +185,46 @@ class HlmNativeSelect {
93
185
  aria-hidden="true"
94
186
  data-slot="native-select-icon"
95
187
  />
96
- `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
97
- }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNativeSelect, decorators: [{
99
- type: Component,
100
- args: [{
101
- selector: 'hlm-native-select',
102
- imports: [NgIcon],
103
- providers: [
104
- HLM_NATIVE_SELECT_VALUE_ACCESSOR,
105
- provideIcons({ lucideChevronDown }),
106
- provideBrnLabelable(HlmNativeSelect),
107
- ],
108
- changeDetection: ChangeDetectionStrategy.OnPush,
109
- hostDirectives: [BrnFieldControl],
110
- host: {
111
- 'data-slot': 'native-select-wrapper',
112
- '[attr.data-size]': 'size()',
113
- },
114
- template: `
188
+ `,
189
+ isInline: true,
190
+ dependencies: [{
191
+ kind: "component",
192
+ type: NgIcon,
193
+ selector: "ng-icon",
194
+ inputs: [
195
+ "name",
196
+ "svg",
197
+ "size",
198
+ "strokeWidth",
199
+ "color"
200
+ ]
201
+ }],
202
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
203
+ });
204
+ }
205
+ };
206
+ i0.ɵɵngDeclareClassMetadata({
207
+ minVersion: "12.0.0",
208
+ version: "22.2.4",
209
+ ngImport: i0,
210
+ type: HlmNativeSelect,
211
+ decorators: [{
212
+ type: Component,
213
+ args: [{
214
+ selector: "hlm-native-select",
215
+ imports: [NgIcon],
216
+ providers: [
217
+ HLM_NATIVE_SELECT_VALUE_ACCESSOR,
218
+ provideIcons({ lucideChevronDown }),
219
+ provideBrnLabelable(HlmNativeSelect)
220
+ ],
221
+ changeDetection: ChangeDetectionStrategy.OnPush,
222
+ hostDirectives: [BrnFieldControl],
223
+ host: {
224
+ "data-slot": "native-select-wrapper",
225
+ "[attr.data-size]": "size()"
226
+ },
227
+ template: `
115
228
  <select
116
229
  data-slot="native-select"
117
230
  [id]="selectId()"
@@ -136,45 +249,166 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
136
249
  aria-hidden="true"
137
250
  data-slot="native-select-icon"
138
251
  />
139
- `,
140
- }]
141
- }], ctorParameters: () => [], propDecorators: { selectId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectId", required: false }] }], selectClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectClass", required: false }] }], selectIconClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectIconClass", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], forceInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceInvalid", required: false }] }], ariaInvalidOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-invalid", required: false }] }], valueInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
142
-
143
- class HlmNativeSelectOptGroup {
144
- constructor() {
145
- classes(() => 'bg-[Canvas] text-[CanvasText]');
146
- }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNativeSelectOptGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
148
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmNativeSelectOptGroup, isStandalone: true, selector: "optgroup[hlmNativeSelectOptGroup]", host: { attributes: { "data-slot": "native-select-optgroup" } }, ngImport: i0 }); }
149
- }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNativeSelectOptGroup, decorators: [{
151
- type: Directive,
152
- args: [{
153
- selector: 'optgroup[hlmNativeSelectOptGroup]',
154
- host: { 'data-slot': 'native-select-optgroup' },
155
- }]
156
- }], ctorParameters: () => [] });
157
-
158
- class HlmNativeSelectOption {
159
- constructor() {
160
- classes(() => 'bg-[Canvas] text-[CanvasText]');
161
- }
162
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNativeSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
163
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmNativeSelectOption, isStandalone: true, selector: "option[hlmNativeSelectOption]", host: { attributes: { "data-slot": "native-select-option" } }, ngImport: i0 }); }
164
- }
165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmNativeSelectOption, decorators: [{
166
- type: Directive,
167
- args: [{
168
- selector: 'option[hlmNativeSelectOption]',
169
- host: { 'data-slot': 'native-select-option' },
170
- }]
171
- }], ctorParameters: () => [] });
172
-
173
- const HlmNativeSelectImports = [HlmNativeSelect, HlmNativeSelectOption, HlmNativeSelectOptGroup];
174
-
175
- /**
176
- * Generated bundle index. Do not edit.
177
- */
178
-
252
+ `
253
+ }]
254
+ }],
255
+ ctorParameters: () => [],
256
+ propDecorators: {
257
+ selectId: [{
258
+ type: i0.Input,
259
+ args: [{
260
+ isSignal: true,
261
+ alias: "selectId",
262
+ required: false
263
+ }]
264
+ }],
265
+ selectClass: [{
266
+ type: i0.Input,
267
+ args: [{
268
+ isSignal: true,
269
+ alias: "selectClass",
270
+ required: false
271
+ }]
272
+ }],
273
+ selectIconClass: [{
274
+ type: i0.Input,
275
+ args: [{
276
+ isSignal: true,
277
+ alias: "selectIconClass",
278
+ required: false
279
+ }]
280
+ }],
281
+ size: [{
282
+ type: i0.Input,
283
+ args: [{
284
+ isSignal: true,
285
+ alias: "size",
286
+ required: false
287
+ }]
288
+ }],
289
+ disabled: [{
290
+ type: i0.Input,
291
+ args: [{
292
+ isSignal: true,
293
+ alias: "disabled",
294
+ required: false
295
+ }]
296
+ }],
297
+ forceInvalid: [{
298
+ type: i0.Input,
299
+ args: [{
300
+ isSignal: true,
301
+ alias: "forceInvalid",
302
+ required: false
303
+ }]
304
+ }],
305
+ ariaInvalidOverride: [{
306
+ type: i0.Input,
307
+ args: [{
308
+ isSignal: true,
309
+ alias: "aria-invalid",
310
+ required: false
311
+ }]
312
+ }],
313
+ valueInput: [{
314
+ type: i0.Input,
315
+ args: [{
316
+ isSignal: true,
317
+ alias: "value",
318
+ required: false
319
+ }]
320
+ }],
321
+ valueChange: [{
322
+ type: i0.Output,
323
+ args: ["valueChange"]
324
+ }]
325
+ }
326
+ });
327
+ var HlmNativeSelectOptGroup = class HlmNativeSelectOptGroup {
328
+ constructor() {
329
+ classes(() => "bg-[Canvas] text-[CanvasText]");
330
+ }
331
+ static {
332
+ this.ɵfac = i0.ɵɵngDeclareFactory({
333
+ minVersion: "12.0.0",
334
+ version: "22.2.4",
335
+ ngImport: i0,
336
+ type: HlmNativeSelectOptGroup,
337
+ deps: [],
338
+ target: i0.ɵɵFactoryTarget.Directive
339
+ });
340
+ }
341
+ static {
342
+ this.ɵdir = i0.ɵɵngDeclareDirective({
343
+ minVersion: "14.0.0",
344
+ version: "22.2.4",
345
+ type: HlmNativeSelectOptGroup,
346
+ isStandalone: true,
347
+ selector: "optgroup[hlmNativeSelectOptGroup]",
348
+ host: { attributes: { "data-slot": "native-select-optgroup" } },
349
+ ngImport: i0
350
+ });
351
+ }
352
+ };
353
+ i0.ɵɵngDeclareClassMetadata({
354
+ minVersion: "12.0.0",
355
+ version: "22.2.4",
356
+ ngImport: i0,
357
+ type: HlmNativeSelectOptGroup,
358
+ decorators: [{
359
+ type: Directive,
360
+ args: [{
361
+ selector: "optgroup[hlmNativeSelectOptGroup]",
362
+ host: { "data-slot": "native-select-optgroup" }
363
+ }]
364
+ }],
365
+ ctorParameters: () => []
366
+ });
367
+ var HlmNativeSelectOption = class HlmNativeSelectOption {
368
+ constructor() {
369
+ classes(() => "bg-[Canvas] text-[CanvasText]");
370
+ }
371
+ static {
372
+ this.ɵfac = i0.ɵɵngDeclareFactory({
373
+ minVersion: "12.0.0",
374
+ version: "22.2.4",
375
+ ngImport: i0,
376
+ type: HlmNativeSelectOption,
377
+ deps: [],
378
+ target: i0.ɵɵFactoryTarget.Directive
379
+ });
380
+ }
381
+ static {
382
+ this.ɵdir = i0.ɵɵngDeclareDirective({
383
+ minVersion: "14.0.0",
384
+ version: "22.2.4",
385
+ type: HlmNativeSelectOption,
386
+ isStandalone: true,
387
+ selector: "option[hlmNativeSelectOption]",
388
+ host: { attributes: { "data-slot": "native-select-option" } },
389
+ ngImport: i0
390
+ });
391
+ }
392
+ };
393
+ i0.ɵɵngDeclareClassMetadata({
394
+ minVersion: "12.0.0",
395
+ version: "22.2.4",
396
+ ngImport: i0,
397
+ type: HlmNativeSelectOption,
398
+ decorators: [{
399
+ type: Directive,
400
+ args: [{
401
+ selector: "option[hlmNativeSelectOption]",
402
+ host: { "data-slot": "native-select-option" }
403
+ }]
404
+ }],
405
+ ctorParameters: () => []
406
+ });
407
+ const HlmNativeSelectImports = [
408
+ HlmNativeSelect,
409
+ HlmNativeSelectOption,
410
+ HlmNativeSelectOptGroup
411
+ ];
179
412
  export { HLM_NATIVE_SELECT_VALUE_ACCESSOR, HlmNativeSelect, HlmNativeSelectImports, HlmNativeSelectOptGroup, HlmNativeSelectOption };
180
- //# sourceMappingURL=yukit-web-helm-native-select.mjs.map
413
+
414
+ //# sourceMappingURL=yukit-web-helm-native-select.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-native-select.mjs","sources":["../../../projects/yukit-web/helm/native-select/src/lib/hlm-native-select.ts","../../../projects/yukit-web/helm/native-select/src/lib/hlm-native-select-opt-group.ts","../../../projects/yukit-web/helm/native-select/src/lib/hlm-native-select-option.ts","../../../projects/yukit-web/helm/native-select/src/index.ts","../../../projects/yukit-web/helm/native-select/src/yukit-web-helm-native-select.ts"],"sourcesContent":["import type { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tforwardRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\toutput,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR, type ControlValueAccessor } from '@angular/forms';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronDown } from '@ng-icons/lucide';\nimport { BrnFieldControl, provideBrnLabelable } from '@spartan-ng/brain/field';\nimport { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';\nimport { classes, hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\n\nexport const HLM_NATIVE_SELECT_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => HlmNativeSelect),\n\tmulti: true,\n};\n\n@Component({\n\tselector: 'hlm-native-select',\n\timports: [NgIcon],\n\tproviders: [\n\t\tHLM_NATIVE_SELECT_VALUE_ACCESSOR,\n\t\tprovideIcons({ lucideChevronDown }),\n\t\tprovideBrnLabelable(HlmNativeSelect),\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [BrnFieldControl],\n\thost: {\n\t\t'data-slot': 'native-select-wrapper',\n\t\t'[attr.data-size]': 'size()',\n\t},\n\ttemplate: `\n\t\t<select\n\t\t\tdata-slot=\"native-select\"\n\t\t\t[id]=\"selectId()\"\n\t\t\t[class]=\"_computedSelectClass()\"\n\t\t\t[attr.data-size]=\"size()\"\n\t\t\t[attr.aria-invalid]=\"_ariaInvalid() ? 'true' : null\"\n\t\t\t[attr.data-invalid]=\"_ariaInvalid() ? 'true' : null\"\n\t\t\t[attr.data-dirty]=\"_dirty?.() ? 'true' : null\"\n\t\t\t[attr.data-touched]=\"_touched?.() ? 'true' : null\"\n\t\t\t[attr.data-matches-spartan-invalid]=\"_spartanInvalid() ? 'true' : null\"\n\t\t\t[value]=\"value()\"\n\t\t\t[disabled]=\"_disabled()\"\n\t\t\t(change)=\"_valueChanged($event)\"\n\t\t\t(blur)=\"_blur()\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</select>\n\n\t\t<ng-icon\n\t\t\tname=\"lucideChevronDown\"\n\t\t\t[class]=\"_computedSelectIconClass()\"\n\t\t\taria-hidden=\"true\"\n\t\t\tdata-slot=\"native-select-icon\"\n\t\t/>\n\t`,\n})\nexport class HlmNativeSelect implements ControlValueAccessor {\n\tprivate readonly _fieldControl = inject(BrnFieldControl, { optional: true });\n\n\tprivate static _id = 0;\n\n\tpublic readonly selectId = input<string>(`hlm-native-select-${HlmNativeSelect._id++}`);\n\n\tpublic readonly selectClass = input<ClassValue>('');\n\n\tprotected readonly _computedSelectClass = computed(() =>\n\t\thlm(\n\t\t\t'border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors select-none focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed',\n\t\t\tthis.selectClass(),\n\t\t),\n\t);\n\n\tpublic readonly selectIconClass = input<ClassValue>('');\n\n\tprotected readonly _computedSelectIconClass = computed(() =>\n\t\thlm('text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[length:--spacing(4)] pointer-events-none absolute select-none', this.selectIconClass()),\n\t);\n\n\tpublic readonly size = input<'sm' | 'default'>('default');\n\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tprotected readonly _disabled = linkedSignal(this.disabled);\n\n\t/** Whether to force the input into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\t/** Manual override for aria-invalid. When not set, auto-detects from the parent autocomplete error state. */\n\tpublic readonly ariaInvalidOverride = input<boolean | undefined, BooleanInput>(undefined, {\n\t\ttransform: (v: BooleanInput) => (v === '' || v === undefined ? undefined : booleanAttribute(v)),\n\t\talias: 'aria-invalid',\n\t});\n\n\tprotected readonly _ariaInvalid = computed(() => this.ariaInvalidOverride() ?? this._invalid?.());\n\n\tpublic readonly valueInput = input<string | undefined | null>('', { alias: 'value' });\n\tpublic readonly value = linkedSignal(this.valueInput);\n\n\tpublic readonly valueChange = output<string | undefined | null>();\n\n\tprotected _onChange?: ChangeFn<string | undefined | null>;\n\tprotected _onTouched?: TouchFn;\n\n\tpublic readonly labelableId = this.selectId;\n\n\tprotected readonly _invalid = this._fieldControl?.invalid;\n\tprotected readonly _touched = this._fieldControl?.touched;\n\tprotected readonly _dirty = this._fieldControl?.dirty;\n\tprotected readonly _spartanInvalid = computed(() => this.forceInvalid() || this._fieldControl?.spartanInvalid());\n\n\tconstructor() {\n\t\tclasses(() => 'group/native-select relative w-fit has-[select:disabled]:opacity-50');\n\t}\n\n\tprotected _valueChanged(event: Event): void {\n\t\tconst value = (event.target as HTMLSelectElement).value;\n\t\tthis.value.set(value);\n\t\tthis.valueChange.emit(value);\n\t\tthis._onChange?.(value);\n\t\tthis._onTouched?.();\n\t}\n\n\tprotected _blur(): void {\n\t\tthis._onTouched?.();\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\tpublic writeValue(value: string | undefined | null): void {\n\t\tthis.value.set(value);\n\t}\n\n\tpublic registerOnChange(fn: ChangeFn<string | undefined | null>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tpublic registerOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tpublic setDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'optgroup[hlmNativeSelectOptGroup]',\n\thost: { 'data-slot': 'native-select-optgroup' },\n})\nexport class HlmNativeSelectOptGroup {\n\tconstructor() {\n\t\tclasses(() => 'bg-[Canvas] text-[CanvasText]');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'option[hlmNativeSelectOption]',\n\thost: { 'data-slot': 'native-select-option' },\n})\nexport class HlmNativeSelectOption {\n\tconstructor() {\n\t\tclasses(() => 'bg-[Canvas] text-[CanvasText]');\n\t}\n}\n","import { HlmNativeSelect } from './lib/hlm-native-select';\nimport { HlmNativeSelectOptGroup } from './lib/hlm-native-select-opt-group';\nimport { HlmNativeSelectOption } from './lib/hlm-native-select-option';\n\nexport * from './lib/hlm-native-select';\nexport * from './lib/hlm-native-select-opt-group';\nexport * from './lib/hlm-native-select-option';\n\nexport const HlmNativeSelectImports = [HlmNativeSelect, HlmNativeSelectOption, HlmNativeSelectOptGroup] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAoBO,MAAM,gCAAgC,GAAG;AAC/C,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,eAAe,CAAC;AAC9C,IAAA,KAAK,EAAE,IAAI;;MA4CC,eAAe,CAAA;aAGZ,IAAA,CAAA,GAAG,GAAG,CAAH,CAAK;AAmDvB,IAAA,WAAA,GAAA;QArDiB,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAI5D,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,CAAA,kBAAA,EAAqB,eAAe,CAAC,GAAG,EAAE,CAAA,CAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AAEtE,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAa,EAAE,kFAAC;AAEhC,QAAA,IAAA,CAAA,oBAAoB,GAAG,QAAQ,CAAC,MAClD,GAAG,CACF,6wBA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AArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,+BAA+B;AACzC,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,sBAAsB,EAAE;AAC7C,iBAAA;;;ACEM,MAAM,sBAAsB,GAAG,CAAC,eAAe,EAAE,qBAAqB,EAAE,uBAAuB;;ACRtG;;AAEG;;"}
1
+ {"version":3,"file":"yukit-web-helm-native-select.mjs","names":[],"sources":["../../../projects/yukit-web/helm/native-select/src/lib/hlm-native-select.ts","../../../projects/yukit-web/helm/native-select/src/lib/hlm-native-select-opt-group.ts","../../../projects/yukit-web/helm/native-select/src/lib/hlm-native-select-option.ts","../../../projects/yukit-web/helm/native-select/src/index.ts"],"sourcesContent":["import type { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tforwardRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\toutput,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR, type ControlValueAccessor } from '@angular/forms';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronDown } from '@ng-icons/lucide';\nimport { BrnFieldControl, provideBrnLabelable } from '@spartan-ng/brain/field';\nimport { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';\nimport { classes, hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\n\nexport const HLM_NATIVE_SELECT_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => HlmNativeSelect),\n\tmulti: true,\n};\n\n@Component({\n\tselector: 'hlm-native-select',\n\timports: [NgIcon],\n\tproviders: [\n\t\tHLM_NATIVE_SELECT_VALUE_ACCESSOR,\n\t\tprovideIcons({ lucideChevronDown }),\n\t\tprovideBrnLabelable(HlmNativeSelect),\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [BrnFieldControl],\n\thost: {\n\t\t'data-slot': 'native-select-wrapper',\n\t\t'[attr.data-size]': 'size()',\n\t},\n\ttemplate: `\n\t\t<select\n\t\t\tdata-slot=\"native-select\"\n\t\t\t[id]=\"selectId()\"\n\t\t\t[class]=\"_computedSelectClass()\"\n\t\t\t[attr.data-size]=\"size()\"\n\t\t\t[attr.aria-invalid]=\"_ariaInvalid() ? 'true' : null\"\n\t\t\t[attr.data-invalid]=\"_ariaInvalid() ? 'true' : null\"\n\t\t\t[attr.data-dirty]=\"_dirty?.() ? 'true' : null\"\n\t\t\t[attr.data-touched]=\"_touched?.() ? 'true' : null\"\n\t\t\t[attr.data-matches-spartan-invalid]=\"_spartanInvalid() ? 'true' : null\"\n\t\t\t[value]=\"value()\"\n\t\t\t[disabled]=\"_disabled()\"\n\t\t\t(change)=\"_valueChanged($event)\"\n\t\t\t(blur)=\"_blur()\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</select>\n\n\t\t<ng-icon\n\t\t\tname=\"lucideChevronDown\"\n\t\t\t[class]=\"_computedSelectIconClass()\"\n\t\t\taria-hidden=\"true\"\n\t\t\tdata-slot=\"native-select-icon\"\n\t\t/>\n\t`,\n})\nexport class HlmNativeSelect implements ControlValueAccessor {\n\tprivate readonly _fieldControl = inject(BrnFieldControl, { optional: true });\n\n\tprivate static _id = 0;\n\n\tpublic readonly selectId = input<string>(`hlm-native-select-${HlmNativeSelect._id++}`);\n\n\tpublic readonly selectClass = input<ClassValue>('');\n\n\tprotected readonly _computedSelectClass = computed(() =>\n\t\thlm(\n\t\t\t'border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors select-none focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed',\n\t\t\tthis.selectClass(),\n\t\t),\n\t);\n\n\tpublic readonly selectIconClass = input<ClassValue>('');\n\n\tprotected readonly _computedSelectIconClass = computed(() =>\n\t\thlm('text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[length:--spacing(4)] pointer-events-none absolute select-none', this.selectIconClass()),\n\t);\n\n\tpublic readonly size = input<'sm' | 'default'>('default');\n\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tprotected readonly _disabled = linkedSignal(this.disabled);\n\n\t/** Whether to force the input into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\t/** Manual override for aria-invalid. When not set, auto-detects from the parent autocomplete error state. */\n\tpublic readonly ariaInvalidOverride = input<boolean | undefined, BooleanInput>(undefined, {\n\t\ttransform: (v: BooleanInput) => (v === '' || v === undefined ? undefined : booleanAttribute(v)),\n\t\talias: 'aria-invalid',\n\t});\n\n\tprotected readonly _ariaInvalid = computed(() => this.ariaInvalidOverride() ?? this._invalid?.());\n\n\tpublic readonly valueInput = input<string | undefined | null>('', { alias: 'value' });\n\tpublic readonly value = linkedSignal(this.valueInput);\n\n\tpublic readonly valueChange = output<string | undefined | null>();\n\n\tprotected _onChange?: ChangeFn<string | undefined | null>;\n\tprotected _onTouched?: TouchFn;\n\n\tpublic readonly labelableId = this.selectId;\n\n\tprotected readonly _invalid = this._fieldControl?.invalid;\n\tprotected readonly _touched = this._fieldControl?.touched;\n\tprotected readonly _dirty = this._fieldControl?.dirty;\n\tprotected readonly _spartanInvalid = computed(() => this.forceInvalid() || this._fieldControl?.spartanInvalid());\n\n\tconstructor() {\n\t\tclasses(() => 'group/native-select relative w-fit has-[select:disabled]:opacity-50');\n\t}\n\n\tprotected _valueChanged(event: Event): void {\n\t\tconst value = (event.target as HTMLSelectElement).value;\n\t\tthis.value.set(value);\n\t\tthis.valueChange.emit(value);\n\t\tthis._onChange?.(value);\n\t\tthis._onTouched?.();\n\t}\n\n\tprotected _blur(): void {\n\t\tthis._onTouched?.();\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\tpublic writeValue(value: string | undefined | null): void {\n\t\tthis.value.set(value);\n\t}\n\n\tpublic registerOnChange(fn: ChangeFn<string | undefined | null>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tpublic registerOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tpublic setDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'optgroup[hlmNativeSelectOptGroup]',\n\thost: { 'data-slot': 'native-select-optgroup' },\n})\nexport class HlmNativeSelectOptGroup {\n\tconstructor() {\n\t\tclasses(() => 'bg-[Canvas] text-[CanvasText]');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'option[hlmNativeSelectOption]',\n\thost: { 'data-slot': 'native-select-option' },\n})\nexport class HlmNativeSelectOption {\n\tconstructor() {\n\t\tclasses(() => 'bg-[Canvas] text-[CanvasText]');\n\t}\n}\n","import { HlmNativeSelect } from './lib/hlm-native-select';\nimport { HlmNativeSelectOptGroup } from './lib/hlm-native-select-opt-group';\nimport { HlmNativeSelectOption } from './lib/hlm-native-select-option';\n\nexport * from './lib/hlm-native-select';\nexport * from './lib/hlm-native-select-opt-group';\nexport * from './lib/hlm-native-select-option';\n\nexport const HlmNativeSelectImports = [HlmNativeSelect, HlmNativeSelectOption, HlmNativeSelectOptGroup] as const;\n"],"mappings":";;;;;;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