@rossigee/clarity-angular 18.2.1-fixed → 18.2.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 (182) hide show
  1. package/fesm2022/clr-angular-accordion.mjs +355 -0
  2. package/fesm2022/clr-angular-accordion.mjs.map +1 -0
  3. package/fesm2022/clr-angular-button.mjs +713 -0
  4. package/fesm2022/clr-angular-button.mjs.map +1 -0
  5. package/fesm2022/clr-angular-collapsible-panel.mjs +201 -0
  6. package/fesm2022/clr-angular-collapsible-panel.mjs.map +1 -0
  7. package/fesm2022/clr-angular-data-datagrid.mjs +7635 -0
  8. package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -0
  9. package/fesm2022/clr-angular-data-stack-view.mjs +442 -0
  10. package/fesm2022/clr-angular-data-stack-view.mjs.map +1 -0
  11. package/fesm2022/clr-angular-data-tree-view.mjs +1106 -0
  12. package/fesm2022/clr-angular-data-tree-view.mjs.map +1 -0
  13. package/fesm2022/clr-angular-data.mjs +40 -0
  14. package/fesm2022/clr-angular-data.mjs.map +1 -0
  15. package/fesm2022/clr-angular-emphasis-alert.mjs +624 -0
  16. package/fesm2022/clr-angular-emphasis-alert.mjs.map +1 -0
  17. package/fesm2022/clr-angular-emphasis-badge.mjs +69 -0
  18. package/fesm2022/clr-angular-emphasis-badge.mjs.map +1 -0
  19. package/fesm2022/clr-angular-emphasis-common.mjs +25 -0
  20. package/fesm2022/clr-angular-emphasis-common.mjs.map +1 -0
  21. package/fesm2022/clr-angular-emphasis-label.mjs +105 -0
  22. package/fesm2022/clr-angular-emphasis-label.mjs.map +1 -0
  23. package/fesm2022/clr-angular-emphasis.mjs +41 -0
  24. package/fesm2022/clr-angular-emphasis.mjs.map +1 -0
  25. package/fesm2022/clr-angular-forms-checkbox.mjs +270 -0
  26. package/fesm2022/clr-angular-forms-checkbox.mjs.map +1 -0
  27. package/fesm2022/clr-angular-forms-combobox.mjs +1775 -0
  28. package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -0
  29. package/fesm2022/clr-angular-forms-common.mjs +1251 -0
  30. package/fesm2022/clr-angular-forms-common.mjs.map +1 -0
  31. package/fesm2022/clr-angular-forms-datalist.mjs +263 -0
  32. package/fesm2022/clr-angular-forms-datalist.mjs.map +1 -0
  33. package/fesm2022/clr-angular-forms-datepicker.mjs +3274 -0
  34. package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -0
  35. package/fesm2022/clr-angular-forms-file-input.mjs +826 -0
  36. package/fesm2022/clr-angular-forms-file-input.mjs.map +1 -0
  37. package/fesm2022/clr-angular-forms-input.mjs +153 -0
  38. package/fesm2022/clr-angular-forms-input.mjs.map +1 -0
  39. package/fesm2022/clr-angular-forms-number-input.mjs +236 -0
  40. package/fesm2022/clr-angular-forms-number-input.mjs.map +1 -0
  41. package/fesm2022/clr-angular-forms-password.mjs +233 -0
  42. package/fesm2022/clr-angular-forms-password.mjs.map +1 -0
  43. package/fesm2022/clr-angular-forms-radio.mjs +231 -0
  44. package/fesm2022/clr-angular-forms-radio.mjs.map +1 -0
  45. package/fesm2022/clr-angular-forms-range.mjs +186 -0
  46. package/fesm2022/clr-angular-forms-range.mjs.map +1 -0
  47. package/fesm2022/clr-angular-forms-select.mjs +153 -0
  48. package/fesm2022/clr-angular-forms-select.mjs.map +1 -0
  49. package/fesm2022/clr-angular-forms-textarea.mjs +136 -0
  50. package/fesm2022/clr-angular-forms-textarea.mjs.map +1 -0
  51. package/fesm2022/clr-angular-forms.mjs +100 -0
  52. package/fesm2022/clr-angular-forms.mjs.map +1 -0
  53. package/fesm2022/clr-angular-icon.mjs +7397 -0
  54. package/fesm2022/clr-angular-icon.mjs.map +1 -0
  55. package/fesm2022/clr-angular-layout-breadcrumbs.mjs +120 -0
  56. package/fesm2022/clr-angular-layout-breadcrumbs.mjs.map +1 -0
  57. package/fesm2022/clr-angular-layout-main-container.mjs +100 -0
  58. package/fesm2022/clr-angular-layout-main-container.mjs.map +1 -0
  59. package/fesm2022/clr-angular-layout-nav.mjs +582 -0
  60. package/fesm2022/clr-angular-layout-nav.mjs.map +1 -0
  61. package/fesm2022/clr-angular-layout-tabs.mjs +807 -0
  62. package/fesm2022/clr-angular-layout-tabs.mjs.map +1 -0
  63. package/fesm2022/clr-angular-layout-vertical-nav.mjs +507 -0
  64. package/fesm2022/clr-angular-layout-vertical-nav.mjs.map +1 -0
  65. package/fesm2022/clr-angular-layout.mjs +44 -0
  66. package/fesm2022/clr-angular-layout.mjs.map +1 -0
  67. package/fesm2022/clr-angular-modal.mjs +617 -0
  68. package/fesm2022/clr-angular-modal.mjs.map +1 -0
  69. package/fesm2022/clr-angular-popover-common.mjs +1082 -0
  70. package/fesm2022/clr-angular-popover-common.mjs.map +1 -0
  71. package/fesm2022/clr-angular-popover-dropdown.mjs +492 -0
  72. package/fesm2022/clr-angular-popover-dropdown.mjs.map +1 -0
  73. package/fesm2022/clr-angular-popover-signpost.mjs +494 -0
  74. package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -0
  75. package/fesm2022/clr-angular-popover-tooltip.mjs +293 -0
  76. package/fesm2022/clr-angular-popover-tooltip.mjs.map +1 -0
  77. package/fesm2022/clr-angular-popover.mjs +41 -0
  78. package/fesm2022/clr-angular-popover.mjs.map +1 -0
  79. package/fesm2022/clr-angular-progress-progress-bars.mjs +217 -0
  80. package/fesm2022/clr-angular-progress-progress-bars.mjs.map +1 -0
  81. package/fesm2022/clr-angular-progress-spinner.mjs +132 -0
  82. package/fesm2022/clr-angular-progress-spinner.mjs.map +1 -0
  83. package/fesm2022/clr-angular-stepper.mjs +694 -0
  84. package/fesm2022/clr-angular-stepper.mjs.map +1 -0
  85. package/fesm2022/clr-angular-timeline.mjs +316 -0
  86. package/fesm2022/clr-angular-timeline.mjs.map +1 -0
  87. package/fesm2022/clr-angular-utils-conditional.mjs +351 -0
  88. package/fesm2022/clr-angular-utils-conditional.mjs.map +1 -0
  89. package/fesm2022/clr-angular-utils-loading.mjs +107 -0
  90. package/fesm2022/clr-angular-utils-loading.mjs.map +1 -0
  91. package/fesm2022/clr-angular-utils.mjs +2079 -0
  92. package/fesm2022/clr-angular-utils.mjs.map +1 -0
  93. package/fesm2022/clr-angular-wizard.mjs +3074 -0
  94. package/fesm2022/clr-angular-wizard.mjs.map +1 -0
  95. package/fesm2022/{rossigee-clarity-angular.mjs → clr-angular.mjs} +2 -2
  96. package/fesm2022/clr-angular.mjs.map +1 -0
  97. package/package.json +105 -103
  98. package/schematics/ng-update/index.d.ts +2 -0
  99. package/schematics/ng-update/index.js +69 -0
  100. package/schematics/ng-update/index.js.map +1 -0
  101. package/schematics/ng-update/migrations/css-migration.d.ts +6 -0
  102. package/schematics/ng-update/migrations/css-migration.js +177 -0
  103. package/schematics/ng-update/migrations/css-migration.js.map +1 -0
  104. package/schematics/ng-update/migrations/import-migration.d.ts +4 -0
  105. package/schematics/ng-update/migrations/import-migration.js +187 -0
  106. package/schematics/ng-update/migrations/import-migration.js.map +1 -0
  107. package/schematics/ng-update/migrations/template-migration.d.ts +6 -0
  108. package/schematics/ng-update/migrations/template-migration.js +261 -0
  109. package/schematics/ng-update/migrations/template-migration.js.map +1 -0
  110. package/schematics/ng-update/replacements/css-replacements.d.ts +17 -0
  111. package/schematics/ng-update/replacements/css-replacements.js +74 -0
  112. package/schematics/ng-update/replacements/css-replacements.js.map +1 -0
  113. package/schematics/ng-update/replacements/import-replacements.d.ts +13 -0
  114. package/schematics/ng-update/replacements/import-replacements.js +108 -0
  115. package/schematics/ng-update/replacements/import-replacements.js.map +1 -0
  116. package/schematics/ng-update/replacements/symbol-replacements.d.ts +12 -0
  117. package/schematics/ng-update/replacements/symbol-replacements.js +67 -0
  118. package/schematics/ng-update/replacements/symbol-replacements.js.map +1 -0
  119. package/schematics/ng-update/replacements/template-replacements.d.ts +19 -0
  120. package/schematics/ng-update/replacements/template-replacements.js +57 -0
  121. package/schematics/ng-update/replacements/template-replacements.js.map +1 -0
  122. package/schematics/ng-update/tests/test-helpers.d.ts +6 -0
  123. package/schematics/ng-update/tests/test-helpers.js +34 -0
  124. package/schematics/ng-update/tests/test-helpers.js.map +1 -0
  125. package/schematics/ng-update/utils/file-visitor.d.ts +8 -0
  126. package/schematics/ng-update/utils/file-visitor.js +44 -0
  127. package/schematics/ng-update/utils/file-visitor.js.map +1 -0
  128. package/schematics/ng-update/utils/regexp-utils.d.ts +16 -0
  129. package/schematics/ng-update/utils/regexp-utils.js +34 -0
  130. package/schematics/ng-update/utils/regexp-utils.js.map +1 -0
  131. package/schematics/vitest.config.d.ts +2 -0
  132. package/schematics/vitest.config.js +17 -0
  133. package/schematics/vitest.config.js.map +1 -0
  134. package/types/clr-angular-accordion.d.ts +100 -0
  135. package/types/clr-angular-button.d.ts +169 -0
  136. package/types/clr-angular-collapsible-panel.d.ts +73 -0
  137. package/types/clr-angular-data-datagrid.d.ts +1843 -0
  138. package/types/clr-angular-data-stack-view.d.ts +87 -0
  139. package/types/clr-angular-data-tree-view.d.ts +229 -0
  140. package/types/clr-angular-data.d.ts +15 -0
  141. package/types/clr-angular-emphasis-alert.d.ts +175 -0
  142. package/types/clr-angular-emphasis-badge.d.ts +25 -0
  143. package/types/clr-angular-emphasis-common.d.ts +6 -0
  144. package/types/clr-angular-emphasis-label.d.ts +29 -0
  145. package/types/clr-angular-emphasis.d.ts +15 -0
  146. package/types/clr-angular-forms-checkbox.d.ts +69 -0
  147. package/types/clr-angular-forms-combobox.d.ts +353 -0
  148. package/types/clr-angular-forms-common.d.ts +339 -0
  149. package/types/clr-angular-forms-datalist.d.ts +59 -0
  150. package/types/clr-angular-forms-datepicker.d.ts +986 -0
  151. package/types/clr-angular-forms-file-input.d.ts +193 -0
  152. package/types/clr-angular-forms-input.d.ts +29 -0
  153. package/types/clr-angular-forms-number-input.d.ts +43 -0
  154. package/types/clr-angular-forms-password.d.ts +52 -0
  155. package/types/clr-angular-forms-radio.d.ts +50 -0
  156. package/types/clr-angular-forms-range.d.ts +37 -0
  157. package/types/clr-angular-forms-select.d.ts +36 -0
  158. package/types/clr-angular-forms-textarea.d.ts +29 -0
  159. package/types/clr-angular-forms.d.ts +36 -0
  160. package/types/clr-angular-icon.d.ts +1498 -0
  161. package/types/clr-angular-layout-breadcrumbs.d.ts +45 -0
  162. package/types/clr-angular-layout-main-container.d.ts +28 -0
  163. package/types/clr-angular-layout-nav.d.ts +142 -0
  164. package/types/clr-angular-layout-tabs.d.ts +158 -0
  165. package/types/clr-angular-layout-vertical-nav.d.ts +128 -0
  166. package/types/clr-angular-layout.d.ts +19 -0
  167. package/types/clr-angular-modal.d.ts +160 -0
  168. package/types/clr-angular-popover-common.d.ts +254 -0
  169. package/types/clr-angular-popover-dropdown.d.ts +123 -0
  170. package/types/clr-angular-popover-signpost.d.ts +157 -0
  171. package/types/clr-angular-popover-tooltip.d.ts +83 -0
  172. package/types/clr-angular-popover.d.ts +16 -0
  173. package/types/clr-angular-progress-progress-bars.d.ts +57 -0
  174. package/types/clr-angular-progress-spinner.d.ts +44 -0
  175. package/types/clr-angular-stepper.d.ts +179 -0
  176. package/types/clr-angular-timeline.d.ts +86 -0
  177. package/types/clr-angular-utils-conditional.d.ts +132 -0
  178. package/types/clr-angular-utils-loading.d.ts +38 -0
  179. package/types/clr-angular-utils.d.ts +913 -0
  180. package/types/clr-angular-wizard.d.ts +1508 -0
  181. package/fesm2022/rossigee-clarity-angular.mjs.map +0 -1
  182. /package/types/{rossigee-clarity-angular.d.ts → clr-angular.d.ts} +0 -0
