ngx-com 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/fesm2022/ngx-com-components-alert.mjs +346 -0
  2. package/fesm2022/ngx-com-components-alert.mjs.map +1 -0
  3. package/fesm2022/ngx-com-components-button.mjs +1 -1
  4. package/fesm2022/ngx-com-components-button.mjs.map +1 -1
  5. package/fesm2022/ngx-com-components-calendar.mjs +29 -36
  6. package/fesm2022/ngx-com-components-calendar.mjs.map +1 -1
  7. package/fesm2022/ngx-com-components-card.mjs +1 -1
  8. package/fesm2022/ngx-com-components-card.mjs.map +1 -1
  9. package/fesm2022/ngx-com-components-carousel.mjs +708 -0
  10. package/fesm2022/ngx-com-components-carousel.mjs.map +1 -0
  11. package/fesm2022/ngx-com-components-checkbox.mjs +1 -1
  12. package/fesm2022/ngx-com-components-checkbox.mjs.map +1 -1
  13. package/fesm2022/ngx-com-components-code-block.mjs +158 -0
  14. package/fesm2022/ngx-com-components-code-block.mjs.map +1 -0
  15. package/fesm2022/ngx-com-components-collapsible.mjs +1 -1
  16. package/fesm2022/ngx-com-components-collapsible.mjs.map +1 -1
  17. package/fesm2022/ngx-com-components-confirm.mjs +3 -3
  18. package/fesm2022/ngx-com-components-confirm.mjs.map +1 -1
  19. package/fesm2022/ngx-com-components-dialog.mjs +703 -0
  20. package/fesm2022/ngx-com-components-dialog.mjs.map +1 -0
  21. package/fesm2022/ngx-com-components-dropdown.mjs +18 -21
  22. package/fesm2022/ngx-com-components-dropdown.mjs.map +1 -1
  23. package/fesm2022/ngx-com-components-item.mjs +1 -1
  24. package/fesm2022/ngx-com-components-item.mjs.map +1 -1
  25. package/fesm2022/ngx-com-components-paginator.mjs +3 -3
  26. package/fesm2022/ngx-com-components-paginator.mjs.map +1 -1
  27. package/fesm2022/ngx-com-components-radio.mjs +1 -1
  28. package/fesm2022/ngx-com-components-radio.mjs.map +1 -1
  29. package/fesm2022/ngx-com-components-segmented-control.mjs +1 -1
  30. package/fesm2022/ngx-com-components-segmented-control.mjs.map +1 -1
  31. package/fesm2022/ngx-com-components-switch.mjs +258 -0
  32. package/fesm2022/ngx-com-components-switch.mjs.map +1 -0
  33. package/fesm2022/ngx-com-components-table.mjs +631 -0
  34. package/fesm2022/ngx-com-components-table.mjs.map +1 -0
  35. package/fesm2022/ngx-com-components-tabs.mjs +2 -2
  36. package/fesm2022/ngx-com-components-tabs.mjs.map +1 -1
  37. package/fesm2022/ngx-com-components-toast.mjs +783 -0
  38. package/fesm2022/ngx-com-components-toast.mjs.map +1 -0
  39. package/package.json +29 -1
  40. package/types/ngx-com-components-alert.d.ts +166 -0
  41. package/types/ngx-com-components-carousel.d.ts +281 -0
  42. package/types/ngx-com-components-code-block.d.ts +66 -0
  43. package/types/ngx-com-components-confirm.d.ts +2 -2
  44. package/types/ngx-com-components-dialog.d.ts +264 -0
  45. package/types/ngx-com-components-switch.d.ts +110 -0
  46. package/types/ngx-com-components-table.d.ts +377 -0
  47. package/types/ngx-com-components-toast.d.ts +217 -0
