@sonny-ui/core 0.1.0-alpha.17 → 0.1.0-alpha.18
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/sonny-ui-core.mjs +31 -188
- package/fesm2022/sonny-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/accordion/accordion.directives.ts +0 -4
- package/src/lib/alert/alert.directives.ts +0 -3
- package/src/lib/avatar/avatar.component.ts +0 -1
- package/src/lib/avatar-group/avatar-group.component.ts +0 -1
- package/src/lib/badge/badge.directive.ts +0 -1
- package/src/lib/breadcrumb/breadcrumb.directives.ts +0 -6
- package/src/lib/button/button.directive.ts +0 -1
- package/src/lib/button-group/button-group.directive.ts +0 -1
- package/src/lib/calendar/calendar.component.ts +0 -1
- package/src/lib/card/card.directives.ts +0 -6
- package/src/lib/carousel/carousel.directives.ts +0 -5
- package/src/lib/chat-bubble/chat-bubble.directives.ts +0 -6
- package/src/lib/checkbox/checkbox.directive.ts +0 -1
- package/src/lib/color-picker/color-picker.component.ts +5 -5
- package/src/lib/combobox/combobox.component.ts +1 -3
- package/src/lib/command-palette/command-palette.component.ts +0 -1
- package/src/lib/data-table/data-table.component.ts +0 -1
- package/src/lib/data-table/data-table.directives.ts +0 -4
- package/src/lib/date-picker/date-picker.component.ts +5 -5
- package/src/lib/date-range-picker/date-range-picker.component.ts +5 -5
- package/src/lib/diff/diff.component.ts +0 -1
- package/src/lib/divider/divider.component.ts +0 -1
- package/src/lib/dock/dock.directives.ts +0 -2
- package/src/lib/drawer/drawer.directives.ts +0 -3
- package/src/lib/dropdown/dropdown.directives.ts +3 -10
- package/src/lib/fab/fab.directives.ts +0 -3
- package/src/lib/fieldset/fieldset.directives.ts +0 -3
- package/src/lib/file-input/file-input.component.ts +0 -1
- package/src/lib/indicator/indicator.directives.ts +0 -2
- package/src/lib/input/input.directive.ts +0 -1
- package/src/lib/input/label.directive.ts +0 -1
- package/src/lib/kbd/kbd.directive.ts +0 -1
- package/src/lib/link/link.directive.ts +0 -1
- package/src/lib/list/list.directives.ts +0 -5
- package/src/lib/loader/loader.component.ts +0 -1
- package/src/lib/modal/dialog.directives.ts +0 -6
- package/src/lib/navbar/navbar.directives.ts +0 -4
- package/src/lib/number-input/number-input.component.ts +0 -1
- package/src/lib/otp-input/otp-input.component.ts +0 -1
- package/src/lib/pagination/pagination.component.ts +0 -1
- package/src/lib/popover/popover.directives.ts +2 -6
- package/src/lib/progress/progress.component.ts +0 -1
- package/src/lib/radial-progress/radial-progress.component.ts +0 -1
- package/src/lib/radio/radio.directive.ts +0 -1
- package/src/lib/rating/rating.component.ts +0 -1
- package/src/lib/select/select.component.ts +1 -3
- package/src/lib/sheet/sheet.directives.ts +0 -5
- package/src/lib/skeleton/skeleton.directive.ts +0 -1
- package/src/lib/slider/slider.component.ts +0 -1
- package/src/lib/stat/stat.directives.ts +0 -5
- package/src/lib/status/status.directive.ts +0 -1
- package/src/lib/steps/steps.directives.ts +0 -2
- package/src/lib/switch/switch.component.ts +0 -1
- package/src/lib/table/table.directives.ts +0 -8
- package/src/lib/tabs/tabs.directives.ts +0 -4
- package/src/lib/tag-input/tag-input.component.ts +0 -1
- package/src/lib/textarea/textarea.directive.ts +0 -1
- package/src/lib/timeline/timeline.directives.ts +0 -5
- package/src/lib/toast/toaster.component.ts +0 -1
- package/src/lib/toggle/toggle.directive.ts +0 -1
- package/src/lib/tooltip/tooltip.directive.ts +0 -1
- package/src/lib/validator/validator.directives.ts +0 -2
|
@@ -4,7 +4,6 @@ import { fieldsetVariants, type FieldsetVariant } from './fieldset.variants';
|
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: 'fieldset[snyFieldset]',
|
|
7
|
-
standalone: true,
|
|
8
7
|
host: {
|
|
9
8
|
'[class]': 'computedClass()',
|
|
10
9
|
'[attr.disabled]': 'disabled() || null',
|
|
@@ -23,7 +22,6 @@ export class SnyFieldsetDirective {
|
|
|
23
22
|
|
|
24
23
|
@Directive({
|
|
25
24
|
selector: 'legend[snyFieldsetLegend]',
|
|
26
|
-
standalone: true,
|
|
27
25
|
host: {
|
|
28
26
|
'[class]': 'computedClass()',
|
|
29
27
|
},
|
|
@@ -38,7 +36,6 @@ export class SnyFieldsetLegendDirective {
|
|
|
38
36
|
|
|
39
37
|
@Directive({
|
|
40
38
|
selector: '[snyFieldsetContent]',
|
|
41
|
-
standalone: true,
|
|
42
39
|
host: {
|
|
43
40
|
'[class]': 'computedClass()',
|
|
44
41
|
},
|
|
@@ -26,7 +26,6 @@ const variantMap: Record<IndicatorVariant, string> = {
|
|
|
26
26
|
|
|
27
27
|
@Directive({
|
|
28
28
|
selector: '[snyIndicator]',
|
|
29
|
-
standalone: true,
|
|
30
29
|
host: { '[class]': 'computedClass()' },
|
|
31
30
|
})
|
|
32
31
|
export class SnyIndicatorDirective {
|
|
@@ -38,7 +37,6 @@ export class SnyIndicatorDirective {
|
|
|
38
37
|
|
|
39
38
|
@Directive({
|
|
40
39
|
selector: '[snyIndicatorBadge]',
|
|
41
|
-
standalone: true,
|
|
42
40
|
host: {
|
|
43
41
|
'[class]': 'computedClass()',
|
|
44
42
|
'[attr.aria-label]': 'ariaLabel() || null',
|
|
@@ -5,7 +5,6 @@ export type ListVariant = 'default' | 'bordered' | 'hover';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: '[snyList]',
|
|
8
|
-
standalone: true,
|
|
9
8
|
host: {
|
|
10
9
|
'role': 'list',
|
|
11
10
|
'[class]': 'computedClass()',
|
|
@@ -27,7 +26,6 @@ export class SnyListDirective {
|
|
|
27
26
|
|
|
28
27
|
@Directive({
|
|
29
28
|
selector: '[snyListItem]',
|
|
30
|
-
standalone: true,
|
|
31
29
|
host: {
|
|
32
30
|
'role': 'listitem',
|
|
33
31
|
'[class]': 'computedClass()',
|
|
@@ -51,7 +49,6 @@ export class SnyListItemDirective {
|
|
|
51
49
|
|
|
52
50
|
@Directive({
|
|
53
51
|
selector: '[snyListItemIcon]',
|
|
54
|
-
standalone: true,
|
|
55
52
|
host: { '[class]': 'computedClass()' },
|
|
56
53
|
})
|
|
57
54
|
export class SnyListItemIconDirective {
|
|
@@ -63,7 +60,6 @@ export class SnyListItemIconDirective {
|
|
|
63
60
|
|
|
64
61
|
@Directive({
|
|
65
62
|
selector: '[snyListItemContent]',
|
|
66
|
-
standalone: true,
|
|
67
63
|
host: { '[class]': 'computedClass()' },
|
|
68
64
|
})
|
|
69
65
|
export class SnyListItemContentDirective {
|
|
@@ -75,7 +71,6 @@ export class SnyListItemContentDirective {
|
|
|
75
71
|
|
|
76
72
|
@Directive({
|
|
77
73
|
selector: '[snyListItemAction]',
|
|
78
|
-
standalone: true,
|
|
79
74
|
host: { '[class]': 'computedClass()' },
|
|
80
75
|
})
|
|
81
76
|
export class SnyListItemActionDirective {
|
|
@@ -4,7 +4,6 @@ import { cn } from '../core/utils/cn';
|
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: '[snyDialogHeader]',
|
|
7
|
-
standalone: true,
|
|
8
7
|
host: { '[class]': 'computedClass()' },
|
|
9
8
|
})
|
|
10
9
|
export class SnyDialogHeaderDirective {
|
|
@@ -16,7 +15,6 @@ export class SnyDialogHeaderDirective {
|
|
|
16
15
|
|
|
17
16
|
@Directive({
|
|
18
17
|
selector: '[snyDialogTitle]',
|
|
19
|
-
standalone: true,
|
|
20
18
|
host: { '[class]': 'computedClass()' },
|
|
21
19
|
})
|
|
22
20
|
export class SnyDialogTitleDirective {
|
|
@@ -28,7 +26,6 @@ export class SnyDialogTitleDirective {
|
|
|
28
26
|
|
|
29
27
|
@Directive({
|
|
30
28
|
selector: '[snyDialogDescription]',
|
|
31
|
-
standalone: true,
|
|
32
29
|
host: { '[class]': 'computedClass()' },
|
|
33
30
|
})
|
|
34
31
|
export class SnyDialogDescriptionDirective {
|
|
@@ -40,7 +37,6 @@ export class SnyDialogDescriptionDirective {
|
|
|
40
37
|
|
|
41
38
|
@Directive({
|
|
42
39
|
selector: '[snyDialogContent]',
|
|
43
|
-
standalone: true,
|
|
44
40
|
host: { '[class]': 'computedClass()' },
|
|
45
41
|
})
|
|
46
42
|
export class SnyDialogContentDirective {
|
|
@@ -55,7 +51,6 @@ export class SnyDialogContentDirective {
|
|
|
55
51
|
|
|
56
52
|
@Directive({
|
|
57
53
|
selector: '[snyDialogFooter]',
|
|
58
|
-
standalone: true,
|
|
59
54
|
host: { '[class]': 'computedClass()' },
|
|
60
55
|
})
|
|
61
56
|
export class SnyDialogFooterDirective {
|
|
@@ -67,7 +62,6 @@ export class SnyDialogFooterDirective {
|
|
|
67
62
|
|
|
68
63
|
@Directive({
|
|
69
64
|
selector: '[snyDialogClose]',
|
|
70
|
-
standalone: true,
|
|
71
65
|
host: {
|
|
72
66
|
'[class]': 'computedClass()',
|
|
73
67
|
'(click)': 'onClick()',
|
|
@@ -5,7 +5,6 @@ export type NavbarVariant = 'default' | 'bordered' | 'floating';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: '[snyNavbar]',
|
|
8
|
-
standalone: true,
|
|
9
8
|
host: {
|
|
10
9
|
'role': 'navigation',
|
|
11
10
|
'[attr.aria-label]': 'ariaLabel()',
|
|
@@ -32,7 +31,6 @@ export class SnyNavbarDirective {
|
|
|
32
31
|
|
|
33
32
|
@Directive({
|
|
34
33
|
selector: '[snyNavbarBrand]',
|
|
35
|
-
standalone: true,
|
|
36
34
|
host: { '[class]': 'computedClass()' },
|
|
37
35
|
})
|
|
38
36
|
export class SnyNavbarBrandDirective {
|
|
@@ -42,7 +40,6 @@ export class SnyNavbarBrandDirective {
|
|
|
42
40
|
|
|
43
41
|
@Directive({
|
|
44
42
|
selector: '[snyNavbarContent]',
|
|
45
|
-
standalone: true,
|
|
46
43
|
host: { '[class]': 'computedClass()' },
|
|
47
44
|
})
|
|
48
45
|
export class SnyNavbarContentDirective {
|
|
@@ -52,7 +49,6 @@ export class SnyNavbarContentDirective {
|
|
|
52
49
|
|
|
53
50
|
@Directive({
|
|
54
51
|
selector: '[snyNavbarEnd]',
|
|
55
|
-
standalone: true,
|
|
56
52
|
host: { '[class]': 'computedClass()' },
|
|
57
53
|
})
|
|
58
54
|
export class SnyNavbarEndDirective {
|
|
@@ -15,7 +15,6 @@ import { numberInputVariants, type NumberInputSize } from './number-input.varian
|
|
|
15
15
|
|
|
16
16
|
@Component({
|
|
17
17
|
selector: 'sny-number-input',
|
|
18
|
-
standalone: true,
|
|
19
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
19
|
providers: [
|
|
21
20
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyNumberInputComponent), multi: true },
|
|
@@ -20,7 +20,6 @@ import { otpCellVariants, type OtpInputSize, type OtpInputType } from './otp-inp
|
|
|
20
20
|
|
|
21
21
|
@Component({
|
|
22
22
|
selector: 'sny-otp-input',
|
|
23
|
-
standalone: true,
|
|
24
23
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
24
|
providers: [
|
|
26
25
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyOtpInputComponent), multi: true },
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Directive,
|
|
3
3
|
ElementRef,
|
|
4
|
-
HostListener,
|
|
5
4
|
InjectionToken,
|
|
6
5
|
OnDestroy,
|
|
7
6
|
computed,
|
|
@@ -15,11 +14,12 @@ export const SNY_POPOVER = new InjectionToken<SnyPopoverDirective>('SnyPopover')
|
|
|
15
14
|
|
|
16
15
|
@Directive({
|
|
17
16
|
selector: '[snyPopover]',
|
|
18
|
-
standalone: true,
|
|
19
17
|
exportAs: 'snyPopover',
|
|
20
18
|
providers: [{ provide: SNY_POPOVER, useExisting: SnyPopoverDirective }],
|
|
21
19
|
host: {
|
|
22
20
|
'[class]': '"relative inline-block"',
|
|
21
|
+
'(document:click)': 'onDocumentClick($event)',
|
|
22
|
+
'(keydown.escape)': 'onEscape()',
|
|
23
23
|
},
|
|
24
24
|
})
|
|
25
25
|
export class SnyPopoverDirective implements OnDestroy {
|
|
@@ -91,14 +91,12 @@ export class SnyPopoverDirective implements OnDestroy {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
@HostListener('document:click', ['$event'])
|
|
95
94
|
onDocumentClick(event: MouseEvent): void {
|
|
96
95
|
if (this.closeOnOutside() && this.isOpen() && !this.elRef.nativeElement.contains(event.target)) {
|
|
97
96
|
this.close();
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
|
|
101
|
-
@HostListener('keydown.escape')
|
|
102
100
|
onEscape(): void {
|
|
103
101
|
if (this.closeOnEscape() && this.isOpen()) {
|
|
104
102
|
this.close();
|
|
@@ -112,7 +110,6 @@ export class SnyPopoverDirective implements OnDestroy {
|
|
|
112
110
|
|
|
113
111
|
@Directive({
|
|
114
112
|
selector: '[snyPopoverTrigger]',
|
|
115
|
-
standalone: true,
|
|
116
113
|
host: {
|
|
117
114
|
'(click)': 'popover.toggle()',
|
|
118
115
|
'[attr.aria-expanded]': 'popover.isOpen()',
|
|
@@ -130,7 +127,6 @@ export class SnyPopoverTriggerDirective {
|
|
|
130
127
|
|
|
131
128
|
@Directive({
|
|
132
129
|
selector: '[snyPopoverContent]',
|
|
133
|
-
standalone: true,
|
|
134
130
|
host: {
|
|
135
131
|
'role': 'dialog',
|
|
136
132
|
'[style.display]': 'popover.isOpen() ? "" : "none"',
|
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
computed,
|
|
5
5
|
ElementRef,
|
|
6
6
|
forwardRef,
|
|
7
|
-
HostListener,
|
|
8
7
|
inject,
|
|
9
8
|
input,
|
|
10
9
|
model,
|
|
@@ -23,10 +22,10 @@ export interface SelectOption {
|
|
|
23
22
|
|
|
24
23
|
@Component({
|
|
25
24
|
selector: 'sny-select',
|
|
26
|
-
standalone: true,
|
|
27
25
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
28
26
|
host: {
|
|
29
27
|
class: 'relative inline-block w-full',
|
|
28
|
+
'(document:click)': 'onDocumentClick($event)',
|
|
30
29
|
},
|
|
31
30
|
providers: [
|
|
32
31
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnySelectComponent), multi: true },
|
|
@@ -228,7 +227,6 @@ export class SnySelectComponent implements ControlValueAccessor, OnDestroy {
|
|
|
228
227
|
}
|
|
229
228
|
}
|
|
230
229
|
|
|
231
|
-
@HostListener('document:click', ['$event'])
|
|
232
230
|
onDocumentClick(event: MouseEvent): void {
|
|
233
231
|
if (!this.elRef.nativeElement.contains(event.target)) {
|
|
234
232
|
this.close();
|
|
@@ -4,7 +4,6 @@ import { cn } from '../core/utils/cn';
|
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: '[snySheetHeader]',
|
|
7
|
-
standalone: true,
|
|
8
7
|
host: { '[class]': 'computedClass()' },
|
|
9
8
|
})
|
|
10
9
|
export class SnySheetHeaderDirective {
|
|
@@ -16,7 +15,6 @@ export class SnySheetHeaderDirective {
|
|
|
16
15
|
|
|
17
16
|
@Directive({
|
|
18
17
|
selector: '[snySheetTitle]',
|
|
19
|
-
standalone: true,
|
|
20
18
|
host: { '[class]': 'computedClass()' },
|
|
21
19
|
})
|
|
22
20
|
export class SnySheetTitleDirective {
|
|
@@ -28,7 +26,6 @@ export class SnySheetTitleDirective {
|
|
|
28
26
|
|
|
29
27
|
@Directive({
|
|
30
28
|
selector: '[snySheetDescription]',
|
|
31
|
-
standalone: true,
|
|
32
29
|
host: { '[class]': 'computedClass()' },
|
|
33
30
|
})
|
|
34
31
|
export class SnySheetDescriptionDirective {
|
|
@@ -40,7 +37,6 @@ export class SnySheetDescriptionDirective {
|
|
|
40
37
|
|
|
41
38
|
@Directive({
|
|
42
39
|
selector: '[snySheetContent]',
|
|
43
|
-
standalone: true,
|
|
44
40
|
host: { '[class]': 'computedClass()' },
|
|
45
41
|
})
|
|
46
42
|
export class SnySheetContentDirective {
|
|
@@ -52,7 +48,6 @@ export class SnySheetContentDirective {
|
|
|
52
48
|
|
|
53
49
|
@Directive({
|
|
54
50
|
selector: '[snySheetClose]',
|
|
55
|
-
standalone: true,
|
|
56
51
|
host: {
|
|
57
52
|
'[class]': 'computedClass()',
|
|
58
53
|
'(click)': 'onClick()',
|
|
@@ -7,7 +7,6 @@ let statIdCounter = 0;
|
|
|
7
7
|
|
|
8
8
|
@Directive({
|
|
9
9
|
selector: '[snyStat]',
|
|
10
|
-
standalone: true,
|
|
11
10
|
providers: [{ provide: SNY_STAT, useExisting: SnyStatDirective }],
|
|
12
11
|
host: { '[class]': 'computedClass()' },
|
|
13
12
|
})
|
|
@@ -21,7 +20,6 @@ export class SnyStatDirective {
|
|
|
21
20
|
|
|
22
21
|
@Directive({
|
|
23
22
|
selector: '[snyStatTitle]',
|
|
24
|
-
standalone: true,
|
|
25
23
|
host: {
|
|
26
24
|
'[class]': 'computedClass()',
|
|
27
25
|
'[id]': 'stat.titleId',
|
|
@@ -37,7 +35,6 @@ export class SnyStatTitleDirective {
|
|
|
37
35
|
|
|
38
36
|
@Directive({
|
|
39
37
|
selector: '[snyStatValue]',
|
|
40
|
-
standalone: true,
|
|
41
38
|
host: {
|
|
42
39
|
'[class]': 'computedClass()',
|
|
43
40
|
'[attr.aria-labelledby]': 'stat.titleId',
|
|
@@ -55,7 +52,6 @@ export type StatDescriptionVariant = 'default' | 'success' | 'error';
|
|
|
55
52
|
|
|
56
53
|
@Directive({
|
|
57
54
|
selector: '[snyStatDescription]',
|
|
58
|
-
standalone: true,
|
|
59
55
|
host: { '[class]': 'computedClass()' },
|
|
60
56
|
})
|
|
61
57
|
export class SnyStatDescriptionDirective {
|
|
@@ -73,7 +69,6 @@ export class SnyStatDescriptionDirective {
|
|
|
73
69
|
|
|
74
70
|
@Directive({
|
|
75
71
|
selector: '[snyStatFigure]',
|
|
76
|
-
standalone: true,
|
|
77
72
|
host: { '[class]': 'computedClass()' },
|
|
78
73
|
})
|
|
79
74
|
export class SnyStatFigureDirective {
|
|
@@ -9,7 +9,6 @@ export type StepsSize = 'sm' | 'md' | 'lg';
|
|
|
9
9
|
|
|
10
10
|
@Directive({
|
|
11
11
|
selector: '[snyStep]',
|
|
12
|
-
standalone: true,
|
|
13
12
|
host: {
|
|
14
13
|
'role': 'listitem',
|
|
15
14
|
'[class]': 'computedClass()',
|
|
@@ -46,7 +45,6 @@ export class SnyStepDirective {
|
|
|
46
45
|
|
|
47
46
|
@Directive({
|
|
48
47
|
selector: '[snySteps]',
|
|
49
|
-
standalone: true,
|
|
50
48
|
exportAs: 'snySteps',
|
|
51
49
|
providers: [{ provide: SNY_STEPS, useExisting: SnyStepsDirective }],
|
|
52
50
|
host: {
|
|
@@ -6,7 +6,6 @@ export const SNY_TABLE = new InjectionToken<SnyTableDirective>('SnyTable');
|
|
|
6
6
|
|
|
7
7
|
@Directive({
|
|
8
8
|
selector: 'table[snyTable]',
|
|
9
|
-
standalone: true,
|
|
10
9
|
providers: [{ provide: SNY_TABLE, useExisting: SnyTableDirective }],
|
|
11
10
|
host: { '[class]': 'computedClass()' },
|
|
12
11
|
})
|
|
@@ -24,7 +23,6 @@ export class SnyTableDirective {
|
|
|
24
23
|
|
|
25
24
|
@Directive({
|
|
26
25
|
selector: 'thead[snyTableHeader]',
|
|
27
|
-
standalone: true,
|
|
28
26
|
host: { '[class]': 'computedClass()' },
|
|
29
27
|
})
|
|
30
28
|
export class SnyTableHeaderDirective {
|
|
@@ -42,7 +40,6 @@ export class SnyTableHeaderDirective {
|
|
|
42
40
|
|
|
43
41
|
@Directive({
|
|
44
42
|
selector: 'tbody[snyTableBody]',
|
|
45
|
-
standalone: true,
|
|
46
43
|
host: { '[class]': 'computedClass()' },
|
|
47
44
|
})
|
|
48
45
|
export class SnyTableBodyDirective {
|
|
@@ -55,7 +52,6 @@ export class SnyTableBodyDirective {
|
|
|
55
52
|
|
|
56
53
|
@Directive({
|
|
57
54
|
selector: 'tr[snyTableRow]',
|
|
58
|
-
standalone: true,
|
|
59
55
|
host: { '[class]': 'computedClass()' },
|
|
60
56
|
})
|
|
61
57
|
export class SnyTableRowDirective {
|
|
@@ -73,7 +69,6 @@ export class SnyTableRowDirective {
|
|
|
73
69
|
|
|
74
70
|
@Directive({
|
|
75
71
|
selector: 'th[snyTableHead]',
|
|
76
|
-
standalone: true,
|
|
77
72
|
host: { '[class]': 'computedClass()' },
|
|
78
73
|
})
|
|
79
74
|
export class SnyTableHeadDirective {
|
|
@@ -91,7 +86,6 @@ export class SnyTableHeadDirective {
|
|
|
91
86
|
|
|
92
87
|
@Directive({
|
|
93
88
|
selector: 'td[snyTableCell]',
|
|
94
|
-
standalone: true,
|
|
95
89
|
host: { '[class]': 'computedClass()' },
|
|
96
90
|
})
|
|
97
91
|
export class SnyTableCellDirective {
|
|
@@ -109,7 +103,6 @@ export class SnyTableCellDirective {
|
|
|
109
103
|
|
|
110
104
|
@Directive({
|
|
111
105
|
selector: 'tfoot[snyTableFooter]',
|
|
112
|
-
standalone: true,
|
|
113
106
|
host: { '[class]': 'computedClass()' },
|
|
114
107
|
})
|
|
115
108
|
export class SnyTableFooterDirective {
|
|
@@ -122,7 +115,6 @@ export class SnyTableFooterDirective {
|
|
|
122
115
|
|
|
123
116
|
@Directive({
|
|
124
117
|
selector: 'caption[snyTableCaption]',
|
|
125
|
-
standalone: true,
|
|
126
118
|
host: { '[class]': 'computedClass()' },
|
|
127
119
|
})
|
|
128
120
|
export class SnyTableCaptionDirective {
|
|
@@ -5,7 +5,6 @@ export const SNY_TABS = new InjectionToken<SnyTabsDirective>('SnyTabs');
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: '[snyTabs]',
|
|
8
|
-
standalone: true,
|
|
9
8
|
exportAs: 'snyTabs',
|
|
10
9
|
providers: [{ provide: SNY_TABS, useExisting: SnyTabsDirective }],
|
|
11
10
|
host: { '[class]': 'computedClass()' },
|
|
@@ -25,7 +24,6 @@ export class SnyTabsDirective {
|
|
|
25
24
|
|
|
26
25
|
@Directive({
|
|
27
26
|
selector: '[snyTabsList]',
|
|
28
|
-
standalone: true,
|
|
29
27
|
host: {
|
|
30
28
|
role: 'tablist',
|
|
31
29
|
'[class]': 'computedClass()',
|
|
@@ -81,7 +79,6 @@ export class SnyTabsListDirective {
|
|
|
81
79
|
|
|
82
80
|
@Directive({
|
|
83
81
|
selector: '[snyTabsTrigger]',
|
|
84
|
-
standalone: true,
|
|
85
82
|
host: {
|
|
86
83
|
role: 'tab',
|
|
87
84
|
'[class]': 'computedClass()',
|
|
@@ -110,7 +107,6 @@ export class SnyTabsTriggerDirective {
|
|
|
110
107
|
|
|
111
108
|
@Directive({
|
|
112
109
|
selector: '[snyTabsContent]',
|
|
113
|
-
standalone: true,
|
|
114
110
|
host: {
|
|
115
111
|
role: 'tabpanel',
|
|
116
112
|
'[class]': 'computedClass()',
|
|
@@ -16,7 +16,6 @@ import { tagInputContainerVariants, tagVariants, type TagInputSize } from './tag
|
|
|
16
16
|
|
|
17
17
|
@Component({
|
|
18
18
|
selector: 'sny-tag-input',
|
|
19
|
-
standalone: true,
|
|
20
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
20
|
providers: [
|
|
22
21
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyTagInputComponent), multi: true },
|
|
@@ -8,7 +8,6 @@ export type TimelineMiddleVariant = 'default' | 'primary' | 'success' | 'error';
|
|
|
8
8
|
|
|
9
9
|
@Directive({
|
|
10
10
|
selector: '[snyTimelineItem]',
|
|
11
|
-
standalone: true,
|
|
12
11
|
host: { 'role': 'listitem', '[class]': 'computedClass()' },
|
|
13
12
|
})
|
|
14
13
|
export class SnyTimelineItemDirective {
|
|
@@ -21,7 +20,6 @@ export class SnyTimelineItemDirective {
|
|
|
21
20
|
|
|
22
21
|
@Directive({
|
|
23
22
|
selector: '[snyTimelineStart]',
|
|
24
|
-
standalone: true,
|
|
25
23
|
host: { '[class]': 'computedClass()' },
|
|
26
24
|
})
|
|
27
25
|
export class SnyTimelineStartDirective {
|
|
@@ -33,7 +31,6 @@ export class SnyTimelineStartDirective {
|
|
|
33
31
|
|
|
34
32
|
@Directive({
|
|
35
33
|
selector: '[snyTimelineMiddle]',
|
|
36
|
-
standalone: true,
|
|
37
34
|
host: { '[class]': 'computedClass()', 'aria-hidden': 'true' },
|
|
38
35
|
})
|
|
39
36
|
export class SnyTimelineMiddleDirective {
|
|
@@ -52,7 +49,6 @@ export class SnyTimelineMiddleDirective {
|
|
|
52
49
|
|
|
53
50
|
@Directive({
|
|
54
51
|
selector: '[snyTimelineEnd]',
|
|
55
|
-
standalone: true,
|
|
56
52
|
host: { '[class]': 'computedClass()' },
|
|
57
53
|
})
|
|
58
54
|
export class SnyTimelineEndDirective {
|
|
@@ -64,7 +60,6 @@ export class SnyTimelineEndDirective {
|
|
|
64
60
|
|
|
65
61
|
@Directive({
|
|
66
62
|
selector: '[snyTimeline]',
|
|
67
|
-
standalone: true,
|
|
68
63
|
exportAs: 'snyTimeline',
|
|
69
64
|
providers: [{ provide: SNY_TIMELINE, useExisting: SnyTimelineDirective }],
|
|
70
65
|
host: {
|
|
@@ -5,7 +5,6 @@ import { toggleVariants, type ToggleVariant, type ToggleSize } from './toggle.va
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: 'button[snyToggle]',
|
|
8
|
-
standalone: true,
|
|
9
8
|
providers: [
|
|
10
9
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SnyToggleDirective), multi: true },
|
|
11
10
|
],
|