@villedemontreal/angular-ui 16.2.0 → 16.3.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.
@@ -1,11 +1,16 @@
1
- import { ViewContainerRef, Injector } from '@angular/core';
2
1
  import { Direction } from '@angular/cdk/bidi';
3
2
  import { ScrollStrategy } from '@angular/cdk/overlay';
3
+ import { ElementRef, Injector, ViewContainerRef } from '@angular/core';
4
+ export declare const FILTER_MODAL_WIDTH = "360px";
4
5
  export declare enum eModalDesktopWidthSize {
5
6
  SMALL = "bao-modal-sm",
6
7
  MEDIUM = "bao-modal-md",
7
8
  LARGE = "bao-modal-lg"
8
9
  }
10
+ export declare enum eModalVariant {
11
+ GLOBAL = "global",
12
+ FILTER = "filter"
13
+ }
9
14
  export declare enum eModalMobileWidthSize {
10
15
  FULL = "bao-modal-mobil-full",
11
16
  COMPACT = "bao-modal-mobil-compact"
@@ -15,6 +20,8 @@ export interface BaoModalConfig {
15
20
  mobileSize?: eModalMobileWidthSize;
16
21
  data?: unknown;
17
22
  ariaLabelledBy?: string;
23
+ variant?: eModalVariant;
24
+ triggerElement?: ElementRef;
18
25
  }
19
26
  /** Options for where to set focus to automatically on dialog open */
20
27
  export type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
@@ -83,6 +90,10 @@ export declare class BaoModalInitialConfig<D = unknown> {
83
90
  ariaLabelledBy?: string | null;
84
91
  /** Aria label to assign to the dialog element. */
85
92
  ariaLabel?: string | null;
93
+ /** Modal variant (default or filter). */
94
+ variant?: eModalVariant;
95
+ /** Trigger element for connected positioning (used with filter variant). */
96
+ triggerElement?: ElementRef;
86
97
  /**
87
98
  * Where the dialog should focus on open.
88
99
  */
@@ -1,9 +1,9 @@
1
+ import { ComponentType, Overlay, OverlayContainer } from '@angular/cdk/overlay';
1
2
  import { InjectionToken, Injector, OnDestroy, TemplateRef, Type } from '@angular/core';
2
3
  import { Observable, Subject } from 'rxjs';
3
- import { BaoModalContainer, _BaoModalContainerBase } from './modal-container';
4
- import { BaoModalRef } from './modal-ref';
5
4
  import { BaoModalConfig } from './modal-config';
6
- import { ComponentType, Overlay, OverlayContainer } from '@angular/cdk/overlay';
5
+ import { _BaoModalContainerBase, BaoModalContainer } from './modal-container';
6
+ import { BaoModalRef } from './modal-ref';
7
7
  import * as i0 from "@angular/core";
8
8
  /** Injection token that can be used to access the data that was passed in to a modal. */
9
9
  export declare const BAO_MODAL_DATA: InjectionToken<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "16.2.0",
3
+ "version": "16.3.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },