yukit-web 0.10.6 → 0.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24457 -9670
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/types/yukit-web-chart.d.ts +184 -125
  129. package/types/yukit-web-helm-accordion.d.ts +49 -28
  130. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  131. package/types/yukit-web-helm-alert.d.ts +30 -32
  132. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  133. package/types/yukit-web-helm-attachment.d.ts +97 -69
  134. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  135. package/types/yukit-web-helm-avatar.d.ts +44 -39
  136. package/types/yukit-web-helm-badge.d.ts +18 -17
  137. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  138. package/types/yukit-web-helm-bubble.d.ts +54 -40
  139. package/types/yukit-web-helm-button-group.d.ts +29 -22
  140. package/types/yukit-web-helm-button.d.ts +41 -31
  141. package/types/yukit-web-helm-calendar.d.ts +157 -85
  142. package/types/yukit-web-helm-card.d.ts +38 -42
  143. package/types/yukit-web-helm-carousel.d.ts +105 -73
  144. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  145. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  146. package/types/yukit-web-helm-combobox.d.ts +355 -150
  147. package/types/yukit-web-helm-command.d.ts +140 -73
  148. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  149. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  150. package/types/yukit-web-helm-dialog.d.ts +106 -78
  151. package/types/yukit-web-helm-drawer.d.ts +90 -61
  152. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  153. package/types/yukit-web-helm-empty.d.ts +38 -42
  154. package/types/yukit-web-helm-field.d.ts +122 -91
  155. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  156. package/types/yukit-web-helm-input-group.d.ts +63 -41
  157. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  158. package/types/yukit-web-helm-input.d.ts +19 -12
  159. package/types/yukit-web-helm-item.d.ts +90 -82
  160. package/types/yukit-web-helm-kbd.d.ts +10 -15
  161. package/types/yukit-web-helm-label.d.ts +14 -11
  162. package/types/yukit-web-helm-marker.d.ts +26 -27
  163. package/types/yukit-web-helm-menubar.d.ts +61 -32
  164. package/types/yukit-web-helm-message.d.ts +34 -38
  165. package/types/yukit-web-helm-native-select.d.ts +102 -61
  166. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  167. package/types/yukit-web-helm-pagination.d.ts +344 -166
  168. package/types/yukit-web-helm-popover.d.ts +62 -42
  169. package/types/yukit-web-helm-progress.d.ts +27 -20
  170. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  171. package/types/yukit-web-helm-resizable.d.ts +46 -24
  172. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  173. package/types/yukit-web-helm-select.d.ts +231 -114
  174. package/types/yukit-web-helm-separator.d.ts +15 -12
  175. package/types/yukit-web-helm-sheet.d.ts +94 -65
  176. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  177. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  178. package/types/yukit-web-helm-slider.d.ts +33 -13
  179. package/types/yukit-web-helm-sonner.d.ts +112 -51
  180. package/types/yukit-web-helm-spinner.d.ts +24 -17
  181. package/types/yukit-web-helm-switch.d.ts +89 -51
  182. package/types/yukit-web-helm-table.d.ts +38 -42
  183. package/types/yukit-web-helm-tabs.d.ts +116 -60
  184. package/types/yukit-web-helm-textarea.d.ts +19 -12
  185. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  186. package/types/yukit-web-helm-toggle.d.ts +39 -21
  187. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  188. package/types/yukit-web-helm-typography.d.ts +62 -77
  189. package/types/yukit-web-helm-utils.d.ts +8 -11
  190. package/types/yukit-web.d.ts +5092 -2351
