@skyux/tabs 14.6.0 → 14.6.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/fesm2022/skyux-tabs.mjs +194 -196
- package/fesm2022/skyux-tabs.mjs.map +1 -1
- package/package.json +9 -9
- package/types/skyux-tabs.d.ts +78 -218
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/tabs",
|
|
3
|
-
"version": "14.6.
|
|
3
|
+
"version": "14.6.2",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"@angular/core": "^21.2.0",
|
|
22
22
|
"@angular/platform-browser": "^21.2.0",
|
|
23
23
|
"@angular/router": "^21.2.0",
|
|
24
|
-
"@skyux-sdk/testing": "14.6.
|
|
25
|
-
"@skyux/core": "14.6.
|
|
26
|
-
"@skyux/forms": "14.6.
|
|
27
|
-
"@skyux/i18n": "14.6.
|
|
28
|
-
"@skyux/icon": "14.6.
|
|
29
|
-
"@skyux/indicators": "14.6.
|
|
30
|
-
"@skyux/popovers": "14.6.
|
|
31
|
-
"@skyux/theme": "14.6.
|
|
24
|
+
"@skyux-sdk/testing": "14.6.2",
|
|
25
|
+
"@skyux/core": "14.6.2",
|
|
26
|
+
"@skyux/forms": "14.6.2",
|
|
27
|
+
"@skyux/i18n": "14.6.2",
|
|
28
|
+
"@skyux/icon": "14.6.2",
|
|
29
|
+
"@skyux/indicators": "14.6.2",
|
|
30
|
+
"@skyux/popovers": "14.6.2",
|
|
31
|
+
"@skyux/theme": "14.6.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"tslib": "^2.8.1"
|
package/types/skyux-tabs.d.ts
CHANGED
|
@@ -1,51 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { SkyLogService } from '@skyux/core';
|
|
5
|
-
import { Observable, Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef, QueryList, AfterViewChecked, EventEmitter, AfterViewInit, OnChanges, SimpleChanges, PipeTransform } from '@angular/core';
|
|
3
|
+
import { Subject, BehaviorSubject, ReplaySubject, Observable } from 'rxjs';
|
|
6
4
|
import * as i4 from '@angular/common';
|
|
7
5
|
import * as i4$1 from '@skyux/forms';
|
|
8
6
|
import * as i9 from '@skyux/theme';
|
|
9
|
-
import * as i1 from '@skyux/i18n';
|
|
10
|
-
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
11
7
|
import * as i5 from '@skyux/icon';
|
|
8
|
+
import * as i6 from '@skyux/core';
|
|
12
9
|
import * as i7 from '@skyux/indicators';
|
|
10
|
+
import * as i1 from '@skyux/i18n';
|
|
13
11
|
import * as i8 from '@skyux/popovers';
|
|
14
12
|
|
|
15
|
-
/**
|
|
16
|
-
* Tracks the element IDs for all tabs within a tablist.
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
declare class SkyTabIdService {
|
|
20
|
-
#private;
|
|
21
|
-
get ids(): Observable<string[]>;
|
|
22
|
-
constructor();
|
|
23
|
-
/**
|
|
24
|
-
* Associates a tab's ID with its parent tablist.
|
|
25
|
-
* @param {string} id A unique ID for the tab's registration.
|
|
26
|
-
* @param {string} elementId The ID applied to the tab's element.
|
|
27
|
-
*/
|
|
28
|
-
register(id: string, elementId: string): void;
|
|
29
|
-
/**
|
|
30
|
-
* Disassociates a tab's ID with its parent tablist.
|
|
31
|
-
* @param {string} id The ID used to register the tab.
|
|
32
|
-
*/
|
|
33
|
-
unregister(id: string): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabIdService, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabIdService>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare class SkyVerticalTabsetAdapterService {
|
|
39
|
-
#private;
|
|
40
|
-
scrollToContentTop(element: ElementRef): void;
|
|
41
|
-
focusButton(elRef: ElementRef<HTMLElement> | undefined): boolean;
|
|
42
|
-
focusFirstButton(tabGroups: ElementRef<HTMLElement> | undefined): void;
|
|
43
|
-
focusNextButton(tabGroups: ElementRef | undefined): void;
|
|
44
|
-
focusPreviousButton(tabGroups: ElementRef | undefined): void;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabsetAdapterService, never>;
|
|
46
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyVerticalTabsetAdapterService>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
13
|
interface SkyVerticalTabsetGroupMessage {
|
|
50
14
|
messageType: 'focus';
|
|
51
15
|
}
|
|
@@ -128,7 +92,7 @@ declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
|
|
|
128
92
|
tabButton: ElementRef | undefined;
|
|
129
93
|
tabContent: ElementRef | undefined;
|
|
130
94
|
groupService: SkyVerticalTabsetGroupService | null;
|
|
131
|
-
constructor(
|
|
95
|
+
constructor();
|
|
132
96
|
ngOnInit(): void;
|
|
133
97
|
ngOnDestroy(): void;
|
|
134
98
|
activateTab(): void;
|
|
@@ -136,7 +100,7 @@ declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
|
|
|
136
100
|
tabButtonActivate(event: Event): void;
|
|
137
101
|
tabButtonArrowLeft(event: Event): void;
|
|
138
102
|
tabDeactivated(): void;
|
|
139
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabComponent,
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabComponent, never>;
|
|
140
104
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyVerticalTabComponent, "sky-vertical-tab", never, { "active": { "alias": "active"; "required": false; }; "ariaControls": { "alias": "ariaControls"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorIndicator": { "alias": "errorIndicator"; "required": false; }; "requiredIndicator": { "alias": "requiredIndicator"; "required": false; }; "tabHeaderCount": { "alias": "tabHeaderCount"; "required": false; }; "tabHeading": { "alias": "tabHeading"; "required": false; }; "showTabRightArrow": { "alias": "showTabRightArrow"; "required": false; }; "tabId": { "alias": "tabId"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
141
105
|
}
|
|
142
106
|
|
|
@@ -162,7 +126,7 @@ declare class SkyVerticalTabsetGroupComponent implements OnInit, OnDestroy {
|
|
|
162
126
|
groupHeadingButton: ElementRef | undefined;
|
|
163
127
|
slideDirection: 'down' | 'up';
|
|
164
128
|
protected groupId: string;
|
|
165
|
-
constructor(
|
|
129
|
+
constructor();
|
|
166
130
|
ngOnInit(): void;
|
|
167
131
|
ngOnDestroy(): void;
|
|
168
132
|
toggleMenuOpen(): void;
|
|
@@ -218,7 +182,6 @@ interface SkySectionedFormMessage {
|
|
|
218
182
|
*/
|
|
219
183
|
declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
220
184
|
#private;
|
|
221
|
-
tabService: SkyVerticalTabsetService;
|
|
222
185
|
/**
|
|
223
186
|
* Whether the sectioned form loads section content during initialization so that it
|
|
224
187
|
* displays content without moving around elements in the content container.
|
|
@@ -248,7 +211,8 @@ declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewC
|
|
|
248
211
|
content: ElementRef | undefined;
|
|
249
212
|
protected animationEnabled: i0.WritableSignal<boolean>;
|
|
250
213
|
protected readonly isMobile: i0.WritableSignal<boolean>;
|
|
251
|
-
|
|
214
|
+
readonly tabService: SkyVerticalTabsetService;
|
|
215
|
+
constructor();
|
|
252
216
|
ngOnInit(): void;
|
|
253
217
|
ngAfterViewChecked(): void;
|
|
254
218
|
ngOnDestroy(): void;
|
|
@@ -266,29 +230,6 @@ declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewC
|
|
|
266
230
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkySectionedFormComponent, "sky-sectioned-form", never, { "maintainSectionContent": { "alias": "maintainSectionContent"; "required": false; }; "tabWidth": { "alias": "tabWidth"; "required": false; "isSignal": true; }; "messageStream": { "alias": "messageStream"; "required": false; }; }, { "indexChanged": "indexChanged"; "tabsVisibleChanged": "tabsVisibleChanged"; }, never, ["*"], false, never>;
|
|
267
231
|
}
|
|
268
232
|
|
|
269
|
-
declare class SkySectionedFormService {
|
|
270
|
-
/**
|
|
271
|
-
* @internal
|
|
272
|
-
*/
|
|
273
|
-
invalidChange: BehaviorSubject<boolean | undefined>;
|
|
274
|
-
/**
|
|
275
|
-
* @internal
|
|
276
|
-
*/
|
|
277
|
-
requiredChange: BehaviorSubject<boolean | undefined>;
|
|
278
|
-
/**
|
|
279
|
-
* Sets the current section's invalid state based on the `isInvalid` parameter.
|
|
280
|
-
* This method is used within a `sky-sectioned-form-section` element.
|
|
281
|
-
*/
|
|
282
|
-
invalidFieldChanged(isInvalid: boolean | undefined): void;
|
|
283
|
-
/**
|
|
284
|
-
* Sets the current section's required state based on the `isRequired` parameter.
|
|
285
|
-
* This method is used within a `sky-sectioned-form-section` element.
|
|
286
|
-
*/
|
|
287
|
-
requiredFieldChanged(isRequired: boolean | undefined): void;
|
|
288
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormService, never>;
|
|
289
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkySectionedFormService>;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
233
|
/**
|
|
293
234
|
* Creates an individual form to display as a section within the sectioned form.
|
|
294
235
|
*/
|
|
@@ -313,18 +254,48 @@ declare class SkySectionedFormSectionComponent implements OnInit, OnDestroy {
|
|
|
313
254
|
fieldRequired: boolean | undefined;
|
|
314
255
|
fieldInvalid: boolean | undefined;
|
|
315
256
|
tab: SkyVerticalTabComponent | undefined;
|
|
316
|
-
constructor(sectionedFormService: SkySectionedFormService, tabsetService: SkyVerticalTabsetService, changeRef: ChangeDetectorRef);
|
|
317
257
|
ngOnInit(): void;
|
|
318
258
|
ngOnDestroy(): void;
|
|
319
259
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormSectionComponent, never>;
|
|
320
260
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkySectionedFormSectionComponent, "sky-sectioned-form-section", never, { "heading": { "alias": "heading"; "required": false; }; "itemCount": { "alias": "itemCount"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
321
261
|
}
|
|
322
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Tracks the element IDs for all tabs within a tablist.
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
declare class SkyTabIdService {
|
|
268
|
+
#private;
|
|
269
|
+
get ids(): Observable<string[]>;
|
|
270
|
+
constructor();
|
|
271
|
+
/**
|
|
272
|
+
* Associates a tab's ID with its parent tablist.
|
|
273
|
+
* @param {string} id A unique ID for the tab's registration.
|
|
274
|
+
* @param {string} elementId The ID applied to the tab's element.
|
|
275
|
+
*/
|
|
276
|
+
register(id: string, elementId: string): void;
|
|
277
|
+
/**
|
|
278
|
+
* Disassociates a tab's ID with its parent tablist.
|
|
279
|
+
* @param {string} id The ID used to register the tab.
|
|
280
|
+
*/
|
|
281
|
+
unregister(id: string): void;
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabIdService, never>;
|
|
283
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabIdService>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare class SkyVerticalTabsetAdapterService {
|
|
287
|
+
#private;
|
|
288
|
+
scrollToContentTop(element: ElementRef): void;
|
|
289
|
+
focusButton(elRef: ElementRef<HTMLElement> | undefined): boolean;
|
|
290
|
+
focusFirstButton(tabGroups: ElementRef<HTMLElement> | undefined): void;
|
|
291
|
+
focusNextButton(tabGroups: ElementRef | undefined): void;
|
|
292
|
+
focusPreviousButton(tabGroups: ElementRef | undefined): void;
|
|
293
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabsetAdapterService, never>;
|
|
294
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SkyVerticalTabsetAdapterService>;
|
|
295
|
+
}
|
|
296
|
+
|
|
323
297
|
declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, OnDestroy {
|
|
324
298
|
#private;
|
|
325
|
-
adapterService: SkyVerticalTabsetAdapterService;
|
|
326
|
-
tabService: SkyVerticalTabsetService;
|
|
327
|
-
tabIdSvc: SkyTabIdService;
|
|
328
299
|
/**
|
|
329
300
|
* The text to display on the show tabs button on mobile devices.
|
|
330
301
|
*/
|
|
@@ -380,7 +351,9 @@ declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, On
|
|
|
380
351
|
ariaOwns: string | undefined;
|
|
381
352
|
readonly isMobile: i0.WritableSignal<boolean>;
|
|
382
353
|
protected tablistHasFocus: boolean;
|
|
383
|
-
|
|
354
|
+
readonly adapterService: SkyVerticalTabsetAdapterService;
|
|
355
|
+
readonly tabService: SkyVerticalTabsetService;
|
|
356
|
+
readonly tabIdSvc: SkyTabIdService;
|
|
384
357
|
ngOnInit(): void;
|
|
385
358
|
ngAfterViewChecked(): void;
|
|
386
359
|
ngOnDestroy(): void;
|
|
@@ -416,112 +389,35 @@ declare class SkySectionedFormModule {
|
|
|
416
389
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkySectionedFormModule>;
|
|
417
390
|
}
|
|
418
391
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
type SkyTabLayoutType = 'none' | 'blocks' | 'fit' | 'list';
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* @internal
|
|
425
|
-
*/
|
|
426
|
-
declare class SkyTabButtonAdapterService {
|
|
427
|
-
focusButtonLink(buttonEl: ElementRef): void;
|
|
428
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabButtonAdapterService, never>;
|
|
429
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabButtonAdapterService>;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
type SkyTabsetStyle = 'tabs' | 'wizard';
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* @internal
|
|
436
|
-
*/
|
|
437
|
-
interface TabButtonViewModel {
|
|
438
|
-
active: boolean;
|
|
439
|
-
ariaControls: string;
|
|
440
|
-
buttonHref: string | null;
|
|
441
|
-
buttonId: string;
|
|
442
|
-
buttonText: string | undefined;
|
|
443
|
-
buttonTextCount: string | undefined;
|
|
444
|
-
closeable: boolean;
|
|
445
|
-
disabled: boolean | undefined;
|
|
446
|
-
tabIndex: SkyTabIndex | undefined;
|
|
447
|
-
tabNumber: number;
|
|
448
|
-
totalTabsCount: number;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
interface SkyTabsetActiveTabChangeArgs {
|
|
452
|
-
tabIndex: SkyTabIndex | undefined;
|
|
453
|
-
initial?: boolean;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* The arguments for the tabset service's `activeTabUnregistered` event.
|
|
458
|
-
* @internal
|
|
459
|
-
*/
|
|
460
|
-
interface SkyTabsetActiveTabUnregisteredArgs {
|
|
461
|
-
/**
|
|
462
|
-
* The array index of the active tab, when it has been unregistered.
|
|
463
|
-
*/
|
|
464
|
-
arrayIndex: number;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* @internal
|
|
469
|
-
*/
|
|
470
|
-
declare class SkyTabsetService implements OnDestroy {
|
|
471
|
-
#private;
|
|
472
|
-
readonly activeTabUnregistered: Observable<SkyTabsetActiveTabUnregisteredArgs>;
|
|
473
|
-
readonly activeTabChange: Observable<SkyTabsetActiveTabChangeArgs>;
|
|
474
|
-
readonly focusedTabBtnIndex: Observable<SkyTabIndex>;
|
|
475
|
-
readonly activeTabLayout: Observable<SkyTabLayoutType>;
|
|
476
|
-
currentActiveTabIndex: SkyTabIndex | undefined;
|
|
477
|
-
currentFocusedTabBtnIndex: SkyTabIndex;
|
|
478
|
-
constructor();
|
|
479
|
-
ngOnDestroy(): void;
|
|
480
|
-
/**
|
|
481
|
-
* Sets the active tab by its unique `tabIndex` property.
|
|
482
|
-
*/
|
|
483
|
-
setActiveTabIndex(value: SkyTabsetActiveTabChangeArgs, config?: {
|
|
484
|
-
emitChange: boolean;
|
|
485
|
-
}): void;
|
|
486
|
-
focusNextTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
487
|
-
focusPrevTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
488
|
-
focusFirstOrNearestTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
489
|
-
focusLastOrNearestTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
490
|
-
setFocusedTabBtnIndex(tabIndex: SkyTabIndex): void;
|
|
491
|
-
/**
|
|
492
|
-
* Registers a tab component.
|
|
493
|
-
*/
|
|
494
|
-
registerTab(tabIndex?: SkyTabIndex): SkyTabIndex;
|
|
495
|
-
updateTabIndex(currentTabIndex: SkyTabIndex, newTabIndex: SkyTabIndex): void;
|
|
496
|
-
updateActiveTabLayout(layout: SkyTabLayoutType): void;
|
|
497
|
-
/**
|
|
498
|
-
* Unregisters a tab component.
|
|
499
|
-
*/
|
|
500
|
-
unregisterTab(tabIndex: SkyTabIndex): void;
|
|
501
|
-
/**
|
|
502
|
-
* Unregisters all tab components at once.
|
|
503
|
-
*/
|
|
504
|
-
unregisterAll(): void;
|
|
392
|
+
declare class SkySectionedFormService {
|
|
505
393
|
/**
|
|
506
|
-
*
|
|
394
|
+
* @internal
|
|
507
395
|
*/
|
|
508
|
-
|
|
396
|
+
invalidChange: BehaviorSubject<boolean | undefined>;
|
|
509
397
|
/**
|
|
510
|
-
*
|
|
398
|
+
* @internal
|
|
511
399
|
*/
|
|
512
|
-
|
|
400
|
+
requiredChange: BehaviorSubject<boolean | undefined>;
|
|
513
401
|
/**
|
|
514
|
-
*
|
|
402
|
+
* Sets the current section's invalid state based on the `isInvalid` parameter.
|
|
403
|
+
* This method is used within a `sky-sectioned-form-section` element.
|
|
515
404
|
*/
|
|
516
|
-
|
|
405
|
+
invalidFieldChanged(isInvalid: boolean | undefined): void;
|
|
517
406
|
/**
|
|
518
|
-
*
|
|
407
|
+
* Sets the current section's required state based on the `isRequired` parameter.
|
|
408
|
+
* This method is used within a `sky-sectioned-form-section` element.
|
|
519
409
|
*/
|
|
520
|
-
|
|
521
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
522
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
410
|
+
requiredFieldChanged(isRequired: boolean | undefined): void;
|
|
411
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormService, never>;
|
|
412
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SkySectionedFormService>;
|
|
523
413
|
}
|
|
524
414
|
|
|
415
|
+
type SkyTabIndex = string | number;
|
|
416
|
+
|
|
417
|
+
type SkyTabLayoutType = 'none' | 'blocks' | 'fit' | 'list';
|
|
418
|
+
|
|
419
|
+
type SkyTabsetStyle = 'tabs' | 'wizard';
|
|
420
|
+
|
|
525
421
|
type SkyWizardStepState = 'completed' | 'current' | 'unavailable';
|
|
526
422
|
/**
|
|
527
423
|
* @internal
|
|
@@ -545,7 +441,6 @@ declare class SkyTabButtonComponent implements AfterViewInit, OnDestroy {
|
|
|
545
441
|
set tabStyle(style: SkyTabsetStyle | undefined);
|
|
546
442
|
buttonClick: EventEmitter<void>;
|
|
547
443
|
closeClick: EventEmitter<void>;
|
|
548
|
-
constructor(elementRef: ElementRef, adapterService: SkyTabButtonAdapterService, changeDetectorRef: ChangeDetectorRef, tabsetService: SkyTabsetService);
|
|
549
444
|
closeBtnTabIndex: string;
|
|
550
445
|
wizardStepState: SkyWizardStepState | undefined;
|
|
551
446
|
ngAfterViewInit(): void;
|
|
@@ -559,39 +454,6 @@ declare class SkyTabButtonComponent implements AfterViewInit, OnDestroy {
|
|
|
559
454
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTabButtonComponent, "sky-tab-button", never, { "active": { "alias": "active"; "required": false; }; "ariaControls": { "alias": "ariaControls"; "required": false; }; "buttonHref": { "alias": "buttonHref"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonTextCount": { "alias": "buttonTextCount"; "required": false; }; "closeable": { "alias": "closeable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "tabNumber": { "alias": "tabNumber"; "required": false; }; "totalTabsCount": { "alias": "totalTabsCount"; "required": false; }; "tabStyle": { "alias": "tabStyle"; "required": false; }; }, { "buttonClick": "buttonClick"; "closeClick": "closeClick"; }, never, never, false, never>;
|
|
560
455
|
}
|
|
561
456
|
|
|
562
|
-
/**
|
|
563
|
-
* @internal
|
|
564
|
-
*/
|
|
565
|
-
declare class SkyTabsetPermalinkService implements OnDestroy {
|
|
566
|
-
#private;
|
|
567
|
-
get popStateChange(): Observable<void>;
|
|
568
|
-
ngOnDestroy(): void;
|
|
569
|
-
init(): void;
|
|
570
|
-
/**
|
|
571
|
-
* Returns the value of a URL query param.
|
|
572
|
-
*/
|
|
573
|
-
getParam(name: string): string;
|
|
574
|
-
/**
|
|
575
|
-
* Sets the value of a URL query param.
|
|
576
|
-
*/
|
|
577
|
-
setParam(name: string, value: string | null, initial?: boolean): void;
|
|
578
|
-
/**
|
|
579
|
-
* Removes the provided query param from the URL.
|
|
580
|
-
*/
|
|
581
|
-
clearParam(name: string): void;
|
|
582
|
-
/**
|
|
583
|
-
* Returns a relative URL that includes the provided query parameter. The value is intended to be
|
|
584
|
-
* used by an HTML anchor element.
|
|
585
|
-
*/
|
|
586
|
-
getParamHref(name: string | undefined, value: string): string | null;
|
|
587
|
-
/**
|
|
588
|
-
* Converts the provided string into a value that can be safely used in a URL.
|
|
589
|
-
*/
|
|
590
|
-
urlify(value: string | undefined): string;
|
|
591
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetPermalinkService, never>;
|
|
592
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabsetPermalinkService>;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
457
|
declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
596
458
|
#private;
|
|
597
459
|
/**
|
|
@@ -664,7 +526,7 @@ declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
|
664
526
|
showContent: boolean;
|
|
665
527
|
tabButtonId: string;
|
|
666
528
|
tabPanelId: string;
|
|
667
|
-
constructor(
|
|
529
|
+
constructor();
|
|
668
530
|
ngOnChanges(changes: SimpleChanges): void;
|
|
669
531
|
ngOnDestroy(): void;
|
|
670
532
|
init(): void;
|
|
@@ -678,18 +540,18 @@ declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
|
678
540
|
/**
|
|
679
541
|
* @internal
|
|
680
542
|
*/
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
543
|
+
interface TabButtonViewModel {
|
|
544
|
+
active: boolean;
|
|
545
|
+
ariaControls: string;
|
|
546
|
+
buttonHref: string | null;
|
|
547
|
+
buttonId: string;
|
|
548
|
+
buttonText: string | undefined;
|
|
549
|
+
buttonTextCount: string | undefined;
|
|
550
|
+
closeable: boolean;
|
|
551
|
+
disabled: boolean | undefined;
|
|
552
|
+
tabIndex: SkyTabIndex | undefined;
|
|
553
|
+
tabNumber: number;
|
|
554
|
+
totalTabsCount: number;
|
|
693
555
|
}
|
|
694
556
|
|
|
695
557
|
type SkyTabsetButtonsDisplayMode = 'dropdown' | 'tabs';
|
|
@@ -772,7 +634,6 @@ declare class SkyTabsetComponent implements AfterViewInit, OnDestroy {
|
|
|
772
634
|
*/
|
|
773
635
|
lastActiveTabIndex: SkyTabIndex | undefined;
|
|
774
636
|
tabButtons: TabButtonViewModel[];
|
|
775
|
-
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, adapterService: SkyTabsetAdapterService, permalinkService: SkyTabsetPermalinkService, tabsetService: SkyTabsetService);
|
|
776
637
|
ngAfterViewInit(): void;
|
|
777
638
|
ngOnDestroy(): void;
|
|
778
639
|
onWindowResize(): void;
|
|
@@ -828,7 +689,6 @@ declare class SkyTabsetNavButtonComponent implements OnDestroy {
|
|
|
828
689
|
type: 'submit' | 'button';
|
|
829
690
|
ariaControls: string | undefined;
|
|
830
691
|
protected tabToSelect: SkyTabComponent | undefined;
|
|
831
|
-
constructor(logger: SkyLogService);
|
|
832
692
|
ngOnDestroy(): void;
|
|
833
693
|
buttonClick(): void;
|
|
834
694
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetNavButtonComponent, never>;
|