@villedemontreal/angular-ui 16.1.0 → 17.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.
Files changed (68) hide show
  1. package/esm2022/lib/alert/alert.component.mjs +16 -16
  2. package/esm2022/lib/alert/module.mjs +5 -5
  3. package/esm2022/lib/avatar/avatar.component.mjs +8 -8
  4. package/esm2022/lib/avatar/module.mjs +5 -5
  5. package/esm2022/lib/badge/badge.component.mjs +4 -4
  6. package/esm2022/lib/badge/module.mjs +5 -5
  7. package/esm2022/lib/bao.module.mjs +20 -16
  8. package/esm2022/lib/breadcrumb/breadcrumb.component.mjs +5 -5
  9. package/esm2022/lib/breadcrumb/module.mjs +5 -5
  10. package/esm2022/lib/button/button.component.mjs +5 -5
  11. package/esm2022/lib/button/module.mjs +5 -5
  12. package/esm2022/lib/card/card.component.mjs +16 -16
  13. package/esm2022/lib/card/module.mjs +5 -5
  14. package/esm2022/lib/checkbox/checkbox-group.component.mjs +5 -5
  15. package/esm2022/lib/checkbox/checkbox.component.mjs +8 -8
  16. package/esm2022/lib/checkbox/module.mjs +5 -5
  17. package/esm2022/lib/common-components/error-text/errorText.component.mjs +4 -4
  18. package/esm2022/lib/common-components/guiding-text/guidingText.component.mjs +4 -4
  19. package/esm2022/lib/common-components/label-text/labelText.component.mjs +4 -4
  20. package/esm2022/lib/common-components/module.mjs +5 -5
  21. package/esm2022/lib/common-components/title-text/titleText.component.mjs +4 -4
  22. package/esm2022/lib/core/colors.mjs +1 -1
  23. package/esm2022/lib/dropdown-menu/dropdown-menu.component.mjs +28 -28
  24. package/esm2022/lib/dropdown-menu/module.mjs +5 -5
  25. package/esm2022/lib/file/file-input.component.mjs +14 -13
  26. package/esm2022/lib/file/file-intl.mjs +7 -7
  27. package/esm2022/lib/file/file-preview.component.mjs +5 -5
  28. package/esm2022/lib/file/module.mjs +5 -5
  29. package/esm2022/lib/header-info/header-info.component.mjs +20 -20
  30. package/esm2022/lib/header-info/module.mjs +5 -5
  31. package/esm2022/lib/hyperlink/hyperlink.component.mjs +5 -5
  32. package/esm2022/lib/hyperlink/module.mjs +5 -5
  33. package/esm2022/lib/icon/bao-icon-registry.mjs +6 -6
  34. package/esm2022/lib/icon/icon.component.mjs +5 -5
  35. package/esm2022/lib/icon/module.mjs +5 -5
  36. package/esm2022/lib/list/list.component.mjs +16 -16
  37. package/esm2022/lib/list/module.mjs +5 -5
  38. package/esm2022/lib/message-bar/message-bar.component.mjs +9 -9
  39. package/esm2022/lib/message-bar/module.mjs +5 -5
  40. package/esm2022/lib/modal/modal-config.mjs +1 -1
  41. package/esm2022/lib/modal/modal-container.mjs +10 -10
  42. package/esm2022/lib/modal/modal-directives.mjs +6 -6
  43. package/esm2022/lib/modal/modal-ref.mjs +34 -7
  44. package/esm2022/lib/modal/modal.mjs +10 -10
  45. package/esm2022/lib/modal/module.mjs +5 -5
  46. package/esm2022/lib/radio/module.mjs +5 -5
  47. package/esm2022/lib/radio/radio-group.component.mjs +8 -10
  48. package/esm2022/lib/radio/radio.component.mjs +10 -10
  49. package/esm2022/lib/snack-bar/module.mjs +5 -5
  50. package/esm2022/lib/snack-bar/simple-snack-bar.component.mjs +6 -6
  51. package/esm2022/lib/snack-bar/snack-bar-container.mjs +5 -5
  52. package/esm2022/lib/snack-bar/snack-bar-ref.mjs +1 -1
  53. package/esm2022/lib/snack-bar/snack-bar.mjs +6 -6
  54. package/esm2022/lib/summary/list-summary.component.mjs +7 -7
  55. package/esm2022/lib/summary/module.mjs +5 -5
  56. package/esm2022/lib/summary/summary.component.mjs +8 -8
  57. package/esm2022/lib/system-header/module.mjs +5 -5
  58. package/esm2022/lib/system-header/system-header.component.mjs +13 -13
  59. package/esm2022/lib/tabs/module.mjs +5 -5
  60. package/esm2022/lib/tabs/tabs.component.mjs +17 -17
  61. package/esm2022/lib/tag/module.mjs +5 -5
  62. package/esm2022/lib/tag/tag.component.mjs +5 -5
  63. package/fesm2022/villedemontreal-angular-ui.mjs +3535 -3506
  64. package/fesm2022/villedemontreal-angular-ui.mjs.map +1 -1
  65. package/lib/bao.module.d.ts +2 -1
  66. package/lib/modal/modal-config.d.ts +5 -5
  67. package/lib/modal/modal-ref.d.ts +12 -0
  68. package/package.json +6 -6
