ngx-com 0.0.1 → 0.0.3

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 (58) hide show
  1. package/fesm2022/ngx-com-components-badge.mjs +138 -0
  2. package/fesm2022/ngx-com-components-badge.mjs.map +1 -0
  3. package/fesm2022/ngx-com-components-button.mjs +146 -0
  4. package/fesm2022/ngx-com-components-button.mjs.map +1 -0
  5. package/fesm2022/ngx-com-components-calendar.mjs +5046 -0
  6. package/fesm2022/ngx-com-components-calendar.mjs.map +1 -0
  7. package/fesm2022/ngx-com-components-card.mjs +590 -0
  8. package/fesm2022/ngx-com-components-card.mjs.map +1 -0
  9. package/fesm2022/ngx-com-components-checkbox.mjs +344 -0
  10. package/fesm2022/ngx-com-components-checkbox.mjs.map +1 -0
  11. package/fesm2022/ngx-com-components-collapsible.mjs +612 -0
  12. package/fesm2022/ngx-com-components-collapsible.mjs.map +1 -0
  13. package/fesm2022/ngx-com-components-dropdown-testing.mjs +255 -0
  14. package/fesm2022/ngx-com-components-dropdown-testing.mjs.map +1 -0
  15. package/fesm2022/ngx-com-components-dropdown.mjs +2598 -0
  16. package/fesm2022/ngx-com-components-dropdown.mjs.map +1 -0
  17. package/fesm2022/ngx-com-components-form-field.mjs +923 -0
  18. package/fesm2022/ngx-com-components-form-field.mjs.map +1 -0
  19. package/fesm2022/ngx-com-components-icon.mjs +183 -0
  20. package/fesm2022/ngx-com-components-icon.mjs.map +1 -0
  21. package/fesm2022/ngx-com-components-menu.mjs +1200 -0
  22. package/fesm2022/ngx-com-components-menu.mjs.map +1 -0
  23. package/fesm2022/ngx-com-components-popover.mjs +901 -0
  24. package/fesm2022/ngx-com-components-popover.mjs.map +1 -0
  25. package/fesm2022/ngx-com-components-radio.mjs +621 -0
  26. package/fesm2022/ngx-com-components-radio.mjs.map +1 -0
  27. package/fesm2022/ngx-com-components-sort.mjs +368 -0
  28. package/fesm2022/ngx-com-components-sort.mjs.map +1 -0
  29. package/fesm2022/ngx-com-components-tabs.mjs +1522 -0
  30. package/fesm2022/ngx-com-components-tabs.mjs.map +1 -0
  31. package/fesm2022/ngx-com-components.mjs +17 -0
  32. package/fesm2022/ngx-com-components.mjs.map +1 -0
  33. package/fesm2022/ngx-com-tokens.mjs +12 -0
  34. package/fesm2022/ngx-com-tokens.mjs.map +1 -0
  35. package/fesm2022/ngx-com-utils.mjs +601 -0
  36. package/fesm2022/ngx-com-utils.mjs.map +1 -0
  37. package/fesm2022/ngx-com.mjs +9 -23
  38. package/fesm2022/ngx-com.mjs.map +1 -1
  39. package/package.json +73 -1
  40. package/types/ngx-com-components-badge.d.ts +97 -0
  41. package/types/ngx-com-components-button.d.ts +69 -0
  42. package/types/ngx-com-components-calendar.d.ts +1665 -0
  43. package/types/ngx-com-components-card.d.ts +373 -0
  44. package/types/ngx-com-components-checkbox.d.ts +116 -0
  45. package/types/ngx-com-components-collapsible.d.ts +379 -0
  46. package/types/ngx-com-components-dropdown-testing.d.ts +116 -0
  47. package/types/ngx-com-components-dropdown.d.ts +914 -0
  48. package/types/ngx-com-components-form-field.d.ts +531 -0
  49. package/types/ngx-com-components-icon.d.ts +94 -0
  50. package/types/ngx-com-components-menu.d.ts +479 -0
  51. package/types/ngx-com-components-popover.d.ts +309 -0
  52. package/types/ngx-com-components-radio.d.ts +258 -0
  53. package/types/ngx-com-components-sort.d.ts +133 -0
  54. package/types/ngx-com-components-tabs.d.ts +396 -0
  55. package/types/ngx-com-components.d.ts +12 -0
  56. package/types/ngx-com-tokens.d.ts +7 -0
  57. package/types/ngx-com-utils.d.ts +424 -0
  58. package/types/ngx-com.d.ts +10 -7
