@odx/angular 1.0.0-rc.3 → 1.0.0-rc.4

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 (220) hide show
  1. package/cdk/dynamic-view/lib/dynamic-view.component.d.ts +3 -3
  2. package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +3 -1
  3. package/cdk/dynamic-view/lib/helpers/create-projectable-nodes.d.ts +2 -0
  4. package/cdk/dynamic-view/lib/helpers/index.d.ts +1 -0
  5. package/cdk/dynamic-view/lib/models/dynamic-view-options.d.ts +1 -0
  6. package/components/chip/README.md +3 -0
  7. package/components/chip/index.d.ts +2 -0
  8. package/components/chip/lib/chip.component.d.ts +15 -0
  9. package/components/chip/lib/models/chip-size.d.ts +5 -0
  10. package/components/chip/lib/models/chip-variant.d.ts +7 -0
  11. package/components/chip/lib/models/index.d.ts +2 -0
  12. package/components/circular-progress/README.md +3 -0
  13. package/components/circular-progress/index.d.ts +2 -0
  14. package/components/circular-progress/lib/circular-progress.component.d.ts +28 -0
  15. package/components/circular-progress/lib/models/circular-progress-size.d.ts +7 -0
  16. package/components/circular-progress/lib/models/index.d.ts +1 -0
  17. package/components/loading-spinner/README.md +3 -0
  18. package/components/loading-spinner/index.d.ts +3 -0
  19. package/components/loading-spinner/lib/loading-spinner.component.d.ts +15 -0
  20. package/components/loading-spinner/lib/loading-spinner.directive.d.ts +26 -0
  21. package/components/loading-spinner/lib/loading-spinner.module.d.ts +9 -0
  22. package/components/loading-spinner/lib/loading-spinner.service.d.ts +9 -0
  23. package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +6 -1
  24. package/components/main-menu/lib/main-menu.component.d.ts +3 -1
  25. package/components/modal/lib/components/modal-header/modal-header.component.d.ts +1 -0
  26. package/components/modal/lib/modal.component.d.ts +2 -1
  27. package/components/modal/lib/modal.directive.d.ts +8 -4
  28. package/components/modal/lib/models/modal-ref.d.ts +4 -2
  29. package/components/progress/README.md +3 -0
  30. package/components/progress/index.d.ts +1 -0
  31. package/components/progress/lib/progress.component.d.ts +14 -0
  32. package/esm2020/animations/lib/fade.mjs +2 -5
  33. package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +6 -6
  34. package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +3 -3
  35. package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +3 -3
  36. package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +23 -14
  37. package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +20 -8
  38. package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +3 -3
  39. package/esm2020/cdk/dynamic-view/lib/helpers/create-projectable-nodes.mjs +9 -0
  40. package/esm2020/cdk/dynamic-view/lib/helpers/index.mjs +2 -1
  41. package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +3 -2
  42. package/esm2020/cdk/dynamic-view/lib/models/dynamic-view-options.mjs +1 -1
  43. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +3 -3
  44. package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +3 -3
  45. package/esm2020/cdk/expandable/lib/expandable.module.mjs +4 -4
  46. package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +6 -6
  47. package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +3 -3
  48. package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +4 -4
  49. package/esm2020/components/accordion/lib/accordion.component.mjs +3 -3
  50. package/esm2020/components/accordion/lib/accordion.module.mjs +4 -4
  51. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +3 -3
  52. package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +3 -3
  53. package/esm2020/components/action-group/action-group.component.mjs +3 -3
  54. package/esm2020/components/area-header/area-header.component.mjs +3 -3
  55. package/esm2020/components/area-header/area-header.module.mjs +4 -4
  56. package/esm2020/components/area-header/directives/area-header-content.directive.mjs +3 -3
  57. package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +3 -3
  58. package/esm2020/components/avatar/lib/avatar.component.mjs +3 -3
  59. package/esm2020/components/badge/lib/badge.component.mjs +3 -3
  60. package/esm2020/components/badge/lib/badge.directive.mjs +3 -3
  61. package/esm2020/components/button/lib/button.component.mjs +3 -3
  62. package/esm2020/components/button-group/lib/button-group.component.mjs +3 -3
  63. package/esm2020/components/checkbox/lib/checkbox.component.mjs +3 -3
  64. package/esm2020/components/chip/index.mjs +3 -0
  65. package/esm2020/components/chip/lib/chip.component.mjs +54 -0
  66. package/esm2020/components/chip/lib/models/chip-size.mjs +5 -0
  67. package/esm2020/components/chip/lib/models/chip-variant.mjs +7 -0
  68. package/esm2020/components/chip/lib/models/index.mjs +3 -0
  69. package/esm2020/components/chip/odx-angular-components-chip.mjs +5 -0
  70. package/esm2020/components/circular-progress/index.mjs +3 -0
  71. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +91 -0
  72. package/esm2020/components/circular-progress/lib/models/circular-progress-size.mjs +7 -0
  73. package/esm2020/components/circular-progress/lib/models/index.mjs +2 -0
  74. package/esm2020/components/circular-progress/odx-angular-components-circular-progress.mjs +5 -0
  75. package/esm2020/components/content-box/lib/content-box.component.mjs +3 -3
  76. package/esm2020/components/content-box/lib/content-box.module.mjs +4 -4
  77. package/esm2020/components/content-box/lib/directives/content-box-footer-directive.mjs +3 -3
  78. package/esm2020/components/content-box/lib/directives/content-box-header-directive.mjs +3 -3
  79. package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +3 -3
  80. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +3 -3
  81. package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +3 -3
  82. package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +3 -3
  83. package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +3 -3
  84. package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +3 -3
  85. package/esm2020/components/form-field/lib/directives/form.directive.mjs +3 -3
  86. package/esm2020/components/form-field/lib/form-field.component.mjs +3 -3
  87. package/esm2020/components/form-field/lib/form-field.module.mjs +4 -4
  88. package/esm2020/components/form-field/lib/form-field.service.mjs +3 -3
  89. package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +3 -3
  90. package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +3 -3
  91. package/esm2020/components/header/lib/directives/header-title.directive.mjs +3 -3
  92. package/esm2020/components/header/lib/header.component.mjs +3 -3
  93. package/esm2020/components/header/lib/header.module.mjs +4 -4
  94. package/esm2020/components/icon/lib/icon.component.mjs +3 -3
  95. package/esm2020/components/link/link.directive.mjs +3 -3
  96. package/esm2020/components/loading-spinner/index.mjs +4 -0
  97. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +58 -0
  98. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +87 -0
  99. package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +19 -0
  100. package/esm2020/components/loading-spinner/lib/loading-spinner.service.mjs +17 -0
  101. package/esm2020/components/loading-spinner/odx-angular-components-loading-spinner.mjs +5 -0
  102. package/esm2020/components/logo/logo.directive.mjs +3 -3
  103. package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +3 -3
  104. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +20 -9
  105. package/esm2020/components/main-menu/lib/main-menu.component.mjs +7 -6
  106. package/esm2020/components/main-menu/lib/main-menu.module.mjs +4 -4
  107. package/esm2020/components/main-menu/lib/main-menu.service.mjs +3 -3
  108. package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +3 -3
  109. package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +10 -8
  110. package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +3 -3
  111. package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +3 -3
  112. package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +3 -3
  113. package/esm2020/components/modal/lib/modal.component.mjs +11 -7
  114. package/esm2020/components/modal/lib/modal.directive.mjs +24 -6
  115. package/esm2020/components/modal/lib/modal.module.mjs +4 -4
  116. package/esm2020/components/modal/lib/modal.service.mjs +3 -3
  117. package/esm2020/components/modal/lib/models/modal-ref.mjs +9 -2
  118. package/esm2020/components/modal/lib/services/open-modal-manager.service.mjs +3 -3
  119. package/esm2020/components/progress/index.mjs +2 -0
  120. package/esm2020/components/progress/lib/progress.component.mjs +51 -0
  121. package/esm2020/components/progress/odx-angular-components-progress.mjs +5 -0
  122. package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +3 -3
  123. package/esm2020/components/radio-group/lib/radio-group.component.mjs +3 -3
  124. package/esm2020/components/radio-group/lib/radio-group.module.mjs +4 -4
  125. package/esm2020/components/switch/lib/switch.component.mjs +3 -3
  126. package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  127. package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +3 -3
  128. package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +4 -4
  129. package/esm2020/lib/controllers/controller.mjs +11 -10
  130. package/esm2020/lib/controllers/disabled.controller.mjs +3 -3
  131. package/esm2020/lib/controllers/readonly.controller.mjs +3 -3
  132. package/esm2020/lib/core.module.mjs +4 -4
  133. package/esm2020/lib/directives/click-outside.directive.mjs +3 -3
  134. package/esm2020/lib/services/window-ref.mjs +3 -3
  135. package/fesm2015/odx-angular-animations.mjs +1 -1
  136. package/fesm2015/odx-angular-animations.mjs.map +1 -1
  137. package/fesm2015/odx-angular-cdk-checkbox-control.mjs +5 -5
  138. package/fesm2015/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  139. package/fesm2015/odx-angular-cdk-custom-form-control.mjs +6 -6
  140. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +54 -25
  141. package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  142. package/fesm2015/odx-angular-cdk-expandable.mjs +10 -10
  143. package/fesm2015/odx-angular-cdk-radio-group-control.mjs +12 -12
  144. package/fesm2015/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  145. package/fesm2015/odx-angular-components-accordion.mjs +13 -13
  146. package/fesm2015/odx-angular-components-action-group.mjs +3 -3
  147. package/fesm2015/odx-angular-components-area-header.mjs +13 -13
  148. package/fesm2015/odx-angular-components-avatar.mjs +3 -3
  149. package/fesm2015/odx-angular-components-badge.mjs +6 -6
  150. package/fesm2015/odx-angular-components-button-group.mjs +3 -3
  151. package/fesm2015/odx-angular-components-button.mjs +3 -3
  152. package/fesm2015/odx-angular-components-checkbox.mjs +3 -3
  153. package/fesm2015/odx-angular-components-chip.mjs +71 -0
  154. package/fesm2015/odx-angular-components-chip.mjs.map +1 -0
  155. package/fesm2015/odx-angular-components-circular-progress.mjs +103 -0
  156. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -0
  157. package/fesm2015/odx-angular-components-content-box.mjs +13 -13
  158. package/fesm2015/odx-angular-components-form-field.mjs +34 -34
  159. package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
  160. package/fesm2015/odx-angular-components-header.mjs +13 -13
  161. package/fesm2015/odx-angular-components-icon.mjs +3 -3
  162. package/fesm2015/odx-angular-components-link.mjs +3 -3
  163. package/fesm2015/odx-angular-components-loading-spinner.mjs +173 -0
  164. package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -0
  165. package/fesm2015/odx-angular-components-logo.mjs +3 -3
  166. package/fesm2015/odx-angular-components-main-menu.mjs +34 -23
  167. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  168. package/fesm2015/odx-angular-components-modal.mjs +70 -42
  169. package/fesm2015/odx-angular-components-modal.mjs.map +1 -1
  170. package/fesm2015/odx-angular-components-progress.mjs +57 -0
  171. package/fesm2015/odx-angular-components-progress.mjs.map +1 -0
  172. package/fesm2015/odx-angular-components-radio-group.mjs +10 -10
  173. package/fesm2015/odx-angular-components-switch.mjs +3 -3
  174. package/fesm2015/odx-angular-components-toggle-button-group.mjs +10 -10
  175. package/fesm2015/odx-angular.mjs +27 -26
  176. package/fesm2015/odx-angular.mjs.map +1 -1
  177. package/fesm2020/odx-angular-animations.mjs +1 -4
  178. package/fesm2020/odx-angular-animations.mjs.map +1 -1
  179. package/fesm2020/odx-angular-cdk-checkbox-control.mjs +5 -5
  180. package/fesm2020/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  181. package/fesm2020/odx-angular-cdk-custom-form-control.mjs +6 -6
  182. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +52 -23
  183. package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  184. package/fesm2020/odx-angular-cdk-expandable.mjs +10 -10
  185. package/fesm2020/odx-angular-cdk-radio-group-control.mjs +12 -12
  186. package/fesm2020/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  187. package/fesm2020/odx-angular-components-accordion.mjs +13 -13
  188. package/fesm2020/odx-angular-components-action-group.mjs +3 -3
  189. package/fesm2020/odx-angular-components-area-header.mjs +13 -13
  190. package/fesm2020/odx-angular-components-avatar.mjs +3 -3
  191. package/fesm2020/odx-angular-components-badge.mjs +6 -6
  192. package/fesm2020/odx-angular-components-button-group.mjs +3 -3
  193. package/fesm2020/odx-angular-components-button.mjs +3 -3
  194. package/fesm2020/odx-angular-components-checkbox.mjs +3 -3
  195. package/fesm2020/odx-angular-components-chip.mjs +71 -0
  196. package/fesm2020/odx-angular-components-chip.mjs.map +1 -0
  197. package/fesm2020/odx-angular-components-circular-progress.mjs +103 -0
  198. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -0
  199. package/fesm2020/odx-angular-components-content-box.mjs +13 -13
  200. package/fesm2020/odx-angular-components-form-field.mjs +34 -34
  201. package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
  202. package/fesm2020/odx-angular-components-header.mjs +13 -13
  203. package/fesm2020/odx-angular-components-icon.mjs +3 -3
  204. package/fesm2020/odx-angular-components-link.mjs +3 -3
  205. package/fesm2020/odx-angular-components-loading-spinner.mjs +172 -0
  206. package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -0
  207. package/fesm2020/odx-angular-components-logo.mjs +3 -3
  208. package/fesm2020/odx-angular-components-main-menu.mjs +34 -23
  209. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  210. package/fesm2020/odx-angular-components-modal.mjs +69 -41
  211. package/fesm2020/odx-angular-components-modal.mjs.map +1 -1
  212. package/fesm2020/odx-angular-components-progress.mjs +57 -0
  213. package/fesm2020/odx-angular-components-progress.mjs.map +1 -0
  214. package/fesm2020/odx-angular-components-radio-group.mjs +10 -10
  215. package/fesm2020/odx-angular-components-switch.mjs +3 -3
  216. package/fesm2020/odx-angular-components-toggle-button-group.mjs +10 -10
  217. package/fesm2020/odx-angular.mjs +27 -26
  218. package/fesm2020/odx-angular.mjs.map +1 -1
  219. package/lib/controllers/controller.d.ts +1 -2
  220. package/package.json +35 -2
