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,48 +1,122 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NgIcon, provideIcons } from
|
|
4
|
-
import { lucideLoader2 } from
|
|
5
|
-
import { classes } from
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, input } from "@angular/core";
|
|
3
|
+
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
4
|
+
import { lucideLoader2 } from "@ng-icons/lucide";
|
|
5
|
+
import { classes } from "yukit-web/helm/utils";
|
|
6
|
+
var HlmSpinner = class HlmSpinner {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.icon = input("lucideLoader2", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.ariaLabel = input("Loading", {
|
|
10
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
11
|
+
alias: "aria-label"
|
|
12
|
+
});
|
|
13
|
+
classes(() => "inline-flex text-[length:--spacing(4)] motion-safe:animate-spin");
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
17
|
+
minVersion: "12.0.0",
|
|
18
|
+
version: "22.2.4",
|
|
19
|
+
ngImport: i0,
|
|
20
|
+
type: HlmSpinner,
|
|
21
|
+
deps: [],
|
|
22
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static {
|
|
26
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
27
|
+
minVersion: "17.1.0",
|
|
28
|
+
version: "22.2.4",
|
|
29
|
+
type: HlmSpinner,
|
|
30
|
+
isStandalone: true,
|
|
31
|
+
selector: "hlm-spinner",
|
|
32
|
+
inputs: {
|
|
33
|
+
icon: {
|
|
34
|
+
classPropertyName: "icon",
|
|
35
|
+
publicName: "icon",
|
|
36
|
+
isSignal: true,
|
|
37
|
+
isRequired: false,
|
|
38
|
+
transformFunction: null
|
|
39
|
+
},
|
|
40
|
+
ariaLabel: {
|
|
41
|
+
classPropertyName: "ariaLabel",
|
|
42
|
+
publicName: "aria-label",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
host: {
|
|
49
|
+
attributes: {
|
|
50
|
+
"data-slot": "spinner",
|
|
51
|
+
"role": "status"
|
|
52
|
+
},
|
|
53
|
+
properties: { "attr.aria-label": "ariaLabel()" }
|
|
54
|
+
},
|
|
55
|
+
providers: [provideIcons({ lucideLoader2 })],
|
|
56
|
+
ngImport: i0,
|
|
57
|
+
template: `
|
|
36
58
|
<ng-icon [name]="icon()" />
|
|
37
59
|
`,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
60
|
+
isInline: true,
|
|
61
|
+
dependencies: [{
|
|
62
|
+
kind: "component",
|
|
63
|
+
type: NgIcon,
|
|
64
|
+
selector: "ng-icon",
|
|
65
|
+
inputs: [
|
|
66
|
+
"name",
|
|
67
|
+
"svg",
|
|
68
|
+
"size",
|
|
69
|
+
"strokeWidth",
|
|
70
|
+
"color"
|
|
71
|
+
]
|
|
72
|
+
}],
|
|
73
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
78
|
+
minVersion: "12.0.0",
|
|
79
|
+
version: "22.2.4",
|
|
80
|
+
ngImport: i0,
|
|
81
|
+
type: HlmSpinner,
|
|
82
|
+
decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{
|
|
85
|
+
selector: "hlm-spinner",
|
|
86
|
+
imports: [NgIcon],
|
|
87
|
+
providers: [provideIcons({ lucideLoader2 })],
|
|
88
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
89
|
+
host: {
|
|
90
|
+
"data-slot": "spinner",
|
|
91
|
+
role: "status",
|
|
92
|
+
"[attr.aria-label]": "ariaLabel()"
|
|
93
|
+
},
|
|
94
|
+
template: `
|
|
95
|
+
<ng-icon [name]="icon()" />
|
|
96
|
+
`
|
|
97
|
+
}]
|
|
98
|
+
}],
|
|
99
|
+
ctorParameters: () => [],
|
|
100
|
+
propDecorators: {
|
|
101
|
+
icon: [{
|
|
102
|
+
type: i0.Input,
|
|
103
|
+
args: [{
|
|
104
|
+
isSignal: true,
|
|
105
|
+
alias: "icon",
|
|
106
|
+
required: false
|
|
107
|
+
}]
|
|
108
|
+
}],
|
|
109
|
+
ariaLabel: [{
|
|
110
|
+
type: i0.Input,
|
|
111
|
+
args: [{
|
|
112
|
+
isSignal: true,
|
|
113
|
+
alias: "aria-label",
|
|
114
|
+
required: false
|
|
115
|
+
}]
|
|
116
|
+
}]
|
|
117
|
+
}
|
|
118
|
+
});
|
|
41
119
|
const HlmSpinnerImports = [HlmSpinner];
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Generated bundle index. Do not edit.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
120
|
export { HlmSpinner, HlmSpinnerImports };
|
|
48
|
-
|
|
121
|
+
|
|
122
|
+
//# sourceMappingURL=yukit-web-helm-spinner.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-spinner.mjs","sources":["../../../projects/yukit-web/helm/spinner/src/lib/hlm-spinner.ts","../../../projects/yukit-web/helm/spinner/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-spinner.mjs","names":[],"sources":["../../../projects/yukit-web/helm/spinner/src/lib/hlm-spinner.ts","../../../projects/yukit-web/helm/spinner/src/index.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideLoader2 } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-spinner',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideLoader2 })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'spinner',\n\t\trole: 'status',\n\t\t'[attr.aria-label]': 'ariaLabel()',\n\t},\n\ttemplate: `\n\t\t<ng-icon [name]=\"icon()\" />\n\t`,\n})\nexport class HlmSpinner {\n\t/**\n\t * The name of the icon to be used as the spinner.\n\t * Use provideIcons({ ... }) to register custom icons.\n\t */\n\tpublic readonly icon = input<string>('lucideLoader2');\n\n\t/** Aria label for the spinner for accessibility. */\n\tpublic readonly ariaLabel = input<string>('Loading', { alias: 'aria-label' });\n\n\tconstructor() {\n\t\tclasses(() => 'inline-flex text-[length:--spacing(4)] motion-safe:animate-spin');\n\t}\n}\n","import { HlmSpinner } from './lib/hlm-spinner';\n\nexport * from './lib/hlm-spinner';\n\nexport const HlmSpinnerImports = [HlmSpinner] as const;\n"],"mappings":";;;;;AAmBA,IAAa,aAAb,MAAa,WAAU;CAUtB,cAAA;EALgB,KAAA,OAAO,MAAc,iBAAgB,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAGrC,KAAA,YAAY,MAAc,WAAS;GAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;GAAI,OAAO;EAAY,CAAA;EAGzE,cAAc,iEAAiE;CAChF;CAZY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAU,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAV;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAU,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,MAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,WAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA;IAAA,YAAA;KAAA,aAAA;KAAA,QAAA;IAAA;IAAA,YAAA,EAAA,mBAAA,cAAA;GAAA;GAAA,WAXX,CAAC,aAAa,EAAE,cAAa,CAAE,CAAC;GAAC,UAAA;GAAA,UAOlC;;;GAET,UAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MAVS;IAAM,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAYJ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EAdtB,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,SAAS,CAAC,MAAM;GAChB,WAAW,CAAC,aAAa,EAAE,cAAa,CAAE,CAAC;GAC3C,iBAAiB,wBAAwB;GACzC,MAAM;IACL,aAAa;IACb,MAAM;IACN,qBAAqB;GACrB;GACD,UAAU;;;EAGV,CAAA;;;;;;;;;;;;;;;;;;;;;;ACdD,MAAa,oBAAoB,CAAC,UAAU"}
|
|
@@ -1,72 +1,192 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NG_VALUE_ACCESSOR } from
|
|
4
|
-
import {
|
|
5
|
-
import { classes, hlm } from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, computed, forwardRef, input, linkedSignal, output } from "@angular/core";
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
import { BrnSwitch, BrnSwitchThumb } from "@spartan-ng/brain/switch";
|
|
5
|
+
import { classes, hlm } from "yukit-web/helm/utils";
|
|
6
|
+
var HlmSwitchThumb = class HlmSwitchThumb {
|
|
7
|
+
constructor() {
|
|
8
|
+
classes(() => "bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-unchecked:translate-x-0 data-checked:ltr:translate-x-[calc(100%-2px)] data-checked:rtl:-translate-x-[calc(100%-2px)] pointer-events-none block ring-0 transition-transform");
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.2.4",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: HlmSwitchThumb,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
static {
|
|
21
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
22
|
+
minVersion: "14.0.0",
|
|
23
|
+
version: "22.2.4",
|
|
24
|
+
type: HlmSwitchThumb,
|
|
25
|
+
isStandalone: true,
|
|
26
|
+
selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]",
|
|
27
|
+
host: { attributes: { "data-slot": "switch-thumb" } },
|
|
28
|
+
ngImport: i0
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
33
|
+
minVersion: "12.0.0",
|
|
34
|
+
version: "22.2.4",
|
|
35
|
+
ngImport: i0,
|
|
36
|
+
type: HlmSwitchThumb,
|
|
37
|
+
decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]",
|
|
41
|
+
host: { "data-slot": "switch-thumb" }
|
|
42
|
+
}]
|
|
43
|
+
}],
|
|
44
|
+
ctorParameters: () => []
|
|
45
|
+
});
|
|
22
46
|
const HLM_SWITCH_VALUE_ACCESSOR = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
47
|
+
provide: NG_VALUE_ACCESSOR,
|
|
48
|
+
useExisting: forwardRef(() => HlmSwitch),
|
|
49
|
+
multi: true
|
|
26
50
|
};
|
|
27
|
-
class HlmSwitch {
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
var HlmSwitch = class HlmSwitch {
|
|
52
|
+
constructor() {
|
|
53
|
+
this.userClass = input("", {
|
|
54
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
55
|
+
alias: "class"
|
|
56
|
+
});
|
|
57
|
+
this._computedClass = computed(() => hlm("data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 dark:data-unchecked:bg-input/80 rounded-full border border-transparent focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] group/switch inline-flex shrink-0 items-center transition-all outline-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", this.userClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
|
|
58
|
+
this.checkedInput = input(false, {
|
|
59
|
+
...ngDevMode ? { debugName: "checkedInput" } : /* istanbul ignore next */ {},
|
|
60
|
+
alias: "checked",
|
|
61
|
+
transform: booleanAttribute
|
|
62
|
+
});
|
|
63
|
+
this.checked = linkedSignal(this.checkedInput, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|
|
64
|
+
this.checkedChange = output();
|
|
65
|
+
this.disabled = input(false, {
|
|
66
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
67
|
+
transform: booleanAttribute
|
|
68
|
+
});
|
|
69
|
+
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
70
|
+
this.inputId = input(null, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.ariaLabel = input(null, {
|
|
72
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
73
|
+
alias: "aria-label"
|
|
74
|
+
});
|
|
75
|
+
this.ariaLabelledby = input(null, {
|
|
76
|
+
...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
|
|
77
|
+
alias: "aria-labelledby"
|
|
78
|
+
});
|
|
79
|
+
this.ariaDescribedby = input(null, {
|
|
80
|
+
...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
|
|
81
|
+
alias: "aria-describedby"
|
|
82
|
+
});
|
|
83
|
+
this._disabled = linkedSignal(this.disabled, ...ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []);
|
|
84
|
+
}
|
|
85
|
+
handleChange(value) {
|
|
86
|
+
this.checked.set(value);
|
|
87
|
+
this._onChange?.(value);
|
|
88
|
+
this.checkedChange.emit(value);
|
|
89
|
+
}
|
|
90
|
+
writeValue(value) {
|
|
91
|
+
this.checked.set(Boolean(value));
|
|
92
|
+
}
|
|
93
|
+
registerOnChange(fn) {
|
|
94
|
+
this._onChange = fn;
|
|
95
|
+
}
|
|
96
|
+
registerOnTouched(fn) {
|
|
97
|
+
this._onTouched = fn;
|
|
98
|
+
}
|
|
99
|
+
setDisabledState(isDisabled) {
|
|
100
|
+
this._disabled.set(isDisabled);
|
|
101
|
+
}
|
|
102
|
+
static {
|
|
103
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
104
|
+
minVersion: "12.0.0",
|
|
105
|
+
version: "22.2.4",
|
|
106
|
+
ngImport: i0,
|
|
107
|
+
type: HlmSwitch,
|
|
108
|
+
deps: [],
|
|
109
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
static {
|
|
113
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
114
|
+
minVersion: "17.1.0",
|
|
115
|
+
version: "22.2.4",
|
|
116
|
+
type: HlmSwitch,
|
|
117
|
+
isStandalone: true,
|
|
118
|
+
selector: "hlm-switch",
|
|
119
|
+
inputs: {
|
|
120
|
+
userClass: {
|
|
121
|
+
classPropertyName: "userClass",
|
|
122
|
+
publicName: "class",
|
|
123
|
+
isSignal: true,
|
|
124
|
+
isRequired: false,
|
|
125
|
+
transformFunction: null
|
|
126
|
+
},
|
|
127
|
+
checkedInput: {
|
|
128
|
+
classPropertyName: "checkedInput",
|
|
129
|
+
publicName: "checked",
|
|
130
|
+
isSignal: true,
|
|
131
|
+
isRequired: false,
|
|
132
|
+
transformFunction: null
|
|
133
|
+
},
|
|
134
|
+
disabled: {
|
|
135
|
+
classPropertyName: "disabled",
|
|
136
|
+
publicName: "disabled",
|
|
137
|
+
isSignal: true,
|
|
138
|
+
isRequired: false,
|
|
139
|
+
transformFunction: null
|
|
140
|
+
},
|
|
141
|
+
size: {
|
|
142
|
+
classPropertyName: "size",
|
|
143
|
+
publicName: "size",
|
|
144
|
+
isSignal: true,
|
|
145
|
+
isRequired: false,
|
|
146
|
+
transformFunction: null
|
|
147
|
+
},
|
|
148
|
+
inputId: {
|
|
149
|
+
classPropertyName: "inputId",
|
|
150
|
+
publicName: "inputId",
|
|
151
|
+
isSignal: true,
|
|
152
|
+
isRequired: false,
|
|
153
|
+
transformFunction: null
|
|
154
|
+
},
|
|
155
|
+
ariaLabel: {
|
|
156
|
+
classPropertyName: "ariaLabel",
|
|
157
|
+
publicName: "aria-label",
|
|
158
|
+
isSignal: true,
|
|
159
|
+
isRequired: false,
|
|
160
|
+
transformFunction: null
|
|
161
|
+
},
|
|
162
|
+
ariaLabelledby: {
|
|
163
|
+
classPropertyName: "ariaLabelledby",
|
|
164
|
+
publicName: "aria-labelledby",
|
|
165
|
+
isSignal: true,
|
|
166
|
+
isRequired: false,
|
|
167
|
+
transformFunction: null
|
|
168
|
+
},
|
|
169
|
+
ariaDescribedby: {
|
|
170
|
+
classPropertyName: "ariaDescribedby",
|
|
171
|
+
publicName: "aria-describedby",
|
|
172
|
+
isSignal: true,
|
|
173
|
+
isRequired: false,
|
|
174
|
+
transformFunction: null
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
outputs: { checkedChange: "checkedChange" },
|
|
178
|
+
host: {
|
|
179
|
+
attributes: { "data-slot": "switch" },
|
|
180
|
+
properties: {
|
|
181
|
+
"attr.aria-label": "null",
|
|
182
|
+
"attr.aria-labelledby": "null",
|
|
183
|
+
"attr.aria-describedby": "null"
|
|
184
|
+
},
|
|
185
|
+
classAttribute: "contents"
|
|
186
|
+
},
|
|
187
|
+
providers: [HLM_SWITCH_VALUE_ACCESSOR],
|
|
188
|
+
ngImport: i0,
|
|
189
|
+
template: `
|
|
70
190
|
<brn-switch
|
|
71
191
|
[class]="_computedClass()"
|
|
72
192
|
[size]="size()"
|
|
@@ -81,23 +201,69 @@ class HlmSwitch {
|
|
|
81
201
|
>
|
|
82
202
|
<brn-switch-thumb hlm />
|
|
83
203
|
</brn-switch>
|
|
84
|
-
`,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
204
|
+
`,
|
|
205
|
+
isInline: true,
|
|
206
|
+
dependencies: [
|
|
207
|
+
{
|
|
208
|
+
kind: "directive",
|
|
209
|
+
type: BrnSwitchThumb,
|
|
210
|
+
selector: "[brnSwitchThumb],brn-switch-thumb"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
kind: "component",
|
|
214
|
+
type: BrnSwitch,
|
|
215
|
+
selector: "brn-switch",
|
|
216
|
+
inputs: [
|
|
217
|
+
"checked",
|
|
218
|
+
"id",
|
|
219
|
+
"name",
|
|
220
|
+
"class",
|
|
221
|
+
"hostStyles",
|
|
222
|
+
"size",
|
|
223
|
+
"forceInvalid",
|
|
224
|
+
"aria-label",
|
|
225
|
+
"aria-labelledby",
|
|
226
|
+
"aria-describedby",
|
|
227
|
+
"required",
|
|
228
|
+
"disabled",
|
|
229
|
+
"tabIndex"
|
|
230
|
+
],
|
|
231
|
+
outputs: ["checkedChange", "touched"]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
kind: "directive",
|
|
235
|
+
type: HlmSwitchThumb,
|
|
236
|
+
selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
244
|
+
minVersion: "12.0.0",
|
|
245
|
+
version: "22.2.4",
|
|
246
|
+
ngImport: i0,
|
|
247
|
+
type: HlmSwitch,
|
|
248
|
+
decorators: [{
|
|
249
|
+
type: Component,
|
|
250
|
+
args: [{
|
|
251
|
+
selector: "hlm-switch",
|
|
252
|
+
imports: [
|
|
253
|
+
BrnSwitchThumb,
|
|
254
|
+
BrnSwitch,
|
|
255
|
+
HlmSwitchThumb
|
|
256
|
+
],
|
|
257
|
+
providers: [HLM_SWITCH_VALUE_ACCESSOR],
|
|
258
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
259
|
+
host: {
|
|
260
|
+
"data-slot": "switch",
|
|
261
|
+
class: "contents",
|
|
262
|
+
"[attr.aria-label]": "null",
|
|
263
|
+
"[attr.aria-labelledby]": "null",
|
|
264
|
+
"[attr.aria-describedby]": "null"
|
|
265
|
+
},
|
|
266
|
+
template: `
|
|
101
267
|
<brn-switch
|
|
102
268
|
[class]="_computedClass()"
|
|
103
269
|
[size]="size()"
|
|
@@ -112,15 +278,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
112
278
|
>
|
|
113
279
|
<brn-switch-thumb hlm />
|
|
114
280
|
</brn-switch>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
281
|
+
`
|
|
282
|
+
}]
|
|
283
|
+
}],
|
|
284
|
+
propDecorators: {
|
|
285
|
+
userClass: [{
|
|
286
|
+
type: i0.Input,
|
|
287
|
+
args: [{
|
|
288
|
+
isSignal: true,
|
|
289
|
+
alias: "class",
|
|
290
|
+
required: false
|
|
291
|
+
}]
|
|
292
|
+
}],
|
|
293
|
+
checkedInput: [{
|
|
294
|
+
type: i0.Input,
|
|
295
|
+
args: [{
|
|
296
|
+
isSignal: true,
|
|
297
|
+
alias: "checked",
|
|
298
|
+
required: false
|
|
299
|
+
}]
|
|
300
|
+
}],
|
|
301
|
+
checkedChange: [{
|
|
302
|
+
type: i0.Output,
|
|
303
|
+
args: ["checkedChange"]
|
|
304
|
+
}],
|
|
305
|
+
disabled: [{
|
|
306
|
+
type: i0.Input,
|
|
307
|
+
args: [{
|
|
308
|
+
isSignal: true,
|
|
309
|
+
alias: "disabled",
|
|
310
|
+
required: false
|
|
311
|
+
}]
|
|
312
|
+
}],
|
|
313
|
+
size: [{
|
|
314
|
+
type: i0.Input,
|
|
315
|
+
args: [{
|
|
316
|
+
isSignal: true,
|
|
317
|
+
alias: "size",
|
|
318
|
+
required: false
|
|
319
|
+
}]
|
|
320
|
+
}],
|
|
321
|
+
inputId: [{
|
|
322
|
+
type: i0.Input,
|
|
323
|
+
args: [{
|
|
324
|
+
isSignal: true,
|
|
325
|
+
alias: "inputId",
|
|
326
|
+
required: false
|
|
327
|
+
}]
|
|
328
|
+
}],
|
|
329
|
+
ariaLabel: [{
|
|
330
|
+
type: i0.Input,
|
|
331
|
+
args: [{
|
|
332
|
+
isSignal: true,
|
|
333
|
+
alias: "aria-label",
|
|
334
|
+
required: false
|
|
335
|
+
}]
|
|
336
|
+
}],
|
|
337
|
+
ariaLabelledby: [{
|
|
338
|
+
type: i0.Input,
|
|
339
|
+
args: [{
|
|
340
|
+
isSignal: true,
|
|
341
|
+
alias: "aria-labelledby",
|
|
342
|
+
required: false
|
|
343
|
+
}]
|
|
344
|
+
}],
|
|
345
|
+
ariaDescribedby: [{
|
|
346
|
+
type: i0.Input,
|
|
347
|
+
args: [{
|
|
348
|
+
isSignal: true,
|
|
349
|
+
alias: "aria-describedby",
|
|
350
|
+
required: false
|
|
351
|
+
}]
|
|
352
|
+
}]
|
|
353
|
+
}
|
|
354
|
+
});
|
|
119
355
|
const HlmSwitchImports = [HlmSwitch, HlmSwitchThumb];
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Generated bundle index. Do not edit.
|
|
123
|
-
*/
|
|
124
|
-
|
|
125
356
|
export { HLM_SWITCH_VALUE_ACCESSOR, HlmSwitch, HlmSwitchImports, HlmSwitchThumb };
|
|
126
|
-
|
|
357
|
+
|
|
358
|
+
//# sourceMappingURL=yukit-web-helm-switch.mjs.map
|