@nova-ui/bits 21.0.4 → 21.0.5

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
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "schematics": "./sdk/schematics/collection.json",
61
61
  "typings": "types/nova-ui-bits.d.ts",
62
- "version": "21.0.4",
62
+ "version": "21.0.5",
63
63
  "module": "fesm2022/nova-ui-bits.mjs",
64
64
  "sideEffects": false,
65
65
  "type": "module",
@@ -5091,10 +5091,14 @@ declare class SwitchComponent implements OnInit, ControlValueAccessor {
5091
5091
  ariaLabel?: string;
5092
5092
  /** Unique id for the control. */
5093
5093
  id: string;
5094
+ private switchLabel;
5094
5095
  /**
5095
5096
  * Label element id used to dynamically compute accessible name.
5096
5097
  */
5097
5098
  readonly labelId: string;
5099
+ private readonly defaultAriaLabel;
5100
+ get accessibleLabel(): string | null;
5101
+ get labelIdIfProjected(): string | null;
5098
5102
  valueChange: EventEmitter<boolean>;
5099
5103
  toggle(): void;
5100
5104
  onChange(value: any): void;
@@ -5104,6 +5108,7 @@ declare class SwitchComponent implements OnInit, ControlValueAccessor {
5104
5108
  registerOnTouched(fn: () => void): void;
5105
5109
  setDisabledState(isDisabled: boolean): void;
5106
5110
  ngOnInit(): void;
5111
+ private get hasProjectedLabel();
5107
5112
  static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
5108
5113
  static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "nui-switch", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["*"], false, never>;
5109
5114
  }
@@ -5909,7 +5914,7 @@ declare class TabHeadingCustomTemplateRefDirective {
5909
5914
  }
5910
5915
 
5911
5916
  /** @ignore */
5912
- declare class TabGroupComponent implements OnDestroy, AfterViewInit {
5917
+ declare class TabGroupComponent implements OnDestroy, AfterViewInit, AfterContentInit {
5913
5918
  private el;
5914
5919
  private changeDetectorRef;
5915
5920
  /** If true tabs will be placed vertically */
@@ -5925,13 +5930,17 @@ declare class TabGroupComponent implements OnDestroy, AfterViewInit {
5925
5930
  protected _vertical: boolean;
5926
5931
  constructor(el: ElementRef, changeDetectorRef: ChangeDetectorRef);
5927
5932
  ngAfterViewInit(): void;
5933
+ ngAfterContentInit(): void;
5934
+ private setInitialActiveTab;
5928
5935
  checkTraverse(): void;
5929
5936
  addTab(tab: TabComponent): void;
5930
5937
  selectTab(selectedTab: TabComponent): void;
5938
+ onKeyDown(event: KeyboardEvent): void;
5931
5939
  allowTraverse(): boolean;
5932
5940
  traverseRight(): void;
5933
5941
  traverseLeft(): void;
5934
5942
  private isTraverseLeftAllowed;
5943
+ private findEnabledTabIndex;
5935
5944
  private isTraverseRightAllowed;
5936
5945
  private getElementSize;
5937
5946
  private getNumberFromPixels;
@@ -5946,10 +5955,10 @@ declare class TabGroupComponent implements OnDestroy, AfterViewInit {
5946
5955
  /** @ignore */
5947
5956
  declare class TabComponent {
5948
5957
  private tabGroup;
5949
- private static nextId;
5950
- /** Unique id for the tab and its panel. */
5951
- readonly tabId: string;
5952
- readonly panelId: string;
5958
+ /** Unique identifier for the tab and its panel. Can be supplied by a consumer or generated automatically. */
5959
+ tabId: string;
5960
+ get tabControlId(): string;
5961
+ get panelId(): string;
5953
5962
  /** Tab header text */
5954
5963
  heading: string;
5955
5964
  /** If true tab can not be activated */
@@ -5964,13 +5973,14 @@ declare class TabComponent {
5964
5973
  deselected: EventEmitter<TabComponent>;
5965
5974
  addClass: boolean;
5966
5975
  role: string;
5976
+ get tabIndex(): 0 | -1;
5967
5977
  get idAttr(): string;
5968
5978
  get ariaLabelledbyAttr(): string;
5969
5979
  headingRef: TemplateRef<any>;
5970
5980
  protected _active: boolean;
5971
5981
  constructor(tabGroup: TabGroupComponent);
5972
5982
  static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
5973
- static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "nui-tab", never, { "heading": { "alias": "heading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "selected": "selected"; "deselected": "deselected"; }, never, ["*"], false, never>;
5983
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "nui-tab", never, { "tabId": { "alias": "tabId"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "selected": "selected"; "deselected": "deselected"; }, never, ["*"], false, never>;
5974
5984
  }
5975
5985
 
5976
5986
  /** Should be used to mark <ng-template> element as a template for tab heading */
@@ -5993,19 +6003,30 @@ declare class TabHeadingComponent {
5993
6003
  /** Tab active state toggle */
5994
6004
  set active(isActive: boolean);
5995
6005
  get active(): boolean;
5996
- /** Tab id */
5997
- tabId: string;
6006
+ /**
6007
+ * Identifier used to associate this tab with its consumer-owned panel.
6008
+ * Can be supplied by a consumer or generated automatically.
6009
+ */
6010
+ set tabId(tabId: string);
6011
+ get tabId(): string;
6012
+ /** ID of the panel controlled by this tab, when a consumer-owned panel exists. */
6013
+ ariaControls: string | null;
6014
+ /** Accessible name for tabs whose projected content is not sufficient. */
6015
+ ariaLabel: string | null;
6016
+ get tabControlId(): string;
6017
+ get panelId(): string;
5998
6018
  /** Event is fired when tab became active, $event:Tab equals to selected instance of Tab component */
5999
6019
  selected: EventEmitter<TabHeadingComponent>;
6000
6020
  protected _active: boolean;
6021
+ private _tabId;
6001
6022
  constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef);
6002
6023
  selectTab(): void;
6003
6024
  onKeyDown(event: KeyboardEvent): void;
6004
6025
  static ɵfac: i0.ɵɵFactoryDeclaration<TabHeadingComponent, never>;
6005
- static ɵcmp: i0.ɵɵComponentDeclaration<TabHeadingComponent, "nui-tab-heading", never, { "disabled": { "alias": "disabled"; "required": false; }; "active": { "alias": "active"; "required": false; }; "tabId": { "alias": "tabId"; "required": false; }; }, { "selected": "selected"; }, never, ["*"], false, never>;
6026
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabHeadingComponent, "nui-tab-heading", never, { "disabled": { "alias": "disabled"; "required": false; }; "active": { "alias": "active"; "required": false; }; "tabId": { "alias": "tabId"; "required": false; }; "ariaControls": { "alias": "ariaControls"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "selected": "selected"; }, never, ["*"], false, never>;
6006
6027
  }
6007
6028
 
6008
- declare class TabHeadingGroupComponent implements OnDestroy, AfterViewInit {
6029
+ declare class TabHeadingGroupComponent implements OnDestroy, AfterViewInit, AfterContentInit {
6009
6030
  private el;
6010
6031
  private changeDetectorRef;
6011
6032
  private ngZone;
@@ -6028,14 +6049,17 @@ declare class TabHeadingGroupComponent implements OnDestroy, AfterViewInit {
6028
6049
  private _changesSubscription;
6029
6050
  constructor(el: ElementRef, changeDetectorRef: ChangeDetectorRef, ngZone: NgZone);
6030
6051
  ngAfterViewInit(): void;
6052
+ ngAfterContentInit(): void;
6031
6053
  setActiveTab(): void;
6032
6054
  getActiveTab(): TabHeadingComponent;
6055
+ onKeyDown(event: KeyboardEvent): void;
6033
6056
  checkTraverse(): void;
6034
6057
  allowTraverse(): boolean;
6035
6058
  traverseRight(): void;
6036
6059
  traverseLeft(): void;
6037
6060
  private subscribeToSelection;
6038
6061
  private isTraverseLeftAllowed;
6062
+ private findEnabledTabIndex;
6039
6063
  private isTraverseRightAllowed;
6040
6064
  private getElementSize;
6041
6065
  private getNumberFromPixels;