@@ -0,0 +1,172 @@
1
+ import { __decorate, __metadata } from 'tslib';
2
+ import { trigger, transition, useAnimation } from '@angular/animations';
3
+ import * as i0 from '@angular/core';
4
+ import { Injectable, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ElementRef, Renderer2, Injector, Directive, NgModule } from '@angular/core';
5
+ import { WindowRef, CoreModule } from '@odx/angular';
6
+ import { fadeIn, fadeOut } from '@odx/angular/animations';
7
+ import { CircularProgressComponent } from '@odx/angular/components/circular-progress';
8
+ import { CSSModifier, CSSComponent } from '@odx/angular/internal';
9
+ import { injectElement, px, Transform } from '@odx/angular/utils';
10
+ import { Subject } from 'rxjs';
11
+ import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
12
+ import { DynamicViewService } from '@odx/angular/cdk/dynamic-view';
13
+
14
+ class LoadingSpinnerService {
15
+ constructor() {
16
+ this.spinnerDestroyed$ = new Subject();
17
+ }
18
+ ngOnDestroy() {
19
+ this.spinnerDestroyed$.complete();
20
+ }
21
+ }
22
+ LoadingSpinnerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
+ LoadingSpinnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerService });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerService, decorators: [{
25
+ type: Injectable
26
+ }] });
27
+
28
+ const BROWSER_TRANSPARENT_COLOR = 'rgba(0, 0, 0, 0)';
29
+ let LoadingSpinnerComponent = class LoadingSpinnerComponent {
30
+ constructor() {
31
+ this.spinnerService = inject(LoadingSpinnerService);
32
+ this.windowRef = inject(WindowRef);
33
+ this.backgroundColor = null;
34
+ this.element = injectElement();
35
+ this.autoColor = false;
36
+ }
37
+ animationFinished({ toState }) {
38
+ if (toState === 'void') {
39
+ this.spinnerService.spinnerDestroyed$.next();
40
+ }
41
+ }
42
+ ngOnInit() {
43
+ this.backgroundColor = this.resolveBackgroundColor(this.element.nativeElement);
44
+ }
45
+ resolveBackgroundColor(element) {
46
+ const { backgroundColor } = this.windowRef.nativeWindow.getComputedStyle(element);
47
+ if (backgroundColor !== BROWSER_TRANSPARENT_COLOR) {
48
+ return backgroundColor;
49
+ }
50
+ if (element.parentElement) {
51
+ return this.resolveBackgroundColor(element.parentElement);
52
+ }
53
+ return null;
54
+ }
55
+ };
56
+ LoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
57
+ LoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: LoadingSpinnerComponent, isStandalone: true, selector: "odx-loading-spinner", inputs: { autoColor: "autoColor" }, host: { listeners: { "@hostAnimation.done": "animationFinished($event)" }, properties: { "@hostAnimation": "true" } }, ngImport: i0, template: "<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n", dependencies: [{ kind: "component", type: CircularProgressComponent, selector: "odx-circular-progress", inputs: ["stroke", "size", "value"] }], animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
58
+ __decorate([
59
+ CSSModifier(),
60
+ __metadata("design:type", Object)
61
+ ], LoadingSpinnerComponent.prototype, "autoColor", void 0);
62
+ LoadingSpinnerComponent = __decorate([
63
+ CSSComponent('loading-spinner')
64
+ ], LoadingSpinnerComponent);
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{
66
+ type: Component,
67
+ args: [{ standalone: true, selector: 'odx-loading-spinner', imports: [CircularProgressComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
68
+ '[@hostAnimation]': 'true',
69
+ '(@hostAnimation.done)': 'animationFinished($event)',
70
+ }, animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])], template: "<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n" }]
71
+ }], propDecorators: { autoColor: [{
72
+ type: Input
73
+ }] } });
74
+
75
+ class LoadingSpinnerDirective {
76
+ constructor() {
77
+ this.dynamicViewService = inject(DynamicViewService);
78
+ this.hostElement = inject(ElementRef);
79
+ this.renderer = inject(Renderer2);
80
+ this.spinnerService = inject(LoadingSpinnerService);
81
+ this.injector = inject(Injector);
82
+ this.windowRef = inject(WindowRef);
83
+ this.parentMinHeight = 0;
84
+ this.viewRef = null;
85
+ this.autoColor = false;
86
+ this.spinnerService.spinnerDestroyed$.subscribe(() => this.resetParentElement());
87
+ }
88
+ set isLoading(value) {
89
+ if (value) {
90
+ this.setParent();
91
+ this.appendSpinner();
92
+ }
93
+ else {
94
+ this.viewRef?.destroy();
95
+ }
96
+ }
97
+ set minHeight(value) {
98
+ this.parentMinHeight = coerceNumberProperty(value);
99
+ this.setParentHeight();
100
+ }
101
+ setParent() {
102
+ this.renderer.addClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');
103
+ this.setParentHeight();
104
+ if (this.hasStaticPosition()) {
105
+ this.renderer.setStyle(this.hostElement.nativeElement, 'position', 'relative');
106
+ }
107
+ }
108
+ setParentHeight() {
109
+ this.renderer.setStyle(this.hostElement.nativeElement, 'minHeight', px(this.parentMinHeight));
110
+ }
111
+ appendSpinner() {
112
+ this.viewRef = this.dynamicViewService.createView(LoadingSpinnerComponent, { injector: this.injector, context: { autoColor: this.autoColor } });
113
+ this.renderer.appendChild(this.hostElement.nativeElement, this.viewRef.getElement());
114
+ }
115
+ resetParentElement() {
116
+ this.renderer.removeClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');
117
+ this.renderer.removeStyle(this.hostElement.nativeElement, 'minHeight');
118
+ this.renderer.removeStyle(this.hostElement.nativeElement, 'position');
119
+ }
120
+ hasStaticPosition() {
121
+ return this.windowRef.nativeWindow.getComputedStyle(this.hostElement.nativeElement).position === 'static';
122
+ }
123
+ }
124
+ LoadingSpinnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
125
+ LoadingSpinnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: LoadingSpinnerDirective, isStandalone: true, selector: "[odxLoadingSpinner]", inputs: { autoColor: ["odxLoadingSpinnerAutoColor", "autoColor"], isLoading: ["odxLoadingSpinner", "isLoading"], minHeight: ["odxLoadingSpinnerMinHeight", "minHeight"] }, providers: [LoadingSpinnerService], ngImport: i0 });
126
+ __decorate([
127
+ Transform(coerceBooleanProperty),
128
+ __metadata("design:type", Object)
129
+ ], LoadingSpinnerDirective.prototype, "autoColor", void 0);
130
+ __decorate([
131
+ Transform(coerceNumberProperty),
132
+ __metadata("design:type", Object),
133
+ __metadata("design:paramtypes", [Object])
134
+ ], LoadingSpinnerDirective.prototype, "minHeight", null);
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerDirective, decorators: [{
136
+ type: Directive,
137
+ args: [{
138
+ selector: '[odxLoadingSpinner]',
139
+ standalone: true,
140
+ providers: [LoadingSpinnerService],
141
+ }]
142
+ }], ctorParameters: function () { return []; }, propDecorators: { autoColor: [{
143
+ type: Input,
144
+ args: ['odxLoadingSpinnerAutoColor']
145
+ }], isLoading: [{
146
+ type: Input,
147
+ args: ['odxLoadingSpinner']
148
+ }], minHeight: [{
149
+ type: Input,
150
+ args: ['odxLoadingSpinnerMinHeight']
151
+ }] } });
152
+
153
+ const modules = [LoadingSpinnerComponent, LoadingSpinnerDirective];
154
+ class LoadingSpinnerModule {
155
+ }
156
+ LoadingSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
157
+ LoadingSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, LoadingSpinnerDirective], exports: [CoreModule, LoadingSpinnerComponent, LoadingSpinnerDirective] });
158
+ LoadingSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, CoreModule] });
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LoadingSpinnerModule, decorators: [{
160
+ type: NgModule,
161
+ args: [{
162
+ imports: modules,
163
+ exports: [CoreModule, ...modules],
164
+ }]
165
+ }] });
166
+
167
+ /**
168
+ * Generated bundle index. Do not edit.
169
+ */
170
+
171
+ export { LoadingSpinnerComponent, LoadingSpinnerDirective, LoadingSpinnerModule };
172
+ //# sourceMappingURL=odx-angular-components-loading-spinner.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odx-angular-components-loading-spinner.mjs","sources":["../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.service.ts","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.component.ts","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.component.html","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.directive.ts","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.module.ts","../../../../libs/angular/components/loading-spinner/src/odx-angular-components-loading-spinner.ts"],"sourcesContent":["import { Injectable, OnDestroy } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable()\nexport class LoadingSpinnerService implements OnDestroy {\n public readonly spinnerDestroyed$ = new Subject<void>();\n\n public ngOnDestroy(): void {\n this.spinnerDestroyed$.complete();\n }\n}\n","import { AnimationEvent, transition, trigger, useAnimation } from '@angular/animations';\nimport { ChangeDetectionStrategy, Component, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { WindowRef } from '@odx/angular';\nimport { fadeIn, fadeOut } from '@odx/angular/animations';\nimport { CircularProgressComponent } from '@odx/angular/components/circular-progress';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { LoadingSpinnerService } from './loading-spinner.service';\n\nconst BROWSER_TRANSPARENT_COLOR = 'rgba(0, 0, 0, 0)';\n\n@CSSComponent('loading-spinner')\n@Component({\n standalone: true,\n selector: 'odx-loading-spinner',\n templateUrl: './loading-spinner.component.html',\n imports: [CircularProgressComponent],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[@hostAnimation]': 'true',\n '(@hostAnimation.done)': 'animationFinished($event)',\n },\n animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])],\n})\nexport class LoadingSpinnerComponent implements OnInit {\n private readonly spinnerService = inject(LoadingSpinnerService);\n private readonly windowRef = inject(WindowRef);\n\n protected backgroundColor: string | null = null;\n\n public readonly element = injectElement();\n\n @CSSModifier()\n @Input()\n public autoColor = false;\n\n public animationFinished({ toState }: AnimationEvent): void {\n if (toState === 'void') {\n this.spinnerService.spinnerDestroyed$.next();\n }\n }\n\n public ngOnInit(): void {\n this.backgroundColor = this.resolveBackgroundColor(this.element.nativeElement);\n }\n\n private resolveBackgroundColor(element: HTMLElement): string | null {\n const { backgroundColor } = this.windowRef.nativeWindow.getComputedStyle(element);\n if (backgroundColor !== BROWSER_TRANSPARENT_COLOR) {\n return backgroundColor;\n }\n if (element.parentElement) {\n return this.resolveBackgroundColor(element.parentElement);\n }\n return null;\n }\n}\n","<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n","import { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, inject, Injector, Input, Renderer2 } from '@angular/core';\nimport { WindowRef } from '@odx/angular';\nimport { DynamicViewRef, DynamicViewService } from '@odx/angular/cdk/dynamic-view';\nimport { px, Transform } from '@odx/angular/utils';\nimport { LoadingSpinnerComponent } from './loading-spinner.component';\nimport { LoadingSpinnerService } from './loading-spinner.service';\n\n@Directive({\n selector: '[odxLoadingSpinner]',\n standalone: true,\n providers: [LoadingSpinnerService],\n})\nexport class LoadingSpinnerDirective {\n public static ngAcceptInputType_autoColor: BooleanInput;\n public static ngAcceptInputType_isLoading: BooleanInput;\n public static ngAcceptInputType_minHeight: NumberInput;\n\n private readonly dynamicViewService = inject(DynamicViewService);\n private readonly hostElement = inject(ElementRef);\n private readonly renderer = inject(Renderer2);\n private readonly spinnerService = inject(LoadingSpinnerService);\n private readonly injector = inject(Injector);\n private readonly windowRef = inject(WindowRef);\n\n private parentMinHeight = 0;\n private viewRef: DynamicViewRef<typeof LoadingSpinnerComponent> | null = null;\n\n @Transform(coerceBooleanProperty)\n @Input('odxLoadingSpinnerAutoColor')\n public autoColor = false;\n\n @Input('odxLoadingSpinner')\n public set isLoading(value: boolean) {\n if (value) {\n this.setParent();\n this.appendSpinner();\n } else {\n this.viewRef?.destroy();\n }\n }\n\n @Transform(coerceNumberProperty)\n @Input('odxLoadingSpinnerMinHeight')\n public set minHeight(value: unknown) {\n this.parentMinHeight = coerceNumberProperty(value);\n this.setParentHeight();\n }\n\n private setParent(): void {\n this.renderer.addClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');\n this.setParentHeight();\n if (this.hasStaticPosition()) {\n this.renderer.setStyle(this.hostElement.nativeElement, 'position', 'relative');\n }\n }\n\n private setParentHeight(): void {\n this.renderer.setStyle(this.hostElement.nativeElement, 'minHeight', px(this.parentMinHeight));\n }\n\n private appendSpinner(): void {\n this.viewRef = this.dynamicViewService.createView(LoadingSpinnerComponent, { injector: this.injector, context: { autoColor: this.autoColor } });\n this.renderer.appendChild(this.hostElement.nativeElement, this.viewRef.getElement());\n }\n\n private resetParentElement(): void {\n this.renderer.removeClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');\n this.renderer.removeStyle(this.hostElement.nativeElement, 'minHeight');\n this.renderer.removeStyle(this.hostElement.nativeElement, 'position');\n }\n\n private hasStaticPosition(): boolean {\n return this.windowRef.nativeWindow.getComputedStyle(this.hostElement.nativeElement).position === 'static';\n }\n\n constructor() {\n this.spinnerService.spinnerDestroyed$.subscribe(() => this.resetParentElement());\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { LoadingSpinnerComponent } from './loading-spinner.component';\nimport { LoadingSpinnerDirective } from './loading-spinner.directive';\n\nconst modules = [LoadingSpinnerComponent, LoadingSpinnerDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class LoadingSpinnerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAIa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;AAEkB,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,OAAO,EAAQ,CAAC;AAKzD,KAAA;IAHQ,WAAW,GAAA;AAChB,QAAA,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC;KACnC;;kHALU,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;sHAArB,qBAAqB,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;;;ACMX,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAgBxC,IAAA,uBAAuB,GAA7B,MAAM,uBAAuB,CAAA;AAA7B,IAAA,WAAA,GAAA;AACY,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC/C,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAErC,IAAe,CAAA,eAAA,GAAkB,IAAI,CAAC;QAEhC,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;QAInC,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;AAsB1B,KAAA;IApBQ,iBAAiB,CAAC,EAAE,OAAO,EAAkB,EAAA;QAClD,IAAI,OAAO,KAAK,MAAM,EAAE;AACtB,YAAA,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,EAAE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CAAA;kHAMpD,oBAAoB,EAAA,OAAA,EAAA,CANhB,uBAAuB,EAI5B,UAAU,CAAA,EAAA,CAAA,CAAA;2FAET,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -20,8 +20,8 @@ let LogoDirective = class LogoDirective {
20
20
  this.element = injectElement();
