@skyux/tabs 14.5.1 → 14.6.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/tabs",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.6.1",
|
|
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.
|
|
25
|
-
"@skyux/core": "14.
|
|
26
|
-
"@skyux/forms": "14.
|
|
27
|
-
"@skyux/i18n": "14.
|
|
28
|
-
"@skyux/icon": "14.
|
|
29
|
-
"@skyux/indicators": "14.
|
|
30
|
-
"@skyux/popovers": "14.
|
|
31
|
-
"@skyux/theme": "14.
|
|
24
|
+
"@skyux-sdk/testing": "14.6.1",
|
|
25
|
+
"@skyux/core": "14.6.1",
|
|
26
|
+
"@skyux/forms": "14.6.1",
|
|
27
|
+
"@skyux/i18n": "14.6.1",
|
|
28
|
+
"@skyux/icon": "14.6.1",
|
|
29
|
+
"@skyux/indicators": "14.6.1",
|
|
30
|
+
"@skyux/popovers": "14.6.1",
|
|
31
|
+
"@skyux/theme": "14.6.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"tslib": "^2.8.1"
|
|
@@ -276,6 +276,13 @@ declare class SkySectionedFormHarness extends SkyComponentHarness {
|
|
|
276
276
|
*/
|
|
277
277
|
getActiveSection(): Promise<SkySectionedFormSectionHarness | undefined>;
|
|
278
278
|
getActiveSectionContent(): Promise<SkySectionedFormSectionContentHarness | undefined>;
|
|
279
|
+
/**
|
|
280
|
+
* Gets the tab width as a CSS `flex-basis` value (for example, `200px`),
|
|
281
|
+
* or `null` when no width is set. The width is only applied in the desktop
|
|
282
|
+
* layout, so this returns `null` in the mobile layout and when the tabs
|
|
283
|
+
* pane is not rendered at all.
|
|
284
|
+
*/
|
|
285
|
+
getTabWidth(): Promise<string | null>;
|
|
279
286
|
/**
|
|
280
287
|
* Gets a specific section based on the filter criteria.
|
|
281
288
|
* @param filters The filter criteria.
|
|
@@ -624,6 +631,12 @@ declare class SkyVerticalTabsetHarness extends SkyComponentHarness {
|
|
|
624
631
|
* Gets the text in the show tabs button in mobile view.
|
|
625
632
|
*/
|
|
626
633
|
getShowTabsText(): Promise<string | undefined>;
|
|
634
|
+
/**
|
|
635
|
+
* Gets the tab width as a CSS `flex-basis` value (for example, `200px`),
|
|
636
|
+
* or `null` when no width is set. The width is only applied in the desktop
|
|
637
|
+
* layout, so this returns `null` in the mobile layout.
|
|
638
|
+
*/
|
|
639
|
+
getTabWidth(): Promise<string | null>;
|
|
627
640
|
/**
|
|
628
641
|
* Gets a specific vertical tab button based on the filter criteria.
|
|
629
642
|
* @param filters The filter criteria.
|
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,13 +182,19 @@ 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.
|
|
225
188
|
* @default false
|
|
226
189
|
*/
|
|
227
190
|
maintainSectionContent: boolean | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* The width of the tabs pane as a CSS width value (such as `200px`, `15rem`,
|
|
193
|
+
* or `20%`). Set to `"auto"` to size based on tab label content. Maximum
|
|
194
|
+
* width is 30%.
|
|
195
|
+
* @default "30%"
|
|
196
|
+
*/
|
|
197
|
+
readonly tabWidth: i0.InputSignalWithTransform<string, string | undefined>;
|
|
228
198
|
set messageStream(value: Subject<SkySectionedFormMessage> | undefined);
|
|
229
199
|
get messageStream(): Subject<SkySectionedFormMessage>;
|
|
230
200
|
/**
|
|
@@ -240,7 +210,9 @@ declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewC
|
|
|
240
210
|
ariaRole: string | undefined;
|
|
241
211
|
content: ElementRef | undefined;
|
|
242
212
|
protected animationEnabled: i0.WritableSignal<boolean>;
|
|
243
|
-
|
|
213
|
+
protected readonly isMobile: i0.WritableSignal<boolean>;
|
|
214
|
+
readonly tabService: SkyVerticalTabsetService;
|
|
215
|
+
constructor();
|
|
244
216
|
ngOnInit(): void;
|
|
245
217
|
ngAfterViewChecked(): void;
|
|
246
218
|
ngOnDestroy(): void;
|
|
@@ -252,31 +224,10 @@ declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewC
|
|
|
252
224
|
* @deprecated Use the `messageStream` input and push a `ShowTabs` message to the message stream instead.
|
|
253
225
|
*/
|
|
254
226
|
showTabs(): void;
|
|
227
|
+
protected readonly tabsFlexBasis: i0.Signal<string | undefined>;
|
|
228
|
+
protected readonly tabsMaxWidth: i0.Signal<string | undefined>;
|
|
255
229
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormComponent, never>;
|
|
256
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkySectionedFormComponent, "sky-sectioned-form", never, { "maintainSectionContent": { "alias": "maintainSectionContent"; "required": false; }; "messageStream": { "alias": "messageStream"; "required": false; }; }, { "indexChanged": "indexChanged"; "tabsVisibleChanged": "tabsVisibleChanged"; }, never, ["*"], false, never>;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
declare class SkySectionedFormService {
|
|
260
|
-
/**
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
invalidChange: BehaviorSubject<boolean | undefined>;
|
|
264
|
-
/**
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
|
-
requiredChange: BehaviorSubject<boolean | undefined>;
|
|
268
|
-
/**
|
|
269
|
-
* Sets the current section's invalid state based on the `isInvalid` parameter.
|
|
270
|
-
* This method is used within a `sky-sectioned-form-section` element.
|
|
271
|
-
*/
|
|
272
|
-
invalidFieldChanged(isInvalid: boolean | undefined): void;
|
|
273
|
-
/**
|
|
274
|
-
* Sets the current section's required state based on the `isRequired` parameter.
|
|
275
|
-
* This method is used within a `sky-sectioned-form-section` element.
|
|
276
|
-
*/
|
|
277
|
-
requiredFieldChanged(isRequired: boolean | undefined): void;
|
|
278
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormService, never>;
|
|
279
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkySectionedFormService>;
|
|
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>;
|
|
280
231
|
}
|
|
281
232
|
|
|
282
233
|
/**
|
|
@@ -303,18 +254,48 @@ declare class SkySectionedFormSectionComponent implements OnInit, OnDestroy {
|
|
|
303
254
|
fieldRequired: boolean | undefined;
|
|
304
255
|
fieldInvalid: boolean | undefined;
|
|
305
256
|
tab: SkyVerticalTabComponent | undefined;
|
|
306
|
-
constructor(sectionedFormService: SkySectionedFormService, tabsetService: SkyVerticalTabsetService, changeRef: ChangeDetectorRef);
|
|
307
257
|
ngOnInit(): void;
|
|
308
258
|
ngOnDestroy(): void;
|
|
309
259
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormSectionComponent, never>;
|
|
310
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>;
|
|
311
261
|
}
|
|
312
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
|
+
|
|
313
297
|
declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, OnDestroy {
|
|
314
298
|
#private;
|
|
315
|
-
adapterService: SkyVerticalTabsetAdapterService;
|
|
316
|
-
tabService: SkyVerticalTabsetService;
|
|
317
|
-
tabIdSvc: SkyTabIdService;
|
|
318
299
|
/**
|
|
319
300
|
* The text to display on the show tabs button on mobile devices.
|
|
320
301
|
*/
|
|
@@ -352,6 +333,13 @@ declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, On
|
|
|
352
333
|
* @default false
|
|
353
334
|
*/
|
|
354
335
|
maintainTabContent: boolean | undefined;
|
|
336
|
+
/**
|
|
337
|
+
* The width of the tabs pane as a CSS width value (such as `200px`, `15rem`,
|
|
338
|
+
* or `20%`). Set to `"auto"` to size based on tab label content. Maximum
|
|
339
|
+
* width is 25%.
|
|
340
|
+
* @default "25%"
|
|
341
|
+
*/
|
|
342
|
+
readonly tabWidth: i0.InputSignalWithTransform<string, string | undefined>;
|
|
355
343
|
/**
|
|
356
344
|
* Fires when the active tab changes. Emits the index of the active tab. The
|
|
357
345
|
* index is based on the tab's position when it loads.
|
|
@@ -361,9 +349,11 @@ declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, On
|
|
|
361
349
|
content: ElementRef | undefined;
|
|
362
350
|
contentWrapper: ElementRef | undefined;
|
|
363
351
|
ariaOwns: string | undefined;
|
|
364
|
-
isMobile: boolean
|
|
352
|
+
readonly isMobile: i0.WritableSignal<boolean>;
|
|
365
353
|
protected tablistHasFocus: boolean;
|
|
366
|
-
|
|
354
|
+
readonly adapterService: SkyVerticalTabsetAdapterService;
|
|
355
|
+
readonly tabService: SkyVerticalTabsetService;
|
|
356
|
+
readonly tabIdSvc: SkyTabIdService;
|
|
367
357
|
ngOnInit(): void;
|
|
368
358
|
ngAfterViewChecked(): void;
|
|
369
359
|
ngOnDestroy(): void;
|
|
@@ -372,8 +362,10 @@ declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, On
|
|
|
372
362
|
protected resetTabIndex(): void;
|
|
373
363
|
protected tabGroupsArrowDown(): void;
|
|
374
364
|
protected tabGroupsArrowUp(): void;
|
|
365
|
+
protected readonly tabGroupContainerFlexBasis: i0.Signal<string | undefined>;
|
|
366
|
+
protected readonly tabGroupContainerMaxWidth: i0.Signal<string | undefined>;
|
|
375
367
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabsetComponent, never>;
|
|
376
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyVerticalTabsetComponent, "sky-vertical-tabset", never, { "showTabsText": { "alias": "showTabsText"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; "maintainTabContent": { "alias": "maintainTabContent"; "required": false; }; }, { "activeChange": "activeChange"; }, never, ["*"], false, never>;
|
|
368
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyVerticalTabsetComponent, "sky-vertical-tabset", never, { "showTabsText": { "alias": "showTabsText"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; "maintainTabContent": { "alias": "maintainTabContent"; "required": false; }; "tabWidth": { "alias": "tabWidth"; "required": false; "isSignal": true; }; }, { "activeChange": "activeChange"; }, never, ["*"], false, never>;
|
|
377
369
|
}
|
|
378
370
|
|
|
379
371
|
/**
|
|
@@ -397,112 +389,35 @@ declare class SkySectionedFormModule {
|
|
|
397
389
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkySectionedFormModule>;
|
|
398
390
|
}
|
|
399
391
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
type SkyTabLayoutType = 'none' | 'blocks' | 'fit' | 'list';
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* @internal
|
|
406
|
-
*/
|
|
407
|
-
declare class SkyTabButtonAdapterService {
|
|
408
|
-
focusButtonLink(buttonEl: ElementRef): void;
|
|
409
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabButtonAdapterService, never>;
|
|
410
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabButtonAdapterService>;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
type SkyTabsetStyle = 'tabs' | 'wizard';
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* @internal
|
|
417
|
-
*/
|
|
418
|
-
interface TabButtonViewModel {
|
|
419
|
-
active: boolean;
|
|
420
|
-
ariaControls: string;
|
|
421
|
-
buttonHref: string | null;
|
|
422
|
-
buttonId: string;
|
|
423
|
-
buttonText: string | undefined;
|
|
424
|
-
buttonTextCount: string | undefined;
|
|
425
|
-
closeable: boolean;
|
|
426
|
-
disabled: boolean | undefined;
|
|
427
|
-
tabIndex: SkyTabIndex | undefined;
|
|
428
|
-
tabNumber: number;
|
|
429
|
-
totalTabsCount: number;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
interface SkyTabsetActiveTabChangeArgs {
|
|
433
|
-
tabIndex: SkyTabIndex | undefined;
|
|
434
|
-
initial?: boolean;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* The arguments for the tabset service's `activeTabUnregistered` event.
|
|
439
|
-
* @internal
|
|
440
|
-
*/
|
|
441
|
-
interface SkyTabsetActiveTabUnregisteredArgs {
|
|
442
|
-
/**
|
|
443
|
-
* The array index of the active tab, when it has been unregistered.
|
|
444
|
-
*/
|
|
445
|
-
arrayIndex: number;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* @internal
|
|
450
|
-
*/
|
|
451
|
-
declare class SkyTabsetService implements OnDestroy {
|
|
452
|
-
#private;
|
|
453
|
-
readonly activeTabUnregistered: Observable<SkyTabsetActiveTabUnregisteredArgs>;
|
|
454
|
-
readonly activeTabChange: Observable<SkyTabsetActiveTabChangeArgs>;
|
|
455
|
-
readonly focusedTabBtnIndex: Observable<SkyTabIndex>;
|
|
456
|
-
readonly activeTabLayout: Observable<SkyTabLayoutType>;
|
|
457
|
-
currentActiveTabIndex: SkyTabIndex | undefined;
|
|
458
|
-
currentFocusedTabBtnIndex: SkyTabIndex;
|
|
459
|
-
constructor();
|
|
460
|
-
ngOnDestroy(): void;
|
|
461
|
-
/**
|
|
462
|
-
* Sets the active tab by its unique `tabIndex` property.
|
|
463
|
-
*/
|
|
464
|
-
setActiveTabIndex(value: SkyTabsetActiveTabChangeArgs, config?: {
|
|
465
|
-
emitChange: boolean;
|
|
466
|
-
}): void;
|
|
467
|
-
focusNextTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
468
|
-
focusPrevTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
469
|
-
focusFirstOrNearestTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
470
|
-
focusLastOrNearestTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
471
|
-
setFocusedTabBtnIndex(tabIndex: SkyTabIndex): void;
|
|
472
|
-
/**
|
|
473
|
-
* Registers a tab component.
|
|
474
|
-
*/
|
|
475
|
-
registerTab(tabIndex?: SkyTabIndex): SkyTabIndex;
|
|
476
|
-
updateTabIndex(currentTabIndex: SkyTabIndex, newTabIndex: SkyTabIndex): void;
|
|
477
|
-
updateActiveTabLayout(layout: SkyTabLayoutType): void;
|
|
478
|
-
/**
|
|
479
|
-
* Unregisters a tab component.
|
|
480
|
-
*/
|
|
481
|
-
unregisterTab(tabIndex: SkyTabIndex): void;
|
|
482
|
-
/**
|
|
483
|
-
* Unregisters all tab components at once.
|
|
484
|
-
*/
|
|
485
|
-
unregisterAll(): void;
|
|
392
|
+
declare class SkySectionedFormService {
|
|
486
393
|
/**
|
|
487
|
-
*
|
|
394
|
+
* @internal
|
|
488
395
|
*/
|
|
489
|
-
|
|
396
|
+
invalidChange: BehaviorSubject<boolean | undefined>;
|
|
490
397
|
/**
|
|
491
|
-
*
|
|
398
|
+
* @internal
|
|
492
399
|
*/
|
|
493
|
-
|
|
400
|
+
requiredChange: BehaviorSubject<boolean | undefined>;
|
|
494
401
|
/**
|
|
495
|
-
*
|
|
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.
|
|
496
404
|
*/
|
|
497
|
-
|
|
405
|
+
invalidFieldChanged(isInvalid: boolean | undefined): void;
|
|
498
406
|
/**
|
|
499
|
-
*
|
|
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.
|
|
500
409
|
*/
|
|
501
|
-
|
|
502
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
503
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
410
|
+
requiredFieldChanged(isRequired: boolean | undefined): void;
|
|
411
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormService, never>;
|
|
412
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SkySectionedFormService>;
|
|
504
413
|
}
|
|
505
414
|
|
|
415
|
+
type SkyTabIndex = string | number;
|
|
416
|
+
|
|
417
|
+
type SkyTabLayoutType = 'none' | 'blocks' | 'fit' | 'list';
|
|
418
|
+
|
|
419
|
+
type SkyTabsetStyle = 'tabs' | 'wizard';
|
|
420
|
+
|
|
506
421
|
type SkyWizardStepState = 'completed' | 'current' | 'unavailable';
|
|
507
422
|
/**
|
|
508
423
|
* @internal
|
|
@@ -526,7 +441,6 @@ declare class SkyTabButtonComponent implements AfterViewInit, OnDestroy {
|
|
|
526
441
|
set tabStyle(style: SkyTabsetStyle | undefined);
|
|
527
442
|
buttonClick: EventEmitter<void>;
|
|
528
443
|
closeClick: EventEmitter<void>;
|
|
529
|
-
constructor(elementRef: ElementRef, adapterService: SkyTabButtonAdapterService, changeDetectorRef: ChangeDetectorRef, tabsetService: SkyTabsetService);
|
|
530
444
|
closeBtnTabIndex: string;
|
|
531
445
|
wizardStepState: SkyWizardStepState | undefined;
|
|
532
446
|
ngAfterViewInit(): void;
|
|
@@ -540,39 +454,6 @@ declare class SkyTabButtonComponent implements AfterViewInit, OnDestroy {
|
|
|
540
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>;
|
|
541
455
|
}
|
|
542
456
|
|
|
543
|
-
/**
|
|
544
|
-
* @internal
|
|
545
|
-
*/
|
|
546
|
-
declare class SkyTabsetPermalinkService implements OnDestroy {
|
|
547
|
-
#private;
|
|
548
|
-
get popStateChange(): Observable<void>;
|
|
549
|
-
ngOnDestroy(): void;
|
|
550
|
-
init(): void;
|
|
551
|
-
/**
|
|
552
|
-
* Returns the value of a URL query param.
|
|
553
|
-
*/
|
|
554
|
-
getParam(name: string): string;
|
|
555
|
-
/**
|
|
556
|
-
* Sets the value of a URL query param.
|
|
557
|
-
*/
|
|
558
|
-
setParam(name: string, value: string | null, initial?: boolean): void;
|
|
559
|
-
/**
|
|
560
|
-
* Removes the provided query param from the URL.
|
|
561
|
-
*/
|
|
562
|
-
clearParam(name: string): void;
|
|
563
|
-
/**
|
|
564
|
-
* Returns a relative URL that includes the provided query parameter. The value is intended to be
|
|
565
|
-
* used by an HTML anchor element.
|
|
566
|
-
*/
|
|
567
|
-
getParamHref(name: string | undefined, value: string): string | null;
|
|
568
|
-
/**
|
|
569
|
-
* Converts the provided string into a value that can be safely used in a URL.
|
|
570
|
-
*/
|
|
571
|
-
urlify(value: string | undefined): string;
|
|
572
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetPermalinkService, never>;
|
|
573
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabsetPermalinkService>;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
457
|
declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
577
458
|
#private;
|
|
578
459
|
/**
|
|
@@ -645,7 +526,7 @@ declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
|
645
526
|
showContent: boolean;
|
|
646
527
|
tabButtonId: string;
|
|
647
528
|
tabPanelId: string;
|
|
648
|
-
constructor(
|
|
529
|
+
constructor();
|
|
649
530
|
ngOnChanges(changes: SimpleChanges): void;
|
|
650
531
|
ngOnDestroy(): void;
|
|
651
532
|
init(): void;
|
|
@@ -659,18 +540,18 @@ declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
|
659
540
|
/**
|
|
660
541
|
* @internal
|
|
661
542
|
*/
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
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;
|
|
674
555
|
}
|
|
675
556
|
|
|
676
557
|
type SkyTabsetButtonsDisplayMode = 'dropdown' | 'tabs';
|
|
@@ -753,7 +634,6 @@ declare class SkyTabsetComponent implements AfterViewInit, OnDestroy {
|
|
|
753
634
|
*/
|
|
754
635
|
lastActiveTabIndex: SkyTabIndex | undefined;
|
|
755
636
|
tabButtons: TabButtonViewModel[];
|
|
756
|
-
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, adapterService: SkyTabsetAdapterService, permalinkService: SkyTabsetPermalinkService, tabsetService: SkyTabsetService);
|
|
757
637
|
ngAfterViewInit(): void;
|
|
758
638
|
ngOnDestroy(): void;
|
|
759
639
|
onWindowResize(): void;
|
|
@@ -809,7 +689,6 @@ declare class SkyTabsetNavButtonComponent implements OnDestroy {
|
|
|
809
689
|
type: 'submit' | 'button';
|
|
810
690
|
ariaControls: string | undefined;
|
|
811
691
|
protected tabToSelect: SkyTabComponent | undefined;
|
|
812
|
-
constructor(logger: SkyLogService);
|
|
813
692
|
ngOnDestroy(): void;
|
|
814
693
|
buttonClick(): void;
|
|
815
694
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetNavButtonComponent, never>;
|