@villedemontreal/angular-ui 20.0.0 → 21.0.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,23 +1,23 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "20.0.0",
3
+ "version": "21.0.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.7.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/cdk": ">=20.0.0 <21.0.0",
9
- "@angular/common": ">=20.0.0 <21.0.0",
10
- "@angular/core": ">=20.0.0 <21.0.0",
11
- "@angular/forms": ">=20.0.0 <21.0.0"
8
+ "@angular/cdk": ">=21.0.0 <22.0.0",
9
+ "@angular/common": ">=21.0.0 <22.0.0",
10
+ "@angular/core": ">=21.0.0 <22.0.0",
11
+ "@angular/forms": ">=21.0.0 <22.0.0"
12
12
  },
13
13
  "module": "fesm2022/villedemontreal-angular-ui.mjs",
14
- "typings": "index.d.ts",
14
+ "typings": "types/villedemontreal-angular-ui.d.ts",
15
15
  "exports": {
16
16
  "./package.json": {
17
17
  "default": "./package.json"
18
18
  },
19
19
  ".": {
20
- "types": "./index.d.ts",
20
+ "types": "./types/villedemontreal-angular-ui.d.ts",
21
21
  "default": "./fesm2022/villedemontreal-angular-ui.mjs"
22
22
  }
23
23
  },
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnChanges, EventEmitter, SimpleChanges, OnDestroy, ElementRef, Renderer2, AfterContentInit, ChangeDetectorRef, AfterViewInit, ViewContainerRef, Injector, NgZone, ComponentRef, EmbeddedViewRef, InjectionToken, Type, TemplateRef, OnInit, QueryList, Optional } from '@angular/core';
2
+ import { OnChanges, EventEmitter, SimpleChanges, OnDestroy, ElementRef, Renderer2, AfterContentInit, AfterViewInit, ViewContainerRef, Injector, ChangeDetectorRef, NgZone, ComponentRef, EmbeddedViewRef, InjectionToken, Type, TemplateRef, OnInit, QueryList, Optional } from '@angular/core';
3
3
  import * as i2 from '@angular/common';
4
4
  import { DomSanitizer } from '@angular/platform-browser';
5
5
  import * as i3 from '@angular/cdk/observers';
@@ -166,7 +166,6 @@ declare class BaoIconModule {
166
166
 
167
167
  declare class BaoButtonComponent implements AfterContentInit {
168
168
  private elementRef;
169
- private cdr;
170
169
  /**
171
170
  * The display type of the button
172
171
  */
@@ -203,7 +202,7 @@ declare class BaoButtonComponent implements AfterContentInit {
203
202
  * If the icon is on the right of the label, the loading spinner will need to be on the right of the label
204
203
  */
205
204
  rightIcon: boolean;
206
- constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
205
+ constructor(elementRef: ElementRef<HTMLElement>);
207
206
  get nativeElement(): HTMLElement;
208
207
  ngAfterContentInit(): void;
209
208
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoButtonComponent, never>;
@@ -446,11 +445,6 @@ declare class BaoModalInitialConfig<D = unknown> {
446
445
  closeOnNavigation?: boolean;
447
446
  }
448
447
 
449
- /** Event that captures the state of modal container animations. */
450
- interface DialogAnimationEvent {
451
- state: 'opened' | 'opening' | 'closing' | 'closed';
452
- totalTime: number;
453
- }
454
448
  /**
455
449
  * Throws an exception for the case when a ComponentPortal is
456
450
  * attached to a DomPortalOutlet without an origin.
@@ -473,7 +467,7 @@ declare abstract class _BaoModalContainerBase extends BasePortalOutlet {
473
467
  /** The portal outlet inside of this container into which the modal content will be loaded. */
474
468
  _portalOutlet: CdkPortalOutlet;
475
469
  /** Emits when an animation state changes. */
476
- _animationStateChanged: EventEmitter<DialogAnimationEvent>;
470
+ _animationStateChanged: any;
477
471
  /**
478
472
  * Type of interaction that led to the modal being closed. This is used to determine
479
473
  * whether the focus style will be applied when returning focus to its original location
@@ -1170,7 +1164,7 @@ declare class BaoRadioButtonGroupComponent implements AfterContentInit, ControlV
1170
1164
  private showAriaDescribedBy;
1171
1165
  private onTouch;
1172
1166
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioButtonGroupComponent, never>;
1173
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonGroupComponent, "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", ["baoRadioGroup"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; }, ["staticContainer"], ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false, never>;
1167
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonGroupComponent, "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", ["baoRadioGroup"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; }, ["_radios"], ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false, never>;
1174
1168
  }
1175
1169
 
1176
1170
  declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, OnDestroy {
@@ -1399,6 +1393,10 @@ declare class BaoTablistComponent implements AfterViewInit, AfterContentInit, On
1399
1393
  * Unique ID for every instance of BaoTablist component
1400
1394
  */
1401
1395
  private uniqueId;
1396
+ /**
1397
+ * Subscriptions to tab header click events
1398
+ */
1399
+ private tabClickSubscriptions;
1402
1400
  constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1403
1401
  get nativeElement(): HTMLElement;
1404
1402
  get tabs(): HTMLCollection;
@@ -1434,6 +1432,7 @@ declare class BaoTabsContainer implements AfterViewInit, AfterContentInit, OnDes
1434
1432
  tablist: BaoTablistComponent;
1435
1433
  private panelIdPrefix;
1436
1434
  private tabIdPrefix;
1435
+ private activeTabChangeSub;
1437
1436
  constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1438
1437
  get tabs(): HTMLCollection;
1439
1438
  get panels(): NodeListOf<Element>;
@@ -1794,7 +1793,7 @@ declare class BaoFileInputComponent implements AfterContentInit, AfterViewInit,
1794
1793
  }
1795
1794
  declare class BaoFileDropDirective {
1796
1795
  fileDrop: EventEmitter<File>;
1797
- private _isDragOver;
1796
+ protected _isDragOver: boolean;
1798
1797
  onDragOver(event: DragEvent): void;
1799
1798
  onDragLeave(event: DragEvent): void;
1800
1799
  onDrop(event: DragEvent): void;