@@ -19,8 +19,9 @@ import * as i17 from "./dropdown-menu/module";
19
19
  import * as i18 from "./file/module";
20
20
  import * as i19 from "./snack-bar/module";
21
21
  import * as i20 from "./system-header/module";
22
+ import * as i21 from "./message-bar/module";
22
23
  export declare class BaoModule {
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule, typeof i6.BaoModalModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i7.BaoTagModule, typeof i8.BaoHeaderInfoModule, typeof i9.BaoListModule, typeof i10.BaoCommonComponentsModule, typeof i11.BaoCheckboxModule, typeof i12.BaoRadioModule, typeof i13.BaoSummaryModule, typeof i14.BaoAvatarModule, typeof i15.BaoTabsModule, typeof i6.BaoModalModule, typeof i16.BaoHyperlinkModule, typeof i17.BaoDropdownMenuModule, typeof i18.BaoFileModule, typeof i19.BaoSnackBarModule, typeof i20.BaoSystemHeaderModule]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule, typeof i6.BaoModalModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i7.BaoTagModule, typeof i8.BaoHeaderInfoModule, typeof i9.BaoListModule, typeof i10.BaoCommonComponentsModule, typeof i11.BaoCheckboxModule, typeof i12.BaoRadioModule, typeof i13.BaoSummaryModule, typeof i14.BaoAvatarModule, typeof i15.BaoTabsModule, typeof i6.BaoModalModule, typeof i16.BaoHyperlinkModule, typeof i17.BaoDropdownMenuModule, typeof i18.BaoFileModule, typeof i19.BaoSnackBarModule, typeof i20.BaoSystemHeaderModule, typeof i21.BaoMessageBarModule]>;
25
26
  static ɵinj: i0.ɵɵInjectorDeclaration<BaoModule>;
26
27
  }
@@ -2,12 +2,12 @@ import { ViewContainerRef, Injector } from '@angular/core';
2
2
  import { Direction } from '@angular/cdk/bidi';
3
3
  import { ScrollStrategy } from '@angular/cdk/overlay';
4
4
  export declare enum eModalDesktopWidthSize {
5
- SMALL = "bao-modal-sm",
6
- MEDIUM = "bao-modal-md",
5
+ SMALL = "bao-modal-sm",// 500px
6
+ MEDIUM = "bao-modal-md",// 800px
7
7
  LARGE = "bao-modal-lg"
8
8
  }
9
9
  export declare enum eModalMobileWidthSize {
10
- FULL = "bao-modal-mobil-full",
10
+ FULL = "bao-modal-mobil-full",// Full width on mobile screen
11
11
  COMPACT = "bao-modal-mobil-compact"
12
12
  }
13
13
  export interface BaoModalConfig {
@@ -17,7 +17,7 @@ export interface BaoModalConfig {
17
17
  ariaLabelledBy?: string;
18
18
  }
19
19
  /** Options for where to set focus to automatically on dialog open */
20
- export type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
20
+ export type AutoFocusTarget = 'dialog' | 'modal' | 'first-tabbable' | 'first-heading';
21
21
  /** Valid ARIA roles for a dialog element. */
22
22
  export type ModalRole = 'dialog' | 'alertdialog';
23
23
  /** Possible overrides for a dialog's position. */
@@ -86,7 +86,7 @@ export declare class BaoModalInitialConfig<D = unknown> {
86
86
  /**
87
87
  * Where the dialog should focus on open.
88
88
  */
89
- autoFocus?: AutoFocusTarget | string;
89
+ autoFocus?: AutoFocusTarget;
90
90
  /**
91
91
  * Whether the dialog should restore focus to the
92
92
  * previously-focused element, after it's closed.
@@ -83,6 +83,18 @@ export declare class BaoModalRef<T, R = unknown> {
83
83
  private _finishModalClose;
84
84
  /** Fetches the position strategy object from the overlay ref. */
85
85
  private _getPositionStrategy;
86
+ /**
87
+ * Applies the position strategy to the overlay.
88
+ *
89
+ * This method sets the position of the modal based on the provided `position` configuration.
90
+ * It determines whether to apply the position to the vertical or horizontal axis based on the
91
+ * `axis` parameter.
92
+ *
93
+ * @param position The position configuration for the modal.
94
+ * @param strategy The position strategy to be applied.
95
+ * @param axis The axis to apply the position (`'horizontal' | 'vertical'`)
96
+ */
97
+ private applyPositionStrategy;
86
98
  }
87
99
  /**
88
100
  * Closes the modal with the specified interaction type. This is currently not part of
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "16.1.0",
3
+ "version": "17.0.0",
4
4
  "dependencies": {
5
- "tslib": "^2.3.0"
5
+ "tslib": "^2.7.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/cdk": ">=16.0.0 <17.0.0",
9
- "@angular/common": ">=16.0.0 <17.0.0",
10
- "@angular/core": ">=16.0.0 <17.0.0",
11
- "@angular/forms": ">=16.0.0 <17.0.0"
8
+ "@angular/cdk": ">=16.0.0 <18.0.0",
9
+ "@angular/common": ">=16.0.0 <18.0.0",
10
+ "@angular/core": ">=16.0.0 <18.0.0",
11
+ "@angular/forms": ">=16.0.0 <18.0.0"
12
12
  },
13
13
  "module": "fesm2022/villedemontreal-angular-ui.mjs",
14
14
  "typings": "index.d.ts",