21
21
  }
22
22
  };
23
- LogoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: LogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
- LogoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.8", type: LogoDirective, isStandalone: true, selector: "odx-logo", inputs: { size: "size", variant: "variant" }, host: { attributes: { "translate": "no", "role": "img" }, properties: { "class.notranslate": "true", "attr.aria-label": "\"Dr\u00E4ger logo\"", "attr.aria-roledescription": "\"logo\"" } }, ngImport: i0 });
23
+ LogoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
+ LogoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: LogoDirective, isStandalone: true, selector: "odx-logo", inputs: { size: "size", variant: "variant" }, host: { attributes: { "translate": "no", "role": "img" }, properties: { "class.notranslate": "true", "attr.aria-label": "\"Dr\u00E4ger logo\"", "attr.aria-roledescription": "\"logo\"" } }, ngImport: i0 });
25
25
  __decorate([
26
26
  CSSModifier({ default: LogoSize.SMALL }),
27
27
  __metadata("design:type", String)
@@ -33,7 +33,7 @@ __decorate([
33
33
  LogoDirective = __decorate([
34
34
  CSSComponent('logo')
35
35
  ], LogoDirective);
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: LogoDirective, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: LogoDirective, decorators: [{
37
37
  type: Directive,
38
38
  args: [{
39
39
  selector: 'odx-logo',
@@ -1,9 +1,11 @@
1
- import { __decorate } from 'tslib';
1
+ import { __decorate, __metadata } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, inject, Directive, HostListener, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
3
+ import { Injectable, inject, Directive, HostListener, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, NgModule } from '@angular/core';
4
4
  import { CSSComponent } from '@odx/angular/internal';
5
- import { isBoolean, injectElement } from '@odx/angular/utils';
5
+ import { isBoolean, injectElement, Transform } from '@odx/angular/utils';
6
6
  import { BehaviorSubject, distinctUntilChanged, shareReplay } from 'rxjs';
7
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
8
+ import { RouterLinkActive } from '@angular/router';
7
9
  import * as i3 from '@odx/angular';
8
10
  import { DisabledController, CoreModule } from '@odx/angular';
9
11
  import { trigger, transition, useAnimation } from '@angular/animations';
@@ -46,9 +48,9 @@ class MainMenuService {
46
48
  }
47
49
  }
48
50
  }
49
- MainMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
50
- MainMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuService, providedIn: 'root' });
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuService, decorators: [{
51
+ MainMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
52
+ MainMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuService, providedIn: 'root' });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuService, decorators: [{
52
54
  type: Injectable,
53
55
  args: [{ providedIn: 'root' }]
54
56
  }] });
@@ -62,12 +64,12 @@ let MainMenuButtonDirective = class MainMenuButtonDirective {
62
64
  this.mainMenuService.toggle();
63
65
  }
64
66
  };
65
- MainMenuButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
66
- MainMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.8", type: MainMenuButtonDirective, isStandalone: true, selector: "button[odxMainMenuButton]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
67
+ MainMenuButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
68
+ MainMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: MainMenuButtonDirective, isStandalone: true, selector: "button[odxMainMenuButton]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
67
69
  MainMenuButtonDirective = __decorate([
68
70
  CSSComponent('main-menu-button')
69
71
  ], MainMenuButtonDirective);
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuButtonDirective, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuButtonDirective, decorators: [{
71
73
  type: Directive,
72
74
  args: [{
73
75
  selector: 'button[odxMainMenuButton]',
@@ -81,31 +83,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
81
83
  let MainMenuItemDirective = class MainMenuItemDirective {
82
84
  constructor() {
83
85
  this.disabledController = DisabledController.inject();
86
+ this.routerLinkActive = inject(RouterLinkActive, { optional: true });
84
87
  this.element = injectElement();
88
+ this.isSelected = false;
85
89
  }
86
90
  get isDisabled() {
87
91
  return !!this.disabledController?.disabled;
88
92
  }
89
93
  };
90
- MainMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
91
- MainMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.8", type: MainMenuItemDirective, isStandalone: true, selector: "a[odxMainMenuItem]", host: { properties: { "class.is-disabled": "isDisabled", "attr.disabled": "isDisabled || null", "attr.role": "\"button\"", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], ngImport: i0 });
94
+ MainMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
95
+ MainMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: MainMenuItemDirective, isStandalone: true, selector: "[odxMainMenuItem]", inputs: { isSelected: "isSelected" }, host: { properties: { "class.is-selected": "isSelected || routerLinkActive?.isActive", "class.is-disabled": "isDisabled", "attr.disabled": "isDisabled || null", "attr.role": "\"button\"", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], ngImport: i0 });
96
+ __decorate([
97
+ Transform(coerceBooleanProperty),
98
+ __metadata("design:type", Object)
99
+ ], MainMenuItemDirective.prototype, "isSelected", void 0);
92
100
  MainMenuItemDirective = __decorate([
93
101
  CSSComponent('main-menu-item')
94
102
  ], MainMenuItemDirective);
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuItemDirective, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuItemDirective, decorators: [{
96
104
  type: Directive,
97
105
  args: [{
98
- selector: 'a[odxMainMenuItem]',
106
+ selector: '[odxMainMenuItem]',
99
107
  standalone: true,
100
108
  providers: [DisabledController.connect()],
101
109
  host: {
110
+ '[class.is-selected]': 'isSelected || routerLinkActive?.isActive',
102
111
  '[class.is-disabled]': 'isDisabled',
103
112
  '[attr.disabled]': 'isDisabled || null',
104
113
  '[attr.role]': '"button"',
105
114
  '[tabindex]': 'isDisabled ? -1 : 0',
106
115
  },
107
116
  }]
108
- }] });
117
+ }], propDecorators: { isSelected: [{
118
+ type: Input
119
+ }] } });
109
120
 
