@weeehaoooz/talos-ui 0.1.0 → 0.1.2
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/README.md +2 -0
- package/fesm2022/{weeehaoooz-talos-ui-button-button-group.mjs → weeehaoooz-talos-ui-button.mjs} +115 -18
- package/fesm2022/weeehaoooz-talos-ui-button.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display.mjs +3110 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz.mjs +2414 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-dropdown.mjs +1039 -0
- package/fesm2022/weeehaoooz-talos-ui-dropdown.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback.mjs +2885 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form.mjs +10799 -0
- package/fesm2022/weeehaoooz-talos-ui-form.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-layout.mjs +1320 -11
- package/fesm2022/weeehaoooz-talos-ui-layout.mjs.map +1 -1
- package/fesm2022/weeehaoooz-talos-ui-nav.mjs +119 -72
- package/fesm2022/weeehaoooz-talos-ui-nav.mjs.map +1 -1
- package/fesm2022/weeehaoooz-talos-ui.mjs +22190 -15213
- package/fesm2022/weeehaoooz-talos-ui.mjs.map +1 -1
- package/package.json +20 -135
- package/styles/_breadcrumb.scss +16 -0
- package/styles/_button-group.scss +156 -7
- package/styles/_buttons.scss +156 -8
- package/styles/_dropdown.scss +438 -0
- package/styles/_form-controls.scss +13 -0
- package/styles/_progress-bar.scss +43 -0
- package/styles/_skeleton.scss +176 -0
- package/styles/_spinner.scss +58 -0
- package/styles/_variables.scss +37 -0
- package/styles/index.scss +6 -1
- package/types/weeehaoooz-talos-ui-button.d.ts +92 -0
- package/types/weeehaoooz-talos-ui-button.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-display.d.ts +1018 -0
- package/types/weeehaoooz-talos-ui-data-display.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-viz.d.ts +839 -0
- package/types/weeehaoooz-talos-ui-data-viz.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-dropdown.d.ts +187 -0
- package/types/weeehaoooz-talos-ui-dropdown.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-feedback.d.ts +1495 -0
- package/types/weeehaoooz-talos-ui-feedback.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form.d.ts +2639 -0
- package/types/weeehaoooz-talos-ui-form.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-layout.d.ts +851 -3
- package/types/weeehaoooz-talos-ui-layout.d.ts.map +1 -1
- package/types/weeehaoooz-talos-ui-nav.d.ts +36 -10
- package/types/weeehaoooz-talos-ui-nav.d.ts.map +1 -1
- package/types/weeehaoooz-talos-ui.d.ts +6949 -4137
- package/types/weeehaoooz-talos-ui.d.ts.map +1 -1
- package/fesm2022/weeehaoooz-talos-ui-button-button-group.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-button-button.mjs +0 -93
- package/fesm2022/weeehaoooz-talos-ui-button-button.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-display-badge.mjs +0 -233
- package/fesm2022/weeehaoooz-talos-ui-data-display-badge.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-display-status-tag.mjs +0 -361
- package/fesm2022/weeehaoooz-talos-ui-data-display-status-tag.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-display-timeline.mjs +0 -312
- package/fesm2022/weeehaoooz-talos-ui-data-display-timeline.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-display-trend-indicator.mjs +0 -235
- package/fesm2022/weeehaoooz-talos-ui-data-display-trend-indicator.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-viz-category-bar.mjs +0 -462
- package/fesm2022/weeehaoooz-talos-ui-data-viz-category-bar.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-viz-heatmap.mjs +0 -805
- package/fesm2022/weeehaoooz-talos-ui-data-viz-heatmap.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-donut.mjs +0 -267
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-donut.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-gauge.mjs +0 -351
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-gauge.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-data-viz-sparkline.mjs +0 -566
- package/fesm2022/weeehaoooz-talos-ui-data-viz-sparkline.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-feedback-alert.mjs +0 -534
- package/fesm2022/weeehaoooz-talos-ui-feedback-alert.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-feedback-dialog.mjs +0 -446
- package/fesm2022/weeehaoooz-talos-ui-feedback-dialog.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-feedback-snackbar.mjs +0 -376
- package/fesm2022/weeehaoooz-talos-ui-feedback-snackbar.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-feedback-tooltip.mjs +0 -147
- package/fesm2022/weeehaoooz-talos-ui-feedback-tooltip.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-affix.mjs +0 -242
- package/fesm2022/weeehaoooz-talos-ui-form-affix.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-autocomplete.mjs +0 -514
- package/fesm2022/weeehaoooz-talos-ui-form-autocomplete.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-checkbox.mjs +0 -548
- package/fesm2022/weeehaoooz-talos-ui-form-checkbox.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-chips.mjs +0 -692
- package/fesm2022/weeehaoooz-talos-ui-form-chips.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-color-picker.mjs +0 -761
- package/fesm2022/weeehaoooz-talos-ui-form-color-picker.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-date-picker.mjs +0 -896
- package/fesm2022/weeehaoooz-talos-ui-form-date-picker.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-date-range-picker.mjs +0 -872
- package/fesm2022/weeehaoooz-talos-ui-form-date-range-picker.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-picker.mjs +0 -119
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-picker.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-range-picker.mjs +0 -135
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-range-picker.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-drop-zone.mjs +0 -666
- package/fesm2022/weeehaoooz-talos-ui-form-drop-zone.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-form-field.mjs +0 -147
- package/fesm2022/weeehaoooz-talos-ui-form-form-field.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-input.mjs +0 -33
- package/fesm2022/weeehaoooz-talos-ui-form-input.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-otp.mjs +0 -455
- package/fesm2022/weeehaoooz-talos-ui-form-otp.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-password-input.mjs +0 -379
- package/fesm2022/weeehaoooz-talos-ui-form-password-input.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-radio.mjs +0 -297
- package/fesm2022/weeehaoooz-talos-ui-form-radio.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-range-input.mjs +0 -661
- package/fesm2022/weeehaoooz-talos-ui-form-range-input.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-rating.mjs +0 -346
- package/fesm2022/weeehaoooz-talos-ui-form-rating.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-select-input.mjs +0 -896
- package/fesm2022/weeehaoooz-talos-ui-form-select-input.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-slide-toggle.mjs +0 -252
- package/fesm2022/weeehaoooz-talos-ui-form-slide-toggle.mjs.map +0 -1
- package/fesm2022/weeehaoooz-talos-ui-form-transfer-list.mjs +0 -916
- package/fesm2022/weeehaoooz-talos-ui-form-transfer-list.mjs.map +0 -1
- package/types/weeehaoooz-talos-ui-button-button-group.d.ts +0 -59
- package/types/weeehaoooz-talos-ui-button-button-group.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-button-button.d.ts +0 -38
- package/types/weeehaoooz-talos-ui-button-button.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-display-badge.d.ts +0 -119
- package/types/weeehaoooz-talos-ui-data-display-badge.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-display-status-tag.d.ts +0 -135
- package/types/weeehaoooz-talos-ui-data-display-status-tag.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-display-timeline.d.ts +0 -144
- package/types/weeehaoooz-talos-ui-data-display-timeline.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-display-trend-indicator.d.ts +0 -83
- package/types/weeehaoooz-talos-ui-data-display-trend-indicator.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-viz-category-bar.d.ts +0 -255
- package/types/weeehaoooz-talos-ui-data-viz-category-bar.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-viz-heatmap.d.ts +0 -204
- package/types/weeehaoooz-talos-ui-data-viz-heatmap.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-viz-mini-donut.d.ts +0 -101
- package/types/weeehaoooz-talos-ui-data-viz-mini-donut.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-viz-mini-gauge.d.ts +0 -138
- package/types/weeehaoooz-talos-ui-data-viz-mini-gauge.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-data-viz-sparkline.d.ts +0 -161
- package/types/weeehaoooz-talos-ui-data-viz-sparkline.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-feedback-alert.d.ts +0 -212
- package/types/weeehaoooz-talos-ui-feedback-alert.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-feedback-dialog.d.ts +0 -259
- package/types/weeehaoooz-talos-ui-feedback-dialog.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-feedback-snackbar.d.ts +0 -147
- package/types/weeehaoooz-talos-ui-feedback-snackbar.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-feedback-tooltip.d.ts +0 -32
- package/types/weeehaoooz-talos-ui-feedback-tooltip.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-affix.d.ts +0 -88
- package/types/weeehaoooz-talos-ui-form-affix.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-autocomplete.d.ts +0 -113
- package/types/weeehaoooz-talos-ui-form-autocomplete.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-checkbox.d.ts +0 -165
- package/types/weeehaoooz-talos-ui-form-checkbox.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-chips.d.ts +0 -152
- package/types/weeehaoooz-talos-ui-form-chips.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-color-picker.d.ts +0 -144
- package/types/weeehaoooz-talos-ui-form-color-picker.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-date-picker.d.ts +0 -138
- package/types/weeehaoooz-talos-ui-form-date-picker.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-date-range-picker.d.ts +0 -148
- package/types/weeehaoooz-talos-ui-form-date-range-picker.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-date-time-picker.d.ts +0 -44
- package/types/weeehaoooz-talos-ui-form-date-time-picker.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-date-time-range-picker.d.ts +0 -48
- package/types/weeehaoooz-talos-ui-form-date-time-range-picker.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-drop-zone.d.ts +0 -227
- package/types/weeehaoooz-talos-ui-form-drop-zone.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-form-field.d.ts +0 -42
- package/types/weeehaoooz-talos-ui-form-form-field.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-input.d.ts +0 -15
- package/types/weeehaoooz-talos-ui-form-input.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-otp.d.ts +0 -111
- package/types/weeehaoooz-talos-ui-form-otp.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-password-input.d.ts +0 -145
- package/types/weeehaoooz-talos-ui-form-password-input.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-radio.d.ts +0 -84
- package/types/weeehaoooz-talos-ui-form-radio.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-range-input.d.ts +0 -181
- package/types/weeehaoooz-talos-ui-form-range-input.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-rating.d.ts +0 -110
- package/types/weeehaoooz-talos-ui-form-rating.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-select-input.d.ts +0 -195
- package/types/weeehaoooz-talos-ui-form-select-input.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-slide-toggle.d.ts +0 -79
- package/types/weeehaoooz-talos-ui-form-slide-toggle.d.ts.map +0 -1
- package/types/weeehaoooz-talos-ui-form-transfer-list.d.ts +0 -192
- package/types/weeehaoooz-talos-ui-form-transfer-list.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Type } from '@angular/core';
|
|
2
|
+
import { Type, TemplateRef, AfterViewInit, ElementRef } from '@angular/core';
|
|
3
3
|
import { LucideChevronDown } from '@lucide/angular';
|
|
4
4
|
|
|
5
5
|
interface RightPanelOptions {
|
|
@@ -281,6 +281,854 @@ declare class TalosExpansionPanelModule {
|
|
|
281
281
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TalosExpansionPanelModule>;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
/**
|
|
285
|
+
* Visual styling variants available for tabs.
|
|
286
|
+
* - `line`: Classic border indicator bar beneath/beside active tab.
|
|
287
|
+
* - `pills`: Rounded pill-shaped active tab highlight.
|
|
288
|
+
* - `card`: Tab-shaped enclosed folder/card style.
|
|
289
|
+
* - `segmented`: Contained background segment control style.
|
|
290
|
+
* - `subtle`: Minimal text-only variant with subtle color shift.
|
|
291
|
+
*/
|
|
292
|
+
type TalosTabsVariant = 'line' | 'pills' | 'card' | 'segmented' | 'subtle';
|
|
293
|
+
/**
|
|
294
|
+
* Sizing scale for the tab headers.
|
|
295
|
+
*/
|
|
296
|
+
type TalosTabsSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
297
|
+
/**
|
|
298
|
+
* Layout orientation for the tab list and panels.
|
|
299
|
+
*/
|
|
300
|
+
type TalosTabsOrientation = 'horizontal' | 'vertical';
|
|
301
|
+
/**
|
|
302
|
+
* Alignment of tab headers within the tab list bar.
|
|
303
|
+
*/
|
|
304
|
+
type TalosTabsAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
305
|
+
/**
|
|
306
|
+
* Data model representing an individual tab item in data-driven mode.
|
|
307
|
+
*/
|
|
308
|
+
interface TalosTabItem {
|
|
309
|
+
/**
|
|
310
|
+
* Unique identifier for the tab item.
|
|
311
|
+
*/
|
|
312
|
+
id: string | number;
|
|
313
|
+
/**
|
|
314
|
+
* Visible label text for the tab header.
|
|
315
|
+
*/
|
|
316
|
+
label: string;
|
|
317
|
+
/**
|
|
318
|
+
* Optional icon component to display preceding the label (e.g., Lucide icon).
|
|
319
|
+
*/
|
|
320
|
+
icon?: Type<unknown>;
|
|
321
|
+
/**
|
|
322
|
+
* Optional badge count or text indicator to render beside the label.
|
|
323
|
+
*/
|
|
324
|
+
badge?: string | number;
|
|
325
|
+
/**
|
|
326
|
+
* Whether this tab is disabled and cannot be selected.
|
|
327
|
+
*/
|
|
328
|
+
disabled?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Whether this tab item can be closed by the user.
|
|
331
|
+
*/
|
|
332
|
+
closable?: boolean;
|
|
333
|
+
/**
|
|
334
|
+
* Text or HTML string content for the tab panel body.
|
|
335
|
+
*/
|
|
336
|
+
content?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Optional custom template reference for the panel body.
|
|
339
|
+
*/
|
|
340
|
+
template?: TemplateRef<unknown>;
|
|
341
|
+
/**
|
|
342
|
+
* Optional custom template reference for the tab header label.
|
|
343
|
+
*/
|
|
344
|
+
labelTemplate?: TemplateRef<unknown>;
|
|
345
|
+
/**
|
|
346
|
+
* Accessible description for screen readers (aria-label).
|
|
347
|
+
*/
|
|
348
|
+
ariaLabel?: string;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Event payload emitted when the active selected tab changes.
|
|
352
|
+
*/
|
|
353
|
+
interface TalosTabChangeEvent {
|
|
354
|
+
/**
|
|
355
|
+
* Zero-based index of the newly selected tab.
|
|
356
|
+
*/
|
|
357
|
+
index: number;
|
|
358
|
+
/**
|
|
359
|
+
* Identifier of the newly selected tab.
|
|
360
|
+
*/
|
|
361
|
+
id: string | number;
|
|
362
|
+
/**
|
|
363
|
+
* The tab instance or data item that was selected.
|
|
364
|
+
*/
|
|
365
|
+
tab: unknown;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Event payload emitted when a tab's close action is triggered.
|
|
369
|
+
*/
|
|
370
|
+
interface TalosTabCloseEvent {
|
|
371
|
+
/**
|
|
372
|
+
* Zero-based index of the closed tab.
|
|
373
|
+
*/
|
|
374
|
+
index: number;
|
|
375
|
+
/**
|
|
376
|
+
* Identifier of the closed tab.
|
|
377
|
+
*/
|
|
378
|
+
id: string | number;
|
|
379
|
+
/**
|
|
380
|
+
* The tab instance or data item that was closed.
|
|
381
|
+
*/
|
|
382
|
+
tab: unknown;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Directive applied to an `<ng-template>` to provide a custom header label template for a tab.
|
|
387
|
+
*
|
|
388
|
+
* Usage:
|
|
389
|
+
* ```html
|
|
390
|
+
* <talos-tab>
|
|
391
|
+
* <ng-template talosTabLabel>
|
|
392
|
+
* <svg lucideBell [size]="14"></svg>
|
|
393
|
+
* <span>Notifications</span>
|
|
394
|
+
* </ng-template>
|
|
395
|
+
* Tab content...
|
|
396
|
+
* </talos-tab>
|
|
397
|
+
* ```
|
|
398
|
+
*/
|
|
399
|
+
declare class TalosTabLabelDirective {
|
|
400
|
+
readonly templateRef: TemplateRef<any>;
|
|
401
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosTabLabelDirective, never>;
|
|
402
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosTabLabelDirective, "[talosTabLabel], ng-template[talosTabLabel]", never, {}, {}, never, never, true, never>;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Directive applied to an `<ng-template>` to delay rendering of the tab panel's content
|
|
406
|
+
* until the tab is first activated / selected (lazy loading).
|
|
407
|
+
*
|
|
408
|
+
* Usage:
|
|
409
|
+
* ```html
|
|
410
|
+
* <talos-tab label="Heavy Data">
|
|
411
|
+
* <ng-template talosTabContent>
|
|
412
|
+
* <heavy-data-grid />
|
|
413
|
+
* </ng-template>
|
|
414
|
+
* </talos-tab>
|
|
415
|
+
* ```
|
|
416
|
+
*/
|
|
417
|
+
declare class TalosTabContentDirective {
|
|
418
|
+
readonly templateRef: TemplateRef<any>;
|
|
419
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosTabContentDirective, never>;
|
|
420
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosTabContentDirective, "[talosTabContent], ng-template[talosTabContent]", never, {}, {}, never, never, true, never>;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* An individual tab panel element to be placed inside `<talos-tabs>`.
|
|
425
|
+
*/
|
|
426
|
+
declare class TalosTabComponent {
|
|
427
|
+
private readonly defaultUniqueId;
|
|
428
|
+
/**
|
|
429
|
+
* Header label text for this tab.
|
|
430
|
+
*/
|
|
431
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
432
|
+
/**
|
|
433
|
+
* Unique identifier for this tab. If omitted, an auto-generated id is assigned.
|
|
434
|
+
*/
|
|
435
|
+
readonly id: _angular_core.InputSignal<string | number>;
|
|
436
|
+
/**
|
|
437
|
+
* Optional icon component to display before the label text.
|
|
438
|
+
*/
|
|
439
|
+
readonly icon: _angular_core.InputSignal<Type<unknown> | null>;
|
|
440
|
+
/**
|
|
441
|
+
* Optional badge count or status text rendered alongside the tab label.
|
|
442
|
+
*/
|
|
443
|
+
readonly badge: _angular_core.InputSignal<string | number | null>;
|
|
444
|
+
/**
|
|
445
|
+
* Whether this tab is disabled and cannot be activated.
|
|
446
|
+
*/
|
|
447
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
448
|
+
/**
|
|
449
|
+
* Whether this tab displays an inline close action button.
|
|
450
|
+
*/
|
|
451
|
+
readonly closable: _angular_core.InputSignal<boolean>;
|
|
452
|
+
/**
|
|
453
|
+
* Accessible description for screen readers (aria-label).
|
|
454
|
+
*/
|
|
455
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
456
|
+
/**
|
|
457
|
+
* Custom label template projected with `*talosTabLabel`.
|
|
458
|
+
*/
|
|
459
|
+
readonly customLabel: _angular_core.Signal<TalosTabLabelDirective | undefined>;
|
|
460
|
+
/**
|
|
461
|
+
* Lazy-loaded panel content projected with `*talosTabContent`.
|
|
462
|
+
*/
|
|
463
|
+
readonly lazyContent: _angular_core.Signal<TalosTabContentDirective | undefined>;
|
|
464
|
+
/**
|
|
465
|
+
* Internal selection state controlled by parent `<talos-tabs>`.
|
|
466
|
+
*/
|
|
467
|
+
readonly active: _angular_core.WritableSignal<boolean>;
|
|
468
|
+
/**
|
|
469
|
+
* Whether this tab has been active at least once (used for lazy-loading retention).
|
|
470
|
+
*/
|
|
471
|
+
readonly hasBeenActive: _angular_core.WritableSignal<boolean>;
|
|
472
|
+
/**
|
|
473
|
+
* The effective unique key for this tab.
|
|
474
|
+
*/
|
|
475
|
+
readonly key: _angular_core.Signal<string | number>;
|
|
476
|
+
/**
|
|
477
|
+
* The HTML element ID of the tab panel.
|
|
478
|
+
*/
|
|
479
|
+
readonly panelId: _angular_core.Signal<string>;
|
|
480
|
+
/**
|
|
481
|
+
* The HTML element ID of the tab header button.
|
|
482
|
+
*/
|
|
483
|
+
readonly headerId: _angular_core.Signal<string>;
|
|
484
|
+
/**
|
|
485
|
+
* Sets active state and tracks lazy load retention.
|
|
486
|
+
*/
|
|
487
|
+
setActive(isActive: boolean): void;
|
|
488
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosTabComponent, never>;
|
|
489
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TalosTabComponent, "talos-tab, [talosTab]", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, ["customLabel", "lazyContent"], ["*"], true, never>;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Normalized internal representation of a tab header.
|
|
494
|
+
*/
|
|
495
|
+
interface NormalizedTabHeader {
|
|
496
|
+
id: string | number;
|
|
497
|
+
label: string;
|
|
498
|
+
headerId: string;
|
|
499
|
+
panelId: string;
|
|
500
|
+
icon?: Type<unknown> | null;
|
|
501
|
+
badge?: string | number | null;
|
|
502
|
+
disabled: boolean;
|
|
503
|
+
closable: boolean;
|
|
504
|
+
customLabel?: TalosTabLabelDirective | null;
|
|
505
|
+
labelTemplate?: TemplateRef<unknown> | null;
|
|
506
|
+
source: TalosTabComponent | TalosTabItem;
|
|
507
|
+
}
|
|
508
|
+
declare class TalosTabsComponent implements AfterViewInit {
|
|
509
|
+
/**
|
|
510
|
+
* The index of the currently active tab (two-way bindable via `[(selectedIndex)]`).
|
|
511
|
+
*/
|
|
512
|
+
readonly selectedIndex: _angular_core.ModelSignal<number>;
|
|
513
|
+
/**
|
|
514
|
+
* The unique ID of the currently active tab (two-way bindable via `[(activeId)]`).
|
|
515
|
+
*/
|
|
516
|
+
readonly activeId: _angular_core.ModelSignal<string | number | null>;
|
|
517
|
+
/**
|
|
518
|
+
* Visual styling variant of the tabs.
|
|
519
|
+
* @default 'line'
|
|
520
|
+
*/
|
|
521
|
+
readonly variant: _angular_core.InputSignal<TalosTabsVariant>;
|
|
522
|
+
/**
|
|
523
|
+
* Sizing scale of the tabs.
|
|
524
|
+
* @default 'md'
|
|
525
|
+
*/
|
|
526
|
+
readonly size: _angular_core.InputSignal<TalosTabsSize>;
|
|
527
|
+
/**
|
|
528
|
+
* Layout orientation of the tab headers and panels.
|
|
529
|
+
* @default 'horizontal'
|
|
530
|
+
*/
|
|
531
|
+
readonly orientation: _angular_core.InputSignal<TalosTabsOrientation>;
|
|
532
|
+
/**
|
|
533
|
+
* Horizontal alignment of tab headers within the container.
|
|
534
|
+
* @default 'start'
|
|
535
|
+
*/
|
|
536
|
+
readonly align: _angular_core.InputSignal<TalosTabsAlign>;
|
|
537
|
+
/**
|
|
538
|
+
* Optional data-driven items array. When provided, renders data-driven tabs.
|
|
539
|
+
*/
|
|
540
|
+
readonly items: _angular_core.InputSignal<TalosTabItem[] | null>;
|
|
541
|
+
/**
|
|
542
|
+
* Whether tabs show an inline close button by default.
|
|
543
|
+
* @default false
|
|
544
|
+
*/
|
|
545
|
+
readonly closable: _angular_core.InputSignal<boolean>;
|
|
546
|
+
/**
|
|
547
|
+
* Whether to display an add tab button in the header bar.
|
|
548
|
+
* @default false
|
|
549
|
+
*/
|
|
550
|
+
readonly addable: _angular_core.InputSignal<boolean>;
|
|
551
|
+
/**
|
|
552
|
+
* Whether to enable animated indicator transitions.
|
|
553
|
+
* @default true
|
|
554
|
+
*/
|
|
555
|
+
readonly animated: _angular_core.InputSignal<boolean>;
|
|
556
|
+
/**
|
|
557
|
+
* Whether tabs stretch equally to fill the full width of the container.
|
|
558
|
+
* @default false
|
|
559
|
+
*/
|
|
560
|
+
readonly stretched: _angular_core.InputSignal<boolean>;
|
|
561
|
+
/**
|
|
562
|
+
* Accessible description for the tablist landmark.
|
|
563
|
+
* @default 'Tabs navigation'
|
|
564
|
+
*/
|
|
565
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
566
|
+
/**
|
|
567
|
+
* Emitted when the selected tab changes.
|
|
568
|
+
*/
|
|
569
|
+
readonly tabChange: _angular_core.OutputEmitterRef<TalosTabChangeEvent>;
|
|
570
|
+
/**
|
|
571
|
+
* Emitted when a tab's close button is clicked.
|
|
572
|
+
*/
|
|
573
|
+
readonly tabClose: _angular_core.OutputEmitterRef<TalosTabCloseEvent>;
|
|
574
|
+
/**
|
|
575
|
+
* Emitted when the add tab button is clicked.
|
|
576
|
+
*/
|
|
577
|
+
readonly tabAdd: _angular_core.OutputEmitterRef<void>;
|
|
578
|
+
/**
|
|
579
|
+
* Projected declarative child `<talos-tab>` instances.
|
|
580
|
+
*/
|
|
581
|
+
readonly projectedTabs: _angular_core.Signal<readonly TalosTabComponent[]>;
|
|
582
|
+
/**
|
|
583
|
+
* DOM button elements for all rendered tab headers.
|
|
584
|
+
*/
|
|
585
|
+
readonly tabButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
586
|
+
/**
|
|
587
|
+
* Container element for the tab navigation bar.
|
|
588
|
+
*/
|
|
589
|
+
readonly navContainer: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
590
|
+
protected readonly indicatorLeft: _angular_core.WritableSignal<number>;
|
|
591
|
+
protected readonly indicatorTop: _angular_core.WritableSignal<number>;
|
|
592
|
+
protected readonly indicatorWidth: _angular_core.WritableSignal<number>;
|
|
593
|
+
protected readonly indicatorHeight: _angular_core.WritableSignal<number>;
|
|
594
|
+
protected readonly hasIndicator: _angular_core.WritableSignal<boolean>;
|
|
595
|
+
/**
|
|
596
|
+
* Normalized array of tab headers combining declarative children and data items.
|
|
597
|
+
*/
|
|
598
|
+
readonly tabHeaders: _angular_core.Signal<NormalizedTabHeader[]>;
|
|
599
|
+
constructor();
|
|
600
|
+
ngAfterViewInit(): void;
|
|
601
|
+
/**
|
|
602
|
+
* Activates the tab at the given index.
|
|
603
|
+
*/
|
|
604
|
+
selectTab(index: number, header: NormalizedTabHeader): void;
|
|
605
|
+
/**
|
|
606
|
+
* Checks whether an individual tab is closable.
|
|
607
|
+
*/
|
|
608
|
+
isClosable(header: NormalizedTabHeader): boolean;
|
|
609
|
+
/**
|
|
610
|
+
* Closes the tab at the specified index.
|
|
611
|
+
*/
|
|
612
|
+
closeTab(event: Event, index: number, header: NormalizedTabHeader): void;
|
|
613
|
+
/**
|
|
614
|
+
* Triggers the tab add event.
|
|
615
|
+
*/
|
|
616
|
+
addTab(): void;
|
|
617
|
+
/**
|
|
618
|
+
* Keyboard accessibility handler following WAI-ARIA Tab guidelines.
|
|
619
|
+
*/
|
|
620
|
+
onKeydown(event: KeyboardEvent, currentIndex: number, currentHeader: NormalizedTabHeader): void;
|
|
621
|
+
private findNextAvailableTab;
|
|
622
|
+
private focusTabButton;
|
|
623
|
+
/**
|
|
624
|
+
* Recalculates indicator offset and size for smooth animations.
|
|
625
|
+
*/
|
|
626
|
+
updateIndicator(): void;
|
|
627
|
+
/**
|
|
628
|
+
* Unique panel id generator for data items.
|
|
629
|
+
*/
|
|
630
|
+
getDataPanelId(item: TalosTabItem): string;
|
|
631
|
+
/**
|
|
632
|
+
* Unique header id generator for data items.
|
|
633
|
+
*/
|
|
634
|
+
getDataHeaderId(item: TalosTabItem): string;
|
|
635
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosTabsComponent, never>;
|
|
636
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TalosTabsComponent, "talos-tabs, [talosTabs]", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "activeId": { "alias": "activeId"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "stretched": { "alias": "stretched"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "activeId": "activeIdChange"; "tabChange": "tabChange"; "tabClose": "tabClose"; "tabAdd": "tabAdd"; }, ["projectedTabs"], ["*"], true, never>;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
declare class TalosTabsModule {
|
|
640
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosTabsModule, never>;
|
|
641
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TalosTabsModule, never, [typeof TalosTabsComponent, typeof TalosTabComponent, typeof TalosTabLabelDirective, typeof TalosTabContentDirective], [typeof TalosTabsComponent, typeof TalosTabComponent, typeof TalosTabLabelDirective, typeof TalosTabContentDirective]>;
|
|
642
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TalosTabsModule>;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Visual styling variants available for the stepper.
|
|
647
|
+
* - `default` / `circles`: Standard numbered circular badges with connecting lines.
|
|
648
|
+
* - `progress`: Sleek progress bar indicator at the top with step counter.
|
|
649
|
+
* - `cards`: Interactive summary card headers for multi-stage checkout and config flows.
|
|
650
|
+
*/
|
|
651
|
+
type TalosStepperVariant = 'default' | 'circles' | 'progress' | 'cards';
|
|
652
|
+
/**
|
|
653
|
+
* Layout orientation for the stepper.
|
|
654
|
+
*/
|
|
655
|
+
type TalosStepperOrientation = 'horizontal' | 'vertical';
|
|
656
|
+
/**
|
|
657
|
+
* Sizing scale for the stepper step headers and indicators.
|
|
658
|
+
*/
|
|
659
|
+
type TalosStepperSize = 'sm' | 'md' | 'lg';
|
|
660
|
+
/**
|
|
661
|
+
* Placement of step labels relative to the step indicator in horizontal mode.
|
|
662
|
+
* - `end`: Label appears to the right of the indicator badge.
|
|
663
|
+
* - `bottom`: Label appears centered beneath the indicator badge.
|
|
664
|
+
*/
|
|
665
|
+
type TalosStepperLabelPosition = 'end' | 'bottom';
|
|
666
|
+
/**
|
|
667
|
+
* Semantic state of an individual step.
|
|
668
|
+
*/
|
|
669
|
+
type TalosStepState = 'pending' | 'active' | 'completed' | 'error' | 'warning';
|
|
670
|
+
/**
|
|
671
|
+
* Data model representing an individual step in data-driven mode.
|
|
672
|
+
*/
|
|
673
|
+
interface TalosStepItem {
|
|
674
|
+
/**
|
|
675
|
+
* Unique identifier for the step. If omitted, an auto-generated id is assigned.
|
|
676
|
+
*/
|
|
677
|
+
id?: string | number;
|
|
678
|
+
/**
|
|
679
|
+
* Primary title label for the step header.
|
|
680
|
+
*/
|
|
681
|
+
label: string;
|
|
682
|
+
/**
|
|
683
|
+
* Optional supporting subtitle or descriptive text.
|
|
684
|
+
*/
|
|
685
|
+
description?: string;
|
|
686
|
+
/**
|
|
687
|
+
* Optional icon component to display within the step indicator (e.g. Lucide icon).
|
|
688
|
+
*/
|
|
689
|
+
icon?: Type<unknown>;
|
|
690
|
+
/**
|
|
691
|
+
* Explicit semantic state override. If omitted, state is computed based on active index.
|
|
692
|
+
*/
|
|
693
|
+
state?: TalosStepState;
|
|
694
|
+
/**
|
|
695
|
+
* Whether this step is disabled and cannot be selected.
|
|
696
|
+
*/
|
|
697
|
+
disabled?: boolean;
|
|
698
|
+
/**
|
|
699
|
+
* Whether this step is optional (displays an "(Optional)" badge).
|
|
700
|
+
*/
|
|
701
|
+
optional?: boolean;
|
|
702
|
+
/**
|
|
703
|
+
* Whether this step has been completed.
|
|
704
|
+
*/
|
|
705
|
+
completed?: boolean;
|
|
706
|
+
/**
|
|
707
|
+
* Whether this step is in an error state.
|
|
708
|
+
*/
|
|
709
|
+
hasError?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* Optional contextual error message to display when step validation fails.
|
|
712
|
+
*/
|
|
713
|
+
errorMessage?: string;
|
|
714
|
+
/**
|
|
715
|
+
* Static text or HTML string content for the step panel body.
|
|
716
|
+
*/
|
|
717
|
+
content?: string;
|
|
718
|
+
/**
|
|
719
|
+
* Custom template reference for the step panel body.
|
|
720
|
+
*/
|
|
721
|
+
template?: TemplateRef<unknown>;
|
|
722
|
+
/**
|
|
723
|
+
* Optional custom template reference for the step header label.
|
|
724
|
+
*/
|
|
725
|
+
labelTemplate?: TemplateRef<unknown>;
|
|
726
|
+
/**
|
|
727
|
+
* Optional custom template reference for the step indicator icon.
|
|
728
|
+
*/
|
|
729
|
+
iconTemplate?: TemplateRef<unknown>;
|
|
730
|
+
/**
|
|
731
|
+
* Accessible description for screen readers (aria-label).
|
|
732
|
+
*/
|
|
733
|
+
ariaLabel?: string;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Event payload emitted when the active selected step changes.
|
|
737
|
+
*/
|
|
738
|
+
interface TalosStepChangeEvent {
|
|
739
|
+
/**
|
|
740
|
+
* Zero-based index of the newly selected step.
|
|
741
|
+
*/
|
|
742
|
+
index: number;
|
|
743
|
+
/**
|
|
744
|
+
* Zero-based index of the previously selected step.
|
|
745
|
+
*/
|
|
746
|
+
previousIndex: number;
|
|
747
|
+
/**
|
|
748
|
+
* Identifier of the newly selected step.
|
|
749
|
+
*/
|
|
750
|
+
id: string | number;
|
|
751
|
+
/**
|
|
752
|
+
* The step component or data item instance that was selected.
|
|
753
|
+
*/
|
|
754
|
+
step: unknown;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Event payload emitted when the user reaches and submits or finishes the final step.
|
|
758
|
+
*/
|
|
759
|
+
interface TalosStepperFinishEvent {
|
|
760
|
+
/**
|
|
761
|
+
* Total number of steps in the stepper.
|
|
762
|
+
*/
|
|
763
|
+
stepsCount: number;
|
|
764
|
+
/**
|
|
765
|
+
* Whether all steps are completed.
|
|
766
|
+
*/
|
|
767
|
+
completed: boolean;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* An individual step container component to be declared inside `<talos-stepper>`.
|
|
772
|
+
*/
|
|
773
|
+
declare class TalosStepComponent {
|
|
774
|
+
private readonly defaultUniqueId;
|
|
775
|
+
/**
|
|
776
|
+
* Title text for the step header.
|
|
777
|
+
*/
|
|
778
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
779
|
+
/**
|
|
780
|
+
* Optional secondary description or helper text.
|
|
781
|
+
*/
|
|
782
|
+
readonly description: _angular_core.InputSignal<string>;
|
|
783
|
+
/**
|
|
784
|
+
* Unique identifier for this step. If omitted, an auto-generated ID is assigned.
|
|
785
|
+
*/
|
|
786
|
+
readonly id: _angular_core.InputSignal<string | number>;
|
|
787
|
+
/**
|
|
788
|
+
* Optional icon component to display within the step indicator.
|
|
789
|
+
*/
|
|
790
|
+
readonly icon: _angular_core.InputSignal<Type<unknown> | null>;
|
|
791
|
+
/**
|
|
792
|
+
* Whether this step is optional (displays an "(Optional)" subtitle indicator).
|
|
793
|
+
*/
|
|
794
|
+
readonly optional: _angular_core.InputSignal<boolean>;
|
|
795
|
+
/**
|
|
796
|
+
* Whether this step is disabled and cannot be navigated to.
|
|
797
|
+
*/
|
|
798
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
799
|
+
/**
|
|
800
|
+
* Explicit completed flag. If undefined, completion is inferred automatically in sequential progression.
|
|
801
|
+
*/
|
|
802
|
+
readonly completed: _angular_core.InputSignal<boolean | undefined>;
|
|
803
|
+
/**
|
|
804
|
+
* Whether this step is in an error state.
|
|
805
|
+
*/
|
|
806
|
+
readonly hasError: _angular_core.InputSignal<boolean>;
|
|
807
|
+
/**
|
|
808
|
+
* Contextual error message to display when step validation fails.
|
|
809
|
+
*/
|
|
810
|
+
readonly errorMessage: _angular_core.InputSignal<string>;
|
|
811
|
+
/**
|
|
812
|
+
* Explicit semantic state override ('pending' | 'active' | 'completed' | 'error' | 'warning').
|
|
813
|
+
*/
|
|
814
|
+
readonly state: _angular_core.InputSignal<TalosStepState | undefined>;
|
|
815
|
+
/**
|
|
816
|
+
* Accessible description for screen readers (aria-label).
|
|
817
|
+
*/
|
|
818
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
819
|
+
/**
|
|
820
|
+
* Custom label template projected with `*talosStepLabel`.
|
|
821
|
+
*/
|
|
822
|
+
readonly customLabel: _angular_core.Signal<TalosStepLabelDirective | undefined>;
|
|
823
|
+
/**
|
|
824
|
+
* Custom icon template projected with `*talosStepIcon`.
|
|
825
|
+
*/
|
|
826
|
+
readonly customIcon: _angular_core.Signal<TalosStepIconDirective | undefined>;
|
|
827
|
+
/**
|
|
828
|
+
* Lazy-loaded panel content projected with `*talosStepContent`.
|
|
829
|
+
*/
|
|
830
|
+
readonly lazyContent: _angular_core.Signal<TalosStepContentDirective | undefined>;
|
|
831
|
+
/**
|
|
832
|
+
* Root template ref for declarative step projection.
|
|
833
|
+
*/
|
|
834
|
+
readonly stepContentTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
835
|
+
/**
|
|
836
|
+
* Internal selection state controlled by the parent `<talos-stepper>`.
|
|
837
|
+
*/
|
|
838
|
+
readonly active: _angular_core.WritableSignal<boolean>;
|
|
839
|
+
/**
|
|
840
|
+
* Whether this step has been active at least once (used for lazy-loading retention).
|
|
841
|
+
*/
|
|
842
|
+
readonly hasBeenActive: _angular_core.WritableSignal<boolean>;
|
|
843
|
+
/**
|
|
844
|
+
* The effective unique key for this step.
|
|
845
|
+
*/
|
|
846
|
+
readonly key: _angular_core.Signal<string | number>;
|
|
847
|
+
/**
|
|
848
|
+
* The HTML element ID of the step panel.
|
|
849
|
+
*/
|
|
850
|
+
readonly panelId: _angular_core.Signal<string>;
|
|
851
|
+
/**
|
|
852
|
+
* The HTML element ID of the step header button.
|
|
853
|
+
*/
|
|
854
|
+
readonly headerId: _angular_core.Signal<string>;
|
|
855
|
+
/**
|
|
856
|
+
* Updates active state and marks the step as having been visited.
|
|
857
|
+
*/
|
|
858
|
+
setActive(isActive: boolean): void;
|
|
859
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepComponent, never>;
|
|
860
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TalosStepComponent, "talos-step, [talosStep]", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, ["customLabel", "customIcon", "lazyContent"], ["*"], true, never>;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Internal normalized representation of a step header item.
|
|
865
|
+
*/
|
|
866
|
+
interface NormalizedStepHeader {
|
|
867
|
+
index: number;
|
|
868
|
+
id: string | number;
|
|
869
|
+
label: string;
|
|
870
|
+
description?: string;
|
|
871
|
+
headerId: string;
|
|
872
|
+
panelId: string;
|
|
873
|
+
icon?: Type<unknown> | null;
|
|
874
|
+
optional: boolean;
|
|
875
|
+
disabled: boolean;
|
|
876
|
+
completed: boolean;
|
|
877
|
+
hasError: boolean;
|
|
878
|
+
errorMessage?: string;
|
|
879
|
+
state: TalosStepState;
|
|
880
|
+
ariaLabel?: string;
|
|
881
|
+
customLabel?: TalosStepLabelDirective | null;
|
|
882
|
+
labelTemplate?: TemplateRef<unknown> | null;
|
|
883
|
+
customIcon?: TalosStepIconDirective | null;
|
|
884
|
+
iconTemplate?: TemplateRef<unknown> | null;
|
|
885
|
+
contentTemplate?: TemplateRef<unknown> | null;
|
|
886
|
+
contentString?: string;
|
|
887
|
+
source: TalosStepComponent | TalosStepItem;
|
|
888
|
+
}
|
|
889
|
+
declare class TalosStepperComponent {
|
|
890
|
+
/**
|
|
891
|
+
* The index of the currently active step (two-way bindable via `[(selectedIndex)]`).
|
|
892
|
+
*/
|
|
893
|
+
readonly selectedIndex: _angular_core.ModelSignal<number>;
|
|
894
|
+
/**
|
|
895
|
+
* The unique ID of the currently active step (two-way bindable via `[(activeId)]`).
|
|
896
|
+
*/
|
|
897
|
+
readonly activeId: _angular_core.ModelSignal<string | number | null>;
|
|
898
|
+
/**
|
|
899
|
+
* Layout orientation of the stepper.
|
|
900
|
+
* @default 'horizontal'
|
|
901
|
+
*/
|
|
902
|
+
readonly orientation: _angular_core.InputSignal<TalosStepperOrientation>;
|
|
903
|
+
/**
|
|
904
|
+
* Visual variant presentation style.
|
|
905
|
+
* @default 'default'
|
|
906
|
+
*/
|
|
907
|
+
readonly variant: _angular_core.InputSignal<TalosStepperVariant>;
|
|
908
|
+
/**
|
|
909
|
+
* Sizing scale of the step indicator buttons and labels.
|
|
910
|
+
* @default 'md'
|
|
911
|
+
*/
|
|
912
|
+
readonly size: _angular_core.InputSignal<TalosStepperSize>;
|
|
913
|
+
/**
|
|
914
|
+
* Label position relative to step indicator in horizontal mode.
|
|
915
|
+
* @default 'end'
|
|
916
|
+
*/
|
|
917
|
+
readonly labelPosition: _angular_core.InputSignal<TalosStepperLabelPosition>;
|
|
918
|
+
/**
|
|
919
|
+
* Whether strict linear step progression is enforced (disallows skipping uncompleted steps).
|
|
920
|
+
* @default false
|
|
921
|
+
*/
|
|
922
|
+
readonly linear: _angular_core.InputSignal<boolean>;
|
|
923
|
+
/**
|
|
924
|
+
* Whether steps can be clicked to navigate directly.
|
|
925
|
+
* @default true
|
|
926
|
+
*/
|
|
927
|
+
readonly clickable: _angular_core.InputSignal<boolean>;
|
|
928
|
+
/**
|
|
929
|
+
* Whether to animate panel transitions.
|
|
930
|
+
* @default true
|
|
931
|
+
*/
|
|
932
|
+
readonly animated: _angular_core.InputSignal<boolean>;
|
|
933
|
+
/**
|
|
934
|
+
* Data items for data-driven stepper configuration.
|
|
935
|
+
*/
|
|
936
|
+
readonly steps: _angular_core.InputSignal<TalosStepItem[]>;
|
|
937
|
+
/**
|
|
938
|
+
* Emitted whenever the active step changes.
|
|
939
|
+
*/
|
|
940
|
+
readonly stepChange: _angular_core.OutputEmitterRef<TalosStepChangeEvent>;
|
|
941
|
+
/**
|
|
942
|
+
* Emitted when reaching and finishing the final step.
|
|
943
|
+
*/
|
|
944
|
+
readonly stepperFinished: _angular_core.OutputEmitterRef<TalosStepperFinishEvent>;
|
|
945
|
+
/**
|
|
946
|
+
* Projected child steps in declarative mode.
|
|
947
|
+
*/
|
|
948
|
+
readonly childSteps: _angular_core.Signal<readonly TalosStepComponent[]>;
|
|
949
|
+
/**
|
|
950
|
+
* Header button elements for keyboard focus navigation.
|
|
951
|
+
*/
|
|
952
|
+
readonly stepButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
953
|
+
/**
|
|
954
|
+
* Unified normalized step items combining both declarative `<talos-step>` components and `steps()` input data.
|
|
955
|
+
*/
|
|
956
|
+
readonly normalizedSteps: _angular_core.Signal<NormalizedStepHeader[]>;
|
|
957
|
+
/**
|
|
958
|
+
* Total number of steps available.
|
|
959
|
+
*/
|
|
960
|
+
readonly totalSteps: _angular_core.Signal<number>;
|
|
961
|
+
/**
|
|
962
|
+
* Whether the stepper is currently at the first step.
|
|
963
|
+
*/
|
|
964
|
+
readonly isFirst: _angular_core.Signal<boolean>;
|
|
965
|
+
/**
|
|
966
|
+
* Whether the stepper is currently at the last step.
|
|
967
|
+
*/
|
|
968
|
+
readonly isLast: _angular_core.Signal<boolean>;
|
|
969
|
+
/**
|
|
970
|
+
* Progress percentage through the steps (0 to 100).
|
|
971
|
+
*/
|
|
972
|
+
readonly progressPercent: _angular_core.Signal<number>;
|
|
973
|
+
/**
|
|
974
|
+
* Currently active normalized step item.
|
|
975
|
+
*/
|
|
976
|
+
readonly currentStep: _angular_core.Signal<NormalizedStepHeader | null>;
|
|
977
|
+
/**
|
|
978
|
+
* Whether declarative children mode is active.
|
|
979
|
+
*/
|
|
980
|
+
readonly isDeclarative: _angular_core.Signal<boolean>;
|
|
981
|
+
constructor();
|
|
982
|
+
/**
|
|
983
|
+
* Selects a specific step index if allowed by validation and disabled rules.
|
|
984
|
+
*/
|
|
985
|
+
selectStep(index: number, emitEvent?: boolean): boolean;
|
|
986
|
+
/**
|
|
987
|
+
* Advances to the next step. If currently at the last step, emits `stepperFinished`.
|
|
988
|
+
*/
|
|
989
|
+
next(): boolean;
|
|
990
|
+
/**
|
|
991
|
+
* Returns to the preceding step.
|
|
992
|
+
*/
|
|
993
|
+
previous(): boolean;
|
|
994
|
+
/**
|
|
995
|
+
* Jumps to a designated step index.
|
|
996
|
+
*/
|
|
997
|
+
goTo(index: number): boolean;
|
|
998
|
+
/**
|
|
999
|
+
* Resets the stepper back to step index 0.
|
|
1000
|
+
*/
|
|
1001
|
+
reset(): boolean;
|
|
1002
|
+
/**
|
|
1003
|
+
* Click handler for step header indicator buttons.
|
|
1004
|
+
*/
|
|
1005
|
+
onStepHeaderClick(index: number): void;
|
|
1006
|
+
/**
|
|
1007
|
+
* Keyboard navigation across step header buttons.
|
|
1008
|
+
*/
|
|
1009
|
+
onKeydown(event: KeyboardEvent, index: number): void;
|
|
1010
|
+
private findNextFocusableIndex;
|
|
1011
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepperComponent, never>;
|
|
1012
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TalosStepperComponent, "talos-stepper, [talosStepper]", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "activeId": { "alias": "activeId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "activeId": "activeIdChange"; "stepChange": "stepChange"; "stepperFinished": "stepperFinished"; }, ["childSteps"], ["*"], true, never>;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Directive applied to an `<ng-template>` to provide a custom header label template for a step.
|
|
1017
|
+
*
|
|
1018
|
+
* Usage:
|
|
1019
|
+
* ```html
|
|
1020
|
+
* <talos-step>
|
|
1021
|
+
* <ng-template talosStepLabel>
|
|
1022
|
+
* <svg lucideSettings [size]="14"></svg>
|
|
1023
|
+
* <span>Custom Step Label</span>
|
|
1024
|
+
* </ng-template>
|
|
1025
|
+
* Step content...
|
|
1026
|
+
* </talos-step>
|
|
1027
|
+
* ```
|
|
1028
|
+
*/
|
|
1029
|
+
declare class TalosStepLabelDirective {
|
|
1030
|
+
readonly templateRef: TemplateRef<any>;
|
|
1031
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepLabelDirective, never>;
|
|
1032
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosStepLabelDirective, "[talosStepLabel], ng-template[talosStepLabel]", never, {}, {}, never, never, true, never>;
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Directive applied to an `<ng-template>` to delay rendering of the step panel content
|
|
1036
|
+
* until the step is first navigated to (lazy loading).
|
|
1037
|
+
*
|
|
1038
|
+
* Usage:
|
|
1039
|
+
* ```html
|
|
1040
|
+
* <talos-step label="Billing Information">
|
|
1041
|
+
* <ng-template talosStepContent>
|
|
1042
|
+
* <heavy-billing-form />
|
|
1043
|
+
* </ng-template>
|
|
1044
|
+
* </talos-step>
|
|
1045
|
+
* ```
|
|
1046
|
+
*/
|
|
1047
|
+
declare class TalosStepContentDirective {
|
|
1048
|
+
readonly templateRef: TemplateRef<any>;
|
|
1049
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepContentDirective, never>;
|
|
1050
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosStepContentDirective, "[talosStepContent], ng-template[talosStepContent]", never, {}, {}, never, never, true, never>;
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* Directive applied to an `<ng-template>` to provide a custom icon template
|
|
1054
|
+
* rendered inside the step circle or indicator badge.
|
|
1055
|
+
*
|
|
1056
|
+
* Usage:
|
|
1057
|
+
* ```html
|
|
1058
|
+
* <talos-step label="Payment">
|
|
1059
|
+
* <ng-template talosStepIcon let-state="state" let-index="index">
|
|
1060
|
+
* <svg lucideCreditCard [size]="16"></svg>
|
|
1061
|
+
* </ng-template>
|
|
1062
|
+
* Step content...
|
|
1063
|
+
* </talos-step>
|
|
1064
|
+
* ```
|
|
1065
|
+
*/
|
|
1066
|
+
declare class TalosStepIconDirective {
|
|
1067
|
+
readonly templateRef: TemplateRef<any>;
|
|
1068
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepIconDirective, never>;
|
|
1069
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosStepIconDirective, "[talosStepIcon], ng-template[talosStepIcon]", never, {}, {}, never, never, true, never>;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Button directive that advances the parent `<talos-stepper>` to the next step when clicked.
|
|
1073
|
+
*
|
|
1074
|
+
* Usage:
|
|
1075
|
+
* ```html
|
|
1076
|
+
* <button talosButton talosStepperNext>Continue</button>
|
|
1077
|
+
* ```
|
|
1078
|
+
*/
|
|
1079
|
+
declare class TalosStepperNextDirective {
|
|
1080
|
+
private readonly stepper;
|
|
1081
|
+
/**
|
|
1082
|
+
* Explicit stepper reference if the button resides outside the `<talos-stepper>` tree.
|
|
1083
|
+
*/
|
|
1084
|
+
readonly talosStepperNext: _angular_core.InputSignalWithTransform<TalosStepperComponent | null, string | TalosStepperComponent | null | undefined>;
|
|
1085
|
+
protected onClick(): void;
|
|
1086
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepperNextDirective, never>;
|
|
1087
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosStepperNextDirective, "[talosStepperNext], button[talosStepperNext]", never, { "talosStepperNext": { "alias": "talosStepperNext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Button directive that returns the parent `<talos-stepper>` to the previous step when clicked.
|
|
1091
|
+
*
|
|
1092
|
+
* Usage:
|
|
1093
|
+
* ```html
|
|
1094
|
+
* <button talosButton variant="secondary" talosStepperPrevious>Back</button>
|
|
1095
|
+
* ```
|
|
1096
|
+
*/
|
|
1097
|
+
declare class TalosStepperPreviousDirective {
|
|
1098
|
+
private readonly stepper;
|
|
1099
|
+
/**
|
|
1100
|
+
* Explicit stepper reference if the button resides outside the `<talos-stepper>` tree.
|
|
1101
|
+
*/
|
|
1102
|
+
readonly talosStepperPrevious: _angular_core.InputSignalWithTransform<TalosStepperComponent | null, string | TalosStepperComponent | null | undefined>;
|
|
1103
|
+
protected onClick(): void;
|
|
1104
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepperPreviousDirective, never>;
|
|
1105
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosStepperPreviousDirective, "[talosStepperPrevious], button[talosStepperPrevious]", never, { "talosStepperPrevious": { "alias": "talosStepperPrevious"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Button directive that resets the parent `<talos-stepper>` back to step 0 when clicked.
|
|
1109
|
+
*
|
|
1110
|
+
* Usage:
|
|
1111
|
+
* ```html
|
|
1112
|
+
* <button talosButton variant="outline" talosStepperReset>Reset Wizard</button>
|
|
1113
|
+
* ```
|
|
1114
|
+
*/
|
|
1115
|
+
declare class TalosStepperResetDirective {
|
|
1116
|
+
private readonly stepper;
|
|
1117
|
+
/**
|
|
1118
|
+
* Explicit stepper reference if the button resides outside the `<talos-stepper>` tree.
|
|
1119
|
+
*/
|
|
1120
|
+
readonly talosStepperReset: _angular_core.InputSignalWithTransform<TalosStepperComponent | null, string | TalosStepperComponent | null | undefined>;
|
|
1121
|
+
protected onClick(): void;
|
|
1122
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepperResetDirective, never>;
|
|
1123
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TalosStepperResetDirective, "[talosStepperReset], button[talosStepperReset]", never, { "talosStepperReset": { "alias": "talosStepperReset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
declare class TalosStepperModule {
|
|
1127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TalosStepperModule, never>;
|
|
1128
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TalosStepperModule, never, [typeof TalosStepperComponent, typeof TalosStepComponent, typeof TalosStepLabelDirective, typeof TalosStepContentDirective, typeof TalosStepIconDirective, typeof TalosStepperNextDirective, typeof TalosStepperPreviousDirective, typeof TalosStepperResetDirective], [typeof TalosStepperComponent, typeof TalosStepComponent, typeof TalosStepLabelDirective, typeof TalosStepContentDirective, typeof TalosStepIconDirective, typeof TalosStepperNextDirective, typeof TalosStepperPreviousDirective, typeof TalosStepperResetDirective]>;
|
|
1129
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TalosStepperModule>;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export { LayoutService, MainLayoutComponent, SidePanelComponent, TalosCardActionsDirective, TalosCardAvatarDirective, TalosCardBodyComponent, TalosCardComponent, TalosCardFooterComponent, TalosCardHeaderComponent, TalosCardMediaDirective, TalosCardModule, TalosCardSubtitleDirective, TalosCardTitleDirective, TalosExpansionPanelActionsDirective, TalosExpansionPanelBodyComponent, TalosExpansionPanelComponent, TalosExpansionPanelContentDirective, TalosExpansionPanelDescriptionDirective, TalosExpansionPanelGroupComponent, TalosExpansionPanelHeaderComponent, TalosExpansionPanelIconDirective, TalosExpansionPanelModule, TalosExpansionPanelTitleDirective, TalosExpansionPanelToggleDirective, TalosStepComponent, TalosStepContentDirective, TalosStepIconDirective, TalosStepLabelDirective, TalosStepperComponent, TalosStepperModule, TalosStepperNextDirective, TalosStepperPreviousDirective, TalosStepperResetDirective, TalosTabComponent, TalosTabContentDirective, TalosTabLabelDirective, TalosTabsComponent, TalosTabsModule };
|
|
1133
|
+
export type { NormalizedStepHeader, NormalizedTabHeader, RightPanelOptions, TalosCardFooterAlign, TalosCardPadding, TalosCardVariant, TalosExpansionPanelPadding, TalosExpansionPanelSize, TalosExpansionPanelTogglePosition, TalosExpansionPanelVariant, TalosStepChangeEvent, TalosStepItem, TalosStepState, TalosStepperFinishEvent, TalosStepperLabelPosition, TalosStepperOrientation, TalosStepperSize, TalosStepperVariant, TalosTabChangeEvent, TalosTabCloseEvent, TalosTabItem, TalosTabsAlign, TalosTabsOrientation, TalosTabsSize, TalosTabsVariant };
|
|
286
1134
|
//# sourceMappingURL=weeehaoooz-talos-ui-layout.d.ts.map
|