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.
- package/fesm2022/yukit-web-chart.mjs +807 -552
- package/fesm2022/yukit-web-chart.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert.mjs +199 -91
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-badge.mjs +78 -44
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button.mjs +137 -67
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-card.mjs +318 -136
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-command.mjs +752 -260
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-empty.mjs +280 -121
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-field.mjs +670 -301
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input.mjs +62 -30
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-item.mjs +545 -227
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-label.mjs +60 -28
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-marker.mjs +165 -74
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-message.mjs +277 -112
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-popover.mjs +358 -133
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-progress.mjs +126 -58
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-select.mjs +1059 -351
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-separator.mjs +61 -31
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-slider.mjs +139 -59
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-switch.mjs +326 -94
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-table.mjs +374 -177
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-typography.mjs +461 -202
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-utils.mjs +131 -253
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
- package/fesm2022/yukit-web.mjs +24457 -9670
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/types/yukit-web-chart.d.ts +184 -125
- package/types/yukit-web-helm-accordion.d.ts +49 -28
- package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
- package/types/yukit-web-helm-alert.d.ts +30 -32
- package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
- package/types/yukit-web-helm-attachment.d.ts +97 -69
- package/types/yukit-web-helm-autocomplete.d.ts +205 -79
- package/types/yukit-web-helm-avatar.d.ts +44 -39
- package/types/yukit-web-helm-badge.d.ts +18 -17
- package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
- package/types/yukit-web-helm-bubble.d.ts +54 -40
- package/types/yukit-web-helm-button-group.d.ts +29 -22
- package/types/yukit-web-helm-button.d.ts +41 -31
- package/types/yukit-web-helm-calendar.d.ts +157 -85
- package/types/yukit-web-helm-card.d.ts +38 -42
- package/types/yukit-web-helm-carousel.d.ts +105 -73
- package/types/yukit-web-helm-checkbox.d.ts +117 -58
- package/types/yukit-web-helm-collapsible.d.ts +34 -19
- package/types/yukit-web-helm-combobox.d.ts +355 -150
- package/types/yukit-web-helm-command.d.ts +140 -73
- package/types/yukit-web-helm-context-menu.d.ts +48 -27
- package/types/yukit-web-helm-date-picker.d.ts +852 -556
- package/types/yukit-web-helm-dialog.d.ts +106 -78
- package/types/yukit-web-helm-drawer.d.ts +90 -61
- package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
- package/types/yukit-web-helm-empty.d.ts +38 -42
- package/types/yukit-web-helm-field.d.ts +122 -91
- package/types/yukit-web-helm-hover-card.d.ts +39 -27
- package/types/yukit-web-helm-input-group.d.ts +63 -41
- package/types/yukit-web-helm-input-otp.d.ts +38 -35
- package/types/yukit-web-helm-input.d.ts +19 -12
- package/types/yukit-web-helm-item.d.ts +90 -82
- package/types/yukit-web-helm-kbd.d.ts +10 -15
- package/types/yukit-web-helm-label.d.ts +14 -11
- package/types/yukit-web-helm-marker.d.ts +26 -27
- package/types/yukit-web-helm-menubar.d.ts +61 -32
- package/types/yukit-web-helm-message.d.ts +34 -38
- package/types/yukit-web-helm-native-select.d.ts +102 -61
- package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
- package/types/yukit-web-helm-pagination.d.ts +344 -166
- package/types/yukit-web-helm-popover.d.ts +62 -42
- package/types/yukit-web-helm-progress.d.ts +27 -20
- package/types/yukit-web-helm-radio-group.d.ts +121 -63
- package/types/yukit-web-helm-resizable.d.ts +46 -24
- package/types/yukit-web-helm-scroll-area.d.ts +6 -10
- package/types/yukit-web-helm-select.d.ts +231 -114
- package/types/yukit-web-helm-separator.d.ts +15 -12
- package/types/yukit-web-helm-sheet.d.ts +94 -65
- package/types/yukit-web-helm-sidebar.d.ts +322 -232
- package/types/yukit-web-helm-skeleton.d.ts +6 -10
- package/types/yukit-web-helm-slider.d.ts +33 -13
- package/types/yukit-web-helm-sonner.d.ts +112 -51
- package/types/yukit-web-helm-spinner.d.ts +24 -17
- package/types/yukit-web-helm-switch.d.ts +89 -51
- package/types/yukit-web-helm-table.d.ts +38 -42
- package/types/yukit-web-helm-tabs.d.ts +116 -60
- package/types/yukit-web-helm-textarea.d.ts +19 -12
- package/types/yukit-web-helm-toggle-group.d.ts +81 -32
- package/types/yukit-web-helm-toggle.d.ts +39 -21
- package/types/yukit-web-helm-tooltip.d.ts +21 -16
- package/types/yukit-web-helm-typography.d.ts +62 -77
- package/types/yukit-web-helm-utils.d.ts +8 -11
- package/types/yukit-web.d.ts +5092 -2351
|
@@ -1,92 +1,218 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import { BrnAccordion, BrnAccordionContent,
|
|
5
|
-
import { classes, hlm } from
|
|
6
|
-
import { NgIcon, provideIcons } from
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, computed, input } from "@angular/core";
|
|
3
|
+
import * as i1 from "@spartan-ng/brain/accordion";
|
|
4
|
+
import { BrnAccordion, BrnAccordionContent, BrnAccordionImports, BrnAccordionItem } from "@spartan-ng/brain/accordion";
|
|
5
|
+
import { classes, hlm } from "yukit-web/helm/utils";
|
|
6
|
+
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
7
|
+
import { lucideChevronDown, lucideChevronUp } from "@ng-icons/lucide";
|
|
8
|
+
var HlmAccordion = class HlmAccordion {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => "flex w-full flex-col");
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
14
|
+
minVersion: "12.0.0",
|
|
15
|
+
version: "22.2.4",
|
|
16
|
+
ngImport: i0,
|
|
17
|
+
type: HlmAccordion,
|
|
18
|
+
deps: [],
|
|
19
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
24
|
+
minVersion: "14.0.0",
|
|
25
|
+
version: "22.2.4",
|
|
26
|
+
type: HlmAccordion,
|
|
27
|
+
isStandalone: true,
|
|
28
|
+
selector: "[hlmAccordion], hlm-accordion",
|
|
29
|
+
host: { attributes: { "data-slot": "accordion" } },
|
|
30
|
+
hostDirectives: [{
|
|
31
|
+
directive: i1.BrnAccordion,
|
|
32
|
+
inputs: [
|
|
33
|
+
"type",
|
|
34
|
+
"type",
|
|
35
|
+
"orientation",
|
|
36
|
+
"orientation"
|
|
37
|
+
]
|
|
38
|
+
}],
|
|
39
|
+
ngImport: i0
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
44
|
+
minVersion: "12.0.0",
|
|
45
|
+
version: "22.2.4",
|
|
46
|
+
ngImport: i0,
|
|
47
|
+
type: HlmAccordion,
|
|
48
|
+
decorators: [{
|
|
49
|
+
type: Directive,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: "[hlmAccordion], hlm-accordion",
|
|
52
|
+
hostDirectives: [{
|
|
53
|
+
directive: BrnAccordion,
|
|
54
|
+
inputs: ["type", "orientation"]
|
|
55
|
+
}],
|
|
56
|
+
host: { "data-slot": "accordion" }
|
|
57
|
+
}]
|
|
58
|
+
}],
|
|
59
|
+
ctorParameters: () => []
|
|
60
|
+
});
|
|
61
|
+
var HlmAccordionContent = class HlmAccordionContent {
|
|
62
|
+
constructor() {
|
|
63
|
+
classes(() => "text-sm transition-all data-[state=closed]:h-0 data-[state=open]:h-(--brn-accordion-content-height)");
|
|
64
|
+
}
|
|
65
|
+
static {
|
|
66
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
67
|
+
minVersion: "12.0.0",
|
|
68
|
+
version: "22.2.4",
|
|
69
|
+
ngImport: i0,
|
|
70
|
+
type: HlmAccordionContent,
|
|
71
|
+
deps: [],
|
|
72
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
static {
|
|
76
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
77
|
+
minVersion: "14.0.0",
|
|
78
|
+
version: "22.2.4",
|
|
79
|
+
type: HlmAccordionContent,
|
|
80
|
+
isStandalone: true,
|
|
81
|
+
selector: "hlm-accordion-content",
|
|
82
|
+
host: { attributes: { "data-slot": "accordion-content" } },
|
|
83
|
+
hostDirectives: [{
|
|
84
|
+
directive: i1.BrnAccordionContent,
|
|
85
|
+
inputs: ["style", "style"]
|
|
86
|
+
}],
|
|
87
|
+
ngImport: i0,
|
|
88
|
+
template: `
|
|
33
89
|
<div
|
|
34
90
|
class="pt-0 pb-2.5 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4"
|
|
35
91
|
>
|
|
36
92
|
<ng-content />
|
|
37
93
|
</div>
|
|
38
|
-
`,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
94
|
+
`,
|
|
95
|
+
isInline: true,
|
|
96
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
101
|
+
minVersion: "12.0.0",
|
|
102
|
+
version: "22.2.4",
|
|
103
|
+
ngImport: i0,
|
|
104
|
+
type: HlmAccordionContent,
|
|
105
|
+
decorators: [{
|
|
106
|
+
type: Component,
|
|
107
|
+
args: [{
|
|
108
|
+
selector: "hlm-accordion-content",
|
|
109
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
110
|
+
hostDirectives: [{
|
|
111
|
+
directive: BrnAccordionContent,
|
|
112
|
+
inputs: ["style"]
|
|
113
|
+
}],
|
|
114
|
+
host: { "data-slot": "accordion-content" },
|
|
115
|
+
template: `
|
|
50
116
|
<div
|
|
51
117
|
class="pt-0 pb-2.5 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4"
|
|
52
118
|
>
|
|
53
119
|
<ng-content />
|
|
54
120
|
</div>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
121
|
+
`
|
|
122
|
+
}]
|
|
123
|
+
}],
|
|
124
|
+
ctorParameters: () => []
|
|
125
|
+
});
|
|
126
|
+
var HlmAccordionItem = class HlmAccordionItem {
|
|
127
|
+
constructor() {
|
|
128
|
+
classes(() => "not-last:border-b flex flex-col");
|
|
129
|
+
}
|
|
130
|
+
static {
|
|
131
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
132
|
+
minVersion: "12.0.0",
|
|
133
|
+
version: "22.2.4",
|
|
134
|
+
ngImport: i0,
|
|
135
|
+
type: HlmAccordionItem,
|
|
136
|
+
deps: [],
|
|
137
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
static {
|
|
141
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
142
|
+
minVersion: "14.0.0",
|
|
143
|
+
version: "22.2.4",
|
|
144
|
+
type: HlmAccordionItem,
|
|
145
|
+
isStandalone: true,
|
|
146
|
+
selector: "[hlmAccordionItem],hlm-accordion-item",
|
|
147
|
+
host: { attributes: { "data-slot": "accordion-item" } },
|
|
148
|
+
hostDirectives: [{
|
|
149
|
+
directive: i1.BrnAccordionItem,
|
|
150
|
+
inputs: [
|
|
151
|
+
"isOpened",
|
|
152
|
+
"isOpened",
|
|
153
|
+
"disabled",
|
|
154
|
+
"disabled"
|
|
155
|
+
],
|
|
156
|
+
outputs: ["openedChange", "openedChange"]
|
|
157
|
+
}],
|
|
158
|
+
ngImport: i0
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
163
|
+
minVersion: "12.0.0",
|
|
164
|
+
version: "22.2.4",
|
|
165
|
+
ngImport: i0,
|
|
166
|
+
type: HlmAccordionItem,
|
|
167
|
+
decorators: [{
|
|
168
|
+
type: Directive,
|
|
169
|
+
args: [{
|
|
170
|
+
selector: "[hlmAccordionItem],hlm-accordion-item",
|
|
171
|
+
hostDirectives: [{
|
|
172
|
+
directive: BrnAccordionItem,
|
|
173
|
+
inputs: ["isOpened", "disabled"],
|
|
174
|
+
outputs: ["openedChange"]
|
|
175
|
+
}],
|
|
176
|
+
host: { "data-slot": "accordion-item" }
|
|
177
|
+
}]
|
|
178
|
+
}],
|
|
179
|
+
ctorParameters: () => []
|
|
180
|
+
});
|
|
181
|
+
var HlmAccordionTrigger = class HlmAccordionTrigger {
|
|
182
|
+
constructor() {
|
|
183
|
+
this.triggerClass = input("", ...ngDevMode ? [{ debugName: "triggerClass" }] : /* istanbul ignore next */ []);
|
|
184
|
+
this._computedTriggerClass = computed(() => hlm("focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground! rounded-lg py-2.5 text-start text-sm font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:text-[length:--spacing(4)] group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50", this.triggerClass()), ...ngDevMode ? [{ debugName: "_computedTriggerClass" }] : /* istanbul ignore next */ []);
|
|
185
|
+
}
|
|
186
|
+
static {
|
|
187
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
188
|
+
minVersion: "12.0.0",
|
|
189
|
+
version: "22.2.4",
|
|
190
|
+
ngImport: i0,
|
|
191
|
+
type: HlmAccordionTrigger,
|
|
192
|
+
deps: [],
|
|
193
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
static {
|
|
197
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
198
|
+
minVersion: "17.1.0",
|
|
199
|
+
version: "22.2.4",
|
|
200
|
+
type: HlmAccordionTrigger,
|
|
201
|
+
isStandalone: true,
|
|
202
|
+
selector: "hlm-accordion-trigger",
|
|
203
|
+
inputs: { triggerClass: {
|
|
204
|
+
classPropertyName: "triggerClass",
|
|
205
|
+
publicName: "triggerClass",
|
|
206
|
+
isSignal: true,
|
|
207
|
+
isRequired: false,
|
|
208
|
+
transformFunction: null
|
|
209
|
+
} },
|
|
210
|
+
providers: [provideIcons({
|
|
211
|
+
lucideChevronDown,
|
|
212
|
+
lucideChevronUp
|
|
213
|
+
})],
|
|
214
|
+
ngImport: i0,
|
|
215
|
+
template: `
|
|
90
216
|
<h3 brnAccordionHeader class="flex">
|
|
91
217
|
<button brnAccordionTrigger data-slot="accordion-trigger" [class]="_computedTriggerClass()">
|
|
92
218
|
<ng-content />
|
|
@@ -102,16 +228,52 @@ class HlmAccordionTrigger {
|
|
|
102
228
|
/>
|
|
103
229
|
</button>
|
|
104
230
|
</h3>
|
|
105
|
-
`,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
231
|
+
`,
|
|
232
|
+
isInline: true,
|
|
233
|
+
dependencies: [
|
|
234
|
+
{
|
|
235
|
+
kind: "directive",
|
|
236
|
+
type: i1.BrnAccordionHeader,
|
|
237
|
+
selector: "[brnAccordionHeader]"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
kind: "directive",
|
|
241
|
+
type: i1.BrnAccordionTrigger,
|
|
242
|
+
selector: "button[brnAccordionTrigger]"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
kind: "component",
|
|
246
|
+
type: NgIcon,
|
|
247
|
+
selector: "ng-icon",
|
|
248
|
+
inputs: [
|
|
249
|
+
"name",
|
|
250
|
+
"svg",
|
|
251
|
+
"size",
|
|
252
|
+
"strokeWidth",
|
|
253
|
+
"color"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
262
|
+
minVersion: "12.0.0",
|
|
263
|
+
version: "22.2.4",
|
|
264
|
+
ngImport: i0,
|
|
265
|
+
type: HlmAccordionTrigger,
|
|
266
|
+
decorators: [{
|
|
267
|
+
type: Component,
|
|
268
|
+
args: [{
|
|
269
|
+
selector: "hlm-accordion-trigger",
|
|
270
|
+
imports: [BrnAccordionImports, NgIcon],
|
|
271
|
+
providers: [provideIcons({
|
|
272
|
+
lucideChevronDown,
|
|
273
|
+
lucideChevronUp
|
|
274
|
+
})],
|
|
275
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
276
|
+
template: `
|
|
115
277
|
<h3 brnAccordionHeader class="flex">
|
|
116
278
|
<button brnAccordionTrigger data-slot="accordion-trigger" [class]="_computedTriggerClass()">
|
|
117
279
|
<ng-content />
|
|
@@ -127,15 +289,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
127
289
|
/>
|
|
128
290
|
</button>
|
|
129
291
|
</h3>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
292
|
+
`
|
|
293
|
+
}]
|
|
294
|
+
}],
|
|
295
|
+
propDecorators: { triggerClass: [{
|
|
296
|
+
type: i0.Input,
|
|
297
|
+
args: [{
|
|
298
|
+
isSignal: true,
|
|
299
|
+
alias: "triggerClass",
|
|
300
|
+
required: false
|
|
301
|
+
}]
|
|
302
|
+
}] }
|
|
303
|
+
});
|
|
304
|
+
const HlmAccordionImports = [
|
|
305
|
+
HlmAccordion,
|
|
306
|
+
HlmAccordionItem,
|
|
307
|
+
HlmAccordionContent,
|
|
308
|
+
HlmAccordionTrigger
|
|
309
|
+
];
|
|
140
310
|
export { HlmAccordion, HlmAccordionContent, HlmAccordionImports, HlmAccordionItem, HlmAccordionTrigger };
|
|
141
|
-
|
|
311
|
+
|
|
312
|
+
//# sourceMappingURL=yukit-web-helm-accordion.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-accordion.mjs","sources":["../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-content.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-item.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-trigger.ts","../../../projects/yukit-web/helm/accordion/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-accordion.mjs","names":[],"sources":["../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-content.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-item.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-trigger.ts","../../../projects/yukit-web/helm/accordion/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnAccordion } from '@spartan-ng/brain/accordion';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAccordion], hlm-accordion',\n\thostDirectives: [{ directive: BrnAccordion, inputs: ['type', 'orientation'] }],\n\thost: {\n\t\t'data-slot': 'accordion',\n\t},\n})\nexport class HlmAccordion {\n\tconstructor() {\n\t\tclasses(() => 'flex w-full flex-col');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { BrnAccordionContent } from '@spartan-ng/brain/accordion';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-accordion-content',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: BrnAccordionContent, inputs: ['style'] }],\n\thost: {\n\t\t'data-slot': 'accordion-content',\n\t},\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"pt-0 pb-2.5 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</div>\n\t`,\n})\nexport class HlmAccordionContent {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'text-sm transition-all data-[state=closed]:h-0 data-[state=open]:h-(--brn-accordion-content-height)',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnAccordionItem } from '@spartan-ng/brain/accordion';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAccordionItem],hlm-accordion-item',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnAccordionItem,\n\t\t\tinputs: ['isOpened', 'disabled'],\n\t\t\toutputs: ['openedChange'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'accordion-item',\n\t},\n})\nexport class HlmAccordionItem {\n\tconstructor() {\n\t\tclasses(() => 'not-last:border-b flex flex-col');\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronDown, lucideChevronUp } from '@ng-icons/lucide';\nimport { BrnAccordionImports } from '@spartan-ng/brain/accordion';\nimport { hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\n\n@Component({\n\tselector: 'hlm-accordion-trigger',\n\timports: [BrnAccordionImports, NgIcon],\n\tproviders: [provideIcons({ lucideChevronDown, lucideChevronUp })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<h3 brnAccordionHeader class=\"flex\">\n\t\t\t<button brnAccordionTrigger data-slot=\"accordion-trigger\" [class]=\"_computedTriggerClass()\">\n\t\t\t\t<ng-content />\n\t\t\t\t<ng-icon\n\t\t\t\t\tname=\"lucideChevronDown\"\n\t\t\t\t\tdata-slot=\"accordion-trigger-icon\"\n\t\t\t\t\tclass=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden\"\n\t\t\t\t/>\n\t\t\t\t<ng-icon\n\t\t\t\t\tname=\"lucideChevronUp\"\n\t\t\t\t\tdata-slot=\"accordion-trigger-icon\"\n\t\t\t\t\tclass=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:inline group-aria-[expanded=false]/accordion-trigger:hidden\"\n\t\t\t\t/>\n\t\t\t</button>\n\t\t</h3>\n\t`,\n})\nexport class HlmAccordionTrigger {\n\tpublic readonly triggerClass = input<ClassValue>('');\n\n\tprotected readonly _computedTriggerClass = computed(() =>\n\t\thlm(\n\t\t\t'focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground! rounded-lg py-2.5 text-start text-sm font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:text-[length:--spacing(4)] group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n\t\t\tthis.triggerClass(),\n\t\t),\n\t);\n}\n","import { HlmAccordion } from './lib/hlm-accordion';\nimport { HlmAccordionContent } from './lib/hlm-accordion-content';\nimport { HlmAccordionItem } from './lib/hlm-accordion-item';\nimport { HlmAccordionTrigger } from './lib/hlm-accordion-trigger';\n\nexport * from './lib/hlm-accordion';\nexport * from './lib/hlm-accordion-content';\nexport * from './lib/hlm-accordion-item';\nexport * from './lib/hlm-accordion-trigger';\n\nexport const HlmAccordionImports = [HlmAccordion, HlmAccordionItem, HlmAccordionContent, HlmAccordionTrigger]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