110
121
  let MainMenuComponent = class MainMenuComponent {
111
122
  constructor() {
@@ -116,7 +127,7 @@ let MainMenuComponent = class MainMenuComponent {
116
127
  this.menuOpen = this.mainMenuService.isOpen$;
117
128
  }
118
129
  set isOpen(value) {
119
- this.mainMenuService.toggle(value);
130
+ this.mainMenuService.toggle(coerceBooleanProperty(value));
120
131
  }
121
132
  get isOpen() {
122
133
  return this.mainMenuService.isOpen();
@@ -125,22 +136,22 @@ let MainMenuComponent = class MainMenuComponent {
125
136
  this.mainMenuService.close();
126
137
  }
127
138
  };
128
- MainMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
129
- MainMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: MainMenuComponent, isStandalone: true, selector: "odx-main-menu", inputs: { title: "title", subtitle: "subtitle", copyright: "copyright", isOpen: "isOpen" }, outputs: { menuOpen: "menuOpen" }, host: { listeners: { "window:keydown.escape": "close()" }, properties: { "class.is-open": "isOpen" } }, ngImport: i0, template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content select=\"a[odxMainMenuItem]\"></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "directive", type: i3.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "ngmodule", type: AreaHeaderModule }, { kind: "component", type: i4.AreaHeaderComponent, selector: "odx-area-header", inputs: ["size"] }, { kind: "directive", type: i4.AreaHeaderSubtitleDirective, selector: "odx-area-header-subtitle" }, { kind: "component", type: i5.ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: i6.IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }, { kind: "directive", type: LogoDirective, selector: "odx-logo", inputs: ["size", "variant"] }], animations: [
139
+ MainMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
140
+ MainMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: MainMenuComponent, isStandalone: true, selector: "odx-main-menu", inputs: { title: "title", subtitle: "subtitle", copyright: "copyright", isOpen: "isOpen" }, outputs: { menuOpen: "menuOpen" }, host: { listeners: { "window:keydown.escape": "close()" }, properties: { "class.is-open": "isOpen" } }, ngImport: i0, template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "directive", type: i3.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "ngmodule", type: AreaHeaderModule }, { kind: "component", type: i4.AreaHeaderComponent, selector: "odx-area-header", inputs: ["size"] }, { kind: "directive", type: i4.AreaHeaderSubtitleDirective, selector: "odx-area-header-subtitle" }, { kind: "component", type: i5.ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: i6.IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }, { kind: "directive", type: LogoDirective, selector: "odx-logo", inputs: ["size", "variant"] }], animations: [
130
141
  trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),
