@villedemontreal/angular-ui 16.3.0 → 17.1.1

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 (69) 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 +5 -5
  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 +32 -7
  44. package/esm2022/lib/modal/modal.mjs +10 -10
  45. package/esm2022/lib/modal/module.mjs +5 -5
  46. package/esm2022/lib/pagination/module.mjs +5 -5
  47. package/esm2022/lib/pagination/pagination.component.mjs +6 -6
  48. package/esm2022/lib/radio/module.mjs +5 -5
  49. package/esm2022/lib/radio/radio-group.component.mjs +8 -10
  50. package/esm2022/lib/radio/radio.component.mjs +10 -10
  51. package/esm2022/lib/snack-bar/module.mjs +5 -5
  52. package/esm2022/lib/snack-bar/simple-snack-bar.component.mjs +6 -6
  53. package/esm2022/lib/snack-bar/snack-bar-container.mjs +5 -5
  54. package/esm2022/lib/snack-bar/snack-bar-ref.mjs +1 -1
  55. package/esm2022/lib/snack-bar/snack-bar.mjs +6 -6
  56. package/esm2022/lib/summary/list-summary.component.mjs +7 -7
  57. package/esm2022/lib/summary/module.mjs +5 -5
  58. package/esm2022/lib/summary/summary.component.mjs +8 -8
  59. package/esm2022/lib/system-header/module.mjs +5 -5
  60. package/esm2022/lib/system-header/system-header.component.mjs +13 -13
  61. package/esm2022/lib/tabs/module.mjs +5 -5
  62. package/esm2022/lib/tabs/tabs.component.mjs +17 -17
  63. package/esm2022/lib/tag/module.mjs +5 -5
  64. package/esm2022/lib/tag/tag.component.mjs +5 -5
  65. package/fesm2022/villedemontreal-angular-ui.mjs +408 -384
  66. package/fesm2022/villedemontreal-angular-ui.mjs.map +1 -1
  67. package/lib/modal/modal-config.d.ts +5 -5
  68. package/lib/modal/modal-ref.d.ts +12 -0
  69. package/package.json +6 -6
@@ -3,8 +3,8 @@ import { ScrollStrategy } from '@angular/cdk/overlay';
3
3
  import { ElementRef, Injector, ViewContainerRef } from '@angular/core';
4
4
  export declare const FILTER_MODAL_WIDTH = "360px";
5
5
  export declare enum eModalDesktopWidthSize {
6
- SMALL = "bao-modal-sm",
7
- MEDIUM = "bao-modal-md",
6
+ SMALL = "bao-modal-sm",// 500px
7
+ MEDIUM = "bao-modal-md",// 800px
8
8
  LARGE = "bao-modal-lg"
9
9
  }
10
10
  export declare enum eModalVariant {
@@ -12,7 +12,7 @@ export declare enum eModalVariant {
12
12
  FILTER = "filter"
13
13
  }
14
14
  export declare enum eModalMobileWidthSize {
15
- FULL = "bao-modal-mobil-full",
15
+ FULL = "bao-modal-mobil-full",// Full width on mobile screen
16
16
  COMPACT = "bao-modal-mobil-compact"
17
17
  }
18
18
  export interface BaoModalConfig {
@@ -24,7 +24,7 @@ export interface BaoModalConfig {
24
24
  triggerElement?: ElementRef;
25
25
  }
26
26
  /** Options for where to set focus to automatically on dialog open */
27
- export type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
27
+ export type AutoFocusTarget = 'dialog' | 'modal' | 'first-tabbable' | 'first-heading';
28
28
  /** Valid ARIA roles for a dialog element. */
29
29
  export type ModalRole = 'dialog' | 'alertdialog';
30
30
  /** Possible overrides for a dialog's position. */
@@ -97,7 +97,7 @@ export declare class BaoModalInitialConfig<D = unknown> {
97
97
  /**
98
98
  * Where the dialog should focus on open.
99
99
  */
100
- autoFocus?: AutoFocusTarget | string;
100
+ autoFocus?: AutoFocusTarget;
101
101
  /**
102
102
  * Whether the dialog should restore focus to the
103
103
  * 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.3.0",
3
+ "version": "17.1.1",
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",