@@ -0,0 +1,133 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, InputSignal, InputSignalWithTransform, Signal, ModelSignal, OutputEmitterRef } from '@angular/core';
3
+
4
+ /** Sort direction — three states */
5
+ type SortDirection = 'asc' | 'desc' | undefined;
6
+ /** Configures the three-state sort cycle */
7
+ type SortCycle = SortDirection[];
8
+ /** Emitted when sort state changes */
9
+ interface SortEvent {
10
+ /** The active column id, or undefined if unsorted */
11
+ active: string | undefined;
12
+ /** The sort direction */
13
+ direction: SortDirection;
14
+ }
15
+ /**
16
+ * @tokens `--color-foreground`, `--color-muted-foreground`
17
+ */
18
+ declare const sortHeaderVariants: (props?: {
19
+ sortable?: boolean;
20
+ active?: boolean;
21
+ disabled?: boolean;
22
+ }) => string;
23
+ /**
24
+ * @tokens `--color-foreground`, `--color-muted-foreground`
25
+ */
26
+ declare const sortIconVariants: (props?: {
27
+ size?: 'sm' | 'md' | 'lg';
28
+ state?: 'asc' | 'desc' | 'unsorted' | 'hidden';
29
+ }) => string;
30
+
31
+ /**
32
+ * Sortable header component — child of [uiSort] directive.
33
+ *
34
+ * Apply to table headers, div columns, or any clickable element that should trigger sorting.
35
+ *
36
+ * @tokens `--color-foreground`, `--color-muted-foreground`, `--color-disabled-foreground`
37
+ *
38
+ * @example Basic usage
39
+ * ```html
40
+ * <tr comSort (sortChange)="onSort($event)">
41
+ * <th comSortHeader="name">Name</th>
42
+ * <th comSortHeader="age">Age</th>
43
+ * </tr>
44
+ * ```
45
+ *
46
+ * @example Arrow placement
47
+ * ```html
48
+ * <th comSortHeader="name" comSortHeaderArrowPosition="before">Name</th>
49
+ * ```
50
+ */
51
+ declare class SortHeaderComponent implements OnInit {
52
+ private readonly sort;
53
+ private readonly destroyRef;
54
+ /** The column id — aliased from the selector */
55
+ readonly id: InputSignal<string>;
56
+ /** Disable sorting for this specific header */
57
+ readonly sortHeaderDisabled: InputSignalWithTransform<boolean, unknown>;
58
+ /** Override parent's sortShowIndicator for this header */
59
+ readonly sortHeaderShowIndicator: InputSignal<boolean | undefined>;
60
+ /** Arrow placement relative to content */
61
+ readonly sortHeaderArrowPosition: InputSignal<'before' | 'after'>;
62
+ /** Whether this header is the currently active sort column */
63
+ readonly isActive: Signal<boolean>;
64
+ /** Current direction if active, undefined otherwise */
65
+ readonly direction: Signal<SortDirection>;
66
+ /** Whether this header is sorted (active + has direction) */
67
+ readonly isSorted: Signal<boolean>;
68
+ /** Whether to show the muted indicator when unsorted */
69
+ readonly showUnsortedIndicator: Signal<boolean>;
70
+ /** Whether sorting is disabled for this header */
71
+ readonly isDisabled: Signal<boolean>;
72
+ /** aria-sort attribute value */
73
+ readonly ariaSort: Signal<'ascending' | 'descending' | 'none'>;
74
+ /** CVA-generated host classes */
75
+ readonly hostClasses: Signal<string>;
76
+ constructor();
77
+ ngOnInit(): void;
78
+ protected onClick(): void;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortHeaderComponent, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<SortHeaderComponent, "[comSortHeader]", never, { "id": { "alias": "comSortHeader"; "required": true; "isSignal": true; }; "sortHeaderDisabled": { "alias": "sortHeaderDisabled"; "required": false; "isSignal": true; }; "sortHeaderShowIndicator": { "alias": "sortHeaderShowIndicator"; "required": false; "isSignal": true; }; "sortHeaderArrowPosition": { "alias": "comSortHeaderArrowPosition"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
81
+ }
82
+
83
+ /**
84
+ * Parent directive that manages sort state for a group of sortable headers.
85
+ *
86
+ * Apply to a container element (e.g., `<tr>`, `<div>`) that contains `[uiSortHeader]` children.
87
+ * Children inject this directive via DI and read its signals directly.
88
+ *
89
+ * @tokens `--color-foreground`, `--color-muted-foreground`
90
+ *
91
+ * @example Basic usage
92
+ * ```html
93
+ * <tr comSort (sortChange)="onSort($event)">
94
+ * <th comSortHeader="name">Name</th>
95
+ * <th comSortHeader="age">Age</th>
96
+ * </tr>
97
+ * ```
98
+ *
99
+ * @example Two-way binding
100
+ * ```html
101
+ * <tr comSort [(sortActive)]="column" [(sortDirection)]="direction">
102
+ * <th comSortHeader="name">Name</th>
103
+ * </tr>
104
+ * ```
105
+ */
106
+ declare class SortDirective {
107
+ /** Currently active sort column id — two-way via model() */
108
+ readonly sortActive: ModelSignal<string | undefined>;
109
+ /** Current sort direction — two-way via model() */
110
+ readonly sortDirection: ModelSignal<SortDirection>;
111
+ /** Disables all sorting in this container */
112
+ readonly sortDisabled: InputSignalWithTransform<boolean, unknown>;
113
+ /** Customize the click cycle (e.g., ['asc', 'desc'] to skip unsorted) */
114
+ readonly sortCycle: InputSignal<SortCycle>;
115
+ /** Show a muted arrow on unsorted headers */
116
+ readonly sortShowIndicator: InputSignalWithTransform<boolean, unknown>;
117
+ /** Emitted when active column or direction changes */
118
+ readonly sortChange: OutputEmitterRef<SortEvent>;
119
+ private readonly headers;
120
+ /** Register a sort header with this parent */
121
+ register(header: SortHeaderComponent): void;
122
+ /** Deregister a sort header */
123
+ deregister(id: string): void;
124
+ /** Programmatically sort by a column */
125
+ sort(id: string): void;
126
+ /** Returns the next direction in the cycle for a given column */
127
+ getNextDirection(id: string): SortDirection;
128
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortDirective, never>;
129
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SortDirective, "[comSort]", ["comSort"], { "sortActive": { "alias": "sortActive"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortDisabled": { "alias": "sortDisabled"; "required": false; "isSignal": true; }; "sortCycle": { "alias": "sortCycle"; "required": false; "isSignal": true; }; "sortShowIndicator": { "alias": "sortShowIndicator"; "required": false; "isSignal": true; }; }, { "sortActive": "sortActiveChange"; "sortDirection": "sortDirectionChange"; "sortChange": "sortChange"; }, never, never, true, never>;
130
+ }
131
+
132
+ export { SortDirective, SortHeaderComponent, sortHeaderVariants, sortIconVariants };
133
+ export type { SortCycle, SortDirection, SortEvent };
@@ -0,0 +1,396 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, InputSignal, InputSignalWithTransform, OutputEmitterRef, Signal, WritableSignal, ModelSignal, ElementRef } from '@angular/core';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ /**
6
+ * Marker directive for custom tab label templates.
7
+ *
8
+ * Provides a custom label template for rich tab headers (icons, badges, counters).
9
+ * Applied to an `<ng-template>` inside `<ui-tab>`.
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <com-tab>
14
+ * <ng-template comTabLabel>
15
+ * <svg class="w-4 h-4">...</svg>
16
+ * <span>Settings</span>
17
+ * <span class="bg-warn text-warn-foreground text-xs rounded-pill px-1.5">3</span>
18
+ * </ng-template>
19
+ * <p>Tab content here.</p>
20
+ * </com-tab>
21
+ * ```
22
+ */
23
+ declare class TabLabelDirective {
24
+ readonly templateRef: TemplateRef<void>;
25
+ static ngTemplateContextGuard(_dir: TabLabelDirective, ctx: unknown): ctx is void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelDirective, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TabLabelDirective, "ng-template[comTabLabel]", never, {}, {}, never, never, true, never>;
28
+ }
29
+
30
+ /**
31
+ * Marker directive for lazy tab content rendering.
32
+ *
33
+ * Content wrapped in `<ng-template comTabContent>` is only instantiated
34
+ * when the tab becomes active for the first time.
35
+ *
36
+ * @example Lazy loaded content
37
+ * ```html
38
+ * <com-tab label="Analytics">
39
+ * <ng-template comTabContent>
40
+ * <app-analytics-dashboard />
41
+ * </ng-template>
42
+ * </com-tab>
43
+ * ```
44
+ *
45
+ * @example Combined with @defer
46
+ * ```html
47
+ * <com-tab label="Reports">
48
+ * <ng-template comTabContent>
49
+ * &#64;defer {
50
+ * <app-report-builder />
51
+ * } &#64;loading {
52
+ * <p>Loading reports...</p>
53
+ * }
54
+ * </ng-template>
55
+ * </com-tab>
56
+ * ```
57
+ */
58
+ declare class TabContentDirective {
59
+ readonly templateRef: TemplateRef<void>;
60
+ static ngTemplateContextGuard(_dir: TabContentDirective, ctx: unknown): ctx is void;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabContentDirective, never>;
62
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TabContentDirective, "ng-template[comTabContent]", never, {}, {}, never, never, true, never>;
63
+ }
64
+
65
+ /**
66
+ * Individual tab definition component.
67
+ *
68
+ * This is a **definition component** — it doesn't render anything itself.
69
+ * It provides a label and content template to the parent `TabGroupComponent`.
70
+ *
71
+ * @example Basic usage
72
+ * ```html
73
+ * <com-tab label="Overview">
74
+ * <p>Overview content.</p>
75
+ * </com-tab>
76
+ * ```
77
+ *
78
+ * @example Custom label with icon
79
+ * ```html
80
+ * <com-tab>
81
+ * <ng-template comTabLabel>
82
+ * <svg class="w-4 h-4"><!-- icon --></svg>
83
+ * <span>Settings</span>
84
+ * </ng-template>
85
+ * <p>Settings content.</p>
86
+ * </com-tab>
87
+ * ```
88
+ *
89
+ * @example Lazy loaded content
90
+ * ```html
91
+ * <com-tab label="Analytics">
92
+ * <ng-template comTabContent>
93
+ * <app-heavy-dashboard />
94
+ * </ng-template>
95
+ * </com-tab>
96
+ * ```
97
+ *
98
+ * @example Closable tab
99
+ * ```html
100
+ * <com-tab label="Document" [closable]="true" (closed)="onClose()">
101
+ * <p>Document content.</p>
102
+ * </com-tab>
103
+ * ```
104
+ */
105
+ declare class TabComponent {
106
+ /** Plain text label; ignored if `[comTabLabel]` template is provided. */
107
+ readonly label: InputSignal<string>;
108
+ /** Prevents selection when true. */
109
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
110
+ /** Shows a close/remove button on the tab. */
111
+ readonly closable: InputSignalWithTransform<boolean, unknown>;
112
+ /** Emitted when the close button is clicked. */
113
+ readonly closed: OutputEmitterRef<void>;
114
+ /** Custom label template (queried from content). */
115
+ readonly customLabel: Signal<TabLabelDirective | undefined>;
116
+ /** Lazy content template (queried from content). */
117
+ readonly lazyContent: Signal<TabContentDirective | undefined>;
118
+ /** Implicit content template from ng-content. */
119
+ readonly implicitContent: Signal<TemplateRef<unknown> | undefined>;
120
+ /** Whether this tab is currently active. Set by TabGroupComponent. */
121
+ readonly isActive: WritableSignal<boolean>;
122
+ /** Whether this tab content has been rendered at least once. */
123
+ readonly hasBeenActivated: WritableSignal<boolean>;
124
+ /**
125
+ * Returns the label template if provided, otherwise null.
126
+ * Parent uses this to decide between string label or template.
127
+ */
128
+ readonly labelTemplate: Signal<TemplateRef<void> | null>;
129
+ /**
130
+ * Returns the content template: lazy template if present, else implicit content.
131
+ */
132
+ readonly contentTemplate: Signal<TemplateRef<unknown> | undefined>;
133
+ /**
134
+ * Whether this tab uses lazy loading.
135
+ */
136
+ readonly isLazy: Signal<boolean>;
137
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
138
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "com-tab", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, ["customLabel", "lazyContent"], ["*"], true, never>;
139
+ }
140
+
141
+ type TabVariant = 'underline' | 'pill' | 'outline' | 'solid';
142
+ type TabSize = 'sm' | 'md' | 'lg';
143
+ type TabColor = 'primary' | 'accent' | 'muted';
144
+ type TabAlignment = 'start' | 'center' | 'end' | 'stretch';
145
+ declare const tabItemVariants: (props?: {
146
+ variant?: TabVariant;
147
+ size?: TabSize;
148
+ color?: TabColor;
149
+ active?: boolean;
150
+ }) => string;
151
+ type TabItemVariants = VariantProps<typeof tabItemVariants>;
152
+ declare const tabHeaderVariants: (props?: {
153
+ alignment?: TabAlignment;
154
+ variant?: TabVariant;
155
+ }) => string;
156
+ type TabHeaderVariants = VariantProps<typeof tabHeaderVariants>;
157
+ declare const tabScrollButtonVariants: (props?: {
158
+ direction?: 'left' | 'right';
159
+ variant?: TabVariant;
160
+ }) => string;
161
+ type TabScrollButtonVariants = VariantProps<typeof tabScrollButtonVariants>;
162
+ declare const tabCloseButtonVariants: (props?: {
163
+ size?: TabSize;
164
+ }) => string;
165
+ type TabCloseButtonVariants = VariantProps<typeof tabCloseButtonVariants>;
166
+ declare const tabPanelVariants: (props?: {
167
+ animated?: boolean;
168
+ }) => string;
169
+ type TabPanelVariants = VariantProps<typeof tabPanelVariants>;
170
+
171
+ /** Event emitted when the selected tab changes. */
172
+ interface TabChangeEvent {
173
+ index: number;
174
+ tab: TabComponent;
175
+ }
176
+ /**
177
+ * Tab group component — orchestrates tab state and renders header + panels.
178
+ *
179
+ * @tokens `--color-primary`, `--color-primary-foreground`, `--color-accent`, `--color-accent-foreground`,
180
+ * `--color-muted`, `--color-muted-foreground`, `--color-border`, `--color-ring`,
181
+ * `--color-disabled`, `--color-disabled-foreground`
182
+ *
183
+ * @example Basic usage
184
+ * ```html
185
+ * <com-tab-group>
186
+ * <com-tab label="Overview">
187
+ * <p>Overview content.</p>
188
+ * </com-tab>
189
+ * <com-tab label="Settings">
190
+ * <p>Settings content.</p>
191
+ * </com-tab>
192
+ * </com-tab-group>
193
+ * ```
194
+ *
195
+ * @example With variants
196
+ * ```html
197
+ * <com-tab-group variant="pill" color="accent">
198
+ * <com-tab label="Tab 1"><p>Pill style.</p></com-tab>
199
+ * <com-tab label="Tab 2"><p>Content.</p></com-tab>
200
+ * </com-tab-group>
201
+ * ```
202
+ *
203
+ * @example Two-way binding
204
+ * ```html
205
+ * <com-tab-group [(selectedIndex)]="currentTab">
206
+ * <com-tab label="One"><p>First.</p></com-tab>
207
+ * <com-tab label="Two"><p>Second.</p></com-tab>
208
+ * </com-tab-group>
209
+ * ```
210
+ *
211
+ * @example Lazy loaded content
212
+ * ```html
213
+ * <com-tab-group>
214
+ * <com-tab label="Summary"><p>Loads immediately.</p></com-tab>
215
+ * <com-tab label="Analytics">
216
+ * <ng-template comTabContent>
217
+ * <app-analytics-dashboard />
218
+ * </ng-template>
219
+ * </com-tab>
220
+ * </com-tab-group>
221
+ * ```
222
+ */
223
+ declare class TabGroupComponent {
224
+ /** Unique ID for this tab group instance. */
225
+ readonly baseId: string;
226
+ /** Visual treatment of tab buttons. */
227
+ readonly variant: InputSignal<TabVariant>;
228
+ /** Controls tab button padding and font size. */
229
+ readonly size: InputSignal<TabSize>;
230
+ /** Active tab color. */
231
+ readonly color: InputSignal<TabColor>;
232
+ /** Tab alignment within the header. */
233
+ readonly alignment: InputSignal<TabAlignment>;
234
+ /** Two-way bindable selected tab index. */
235
+ readonly selectedIndex: ModelSignal<number>;
236
+ /** Enable/disable panel transition animation. */
237
+ readonly animationEnabled: InputSignalWithTransform<boolean, unknown>;
238
+ /** When true, keeps inactive tab DOM alive (hidden); when false, destroys inactive tab content. */
239
+ readonly preserveContent: InputSignalWithTransform<boolean, unknown>;
240
+ /** Emits when the selected tab changes with index and tab reference. */
241
+ readonly selectedTabChange: OutputEmitterRef<TabChangeEvent>;
242
+ /** Emits the index of the focused (not yet selected) tab for keyboard navigation feedback. */
243
+ readonly focusChange: OutputEmitterRef<number>;
244
+ /** All TabComponent children. */
245
+ readonly tabs: Signal<readonly TabComponent[]>;
246
+ /** The currently active tab. */
247
+ readonly activeTab: Signal<TabComponent | undefined>;
248
+ /** ID of the active tab button. */
249
+ readonly activeTabId: Signal<string>;
250
+ /** ID of the active panel. */
251
+ readonly activePanelId: Signal<string>;
252
+ /** Classes for panel container. */
253
+ readonly panelClasses: Signal<string>;
254
+ constructor();
255
+ getTabId(index: number): string;
256
+ getPanelId(index: number): string;
257
+ /**
258
+ * Determines whether a tab's content should be rendered.
259
+ * For lazy tabs, content is only rendered after first activation.
260
+ */
261
+ shouldRenderTab(tab: TabComponent, index: number): boolean;
262
+ protected onTabSelected(index: number): void;
263
+ protected onTabFocused(index: number): void;
264
+ protected onTabClosed(index: number): void;
265
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
266
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "com-tab-group", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "animationEnabled": { "alias": "animationEnabled"; "required": false; "isSignal": true; }; "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "selectedTabChange": "selectedTabChange"; "focusChange": "focusChange"; }, ["tabs"], never, true, never>;
267
+ }
268
+
269
+ /**
270
+ * Tab link directive for route-driven navigation tabs.
271
+ *
272
+ * Applied to anchor or button elements inside `com-tab-nav-bar`.
273
+ * Automatically detects active state from `routerLinkActive` if present.
274
+ *
275
+ * @example Basic usage with router
276
+ * ```html
277
+ * <nav com-tab-nav-bar>
278
+ * <a comTabLink routerLink="overview" routerLinkActive>Overview</a>
279
+ * <a comTabLink routerLink="settings" routerLinkActive>Settings</a>
280
+ * </nav>
281
+ * ```
282
+ *
283
+ * @example Manual active state control
284
+ * ```html
285
+ * <a comTabLink [active]="isOverviewActive">Overview</a>
286
+ * ```
287
+ *
288
+ * @example Disabled link
289
+ * ```html
290
+ * <a comTabLink [disabled]="true">Coming Soon</a>
291
+ * ```
292
+ */
293
+ declare class TabLinkDirective {
294
+ private readonly routerLinkActive;
295
+ private readonly elementRef;
296
+ /** Manual active state control. */
297
+ readonly active: InputSignalWithTransform<boolean, unknown>;
298
+ /** Prevents interaction when true. */
299
+ readonly disabled: InputSignalWithTransform<boolean, unknown>;
300
+ /** Visual variant (inherited from parent nav bar or set directly). */
301
+ readonly variant: InputSignal<TabVariant>;
302
+ /** Size (inherited from parent nav bar or set directly). */
303
+ readonly size: InputSignal<TabSize>;
304
+ /** Color (inherited from parent nav bar or set directly). */
305
+ readonly color: InputSignal<TabColor>;
306
+ /** Additional CSS classes. */
307
+ readonly userClass: InputSignal<string>;
308
+ /**
309
+ * Reactive signal from RouterLinkActive.isActiveChange.
310
+ * Converts the EventEmitter to a signal for proper reactivity.
311
+ */
312
+ private readonly routerLinkActiveState;
313
+ /**
314
+ * Resolved active state — uses routerLinkActive if available, otherwise input.
315
+ */
316
+ readonly isActive: Signal<boolean>;
317
+ /** Computed host class from CVA + consumer overrides. */
318
+ readonly computedClass: Signal<string>;
319
+ /** Focus this tab link element. */
320
+ focus(): void;
321
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabLinkDirective, never>;
322
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TabLinkDirective, "a[comTabLink], button[comTabLink]", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
323
+ }
324
+
325
+ /**
326
+ * Tab navigation bar component for route-driven tabs.
327
+ *
328
+ * Renders a styled, scrollable row of links that map to routes.
329
+ * Content is handled by `<router-outlet>`.
330
+ *
331
+ * @tokens `--color-primary`, `--color-accent`, `--color-muted`, `--color-muted-foreground`,
332
+ * `--color-border`, `--color-ring`, `--color-disabled`, `--color-disabled-foreground`
333
+ *
334
+ * @example Basic usage
335
+ * ```html
336
+ * <nav com-tab-nav-bar>
337
+ * <a comTabLink routerLink="overview" routerLinkActive>Overview</a>
338
+ * <a comTabLink routerLink="settings" routerLinkActive>Settings</a>
339
+ * </nav>
340
+ * <router-outlet />
341
+ * ```
342
+ *
343
+ * @example With variants
344
+ * ```html
345
+ * <nav com-tab-nav-bar variant="pill" color="accent" size="sm">
346
+ * <a comTabLink routerLink="grid" routerLinkActive>Grid</a>
347
+ * <a comTabLink routerLink="list" routerLinkActive>List</a>
348
+ * </nav>
349
+ * ```
350
+ */
351
+ declare class TabNavBarComponent {
352
+ private readonly destroyRef;
353
+ /** Unique ID for this nav bar instance. */
354
+ readonly baseId: string;
355
+ /** Visual treatment of tab links. */
356
+ readonly variant: InputSignal<TabVariant>;
357
+ /** Controls tab link padding and font size. */
358
+ readonly size: InputSignal<TabSize>;
359
+ /** Active tab color. */
360
+ readonly color: InputSignal<TabColor>;
361
+ /** Tab alignment within the bar. */
362
+ readonly alignment: InputSignal<TabAlignment>;
363
+ /** All TabLinkDirective children. */
364
+ readonly tabLinks: Signal<readonly TabLinkDirective[]>;
365
+ readonly scrollContainer: Signal<ElementRef<HTMLElement> | undefined>;
366
+ private readonly scrollLeftValue;
367
+ private readonly containerWidth;
368
+ private readonly scrollWidth;
369
+ protected readonly indicatorLeft: WritableSignal<number>;
370
+ protected readonly indicatorWidth: WritableSignal<number>;
371
+ private keyManager;
372
+ private resizeObserver;
373
+ /** The currently active link. */
374
+ readonly activeLink: Signal<TabLinkDirective | undefined>;
375
+ readonly hasOverflow: Signal<boolean>;
376
+ readonly showScrollLeft: Signal<boolean>;
377
+ readonly showScrollRight: Signal<boolean>;
378
+ readonly headerClasses: Signal<string>;
379
+ readonly scrollLeftClasses: Signal<string>;
380
+ readonly scrollRightClasses: Signal<string>;
381
+ readonly indicatorColorClass: Signal<string>;
382
+ constructor();
383
+ scrollLeft(): void;
384
+ scrollRight(): void;
385
+ protected onScroll(): void;
386
+ protected onKeydown(event: KeyboardEvent): void;
387
+ private setupResizeObserver;
388
+ private updateScrollState;
389
+ private setupKeyManager;
390
+ private createKeyManagerItems;
391
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabNavBarComponent, never>;
392
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabNavBarComponent, "com-tab-nav-bar, nav[com-tab-nav-bar]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, ["tabLinks"], ["*"], true, never>;
393
+ }
394
+
395
+ export { TabComponent, TabContentDirective, TabGroupComponent, TabLabelDirective, TabLinkDirective, TabNavBarComponent, tabCloseButtonVariants, tabHeaderVariants, tabItemVariants, tabPanelVariants, tabScrollButtonVariants };
396
+ export type { TabAlignment, TabChangeEvent, TabCloseButtonVariants, TabColor, TabHeaderVariants, TabItemVariants, TabPanelVariants, TabScrollButtonVariants, TabSize, TabVariant };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * ngx-com/components
3
+ * Component exports for ngx-com library
4
+ *
5
+ * Note: Components are exposed as secondary entry points:
6
+ * - ngx-com/components/calendar
7
+ *
8
+ * Import from the specific secondary entry points for tree-shaking.
9
+ */
10
+ declare const COMPONENTS_PLACEHOLDER = true;
11
+
12
+ export { COMPONENTS_PLACEHOLDER };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * ngx-com/tokens
3
+ * Injection token exports for ngx-com library
4
+ */
5
+ declare const TOKENS_PLACEHOLDER: boolean;
6
+
7
+ export { TOKENS_PLACEHOLDER };