@skyux/tabs 14.5.0 → 14.6.0

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.5.0",
3
+ "version": "14.6.0",
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.5.0",
25
- "@skyux/core": "14.5.0",
26
- "@skyux/forms": "14.5.0",
27
- "@skyux/i18n": "14.5.0",
28
- "@skyux/icon": "14.5.0",
29
- "@skyux/indicators": "14.5.0",
30
- "@skyux/popovers": "14.5.0",
31
- "@skyux/theme": "14.5.0"
24
+ "@skyux-sdk/testing": "14.6.0",
25
+ "@skyux/core": "14.6.0",
26
+ "@skyux/forms": "14.6.0",
27
+ "@skyux/i18n": "14.6.0",
28
+ "@skyux/icon": "14.6.0",
29
+ "@skyux/indicators": "14.6.0",
30
+ "@skyux/popovers": "14.6.0",
31
+ "@skyux/theme": "14.6.0"
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.
@@ -225,6 +225,13 @@ declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewC
225
225
  * @default false
226
226
  */
227
227
  maintainSectionContent: boolean | undefined;
228
+ /**
229
+ * The width of the tabs pane as a CSS width value (such as `200px`, `15rem`,
230
+ * or `20%`). Set to `"auto"` to size based on tab label content. Maximum
231
+ * width is 30%.
232
+ * @default "30%"
233
+ */
234
+ readonly tabWidth: i0.InputSignalWithTransform<string, string | undefined>;
228
235
  set messageStream(value: Subject<SkySectionedFormMessage> | undefined);
229
236
  get messageStream(): Subject<SkySectionedFormMessage>;
230
237
  /**
@@ -240,6 +247,7 @@ declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewC
240
247
  ariaRole: string | undefined;
241
248
  content: ElementRef | undefined;
242
249
  protected animationEnabled: i0.WritableSignal<boolean>;
250
+ protected readonly isMobile: i0.WritableSignal<boolean>;
243
251
  constructor(tabService: SkyVerticalTabsetService, changeRef: ChangeDetectorRef, tabIdSvc: SkyTabIdService, logger: SkyLogService);
244
252
  ngOnInit(): void;
245
253
  ngAfterViewChecked(): void;
@@ -252,8 +260,10 @@ declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewC
252
260
  * @deprecated Use the `messageStream` input and push a `ShowTabs` message to the message stream instead.
253
261
  */
254
262
  showTabs(): void;
263
+ protected readonly tabsFlexBasis: i0.Signal<string | undefined>;
264
+ protected readonly tabsMaxWidth: i0.Signal<string | undefined>;
255
265
  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>;
266
+ 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>;
257
267
  }
258
268
 
259
269
  declare class SkySectionedFormService {
@@ -352,6 +362,13 @@ declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, On
352
362
  * @default false
353
363
  */
354
364
  maintainTabContent: boolean | undefined;
365
+ /**
366
+ * The width of the tabs pane as a CSS width value (such as `200px`, `15rem`,
367
+ * or `20%`). Set to `"auto"` to size based on tab label content. Maximum
368
+ * width is 25%.
369
+ * @default "25%"
370
+ */
371
+ readonly tabWidth: i0.InputSignalWithTransform<string, string | undefined>;
355
372
  /**
356
373
  * Fires when the active tab changes. Emits the index of the active tab. The
357
374
  * index is based on the tab's position when it loads.
@@ -361,7 +378,7 @@ declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, On
361
378
  content: ElementRef | undefined;
362
379
  contentWrapper: ElementRef | undefined;
363
380
  ariaOwns: string | undefined;
364
- isMobile: boolean;
381
+ readonly isMobile: i0.WritableSignal<boolean>;
365
382
  protected tablistHasFocus: boolean;
366
383
  constructor(adapterService: SkyVerticalTabsetAdapterService, tabService: SkyVerticalTabsetService, resources: SkyLibResourcesService, changeRef: ChangeDetectorRef, tabIdSvc: SkyTabIdService);
367
384
  ngOnInit(): void;
@@ -372,8 +389,10 @@ declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, On
372
389
  protected resetTabIndex(): void;
373
390
  protected tabGroupsArrowDown(): void;
374
391
  protected tabGroupsArrowUp(): void;
392
+ protected readonly tabGroupContainerFlexBasis: i0.Signal<string | undefined>;
393
+ protected readonly tabGroupContainerMaxWidth: i0.Signal<string | undefined>;
375
394
  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>;
395
+ 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
396
  }
378
397
 
379
398
  /**