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,60 +1,128 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, inject, computed } from '@angular/core';
3
- import * as i1 from '@spartan-ng/brain/progress';
4
- import { BrnProgress, injectBrnProgress, BrnProgressIndicator } from '@spartan-ng/brain/progress';
5
- import { classes } from 'yukit-web/helm/utils';
6
- import { Directionality } from '@angular/cdk/bidi';
7
-
8
- class HlmProgress {
9
- constructor() {
10
- classes(() => 'bg-muted h-1 rounded-full relative inline-flex w-full overflow-hidden');
11
- }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmProgress, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
13
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmProgress, isStandalone: true, selector: "hlm-progress,[hlmProgress]", host: { attributes: { "data-slot": "progress" } }, hostDirectives: [{ directive: i1.BrnProgress, inputs: ["value", "value", "max", "max", "getValueLabel", "getValueLabel"] }], ngImport: i0 }); }
14
- }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmProgress, decorators: [{
16
- type: Directive,
17
- args: [{
18
- selector: 'hlm-progress,[hlmProgress]',
19
- hostDirectives: [{ directive: BrnProgress, inputs: ['value', 'max', 'getValueLabel'] }],
20
- host: { 'data-slot': 'progress' },
21
- }]
22
- }], ctorParameters: () => [] });
23
-
24
- class HlmProgressIndicator {
25
- constructor() {
26
- this._progress = injectBrnProgress();
27
- this._dir = inject(Directionality);
28
- // Offset the indicator by the unfilled remainder. In RTL the bar fills from the inline-start
29
- // (visually the right), so translate the opposite way to keep the fill on the correct side.
30
- this._transform = computed(() => {
31
- const offset = 100 - (this._progress.value() ?? 100);
32
- return `translateX(${this._dir.valueSignal() === 'rtl' ? '' : '-'}${offset}%)`;
33
- }, ...(ngDevMode ? [{ debugName: "_transform" }] : /* istanbul ignore next */ []));
34
- this._indeterminate = computed(() => this._progress.value() === null || this._progress.value() === undefined, ...(ngDevMode ? [{ debugName: "_indeterminate" }] : /* istanbul ignore next */ []));
35
- classes(() => 'bg-primary h-full w-full flex-1 transition-all');
36
- }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmProgressIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
38
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmProgressIndicator, isStandalone: true, selector: "[hlmProgressIndicator],hlm-progress-indicator", host: { attributes: { "data-slot": "progress-indicator" }, properties: { "class.animate-indeterminate": "_indeterminate()", "style.transform": "_transform()" } }, hostDirectives: [{ directive: i1.BrnProgressIndicator }], ngImport: i0 }); }
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmProgressIndicator, decorators: [{
41
- type: Directive,
42
- args: [{
43
- selector: '[hlmProgressIndicator],hlm-progress-indicator',
44
- hostDirectives: [BrnProgressIndicator],
45
- host: {
46
- 'data-slot': 'progress-indicator',
47
- '[class.animate-indeterminate]': '_indeterminate()',
48
- '[style.transform]': '_transform()',
49
- },
50
- }]
51
- }], ctorParameters: () => [] });
52
-
1
+ import * as i0 from "@angular/core";
2
+ import { Directive, computed, inject } from "@angular/core";
3
+ import * as i1 from "@spartan-ng/brain/progress";
4
+ import { BrnProgress, BrnProgressIndicator, injectBrnProgress } from "@spartan-ng/brain/progress";
5
+ import { classes } from "yukit-web/helm/utils";
6
+ import { Directionality } from "@angular/cdk/bidi";
7
+ var HlmProgress = class HlmProgress {
8
+ constructor() {
9
+ classes(() => "bg-muted h-1 rounded-full relative inline-flex w-full overflow-hidden");
10
+ }
11
+ static {
12
+ this.ɵfac = i0.ɵɵngDeclareFactory({
13
+ minVersion: "12.0.0",
14
+ version: "22.2.4",
15
+ ngImport: i0,
16
+ type: HlmProgress,
17
+ deps: [],
18
+ target: i0.ɵɵFactoryTarget.Directive
19
+ });
20
+ }
21
+ static {
22
+ this.ɵdir = i0.ɵɵngDeclareDirective({
23
+ minVersion: "14.0.0",
24
+ version: "22.2.4",
25
+ type: HlmProgress,
26
+ isStandalone: true,
27
+ selector: "hlm-progress,[hlmProgress]",
28
+ host: { attributes: { "data-slot": "progress" } },
29
+ hostDirectives: [{
30
+ directive: i1.BrnProgress,
31
+ inputs: [
32
+ "value",
33
+ "value",
34
+ "max",
35
+ "max",
36
+ "getValueLabel",
37
+ "getValueLabel"
38
+ ]
39
+ }],
40
+ ngImport: i0
41
+ });
42
+ }
43
+ };
44
+ i0.ɵɵngDeclareClassMetadata({
45
+ minVersion: "12.0.0",
46
+ version: "22.2.4",
47
+ ngImport: i0,
48
+ type: HlmProgress,
49
+ decorators: [{
50
+ type: Directive,
51
+ args: [{
52
+ selector: "hlm-progress,[hlmProgress]",
53
+ hostDirectives: [{
54
+ directive: BrnProgress,
55
+ inputs: [
56
+ "value",
57
+ "max",
58
+ "getValueLabel"
59
+ ]
60
+ }],
61
+ host: { "data-slot": "progress" }
62
+ }]
63
+ }],
64
+ ctorParameters: () => []
65
+ });
66
+ var HlmProgressIndicator = class HlmProgressIndicator {
67
+ constructor() {
68
+ this._progress = injectBrnProgress();
69
+ this._dir = inject(Directionality);
70
+ this._transform = computed(() => {
71
+ const offset = 100 - (this._progress.value() ?? 100);
72
+ return `translateX(${this._dir.valueSignal() === "rtl" ? "" : "-"}${offset}%)`;
73
+ }, ...ngDevMode ? [{ debugName: "_transform" }] : /* istanbul ignore next */ []);
74
+ this._indeterminate = computed(() => this._progress.value() === null || this._progress.value() === void 0, ...ngDevMode ? [{ debugName: "_indeterminate" }] : /* istanbul ignore next */ []);
75
+ classes(() => "bg-primary h-full w-full flex-1 transition-all");
76
+ }
77
+ static {
78
+ this.ɵfac = i0.ɵɵngDeclareFactory({
79
+ minVersion: "12.0.0",
80
+ version: "22.2.4",
81
+ ngImport: i0,
82
+ type: HlmProgressIndicator,
83
+ deps: [],
84
+ target: i0.ɵɵFactoryTarget.Directive
85
+ });
86
+ }
87
+ static {
88
+ this.ɵdir = i0.ɵɵngDeclareDirective({
89
+ minVersion: "14.0.0",
90
+ version: "22.2.4",
91
+ type: HlmProgressIndicator,
92
+ isStandalone: true,
93
+ selector: "[hlmProgressIndicator],hlm-progress-indicator",
94
+ host: {
95
+ attributes: { "data-slot": "progress-indicator" },
96
+ properties: {
97
+ "class.animate-indeterminate": "_indeterminate()",
98
+ "style.transform": "_transform()"
99
+ }
100
+ },
101
+ hostDirectives: [{ directive: i1.BrnProgressIndicator }],
102
+ ngImport: i0
103
+ });
104
+ }
105
+ };
106
+ i0.ɵɵngDeclareClassMetadata({
107
+ minVersion: "12.0.0",
108
+ version: "22.2.4",
109
+ ngImport: i0,
110
+ type: HlmProgressIndicator,
111
+ decorators: [{
112
+ type: Directive,
113
+ args: [{
114
+ selector: "[hlmProgressIndicator],hlm-progress-indicator",
115
+ hostDirectives: [BrnProgressIndicator],
116
+ host: {
117
+ "data-slot": "progress-indicator",
118
+ "[class.animate-indeterminate]": "_indeterminate()",
119
+ "[style.transform]": "_transform()"
120
+ }
121
+ }]
122
+ }],
123
+ ctorParameters: () => []
124
+ });
53
125
  const HlmProgressImports = [HlmProgress, HlmProgressIndicator];
