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,211 +1,558 @@
1
- import * as i0 from '@angular/core';
2
- import { input, Directive, inject, ElementRef, computed } from '@angular/core';
3
- import { classes } from 'yukit-web/helm/utils';
4
- import { cva } from 'class-variance-authority';
5
- import * as i1 from 'yukit-web/helm/button';
6
- import { provideBrnButtonConfig, HlmButton } from 'yukit-web/helm/button';
7
-
8
- const attachmentVariants = cva('bg-card text-card-foreground rounded-xl border group/attachment focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap transition-colors focus-within:ring-1 data-[state=idle]:border-dashed', {
9
- variants: {
10
- size: {
11
- default: 'gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2',
12
- sm: 'gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5',
13
- xs: 'rounded-lg gap-1.5 text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1',
14
- },
15
- orientation: {
16
- horizontal: 'min-w-40 items-center',
17
- vertical: 'w-24 flex-col has-data-[slot=attachment-content]:w-30',
18
- },
19
- },
20
- defaultVariants: {
21
- size: 'default',
22
- orientation: 'horizontal',
23
- },
1
+ import * as i0 from "@angular/core";
2
+ import { Directive, ElementRef, computed, inject, input } from "@angular/core";
3
+ import { classes } from "yukit-web/helm/utils";
4
+ import { cva } from "class-variance-authority";
5
+ import * as i1 from "yukit-web/helm/button";
6
+ import { HlmButton, provideBrnButtonConfig } from "yukit-web/helm/button";
7
+ const attachmentVariants = cva("bg-card text-card-foreground rounded-xl border group/attachment focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap transition-colors focus-within:ring-1 data-[state=idle]:border-dashed", {
8
+ variants: {
9
+ size: {
10
+ default: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2",
11
+ sm: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5",
12
+ xs: "rounded-lg gap-1.5 text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1"
13
+ },
14
+ orientation: {
15
+ horizontal: "min-w-40 items-center",
16
+ vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ size: "default",
21
+ orientation: "horizontal"
22
+ }
23
+ });
24
+ var HlmAttachment = class HlmAttachment {
25
+ constructor() {
26
+ this.state = input("done", ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
27
+ this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
28
+ this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
29
+ classes(() => attachmentVariants({
30
+ size: this.size(),
31
+ orientation: this.orientation()
32
+ }));
33
+ }
34
+ static {
35
+ this.ɵfac = i0.ɵɵngDeclareFactory({
36
+ minVersion: "12.0.0",
37
+ version: "22.2.4",
38
+ ngImport: i0,
39
+ type: HlmAttachment,
40
+ deps: [],
41
+ target: i0.ɵɵFactoryTarget.Directive
42
+ });
43
+ }
44
+ static {
45
+ this.ɵdir = i0.ɵɵngDeclareDirective({
46
+ minVersion: "17.1.0",
47
+ version: "22.2.4",
48
+ type: HlmAttachment,
49
+ isStandalone: true,
50
+ selector: "[hlmAttachment],hlm-attachment",
51
+ inputs: {
52
+ state: {
53
+ classPropertyName: "state",
54
+ publicName: "state",
55
+ isSignal: true,
56
+ isRequired: false,
57
+ transformFunction: null
58
+ },
59
+ size: {
60
+ classPropertyName: "size",
61
+ publicName: "size",
62
+ isSignal: true,
63
+ isRequired: false,
64
+ transformFunction: null
65
+ },
66
+ orientation: {
67
+ classPropertyName: "orientation",
68
+ publicName: "orientation",
69
+ isSignal: true,
70
+ isRequired: false,
71
+ transformFunction: null
72
+ }
73
+ },
74
+ host: {
75
+ attributes: { "data-slot": "attachment" },
76
+ properties: {
77
+ "attr.data-state": "state()",
78
+ "attr.data-size": "size()",
79
+ "attr.data-orientation": "orientation()"
80
+ }
81
+ },
82
+ ngImport: i0
83
+ });
84
+ }
85
+ };
86
+ i0.ɵɵngDeclareClassMetadata({
87
+ minVersion: "12.0.0",
88
+ version: "22.2.4",
89
+ ngImport: i0,
90
+ type: HlmAttachment,
91
+ decorators: [{
92
+ type: Directive,
93
+ args: [{
94
+ selector: "[hlmAttachment],hlm-attachment",
95
+ host: {
96
+ "data-slot": "attachment",
97
+ "[attr.data-state]": "state()",
98
+ "[attr.data-size]": "size()",
99
+ "[attr.data-orientation]": "orientation()"
100
+ }
101
+ }]
102
+ }],
103
+ ctorParameters: () => [],
104
+ propDecorators: {
105
+ state: [{
106
+ type: i0.Input,
107
+ args: [{
108
+ isSignal: true,
109
+ alias: "state",
110
+ required: false
111
+ }]
112
+ }],
113
+ size: [{
114
+ type: i0.Input,
115
+ args: [{
116
+ isSignal: true,
117
+ alias: "size",
118
+ required: false
119
+ }]
120
+ }],
121
+ orientation: [{
122
+ type: i0.Input,
123
+ args: [{
124
+ isSignal: true,
125
+ alias: "orientation",
126
+ required: false
127
+ }]
128
+ }]
129
+ }
130
+ });
131
+ var HlmAttachmentAction = class HlmAttachmentAction {
132
+ constructor() {
133
+ this.type = input("button", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
134
+ }
135
+ static {
136
+ this.ɵfac = i0.ɵɵngDeclareFactory({
137
+ minVersion: "12.0.0",
138
+ version: "22.2.4",
139
+ ngImport: i0,
140
+ type: HlmAttachmentAction,
141
+ deps: [],
142
+ target: i0.ɵɵFactoryTarget.Directive
143
+ });
144
+ }
145
+ static {
146
+ this.ɵdir = i0.ɵɵngDeclareDirective({
147
+ minVersion: "17.1.0",
148
+ version: "22.2.4",
149
+ type: HlmAttachmentAction,
150
+ isStandalone: true,
151
+ selector: "button[hlmAttachmentAction]",
152
+ inputs: { type: {
153
+ classPropertyName: "type",
154
+ publicName: "type",
155
+ isSignal: true,
156
+ isRequired: false,
157
+ transformFunction: null
158
+ } },
159
+ host: {
160
+ attributes: { "data-slot": "attachment-action" },
161
+ properties: { "type": "type()" }
162
+ },
163
+ providers: [provideBrnButtonConfig({
164
+ variant: "ghost",
165
+ size: "icon-xs"
166
+ })],
167
+ hostDirectives: [{
168
+ directive: i1.HlmButton,
169
+ inputs: [
170
+ "variant",
171
+ "variant",
172
+ "size",
173
+ "size"
174
+ ]
175
+ }],
176
+ ngImport: i0
177
+ });
178
+ }
179
+ };
180
+ i0.ɵɵngDeclareClassMetadata({
181
+ minVersion: "12.0.0",
182
+ version: "22.2.4",
183
+ ngImport: i0,
184
+ type: HlmAttachmentAction,
185
+ decorators: [{
186
+ type: Directive,
187
+ args: [{
188
+ selector: "button[hlmAttachmentAction]",
189
+ providers: [provideBrnButtonConfig({
190
+ variant: "ghost",
191
+ size: "icon-xs"
192
+ })],
193
+ hostDirectives: [{
194
+ directive: HlmButton,
195
+ inputs: ["variant", "size"]
196
+ }],
197
+ host: {
198
+ "data-slot": "attachment-action",
199
+ "[type]": "type()"
200
+ }
201
+ }]
202
+ }],
203
+ propDecorators: { type: [{
204
+ type: i0.Input,
205
+ args: [{
206
+ isSignal: true,
207
+ alias: "type",
208
+ required: false
209
+ }]
210
+ }] }
211
+ });
212
+ var HlmAttachmentActions = class HlmAttachmentActions {
213
+ constructor() {
214
+ classes(() => "shrink-0 items-center relative z-20 flex group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:gap-1");
215
+ }
216
+ static {
217
+ this.ɵfac = i0.ɵɵngDeclareFactory({
218
+ minVersion: "12.0.0",
219
+ version: "22.2.4",
220
+ ngImport: i0,
221
+ type: HlmAttachmentActions,
222
+ deps: [],
223
+ target: i0.ɵɵFactoryTarget.Directive
224
+ });
225
+ }
226
+ static {
227
+ this.ɵdir = i0.ɵɵngDeclareDirective({
228
+ minVersion: "14.0.0",
229
+ version: "22.2.4",
230
+ type: HlmAttachmentActions,
231
+ isStandalone: true,
232
+ selector: "[hlmAttachmentActions],hlm-attachment-actions",
233
+ host: { attributes: { "data-slot": "attachment-actions" } },
234
+ ngImport: i0
235
+ });
236
+ }
237
+ };
238
+ i0.ɵɵngDeclareClassMetadata({
239
+ minVersion: "12.0.0",
240
+ version: "22.2.4",
241
+ ngImport: i0,
242
+ type: HlmAttachmentActions,
243
+ decorators: [{
244
+ type: Directive,
245
+ args: [{
246
+ selector: "[hlmAttachmentActions],hlm-attachment-actions",
247
+ host: { "data-slot": "attachment-actions" }
248
+ }]
249
+ }],
250
+ ctorParameters: () => []
251
+ });
252
+ var HlmAttachmentContent = class HlmAttachmentContent {
253
+ constructor() {
254
+ classes(() => "min-w-0 flex-1 leading-tight max-w-full group-data-[orientation=vertical]/attachment:px-1");
255
+ }
256
+ static {
257
+ this.ɵfac = i0.ɵɵngDeclareFactory({
258
+ minVersion: "12.0.0",
259
+ version: "22.2.4",
260
+ ngImport: i0,
261
+ type: HlmAttachmentContent,
262
+ deps: [],
263
+ target: i0.ɵɵFactoryTarget.Directive
264
+ });
265
+ }
266
+ static {
267
+ this.ɵdir = i0.ɵɵngDeclareDirective({
268
+ minVersion: "14.0.0",
269
+ version: "22.2.4",
270
+ type: HlmAttachmentContent,
271
+ isStandalone: true,
272
+ selector: "[hlmAttachmentContent],hlm-attachment-content",
273
+ host: { attributes: { "data-slot": "attachment-content" } },
274
+ ngImport: i0
275
+ });
276
+ }
277
+ };
278
+ i0.ɵɵngDeclareClassMetadata({
279
+ minVersion: "12.0.0",
280
+ version: "22.2.4",
281
+ ngImport: i0,
282
+ type: HlmAttachmentContent,
283
+ decorators: [{
284
+ type: Directive,
285
+ args: [{
286
+ selector: "[hlmAttachmentContent],hlm-attachment-content",
287
+ host: { "data-slot": "attachment-content" }
288
+ }]
289
+ }],
290
+ ctorParameters: () => []
291
+ });
292
+ var HlmAttachmentDescription = class HlmAttachmentDescription {
293
+ constructor() {
294
+ classes(() => "text-muted-foreground mt-0.5 truncate text-xs group-data-[state=error]/attachment:text-destructive/80 block max-w-full min-w-0");
295
+ }
296
+ static {
297
+ this.ɵfac = i0.ɵɵngDeclareFactory({
298
+ minVersion: "12.0.0",
299
+ version: "22.2.4",
300
+ ngImport: i0,
301
+ type: HlmAttachmentDescription,
302
+ deps: [],
303
+ target: i0.ɵɵFactoryTarget.Directive
304
+ });
305
+ }
306
+ static {
307
+ this.ɵdir = i0.ɵɵngDeclareDirective({
308
+ minVersion: "14.0.0",
309
+ version: "22.2.4",
310
+ type: HlmAttachmentDescription,
311
+ isStandalone: true,
312
+ selector: "[hlmAttachmentDescription],hlm-attachment-description",
313
+ host: { attributes: { "data-slot": "attachment-description" } },
314
+ ngImport: i0
315
+ });
316
+ }
317
+ };
318
+ i0.ɵɵngDeclareClassMetadata({
319
+ minVersion: "12.0.0",
320
+ version: "22.2.4",
321
+ ngImport: i0,
322
+ type: HlmAttachmentDescription,
323
+ decorators: [{
324
+ type: Directive,
325
+ args: [{
326
+ selector: "[hlmAttachmentDescription],hlm-attachment-description",
327
+ host: { "data-slot": "attachment-description" }
328
+ }]
329
+ }],
330
+ ctorParameters: () => []
331
+ });
332
+ var HlmAttachmentGroup = class HlmAttachmentGroup {
333
+ constructor() {
334
+ classes(() => "scroll-fade-x no-scrollbar flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start");
335
+ }
336
+ static {
337
+ this.ɵfac = i0.ɵɵngDeclareFactory({
338
+ minVersion: "12.0.0",
339
+ version: "22.2.4",
340
+ ngImport: i0,
341
+ type: HlmAttachmentGroup,
342
+ deps: [],
343
+ target: i0.ɵɵFactoryTarget.Directive
344
+ });
345
+ }
346
+ static {
347
+ this.ɵdir = i0.ɵɵngDeclareDirective({
348
+ minVersion: "14.0.0",
349
+ version: "22.2.4",
350
+ type: HlmAttachmentGroup,
351
+ isStandalone: true,
352
+ selector: "[hlmAttachmentGroup],hlm-attachment-group",
353
+ host: { attributes: { "data-slot": "attachment-group" } },
354
+ ngImport: i0
355
+ });
356
+ }
357
+ };
358
+ i0.ɵɵngDeclareClassMetadata({
359
+ minVersion: "12.0.0",
360
+ version: "22.2.4",
361
+ ngImport: i0,
362
+ type: HlmAttachmentGroup,
363
+ decorators: [{
364
+ type: Directive,
365
+ args: [{
366
+ selector: "[hlmAttachmentGroup],hlm-attachment-group",
367
+ host: { "data-slot": "attachment-group" }
368
+ }]
369
+ }],
370
+ ctorParameters: () => []
24
371
  });
25
- class HlmAttachment {
26
- constructor() {
27
- this.state = input('done', ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
28
- this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
29
- this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
30
- classes(() => attachmentVariants({ size: this.size(), orientation: this.orientation() }));
31
- }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachment, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
33
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmAttachment, isStandalone: true, selector: "[hlmAttachment],hlm-attachment", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "attachment" }, properties: { "attr.data-state": "state()", "attr.data-size": "size()", "attr.data-orientation": "orientation()" } }, ngImport: i0 }); }
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachment, decorators: [{
36
- type: Directive,
37
- args: [{
38
- selector: '[hlmAttachment],hlm-attachment',
39
- host: {
40
- 'data-slot': 'attachment',
41
- '[attr.data-state]': 'state()',
42
- '[attr.data-size]': 'size()',
43
- '[attr.data-orientation]': 'orientation()',
44
- },
45
- }]
46
- }], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }] } });
47
-
48
- class HlmAttachmentAction {
49
- constructor() {
50
- this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
51
- }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
53
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmAttachmentAction, isStandalone: true, selector: "button[hlmAttachmentAction]", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "attachment-action" }, properties: { "type": "type()" } }, providers: [provideBrnButtonConfig({ variant: 'ghost', size: 'icon-xs' })], hostDirectives: [{ directive: i1.HlmButton, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0 }); }
54
- }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentAction, decorators: [{
56
- type: Directive,
57
- args: [{
58
- selector: 'button[hlmAttachmentAction]',
59
- providers: [provideBrnButtonConfig({ variant: 'ghost', size: 'icon-xs' })],
60
- hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
61
- host: {
62
- 'data-slot': 'attachment-action',
63
- '[type]': 'type()',
64
- },
65
- }]
66
- }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
67
-
68
- class HlmAttachmentActions {
69
- constructor() {
70
- classes(() => 'shrink-0 items-center relative z-20 flex group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:gap-1');
71
- }
72
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentActions, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
73
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmAttachmentActions, isStandalone: true, selector: "[hlmAttachmentActions],hlm-attachment-actions", host: { attributes: { "data-slot": "attachment-actions" } }, ngImport: i0 }); }
74
- }
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentActions, decorators: [{
76
- type: Directive,
77
- args: [{
78
- selector: '[hlmAttachmentActions],hlm-attachment-actions',
79
- host: { 'data-slot': 'attachment-actions' },
80
- }]
81
- }], ctorParameters: () => [] });
82
-
83
- class HlmAttachmentContent {
84
- constructor() {
85
- classes(() => 'min-w-0 flex-1 leading-tight max-w-full group-data-[orientation=vertical]/attachment:px-1');
86
- }
87
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
88
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmAttachmentContent, isStandalone: true, selector: "[hlmAttachmentContent],hlm-attachment-content", host: { attributes: { "data-slot": "attachment-content" } }, ngImport: i0 }); }
89
- }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentContent, decorators: [{
91
- type: Directive,
92
- args: [{
93
- selector: '[hlmAttachmentContent],hlm-attachment-content',
94
- host: { 'data-slot': 'attachment-content' },
95
- }]
96
- }], ctorParameters: () => [] });
97
-
98
- class HlmAttachmentDescription {
99
- constructor() {
100
- classes(() => 'text-muted-foreground mt-0.5 truncate text-xs group-data-[state=error]/attachment:text-destructive/80 block max-w-full min-w-0');
101
- }
102
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
103
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmAttachmentDescription, isStandalone: true, selector: "[hlmAttachmentDescription],hlm-attachment-description", host: { attributes: { "data-slot": "attachment-description" } }, ngImport: i0 }); }
104
- }
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentDescription, decorators: [{
106
- type: Directive,
107
- args: [{
108
- selector: '[hlmAttachmentDescription],hlm-attachment-description',
109
- host: { 'data-slot': 'attachment-description' },
110
- }]
111
- }], ctorParameters: () => [] });
112
-
113
- class HlmAttachmentGroup {
114
- constructor() {
115
- classes(() => 'scroll-fade-x no-scrollbar flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start');
116
- }
117
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
118
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmAttachmentGroup, isStandalone: true, selector: "[hlmAttachmentGroup],hlm-attachment-group", host: { attributes: { "data-slot": "attachment-group" } }, ngImport: i0 }); }
119
- }
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentGroup, decorators: [{
121
- type: Directive,
122
- args: [{
123
- selector: '[hlmAttachmentGroup],hlm-attachment-group',
124
- host: { 'data-slot': 'attachment-group' },
125
- }]
126
- }], ctorParameters: () => [] });
127
-
128
372
  const attachmentMediaVariants = cva("bg-muted text-foreground w-10 rounded-lg group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive relative flex aspect-square shrink-0 items-center justify-center overflow-hidden group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 [&_ng-icon]:pointer-events-none [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group-data-[orientation=vertical]/attachment:[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(6)] group-data-[size=xs]/attachment:[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(3.5)]", {
129
- variants: {
130
- variant: {
131
- icon: 'bg-muted',
132
- image: 'opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover',
133
- },
134
- },
135
- defaultVariants: {
136
- variant: 'icon',
137
- },
373
+ variants: { variant: {
374
+ icon: "bg-muted",
375
+ image: "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"
376
+ } },
377
+ defaultVariants: { variant: "icon" }
378
+ });
379
+ var HlmAttachmentMedia = class HlmAttachmentMedia {
380
+ constructor() {
381
+ this.variant = input("icon", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
382
+ classes(() => attachmentMediaVariants({ variant: this.variant() }));
383
+ }
384
+ static {
385
+ this.ɵfac = i0.ɵɵngDeclareFactory({
386
+ minVersion: "12.0.0",
387
+ version: "22.2.4",
388
+ ngImport: i0,
389
+ type: HlmAttachmentMedia,
390
+ deps: [],
391
+ target: i0.ɵɵFactoryTarget.Directive
392
+ });
393
+ }
394
+ static {
395
+ this.ɵdir = i0.ɵɵngDeclareDirective({
396
+ minVersion: "17.1.0",
397
+ version: "22.2.4",
398
+ type: HlmAttachmentMedia,
399
+ isStandalone: true,
400
+ selector: "[hlmAttachmentMedia],hlm-attachment-media",
401
+ inputs: { variant: {
402
+ classPropertyName: "variant",
403
+ publicName: "variant",
404
+ isSignal: true,
405
+ isRequired: false,
406
+ transformFunction: null
407
+ } },
408
+ host: {
409
+ attributes: { "data-slot": "attachment-media" },
410
+ properties: { "attr.data-variant": "variant()" }
411
+ },
412
+ ngImport: i0
413
+ });
414
+ }
415
+ };
416
+ i0.ɵɵngDeclareClassMetadata({
417
+ minVersion: "12.0.0",
418
+ version: "22.2.4",
419
+ ngImport: i0,
420
+ type: HlmAttachmentMedia,
421
+ decorators: [{
422
+ type: Directive,
423
+ args: [{
424
+ selector: "[hlmAttachmentMedia],hlm-attachment-media",
425
+ host: {
426
+ "data-slot": "attachment-media",
427
+ "[attr.data-variant]": "variant()"
428
+ }
429
+ }]
430
+ }],
431
+ ctorParameters: () => [],
432
+ propDecorators: { variant: [{
433
+ type: i0.Input,
434
+ args: [{
435
+ isSignal: true,
436
+ alias: "variant",
437
+ required: false
438
+ }]
439
+ }] }
440
+ });
441
+ var HlmAttachmentTitle = class HlmAttachmentTitle {
442
+ constructor() {
443
+ classes(() => "truncate text-sm font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block max-w-full min-w-0");
444
+ }
445
+ static {
446
+ this.ɵfac = i0.ɵɵngDeclareFactory({
447
+ minVersion: "12.0.0",
448
+ version: "22.2.4",
449
+ ngImport: i0,
450
+ type: HlmAttachmentTitle,
451
+ deps: [],
452
+ target: i0.ɵɵFactoryTarget.Directive
453
+ });
454
+ }
455
+ static {
456
+ this.ɵdir = i0.ɵɵngDeclareDirective({
457
+ minVersion: "14.0.0",
458
+ version: "22.2.4",
459
+ type: HlmAttachmentTitle,
460
+ isStandalone: true,
461
+ selector: "[hlmAttachmentTitle],hlm-attachment-title",
462
+ host: { attributes: { "data-slot": "attachment-title" } },
463
+ ngImport: i0
464
+ });
465
+ }
466
+ };
467
+ i0.ɵɵngDeclareClassMetadata({
468
+ minVersion: "12.0.0",
469
+ version: "22.2.4",
470
+ ngImport: i0,
471
+ type: HlmAttachmentTitle,
472
+ decorators: [{
473
+ type: Directive,
474
+ args: [{
475
+ selector: "[hlmAttachmentTitle],hlm-attachment-title",
476
+ host: { "data-slot": "attachment-title" }
477
+ }]
478
+ }],
479
+ ctorParameters: () => []
480
+ });
481
+ var HlmAttachmentTrigger = class HlmAttachmentTrigger {
482
+ constructor() {
483
+ this._elementRef = inject(ElementRef);
484
+ this.type = input("button", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
485
+ this._hostType = computed(() => this._elementRef.nativeElement.localName === "button" ? this.type() : null, ...ngDevMode ? [{ debugName: "_hostType" }] : /* istanbul ignore next */ []);
486
+ classes(() => "absolute inset-0 z-10 outline-none");
487
+ }
488
+ static {
489
+ this.ɵfac = i0.ɵɵngDeclareFactory({
490
+ minVersion: "12.0.0",
491
+ version: "22.2.4",
492
+ ngImport: i0,
493
+ type: HlmAttachmentTrigger,
494
+ deps: [],
495
+ target: i0.ɵɵFactoryTarget.Directive
496
+ });
497
+ }
498
+ static {
499
+ this.ɵdir = i0.ɵɵngDeclareDirective({
500
+ minVersion: "17.1.0",
501
+ version: "22.2.4",
502
+ type: HlmAttachmentTrigger,
503
+ isStandalone: true,
504
+ selector: "button[hlmAttachmentTrigger],a[hlmAttachmentTrigger]",
505
+ inputs: { type: {
506
+ classPropertyName: "type",
507
+ publicName: "type",
508
+ isSignal: true,
509
+ isRequired: false,
510
+ transformFunction: null
511
+ } },
512
+ host: {
513
+ attributes: { "data-slot": "attachment-trigger" },
514
+ properties: { "attr.type": "_hostType()" }
515
+ },
516
+ ngImport: i0
517
+ });
518
+ }
519
+ };
520
+ i0.ɵɵngDeclareClassMetadata({
521
+ minVersion: "12.0.0",
522
+ version: "22.2.4",
523
+ ngImport: i0,
524
+ type: HlmAttachmentTrigger,
525
+ decorators: [{
526
+ type: Directive,
527
+ args: [{
528
+ selector: "button[hlmAttachmentTrigger],a[hlmAttachmentTrigger]",
529
+ host: {
530
+ "data-slot": "attachment-trigger",
531
+ "[attr.type]": "_hostType()"
532
+ }
533
+ }]
534
+ }],
535
+ ctorParameters: () => [],
536
+ propDecorators: { type: [{
537
+ type: i0.Input,
538
+ args: [{
539
+ isSignal: true,
540
+ alias: "type",
541
+ required: false
542
+ }]
543
+ }] }
138
544
  });
139
- class HlmAttachmentMedia {
140
- constructor() {
141
- this.variant = input('icon', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
142
- classes(() => attachmentMediaVariants({ variant: this.variant() }));
143
- }
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
145
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmAttachmentMedia, isStandalone: true, selector: "[hlmAttachmentMedia],hlm-attachment-media", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "attachment-media" }, properties: { "attr.data-variant": "variant()" } }, ngImport: i0 }); }
146
- }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentMedia, decorators: [{
148
- type: Directive,
149
- args: [{
150
- selector: '[hlmAttachmentMedia],hlm-attachment-media',
151
- host: {
152
- 'data-slot': 'attachment-media',
153
- '[attr.data-variant]': 'variant()',
154
- },
155
- }]
156
- }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
157
-
158
- class HlmAttachmentTitle {
159
- constructor() {
160
- classes(() => 'truncate text-sm font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block max-w-full min-w-0');
161
- }
162
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
163
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmAttachmentTitle, isStandalone: true, selector: "[hlmAttachmentTitle],hlm-attachment-title", host: { attributes: { "data-slot": "attachment-title" } }, ngImport: i0 }); }
164
- }
165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentTitle, decorators: [{
166
- type: Directive,
167
- args: [{
168
- selector: '[hlmAttachmentTitle],hlm-attachment-title',
169
- host: { 'data-slot': 'attachment-title' },
170
- }]
171
- }], ctorParameters: () => [] });
172
-
173
- class HlmAttachmentTrigger {
174
- constructor() {
175
- this._elementRef = inject((ElementRef));
176
- this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
177
- this._hostType = computed(() => this._elementRef.nativeElement.localName === 'button' ? this.type() : null, ...(ngDevMode ? [{ debugName: "_hostType" }] : /* istanbul ignore next */ []));
178
- classes(() => 'absolute inset-0 z-10 outline-none');
179
- }
180
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
181
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmAttachmentTrigger, isStandalone: true, selector: "button[hlmAttachmentTrigger],a[hlmAttachmentTrigger]", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "attachment-trigger" }, properties: { "attr.type": "_hostType()" } }, ngImport: i0 }); }
182
- }
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmAttachmentTrigger, decorators: [{
184
- type: Directive,
185
- args: [{
186
- selector: 'button[hlmAttachmentTrigger],a[hlmAttachmentTrigger]',
187
- host: {
188
- 'data-slot': 'attachment-trigger',
189
- '[attr.type]': '_hostType()',
190
- },
191
- }]
192
- }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
193
-
194
545
  const HlmAttachmentImports = [
195
- HlmAttachment,
196
- HlmAttachmentAction,
197
- HlmAttachmentActions,
198
- HlmAttachmentContent,
199
- HlmAttachmentDescription,
200
- HlmAttachmentGroup,
201
- HlmAttachmentMedia,
202
- HlmAttachmentTitle,
203
- HlmAttachmentTrigger,
546
+ HlmAttachment,
547
+ HlmAttachmentAction,
548
+ HlmAttachmentActions,
549
+ HlmAttachmentContent,
550
+ HlmAttachmentDescription,
551
+ HlmAttachmentGroup,
552
+ HlmAttachmentMedia,
553
+ HlmAttachmentTitle,
554
+ HlmAttachmentTrigger
204
555
  ];
205
-
206
- /**
207
- * Generated bundle index. Do not edit.
208
- */
209
-
210
556
  export { HlmAttachment, HlmAttachmentAction, HlmAttachmentActions, HlmAttachmentContent, HlmAttachmentDescription, HlmAttachmentGroup, HlmAttachmentImports, HlmAttachmentMedia, HlmAttachmentTitle, HlmAttachmentTrigger };
211
- //# sourceMappingURL=yukit-web-helm-attachment.mjs.map
557
+
558
+ //# sourceMappingURL=yukit-web-helm-attachment.mjs.map