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.
- 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 +24592 -9669
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/src/lib/theme/components/button.css +14 -0
- package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
- package/src/lib/theme/tokens/component-colors.css +6 -2
- 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 +5125 -2357
|
@@ -1,60 +1,146 @@
|
|
|
1
|
-
import { isPlatformBrowser } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import * as i1 from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import * as i2 from
|
|
8
|
-
import { BrnFieldControlDescribedBy } from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
1
|
+
import { isPlatformBrowser } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, DOCUMENT, Directive, ElementRef, PLATFORM_ID, Renderer2, booleanAttribute, computed, effect, inject, input, output } from "@angular/core";
|
|
4
|
+
import * as i1 from "@spartan-ng/brain/radio-group";
|
|
5
|
+
import { BrnRadio, BrnRadioGroup } from "@spartan-ng/brain/radio-group";
|
|
6
|
+
import { classes, hlm } from "yukit-web/helm/utils";
|
|
7
|
+
import * as i2 from "@spartan-ng/brain/field";
|
|
8
|
+
import { BrnFieldControlDescribedBy } from "@spartan-ng/brain/field";
|
|
9
|
+
var HlmRadio = class HlmRadio {
|
|
10
|
+
constructor() {
|
|
11
|
+
this._document = inject(DOCUMENT);
|
|
12
|
+
this._renderer = inject(Renderer2);
|
|
13
|
+
this._elementRef = inject(ElementRef);
|
|
14
|
+
this._isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
15
|
+
this._radioGroup = inject(BrnRadioGroup, { optional: true });
|
|
16
|
+
this._ariaInvalid = computed(() => this._radioGroup?.controlState?.()?.invalid, ...ngDevMode ? [{ debugName: "_ariaInvalid" }] : /* istanbul ignore next */ []);
|
|
17
|
+
this._touched = computed(() => this._radioGroup?.controlState?.()?.touched, ...ngDevMode ? [{ debugName: "_touched" }] : /* istanbul ignore next */ []);
|
|
18
|
+
this._dirty = computed(() => this._radioGroup?.controlState?.()?.dirty, ...ngDevMode ? [{ debugName: "_dirty" }] : /* istanbul ignore next */ []);
|
|
19
|
+
this._groupSpartanInvalid = computed(() => this._radioGroup?.controlState?.()?.spartanInvalid, ...ngDevMode ? [{ debugName: "_groupSpartanInvalid" }] : /* istanbul ignore next */ []);
|
|
20
|
+
this._errorStateClass = computed(() => this._groupSpartanInvalid() ? "text-destructive" : "", ...ngDevMode ? [{ debugName: "_errorStateClass" }] : /* istanbul ignore next */ []);
|
|
21
|
+
this.userClass = input("", {
|
|
22
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
23
|
+
alias: "class"
|
|
24
|
+
});
|
|
25
|
+
this._computedClass = computed(() => hlm("group relative flex items-center gap-x-3", "data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", this.userClass(), this._errorStateClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this.inputId = input(void 0, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
27
|
+
this.ariaLabel = input(void 0, {
|
|
28
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
29
|
+
alias: "aria-label"
|
|
30
|
+
});
|
|
31
|
+
this.ariaLabelledby = input(void 0, {
|
|
32
|
+
...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
|
|
33
|
+
alias: "aria-labelledby"
|
|
34
|
+
});
|
|
35
|
+
this.ariaDescribedby = input(void 0, {
|
|
36
|
+
...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
|
|
37
|
+
alias: "aria-describedby"
|
|
38
|
+
});
|
|
39
|
+
this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this.required = input(false, {
|
|
41
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
42
|
+
transform: booleanAttribute
|
|
43
|
+
});
|
|
44
|
+
this.disabled = input(false, {
|
|
45
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
46
|
+
transform: booleanAttribute
|
|
47
|
+
});
|
|
48
|
+
this.change = output();
|
|
49
|
+
effect(() => {
|
|
50
|
+
const isDisabled = this.disabled();
|
|
51
|
+
if (!this._elementRef.nativeElement || !this._isBrowser) return;
|
|
52
|
+
const labelElement = this._elementRef.nativeElement.closest("label") ?? this._document.querySelector(`label[for="${this.inputId()}"]`);
|
|
53
|
+
if (!labelElement) return;
|
|
54
|
+
this._renderer.setAttribute(labelElement, "data-disabled", isDisabled ? "true" : "false");
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
static {
|
|
58
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
59
|
+
minVersion: "12.0.0",
|
|
60
|
+
version: "22.2.4",
|
|
61
|
+
ngImport: i0,
|
|
62
|
+
type: HlmRadio,
|
|
63
|
+
deps: [],
|
|
64
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
static {
|
|
68
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
69
|
+
minVersion: "17.1.0",
|
|
70
|
+
version: "22.2.4",
|
|
71
|
+
type: HlmRadio,
|
|
72
|
+
isStandalone: true,
|
|
73
|
+
selector: "hlm-radio",
|
|
74
|
+
inputs: {
|
|
75
|
+
userClass: {
|
|
76
|
+
classPropertyName: "userClass",
|
|
77
|
+
publicName: "class",
|
|
78
|
+
isSignal: true,
|
|
79
|
+
isRequired: false,
|
|
80
|
+
transformFunction: null
|
|
81
|
+
},
|
|
82
|
+
inputId: {
|
|
83
|
+
classPropertyName: "inputId",
|
|
84
|
+
publicName: "inputId",
|
|
85
|
+
isSignal: true,
|
|
86
|
+
isRequired: false,
|
|
87
|
+
transformFunction: null
|
|
88
|
+
},
|
|
89
|
+
ariaLabel: {
|
|
90
|
+
classPropertyName: "ariaLabel",
|
|
91
|
+
publicName: "aria-label",
|
|
92
|
+
isSignal: true,
|
|
93
|
+
isRequired: false,
|
|
94
|
+
transformFunction: null
|
|
95
|
+
},
|
|
96
|
+
ariaLabelledby: {
|
|
97
|
+
classPropertyName: "ariaLabelledby",
|
|
98
|
+
publicName: "aria-labelledby",
|
|
99
|
+
isSignal: true,
|
|
100
|
+
isRequired: false,
|
|
101
|
+
transformFunction: null
|
|
102
|
+
},
|
|
103
|
+
ariaDescribedby: {
|
|
104
|
+
classPropertyName: "ariaDescribedby",
|
|
105
|
+
publicName: "aria-describedby",
|
|
106
|
+
isSignal: true,
|
|
107
|
+
isRequired: false,
|
|
108
|
+
transformFunction: null
|
|
109
|
+
},
|
|
110
|
+
value: {
|
|
111
|
+
classPropertyName: "value",
|
|
112
|
+
publicName: "value",
|
|
113
|
+
isSignal: true,
|
|
114
|
+
isRequired: true,
|
|
115
|
+
transformFunction: null
|
|
116
|
+
},
|
|
117
|
+
required: {
|
|
118
|
+
classPropertyName: "required",
|
|
119
|
+
publicName: "required",
|
|
120
|
+
isSignal: true,
|
|
121
|
+
isRequired: false,
|
|
122
|
+
transformFunction: null
|
|
123
|
+
},
|
|
124
|
+
disabled: {
|
|
125
|
+
classPropertyName: "disabled",
|
|
126
|
+
publicName: "disabled",
|
|
127
|
+
isSignal: true,
|
|
128
|
+
isRequired: false,
|
|
129
|
+
transformFunction: null
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
outputs: { change: "change" },
|
|
133
|
+
host: {
|
|
134
|
+
attributes: { "data-slot": "radio-group-item" },
|
|
135
|
+
properties: {
|
|
136
|
+
"attr.aria-label": "null",
|
|
137
|
+
"attr.aria-labelledby": "null",
|
|
138
|
+
"attr.aria-describedby": "null",
|
|
139
|
+
"attr.data-disabled": "disabled() ? \"\" : null"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
ngImport: i0,
|
|
143
|
+
template: `
|
|
58
144
|
<brn-radio
|
|
59
145
|
[id]="inputId()"
|
|
60
146
|
[class]="_computedClass()"
|
|
@@ -74,22 +160,48 @@ class HlmRadio {
|
|
|
74
160
|
<ng-content select="[target],[indicator],hlm-radio-indicator" indicator />
|
|
75
161
|
<ng-content />
|
|
76
162
|
</brn-radio>
|
|
77
|
-
`,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
163
|
+
`,
|
|
164
|
+
isInline: true,
|
|
165
|
+
dependencies: [{
|
|
166
|
+
kind: "component",
|
|
167
|
+
type: BrnRadio,
|
|
168
|
+
selector: "brn-radio",
|
|
169
|
+
inputs: [
|
|
170
|
+
"disabled",
|
|
171
|
+
"id",
|
|
172
|
+
"aria-label",
|
|
173
|
+
"aria-labelledby",
|
|
174
|
+
"aria-describedby",
|
|
175
|
+
"value",
|
|
176
|
+
"inputStyles",
|
|
177
|
+
"required"
|
|
178
|
+
],
|
|
179
|
+
outputs: ["change"],
|
|
180
|
+
exportAs: ["brnRadio"]
|
|
181
|
+
}],
|
|
182
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
187
|
+
minVersion: "12.0.0",
|
|
188
|
+
version: "22.2.4",
|
|
189
|
+
ngImport: i0,
|
|
190
|
+
type: HlmRadio,
|
|
191
|
+
decorators: [{
|
|
192
|
+
type: Component,
|
|
193
|
+
args: [{
|
|
194
|
+
selector: "hlm-radio",
|
|
195
|
+
imports: [BrnRadio],
|
|
196
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
197
|
+
host: {
|
|
198
|
+
"[attr.aria-label]": "null",
|
|
199
|
+
"[attr.aria-labelledby]": "null",
|
|
200
|
+
"[attr.aria-describedby]": "null",
|
|
201
|
+
"[attr.data-disabled]": "disabled() ? \"\" : null",
|
|
202
|
+
"data-slot": "radio-group-item"
|
|
203
|
+
},
|
|
204
|
+
template: `
|
|
93
205
|
<brn-radio
|
|
94
206
|
[id]="inputId()"
|
|
95
207
|
[class]="_computedClass()"
|
|
@@ -109,77 +221,241 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
109
221
|
<ng-content select="[target],[indicator],hlm-radio-indicator" indicator />
|
|
110
222
|
<ng-content />
|
|
111
223
|
</brn-radio>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
224
|
+
`
|
|
225
|
+
}]
|
|
226
|
+
}],
|
|
227
|
+
ctorParameters: () => [],
|
|
228
|
+
propDecorators: {
|
|
229
|
+
userClass: [{
|
|
230
|
+
type: i0.Input,
|
|
231
|
+
args: [{
|
|
232
|
+
isSignal: true,
|
|
233
|
+
alias: "class",
|
|
234
|
+
required: false
|
|
235
|
+
}]
|
|
236
|
+
}],
|
|
237
|
+
inputId: [{
|
|
238
|
+
type: i0.Input,
|
|
239
|
+
args: [{
|
|
240
|
+
isSignal: true,
|
|
241
|
+
alias: "inputId",
|
|
242
|
+
required: false
|
|
243
|
+
}]
|
|
244
|
+
}],
|
|
245
|
+
ariaLabel: [{
|
|
246
|
+
type: i0.Input,
|
|
247
|
+
args: [{
|
|
248
|
+
isSignal: true,
|
|
249
|
+
alias: "aria-label",
|
|
250
|
+
required: false
|
|
251
|
+
}]
|
|
252
|
+
}],
|
|
253
|
+
ariaLabelledby: [{
|
|
254
|
+
type: i0.Input,
|
|
255
|
+
args: [{
|
|
256
|
+
isSignal: true,
|
|
257
|
+
alias: "aria-labelledby",
|
|
258
|
+
required: false
|
|
259
|
+
}]
|
|
260
|
+
}],
|
|
261
|
+
ariaDescribedby: [{
|
|
262
|
+
type: i0.Input,
|
|
263
|
+
args: [{
|
|
264
|
+
isSignal: true,
|
|
265
|
+
alias: "aria-describedby",
|
|
266
|
+
required: false
|
|
267
|
+
}]
|
|
268
|
+
}],
|
|
269
|
+
value: [{
|
|
270
|
+
type: i0.Input,
|
|
271
|
+
args: [{
|
|
272
|
+
isSignal: true,
|
|
273
|
+
alias: "value",
|
|
274
|
+
required: true
|
|
275
|
+
}]
|
|
276
|
+
}],
|
|
277
|
+
required: [{
|
|
278
|
+
type: i0.Input,
|
|
279
|
+
args: [{
|
|
280
|
+
isSignal: true,
|
|
281
|
+
alias: "required",
|
|
282
|
+
required: false
|
|
283
|
+
}]
|
|
284
|
+
}],
|
|
285
|
+
disabled: [{
|
|
286
|
+
type: i0.Input,
|
|
287
|
+
args: [{
|
|
288
|
+
isSignal: true,
|
|
289
|
+
alias: "disabled",
|
|
290
|
+
required: false
|
|
291
|
+
}]
|
|
292
|
+
}],
|
|
293
|
+
change: [{
|
|
294
|
+
type: i0.Output,
|
|
295
|
+
args: ["change"]
|
|
296
|
+
}]
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
var HlmRadioGroup = class HlmRadioGroup {
|
|
300
|
+
constructor() {
|
|
301
|
+
this.userClass = input("", {
|
|
302
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
303
|
+
alias: "class"
|
|
304
|
+
});
|
|
305
|
+
this._brnRadioGroup = inject(BrnRadioGroup);
|
|
306
|
+
this._ariaInvalid = computed(() => this._brnRadioGroup.controlState?.()?.invalid, ...ngDevMode ? [{ debugName: "_ariaInvalid" }] : /* istanbul ignore next */ []);
|
|
307
|
+
this._touched = computed(() => this._brnRadioGroup.controlState?.()?.touched, ...ngDevMode ? [{ debugName: "_touched" }] : /* istanbul ignore next */ []);
|
|
308
|
+
this._dirty = computed(() => this._brnRadioGroup.controlState?.()?.dirty, ...ngDevMode ? [{ debugName: "_dirty" }] : /* istanbul ignore next */ []);
|
|
309
|
+
this._errorState = computed(() => this._brnRadioGroup.controlState?.()?.spartanInvalid, ...ngDevMode ? [{ debugName: "_errorState" }] : /* istanbul ignore next */ []);
|
|
310
|
+
classes(() => [
|
|
311
|
+
"grid gap-2",
|
|
312
|
+
this.userClass(),
|
|
313
|
+
this._errorState() ? "data-[invalid=true]:text-destructive" : ""
|
|
314
|
+
]);
|
|
315
|
+
}
|
|
316
|
+
static {
|
|
317
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
318
|
+
minVersion: "12.0.0",
|
|
319
|
+
version: "22.2.4",
|
|
320
|
+
ngImport: i0,
|
|
321
|
+
type: HlmRadioGroup,
|
|
322
|
+
deps: [],
|
|
323
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
static {
|
|
327
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
328
|
+
minVersion: "17.1.0",
|
|
329
|
+
version: "22.2.4",
|
|
330
|
+
type: HlmRadioGroup,
|
|
331
|
+
isStandalone: true,
|
|
332
|
+
selector: "[hlmRadioGroup],hlm-radio-group",
|
|
333
|
+
inputs: { userClass: {
|
|
334
|
+
classPropertyName: "userClass",
|
|
335
|
+
publicName: "class",
|
|
336
|
+
isSignal: true,
|
|
337
|
+
isRequired: false,
|
|
338
|
+
transformFunction: null
|
|
339
|
+
} },
|
|
340
|
+
host: {
|
|
341
|
+
attributes: { "data-slot": "radio-group" },
|
|
342
|
+
properties: {
|
|
343
|
+
"attr.aria-invalid": "_ariaInvalid() ? \"true\" : null",
|
|
344
|
+
"attr.data-invalid": "_ariaInvalid() ? \"true\" : null",
|
|
345
|
+
"attr.data-dirty": "_dirty() ? \"true\" : null",
|
|
346
|
+
"attr.data-touched": "_touched() ? \"true\" : null"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
hostDirectives: [{
|
|
350
|
+
directive: i1.BrnRadioGroup,
|
|
351
|
+
inputs: [
|
|
352
|
+
"name",
|
|
353
|
+
"name",
|
|
354
|
+
"value",
|
|
355
|
+
"value",
|
|
356
|
+
"disabled",
|
|
357
|
+
"disabled",
|
|
358
|
+
"required",
|
|
359
|
+
"required"
|
|
360
|
+
],
|
|
361
|
+
outputs: ["valueChange", "valueChange"]
|
|
362
|
+
}, { directive: i2.BrnFieldControlDescribedBy }],
|
|
363
|
+
ngImport: i0
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
368
|
+
minVersion: "12.0.0",
|
|
369
|
+
version: "22.2.4",
|
|
370
|
+
ngImport: i0,
|
|
371
|
+
type: HlmRadioGroup,
|
|
372
|
+
decorators: [{
|
|
373
|
+
type: Directive,
|
|
374
|
+
args: [{
|
|
375
|
+
selector: "[hlmRadioGroup],hlm-radio-group",
|
|
376
|
+
hostDirectives: [{
|
|
377
|
+
directive: BrnRadioGroup,
|
|
378
|
+
inputs: [
|
|
379
|
+
"name",
|
|
380
|
+
"value",
|
|
381
|
+
"disabled",
|
|
382
|
+
"required"
|
|
383
|
+
],
|
|
384
|
+
outputs: ["valueChange"]
|
|
385
|
+
}, BrnFieldControlDescribedBy],
|
|
386
|
+
host: {
|
|
387
|
+
"data-slot": "radio-group",
|
|
388
|
+
"[attr.aria-invalid]": "_ariaInvalid() ? \"true\" : null",
|
|
389
|
+
"[attr.data-invalid]": "_ariaInvalid() ? \"true\" : null",
|
|
390
|
+
"[attr.data-dirty]": "_dirty() ? \"true\" : null",
|
|
391
|
+
"[attr.data-touched]": "_touched() ? \"true\" : null"
|
|
392
|
+
}
|
|
393
|
+
}]
|
|
394
|
+
}],
|
|
395
|
+
ctorParameters: () => [],
|
|
396
|
+
propDecorators: { userClass: [{
|
|
397
|
+
type: i0.Input,
|
|
398
|
+
args: [{
|
|
399
|
+
isSignal: true,
|
|
400
|
+
alias: "class",
|
|
401
|
+
required: false
|
|
402
|
+
}]
|
|
403
|
+
}] }
|
|
404
|
+
});
|
|
405
|
+
var HlmRadioIndicator = class HlmRadioIndicator {
|
|
406
|
+
constructor() {
|
|
407
|
+
classes(() => "border-input text-primary group-has-[:focus-visible]:border-ring group-has-[:focus-visible]:ring-ring/50 dark:bg-input/30 group-data=[disabled=true]:cursor-not-allowed group-data=[disabled=true]:opacity-50 relative flex aspect-square size-4 shrink-0 items-center justify-center rounded-full border shadow-xs transition-[color,box-shadow] outline-none group-has-[:focus-visible]:ring-[3px]");
|
|
408
|
+
}
|
|
409
|
+
static {
|
|
410
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
411
|
+
minVersion: "12.0.0",
|
|
412
|
+
version: "22.2.4",
|
|
413
|
+
ngImport: i0,
|
|
414
|
+
type: HlmRadioIndicator,
|
|
415
|
+
deps: [],
|
|
416
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
static {
|
|
420
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
421
|
+
minVersion: "14.0.0",
|
|
422
|
+
version: "22.2.4",
|
|
423
|
+
type: HlmRadioIndicator,
|
|
424
|
+
isStandalone: true,
|
|
425
|
+
selector: "hlm-radio-indicator",
|
|
426
|
+
host: { attributes: { "data-slot": "radio-group-indicator" } },
|
|
427
|
+
ngImport: i0,
|
|
428
|
+
template: `
|
|
173
429
|
<div class="group-data-[checked=true]:bg-primary size-2 rounded-full bg-transparent"></div>
|
|
174
430
|
`,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
431
|
+
isInline: true,
|
|
432
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
437
|
+
minVersion: "12.0.0",
|
|
438
|
+
version: "22.2.4",
|
|
439
|
+
ngImport: i0,
|
|
440
|
+
type: HlmRadioIndicator,
|
|
441
|
+
decorators: [{
|
|
442
|
+
type: Component,
|
|
443
|
+
args: [{
|
|
444
|
+
selector: "hlm-radio-indicator",
|
|
445
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
446
|
+
host: { "data-slot": "radio-group-indicator" },
|
|
447
|
+
template: `
|
|
448
|
+
<div class="group-data-[checked=true]:bg-primary size-2 rounded-full bg-transparent"></div>
|
|
449
|
+
`
|
|
450
|
+
}]
|
|
451
|
+
}],
|
|
452
|
+
ctorParameters: () => []
|
|
453
|
+
});
|
|
454
|
+
const HlmRadioGroupImports = [
|
|
455
|
+
HlmRadioGroup,
|
|
456
|
+
HlmRadio,
|
|
457
|
+
HlmRadioIndicator
|
|
458
|
+
];
|
|
184
459
|
export { HlmRadio, HlmRadioGroup, HlmRadioGroupImports, HlmRadioIndicator };
|
|
185
|
-
|
|
460
|
+
|
|
461
|
+
//# sourceMappingURL=yukit-web-helm-radio-group.mjs.map
|