@@ -1,99 +1,226 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, effect, untracked, Directive, forwardRef, ChangeDetectionStrategy, Component, inject, booleanAttribute, Injectable } from '@angular/core';
3
- import * as i1 from '@spartan-ng/brain/dialog';
4
- import { BrnDialogOverlay, BrnDialog, provideBrnDialogDefaultOptions, BrnDialogClose, BrnDialogRef, injectBrnDialogContext, BrnDialogDescription, BrnDialogContent, BrnDialogTitle, BrnDialogTrigger, BrnDialogService, cssClassesToArray } from '@spartan-ng/brain/dialog';
5
- import { injectCustomClassSettable } from '@spartan-ng/brain/core';
6
- import { hlm, classes } from 'yukit-web/helm/utils';
7
- import { NgComponentOutlet } from '@angular/common';
8
- import { NgIcon, provideIcons } from '@ng-icons/core';
9
- import { lucideX } from '@ng-icons/lucide';
10
- import { HlmButton } from 'yukit-web/helm/button';
11
-
12
- const hlmDialogOverlayClass = hlm('data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs');
13
- class HlmDialogOverlay {
14
- constructor() {
15
- this._classSettable = injectCustomClassSettable({ optional: true, host: true });
16
- this.userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
17
- this._computedClass = computed(() => hlm(hlmDialogOverlayClass, this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
18
- effect(() => {
19
- const newClass = this._computedClass();
20
- untracked(() => this._classSettable?.setClassToCustomElement(newClass));
21
- });
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmDialogOverlay, isStandalone: true, selector: "[hlmDialogOverlay],hlm-dialog-overlay", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1.BrnDialogOverlay }], ngImport: i0 }); }
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogOverlay, decorators: [{
27
- type: Directive,
28
- args: [{
29
- selector: '[hlmDialogOverlay],hlm-dialog-overlay',
30
- hostDirectives: [BrnDialogOverlay],
31
- }]
32
- }], ctorParameters: () => [], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
33
-
34
- class HlmDialog extends BrnDialog {
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialog, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
36
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialog, isStandalone: true, selector: "hlm-dialog", providers: [
37
- {
38
- provide: BrnDialog,
39
- useExisting: forwardRef(() => HlmDialog),
40
- },
41
- provideBrnDialogDefaultOptions({
42
- // add custom options here
43
- }),
44
- ], exportAs: ["hlmDialog"], usesInheritance: true, ngImport: i0, template: `
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, Injectable, booleanAttribute, computed, effect, forwardRef, inject, input, untracked } from "@angular/core";
3
+ import * as i1 from "@spartan-ng/brain/dialog";
4
+ import { BrnDialog, BrnDialogClose, BrnDialogContent, BrnDialogDescription, BrnDialogOverlay, BrnDialogRef, BrnDialogService, BrnDialogTitle, BrnDialogTrigger, cssClassesToArray, injectBrnDialogContext, provideBrnDialogDefaultOptions } from "@spartan-ng/brain/dialog";
5
+ import { injectCustomClassSettable } from "@spartan-ng/brain/core";
6
+ import { classes, hlm } from "yukit-web/helm/utils";
7
+ import { NgComponentOutlet } from "@angular/common";
8
+ import { NgIcon, provideIcons } from "@ng-icons/core";
9
+ import { lucideX } from "@ng-icons/lucide";
10
+ import { HlmButton } from "yukit-web/helm/button";
11
+ const hlmDialogOverlayClass = hlm("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs");
12
+ var HlmDialogOverlay = class HlmDialogOverlay {
13
+ constructor() {
14
+ this._classSettable = injectCustomClassSettable({
15
+ optional: true,
16
+ host: true
17
+ });
18
+ this.userClass = input("", {
19
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
20
+ alias: "class"
21
+ });
22
+ this._computedClass = computed(() => hlm(hlmDialogOverlayClass, this.userClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
23
+ effect(() => {
24
+ const newClass = this._computedClass();
25
+ untracked(() => this._classSettable?.setClassToCustomElement(newClass));
26
+ });
27
+ }
28
+ static {
29
+ this.ɵfac = i0.ɵɵngDeclareFactory({
30
+ minVersion: "12.0.0",
31
+ version: "22.2.4",
32
+ ngImport: i0,
33
+ type: HlmDialogOverlay,
34
+ deps: [],
35
+ target: i0.ɵɵFactoryTarget.Directive
36
+ });
37
+ }
38
+ static {
39
+ this.ɵdir = i0.ɵɵngDeclareDirective({
40
+ minVersion: "17.1.0",
41
+ version: "22.2.4",
42
+ type: HlmDialogOverlay,
43
+ isStandalone: true,
44
+ selector: "[hlmDialogOverlay],hlm-dialog-overlay",
45
+ inputs: { userClass: {
46
+ classPropertyName: "userClass",
47
+ publicName: "class",
48
+ isSignal: true,
49
+ isRequired: false,
50
+ transformFunction: null
51
+ } },
52
+ hostDirectives: [{ directive: i1.BrnDialogOverlay }],
53
+ ngImport: i0
54
+ });
55
+ }
56
+ };
57
+ i0.ɵɵngDeclareClassMetadata({
58
+ minVersion: "12.0.0",
59
+ version: "22.2.4",
60
+ ngImport: i0,
61
+ type: HlmDialogOverlay,
62
+ decorators: [{
63
+ type: Directive,
64
+ args: [{
65
+ selector: "[hlmDialogOverlay],hlm-dialog-overlay",
66
+ hostDirectives: [BrnDialogOverlay]
67
+ }]
68
+ }],
69
+ ctorParameters: () => [],
70
+ propDecorators: { userClass: [{
71
+ type: i0.Input,
72
+ args: [{
73
+ isSignal: true,
74
+ alias: "class",
75
+ required: false
76
+ }]
77
+ }] }
78
+ });
79
+ var HlmDialog = class HlmDialog extends BrnDialog {
80
+ static {
81
+ this.ɵfac = i0.ɵɵngDeclareFactory({
82
+ minVersion: "12.0.0",
83
+ version: "22.2.4",
84
+ ngImport: i0,
85
+ type: HlmDialog,
86
+ deps: null,
87
+ target: i0.ɵɵFactoryTarget.Component
88
+ });
89
+ }
90
+ static {
91
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
92
+ minVersion: "14.0.0",
93
+ version: "22.2.4",
94
+ type: HlmDialog,
95
+ isStandalone: true,
96
+ selector: "hlm-dialog",
97
+ providers: [{
98
+ provide: BrnDialog,
99
+ useExisting: forwardRef(() => HlmDialog)
100
+ }, provideBrnDialogDefaultOptions({})],
101
+ exportAs: ["hlmDialog"],
102
+ usesInheritance: true,
103
+ ngImport: i0,
104
+ template: `
45
105
  <hlm-dialog-overlay />
46
106
  <ng-content />
47
- `, isInline: true, dependencies: [{ kind: "directive", type: HlmDialogOverlay, selector: "[hlmDialogOverlay],hlm-dialog-overlay", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialog, decorators: [{
50
- type: Component,
51
- args: [{
52
- selector: 'hlm-dialog',
53
- exportAs: 'hlmDialog',
54
- imports: [HlmDialogOverlay],
55
- providers: [
56
- {
57
- provide: BrnDialog,
58
- useExisting: forwardRef(() => HlmDialog),
59
- },
60
- provideBrnDialogDefaultOptions({
61
- // add custom options here
62
- }),
63
- ],
64
- changeDetection: ChangeDetectionStrategy.OnPush,
65
- template: `
107
+ `,
108
+ isInline: true,
109
+ dependencies: [{
110
+ kind: "directive",
111
+ type: HlmDialogOverlay,
112
+ selector: "[hlmDialogOverlay],hlm-dialog-overlay",
113
+ inputs: ["class"]
114
+ }],
115
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
116
+ });
117
+ }
118
+ };
119
+ i0.ɵɵngDeclareClassMetadata({
120
+ minVersion: "12.0.0",
121
+ version: "22.2.4",
122
+ ngImport: i0,
123
+ type: HlmDialog,
124
+ decorators: [{
125
+ type: Component,
126
+ args: [{
127
+ selector: "hlm-dialog",
128
+ exportAs: "hlmDialog",
129
+ imports: [HlmDialogOverlay],
130
+ providers: [{
131
+ provide: BrnDialog,
132
+ useExisting: forwardRef(() => HlmDialog)
133
+ }, provideBrnDialogDefaultOptions({})],
134
+ changeDetection: ChangeDetectionStrategy.OnPush,
135
+ template: `
66
136
  <hlm-dialog-overlay />
67
137
  <ng-content />
68
- `,
69
- }]
70
- }] });
71
-
72
- class HlmDialogClose {
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogClose, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialogClose, isStandalone: true, selector: "button[hlmDialogClose]", host: { attributes: { "data-slot": "dialog-close" } }, hostDirectives: [{ directive: i1.BrnDialogClose }], ngImport: i0 }); }
75
- }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogClose, decorators: [{
77
- type: Directive,
78
- args: [{
79
- selector: 'button[hlmDialogClose]',
80
- hostDirectives: [BrnDialogClose],
81
- host: { 'data-slot': 'dialog-close' },
82
- }]
83
- }] });
84
-
85
- class HlmDialogContent {
86
- constructor() {
87
- this._dialogRef = inject(BrnDialogRef);
88
- this._dialogContext = injectBrnDialogContext({ optional: true });
89
- this.showCloseButton = input(this._dialogContext?.$showCloseButton ?? true, { ...(ngDevMode ? { debugName: "showCloseButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
90
- this.state = computed(() => this._dialogRef?.state() ?? 'closed', ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
91
- this.component = this._dialogContext?.$component;
92
- this._dynamicComponentClass = this._dialogContext?.$dynamicComponentClass;
93
- classes(() => ['bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm relative mx-auto w-full outline-none sm:mx-0', this._dynamicComponentClass]);
94
- }
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
96
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HlmDialogContent, isStandalone: true, selector: "hlm-dialog-content", inputs: { showCloseButton: { classPropertyName: "showCloseButton", publicName: "showCloseButton", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "dialog-content" }, properties: { "attr.data-state": "state()" } }, providers: [provideIcons({ lucideX })], ngImport: i0, template: `
138
+ `
139
+ }]
140
+ }]
141
+ });
142
+ var HlmDialogClose = class HlmDialogClose {
143
+ static {
144
+ this.ɵfac = i0.ɵɵngDeclareFactory({
145
+ minVersion: "12.0.0",
146
+ version: "22.2.4",
147
+ ngImport: i0,
148
+ type: HlmDialogClose,
149
+ deps: [],
150
+ target: i0.ɵɵFactoryTarget.Directive
151
+ });
152
+ }
153
+ static {
154
+ this.ɵdir = i0.ɵɵngDeclareDirective({
155
+ minVersion: "14.0.0",
156
+ version: "22.2.4",
157
+ type: HlmDialogClose,
158
+ isStandalone: true,
159
+ selector: "button[hlmDialogClose]",
160
+ host: { attributes: { "data-slot": "dialog-close" } },
161
+ hostDirectives: [{ directive: i1.BrnDialogClose }],
162
+ ngImport: i0
163
+ });
164
+ }
165
+ };
166
+ i0.ɵɵngDeclareClassMetadata({
167
+ minVersion: "12.0.0",
168
+ version: "22.2.4",
169
+ ngImport: i0,
170
+ type: HlmDialogClose,
171
+ decorators: [{
172
+ type: Directive,
173
+ args: [{
174
+ selector: "button[hlmDialogClose]",
175
+ hostDirectives: [BrnDialogClose],
176
+ host: { "data-slot": "dialog-close" }
177
+ }]
178
+ }]
179
+ });
180
+ var HlmDialogContent = class HlmDialogContent {
181
+ constructor() {
182
+ this._dialogRef = inject(BrnDialogRef);
183
+ this._dialogContext = injectBrnDialogContext({ optional: true });
184
+ this.showCloseButton = input(this._dialogContext?.$showCloseButton ?? true, {
185
+ ...ngDevMode ? { debugName: "showCloseButton" } : /* istanbul ignore next */ {},
186
+ transform: booleanAttribute
187
+ });
188
+ this.state = computed(() => this._dialogRef?.state() ?? "closed", ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
189
+ this.component = this._dialogContext?.$component;
190
+ this._dynamicComponentClass = this._dialogContext?.$dynamicComponentClass;
191
+ classes(() => ["bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm relative mx-auto w-full outline-none sm:mx-0", this._dynamicComponentClass]);
192
+ }
193
+ static {
194
+ this.ɵfac = i0.ɵɵngDeclareFactory({
195
+ minVersion: "12.0.0",
196
+ version: "22.2.4",
197
+ ngImport: i0,
198
+ type: HlmDialogContent,
199
+ deps: [],
200
+ target: i0.ɵɵFactoryTarget.Component
201
+ });
202
+ }
203
+ static {
204
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
205
+ minVersion: "17.0.0",
206
+ version: "22.2.4",
207
+ type: HlmDialogContent,
208
+ isStandalone: true,
209
+ selector: "hlm-dialog-content",
210
+ inputs: { showCloseButton: {
211
+ classPropertyName: "showCloseButton",
212
+ publicName: "showCloseButton",
213
+ isSignal: true,
214
+ isRequired: false,
215
+ transformFunction: null
216
+ } },
217
+ host: {
218
+ attributes: { "data-slot": "dialog-content" },
219
+ properties: { "attr.data-state": "state()" }
220
+ },
221
+ providers: [provideIcons({ lucideX })],
222
+ ngImport: i0,
223
+ template: `
97
224
  @if (component) {
98
225
  <ng-container [ngComponentOutlet]="component" />
99
226
  } @else {
@@ -106,20 +233,74 @@ class HlmDialogContent {
106
233
  <ng-icon name="lucideX" />
107
234
  </button>
108
235
  }
109
- `, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: HlmButton, selector: "button[hlmBtn], a[hlmBtn]", inputs: ["variant", "size"], exportAs: ["hlmBtn"] }, { kind: "directive", type: HlmDialogClose, selector: "button[hlmDialogClose]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
110
- }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogContent, decorators: [{
112
- type: Component,
113
- args: [{
114
- selector: 'hlm-dialog-content',
115
- imports: [NgComponentOutlet, HlmButton, HlmDialogClose, NgIcon],
116
- providers: [provideIcons({ lucideX })],
117
- changeDetection: ChangeDetectionStrategy.OnPush,
118
- host: {
119
- 'data-slot': 'dialog-content',
120
- '[attr.data-state]': 'state()',
121
- },
122
- template: `
236
+ `,
237
+ isInline: true,
238
+ dependencies: [
239
+ {
240
+ kind: "directive",
241
+ type: NgComponentOutlet,
242
+ selector: "[ngComponentOutlet]",
243
+ inputs: [
244
+ "ngComponentOutlet",
245
+ "ngComponentOutletInputs",
246
+ "ngComponentOutletInjector",
247
+ "ngComponentOutletEnvironmentInjector",
248
+ "ngComponentOutletContent",
249
+ "ngComponentOutletNgModule"
250
+ ],
251
+ exportAs: ["ngComponentOutlet"]
252
+ },
253
+ {
254
+ kind: "directive",
255
+ type: HlmButton,
256
+ selector: "button[hlmBtn], a[hlmBtn]",
257
+ inputs: ["variant", "size"],
258
+ exportAs: ["hlmBtn"]
259
+ },
260
+ {
261
+ kind: "directive",
262
+ type: HlmDialogClose,
263
+ selector: "button[hlmDialogClose]"
264
+ },
265
+ {
266
+ kind: "component",
267
+ type: NgIcon,
268
+ selector: "ng-icon",
269
+ inputs: [
270
+ "name",
271
+ "svg",
272
+ "size",
273
+ "strokeWidth",
274
+ "color"
275
+ ]
276
+ }
277
+ ],
278
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
279
+ });
280
+ }
281
+ };
282
+ i0.ɵɵngDeclareClassMetadata({
283
+ minVersion: "12.0.0",
284
+ version: "22.2.4",
285
+ ngImport: i0,
286
+ type: HlmDialogContent,
287
+ decorators: [{
288
+ type: Component,
289
+ args: [{
290
+ selector: "hlm-dialog-content",
291
+ imports: [
292
+ NgComponentOutlet,
293
+ HlmButton,
294
+ HlmDialogClose,
295
+ NgIcon
296
+ ],
297
+ providers: [provideIcons({ lucideX })],
298
+ changeDetection: ChangeDetectionStrategy.OnPush,
299
+ host: {
300
+ "data-slot": "dialog-content",
301
+ "[attr.data-state]": "state()"
302
+ },
303
+ template: `
123
304
  @if (component) {
124
305
  <ng-container [ngComponentOutlet]="component" />
125
306
  } @else {
@@ -132,140 +313,344 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
132
313
  <ng-icon name="lucideX" />
133
314
  </button>
134
315
  }
135
- `,
136
- }]
137
- }], ctorParameters: () => [], propDecorators: { showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }] } });
138
-
139
- class HlmDialogDescription {
140
- constructor() {
141
- classes(() => 'text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3');
142
- }
143
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
144
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialogDescription, isStandalone: true, selector: "[hlmDialogDescription]", host: { attributes: { "data-slot": "dialog-description" } }, hostDirectives: [{ directive: i1.BrnDialogDescription }], ngImport: i0 }); }
145
- }
146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogDescription, decorators: [{
147
- type: Directive,
148
- args: [{
149
- selector: '[hlmDialogDescription]',
150
- hostDirectives: [BrnDialogDescription],
151
- host: { 'data-slot': 'dialog-description' },
152
- }]
153
- }], ctorParameters: () => [] });
154
-
155
- class HlmDialogFooter {
156
- constructor() {
157
- classes(() => 'bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end');
158
- }
159
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
160
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialogFooter, isStandalone: true, selector: "[hlmDialogFooter],hlm-dialog-footer", host: { attributes: { "data-slot": "dialog-footer" } }, ngImport: i0 }); }
161
- }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogFooter, decorators: [{
163
- type: Directive,
164
- args: [{
165
- selector: '[hlmDialogFooter],hlm-dialog-footer',
166
- host: { 'data-slot': 'dialog-footer' },
167
- }]
168
- }], ctorParameters: () => [] });
169
-
170
- class HlmDialogHeader {
171
- constructor() {
172
- classes(() => 'gap-2 flex flex-col');
173
- }
174
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
175
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialogHeader, isStandalone: true, selector: "[hlmDialogHeader],hlm-dialog-header", host: { attributes: { "data-slot": "dialog-header" } }, ngImport: i0 }); }
176
- }
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogHeader, decorators: [{
178
- type: Directive,
179
- args: [{
180
- selector: '[hlmDialogHeader],hlm-dialog-header',
181
- host: { 'data-slot': 'dialog-header' },
182
- }]
183
- }], ctorParameters: () => [] });
184
-
185
- class HlmDialogPortal {
186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
187
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialogPortal, isStandalone: true, selector: "[hlmDialogPortal]", hostDirectives: [{ directive: i1.BrnDialogContent, inputs: ["context", "context", "class", "class"] }], ngImport: i0 }); }
188
- }
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogPortal, decorators: [{
190
- type: Directive,
191
- args: [{
192
- selector: '[hlmDialogPortal]',
193
- hostDirectives: [{ directive: BrnDialogContent, inputs: ['context', 'class'] }],
194
- }]
195
- }] });
196
-
197
- class HlmDialogTitle {
198
- constructor() {
199
- classes(() => 'text-base leading-none font-medium');
200
- }
201
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
202
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialogTitle, isStandalone: true, selector: "[hlmDialogTitle]", host: { attributes: { "data-slot": "dialog-title" } }, hostDirectives: [{ directive: i1.BrnDialogTitle }], ngImport: i0 }); }
203
- }
204
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogTitle, decorators: [{
205
- type: Directive,
206
- args: [{
207
- selector: '[hlmDialogTitle]',
208
- hostDirectives: [BrnDialogTitle],
209
- host: { 'data-slot': 'dialog-title' },
210
- }]
211
- }], ctorParameters: () => [] });
212
-
213
- class HlmDialogTrigger {
214
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
215
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmDialogTrigger, isStandalone: true, selector: "button[hlmDialogTrigger],button[hlmDialogTriggerFor]", host: { attributes: { "data-slot": "dialog-trigger" } }, hostDirectives: [{ directive: i1.BrnDialogTrigger, inputs: ["id", "id", "brnDialogTriggerFor", "hlmDialogTriggerFor", "type", "type"] }], ngImport: i0 }); }
216
- }
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogTrigger, decorators: [{
218
- type: Directive,
219
- args: [{
220
- selector: 'button[hlmDialogTrigger],button[hlmDialogTriggerFor]',
221
- hostDirectives: [{ directive: BrnDialogTrigger, inputs: ['id', 'brnDialogTriggerFor: hlmDialogTriggerFor', 'type'] }],
222
- host: { 'data-slot': 'dialog-trigger' },
223
- }]
224
- }] });
225
-
226
- class HlmDialogService {
227
- constructor() {
228
- this._brnDialogService = inject(BrnDialogService);
229
- }
230
- open(component, options) {
231
- const mergedOptions = {
232
- ...(options ?? {}),
233
- backdropClass: cssClassesToArray(`${hlmDialogOverlayClass} ${options?.backdropClass ?? ''}`),
234
- context: {
235
- ...(options?.context && typeof options.context === 'object' ? options.context : {}),
236
- $component: component,
237
- $dynamicComponentClass: options?.contentClass,
238
- $showCloseButton: options?.showCloseButton,
239
- },
240
- };
241
- return this._brnDialogService.open(HlmDialogContent, undefined, mergedOptions.context, mergedOptions);
242
- }
243
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
244
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogService, providedIn: 'root' }); }
245
- }
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmDialogService, decorators: [{
247
- type: Injectable,
248
- args: [{
249
- providedIn: 'root',
250
- }]
251
- }] });
252
-
316
+ `
317
+ }]
318
+ }],
319
+ ctorParameters: () => [],
320
+ propDecorators: { showCloseButton: [{
321
+ type: i0.Input,
322
+ args: [{
323
+ isSignal: true,
324
+ alias: "showCloseButton",
325
+ required: false
326
+ }]
327
+ }] }
328
+ });
329
+ var HlmDialogDescription = class HlmDialogDescription {
330
+ constructor() {
331
+ classes(() => "text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3");
332
+ }
333
+ static {
334
+ this.ɵfac = i0.ɵɵngDeclareFactory({
335
+ minVersion: "12.0.0",
336
+ version: "22.2.4",
337
+ ngImport: i0,
338
+ type: HlmDialogDescription,
339
+ deps: [],
340
+ target: i0.ɵɵFactoryTarget.Directive
341
+ });
342
+ }
343
+ static {
344
+ this.ɵdir = i0.ɵɵngDeclareDirective({
345
+ minVersion: "14.0.0",
346
+ version: "22.2.4",
347
+ type: HlmDialogDescription,
348
+ isStandalone: true,
349
+ selector: "[hlmDialogDescription]",
350
+ host: { attributes: { "data-slot": "dialog-description" } },
351
+ hostDirectives: [{ directive: i1.BrnDialogDescription }],
352
+ ngImport: i0
353
+ });
354
+ }
355
+ };
356
+ i0.ɵɵngDeclareClassMetadata({
357
+ minVersion: "12.0.0",
358
+ version: "22.2.4",
359
+ ngImport: i0,
360
+ type: HlmDialogDescription,
361
+ decorators: [{
362
+ type: Directive,
363
+ args: [{
364
+ selector: "[hlmDialogDescription]",
365
+ hostDirectives: [BrnDialogDescription],
366
+ host: { "data-slot": "dialog-description" }
367
+ }]
368
+ }],
369
+ ctorParameters: () => []
370
+ });
371
+ var HlmDialogFooter = class HlmDialogFooter {
372
+ constructor() {
373
+ classes(() => "bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end");
374
+ }
375
+ static {
376
+ this.ɵfac = i0.ɵɵngDeclareFactory({
377
+ minVersion: "12.0.0",
378
+ version: "22.2.4",
379
+ ngImport: i0,
380
+ type: HlmDialogFooter,
381
+ deps: [],
382
+ target: i0.ɵɵFactoryTarget.Directive
383
+ });
384
+ }
385
+ static {
386
+ this.ɵdir = i0.ɵɵngDeclareDirective({
387
+ minVersion: "14.0.0",
388
+ version: "22.2.4",
389
+ type: HlmDialogFooter,
390
+ isStandalone: true,
391
+ selector: "[hlmDialogFooter],hlm-dialog-footer",
392
+ host: { attributes: { "data-slot": "dialog-footer" } },
393
+ ngImport: i0
394
+ });
395
+ }
396
+ };
397
+ i0.ɵɵngDeclareClassMetadata({
398
+ minVersion: "12.0.0",
399
+ version: "22.2.4",
400
+ ngImport: i0,
401
+ type: HlmDialogFooter,
402
+ decorators: [{
403
+ type: Directive,
404
+ args: [{
405
+ selector: "[hlmDialogFooter],hlm-dialog-footer",
406
+ host: { "data-slot": "dialog-footer" }
407
+ }]
408
+ }],
409
+ ctorParameters: () => []
410
+ });
411
+ var HlmDialogHeader = class HlmDialogHeader {
412
+ constructor() {
413
+ classes(() => "gap-2 flex flex-col");
414
+ }
415
+ static {
416
+ this.ɵfac = i0.ɵɵngDeclareFactory({
417
+ minVersion: "12.0.0",
418
+ version: "22.2.4",
419
+ ngImport: i0,
420
+ type: HlmDialogHeader,
421
+ deps: [],
422
+ target: i0.ɵɵFactoryTarget.Directive
423
+ });
424
+ }
425
+ static {
426
+ this.ɵdir = i0.ɵɵngDeclareDirective({
427
+ minVersion: "14.0.0",
428
+ version: "22.2.4",
429
+ type: HlmDialogHeader,
430
+ isStandalone: true,
431
+ selector: "[hlmDialogHeader],hlm-dialog-header",
432
+ host: { attributes: { "data-slot": "dialog-header" } },
433
+ ngImport: i0
434
+ });
435
+ }
436
+ };
437
+ i0.ɵɵngDeclareClassMetadata({
438
+ minVersion: "12.0.0",
439
+ version: "22.2.4",
440
+ ngImport: i0,
441
+ type: HlmDialogHeader,
442
+ decorators: [{
443
+ type: Directive,
444
+ args: [{
445
+ selector: "[hlmDialogHeader],hlm-dialog-header",
446
+ host: { "data-slot": "dialog-header" }
447
+ }]
448
+ }],
449
+ ctorParameters: () => []
450
+ });
451
+ var HlmDialogPortal = class HlmDialogPortal {
452
+ static {
453
+ this.ɵfac = i0.ɵɵngDeclareFactory({
454
+ minVersion: "12.0.0",
455
+ version: "22.2.4",
456
+ ngImport: i0,
457
+ type: HlmDialogPortal,
458
+ deps: [],
459
+ target: i0.ɵɵFactoryTarget.Directive
460
+ });
461
+ }
462
+ static {
463
+ this.ɵdir = i0.ɵɵngDeclareDirective({
464
+ minVersion: "14.0.0",
465
+ version: "22.2.4",
466
+ type: HlmDialogPortal,
467
+ isStandalone: true,
468
+ selector: "[hlmDialogPortal]",
469
+ hostDirectives: [{
470
+ directive: i1.BrnDialogContent,
471
+ inputs: [
472
+ "context",
473
+ "context",
474
+ "class",
475
+ "class"
476
+ ]
477
+ }],
478
+ ngImport: i0
479
+ });
480
+ }
481
+ };
482
+ i0.ɵɵngDeclareClassMetadata({
483
+ minVersion: "12.0.0",
484
+ version: "22.2.4",
485
+ ngImport: i0,
486
+ type: HlmDialogPortal,
487
+ decorators: [{
488
+ type: Directive,
489
+ args: [{
490
+ selector: "[hlmDialogPortal]",
491
+ hostDirectives: [{
492
+ directive: BrnDialogContent,
493
+ inputs: ["context", "class"]
494
+ }]
495
+ }]
496
+ }]
497
+ });
498
+ var HlmDialogTitle = class HlmDialogTitle {
499
+ constructor() {
500
+ classes(() => "text-base leading-none font-medium");
501
+ }
502
+ static {
503
+ this.ɵfac = i0.ɵɵngDeclareFactory({
504
+ minVersion: "12.0.0",
505
+ version: "22.2.4",
506
+ ngImport: i0,
507
+ type: HlmDialogTitle,
508
+ deps: [],
509
+ target: i0.ɵɵFactoryTarget.Directive
510
+ });
511
+ }
512
+ static {
513
+ this.ɵdir = i0.ɵɵngDeclareDirective({
514
+ minVersion: "14.0.0",
515
+ version: "22.2.4",
516
+ type: HlmDialogTitle,
517
+ isStandalone: true,
518
+ selector: "[hlmDialogTitle]",
519
+ host: { attributes: { "data-slot": "dialog-title" } },
520
+ hostDirectives: [{ directive: i1.BrnDialogTitle }],
521
+ ngImport: i0
522
+ });
523
+ }
524
+ };
525
+ i0.ɵɵngDeclareClassMetadata({
526
+ minVersion: "12.0.0",
527
+ version: "22.2.4",
528
+ ngImport: i0,
529
+ type: HlmDialogTitle,
530
+ decorators: [{
531
+ type: Directive,
532
+ args: [{
533
+ selector: "[hlmDialogTitle]",
534
+ hostDirectives: [BrnDialogTitle],
535
+ host: { "data-slot": "dialog-title" }
536
+ }]
537
+ }],
538
+ ctorParameters: () => []
539
+ });
540
+ var HlmDialogTrigger = class HlmDialogTrigger {
541
+ static {
542
+ this.ɵfac = i0.ɵɵngDeclareFactory({
543
+ minVersion: "12.0.0",
544
+ version: "22.2.4",
545
+ ngImport: i0,
546
+ type: HlmDialogTrigger,
547
+ deps: [],
548
+ target: i0.ɵɵFactoryTarget.Directive
549
+ });
550
+ }
551
+ static {
552
+ this.ɵdir = i0.ɵɵngDeclareDirective({
553
+ minVersion: "14.0.0",
554
+ version: "22.2.4",
555
+ type: HlmDialogTrigger,
556
+ isStandalone: true,
557
+ selector: "button[hlmDialogTrigger],button[hlmDialogTriggerFor]",
558
+ host: { attributes: { "data-slot": "dialog-trigger" } },
559
+ hostDirectives: [{
560
+ directive: i1.BrnDialogTrigger,
561
+ inputs: [
562
+ "id",
563
+ "id",
564
+ "brnDialogTriggerFor",
565
+ "hlmDialogTriggerFor",
566
+ "type",
567
+ "type"
568
+ ]
569
+ }],
570
+ ngImport: i0
571
+ });
572
+ }
573
+ };
574
+ i0.ɵɵngDeclareClassMetadata({
575
+ minVersion: "12.0.0",
576
+ version: "22.2.4",
577
+ ngImport: i0,
578
+ type: HlmDialogTrigger,
579
+ decorators: [{
580
+ type: Directive,
581
+ args: [{
582
+ selector: "button[hlmDialogTrigger],button[hlmDialogTriggerFor]",
583
+ hostDirectives: [{
584
+ directive: BrnDialogTrigger,
585
+ inputs: [
586
+ "id",
587
+ "brnDialogTriggerFor: hlmDialogTriggerFor",
588
+ "type"
589
+ ]
590
+ }],
591
+ host: { "data-slot": "dialog-trigger" }
592
+ }]
593
+ }]
594
+ });
595
+ var HlmDialogService = class HlmDialogService {
596
+ constructor() {
597
+ this._brnDialogService = inject(BrnDialogService);
598
+ }
599
+ open(component, options) {
600
+ const mergedOptions = {
601
+ ...options ?? {},
602
+ backdropClass: cssClassesToArray(`${hlmDialogOverlayClass} ${options?.backdropClass ?? ""}`),
603
+ context: {
604
+ ...options?.context && typeof options.context === "object" ? options.context : {},
605
+ $component: component,
606
+ $dynamicComponentClass: options?.contentClass,
607
+ $showCloseButton: options?.showCloseButton
608
+ }
609
+ };
610
+ return this._brnDialogService.open(HlmDialogContent, void 0, mergedOptions.context, mergedOptions);
611
+ }
612
+ static {
613
+ this.ɵfac = i0.ɵɵngDeclareFactory({
614
+ minVersion: "12.0.0",
615
+ version: "22.2.4",
616
+ ngImport: i0,
617
+ type: HlmDialogService,
618
+ deps: [],
619
+ target: i0.ɵɵFactoryTarget.Injectable
620
+ });
621
+ }
622
+ static {
623
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
624
+ minVersion: "12.0.0",
625
+ version: "22.2.4",
626
+ ngImport: i0,
627
+ type: HlmDialogService,
628
+ providedIn: "root"
629
+ });
630
+ }
631
+ };
632
+ i0.ɵɵngDeclareClassMetadata({
633
+ minVersion: "12.0.0",
634
+ version: "22.2.4",
635
+ ngImport: i0,
636
+ type: HlmDialogService,
637
+ decorators: [{
638
+ type: Injectable,
639
+ args: [{ providedIn: "root" }]
640
+ }]
641
+ });
253
642
  const HlmDialogImports = [
254
- HlmDialog,
255
- HlmDialogContent,
256
- HlmDialogDescription,
257
- HlmDialogFooter,
258
- HlmDialogHeader,
259
- HlmDialogOverlay,
260
- HlmDialogPortal,
261
- HlmDialogTitle,
262
- HlmDialogTrigger,
263
- HlmDialogClose,
643
+ HlmDialog,
644
+ HlmDialogContent,
645
+ HlmDialogDescription,
646
+ HlmDialogFooter,
647
+ HlmDialogHeader,
648
+ HlmDialogOverlay,
649
+ HlmDialogPortal,
650
+ HlmDialogTitle,
651
+ HlmDialogTrigger,
652
+ HlmDialogClose
264
653
  ];
265
-
266
- /**
267
- * Generated bundle index. Do not edit.
268
- */
269
-
270
654
  export { HlmDialog, HlmDialogClose, HlmDialogContent, HlmDialogDescription, HlmDialogFooter, HlmDialogHeader, HlmDialogImports, HlmDialogOverlay, HlmDialogPortal, HlmDialogService, HlmDialogTitle, HlmDialogTrigger, hlmDialogOverlayClass };
271
- //# sourceMappingURL=yukit-web-helm-dialog.mjs.map
655
+
656
+ //# sourceMappingURL=yukit-web-helm-dialog.mjs.map