131
142
  trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),
132
143
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
133
144
  MainMenuComponent = __decorate([
134
145
  CSSComponent('main-menu')
135
146
  ], MainMenuComponent);
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuComponent, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuComponent, decorators: [{
137
148
  type: Component,
138
149
  args: [{ selector: 'odx-main-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [A11yModule, CoreModule, AreaHeaderModule, ButtonComponent, IconComponent, LogoDirective], standalone: true, host: {
139
150
  '[class.is-open]': 'isOpen',
140
151
  }, animations: [
141
152
  trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),
142
153
  trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),
143
- ], template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content select=\"a[odxMainMenuItem]\"></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n" }]
154
+ ], template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n" }]
144
155
  }], propDecorators: { title: [{
145
156
  type: Input
146
157
  }], subtitle: [{
@@ -159,10 +170,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
159
170
  const modules = [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective];
160
171
  class MainMenuModule {
161
172
  }
162
- MainMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
163
- MainMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.8", ngImport: i0, type: MainMenuModule, imports: [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective], exports: [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective] });
164
- MainMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuModule, imports: [MainMenuComponent, CoreModule] });
165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: MainMenuModule, decorators: [{
173
+ MainMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
174
+ MainMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: MainMenuModule, imports: [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective], exports: [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective] });
175
+ MainMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuModule, imports: [MainMenuComponent, CoreModule] });
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: MainMenuModule, decorators: [{
166
177
  type: NgModule,
167
178
  args: [{
168
179
  imports: modules,
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-main-menu.mjs","sources":["../../../../libs/angular/components/main-menu/src/lib/main-menu.service.ts","../../../../libs/angular/components/main-menu/src/lib/directives/main-menu-button.directive.ts","../../../../libs/angular/components/main-menu/src/lib/directives/main-menu-item.directive.ts","../../../../libs/angular/components/main-menu/src/lib/main-menu.component.ts","../../../../libs/angular/components/main-menu/src/lib/main-menu.component.html","../../../../libs/angular/components/main-menu/src/lib/main-menu.module.ts","../../../../libs/angular/components/main-menu/src/odx-angular-components-main-menu.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { isBoolean } from '@odx/angular/utils';\nimport { BehaviorSubject, distinctUntilChanged, shareReplay } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class MainMenuService {\n private readonly isOpen$$ = new BehaviorSubject(false);\n\n public readonly isOpen$ = this.isOpen$$.pipe(distinctUntilChanged(), shareReplay({ refCount: true }));\n\n public isOpen(): boolean {\n return this.isOpen$$.getValue();\n }\n\n public open(): void {\n this.toggle(true);\n }\n\n public close(): void {\n this.toggle(false);\n }\n\n public toggle(forceState?: boolean): void {\n if (isBoolean(forceState)) {\n this.isOpen$$.next(forceState);\n } else if (this.isOpen()) {\n this.isOpen$$.next(false);\n } else {\n this.isOpen$$.next(true);\n }\n }\n}\n","import { Directive, HostListener, inject } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { MainMenuService } from '../main-menu.service';\n\n@CSSComponent('main-menu-button')\n@Directive({\n selector: 'button[odxMainMenuButton]',\n standalone: true,\n})\nexport class MainMenuButtonDirective {\n private readonly mainMenuService = inject(MainMenuService);\n public readonly element = injectElement<HTMLButtonElement>();\n\n @HostListener('click')\n public onClick() {\n this.mainMenuService.toggle();\n }\n}\n","import { Directive } from '@angular/core';\nimport { DisabledController } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('main-menu-item')\n@Directive({\n selector: 'a[odxMainMenuItem]',\n standalone: true,\n providers: [DisabledController.connect()],\n host: {\n '[class.is-disabled]': 'isDisabled',\n '[attr.disabled]': 'isDisabled || null',\n '[attr.role]': '\"button\"',\n '[tabindex]': 'isDisabled ? -1 : 0',\n },\n})\nexport class MainMenuItemDirective {\n protected readonly disabledController = DisabledController.inject();\n public readonly element = injectElement<HTMLLinkElement>();\n\n public get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n}\n","import { transition, trigger, useAnimation } from '@angular/animations';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ChangeDetectionStrategy, Component, HostListener, inject, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { fadeIn, fadeOut, slideInLeft, slideOutLeft } from '@odx/angular/animations';\nimport { AreaHeaderModule } from '@odx/angular/components/area-header';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { LogoDirective } from '@odx/angular/components/logo';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { MainMenuService } from './main-menu.service';\n\n@CSSComponent('main-menu')\n@Component({\n selector: 'odx-main-menu',\n templateUrl: './main-menu.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [A11yModule, CoreModule, AreaHeaderModule, ButtonComponent, IconComponent, LogoDirective],\n standalone: true,\n host: {\n '[class.is-open]': 'isOpen',\n },\n animations: [\n trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),\n trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),\n ],\n})\nexport class MainMenuComponent {\n protected readonly mainMenuService = inject(MainMenuService);\n public readonly element = injectElement();\n\n @Input()\n public title!: string;\n\n @Input()\n public subtitle: string | null = null;\n\n @Input()\n public copyright: string | null = null;\n\n @Input()\n public set isOpen(value: boolean) {\n this.mainMenuService.toggle(value);\n }\n\n public get isOpen(): boolean {\n return this.mainMenuService.isOpen();\n }\n\n @Output()\n public menuOpen = this.mainMenuService.isOpen$;\n\n @HostListener('window:keydown.escape')\n public close(): void {\n this.mainMenuService.close();\n }\n}\n","<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content select=\"a[odxMainMenuItem]\"></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { LinkDirective } from '@odx/angular/components/link';\nimport { MainMenuButtonDirective, MainMenuItemDirective } from './directives';\nimport { MainMenuComponent } from './main-menu.component';\n\nconst modules = [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class MainMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;MAKa,eAAe,CAAA;AAD5B,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AAEvC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAuBvG,KAAA;IArBQ,MAAM,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KACjC;IAEM,IAAI,GAAA;AACT,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;KACnB;IAEM,KAAK,GAAA;AACV,QAAA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;KACpB;AAEM,IAAA,MAAM,CAAC,UAAoB,EAAA;AAChC,QAAA,IAAI,SAAS,CAAC,UAAU,CAAC,EAAE;AACzB,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAChC,SAAA;AAAM,aAAA,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE;AACxB,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,SAAA;AAAM,aAAA;AACL,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,SAAA;KACF;;4GAzBU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAA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,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-main-menu.mjs","sources":["../../../../libs/angular/components/main-menu/src/lib/main-menu.service.ts","../../../../libs/angular/components/main-menu/src/lib/directives/main-menu-button.directive.ts","../../../../libs/angular/components/main-menu/src/lib/directives/main-menu-item.directive.ts","../../../../libs/angular/components/main-menu/src/lib/main-menu.component.ts","../../../../libs/angular/components/main-menu/src/lib/main-menu.component.html","../../../../libs/angular/components/main-menu/src/lib/main-menu.module.ts","../../../../libs/angular/components/main-menu/src/odx-angular-components-main-menu.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { isBoolean } from '@odx/angular/utils';\nimport { BehaviorSubject, distinctUntilChanged, shareReplay } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class MainMenuService {\n private readonly isOpen$$ = new BehaviorSubject(false);\n\n public readonly isOpen$ = this.isOpen$$.pipe(distinctUntilChanged(), shareReplay({ refCount: true }));\n\n public isOpen(): boolean {\n return this.isOpen$$.getValue();\n }\n\n public open(): void {\n this.toggle(true);\n }\n\n public close(): void {\n this.toggle(false);\n }\n\n public toggle(forceState?: boolean): void {\n if (isBoolean(forceState)) {\n this.isOpen$$.next(forceState);\n } else if (this.isOpen()) {\n this.isOpen$$.next(false);\n } else {\n this.isOpen$$.next(true);\n }\n }\n}\n","import { Directive, HostListener, inject } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { MainMenuService } from '../main-menu.service';\n\n@CSSComponent('main-menu-button')\n@Directive({\n selector: 'button[odxMainMenuButton]',\n standalone: true,\n})\nexport class MainMenuButtonDirective {\n private readonly mainMenuService = inject(MainMenuService);\n public readonly element = injectElement<HTMLButtonElement>();\n\n @HostListener('click')\n public onClick() {\n this.mainMenuService.toggle();\n }\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, inject, Input } from '@angular/core';\nimport { RouterLinkActive } from '@angular/router';\nimport { DisabledController } from '@odx/angular';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\n\n@CSSComponent('main-menu-item')\n@Directive({\n selector: '[odxMainMenuItem]',\n standalone: true,\n providers: [DisabledController.connect()],\n host: {\n '[class.is-selected]': 'isSelected || routerLinkActive?.isActive',\n '[class.is-disabled]': 'isDisabled',\n '[attr.disabled]': 'isDisabled || null',\n '[attr.role]': '\"button\"',\n '[tabindex]': 'isDisabled ? -1 : 0',\n },\n})\nexport class MainMenuItemDirective {\n public static readonly ngAcceptInputType_isSelected: BooleanInput;\n\n protected readonly disabledController = DisabledController.inject();\n protected readonly routerLinkActive = inject(RouterLinkActive, { optional: true });\n public readonly element = injectElement<HTMLLinkElement>();\n\n @Transform(coerceBooleanProperty)\n @Input()\n public isSelected = false;\n\n public get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n}\n","import { transition, trigger, useAnimation } from '@angular/animations';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, HostListener, inject, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { fadeIn, fadeOut, slideInLeft, slideOutLeft } from '@odx/angular/animations';\nimport { AreaHeaderModule } from '@odx/angular/components/area-header';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { LogoDirective } from '@odx/angular/components/logo';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { MainMenuService } from './main-menu.service';\n\n@CSSComponent('main-menu')\n@Component({\n selector: 'odx-main-menu',\n templateUrl: './main-menu.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [A11yModule, CoreModule, AreaHeaderModule, ButtonComponent, IconComponent, LogoDirective],\n standalone: true,\n host: {\n '[class.is-open]': 'isOpen',\n },\n animations: [\n trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),\n trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),\n ],\n})\nexport class MainMenuComponent {\n public static readonly ngAcceptInputType_isOpen: BooleanInput;\n\n protected readonly mainMenuService = inject(MainMenuService);\n public readonly element = injectElement();\n\n @Input()\n public title!: string;\n\n @Input()\n public subtitle: string | null = null;\n\n @Input()\n public copyright: string | null = null;\n\n @Input()\n public set isOpen(value: boolean) {\n this.mainMenuService.toggle(coerceBooleanProperty(value));\n }\n\n public get isOpen(): boolean {\n return this.mainMenuService.isOpen();\n }\n\n @Output()\n public menuOpen = this.mainMenuService.isOpen$;\n\n @HostListener('window:keydown.escape')\n public close(): void {\n this.mainMenuService.close();\n }\n}\n","<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { LinkDirective } from '@odx/angular/components/link';\nimport { MainMenuButtonDirective, MainMenuItemDirective } from './directives';\nimport { MainMenuComponent } from './main-menu.component';\n\nconst modules = [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class MainMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAKa,eAAe,CAAA;AAD5B,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AAEvC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAuBvG,KAAA;IArBQ,MAAM,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KACjC;IAEM,IAAI,GAAA;AACT,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;KACnB;IAEM,KAAK,GAAA;AACV,QAAA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;KACpB;AAEM,IAAA,MAAM,CAAC,UAAoB,EAAA;AAChC,QAAA,IAAI,SAAS,CAAC,UAAU,CAAC,EAAE;AACzB,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAChC,SAAA;AAAM,aAAA,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE;AACxB,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3B,SAAA;AAAM,aAAA;AACL,YAAA,IA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