@@ -0,0 +1,492 @@
1
+ import * as i0 from '@angular/core';
2
+ import { PLATFORM_ID, SkipSelf, Optional, Inject, Injectable, Input, Component, HostBinding, ContentChildren, HostListener, Directive, NgModule } from '@angular/core';
3
+ import * as i2 from '@clr/angular/popover/common';
4
+ import { ClrPopoverHostDirective, ClrPopoverType, ClrPopoverPosition, DROPDOWN_POSITIONS, POPOVER_HOST_ORIGIN, ClrPopoverContent, ClrIfOpen } from '@clr/angular/popover/common';
5
+ import * as i2$1 from '@clr/angular/utils';
6
+ import { uniqueIdFactory, ArrowKeyDirection, Linkers, wrapObservable, customFocusableItemProvider, FOCUS_SERVICE_PROVIDER, FocusableItem, BASIC_FOCUSABLE_ITEM_PROVIDER } from '@clr/angular/utils';
7
+ import { isPlatformBrowser, CommonModule } from '@angular/common';
8
+ import { ReplaySubject, of, Subject } from 'rxjs';
9
+ import { map } from 'rxjs/operators';
10
+ import { ClrIcon } from '@clr/angular/icon';
11
+
12
+ /*
13
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
14
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
15
+ * This software is released under MIT license.
16
+ * The full license information can be found in LICENSE in the root directory of this project.
17
+ */
18
+ class DropdownFocusHandler {
19
+ constructor(renderer, parent, popoverService, focusService, platformId) {
20
+ this.renderer = renderer;
21
+ this.parent = parent;
22
+ this.popoverService = popoverService;
23
+ this.focusService = focusService;
24
+ this.platformId = platformId;
25
+ this.id = uniqueIdFactory();
26
+ this._unlistenFuncs = [];
27
+ this.resetChildren();
28
+ this.moveToFirstItemWhenOpen();
29
+ }
30
+ get trigger() {
31
+ return this._trigger;
32
+ }
33
+ set trigger(el) {
34
+ this._trigger = el;
35
+ if (this.parent) {
36
+ this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.arrowright', event => this.popoverService.toggleWithEvent(event)));
37
+ }
38
+ else {
39
+ this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.arrowup', event => this.popoverService.toggleWithEvent(event)));
40
+ this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.arrowdown', event => this.popoverService.toggleWithEvent(event)));
41
+ }
42
+ }
43
+ get container() {
44
+ return this._container;
45
+ }
46
+ set container(el) {
47
+ this._container = el;
48
+ // whether root container or not, tab key should always toggle (i.e. close) the container
49
+ this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.tab', event => this.popoverService.toggleWithEvent(event)), this.renderer.listen(el, 'keydown.shift.tab', event => this.popoverService.toggleWithEvent(event)));
50
+ // All containers are registered to the focus service.
51
+ this.focusService.registerContainer(el);
52
+ if (this.parent) {
53
+ // if it's a nested container, pressing escape has the same effect as pressing left key, which closes the current
54
+ // popup and moves up to its parent. Here, we stop propagation so that the parent container
55
+ // doesn't receive the escape keydown
56
+ this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.escape', event => {
57
+ this.focusService.move(ArrowKeyDirection.LEFT);
58
+ event.stopPropagation();
59
+ }));
60
+ }
61
+ }
62
+ ngOnDestroy() {
63
+ this._unlistenFuncs.forEach((unlisten) => unlisten());
64
+ this.focusService.detachListeners(this.container);
65
+ }
66
+ /**
67
+ * If the dropdown was opened by clicking on the trigger, we automatically move to the first item
68
+ */
69
+ moveToFirstItemWhenOpen() {
70
+ const subscription = this.popoverService.openChange.subscribe(open => {
71
+ if (open && this.popoverService.openEvent) {
72
+ // Even if we properly waited for ngAfterViewInit, the container still wouldn't be attached to the DOM.
73
+ // So setTimeout is the only way to wait for the container to be ready to move focus to first item.
74
+ setTimeout(() => {
75
+ this.focusService.moveTo(this);
76
+ if (this.parent) {
77
+ this.focusService.move(ArrowKeyDirection.RIGHT);
78
+ }
79
+ else {
80
+ this.focusService.move(ArrowKeyDirection.DOWN);
81
+ }
82
+ });
83
+ }
84
+ });
85
+ this._unlistenFuncs.push(() => subscription.unsubscribe());
86
+ }
87
+ focus() {
88
+ if (this.trigger && isPlatformBrowser(this.platformId)) {
89
+ this.trigger.focus();
90
+ }
91
+ }
92
+ blur() {
93
+ if (this.trigger && isPlatformBrowser(this.platformId)) {
94
+ this.trigger.blur();
95
+ }
96
+ }
97
+ activate() {
98
+ if (isPlatformBrowser(this.platformId)) {
99
+ this.trigger.click();
100
+ }
101
+ }
102
+ resetChildren() {
103
+ this.children = new ReplaySubject(1);
104
+ if (this.parent) {
105
+ this.right = this.openAndGetChildren().pipe(map(all => all[0]));
106
+ }
107
+ else {
108
+ this.down = this.openAndGetChildren().pipe(map(all => all[0]));
109
+ this.up = this.openAndGetChildren().pipe(map(all => all[all.length - 1]));
110
+ }
111
+ }
112
+ addChildren(children) {
113
+ Linkers.linkVertical(children);
114
+ if (this.parent) {
115
+ Linkers.linkParent(children, this.closeAndGetThis(), ArrowKeyDirection.LEFT);
116
+ }
117
+ this.children.next(children);
118
+ }
119
+ openAndGetChildren() {
120
+ return wrapObservable(this.children, () => (this.popoverService.open = true));
121
+ }
122
+ closeAndGetThis() {
123
+ return wrapObservable(of(this), () => (this.popoverService.open = false));
124
+ }
125
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DropdownFocusHandler, deps: [{ token: i0.Renderer2 }, { token: DropdownFocusHandler, optional: true, skipSelf: true }, { token: i2.ClrPopoverService }, { token: i2$1.FocusService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
126
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DropdownFocusHandler }); }
127
+ }
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DropdownFocusHandler, decorators: [{
129
+ type: Injectable
130
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: DropdownFocusHandler, decorators: [{
131
+ type: SkipSelf
132
+ }, {
133
+ type: Optional
134
+ }] }, { type: i2.ClrPopoverService }, { type: i2$1.FocusService }, { type: undefined, decorators: [{
135
+ type: Inject,
136
+ args: [PLATFORM_ID]
137
+ }] }] });
138
+ const DROPDOWN_FOCUS_HANDLER_PROVIDER = customFocusableItemProvider(DropdownFocusHandler);
139
+
140
+ /*
141
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
142
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
143
+ * This software is released under MIT license.
144
+ * The full license information can be found in LICENSE in the root directory of this project.
145
+ */
146
+ class RootDropdownService {
147
+ constructor() {
148
+ this._changes = new Subject();
149
+ }
150
+ get changes() {
151
+ return this._changes.asObservable();
152
+ }
153
+ closeMenus() {
154
+ this._changes.next(false);
155
+ }
156
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: RootDropdownService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
157
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: RootDropdownService }); }
158
+ }
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: RootDropdownService, decorators: [{
160
+ type: Injectable
161
+ }] });
162
+ function clrRootDropdownFactory(existing) {
163
+ return existing || new RootDropdownService();
164
+ }
165
+ const ROOT_DROPDOWN_PROVIDER = {
166
+ provide: RootDropdownService,
167
+ useFactory: clrRootDropdownFactory,
168
+ deps: [[new Optional(), new SkipSelf(), RootDropdownService]],
169
+ };
170
+
171
+ /*
172
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
173
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
174
+ * This software is released under MIT license.
175
+ * The full license information can be found in LICENSE in the root directory of this project.
176
+ */
177
+ class ClrDropdown {
178
+ constructor(parent, popoverService, focusHandler, cdr, dropdownService) {
179
+ this.parent = parent;
180
+ this.popoverService = popoverService;
181
+ this.focusHandler = focusHandler;
182
+ this.isMenuClosable = true;
183
+ this.subscriptions = [];
184
+ this.subscriptions.push(dropdownService.changes.subscribe(value => (popoverService.open = value)));
185
+ this.subscriptions.push(popoverService.openChange.subscribe(() => cdr.markForCheck()));
186
+ }
187
+ openAtPoint(point, targetElement) {
188
+ this.popoverService.openAtPoint(point, targetElement);
189
+ }
190
+ ngOnDestroy() {
191
+ this.subscriptions.forEach(sub => sub.unsubscribe());
192
+ }
193
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdown, deps: [{ token: ClrDropdown, optional: true, skipSelf: true }, { token: i2.ClrPopoverService }, { token: DropdownFocusHandler }, { token: i0.ChangeDetectorRef }, { token: RootDropdownService }], target: i0.ɵɵFactoryTarget.Component }); }
194
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: ClrDropdown, isStandalone: false, selector: "clr-dropdown", inputs: { isMenuClosable: ["clrCloseMenuOnItemClick", "isMenuClosable"] }, host: { properties: { "class.dropdown": "true", "class.open": "popoverService.open" } }, providers: [ROOT_DROPDOWN_PROVIDER, FOCUS_SERVICE_PROVIDER, DROPDOWN_FOCUS_HANDLER_PROVIDER], hostDirectives: [{ directive: i2.ClrPopoverHostDirective }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
195
+ }
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdown, decorators: [{
197
+ type: Component,
198
+ args: [{
199
+ selector: 'clr-dropdown',
200
+ template: `<ng-content></ng-content>`,
201
+ host: {
202
+ '[class.dropdown]': 'true',
203
+ '[class.open]': 'popoverService.open',
204
+ },
205
+ providers: [ROOT_DROPDOWN_PROVIDER, FOCUS_SERVICE_PROVIDER, DROPDOWN_FOCUS_HANDLER_PROVIDER],
206
+ hostDirectives: [ClrPopoverHostDirective],
207
+ standalone: false,
208
+ }]
209
+ }], ctorParameters: () => [{ type: ClrDropdown, decorators: [{
210
+ type: SkipSelf
211
+ }, {
212
+ type: Optional
213
+ }] }, { type: i2.ClrPopoverService }, { type: DropdownFocusHandler }, { type: i0.ChangeDetectorRef }, { type: RootDropdownService }], propDecorators: { isMenuClosable: [{
214
+ type: Input,
215
+ args: ['clrCloseMenuOnItemClick']
216
+ }] } });
217
+
218
+ /*
219
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
220
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
221
+ * This software is released under MIT license.
222
+ * The full license information can be found in LICENSE in the root directory of this project.
223
+ */
224
+ class ClrDropdownMenu {
225
+ constructor(parentHost, nested, focusHandler, elementRef, popoverService, popoverContent) {
226
+ this.focusHandler = focusHandler;
227
+ this.elementRef = elementRef;
228
+ this.popoverService = popoverService;
229
+ this.popoverContent = popoverContent;
230
+ if (!parentHost) {
231
+ throw new Error('clr-dropdown-menu should only be used inside of a clr-dropdown');
232
+ }
233
+ popoverContent.scrollToClose = true;
234
+ popoverContent.contentType = ClrPopoverType.DROPDOWN;
235
+ popoverContent.contentAt = nested ? ClrPopoverPosition.RIGHT_TOP : ClrPopoverPosition.BOTTOM_LEFT;
236
+ popoverService.panelClass.push('clr-dropdown-container');
237
+ }
238
+ /*
239
+ * Fallback to hide when *clrIfOpen is not being used
240
+ */
241
+ get isOffScreen() {
242
+ return !this.popoverService.open;
243
+ }
244
+ set position(position) {
245
+ if (!position) {
246
+ return;
247
+ }
248
+ const posIndex = DROPDOWN_POSITIONS.indexOf(position);
249
+ if (posIndex === -1) {
250
+ return;
251
+ }
252
+ // set the popover values based on menu position
253
+ this.popoverContent.contentAt = DROPDOWN_POSITIONS[posIndex];
254
+ }
255
+ ngAfterContentInit() {
256
+ this.focusHandler.container = this.elementRef.nativeElement;
257
+ this.items.changes.subscribe(() => this.focusHandler.addChildren(this.items.toArray()));
258
+ // I saw this on GitHub as a solution to avoid code duplication because of missed QueryList changes
259
+ this.items.notifyOnChanges();
260
+ }
261
+ ngOnDestroy() {
262
+ this.focusHandler.resetChildren();
263
+ }
264
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownMenu, deps: [{ token: POPOVER_HOST_ORIGIN, optional: true }, { token: ClrDropdownMenu, optional: true, skipSelf: true }, { token: DropdownFocusHandler }, { token: i0.ElementRef }, { token: i2.ClrPopoverService }, { token: i2.ClrPopoverContent }], target: i0.ɵɵFactoryTarget.Component }); }
265
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: ClrDropdownMenu, isStandalone: false, selector: "clr-dropdown-menu", inputs: { position: ["clrPosition", "position"] }, host: { properties: { "class.dropdown-menu": "true", "attr.role": "\"menu\"", "class.is-off-screen": "this.isOffScreen" } }, queries: [{ propertyName: "items", predicate: FocusableItem }], hostDirectives: [{ directive: i2.ClrPopoverContent }], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
266
+ }
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownMenu, decorators: [{
268
+ type: Component,
269
+ args: [{
270
+ selector: 'clr-dropdown-menu',
271
+ template: `<ng-content></ng-content>`,
272
+ host: {
273
+ '[class.dropdown-menu]': 'true',
274
+ '[attr.role]': '"menu"',
275
+ },
276
+ standalone: false,
277
+ hostDirectives: [ClrPopoverContent],
278
+ }]
279
+ }], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
280
+ type: Optional
281
+ }, {
282
+ type: Inject,
283
+ args: [POPOVER_HOST_ORIGIN]
284
+ }] }, { type: ClrDropdownMenu, decorators: [{
285
+ type: Optional
286
+ }, {
287
+ type: SkipSelf
288
+ }] }, { type: DropdownFocusHandler }, { type: i0.ElementRef }, { type: i2.ClrPopoverService }, { type: i2.ClrPopoverContent }], propDecorators: { items: [{
289
+ type: ContentChildren,
290
+ args: [FocusableItem]
291
+ }], isOffScreen: [{
292
+ type: HostBinding,
293
+ args: ['class.is-off-screen']
294
+ }], position: [{
295
+ type: Input,
296
+ args: ['clrPosition']
297
+ }] } });
298
+
299
+ /*
300
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
301
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
302
+ * This software is released under MIT license.
303
+ * The full license information can be found in LICENSE in the root directory of this project.
304
+ */
305
+ class ClrDropdownTrigger {
306
+ constructor(dropdown, popoverService, el, focusHandler) {
307
+ this.popoverService = popoverService;
308
+ this.isRootLevelToggle = true;
309
+ // if the containing dropdown has a parent, then this is not the root level one
310
+ if (dropdown.parent) {
311
+ this.isRootLevelToggle = false;
312
+ }
313
+ focusHandler.trigger = el.nativeElement;
314
+ popoverService.origin = el;
315
+ }
316
+ get active() {
317
+ return this.popoverService.open;
318
+ }
319
+ onDropdownTriggerClick(event) {
320
+ this.popoverService.toggleWithEvent(event);
321
+ }
322
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownTrigger, deps: [{ token: ClrDropdown }, { token: i2.ClrPopoverService }, { token: i0.ElementRef }, { token: DropdownFocusHandler }], target: i0.ɵɵFactoryTarget.Directive }); }
323
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: ClrDropdownTrigger, isStandalone: false, selector: "[clrDropdownTrigger],[clrDropdownToggle]", host: { listeners: { "click": "onDropdownTriggerClick($event)" }, properties: { "class.dropdown-toggle": "isRootLevelToggle", "class.dropdown-item": "!isRootLevelToggle", "class.expandable": "!isRootLevelToggle", "class.active": "active", "attr.aria-haspopup": "\"menu\"", "attr.aria-expanded": "active" } }, ngImport: i0 }); }
324
+ }
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownTrigger, decorators: [{
326
+ type: Directive,
327
+ args: [{
328
+ // We support both selectors for legacy reasons
329
+ selector: '[clrDropdownTrigger],[clrDropdownToggle]',
330
+ host: {
331
+ '[class.dropdown-toggle]': 'isRootLevelToggle',
332
+ '[class.dropdown-item]': '!isRootLevelToggle',
333
+ '[class.expandable]': '!isRootLevelToggle',
334
+ '[class.active]': 'active',
335
+ '[attr.aria-haspopup]': '"menu"',
336
+ '[attr.aria-expanded]': 'active',
337
+ },
338
+ standalone: false,
339
+ }]
340
+ }], ctorParameters: () => [{ type: ClrDropdown }, { type: i2.ClrPopoverService }, { type: i0.ElementRef }, { type: DropdownFocusHandler }], propDecorators: { onDropdownTriggerClick: [{
341
+ type: HostListener,
342
+ args: ['click', ['$event']]
343
+ }] } });
344
+
345
+ /*
346
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
347
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
348
+ * This software is released under MIT license.
349
+ * The full license information can be found in LICENSE in the root directory of this project.
350
+ */
351
+ class ClrDropdownItem {
352
+ constructor(dropdown, _dropdownService, focusableItem, el, renderer) {
353
+ this.dropdown = dropdown;
354
+ this._dropdownService = _dropdownService;
355
+ this.focusableItem = focusableItem;
356
+ this.el = el;
357
+ this.renderer = renderer;
358
+ }
359
+ get disabled() {
360
+ return this.focusableItem.disabled;
361
+ }
362
+ set disabled(value) {
363
+ // Empty string attribute evaluates to false but should disable the item, so we need to add a special case for it.
364
+ this.focusableItem.disabled = !!value || value === '';
365
+ }
366
+ /**
367
+ * Let you overwrite the focusable auto increment id.
368
+ */
369
+ get dropdownItemId() {
370
+ return this.focusableItem.id;
371
+ }
372
+ set dropdownItemId(value) {
373
+ this.focusableItem.id = value;
374
+ }
375
+ onDropdownItemClick() {
376
+ // Move focus back to the root dropdown trigger.
377
+ // This is done BEFORE the dropdown is closed so that focus gets moved properly if a modal is opened.
378
+ if (this.dropdown.isMenuClosable && !this.disabled && this.dropdown.popoverService.open) {
379
+ const rootDropdown = this.findRootDropdown();
380
+ rootDropdown.focusHandler.focus();
381
+ }
382
+ // Ensure that the dropdown is closed after custom dropdown item click event handlers have run.
383
+ setTimeout(() => {
384
+ if (this.dropdown.isMenuClosable && !this.disabled) {
385
+ this._dropdownService.closeMenus();
386
+ }
387
+ });
388
+ }
389
+ onSpaceKeydown($event) {
390
+ this.stopImmediatePropagationIfDisabled($event);
391
+ }
392
+ onEnterKeydown($event) {
393
+ this.stopImmediatePropagationIfDisabled($event);
394
+ }
395
+ stopImmediatePropagationIfDisabled($event) {
396
+ if (this.disabled) {
397
+ $event.preventDefault(); // prevent click event
398
+ $event.stopImmediatePropagation();
399
+ }
400
+ }
401
+ findRootDropdown() {
402
+ let rootDropdown = this.dropdown;
403
+ while (rootDropdown.parent) {
404
+ rootDropdown = rootDropdown.parent;
405
+ }
406
+ return rootDropdown;
407
+ }
408
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownItem, deps: [{ token: ClrDropdown }, { token: RootDropdownService }, { token: i2$1.FocusableItem }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
409
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: ClrDropdownItem, isStandalone: false, selector: "[clrDropdownItem]", inputs: { disabled: ["clrDisabled", "disabled"], dropdownItemId: ["id", "dropdownItemId"] }, host: { listeners: { "click": "onDropdownItemClick()", "keydown.space": "onSpaceKeydown($event)", "keydown.enter": "onEnterKeydown($event)" }, properties: { "class.disabled": "disabled", "class.dropdown-item": "true", "attr.role": "\"menuitem\"", "attr.aria-disabled": "disabled", "attr.id": "dropdownItemId" } }, providers: [BASIC_FOCUSABLE_ITEM_PROVIDER], ngImport: i0 }); }
410
+ }
411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownItem, decorators: [{
412
+ type: Directive,
413
+ args: [{
414
+ selector: '[clrDropdownItem]',
415
+ host: {
416
+ '[class.disabled]': 'disabled',
417
+ '[class.dropdown-item]': 'true',
418
+ '[attr.role]': '"menuitem"',
419
+ '[attr.aria-disabled]': 'disabled',
420
+ '[attr.id]': 'dropdownItemId',
421
+ },
422
+ providers: [BASIC_FOCUSABLE_ITEM_PROVIDER],
423
+ standalone: false,
424
+ }]
425
+ }], ctorParameters: () => [{ type: ClrDropdown }, { type: RootDropdownService }, { type: i2$1.FocusableItem }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { disabled: [{
426
+ type: Input,
427
+ args: ['clrDisabled']
428
+ }], dropdownItemId: [{
429
+ type: Input,
430
+ args: ['id']
431
+ }], onDropdownItemClick: [{
432
+ type: HostListener,
433
+ args: ['click']
434
+ }], onSpaceKeydown: [{
435
+ type: HostListener,
436
+ args: ['keydown.space', ['$event']]
437
+ }], onEnterKeydown: [{
438
+ type: HostListener,
439
+ args: ['keydown.enter', ['$event']]
440
+ }] } });
441
+
442
+ /*
443
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
444
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
445
+ * This software is released under MIT license.
446
+ * The full license information can be found in LICENSE in the root directory of this project.
447
+ */
448
+ const CLR_MENU_POSITIONS = [
449
+ 'bottom-left',
450
+ 'bottom-right',
451
+ 'left-bottom',
452
+ 'left-top',
453
+ 'right-bottom',
454
+ 'right-top',
455
+ 'top-left',
456
+ 'top-right',
457
+ ];
458
+
459
+ /*
460
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
461
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
462
+ * This software is released under MIT license.
463
+ * The full license information can be found in LICENSE in the root directory of this project.
464
+ */
465
+ const CLR_DROPDOWN_DIRECTIVES = [ClrDropdown, ClrDropdownMenu, ClrDropdownTrigger, ClrDropdownItem];
466
+ class ClrDropdownModule {
467
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
468
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownModule, declarations: [ClrDropdown, ClrDropdownMenu, ClrDropdownTrigger, ClrDropdownItem], imports: [CommonModule, ClrIcon, ClrIfOpen], exports: [ClrDropdown, ClrDropdownMenu, ClrDropdownTrigger, ClrDropdownItem, ClrIfOpen, ClrIcon] }); }
469
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownModule, imports: [CommonModule, ClrIcon] }); }
470
+ }
471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrDropdownModule, decorators: [{
472
+ type: NgModule,
473
+ args: [{
474
+ imports: [CommonModule, ClrIcon, ClrIfOpen],
475
+ declarations: [CLR_DROPDOWN_DIRECTIVES],
476
+ exports: [CLR_DROPDOWN_DIRECTIVES, ClrIfOpen, ClrIcon],
477
+ }]
478
+ }] });
479
+
480
+ /*
481
+ * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
482
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
483
+ * This software is released under MIT license.
484
+ * The full license information can be found in LICENSE in the root directory of this project.
485
+ */
486
+
487
+ /**
488
+ * Generated bundle index. Do not edit.
489
+ */
490
+
491
+ export { CLR_DROPDOWN_DIRECTIVES, CLR_MENU_POSITIONS, ClrDropdown, ClrDropdownItem, ClrDropdownMenu, ClrDropdownModule, ClrDropdownTrigger };
492
+ //# sourceMappingURL=clr-angular-popover-dropdown.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clr-angular-popover-dropdown.mjs","sources":["../../../projects/angular/popover/dropdown/providers/dropdown-focus-handler.service.ts","../../../projects/angular/popover/dropdown/providers/dropdown.service.ts","../../../projects/angular/popover/dropdown/dropdown.ts","../../../projects/angular/popover/dropdown/dropdown-menu.ts","../../../projects/angular/popover/dropdown/dropdown-trigger.ts","../../../projects/angular/popover/dropdown/dropdown-item.ts","../../../projects/angular/popover/dropdown/menu-positions.ts","../../../projects/angular/popover/dropdown/dropdown.module.ts","../../../projects/angular/popover/dropdown/index.ts","../../../projects/angular/popover/dropdown/clr-angular-popover-dropdown.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { isPlatformBrowser } from '@angular/common';\nimport { Inject, Injectable, OnDestroy, Optional, PLATFORM_ID, Renderer2, SkipSelf } from '@angular/core';\nimport { ClrPopoverService } from '@clr/angular/popover/common';\nimport {\n ArrowKeyDirection,\n customFocusableItemProvider,\n FocusableItem,\n FocusService,\n Linkers,\n uniqueIdFactory,\n wrapObservable,\n} from '@clr/angular/utils';\nimport { Observable, of, ReplaySubject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n@Injectable()\nexport class DropdownFocusHandler implements OnDestroy, FocusableItem {\n id = uniqueIdFactory();\n\n right?: Observable<FocusableItem>;\n down?: Observable<FocusableItem>;\n up?: Observable<FocusableItem>;\n\n private _trigger: HTMLElement;\n private _container: HTMLElement;\n private children: ReplaySubject<FocusableItem[]>;\n private _unlistenFuncs: (() => void)[] = [];\n\n constructor(\n private renderer: Renderer2,\n @SkipSelf()\n @Optional()\n private parent: DropdownFocusHandler,\n private popoverService: ClrPopoverService,\n private focusService: FocusService,\n @Inject(PLATFORM_ID) private platformId: any\n ) {\n this.resetChildren();\n this.moveToFirstItemWhenOpen();\n }\n\n get trigger() {\n return this._trigger;\n }\n set trigger(el: HTMLElement) {\n this._trigger = el;\n\n if (this.parent) {\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.arrowright', event => this.popoverService.toggleWithEvent(event))\n );\n } else {\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.arrowup', event => this.popoverService.toggleWithEvent(event))\n );\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.arrowdown', event => this.popoverService.toggleWithEvent(event))\n );\n }\n }\n\n get container() {\n return this._container;\n }\n\n set container(el: HTMLElement) {\n this._container = el;\n\n // whether root container or not, tab key should always toggle (i.e. close) the container\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.tab', event => this.popoverService.toggleWithEvent(event)),\n this.renderer.listen(el, 'keydown.shift.tab', event => this.popoverService.toggleWithEvent(event))\n );\n\n // All containers are registered to the focus service.\n this.focusService.registerContainer(el);\n\n if (this.parent) {\n // if it's a nested container, pressing escape has the same effect as pressing left key, which closes the current\n // popup and moves up to its parent. Here, we stop propagation so that the parent container\n // doesn't receive the escape keydown\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.escape', event => {\n this.focusService.move(ArrowKeyDirection.LEFT);\n event.stopPropagation();\n })\n );\n }\n }\n\n ngOnDestroy() {\n this._unlistenFuncs.forEach((unlisten: () => void) => unlisten());\n\n this.focusService.detachListeners(this.container);\n }\n\n /**\n * If the dropdown was opened by clicking on the trigger, we automatically move to the first item\n */\n moveToFirstItemWhenOpen() {\n const subscription = this.popoverService.openChange.subscribe(open => {\n if (open && this.popoverService.openEvent) {\n // Even if we properly waited for ngAfterViewInit, the container still wouldn't be attached to the DOM.\n // So setTimeout is the only way to wait for the container to be ready to move focus to first item.\n setTimeout(() => {\n this.focusService.moveTo(this);\n if (this.parent) {\n this.focusService.move(ArrowKeyDirection.RIGHT);\n } else {\n this.focusService.move(ArrowKeyDirection.DOWN);\n }\n });\n }\n });\n\n this._unlistenFuncs.push(() => subscription.unsubscribe());\n }\n\n focus() {\n if (this.trigger && isPlatformBrowser(this.platformId)) {\n this.trigger.focus();\n }\n }\n\n blur() {\n if (this.trigger && isPlatformBrowser(this.platformId)) {\n this.trigger.blur();\n }\n }\n\n activate() {\n if (isPlatformBrowser(this.platformId)) {\n this.trigger.click();\n }\n }\n\n resetChildren() {\n this.children = new ReplaySubject<FocusableItem[]>(1);\n if (this.parent) {\n this.right = this.openAndGetChildren().pipe(map(all => all[0]));\n } else {\n this.down = this.openAndGetChildren().pipe(map(all => all[0]));\n this.up = this.openAndGetChildren().pipe(map(all => all[all.length - 1]));\n }\n }\n\n addChildren(children: FocusableItem[]) {\n Linkers.linkVertical(children);\n if (this.parent) {\n Linkers.linkParent(children, this.closeAndGetThis(), ArrowKeyDirection.LEFT);\n }\n this.children.next(children);\n }\n\n private openAndGetChildren() {\n return wrapObservable(this.children, () => (this.popoverService.open = true));\n }\n\n private closeAndGetThis() {\n return wrapObservable(of(this), () => (this.popoverService.open = false));\n }\n}\n\nexport const DROPDOWN_FOCUS_HANDLER_PROVIDER = customFocusableItemProvider(DropdownFocusHandler);\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Injectable, Optional, SkipSelf } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\n@Injectable()\nexport class RootDropdownService {\n private _changes = new Subject<boolean>();\n\n get changes(): Observable<boolean> {\n return this._changes.asObservable();\n }\n\n closeMenus(): void {\n this._changes.next(false);\n }\n}\n\nexport function clrRootDropdownFactory(existing: RootDropdownService) {\n return existing || new RootDropdownService();\n}\n\nexport const ROOT_DROPDOWN_PROVIDER = {\n provide: RootDropdownService,\n useFactory: clrRootDropdownFactory,\n deps: [[new Optional(), new SkipSelf(), RootDropdownService]],\n};\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { ChangeDetectorRef, Component, Input, OnDestroy, Optional, SkipSelf } from '@angular/core';\nimport { ClrPopoverHostDirective, ClrPopoverPoint, ClrPopoverService } from '@clr/angular/popover/common';\nimport { FOCUS_SERVICE_PROVIDER } from '@clr/angular/utils';\nimport { Subscription } from 'rxjs';\n\nimport { DROPDOWN_FOCUS_HANDLER_PROVIDER, DropdownFocusHandler } from './providers/dropdown-focus-handler.service';\nimport { ROOT_DROPDOWN_PROVIDER, RootDropdownService } from './providers/dropdown.service';\n@Component({\n selector: 'clr-dropdown',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.dropdown]': 'true',\n '[class.open]': 'popoverService.open',\n },\n providers: [ROOT_DROPDOWN_PROVIDER, FOCUS_SERVICE_PROVIDER, DROPDOWN_FOCUS_HANDLER_PROVIDER],\n hostDirectives: [ClrPopoverHostDirective],\n standalone: false,\n})\nexport class ClrDropdown implements OnDestroy {\n @Input('clrCloseMenuOnItemClick') isMenuClosable = true;\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n @SkipSelf()\n @Optional()\n public parent: ClrDropdown,\n public popoverService: ClrPopoverService,\n public focusHandler: DropdownFocusHandler,\n cdr: ChangeDetectorRef,\n dropdownService: RootDropdownService\n ) {\n this.subscriptions.push(dropdownService.changes.subscribe(value => (popoverService.open = value)));\n this.subscriptions.push(popoverService.openChange.subscribe(() => cdr.markForCheck()));\n }\n\n openAtPoint(point: ClrPopoverPoint, targetElement?: HTMLElement) {\n this.popoverService.openAtPoint(point, targetElement);\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport {\n AfterContentInit,\n Component,\n ContentChildren,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n OnDestroy,\n Optional,\n QueryList,\n SkipSelf,\n} from '@angular/core';\nimport {\n ClrPopoverContent,\n ClrPopoverPosition,\n ClrPopoverService,\n ClrPopoverType,\n DROPDOWN_POSITIONS,\n POPOVER_HOST_ORIGIN,\n} from '@clr/angular/popover/common';\nimport { FocusableItem } from '@clr/angular/utils';\n\nimport { DropdownFocusHandler } from './providers/dropdown-focus-handler.service';\n\n@Component({\n selector: 'clr-dropdown-menu',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.dropdown-menu]': 'true',\n '[attr.role]': '\"menu\"',\n },\n standalone: false,\n hostDirectives: [ClrPopoverContent],\n})\nexport class ClrDropdownMenu implements AfterContentInit, OnDestroy {\n @ContentChildren(FocusableItem) items: QueryList<FocusableItem>;\n\n constructor(\n @Optional()\n @Inject(POPOVER_HOST_ORIGIN)\n parentHost: ElementRef<HTMLElement>,\n @Optional()\n @SkipSelf()\n nested: ClrDropdownMenu,\n private focusHandler: DropdownFocusHandler,\n private elementRef: ElementRef,\n private popoverService: ClrPopoverService,\n private popoverContent: ClrPopoverContent\n ) {\n if (!parentHost) {\n throw new Error('clr-dropdown-menu should only be used inside of a clr-dropdown');\n }\n\n popoverContent.scrollToClose = true;\n\n popoverContent.contentType = ClrPopoverType.DROPDOWN;\n\n popoverContent.contentAt = nested ? ClrPopoverPosition.RIGHT_TOP : ClrPopoverPosition.BOTTOM_LEFT;\n\n popoverService.panelClass.push('clr-dropdown-container');\n }\n\n /*\n * Fallback to hide when *clrIfOpen is not being used\n */\n @HostBinding('class.is-off-screen')\n get isOffScreen() {\n return !this.popoverService.open;\n }\n\n @Input('clrPosition')\n set position(position: string | ClrPopoverPosition) {\n if (!position) {\n return;\n }\n\n const posIndex = DROPDOWN_POSITIONS.indexOf(position as ClrPopoverPosition);\n\n if (posIndex === -1) {\n return;\n }\n\n // set the popover values based on menu position\n this.popoverContent.contentAt = DROPDOWN_POSITIONS[posIndex];\n }\n\n ngAfterContentInit() {\n this.focusHandler.container = this.elementRef.nativeElement;\n this.items.changes.subscribe(() => this.focusHandler.addChildren(this.items.toArray()));\n // I saw this on GitHub as a solution to avoid code duplication because of missed QueryList changes\n this.items.notifyOnChanges();\n }\n\n ngOnDestroy() {\n this.focusHandler.resetChildren();\n }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Directive, ElementRef, HostListener } from '@angular/core';\nimport { ClrPopoverService } from '@clr/angular/popover/common';\n\nimport { ClrDropdown } from './dropdown';\nimport { DropdownFocusHandler } from './providers/dropdown-focus-handler.service';\n\n@Directive({\n // We support both selectors for legacy reasons\n selector: '[clrDropdownTrigger],[clrDropdownToggle]',\n host: {\n '[class.dropdown-toggle]': 'isRootLevelToggle',\n '[class.dropdown-item]': '!isRootLevelToggle',\n '[class.expandable]': '!isRootLevelToggle',\n '[class.active]': 'active',\n '[attr.aria-haspopup]': '\"menu\"',\n '[attr.aria-expanded]': 'active',\n },\n standalone: false,\n})\nexport class ClrDropdownTrigger {\n isRootLevelToggle = true;\n\n constructor(\n dropdown: ClrDropdown,\n private popoverService: ClrPopoverService,\n el: ElementRef<HTMLElement>,\n focusHandler: DropdownFocusHandler\n ) {\n // if the containing dropdown has a parent, then this is not the root level one\n if (dropdown.parent) {\n this.isRootLevelToggle = false;\n }\n focusHandler.trigger = el.nativeElement;\n popoverService.origin = el;\n }\n\n get active(): boolean {\n return this.popoverService.open;\n }\n\n @HostListener('click', ['$event'])\n onDropdownTriggerClick(event: any): void {\n this.popoverService.toggleWithEvent(event);\n }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Directive, ElementRef, HostListener, Input, Renderer2 } from '@angular/core';\nimport { BASIC_FOCUSABLE_ITEM_PROVIDER, FocusableItem } from '@clr/angular/utils';\n\nimport { ClrDropdown } from './dropdown';\nimport { RootDropdownService } from './providers/dropdown.service';\n\n@Directive({\n selector: '[clrDropdownItem]',\n host: {\n '[class.disabled]': 'disabled',\n '[class.dropdown-item]': 'true',\n '[attr.role]': '\"menuitem\"',\n '[attr.aria-disabled]': 'disabled',\n '[attr.id]': 'dropdownItemId',\n },\n providers: [BASIC_FOCUSABLE_ITEM_PROVIDER],\n standalone: false,\n})\nexport class ClrDropdownItem {\n constructor(\n private dropdown: ClrDropdown,\n private _dropdownService: RootDropdownService,\n private focusableItem: FocusableItem,\n private el: ElementRef,\n private renderer: Renderer2\n ) {}\n\n @Input('clrDisabled')\n get disabled() {\n return this.focusableItem.disabled;\n }\n set disabled(value: boolean | string) {\n // Empty string attribute evaluates to false but should disable the item, so we need to add a special case for it.\n this.focusableItem.disabled = !!value || value === '';\n }\n\n /**\n * Let you overwrite the focusable auto increment id.\n */\n @Input('id')\n get dropdownItemId() {\n return this.focusableItem.id;\n }\n set dropdownItemId(value: string) {\n this.focusableItem.id = value;\n }\n\n @HostListener('click')\n private onDropdownItemClick(): void {\n // Move focus back to the root dropdown trigger.\n // This is done BEFORE the dropdown is closed so that focus gets moved properly if a modal is opened.\n if (this.dropdown.isMenuClosable && !this.disabled && this.dropdown.popoverService.open) {\n const rootDropdown = this.findRootDropdown();\n\n rootDropdown.focusHandler.focus();\n }\n\n // Ensure that the dropdown is closed after custom dropdown item click event handlers have run.\n setTimeout(() => {\n if (this.dropdown.isMenuClosable && !this.disabled) {\n this._dropdownService.closeMenus();\n }\n });\n }\n\n @HostListener('keydown.space', ['$event'])\n private onSpaceKeydown($event: KeyboardEvent) {\n this.stopImmediatePropagationIfDisabled($event);\n }\n\n @HostListener('keydown.enter', ['$event'])\n private onEnterKeydown($event: KeyboardEvent) {\n this.stopImmediatePropagationIfDisabled($event);\n }\n\n private stopImmediatePropagationIfDisabled($event: Event) {\n if (this.disabled) {\n $event.preventDefault(); // prevent click event\n $event.stopImmediatePropagation();\n }\n }\n\n private findRootDropdown() {\n let rootDropdown = this.dropdown;\n\n while (rootDropdown.parent) {\n rootDropdown = rootDropdown.parent;\n }\n\n return rootDropdown;\n }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport const CLR_MENU_POSITIONS: string[] = [\n 'bottom-left',\n 'bottom-right',\n 'left-bottom',\n 'left-top',\n 'right-bottom',\n 'right-top',\n 'top-left',\n 'top-right',\n];\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { ClrIcon } from '@clr/angular/icon';\nimport { ClrIfOpen } from '@clr/angular/popover/common';\n\nimport { ClrDropdown } from './dropdown';\nimport { ClrDropdownItem } from './dropdown-item';\nimport { ClrDropdownMenu } from './dropdown-menu';\nimport { ClrDropdownTrigger } from './dropdown-trigger';\n\nexport const CLR_DROPDOWN_DIRECTIVES: Type<any>[] = [ClrDropdown, ClrDropdownMenu, ClrDropdownTrigger, ClrDropdownItem];\n\n@NgModule({\n imports: [CommonModule, ClrIcon, ClrIfOpen],\n declarations: [CLR_DROPDOWN_DIRECTIVES],\n exports: [CLR_DROPDOWN_DIRECTIVES, ClrIfOpen, ClrIcon],\n})\nexport class ClrDropdownModule {}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport * from './dropdown';\nexport * from './dropdown-menu';\nexport * from './dropdown-trigger';\nexport * from './dropdown-item';\nexport * from './menu-positions';\nexport * from './dropdown.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.DropdownFocusHandler","i3.RootDropdownService","i1.DropdownFocusHandler","i1.ClrDropdown","i3.DropdownFocusHandler","i2.RootDropdownService","i3"],"mappings":";;;;;;;;;;;AAAA;;;;;AAKG;MAiBU,oBAAoB,CAAA;IAY/B,WAAA,CACU,QAAmB,EAGnB,MAA4B,EAC5B,cAAiC,EACjC,YAA0B,EACL,UAAe,EAAA;QANpC,IAAA,CAAA,QAAQ,GAAR,QAAQ;QAGR,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,cAAc,GAAd,cAAc;QACd,IAAA,CAAA,YAAY,GAAZ,YAAY;QACS,IAAA,CAAA,UAAU,GAAV,UA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