@@ -0,0 +1,66 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InputSignal, OutputEmitterRef, WritableSignal, Signal } from '@angular/core';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ type CodeBlockVariant = 'filled' | 'outlined';
6
+ /**
7
+ * CVA variants for the code block container.
8
+ *
9
+ * @tokens `--color-muted`, `--color-foreground`,
10
+ * `--color-border`, `--color-border-subtle`,
11
+ * `--radius-card`, `--font-mono`
12
+ */
13
+ declare const codeBlockVariants: (props?: {
14
+ variant?: CodeBlockVariant;
15
+ }) => string;
16
+ type CodeBlockVariants = VariantProps<typeof codeBlockVariants>;
17
+
18
+ /**
19
+ * Code block component for displaying code snippets with a language label
20
+ * and copy-to-clipboard functionality.
21
+ *
22
+ * Renders plain monospace text in a styled container — no syntax highlighting.
23
+ * The header bar shows an optional language label and a copy button that
24
+ * provides visual feedback (checkmark icon for 2 seconds) after copying.
25
+ *
26
+ * @tokens `--color-muted`, `--color-muted-foreground`, `--color-muted-hover`,
27
+ * `--color-foreground`, `--color-border`, `--color-border-subtle`,
28
+ * `--color-ring`, `--color-success`,
29
+ * `--font-mono`, `--radius-card`
30
+ *
31
+ * @example Basic usage with language label
32
+ * ```html
33
+ * <com-code-block code="const x = 42;" language="TypeScript" />
34
+ * ```
35
+ *
36
+ * @example Outlined variant
37
+ * ```html
38
+ * <com-code-block [code]="htmlSnippet" language="HTML" variant="outlined" />
39
+ * ```
40
+ */
41
+ declare class ComCodeBlockComponent {
42
+ /** The raw code string to display. */
43
+ readonly code: InputSignal<string>;
44
+ /** Language label shown in the header (e.g. 'TypeScript', 'HTML'). */
45
+ readonly language: InputSignal<string | undefined>;
46
+ /** Visual variant. */
47
+ readonly variant: InputSignal<CodeBlockVariant>;
48
+ /** Consumer CSS classes — merged with variant classes. */
49
+ readonly userClass: InputSignal<string>;
50
+ /** Emitted when code is successfully copied to clipboard. */
51
+ readonly copied: OutputEmitterRef<void>;
52
+ /** @internal Tracks copy feedback state. */
53
+ protected readonly isCopied: WritableSignal<boolean>;
54
+ /** @internal Computed host element classes. */
55
+ protected readonly hostClasses: Signal<string>;
56
+ private readonly clipboard;
57
+ private readonly destroyRef;
58
+ private copyTimeoutId;
59
+ /** Copies the code to clipboard and shows feedback for 2 seconds. */
60
+ protected copyToClipboard(): void;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComCodeBlockComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComCodeBlockComponent, "com-code-block", ["comCodeBlock"], { "code": { "alias": "code"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "copied": "copied"; }, never, never, true, never>;
63
+ }
64
+
65
+ export { ComCodeBlockComponent, codeBlockVariants };
66
+ export type { CodeBlockVariant, CodeBlockVariants };
@@ -31,7 +31,7 @@ interface ConfirmTemplateContext {
31
31
  * and emits `true` (confirmed) or `false` (cancelled) through its output.
32
32
  *
33
33
  * @tokens `--color-popover`, `--color-popover-foreground`, `--color-border`,
34
- * `--color-foreground`, `--color-muted-foreground`, `--color-background`,
34
+ * `--color-foreground`, `--color-muted-foreground`, `--color-backdrop`,
35
35
  * `--shadow-lg`, `--radius-popover`
36
36
  *
37
37
  * @example Basic confirmation
@@ -126,7 +126,7 @@ declare class ComConfirm {
126
126
  /**
127
127
  * CVA variants for the confirmation panel backdrop.
128
128
  *
129
- * @tokens `--color-background`
129
+ * @tokens `--color-backdrop`
130
130
  */
131
131
  declare const confirmBackdropVariants: (props?: {
132
132
  visible?: boolean;
@@ -0,0 +1,264 @@
1
+ import { Observable } from 'rxjs';
2
+ import { OverlayRef } from '@angular/cdk/overlay';
3
+ import * as i0 from '@angular/core';
4
+ import { TemplateRef, OnInit, WritableSignal, InputSignal, InjectionToken, Provider } from '@angular/core';
5
+ import { ComponentType } from '@angular/cdk/portal';
6
+ import { VariantProps } from 'class-variance-authority';
7
+
8
+ /**
9
+ * Reference to an open dialog instance.
10
+ * Returned by `ComDialog.open()` for programmatic control.
11
+ */
12
+ declare class ComDialogRef<R = unknown> {
13
+ private readonly afterClosedSubject;
14
+ private readonly backdropClickSubject;
15
+ private closed;
16
+ /** @internal */
17
+ _overlayRef: OverlayRef | null;
18
+ /** @internal */
19
+ _closeFn: ((result?: R) => void) | null;
20
+ /**
21
+ * Close the dialog, optionally passing a result value.
22
+ */
23
+ close(result?: R): void;
24
+ /**
25
+ * Emits the result once after the dialog is fully closed and disposed.
26
+ */
27
+ afterClosed(): Observable<R | undefined>;
28
+ /**
29
+ * Emits each time the backdrop is clicked.
30
+ */
31
+ backdropClick(): Observable<MouseEvent>;
32
+ /**
33
+ * Proxies keydown events from the overlay.
34
+ */
35
+ keydownEvents(): Observable<KeyboardEvent>;
36
+ /** @internal Called by the service after exit animation completes. */
37
+ _notifyClosed(result?: R): void;
38
+ /** @internal Forward backdrop click from overlay. */
39
+ _notifyBackdropClick(event: MouseEvent): void;
40
+ }
41
+
42
+ /** Available dialog size variants. */
43
+ type ComDialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
44
+ /** Configuration for opening a dialog. */
45
+ interface ComDialogConfig<D = unknown> {
46
+ /** Data to inject via COM_DIALOG_DATA. */
47
+ data?: D;
48
+ /** Dialog panel width variant. */
49
+ size?: ComDialogSize;
50
+ /** Prevent Escape and backdrop click from closing. */
51
+ disableClose?: boolean;
52
+ /** Show backdrop overlay. */
53
+ hasBackdrop?: boolean;
54
+ /** Additional CSS class on the backdrop. */
55
+ backdropClass?: string;
56
+ /** Additional CSS class on the container panel. */
57
+ panelClass?: string;
58
+ /** Where to send focus on open. */
59
+ autoFocus?: 'first-tabbable' | 'dialog' | false;
60
+ /** Return focus to trigger element on close. */
61
+ restoreFocus?: boolean;
62
+ /** Fallback aria-label if no comDialogTitle is projected. */
63
+ ariaLabel?: string;
64
+ }
65
+ /** Content that can be opened in a dialog. */
66
+ type ComDialogContent$1<T = unknown> = ComponentType<T> | TemplateRef<T>;
67
+ /** Template context when opening a TemplateRef dialog. */
68
+ interface ComDialogTemplateContext<R = unknown, D = unknown> {
69
+ $implicit: ComDialogRef<R>;
70
+ data: D;
71
+ }
72
+
73
+ /**
74
+ * Service for opening dialog modals imperatively.
75
+ *
76
+ * @example
77
+ * ```typescript
78
+ * const dialog = inject(ComDialog);
79
+ *
80
+ * // Open a component
81
+ * const ref = dialog.open<boolean>(ConfirmComponent, { data: { id: 123 } });
82
+ * ref.afterClosed().subscribe(result => {
83
+ * if (result) performAction();
84
+ * });
85
+ *
86
+ * // Open a template
87
+ * dialog.open(templateRef, { size: 'sm' });
88
+ * ```
89
+ */
90
+ declare class ComDialog {
91
+ private readonly overlay;
92
+ private readonly injector;
93
+ private readonly destroyRef;
94
+ private readonly platformId;
95
+ private readonly document;
96
+ private readonly globalConfig;
97
+ private readonly openDialogs;
98
+ /**
99
+ * Open a dialog with the given component or template.
100
+ *
101
+ * @param content - The component class or TemplateRef to render inside the dialog.
102
+ * @param config - Optional dialog configuration.
103
+ * @returns A reference to the opened dialog.
104
+ */
105
+ open<R = unknown, D = unknown>(content: ComDialogContent$1, config?: ComDialogConfig<D>): ComDialogRef<R>;
106
+ /** Close all open dialogs. */
107
+ closeAll(): void;
108
+ /** Number of currently open dialogs. */
109
+ get openDialogCount(): number;
110
+ private resolveConfig;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComDialog, never>;
112
+ static ɵprov: i0.ɵɵInjectableDeclaration<ComDialog>;
113
+ }
114
+
115
+ /**
116
+ * Marks an element as the dialog title. Sets up aria-labelledby
117
+ * binding on the dialog container.
118
+ *
119
+ * @example
120
+ * ```html
121
+ * <h2 comDialogTitle>Delete item</h2>
122
+ * ```
123
+ *
124
+ * @tokens `--color-foreground`
125
+ */
126
+ declare class ComDialogTitle implements OnInit {
127
+ private readonly containerRef;
128
+ /** Unique ID for aria-labelledby binding. */
129
+ readonly id: WritableSignal<string>;
130
+ /** Computed CSS classes. */
131
+ readonly classes: WritableSignal<string>;
132
+ ngOnInit(): void;
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComDialogTitle, never>;
134
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComDialogTitle, "[comDialogTitle]", ["comDialogTitle"], {}, {}, never, never, true, never>;
135
+ }
136
+
137
+ /**
138
+ * Marks an element as the dialog content area. Sets up aria-describedby
139
+ * binding on the dialog container.
140
+ *
141
+ * @example
142
+ * ```html
143
+ * <div comDialogContent>
144
+ * <p>Are you sure you want to delete this item?</p>
145
+ * </div>
146
+ * ```
147
+ *
148
+ * @tokens `--color-muted-foreground`
149
+ */
150
+ declare class ComDialogContent implements OnInit {
151
+ private readonly containerRef;
152
+ /** Unique ID for aria-describedby binding. */
153
+ readonly id: WritableSignal<string>;
154
+ /** Computed CSS classes. */
155
+ readonly classes: WritableSignal<string>;
156
+ ngOnInit(): void;
157
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComDialogContent, never>;
158
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComDialogContent, "[comDialogContent]", ["comDialogContent"], {}, {}, never, never, true, never>;
159
+ }
160
+
161
+ /**
162
+ * Marks an element as the dialog actions area (footer with buttons).
163
+ *
164
+ * @example
165
+ * ```html
166
+ * <div comDialogActions>
167
+ * <button comButton variant="outline" [comDialogClose]="false">Cancel</button>
168
+ * <button comButton [comDialogClose]="true">Confirm</button>
169
+ * </div>
170
+ * ```
171
+ */
172
+ declare class ComDialogActions {
173
+ /** Computed CSS classes. */
174
+ readonly classes: WritableSignal<string>;
175
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComDialogActions, never>;
176
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComDialogActions, "[comDialogActions]", ["comDialogActions"], {}, {}, never, never, true, never>;
177
+ }
178
+
179
+ /**
180
+ * Closes the nearest dialog when the host element is clicked.
181
+ * Optionally passes a result value.
182
+ *
183
+ * @example
184
+ * ```html
185
+ * <button comButton [comDialogClose]="false">Cancel</button>
186
+ * <button comButton [comDialogClose]="true">Confirm</button>
187
+ * ```
188
+ */
189
+ declare class ComDialogClose {
190
+ private readonly dialogRef;
191
+ /** The result value to pass when closing the dialog. */
192
+ readonly comDialogClose: InputSignal<unknown>;
193
+ protected onClick(): void;
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComDialogClose, never>;
195
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComDialogClose, "[comDialogClose]", ["comDialogClose"], { "comDialogClose": { "alias": "comDialogClose"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
196
+ }
197
+
198
+ /**
199
+ * Injection token for data passed to a dialog component.
200
+ *
201
+ * @example
202
+ * ```typescript
203
+ * readonly data = inject<MyData>(COM_DIALOG_DATA);
204
+ * ```
205
+ */
206
+ declare const COM_DIALOG_DATA: InjectionToken<unknown>;
207
+ /**
208
+ * Injection token for global dialog configuration defaults.
209
+ * @internal
210
+ */
211
+ declare const COM_DIALOG_CONFIG: InjectionToken<ComDialogConfig>;
212
+ /**
213
+ * Provides global dialog configuration defaults.
214
+ *
215
+ * @example
216
+ * ```typescript
217
+ * bootstrapApplication(AppComponent, {
218
+ * providers: [
219
+ * provideComDialogConfig({ size: 'lg', hasBackdrop: true }),
220
+ * ],
221
+ * });
222
+ * ```
223
+ */
224
+ declare function provideComDialogConfig(config: ComDialogConfig): Provider;
225
+
226
+ /**
227
+ * CVA variants for the dialog backdrop.
228
+ *
229
+ * @tokens `--color-backdrop`
230
+ */
231
+ declare const dialogBackdropVariants: (props?: {
232
+ visible?: boolean;
233
+ }) => string;
234
+ /**
235
+ * CVA variants for the dialog panel container.
236
+ *
237
+ * @tokens `--color-popover`, `--color-popover-foreground`, `--color-border`,
238
+ * `--shadow-xl`, `--radius-overlay`
239
+ */
240
+ declare const dialogPanelVariants: (props?: {
241
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
242
+ visible?: boolean;
243
+ }) => string;
244
+ /** Type helper for dialog panel variant props. */
245
+ type DialogPanelVariantProps = VariantProps<typeof dialogPanelVariants>;
246
+ /**
247
+ * CVA variants for the dialog title.
248
+ *
249
+ * @tokens `--color-foreground`
250
+ */
251
+ declare const dialogTitleVariants: () => string;
252
+ /**
253
+ * CVA variants for the dialog content area.
254
+ *
255
+ * @tokens `--color-muted-foreground`
256
+ */
257
+ declare const dialogContentVariants: () => string;
258
+ /**
259
+ * CVA variants for the dialog actions area.
260
+ */
261
+ declare const dialogActionsVariants: () => string;
262
+
263
+ export { COM_DIALOG_CONFIG, COM_DIALOG_DATA, ComDialog, ComDialogActions, ComDialogClose, ComDialogContent, ComDialogRef, ComDialogTitle, dialogActionsVariants, dialogBackdropVariants, dialogContentVariants, dialogPanelVariants, dialogTitleVariants, provideComDialogConfig };
264
+ export type { ComDialogConfig, ComDialogSize, ComDialogTemplateContext, DialogPanelVariantProps };
@@ -0,0 +1,110 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Signal, ElementRef, InputSignal, ModelSignal, OutputEmitterRef } from '@angular/core';
3
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
4
+
5
+ /** Switch size variants. */
6
+ type SwitchSize = 'sm' | 'md' | 'lg';
7
+ /** Switch color variants. */
8
+ type SwitchVariant = 'primary' | 'accent' | 'warn';
9
+ /**
10
+ * CVA variants for the switch track (pill-shaped container).
11
+ *
12
+ * Uses `peer` selectors to style based on native input state:
13
+ * - `peer-checked:` for on state
14
+ * - `peer-focus-visible:` for keyboard focus
15
+ * - `peer-disabled:` for disabled state
16
+ *
17
+ * @tokens `--color-primary`, `--color-primary-hover`,
18
+ * `--color-accent`, `--color-accent-hover`,
19
+ * `--color-warn`, `--color-warn-hover`,
20
+ * `--color-muted`, `--color-muted-hover`,
21
+ * `--color-disabled`, `--color-ring`, `--radius-pill`
22
+ */
23
+ declare const switchTrackVariants: (props?: {
24
+ variant?: SwitchVariant;
25
+ size?: SwitchSize;
26
+ }) => string;
27
+ /** Size-based classes for the sliding thumb. */
28
+ declare const SWITCH_THUMB_SIZES: Record<SwitchSize, string>;
29
+ /** Size-based translate classes applied when the switch is checked. */
30
+ declare const SWITCH_THUMB_TRANSLATE: Record<SwitchSize, string>;
31
+ /** Size-based classes for the label content. */
32
+ declare const SWITCH_LABEL_SIZES: Record<SwitchSize, string>;
33
+
34
+ /** Event emitted when switch state changes. */
35
+ interface SwitchChange {
36
+ checked: boolean;
37
+ source: ComSwitch;
38
+ }
39
+ /**
40
+ * Toggle switch component with full accessibility support.
41
+ *
42
+ * Uses a native `<input type="checkbox" role="switch">` for built-in keyboard
43
+ * handling, `:checked` pseudo-class, and screen reader support.
44
+ *
45
+ * Implements `ControlValueAccessor` for Reactive Forms integration via
46
+ * `NgControl` injection pattern (no `NG_VALUE_ACCESSOR` provider).
47
+ *
48
+ * @tokens `--color-primary`, `--color-primary-hover`,
49
+ * `--color-accent`, `--color-accent-hover`,
50
+ * `--color-warn`, `--color-warn-hover`,
51
+ * `--color-muted`, `--color-muted-hover`,
52
+ * `--color-background`, `--color-disabled`, `--color-disabled-foreground`,
53
+ * `--color-ring`, `--radius-pill`
54
+ *
55
+ * @example Basic usage
56
+ * ```html
57
+ * <com-switch [(checked)]="darkMode">Dark mode</com-switch>
58
+ * ```
59
+ *
60
+ * @example With reactive forms
61
+ * ```html
62
+ * <com-switch formControlName="notifications">Push notifications</com-switch>
63
+ * ```
64
+ *
65
+ * @example Variants and sizes
66
+ * ```html
67
+ * <com-switch variant="accent" size="lg">Large accent switch</com-switch>
68
+ * <com-switch variant="warn" size="sm">Small warning switch</com-switch>
69
+ * ```
70
+ */
71
+ declare class ComSwitch implements ControlValueAccessor {
72
+ /** Optional NgControl for reactive forms integration. */
73
+ readonly ngControl: NgControl | null;
74
+ /** Reference to the native input element. */
75
+ readonly inputRef: Signal<ElementRef<HTMLInputElement> | undefined>;
76
+ /** Unique ID for this switch instance. */
77
+ private readonly uniqueId;
78
+ readonly size: InputSignal<SwitchSize>;
79
+ readonly variant: InputSignal<SwitchVariant>;
80
+ readonly checked: ModelSignal<boolean>;
81
+ readonly disabled: ModelSignal<boolean>;
82
+ readonly value: InputSignal<string | undefined>;
83
+ readonly name: InputSignal<string | undefined>;
84
+ readonly id: InputSignal<string | undefined>;
85
+ readonly ariaLabel: InputSignal<string | null>;
86
+ readonly ariaLabelledby: InputSignal<string | null>;
87
+ readonly ariaDescribedby: InputSignal<string | null>;
88
+ readonly changed: OutputEmitterRef<SwitchChange>;
89
+ readonly inputId: Signal<string>;
90
+ protected readonly trackClasses: Signal<string>;
91
+ protected readonly thumbClasses: Signal<string>;
92
+ protected readonly labelClasses: Signal<string>;
93
+ private onChange;
94
+ protected onTouched: () => void;
95
+ constructor();
96
+ writeValue(value: boolean): void;
97
+ registerOnChange(fn: (value: boolean) => void): void;
98
+ registerOnTouched(fn: () => void): void;
99
+ setDisabledState(isDisabled: boolean): void;
100
+ protected onInputChange(event: Event): void;
101
+ /** Focuses this switch's input element. */
102
+ focus(): void;
103
+ /** Toggles the switch state programmatically. */
104
+ toggle(): void;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComSwitch, never>;
106
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComSwitch, "com-switch", ["comSwitch"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; "changed": "changed"; }, never, ["*"], true, never>;
107
+ }
108
+
109
+ export { ComSwitch, SWITCH_LABEL_SIZES, SWITCH_THUMB_SIZES, SWITCH_THUMB_TRANSLATE, switchTrackVariants };
110
+ export type { SwitchChange, SwitchSize, SwitchVariant };