54
-
55
- /**
56
- * Generated bundle index. Do not edit.
57
- */
58
-
59
126
  export { HlmProgress, HlmProgressImports, HlmProgressIndicator };
60
- //# sourceMappingURL=yukit-web-helm-progress.mjs.map
127
+
128
+ //# sourceMappingURL=yukit-web-helm-progress.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-progress.mjs","sources":["../../../projects/yukit-web/helm/progress/src/lib/hlm-progress.ts","../../../projects/yukit-web/helm/progress/src/lib/hlm-progress-indicator.ts","../../../projects/yukit-web/helm/progress/src/index.ts","../../../projects/yukit-web/helm/progress/src/yukit-web-helm-progress.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnProgress } from '@spartan-ng/brain/progress';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'hlm-progress,[hlmProgress]',\n\thostDirectives: [{ directive: BrnProgress, inputs: ['value', 'max', 'getValueLabel'] }],\n\thost: { 'data-slot': 'progress' },\n})\nexport class HlmProgress {\n\tconstructor() {\n\t\tclasses(() => 'bg-muted h-1 rounded-full relative inline-flex w-full overflow-hidden');\n\t}\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport { Directive, computed, inject } from '@angular/core';\nimport { BrnProgressIndicator, injectBrnProgress } from '@spartan-ng/brain/progress';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmProgressIndicator],hlm-progress-indicator',\n\thostDirectives: [BrnProgressIndicator],\n\thost: {\n\t\t'data-slot': 'progress-indicator',\n\t\t'[class.animate-indeterminate]': '_indeterminate()',\n\t\t'[style.transform]': '_transform()',\n\t},\n})\nexport class HlmProgressIndicator {\n\tprivate readonly _progress = injectBrnProgress();\n\tprivate readonly _dir = inject(Directionality);\n\t// Offset the indicator by the unfilled remainder. In RTL the bar fills from the inline-start\n\t// (visually the right), so translate the opposite way to keep the fill on the correct side.\n\tprotected readonly _transform = computed(() => {\n\t\tconst offset = 100 - (this._progress.value() ?? 100);\n\t\treturn `translateX(${this._dir.valueSignal() === 'rtl' ? '' : '-'}${offset}%)`;\n\t});\n\tprotected readonly _indeterminate = computed(\n\t\t() => this._progress.value() === null || this._progress.value() === undefined,\n\t);\n\n\tconstructor() {\n\t\tclasses(() => 'bg-primary h-full w-full flex-1 transition-all');\n\t}\n}\n","import { HlmProgress } from './lib/hlm-progress';\nimport { HlmProgressIndicator } from './lib/hlm-progress-indicator';\n\nexport * from './lib/hlm-progress';\nexport * from './lib/hlm-progress-indicator';\n\nexport const HlmProgressImports = [HlmProgress, HlmProgressIndicator] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MASa,WAAW,CAAA;AACvB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,uEAAuE,CAAC;IACvF;+GAHY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,UAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,KAAA,EAAA,KAAA,EAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,EAAE,CAAC;AACvF,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE;AACjC,iBAAA;;;MCMY,oBAAoB,CAAA;AAahC,IAAA,WAAA,GAAA;QAZiB,IAAA,CAAA,SAAS,GAAG,iBAAiB,EAAE;AAC/B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,cA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E;AACL,wBAAA,WAAW,EAAE,oBAAoB;AACjC,wBAAA,+BAA+B,EAAE,kBAAkB;AACnD,wBAAA,mBAAmB,EAAE,cAAc;AACnC,qBAAA;AACD,iBAAA;;;MCPY,kBAAkB,GAAG,CAAC,WAAW,EAAE,oBAAoB;;ACNpE;;AAEG;;"}
1
+ {"version":3,"file":"yukit-web-helm-progress.mjs","names":[],"sources":["../../../projects/yukit-web/helm/progress/src/lib/hlm-progress.ts","../../../projects/yukit-web/helm/progress/src/lib/hlm-progress-indicator.ts","../../../projects/yukit-web/helm/progress/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnProgress } from '@spartan-ng/brain/progress';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'hlm-progress,[hlmProgress]',\n\thostDirectives: [{ directive: BrnProgress, inputs: ['value', 'max', 'getValueLabel'] }],\n\thost: { 'data-slot': 'progress' },\n})\nexport class HlmProgress {\n\tconstructor() {\n\t\tclasses(() => 'bg-muted h-1 rounded-full relative inline-flex w-full overflow-hidden');\n\t}\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport { Directive, computed, inject } from '@angular/core';\nimport { BrnProgressIndicator, injectBrnProgress } from '@spartan-ng/brain/progress';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmProgressIndicator],hlm-progress-indicator',\n\thostDirectives: [BrnProgressIndicator],\n\thost: {\n\t\t'data-slot': 'progress-indicator',\n\t\t'[class.animate-indeterminate]': '_indeterminate()',\n\t\t'[style.transform]': '_transform()',\n\t},\n})\nexport class HlmProgressIndicator {\n\tprivate readonly _progress = injectBrnProgress();\n\tprivate readonly _dir = inject(Directionality);\n\t// Offset the indicator by the unfilled remainder. In RTL the bar fills from the inline-start\n\t// (visually the right), so translate the opposite way to keep the fill on the correct side.\n\tprotected readonly _transform = computed(() => {\n\t\tconst offset = 100 - (this._progress.value() ?? 100);\n\t\treturn `translateX(${this._dir.valueSignal() === 'rtl' ? '' : '-'}${offset}%)`;\n\t});\n\tprotected readonly _indeterminate = computed(\n\t\t() => this._progress.value() === null || this._progress.value() === undefined,\n\t);\n\n\tconstructor() {\n\t\tclasses(() => 'bg-primary h-full w-full flex-1 transition-all');\n\t}\n}\n","import { HlmProgress } from './lib/hlm-progress';\nimport { HlmProgressIndicator } from './lib/hlm-progress-indicator';\n\nexport * from './lib/hlm-progress';\nexport * from './lib/hlm-progress-indicator';\n\nexport const HlmProgressImports = [HlmProgress, HlmProgressIndicator] as const;\n"],"mappings":";;;;;;AASA,IAAa,cAAb,MAAa,YAAW;CACvB,cAAA;EACC,cAAc,uEAAuE;CACtF;CAHY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAW,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAX;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAW,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,aAAA,WAAA,EAAA;GAAA,gBAAA,CAAA;IAAA,WAAA,GAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAX,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EALvB,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,gBAAgB,CAAC;IAAE,WAAW;IAAa,QAAQ;KAAC;KAAS;KAAO;IAAe;GAAC,CAAE;GACtF,MAAM,EAAE,aAAa,WAAU;EAC/B,CAAA;;;;ACMD,IAAa,uBAAb,MAAa,qBAAoB;CAahC,cAAA;EAZiB,KAAA,YAAY,kBAAiB;EAC7B,KAAA,OAAO,OAAO,cAAc;EAG1B,KAAA,aAAa,eAAc;GAC7C,MAAM,SAAS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