@ptsecurity/mosaic 12.2.1 → 12.2.2

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 (56) hide show
  1. package/_theming.scss +22 -18
  2. package/_visual.scss +0 -1
  3. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1
  4. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
  5. package/bundles/ptsecurity-mosaic-dropdown.umd.js +17 -2
  6. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +1 -1
  7. package/bundles/ptsecurity-mosaic-modal.umd.js +13 -6
  8. package/bundles/ptsecurity-mosaic-modal.umd.js.map +1 -1
  9. package/bundles/ptsecurity-mosaic-navbar.umd.js +1 -1
  10. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
  11. package/bundles/ptsecurity-mosaic-popover.umd.js +24 -18
  12. package/bundles/ptsecurity-mosaic-popover.umd.js.map +1 -1
  13. package/bundles/ptsecurity-mosaic-splitter.umd.js +16 -4
  14. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +1 -1
  15. package/bundles/ptsecurity-mosaic-tags.umd.js +2 -1
  16. package/bundles/ptsecurity-mosaic-tags.umd.js.map +1 -1
  17. package/bundles/ptsecurity-mosaic-timepicker.umd.js +2 -1
  18. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
  19. package/design-tokens/style-dictionary/build.js +6 -0
  20. package/design-tokens/style-dictionary/configs/index.js +2 -1
  21. package/design-tokens/tokens.d.ts +0 -1
  22. package/dropdown/dropdown-item.component.d.ts +1 -0
  23. package/esm2015/design-tokens/tokens.js +1 -2
  24. package/esm2015/dropdown/dropdown-item.component.js +9 -2
  25. package/esm2015/dropdown/dropdown-trigger.directive.js +10 -2
  26. package/esm2015/modal/modal.component.js +2 -2
  27. package/esm2015/modal/modal.service.js +13 -6
  28. package/esm2015/navbar/navbar-item.component.js +3 -3
  29. package/esm2015/popover/popover-confirm.component.js +9 -8
  30. package/esm2015/popover/popover.component.js +14 -8
  31. package/esm2015/popover/popover.module.js +5 -4
  32. package/esm2015/splitter/splitter.component.js +17 -6
  33. package/esm2015/tags/tag.component.js +3 -2
  34. package/esm2015/timepicker/timepicker.directive.js +3 -2
  35. package/fesm2015/ptsecurity-mosaic-design-tokens.js +0 -1
  36. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
  37. package/fesm2015/ptsecurity-mosaic-dropdown.js +17 -2
  38. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +1 -1
  39. package/fesm2015/ptsecurity-mosaic-modal.js +13 -6
  40. package/fesm2015/ptsecurity-mosaic-modal.js.map +1 -1
  41. package/fesm2015/ptsecurity-mosaic-navbar.js +2 -2
  42. package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
  43. package/fesm2015/ptsecurity-mosaic-popover.js +21 -14
  44. package/fesm2015/ptsecurity-mosaic-popover.js.map +1 -1
  45. package/fesm2015/ptsecurity-mosaic-splitter.js +16 -5
  46. package/fesm2015/ptsecurity-mosaic-splitter.js.map +1 -1
  47. package/fesm2015/ptsecurity-mosaic-tags.js +2 -1
  48. package/fesm2015/ptsecurity-mosaic-tags.js.map +1 -1
  49. package/fesm2015/ptsecurity-mosaic-timepicker.js +2 -1
  50. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
  51. package/package.json +5 -5
  52. package/popover/popover.component.d.ts +2 -0
  53. package/popover/popover.module.d.ts +2 -1
  54. package/prebuilt-themes/dark-theme.css +1 -1
  55. package/prebuilt-themes/default-theme.css +1 -1
  56. package/splitter/splitter.component.d.ts +6 -3
@@ -535,10 +535,17 @@
535
535
  }
536
536
  return ((_b = clone.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || '';
537
537
  };
538
+ McDropdownItem.prototype.haltDisabledEvents = function (event) {
539
+ if (this.disabled) {
540
+ event.preventDefault();
541
+ event.stopImmediatePropagation();
542
+ event.stopPropagation();
543
+ }
544
+ };
538
545
  return McDropdownItem;
539
546
  }(McDropdownItemMixinBase));
540
547
  /** @nocollapse */ McDropdownItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownItem, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace.FocusMonitor }, { token: MC_DROPDOWN_PANEL, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
541
- /** @nocollapse */ McDropdownItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownItem, selector: "mc-dropdown-item, [mc-dropdown-item]", inputs: { disabled: "disabled" }, host: { listeners: { "click": "checkDisabled($event)", "mouseenter": "handleMouseEnter()" }, properties: { "class.mc-dropdown-item_with-icon": "icon", "class.mc-dropdown-item_highlighted": "highlighted", "attr.disabled": "disabled || null", "attr.tabindex": "getTabIndex()" }, classAttribute: "mc-dropdown-item" }, queries: [{ propertyName: "icon", first: true, predicate: i2.McIcon, descendants: true }], exportAs: ["mcDropdownItem"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-dropdown-item-wrapper\">\n <ng-content></ng-content>\n</div>\n<i *ngIf=\"isNested\" mc-icon=\"mc-angle-right-M_16\" class=\"mc-dropdown-trigger__icon\"></i>\n", styles: [".mc-dropdown-item{-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;box-sizing:border-box;width:100%;border:1px solid transparent;outline:none;padding:0;text-align:left;white-space:nowrap}.mc-dropdown-item:not([disabled]){cursor:pointer}.mc-dropdown-item .mc-dropdown-item__caption{margin-top:4px}.mc-dropdown-item.mc-dropdown-item_with-icon .mc-dropdown-item__caption{margin-left:24px}.mc-dropdown-item .docs-navbar-version__num{margin-right:4px}.mc-dropdown-item-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 15px;padding:var(--mc-dropdown-item-size-padding, 5px 15px)}.mc-dropdown-item-wrapper [mc-icon]{padding:0 8px 2px 0;padding:var(--mc-dropdown-item-size-icon-padding, 0 8px 2px 0)}.mc-dropdown-trigger__icon{margin-left:auto;padding-right:8px;padding-right:var(--dropdown-trigger-size-icon-padding-right, 8px)}.mc-dropdown__group-header{-webkit-user-select:none;user-select:none;padding:6px 15px;padding:var(--mc-dropdown-item-size-padding, 6px 15px)}.mc-dropdown__group-header.mc-dropdown__group-header_small{padding:8px 15px;padding:var(--mc-dropdown-item-size-padding, 8px 15px)}.mc-dropdown__divider{height:1px;height:var(--mc-dropdown-divider-size-height, 1px);margin:4px 0;margin:var(--mc-dropdown-divider-size-margin, 4px 0)}\n"], components: [{ type: i2__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
548
+ /** @nocollapse */ McDropdownItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownItem, selector: "mc-dropdown-item, [mc-dropdown-item]", inputs: { disabled: "disabled" }, host: { listeners: { "click": "checkDisabled($event)", "mouseenter": "handleMouseEnter()" }, properties: { "class.mc-dropdown-item_with-icon": "icon", "class.mc-dropdown-item_highlighted": "highlighted", "attr.disabled": "disabled || null", "attr.tabindex": "getTabIndex()" }, classAttribute: "mc-dropdown-item" }, queries: [{ propertyName: "icon", first: true, predicate: i2.McIcon, descendants: true }], exportAs: ["mcDropdownItem"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-dropdown-item-wrapper\">\n <ng-content></ng-content>\n</div>\n<i *ngIf=\"isNested\" mc-icon=\"mc-angle-right-M_16\" class=\"mc-dropdown-trigger__icon\"></i>\n<div class=\"mc-dropdown-item-overlay\" (click)=\"haltDisabledEvents($event)\"></div>\n", styles: [".mc-dropdown-item{-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;box-sizing:border-box;width:100%;border:1px solid transparent;outline:none;padding:0;text-align:left;white-space:nowrap}.mc-dropdown-item:not([disabled]){cursor:pointer}.mc-dropdown-item .mc-dropdown-item__caption{margin-top:4px}.mc-dropdown-item.mc-dropdown-item_with-icon .mc-dropdown-item__caption{margin-left:24px}.mc-dropdown-item .docs-navbar-version__num{margin-right:4px}.mc-dropdown-item-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 15px;padding:var(--mc-dropdown-item-size-padding, 5px 15px)}.mc-dropdown-item-wrapper [mc-icon]{padding:0 8px 2px 0;padding:var(--mc-dropdown-item-size-icon-padding, 0 8px 2px 0)}.mc-dropdown-item-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:inherit}.mc-dropdown-trigger__icon{margin-left:auto;padding-right:8px;padding-right:var(--dropdown-trigger-size-icon-padding-right, 8px)}.mc-dropdown__group-header{-webkit-user-select:none;user-select:none;padding:6px 15px;padding:var(--mc-dropdown-item-size-padding, 6px 15px)}.mc-dropdown__group-header.mc-dropdown__group-header_small{padding:8px 15px;padding:var(--mc-dropdown-item-size-padding, 8px 15px)}.mc-dropdown__divider{height:1px;height:var(--mc-dropdown-divider-size-height, 1px);margin:4px 0;margin:var(--mc-dropdown-divider-size-margin, 4px 0)}\n"], components: [{ type: i2__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
542
549
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownItem, decorators: [{
543
550
  type: i0.Component,
544
551
  args: [{
@@ -1138,9 +1145,17 @@
1138
1145
  McDropdownTrigger.prototype.handleKeydown = function (event) {
1139
1146
  // tslint:disable-next-line:deprecation
1140
1147
  var keyCode = event.keyCode;
1141
- // Pressing enter on the trigger will trigger the click handler later.
1142
1148
  if (keyCode === keycodes$1.ENTER || keyCode === keycodes$1.SPACE) {
1143
1149
  this.openedBy = 'keyboard';
1150
+ event.preventDefault();
1151
+ if (this.isNested()) {
1152
+ // Stop event propagation to avoid closing the parent dropdown.
1153
+ event.stopPropagation();
1154
+ this.open();
1155
+ }
1156
+ else {
1157
+ this.toggle();
1158
+ }
1144
1159
  }
1145
1160
  if ((this.isNested() &&
1146
1161
  ((keyCode === keycodes$1.RIGHT_ARROW && this.dir === 'ltr') || (keyCode === keycodes$1.LEFT_ARROW && this.dir === 'rtl'))) ||
@@ -1 +1 @@
1
- {"version":3,"file":"ptsecurity-mosaic-dropdown.umd.js","sources":["../../../packages/mosaic/dropdown/dropdown.types.ts","../../../packages/mosaic/dropdown/dropdown-content.directive.ts","../../../node_modules/tslib/tslib.es6.js","../../../packages/mosaic/dropdown/dropdown-item.component.ts","../../../packages/mosaic/dropdown/dropdown-item.html","../../../packages/mosaic/dropdown/dropdown-errors.ts","../../../packages/mosaic/dropdown/dropdown-animations.ts","../../../packages/mosaic/dropdown/dropdown.component.ts","../../../packages/mosaic/dropdown/dropdown.html","../../../packages/mosaic/dropdown/dropdown-trigger.directive.ts","../../../packages/mosaic/dropdown/dropdown.module.ts","../../../packages/mosaic/dropdown/ptsecurity-mosaic-dropdown.ts"],"sourcesContent":["import { FocusOrigin } from '@angular/cdk/a11y';\nimport { Direction } from '@angular/cdk/bidi';\nimport {\n EventEmitter,\n InjectionToken,\n TemplateRef\n} from '@angular/core';\n\nimport { McDropdownContent } from './dropdown-content.directive';\n\n\nexport type DropdownPositionX = 'before' | 'after';\n\nexport type DropdownPositionY = 'above' | 'below';\n\n/** Reason why the menu was closed. */\nexport type DropdownCloseReason = void | 'click' | 'keydown' | 'tab';\n\n/**\n * Interface for a custom dropdown panel that can be used with `mcDropdownTriggerFor`.\n * @docs-private\n */\n// tslint:disable-next-line:naming-convention\nexport interface McDropdownPanel {\n xPosition: DropdownPositionX;\n yPosition: DropdownPositionY;\n overlapTriggerX: boolean;\n overlapTriggerY: boolean;\n templateRef: TemplateRef<any>;\n closed: EventEmitter<DropdownCloseReason>;\n parent?: McDropdownPanel | undefined;\n triggerWidth?: string;\n direction?: Direction;\n lazyContent?: McDropdownContent;\n backdropClass?: string;\n hasBackdrop?: boolean;\n focusFirstItem(origin?: FocusOrigin): void;\n resetActiveItem(): void;\n setPositionClasses?(x: DropdownPositionX, y: DropdownPositionY): void;\n}\n\n\n/** Default `mc-dropdown` options that can be overridden. */\n// tslint:disable-next-line:naming-convention\nexport interface McDropdownDefaultOptions {\n /** The x-axis position of the dropdown. */\n xPosition: DropdownPositionX;\n\n /** The y-axis position of the dropdown. */\n yPosition: DropdownPositionY;\n\n /** Whether the dropdown should overlap the dropdown trigger horizontally. */\n overlapTriggerX: boolean;\n\n /** Whether the dropdown should overlap the dropdown trigger vertically. */\n overlapTriggerY: boolean;\n\n /** Class to be applied to the dropdown's backdrop. */\n backdropClass: string;\n\n /** Whether the dropdown has a backdrop. */\n hasBackdrop: boolean;\n}\n\n/**\n * Injection token used to provide the parent dropdown to dropdown-specific components.\n * @docs-private\n */\nexport const MC_DROPDOWN_PANEL = new InjectionToken<McDropdownPanel>('MC_DROPDOWN_PANEL');\n\n\n/** Injection token to be used to override the default options for `mc-dropdown`. */\nexport const MC_DROPDOWN_DEFAULT_OPTIONS =\n new InjectionToken<McDropdownDefaultOptions>('mc-dropdown-default-options', {\n providedIn: 'root',\n factory: MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY\n });\n\n/** @docs-private */\n// tslint:disable-next-line:naming-convention\nexport function MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY(): McDropdownDefaultOptions {\n return {\n overlapTriggerX: true,\n overlapTriggerY: false,\n xPosition: 'after',\n yPosition: 'below',\n backdropClass: 'cdk-overlay-transparent-backdrop',\n hasBackdrop: false\n };\n}\n","import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Directive,\n TemplateRef,\n ComponentFactoryResolver,\n ApplicationRef,\n Injector,\n ViewContainerRef,\n Inject,\n OnDestroy\n} from '@angular/core';\nimport { Subject } from 'rxjs';\n\n\n/**\n * Dropdown content that will be rendered lazily once the dropdown is opened.\n */\n@Directive({\n selector: 'ng-template[mcDropdownContent]'\n})\nexport class McDropdownContent implements OnDestroy {\n /** Emits when the dropdown content has been attached. */\n attached = new Subject<void>();\n private portal: TemplatePortal;\n private outlet: DomPortalOutlet;\n\n constructor(\n private template: TemplateRef<any>,\n private componentFactoryResolver: ComponentFactoryResolver,\n private appRef: ApplicationRef,\n private injector: Injector,\n private viewContainerRef: ViewContainerRef,\n @Inject(DOCUMENT) private document: any\n ) {}\n\n /**\n * Attaches the content with a particular context.\n * @docs-private\n */\n attach(context: any = {}) {\n if (!this.portal) {\n this.portal = new TemplatePortal(this.template, this.viewContainerRef);\n }\n\n this.detach();\n\n if (!this.outlet) {\n this.outlet = new DomPortalOutlet(\n this.document.createElement('div'),\n this.componentFactoryResolver,\n this.appRef,\n this.injector\n );\n }\n\n const element: HTMLElement = this.template.elementRef.nativeElement;\n\n // Because we support opening the same dropdown from different triggers (which in turn have their\n // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we\n // risk it staying attached to a pane that's no longer in the DOM.\n element.parentNode!.insertBefore(this.outlet.outletElement, element);\n this.portal.attach(this.outlet, context);\n this.attached.next();\n }\n\n /**\n * Detaches the content.\n * @docs-private\n */\n detach() {\n if (this.portal?.isAttached) {\n this.portal.detach();\n }\n }\n\n ngOnDestroy() {\n this.outlet?.dispose();\n }\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n OnDestroy,\n ViewEncapsulation,\n Inject,\n Optional,\n AfterViewInit,\n HostListener,\n ContentChild\n} from '@angular/core';\nimport { IFocusableOption } from '@ptsecurity/cdk/a11y';\nimport { CanDisable, CanDisableCtor, mixinDisabled } from '@ptsecurity/mosaic/core';\nimport { McIcon } from '@ptsecurity/mosaic/icon';\nimport { Subject } from 'rxjs';\n\nimport { MC_DROPDOWN_PANEL, McDropdownPanel } from './dropdown.types';\n\n\n// Boilerplate for applying mixins to McDropdownItem.\n/** @docs-private */\nclass McDropdownItemBase {}\n// tslint:disable-next-line:naming-convention\nconst McDropdownItemMixinBase: CanDisableCtor & typeof McDropdownItemBase = mixinDisabled(McDropdownItemBase);\n\n/**\n * This directive is intended to be used inside an mc-dropdown tag.\n * It exists mostly to set the role attribute.\n */\n@Component({\n selector: 'mc-dropdown-item, [mc-dropdown-item]',\n exportAs: 'mcDropdownItem',\n templateUrl: 'dropdown-item.html',\n styleUrls: ['dropdown-item.scss'],\n inputs: ['disabled'],\n host: {\n class: 'mc-dropdown-item',\n '[class.mc-dropdown-item_with-icon]': 'icon',\n '[class.mc-dropdown-item_highlighted]': 'highlighted',\n\n '[attr.disabled]': 'disabled || null',\n '[attr.tabindex]': 'getTabIndex()'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class McDropdownItem extends McDropdownItemMixinBase implements\n IFocusableOption, CanDisable, AfterViewInit, OnDestroy {\n\n @ContentChild(McIcon) icon: McIcon;\n\n /** Stream that emits when the dropdown item is hovered. */\n readonly hovered = new Subject<McDropdownItem>();\n\n /** Stream that emits when the menu item is focused. */\n readonly focused = new Subject<McDropdownItem>();\n\n /** Whether the dropdown item is highlighted. */\n highlighted: boolean = false;\n\n /** Whether the dropdown item acts as a trigger for a nested dropdown. */\n isNested: boolean = false;\n\n constructor(\n private elementRef: ElementRef<HTMLElement>,\n private focusMonitor: FocusMonitor,\n @Inject(MC_DROPDOWN_PANEL) @Optional() public parentDropdownPanel?: McDropdownPanel\n ) {\n super();\n }\n\n ngAfterViewInit() {\n if (this.focusMonitor) {\n // Start monitoring the element so it gets the appropriate focused classes. We want\n // to show the focus style for menu items only when the focus was not caused by a\n // mouse or touch interaction.\n this.focusMonitor.monitor(this.elementRef, false);\n }\n }\n\n ngOnDestroy() {\n if (this.focusMonitor) {\n this.focusMonitor.stopMonitoring(this.elementRef);\n }\n\n this.hovered.complete();\n this.focused.complete();\n }\n\n resetStyles() {\n this.getHostElement().classList.remove('cdk-keyboard-focused');\n }\n\n /** Focuses the dropdown item. */\n focus(origin?: FocusOrigin, options?: FocusOptions): void {\n if (this.focusMonitor && origin) {\n this.focusMonitor.focusVia(this.getHostElement(), origin, options);\n } else {\n this.getHostElement().focus(options);\n }\n\n this.focused.next(this);\n }\n\n /** Returns the host DOM element. */\n getHostElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n /** Used to set the `tabindex`. */\n getTabIndex(): string {\n return this.disabled ? '-1' : '0';\n }\n\n /** Prevents the default element actions if it is disabled. */\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n @HostListener('click', ['$event']) checkDisabled(event: Event): void {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /** Emits to the hover stream. */\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n @HostListener('mouseenter') handleMouseEnter() {\n this.hovered.next(this);\n }\n\n /** Gets the label to be used when determining whether the option should be focused. */\n getLabel(): string {\n const clone = this.getHostElement().cloneNode(true) as HTMLElement;\n const icons = clone.querySelectorAll('[mc-icon], .mc-icon');\n\n // Strip away icons so they don't show up in the text.\n // tslint:disable-next-line:prefer-for-of\n for (let i = 0; i < icons.length; i++) {\n const icon = icons[i];\n icon.parentNode?.removeChild(icon);\n }\n\n return clone.textContent?.trim() || '';\n }\n}\n","<div class=\"mc-dropdown-item-wrapper\">\n <ng-content></ng-content>\n</div>\n<i *ngIf=\"isNested\" mc-icon=\"mc-angle-right-M_16\" class=\"mc-dropdown-trigger__icon\"></i>\n","/**\n * Throws an exception for the case when dropdown trigger doesn't have a valid mc-dropdown instance\n * @docs-private\n */\nexport function throwMcDropdownMissingError() {\n throw Error(`mcDropdownTriggerFor: must pass in an mc-dropdown instance.\n Example:\n <mc-dropdown #dropdown=\"mcDropdown\"></mc-dropdown>\n <button [mcDropdownTriggerFor]=\"dropdown\"></button>`);\n}\n\n/**\n * Throws an exception for the case when dropdown's x-position value isn't valid.\n * In other words, it doesn't match 'before' or 'after'.\n * @docs-private\n */\nexport function throwMcDropdownInvalidPositionX() {\n throw Error(`xPosition value must be either 'before' or after'.\n Example: <mc-dropdown [xPosition]=\"'before'\" #dropdown=\"mcDropdown\"></mc-dropdown>`);\n}\n\n/**\n * Throws an exception for the case when dropdown's y-position value isn't valid.\n * In other words, it doesn't match 'above' or 'below'.\n * @docs-private\n */\nexport function throwMcDropdownInvalidPositionY() {\n throw Error(`yPosition value must be either 'above' or below'.\n Example: <mc-dropdown [yPosition]=\"'above'\" #dropdown=\"mcDropdown\"></mc-dropdown>`);\n}\n","import {\n trigger,\n state,\n style,\n animate,\n transition,\n query,\n group,\n AnimationTriggerMetadata\n} from '@angular/animations';\n\n\n/**\n * Animations used by the mc-dropdown component.\n * @docs-private\n */\nexport const mcDropdownAnimations: {\n readonly transformDropdown: AnimationTriggerMetadata;\n readonly fadeInItems: AnimationTriggerMetadata;\n} = {\n /**\n * This animation controls the dropdown panel's entry and exit from the page.\n *\n * When the dropdown panel is added to the DOM, it scales in and fades in its border.\n *\n * When the dropdown panel is removed from the DOM, it simply fades out after a brief\n * delay to display the ripple.\n */\n transformDropdown: trigger('transformDropdown', [\n state('void', style({\n opacity: 0,\n transform: 'scale(0.8)'\n })),\n transition('void => enter', group([\n query('.mc-dropdown__content', animate('50ms linear', style({opacity: 1}))),\n animate('50ms cubic-bezier(0, 0, 0.2, 1)', style({transform: 'scale(1)'}))\n ])),\n transition('* => void', animate('50ms 25ms linear', style({opacity: 0})))\n ]),\n\n\n /**\n * This animation fades in the background color and content of the dropdown panel\n * after its containing element is scaled in.\n */\n fadeInItems: trigger('fadeInItems', [\n // now. Remove next time we do breaking changes.\n state('showing', style({opacity: 1})),\n transition('void => *', [\n style({opacity: 0}),\n animate('200ms 60ms cubic-bezier(0.55, 0, 0.55, 0.2)')\n ])\n ])\n};\n\nexport const fadeInItems = mcDropdownAnimations.fadeInItems;\n\nexport const transformDropdown = mcDropdownAnimations.transformDropdown;\n","import { AnimationEvent } from '@angular/animations';\nimport { FocusOrigin } from '@angular/cdk/a11y';\nimport { Direction } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DOWN_ARROW, UP_ARROW } from '@angular/cdk/keycodes';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n TemplateRef,\n QueryList,\n ViewChild,\n ViewEncapsulation,\n OnInit\n} from '@angular/core';\nimport { FocusKeyManager } from '@ptsecurity/cdk/a11y';\nimport { ESCAPE, LEFT_ARROW, RIGHT_ARROW } from '@ptsecurity/cdk/keycodes';\nimport { merge, Observable, Subject, Subscription } from 'rxjs';\nimport { startWith, switchMap, take } from 'rxjs/operators';\n\nimport { mcDropdownAnimations } from './dropdown-animations';\nimport { McDropdownContent } from './dropdown-content.directive';\nimport { throwMcDropdownInvalidPositionX, throwMcDropdownInvalidPositionY } from './dropdown-errors';\nimport { McDropdownItem } from './dropdown-item.component';\nimport {\n DropdownPositionX,\n DropdownPositionY,\n MC_DROPDOWN_DEFAULT_OPTIONS,\n MC_DROPDOWN_PANEL,\n McDropdownDefaultOptions,\n McDropdownPanel\n} from './dropdown.types';\n\n\n@Component({\n selector: 'mc-dropdown',\n exportAs: 'mcDropdown',\n templateUrl: 'dropdown.html',\n styleUrls: ['dropdown.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n animations: [\n mcDropdownAnimations.transformDropdown,\n mcDropdownAnimations.fadeInItems\n ],\n providers: [\n { provide: MC_DROPDOWN_PANEL, useExisting: McDropdown }\n ]\n})\nexport class McDropdown implements AfterContentInit, McDropdownPanel, OnInit, OnDestroy {\n\n @Input() navigationWithWrap: boolean = false;\n\n /** Position of the dropdown in the X axis. */\n @Input()\n get xPosition(): DropdownPositionX {\n return this._xPosition;\n }\n\n set xPosition(value: DropdownPositionX) {\n if (value !== 'before' && value !== 'after') {\n throwMcDropdownInvalidPositionX();\n }\n this._xPosition = value;\n this.setPositionClasses();\n }\n\n /** Position of the dropdown in the Y axis. */\n @Input()\n get yPosition(): DropdownPositionY {\n return this._yPosition;\n }\n\n set yPosition(value: DropdownPositionY) {\n if (value !== 'above' && value !== 'below') {\n throwMcDropdownInvalidPositionY();\n }\n this._yPosition = value;\n this.setPositionClasses();\n }\n\n /** Whether the dropdown should overlap its trigger vertically. */\n @Input()\n get overlapTriggerY(): boolean {\n return this._overlapTriggerY;\n }\n\n set overlapTriggerY(value: boolean) {\n this._overlapTriggerY = coerceBooleanProperty(value);\n }\n\n /** Whether the dropdown should overlap its trigger horizontally. */\n @Input()\n get overlapTriggerX(): boolean {\n return this._overlapTriggerX;\n }\n\n set overlapTriggerX(value: boolean) {\n this._overlapTriggerX = coerceBooleanProperty(value);\n }\n\n /** Whether the dropdown has a backdrop. */\n @Input()\n get hasBackdrop(): boolean {\n return this._hasBackdrop;\n }\n\n set hasBackdrop(value: boolean) {\n this._hasBackdrop = coerceBooleanProperty(value);\n }\n\n /**\n * This method takes classes set on the host mc-dropdown element and applies them on the\n * dropdown template that displays in the overlay container. Otherwise, it's difficult\n * to style the containing dropdown from outside the component.\n * @param classes list of class names\n */\n @Input('class')\n set panelClass(classes: string) {\n const previousPanelClass = this.previousPanelClass;\n\n if (previousPanelClass && previousPanelClass.length) {\n previousPanelClass\n .split(' ')\n .forEach((className: string) => this.classList[className] = false);\n }\n\n this.previousPanelClass = classes;\n\n if (classes?.length) {\n classes\n .split(' ')\n .forEach((className: string) => this.classList[className] = true);\n\n this.elementRef.nativeElement.className = '';\n }\n }\n\n private _xPosition: DropdownPositionX = this.defaultOptions.xPosition;\n private _yPosition: DropdownPositionY = this.defaultOptions.yPosition;\n private _overlapTriggerX: boolean = this.defaultOptions.overlapTriggerX;\n private _overlapTriggerY: boolean = this.defaultOptions.overlapTriggerY;\n private _hasBackdrop: boolean = this.defaultOptions.hasBackdrop;\n\n triggerWidth: string = '';\n /** Config object to be passed into the dropdown's ngClass */\n classList: { [key: string]: boolean } = {};\n\n /** Current state of the panel animation. */\n panelAnimationState: 'void' | 'enter' = 'void';\n\n /** Emits whenever an animation on the dropdown completes. */\n animationDone = new Subject<AnimationEvent>();\n\n /** Whether the dropdown is animating. */\n isAnimating: boolean;\n\n /** Parent dropdown of the current dropdown panel. */\n parent: McDropdownPanel | undefined;\n\n /** Layout direction of the dropdown. */\n direction: Direction;\n\n /** Class to be added to the backdrop element. */\n @Input() backdropClass: string = this.defaultOptions.backdropClass;\n\n /** @docs-private */\n @ViewChild(TemplateRef, { static: false }) templateRef: TemplateRef<any>;\n\n /**\n * List of the items inside of a dropdown.\n */\n @ContentChildren(McDropdownItem, { descendants: true }) items: QueryList<McDropdownItem>;\n\n /**\n * Dropdown content that will be rendered lazily.\n * @docs-private\n */\n @ContentChild(McDropdownContent, { static: false }) lazyContent: McDropdownContent;\n\n /** Event emitted when the dropdown is closed. */\n @Output() readonly closed = new EventEmitter<void | 'click' | 'keydown' | 'tab'>();\n\n private previousPanelClass: string;\n\n private keyManager: FocusKeyManager<McDropdownItem>;\n\n /** Only the direct descendant menu items. */\n private directDescendantItems = new QueryList<McDropdownItem>();\n\n /** Subscription to tab events on the dropdown panel */\n private tabSubscription = Subscription.EMPTY;\n\n constructor(\n private elementRef: ElementRef<HTMLElement>,\n private ngZone: NgZone,\n @Inject(MC_DROPDOWN_DEFAULT_OPTIONS) private defaultOptions: McDropdownDefaultOptions) { }\n\n ngOnInit() {\n this.setPositionClasses();\n }\n\n ngAfterContentInit() {\n this.updateDirectDescendants();\n\n this.keyManager = new FocusKeyManager<McDropdownItem>(this.directDescendantItems)\n .withTypeAhead();\n\n if (this.navigationWithWrap) {\n this.keyManager.withWrap();\n }\n\n this.tabSubscription = this.keyManager.tabOut\n .subscribe(() => this.closed.emit('tab'));\n\n // If a user manually (programmatically) focuses a menu item, we need to reflect that focus\n // change back to the key manager. Note that we don't need to unsubscribe here because focused\n // is internal and we know that it gets completed on destroy.\n this.directDescendantItems.changes\n .pipe(\n startWith(this.directDescendantItems),\n switchMap((items) => merge(...items.map((item: McDropdownItem) => item.focused)))\n )\n .subscribe((focusedItem) => this.keyManager.updateActiveItem(focusedItem as McDropdownItem));\n }\n\n ngOnDestroy() {\n this.directDescendantItems.destroy();\n this.tabSubscription.unsubscribe();\n this.closed.complete();\n }\n\n /** Stream that emits whenever the hovered dropdown item changes. */\n hovered(): Observable<McDropdownItem> {\n const itemChanges = this.directDescendantItems.changes as Observable<QueryList<McDropdownItem>>;\n\n return itemChanges.pipe(\n startWith(this.directDescendantItems),\n switchMap((items) => merge(...items.map((item: McDropdownItem) => item.hovered)))\n ) as Observable<McDropdownItem>;\n }\n\n /** Handle a keyboard event from the dropdown, delegating to the appropriate action. */\n handleKeydown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const keyCode = event.keyCode;\n\n\n switch (keyCode) {\n case ESCAPE:\n this.closed.emit('keydown');\n break;\n case LEFT_ARROW:\n if (this.parent && this.direction === 'ltr') {\n this.closed.emit('keydown');\n }\n break;\n case RIGHT_ARROW:\n if (this.parent && this.direction === 'rtl') {\n this.closed.emit('keydown');\n }\n break;\n default:\n if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {\n this.keyManager.setFocusOrigin('keyboard');\n }\n\n this.keyManager.onKeydown(event);\n\n return;\n }\n\n // Don't allow the event to propagate if we've already handled it, or it may\n // end up reaching other overlays that were opened earlier.\n event.stopPropagation();\n }\n\n /**\n * Focus the first item in the dropdown.\n * @param origin Action from which the focus originated. Used to set the correct styling.\n */\n focusFirstItem(origin: FocusOrigin = 'program'): void {\n // When the content is rendered lazily, it takes a bit before the items are inside the DOM.\n if (this.lazyContent) {\n this.ngZone.onStable\n .pipe(take(1))\n .subscribe(() => this.keyManager.setFocusOrigin(origin).setFirstItemActive());\n } else {\n this.keyManager.setFocusOrigin(origin).setFirstItemActive();\n }\n }\n\n /**\n * Resets the active item in the dropdown. This is used when the dropdown is opened, allowing\n * the user to start from the first option when pressing the down arrow.\n */\n resetActiveItem() {\n this.keyManager.activeItem?.resetStyles();\n this.keyManager.setActiveItem(-1);\n }\n\n /**\n * Adds classes to the dropdown panel based on its position. Can be used by\n * consumers to add specific styling based on the position.\n * @param posX Position of the dropdown along the x axis.\n * @param posY Position of the dropdown along the y axis.\n * @docs-private\n */\n setPositionClasses(posX: DropdownPositionX = this.xPosition, posY: DropdownPositionY = this.yPosition) {\n const classes = this.classList;\n classes['mc-dropdown-before'] = posX === 'before';\n classes['mc-dropdown-after'] = posX === 'after';\n classes['mc-dropdown-above'] = posY === 'above';\n classes['mc-dropdown-below'] = posY === 'below';\n }\n\n /** Starts the enter animation. */\n startAnimation() {\n this.panelAnimationState = 'enter';\n }\n\n /** Resets the panel animation to its initial state. */\n resetAnimation() {\n this.panelAnimationState = 'void';\n }\n\n /** Callback that is invoked when the panel animation completes. */\n onAnimationDone(event: AnimationEvent) {\n this.animationDone.next(event);\n this.isAnimating = false;\n }\n\n onAnimationStart(event: AnimationEvent) {\n this.isAnimating = true;\n\n // Scroll the content element to the top as soon as the animation starts. This is necessary,\n // because we move focus to the first item while it's still being animated, which can throw\n // the browser off when it determines the scroll position. Alternatively we can move focus\n // when the animation is done, however moving focus asynchronously will interrupt screen\n // readers which are in the process of reading out the dropdown already. We take the `element`\n // from the `event` since we can't use a `ViewChild` to access the pane.\n if (event.toState === 'enter' && this.keyManager.activeItemIndex === 0) {\n event.element.scrollTop = 0;\n }\n }\n\n close() {\n const focusOrigin = this.keyManager.getFocusOrigin() === 'keyboard' ? 'keydown' : 'click';\n\n this.closed.emit(focusOrigin);\n }\n\n /**\n * Sets up a stream that will keep track of any newly-added menu items and will update the list\n * of direct descendants. We collect the descendants this way, because `_allItems` can include\n * items that are part of child menus, and using a custom way of registering items is unreliable\n * when it comes to maintaining the item order.\n */\n private updateDirectDescendants() {\n this.items.changes\n .pipe(startWith(this.items))\n .subscribe((items: QueryList<McDropdownItem>) => {\n this.directDescendantItems.reset(items.filter((item) => item.parentDropdownPanel === this));\n this.directDescendantItems.notifyOnChanges();\n });\n }\n}\n","<ng-template>\n <div class=\"mc-dropdown__panel\"\n [ngClass]=\"classList\"\n [class.mc-dropdown__panel_nested]=\"parent\"\n [style.min-width]=\"triggerWidth\"\n (keydown)=\"handleKeydown($event)\"\n (click)=\"close()\"\n [@transformDropdown]=\"panelAnimationState\"\n (@transformDropdown.start)=\"onAnimationStart($event)\"\n (@transformDropdown.done)=\"onAnimationDone($event)\"\n tabindex=\"-1\">\n\n <div class=\"mc-dropdown__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n","import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';\nimport { Direction, Directionality } from '@angular/cdk/bidi';\nimport {\n FlexibleConnectedPositionStrategy,\n HorizontalConnectionPos,\n Overlay,\n OverlayConfig,\n OverlayRef,\n VerticalConnectionPos,\n ScrollStrategy\n} from '@angular/cdk/overlay';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Inject,\n InjectionToken,\n Input,\n OnDestroy,\n Optional,\n Output,\n Self,\n ViewContainerRef\n} from '@angular/core';\nimport { LEFT_ARROW, RIGHT_ARROW, SPACE, ENTER, DOWN_ARROW } from '@ptsecurity/cdk/keycodes';\nimport { asapScheduler, merge, Observable, of as observableOf, Subscription } from 'rxjs';\nimport { delay, filter, take, takeUntil } from 'rxjs/operators';\n\nimport { throwMcDropdownMissingError } from './dropdown-errors';\nimport { McDropdownItem } from './dropdown-item.component';\nimport { McDropdown } from './dropdown.component';\nimport { DropdownCloseReason, DropdownPositionX, DropdownPositionY, McDropdownPanel } from './dropdown.types';\n\n\n/** Injection token that determines the scroll handling while the dropdown is open. */\nexport const MC_DROPDOWN_SCROLL_STRATEGY =\n new InjectionToken<() => ScrollStrategy>('mc-dropdown-scroll-strategy');\n\n/** @docs-private */\n// tslint:disable-next-line:naming-convention\nexport function MC_DROPDOWN_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy {\n return () => overlay.scrollStrategies.reposition();\n}\n\n/** @docs-private */\nexport const MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MC_DROPDOWN_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MC_DROPDOWN_SCROLL_STRATEGY_FACTORY\n};\n\n/** Default top padding of the nested dropdown panel. */\nexport const NESTED_PANEL_TOP_PADDING = 4;\nexport const NESTED_PANEL_LEFT_PADDING = 8;\n\n/** Options for binding a passive event listener. */\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({passive: true});\n\n/**\n * This directive is intended to be used in conjunction with an mc-dropdown tag. It is\n * responsible for toggling the display of the provided dropdown instance.\n */\n@Directive({\n selector: `[mcDropdownTriggerFor]`,\n exportAs: 'mcDropdownTrigger',\n host: {\n class: 'mc-dropdown-trigger',\n '[class.mc-pressed]': 'opened',\n '(mousedown)': 'handleMousedown($event)',\n '(keydown)': 'handleKeydown($event)',\n '(click)': 'handleClick($event)'\n }\n})\nexport class McDropdownTrigger implements AfterContentInit, OnDestroy {\n lastDestroyReason: DropdownCloseReason;\n\n /** Data to be passed along to any lazily-rendered content. */\n @Input('mcDropdownTriggerData') data: any;\n\n @Input() openByArrowDown: boolean = true;\n\n /**\n * Whether focus should be restored when the menu is closed.\n * Note that disabling this option can have accessibility implications\n * and it's up to you to manage focus, if you decide to turn it off.\n */\n @Input('mcDropdownTriggerRestoreFocus') restoreFocus: boolean = true;\n\n /** References the dropdown instance that the trigger is associated with. */\n @Input('mcDropdownTriggerFor')\n get dropdown() {\n return this._dropdown;\n }\n\n set dropdown(dropdown: McDropdownPanel) {\n if (dropdown === this._dropdown) { return; }\n\n this._dropdown = dropdown;\n this.closeSubscription.unsubscribe();\n\n if (dropdown) {\n this.closeSubscription = dropdown.closed\n .asObservable()\n .subscribe((reason) => {\n this.destroy(reason);\n\n // If a click closed the dropdown, we should close the entire chain of nested dropdowns.\n if (['click', 'tab'].includes(reason as string) && this.parent) {\n this.parent.closed.emit(reason);\n }\n });\n }\n }\n\n private _dropdown: McDropdownPanel;\n\n /** Event emitted when the associated dropdown is opened. */\n @Output() readonly dropdownOpened: EventEmitter<void> = new EventEmitter<void>();\n\n /** Event emitted when the associated dropdown is closed. */\n @Output() readonly dropdownClosed: EventEmitter<void> = new EventEmitter<void>();\n\n // Tracking input type is necessary so it's possible to only auto-focus\n // the first item of the list when the dropdown is opened via the keyboard\n openedBy: Exclude<FocusOrigin, 'program' | null> | undefined;\n\n /** The text direction of the containing app. */\n get dir(): Direction {\n return this._dir?.value === 'rtl' ? 'rtl' : 'ltr';\n }\n\n /** Whether the dropdown is open. */\n get opened(): boolean {\n return this._opened;\n }\n\n private _opened: boolean = false;\n\n private portal: TemplatePortal;\n\n private overlayRef: OverlayRef | null = null;\n\n private closeSubscription = Subscription.EMPTY;\n\n private hoverSubscription = Subscription.EMPTY;\n\n constructor(\n private overlay: Overlay,\n private elementRef: ElementRef<HTMLElement>,\n private viewContainerRef: ViewContainerRef,\n @Inject(MC_DROPDOWN_SCROLL_STRATEGY) private scrollStrategy: any,\n @Optional() private parent: McDropdown,\n @Optional() @Self() private dropdownItemInstance: McDropdownItem,\n @Optional() private _dir: Directionality,\n private focusMonitor?: FocusMonitor\n ) {\n elementRef.nativeElement.addEventListener(\n 'touchstart',\n this.handleTouchStart,\n passiveEventListenerOptions\n );\n\n if (dropdownItemInstance) {\n dropdownItemInstance.isNested = this.isNested();\n }\n }\n\n ngAfterContentInit() {\n this.check();\n this.handleHover();\n }\n\n ngOnDestroy() {\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n\n this.elementRef.nativeElement.removeEventListener(\n 'touchstart',\n this.handleTouchStart,\n passiveEventListenerOptions\n );\n\n this.cleanUpSubscriptions();\n }\n\n /** Whether the dropdown triggers a nested dropdown or a top-level one. */\n isNested(): boolean {\n return !!(this.dropdownItemInstance && this.parent);\n }\n\n /** Toggles the dropdown between the open and closed states. */\n toggle(): void {\n // tslint:disable-next-line:no-void-expression\n return this._opened ? this.close() : this.open();\n }\n\n /** Opens the dropdown. */\n open(): void {\n if (this._opened) { return; }\n\n this.check();\n\n const overlayRef = this.createOverlay();\n const overlayConfig = overlayRef.getConfig();\n\n this.setPosition(overlayConfig.positionStrategy as FlexibleConnectedPositionStrategy);\n\n overlayConfig.hasBackdrop = this.dropdown.hasBackdrop ? !this.isNested() : this.dropdown.hasBackdrop;\n\n overlayRef.attach(this.getPortal());\n\n if (this.dropdown.lazyContent) {\n this.dropdown.lazyContent.detach();\n\n this.dropdown.lazyContent.attach(this.data);\n }\n\n this.closeSubscription = this.closingActions()\n .subscribe(() => this.close());\n\n this.init();\n\n if (this.dropdown instanceof McDropdown) {\n this.dropdown.startAnimation();\n }\n }\n\n /** Closes the dropdown. */\n close(): void {\n this.dropdown.closed.emit();\n }\n\n /**\n * Focuses the dropdown trigger.\n */\n focus(origin?: FocusOrigin, options?: FocusOptions) {\n if (this.focusMonitor && origin) {\n this.focusMonitor.focusVia(this.elementRef.nativeElement, origin, options);\n } else {\n this.elementRef.nativeElement.focus();\n }\n }\n\n /** Handles mouse presses on the trigger. */\n handleMousedown(event: MouseEvent): void {\n // Since right or middle button clicks won't trigger the `click` event,\n // we shouldn't consider the dropdown as opened by mouse in those cases.\n this.openedBy = event.button === 0 ? 'mouse' : undefined;\n\n // Since clicking on the trigger won't close the dropdown if it opens a nested dropdown,\n // we should prevent focus from moving onto it via click to avoid the\n // highlight from lingering on the dropdown item.\n if (this.isNested()) {\n event.preventDefault();\n }\n }\n\n /** Handles key presses on the trigger. */\n handleKeydown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const keyCode = event.keyCode;\n\n // Pressing enter on the trigger will trigger the click handler later.\n if (keyCode === ENTER || keyCode === SPACE) {\n this.openedBy = 'keyboard';\n }\n\n if (\n (this.isNested() &&\n ((keyCode === RIGHT_ARROW && this.dir === 'ltr') || (keyCode === LEFT_ARROW && this.dir === 'rtl'))\n ) ||\n (!this.isNested() && (keyCode === DOWN_ARROW && this.openByArrowDown))\n ) {\n event.preventDefault();\n\n this.openedBy = 'keyboard';\n this.open();\n }\n }\n\n /** Handles click events on the trigger. */\n handleClick(event: MouseEvent): void {\n if (this.isNested()) {\n // Stop event propagation to avoid closing the parent dropdown.\n event.stopPropagation();\n\n this.open();\n } else {\n this.toggle();\n }\n }\n\n /**\n * Handles touch start events on the trigger.\n * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.\n */\n private handleTouchStart = () => this.openedBy = 'touch';\n\n /** Closes the dropdown and does the necessary cleanup. */\n private destroy(reason: DropdownCloseReason) {\n if (!this.overlayRef || !this.opened) { return; }\n\n this.lastDestroyReason = reason;\n\n this.dropdown.resetActiveItem();\n\n this.closeSubscription.unsubscribe();\n this.overlayRef.detach();\n\n if (this.restoreFocus && (reason === 'keydown' || !this.openedBy || !this.isNested())) {\n this.focus(this.openedBy);\n }\n\n this.openedBy = undefined;\n\n if (this.dropdown instanceof McDropdown) {\n this.dropdown.resetAnimation();\n\n const animationSubscription = this.dropdown.animationDone\n .pipe(\n filter((event) => event.toState === 'void'),\n take(1)\n );\n\n if (this.dropdown.lazyContent) {\n // Wait for the exit animation to finish before detaching the content.\n animationSubscription\n .pipe(\n // Interrupt if the content got re-attached.\n takeUntil(this.dropdown.lazyContent.attached)\n )\n .subscribe({\n next: () => this.dropdown.lazyContent!.detach(),\n // No matter whether the content got re-attached, reset the this.dropdown.\n complete: () => this.setIsOpened(false)\n });\n } else {\n animationSubscription\n .subscribe(() => this.setIsOpened(false));\n }\n } else {\n this.setIsOpened(false);\n\n if (this.dropdown.lazyContent) {\n this.dropdown.lazyContent.detach();\n }\n }\n }\n\n /**\n * This method sets the dropdown state to open and focuses the first item if\n * the dropdown was opened via the keyboard.\n */\n private init(): void {\n this.dropdown.parent = this.isNested() ? this.parent : undefined;\n this.dropdown.direction = this.dir;\n\n if (!this.dropdown.parent) {\n this.dropdown.triggerWidth = this.getWidth();\n }\n\n this.dropdown.focusFirstItem(this.openedBy || 'program');\n\n this.setIsOpened(true);\n }\n\n // set state rather than toggle to support triggers sharing a dropdown\n private setIsOpened(isOpen: boolean): void {\n this._opened = isOpen;\n // tslint:disable-next-line:no-void-expression\n this._opened ? this.dropdownOpened.emit() : this.dropdownClosed.emit();\n\n if (this.isNested()) {\n this.dropdownItemInstance.highlighted = isOpen;\n }\n }\n\n /**\n * This method checks that a valid instance of McDropdown has been passed into\n * mcDropdownTriggerFor. If not, an exception is thrown.\n */\n private check() {\n if (!this.dropdown) {\n throwMcDropdownMissingError();\n }\n }\n\n /**\n * This method creates the overlay from the provided dropdown's template and saves its\n * OverlayRef so that it can be attached to the DOM when open is called.\n */\n private createOverlay(): OverlayRef {\n if (!this.overlayRef) {\n const config = this.getOverlayConfig();\n this.subscribeToPositions(config.positionStrategy as FlexibleConnectedPositionStrategy);\n this.overlayRef = this.overlay.create(config);\n\n // Consume the `keydownEvents` in order to prevent them from going to another overlay.\n // Ideally we'd also have our keyboard event logic in here, however doing so will\n // break anybody that may have implemented the `McDropdownPanel` themselves.\n this.overlayRef.keydownEvents()\n .subscribe();\n }\n\n return this.overlayRef;\n }\n\n /**\n * This method builds the configuration object needed to create the overlay, the OverlayState.\n * @returns OverlayConfig\n */\n private getOverlayConfig(): OverlayConfig {\n return new OverlayConfig({\n positionStrategy: this.overlay.position()\n .flexibleConnectedTo(this.elementRef)\n .withLockedPosition()\n .withTransformOriginOn('.mc-dropdown__panel'),\n backdropClass: this.dropdown.backdropClass || 'cdk-overlay-transparent-backdrop',\n scrollStrategy: this.scrollStrategy(),\n direction: this.dir\n });\n }\n\n /**\n * Listens to changes in the position of the overlay and sets the correct classes\n * on the dropdown based on the new position. This ensures the animation origin is always\n * correct, even if a fallback position is used for the overlay.\n */\n private subscribeToPositions(position: FlexibleConnectedPositionStrategy): void {\n if (this.dropdown.setPositionClasses) {\n position.positionChanges\n .subscribe((change) => {\n const posX: DropdownPositionX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';\n const posY: DropdownPositionY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';\n\n this.dropdown.setPositionClasses!(posX, posY);\n });\n }\n }\n\n /**\n * Sets the appropriate positions on a position strategy\n * so the overlay connects with the trigger correctly.\n * @param positionStrategy Strategy whose position to update.\n */\n private setPosition(positionStrategy: FlexibleConnectedPositionStrategy) {\n let [originX, originFallbackX, overlayX, overlayFallbackX]: HorizontalConnectionPos[] =\n this.dropdown.xPosition === 'before' ?\n ['end', 'start', 'end', 'start'] :\n ['start', 'end', 'start', 'end'];\n\n // tslint:disable-next-line:prefer-const\n let [overlayY, overlayFallbackY, originY, originFallbackY]: VerticalConnectionPos[] =\n this.dropdown.yPosition === 'above' ?\n ['bottom', 'top', 'bottom', 'top'] :\n ['top', 'bottom', 'top', 'bottom'];\n\n let offsetY = 0;\n let offsetX = 0;\n\n if (this.isNested()) {\n // When the dropdown is nested, it should always align itself\n // to the edges of the trigger, instead of overlapping it.\n overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';\n originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';\n offsetY = overlayY === 'bottom' ? NESTED_PANEL_TOP_PADDING : -NESTED_PANEL_TOP_PADDING;\n offsetX = NESTED_PANEL_LEFT_PADDING;\n } else {\n if (!this.dropdown.overlapTriggerY) {\n originY = overlayY === 'top' ? 'bottom' : 'top';\n originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';\n }\n\n if (!this.dropdown.overlapTriggerX) {\n overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';\n originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';\n }\n }\n\n positionStrategy.withPositions([\n { originX, originY, overlayX, overlayY, offsetY, offsetX: -offsetX },\n { originX: originFallbackX, originY, overlayX: overlayFallbackX, overlayY, offsetY, offsetX },\n {\n originX,\n originY: originFallbackY,\n overlayX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY,\n offsetX: -offsetX\n },\n {\n originX: originFallbackX,\n originY: originFallbackY,\n overlayX: overlayFallbackX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY,\n offsetX: -offsetX\n }\n ]);\n }\n\n /** Cleans up the active subscriptions. */\n private cleanUpSubscriptions(): void {\n this.closeSubscription.unsubscribe();\n this.hoverSubscription.unsubscribe();\n }\n\n /** Returns a stream that emits whenever an action that should close the dropdown occurs. */\n private closingActions() {\n const backdrop = this.overlayRef!.backdropClick();\n const outsidePointerEvents = this.overlayRef!.outsidePointerEvents();\n const detachments = this.overlayRef!.detachments();\n const parentClose = this.parent ? this.parent.closed : observableOf();\n const hover = this.parent ? this.parent.hovered()\n .pipe(\n filter((active) => active !== this.dropdownItemInstance),\n filter(() => this._opened)\n ) : observableOf();\n\n return merge(\n backdrop,\n outsidePointerEvents,\n parentClose as Observable<DropdownCloseReason>,\n hover,\n detachments\n );\n }\n\n /** Handles the cases where the user hovers over the trigger. */\n private handleHover() {\n // Subscribe to changes in the hovered item in order to toggle the panel.\n if (!this.isNested()) { return; }\n\n this.hoverSubscription = this.parent.hovered()\n // Since we might have multiple competing triggers for the same dropdown (e.g. a nested dropdown\n // with different data and triggers), we have to delay it by a tick to ensure that\n // it won't be closed immediately after it is opened.\n .pipe(\n filter((active) => active === this.dropdownItemInstance && !active.disabled),\n delay(0, asapScheduler)\n )\n .subscribe(() => {\n this.openedBy = 'mouse';\n\n // If the same dropdown is used between multiple triggers, it might still be animating\n // while the new trigger tries to re-open it. Wait for the animation to finish\n // before doing so. Also interrupt if the user moves to another item.\n if (this.dropdown instanceof McDropdown && this.dropdown.isAnimating) {\n // We need the `delay(0)` here in order to avoid\n // 'changed after checked' errors in some cases. See #12194.\n this.dropdown.animationDone\n .pipe(\n take(1),\n delay(0, asapScheduler),\n takeUntil(this.parent.hovered())\n )\n .subscribe(() => this.open());\n } else {\n this.open();\n }\n });\n }\n\n /** Gets the portal that should be attached to the overlay. */\n private getPortal(): TemplatePortal {\n // Note that we can avoid this check by keeping the portal on the dropdown panel.\n // While it would be cleaner, we'd have to introduce another required method on\n // `McDropdownPanel`, making it harder to consume.\n if (!this.portal || this.portal.templateRef !== this.dropdown.templateRef) {\n this.portal = new TemplatePortal(this.dropdown.templateRef, this.viewContainerRef);\n }\n\n return this.portal;\n }\n\n private getWidth(): string {\n const nativeElement = this.elementRef.nativeElement;\n\n const { width, borderRightWidth, borderLeftWidth } = window.getComputedStyle(nativeElement);\n\n return `${parseInt(width) - parseInt(borderRightWidth) - parseInt(borderLeftWidth)}px`;\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { McIconModule } from '@ptsecurity/mosaic/icon';\n\nimport { McDropdownContent } from './dropdown-content.directive';\nimport { McDropdownItem } from './dropdown-item.component';\nimport { MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER, McDropdownTrigger } from './dropdown-trigger.directive';\nimport { McDropdown } from './dropdown.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n OverlayModule,\n McIconModule\n ],\n exports: [\n McDropdown,\n McDropdownItem,\n McDropdownTrigger,\n McDropdownContent\n ],\n declarations: [\n McDropdown,\n McDropdownItem,\n McDropdownTrigger,\n McDropdownContent\n ],\n providers: [MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER]\n})\nexport class McDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["InjectionToken","Subject","TemplatePortal","DomPortalOutlet","DOCUMENT","Directive","Inject","mixinDisabled","McIcon","Component","ChangeDetectionStrategy","ViewEncapsulation","Optional","ContentChild","HostListener","trigger","state","style","transition","group","query","animate","EventEmitter","QueryList","Subscription","coerceBooleanProperty","FocusKeyManager","startWith","switchMap","merge","ESCAPE","LEFT_ARROW","RIGHT_ARROW","UP_ARROW","DOWN_ARROW","take","TemplateRef","Input","ViewChild","ContentChildren","Output","Overlay","normalizePassiveListenerOptions","ENTER","SPACE","filter","takeUntil","OverlayConfig","observableOf","delay","asapScheduler","Self","CommonModule","OverlayModule","McIconModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgEA;;;;QAIa,iBAAiB,GAAG,IAAIA,iBAAc,CAAkB,mBAAmB,EAAE;IAG1F;QACa,2BAA2B,GACpC,IAAIA,iBAAc,CAA2B,6BAA6B,EAAE;QACxE,UAAU,EAAE,MAAM;QAClB,OAAO,EAAE,mCAAmC;KAC/C,EAAE;IAEP;IACA;aACgB,mCAAmC;QAC/C,OAAO;YACH,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,OAAO;YAClB,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,kCAAkC;YACjD,WAAW,EAAE,KAAK;SACrB,CAAC;IACN;;IC1EA;;;;QAYI,2BACY,QAA0B,EAC1B,wBAAkD,EAClD,MAAsB,EACtB,QAAkB,EAClB,gBAAkC,EAChB,QAAa;YAL/B,aAAQ,GAAR,QAAQ,CAAkB;YAC1B,6BAAwB,GAAxB,wBAAwB,CAA0B;YAClD,WAAM,GAAN,MAAM,CAAgB;YACtB,aAAQ,GAAR,QAAQ,CAAU;YAClB,qBAAgB,GAAhB,gBAAgB,CAAkB;YAChB,aAAQ,GAAR,QAAQ,CAAK;;YAV3C,aAAQ,GAAG,IAAIC,YAAO,EAAQ,CAAC;SAW3B;;;;;QAMJ,kCAAM,GAAN,UAAO,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;YACpB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACd,IAAI,CAAC,MAAM,GAAG,IAAIC,qBAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;aAC1E;YAED,IAAI,CAAC,MAAM,EAAE,CAAC;YAEd,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACd,IAAI,CAAC,MAAM,GAA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AC,4CAA4C,CAAC,YAjBhD;gBACLF,eAAY;gBACZC,kBAAa;gBACbC,eAAY;aACf;sHAeQ,gBAAgB;sBApB5BC,WAAQ;uBAAC;wBACN,OAAO,EAAE;4BACLH,eAAY;4BACZC,kBAAa;4BACbC,eAAY;yBACf;wBACD,OAAO,EAAE;4BACL,UAAU;4BACV,cAAc;4BACd,iBAAiB;4BACjB,iBAAiB;yBACpB;wBACD,YAAY,EAAE;4BACV,UAAU;4BACV,cAAc;4BACd,iBAAiB;4BACjB,iBAAiB;yBACpB;wBACD,SAAS,EAAE,CAAC,4CAA4C,CAAC;qBAC5D;;;IC9BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ptsecurity-mosaic-dropdown.umd.js","sources":["../../../packages/mosaic/dropdown/dropdown.types.ts","../../../packages/mosaic/dropdown/dropdown-content.directive.ts","../../../node_modules/tslib/tslib.es6.js","../../../packages/mosaic/dropdown/dropdown-item.component.ts","../../../packages/mosaic/dropdown/dropdown-item.html","../../../packages/mosaic/dropdown/dropdown-errors.ts","../../../packages/mosaic/dropdown/dropdown-animations.ts","../../../packages/mosaic/dropdown/dropdown.component.ts","../../../packages/mosaic/dropdown/dropdown.html","../../../packages/mosaic/dropdown/dropdown-trigger.directive.ts","../../../packages/mosaic/dropdown/dropdown.module.ts","../../../packages/mosaic/dropdown/ptsecurity-mosaic-dropdown.ts"],"sourcesContent":["import { FocusOrigin } from '@angular/cdk/a11y';\nimport { Direction } from '@angular/cdk/bidi';\nimport {\n EventEmitter,\n InjectionToken,\n TemplateRef\n} from '@angular/core';\n\nimport { McDropdownContent } from './dropdown-content.directive';\n\n\nexport type DropdownPositionX = 'before' | 'after';\n\nexport type DropdownPositionY = 'above' | 'below';\n\n/** Reason why the menu was closed. */\nexport type DropdownCloseReason = void | 'click' | 'keydown' | 'tab';\n\n/**\n * Interface for a custom dropdown panel that can be used with `mcDropdownTriggerFor`.\n * @docs-private\n */\n// tslint:disable-next-line:naming-convention\nexport interface McDropdownPanel {\n xPosition: DropdownPositionX;\n yPosition: DropdownPositionY;\n overlapTriggerX: boolean;\n overlapTriggerY: boolean;\n templateRef: TemplateRef<any>;\n closed: EventEmitter<DropdownCloseReason>;\n parent?: McDropdownPanel | undefined;\n triggerWidth?: string;\n direction?: Direction;\n lazyContent?: McDropdownContent;\n backdropClass?: string;\n hasBackdrop?: boolean;\n focusFirstItem(origin?: FocusOrigin): void;\n resetActiveItem(): void;\n setPositionClasses?(x: DropdownPositionX, y: DropdownPositionY): void;\n}\n\n\n/** Default `mc-dropdown` options that can be overridden. */\n// tslint:disable-next-line:naming-convention\nexport interface McDropdownDefaultOptions {\n /** The x-axis position of the dropdown. */\n xPosition: DropdownPositionX;\n\n /** The y-axis position of the dropdown. */\n yPosition: DropdownPositionY;\n\n /** Whether the dropdown should overlap the dropdown trigger horizontally. */\n overlapTriggerX: boolean;\n\n /** Whether the dropdown should overlap the dropdown trigger vertically. */\n overlapTriggerY: boolean;\n\n /** Class to be applied to the dropdown's backdrop. */\n backdropClass: string;\n\n /** Whether the dropdown has a backdrop. */\n hasBackdrop: boolean;\n}\n\n/**\n * Injection token used to provide the parent dropdown to dropdown-specific components.\n * @docs-private\n */\nexport const MC_DROPDOWN_PANEL = new InjectionToken<McDropdownPanel>('MC_DROPDOWN_PANEL');\n\n\n/** Injection token to be used to override the default options for `mc-dropdown`. */\nexport const MC_DROPDOWN_DEFAULT_OPTIONS =\n new InjectionToken<McDropdownDefaultOptions>('mc-dropdown-default-options', {\n providedIn: 'root',\n factory: MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY\n });\n\n/** @docs-private */\n// tslint:disable-next-line:naming-convention\nexport function MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY(): McDropdownDefaultOptions {\n return {\n overlapTriggerX: true,\n overlapTriggerY: false,\n xPosition: 'after',\n yPosition: 'below',\n backdropClass: 'cdk-overlay-transparent-backdrop',\n hasBackdrop: false\n };\n}\n","import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Directive,\n TemplateRef,\n ComponentFactoryResolver,\n ApplicationRef,\n Injector,\n ViewContainerRef,\n Inject,\n OnDestroy\n} from '@angular/core';\nimport { Subject } from 'rxjs';\n\n\n/**\n * Dropdown content that will be rendered lazily once the dropdown is opened.\n */\n@Directive({\n selector: 'ng-template[mcDropdownContent]'\n})\nexport class McDropdownContent implements OnDestroy {\n /** Emits when the dropdown content has been attached. */\n attached = new Subject<void>();\n private portal: TemplatePortal;\n private outlet: DomPortalOutlet;\n\n constructor(\n private template: TemplateRef<any>,\n private componentFactoryResolver: ComponentFactoryResolver,\n private appRef: ApplicationRef,\n private injector: Injector,\n private viewContainerRef: ViewContainerRef,\n @Inject(DOCUMENT) private document: any\n ) {}\n\n /**\n * Attaches the content with a particular context.\n * @docs-private\n */\n attach(context: any = {}) {\n if (!this.portal) {\n this.portal = new TemplatePortal(this.template, this.viewContainerRef);\n }\n\n this.detach();\n\n if (!this.outlet) {\n this.outlet = new DomPortalOutlet(\n this.document.createElement('div'),\n this.componentFactoryResolver,\n this.appRef,\n this.injector\n );\n }\n\n const element: HTMLElement = this.template.elementRef.nativeElement;\n\n // Because we support opening the same dropdown from different triggers (which in turn have their\n // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we\n // risk it staying attached to a pane that's no longer in the DOM.\n element.parentNode!.insertBefore(this.outlet.outletElement, element);\n this.portal.attach(this.outlet, context);\n this.attached.next();\n }\n\n /**\n * Detaches the content.\n * @docs-private\n */\n detach() {\n if (this.portal?.isAttached) {\n this.portal.detach();\n }\n }\n\n ngOnDestroy() {\n this.outlet?.dispose();\n }\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n OnDestroy,\n ViewEncapsulation,\n Inject,\n Optional,\n AfterViewInit,\n HostListener,\n ContentChild\n} from '@angular/core';\nimport { IFocusableOption } from '@ptsecurity/cdk/a11y';\nimport { CanDisable, CanDisableCtor, mixinDisabled } from '@ptsecurity/mosaic/core';\nimport { McIcon } from '@ptsecurity/mosaic/icon';\nimport { Subject } from 'rxjs';\n\nimport { MC_DROPDOWN_PANEL, McDropdownPanel } from './dropdown.types';\n\n\n// Boilerplate for applying mixins to McDropdownItem.\n/** @docs-private */\nclass McDropdownItemBase {}\n// tslint:disable-next-line:naming-convention\nconst McDropdownItemMixinBase: CanDisableCtor & typeof McDropdownItemBase = mixinDisabled(McDropdownItemBase);\n\n/**\n * This directive is intended to be used inside an mc-dropdown tag.\n * It exists mostly to set the role attribute.\n */\n@Component({\n selector: 'mc-dropdown-item, [mc-dropdown-item]',\n exportAs: 'mcDropdownItem',\n templateUrl: 'dropdown-item.html',\n styleUrls: ['dropdown-item.scss'],\n inputs: ['disabled'],\n host: {\n class: 'mc-dropdown-item',\n '[class.mc-dropdown-item_with-icon]': 'icon',\n '[class.mc-dropdown-item_highlighted]': 'highlighted',\n\n '[attr.disabled]': 'disabled || null',\n '[attr.tabindex]': 'getTabIndex()'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class McDropdownItem extends McDropdownItemMixinBase implements\n IFocusableOption, CanDisable, AfterViewInit, OnDestroy {\n\n @ContentChild(McIcon) icon: McIcon;\n\n /** Stream that emits when the dropdown item is hovered. */\n readonly hovered = new Subject<McDropdownItem>();\n\n /** Stream that emits when the menu item is focused. */\n readonly focused = new Subject<McDropdownItem>();\n\n /** Whether the dropdown item is highlighted. */\n highlighted: boolean = false;\n\n /** Whether the dropdown item acts as a trigger for a nested dropdown. */\n isNested: boolean = false;\n\n constructor(\n private elementRef: ElementRef<HTMLElement>,\n private focusMonitor: FocusMonitor,\n @Inject(MC_DROPDOWN_PANEL) @Optional() public parentDropdownPanel?: McDropdownPanel\n ) {\n super();\n }\n\n ngAfterViewInit() {\n if (this.focusMonitor) {\n // Start monitoring the element so it gets the appropriate focused classes. We want\n // to show the focus style for menu items only when the focus was not caused by a\n // mouse or touch interaction.\n this.focusMonitor.monitor(this.elementRef, false);\n }\n }\n\n ngOnDestroy() {\n if (this.focusMonitor) {\n this.focusMonitor.stopMonitoring(this.elementRef);\n }\n\n this.hovered.complete();\n this.focused.complete();\n }\n\n resetStyles() {\n this.getHostElement().classList.remove('cdk-keyboard-focused');\n }\n\n /** Focuses the dropdown item. */\n focus(origin?: FocusOrigin, options?: FocusOptions): void {\n if (this.focusMonitor && origin) {\n this.focusMonitor.focusVia(this.getHostElement(), origin, options);\n } else {\n this.getHostElement().focus(options);\n }\n\n this.focused.next(this);\n }\n\n /** Returns the host DOM element. */\n getHostElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n /** Used to set the `tabindex`. */\n getTabIndex(): string {\n return this.disabled ? '-1' : '0';\n }\n\n /** Prevents the default element actions if it is disabled. */\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n @HostListener('click', ['$event']) checkDisabled(event: Event): void {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /** Emits to the hover stream. */\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n @HostListener('mouseenter') handleMouseEnter() {\n this.hovered.next(this);\n }\n\n /** Gets the label to be used when determining whether the option should be focused. */\n getLabel(): string {\n const clone = this.getHostElement().cloneNode(true) as HTMLElement;\n const icons = clone.querySelectorAll('[mc-icon], .mc-icon');\n\n // Strip away icons so they don't show up in the text.\n // tslint:disable-next-line:prefer-for-of\n for (let i = 0; i < icons.length; i++) {\n const icon = icons[i];\n icon.parentNode?.removeChild(icon);\n }\n\n return clone.textContent?.trim() || '';\n }\n\n haltDisabledEvents(event: Event) {\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n event.stopPropagation();\n }\n }\n}\n","<div class=\"mc-dropdown-item-wrapper\">\n <ng-content></ng-content>\n</div>\n<i *ngIf=\"isNested\" mc-icon=\"mc-angle-right-M_16\" class=\"mc-dropdown-trigger__icon\"></i>\n<div class=\"mc-dropdown-item-overlay\" (click)=\"haltDisabledEvents($event)\"></div>\n","/**\n * Throws an exception for the case when dropdown trigger doesn't have a valid mc-dropdown instance\n * @docs-private\n */\nexport function throwMcDropdownMissingError() {\n throw Error(`mcDropdownTriggerFor: must pass in an mc-dropdown instance.\n Example:\n <mc-dropdown #dropdown=\"mcDropdown\"></mc-dropdown>\n <button [mcDropdownTriggerFor]=\"dropdown\"></button>`);\n}\n\n/**\n * Throws an exception for the case when dropdown's x-position value isn't valid.\n * In other words, it doesn't match 'before' or 'after'.\n * @docs-private\n */\nexport function throwMcDropdownInvalidPositionX() {\n throw Error(`xPosition value must be either 'before' or after'.\n Example: <mc-dropdown [xPosition]=\"'before'\" #dropdown=\"mcDropdown\"></mc-dropdown>`);\n}\n\n/**\n * Throws an exception for the case when dropdown's y-position value isn't valid.\n * In other words, it doesn't match 'above' or 'below'.\n * @docs-private\n */\nexport function throwMcDropdownInvalidPositionY() {\n throw Error(`yPosition value must be either 'above' or below'.\n Example: <mc-dropdown [yPosition]=\"'above'\" #dropdown=\"mcDropdown\"></mc-dropdown>`);\n}\n","import {\n trigger,\n state,\n style,\n animate,\n transition,\n query,\n group,\n AnimationTriggerMetadata\n} from '@angular/animations';\n\n\n/**\n * Animations used by the mc-dropdown component.\n * @docs-private\n */\nexport const mcDropdownAnimations: {\n readonly transformDropdown: AnimationTriggerMetadata;\n readonly fadeInItems: AnimationTriggerMetadata;\n} = {\n /**\n * This animation controls the dropdown panel's entry and exit from the page.\n *\n * When the dropdown panel is added to the DOM, it scales in and fades in its border.\n *\n * When the dropdown panel is removed from the DOM, it simply fades out after a brief\n * delay to display the ripple.\n */\n transformDropdown: trigger('transformDropdown', [\n state('void', style({\n opacity: 0,\n transform: 'scale(0.8)'\n })),\n transition('void => enter', group([\n query('.mc-dropdown__content', animate('50ms linear', style({opacity: 1}))),\n animate('50ms cubic-bezier(0, 0, 0.2, 1)', style({transform: 'scale(1)'}))\n ])),\n transition('* => void', animate('50ms 25ms linear', style({opacity: 0})))\n ]),\n\n\n /**\n * This animation fades in the background color and content of the dropdown panel\n * after its containing element is scaled in.\n */\n fadeInItems: trigger('fadeInItems', [\n // now. Remove next time we do breaking changes.\n state('showing', style({opacity: 1})),\n transition('void => *', [\n style({opacity: 0}),\n animate('200ms 60ms cubic-bezier(0.55, 0, 0.55, 0.2)')\n ])\n ])\n};\n\nexport const fadeInItems = mcDropdownAnimations.fadeInItems;\n\nexport const transformDropdown = mcDropdownAnimations.transformDropdown;\n","import { AnimationEvent } from '@angular/animations';\nimport { FocusOrigin } from '@angular/cdk/a11y';\nimport { Direction } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DOWN_ARROW, UP_ARROW } from '@angular/cdk/keycodes';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n TemplateRef,\n QueryList,\n ViewChild,\n ViewEncapsulation,\n OnInit\n} from '@angular/core';\nimport { FocusKeyManager } from '@ptsecurity/cdk/a11y';\nimport { ESCAPE, LEFT_ARROW, RIGHT_ARROW } from '@ptsecurity/cdk/keycodes';\nimport { merge, Observable, Subject, Subscription } from 'rxjs';\nimport { startWith, switchMap, take } from 'rxjs/operators';\n\nimport { mcDropdownAnimations } from './dropdown-animations';\nimport { McDropdownContent } from './dropdown-content.directive';\nimport { throwMcDropdownInvalidPositionX, throwMcDropdownInvalidPositionY } from './dropdown-errors';\nimport { McDropdownItem } from './dropdown-item.component';\nimport {\n DropdownPositionX,\n DropdownPositionY,\n MC_DROPDOWN_DEFAULT_OPTIONS,\n MC_DROPDOWN_PANEL,\n McDropdownDefaultOptions,\n McDropdownPanel\n} from './dropdown.types';\n\n\n@Component({\n selector: 'mc-dropdown',\n exportAs: 'mcDropdown',\n templateUrl: 'dropdown.html',\n styleUrls: ['dropdown.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n animations: [\n mcDropdownAnimations.transformDropdown,\n mcDropdownAnimations.fadeInItems\n ],\n providers: [\n { provide: MC_DROPDOWN_PANEL, useExisting: McDropdown }\n ]\n})\nexport class McDropdown implements AfterContentInit, McDropdownPanel, OnInit, OnDestroy {\n\n @Input() navigationWithWrap: boolean = false;\n\n /** Position of the dropdown in the X axis. */\n @Input()\n get xPosition(): DropdownPositionX {\n return this._xPosition;\n }\n\n set xPosition(value: DropdownPositionX) {\n if (value !== 'before' && value !== 'after') {\n throwMcDropdownInvalidPositionX();\n }\n this._xPosition = value;\n this.setPositionClasses();\n }\n\n /** Position of the dropdown in the Y axis. */\n @Input()\n get yPosition(): DropdownPositionY {\n return this._yPosition;\n }\n\n set yPosition(value: DropdownPositionY) {\n if (value !== 'above' && value !== 'below') {\n throwMcDropdownInvalidPositionY();\n }\n this._yPosition = value;\n this.setPositionClasses();\n }\n\n /** Whether the dropdown should overlap its trigger vertically. */\n @Input()\n get overlapTriggerY(): boolean {\n return this._overlapTriggerY;\n }\n\n set overlapTriggerY(value: boolean) {\n this._overlapTriggerY = coerceBooleanProperty(value);\n }\n\n /** Whether the dropdown should overlap its trigger horizontally. */\n @Input()\n get overlapTriggerX(): boolean {\n return this._overlapTriggerX;\n }\n\n set overlapTriggerX(value: boolean) {\n this._overlapTriggerX = coerceBooleanProperty(value);\n }\n\n /** Whether the dropdown has a backdrop. */\n @Input()\n get hasBackdrop(): boolean {\n return this._hasBackdrop;\n }\n\n set hasBackdrop(value: boolean) {\n this._hasBackdrop = coerceBooleanProperty(value);\n }\n\n /**\n * This method takes classes set on the host mc-dropdown element and applies them on the\n * dropdown template that displays in the overlay container. Otherwise, it's difficult\n * to style the containing dropdown from outside the component.\n * @param classes list of class names\n */\n @Input('class')\n set panelClass(classes: string) {\n const previousPanelClass = this.previousPanelClass;\n\n if (previousPanelClass && previousPanelClass.length) {\n previousPanelClass\n .split(' ')\n .forEach((className: string) => this.classList[className] = false);\n }\n\n this.previousPanelClass = classes;\n\n if (classes?.length) {\n classes\n .split(' ')\n .forEach((className: string) => this.classList[className] = true);\n\n this.elementRef.nativeElement.className = '';\n }\n }\n\n private _xPosition: DropdownPositionX = this.defaultOptions.xPosition;\n private _yPosition: DropdownPositionY = this.defaultOptions.yPosition;\n private _overlapTriggerX: boolean = this.defaultOptions.overlapTriggerX;\n private _overlapTriggerY: boolean = this.defaultOptions.overlapTriggerY;\n private _hasBackdrop: boolean = this.defaultOptions.hasBackdrop;\n\n triggerWidth: string = '';\n /** Config object to be passed into the dropdown's ngClass */\n classList: { [key: string]: boolean } = {};\n\n /** Current state of the panel animation. */\n panelAnimationState: 'void' | 'enter' = 'void';\n\n /** Emits whenever an animation on the dropdown completes. */\n animationDone = new Subject<AnimationEvent>();\n\n /** Whether the dropdown is animating. */\n isAnimating: boolean;\n\n /** Parent dropdown of the current dropdown panel. */\n parent: McDropdownPanel | undefined;\n\n /** Layout direction of the dropdown. */\n direction: Direction;\n\n /** Class to be added to the backdrop element. */\n @Input() backdropClass: string = this.defaultOptions.backdropClass;\n\n /** @docs-private */\n @ViewChild(TemplateRef, { static: false }) templateRef: TemplateRef<any>;\n\n /**\n * List of the items inside of a dropdown.\n */\n @ContentChildren(McDropdownItem, { descendants: true }) items: QueryList<McDropdownItem>;\n\n /**\n * Dropdown content that will be rendered lazily.\n * @docs-private\n */\n @ContentChild(McDropdownContent, { static: false }) lazyContent: McDropdownContent;\n\n /** Event emitted when the dropdown is closed. */\n @Output() readonly closed = new EventEmitter<void | 'click' | 'keydown' | 'tab'>();\n\n private previousPanelClass: string;\n\n private keyManager: FocusKeyManager<McDropdownItem>;\n\n /** Only the direct descendant menu items. */\n private directDescendantItems = new QueryList<McDropdownItem>();\n\n /** Subscription to tab events on the dropdown panel */\n private tabSubscription = Subscription.EMPTY;\n\n constructor(\n private elementRef: ElementRef<HTMLElement>,\n private ngZone: NgZone,\n @Inject(MC_DROPDOWN_DEFAULT_OPTIONS) private defaultOptions: McDropdownDefaultOptions) { }\n\n ngOnInit() {\n this.setPositionClasses();\n }\n\n ngAfterContentInit() {\n this.updateDirectDescendants();\n\n this.keyManager = new FocusKeyManager<McDropdownItem>(this.directDescendantItems)\n .withTypeAhead();\n\n if (this.navigationWithWrap) {\n this.keyManager.withWrap();\n }\n\n this.tabSubscription = this.keyManager.tabOut\n .subscribe(() => this.closed.emit('tab'));\n\n // If a user manually (programmatically) focuses a menu item, we need to reflect that focus\n // change back to the key manager. Note that we don't need to unsubscribe here because focused\n // is internal and we know that it gets completed on destroy.\n this.directDescendantItems.changes\n .pipe(\n startWith(this.directDescendantItems),\n switchMap((items) => merge(...items.map((item: McDropdownItem) => item.focused)))\n )\n .subscribe((focusedItem) => this.keyManager.updateActiveItem(focusedItem as McDropdownItem));\n }\n\n ngOnDestroy() {\n this.directDescendantItems.destroy();\n this.tabSubscription.unsubscribe();\n this.closed.complete();\n }\n\n /** Stream that emits whenever the hovered dropdown item changes. */\n hovered(): Observable<McDropdownItem> {\n const itemChanges = this.directDescendantItems.changes as Observable<QueryList<McDropdownItem>>;\n\n return itemChanges.pipe(\n startWith(this.directDescendantItems),\n switchMap((items) => merge(...items.map((item: McDropdownItem) => item.hovered)))\n ) as Observable<McDropdownItem>;\n }\n\n /** Handle a keyboard event from the dropdown, delegating to the appropriate action. */\n handleKeydown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const keyCode = event.keyCode;\n\n\n switch (keyCode) {\n case ESCAPE:\n this.closed.emit('keydown');\n break;\n case LEFT_ARROW:\n if (this.parent && this.direction === 'ltr') {\n this.closed.emit('keydown');\n }\n break;\n case RIGHT_ARROW:\n if (this.parent && this.direction === 'rtl') {\n this.closed.emit('keydown');\n }\n break;\n default:\n if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {\n this.keyManager.setFocusOrigin('keyboard');\n }\n\n this.keyManager.onKeydown(event);\n\n return;\n }\n\n // Don't allow the event to propagate if we've already handled it, or it may\n // end up reaching other overlays that were opened earlier.\n event.stopPropagation();\n }\n\n /**\n * Focus the first item in the dropdown.\n * @param origin Action from which the focus originated. Used to set the correct styling.\n */\n focusFirstItem(origin: FocusOrigin = 'program'): void {\n // When the content is rendered lazily, it takes a bit before the items are inside the DOM.\n if (this.lazyContent) {\n this.ngZone.onStable\n .pipe(take(1))\n .subscribe(() => this.keyManager.setFocusOrigin(origin).setFirstItemActive());\n } else {\n this.keyManager.setFocusOrigin(origin).setFirstItemActive();\n }\n }\n\n /**\n * Resets the active item in the dropdown. This is used when the dropdown is opened, allowing\n * the user to start from the first option when pressing the down arrow.\n */\n resetActiveItem() {\n this.keyManager.activeItem?.resetStyles();\n this.keyManager.setActiveItem(-1);\n }\n\n /**\n * Adds classes to the dropdown panel based on its position. Can be used by\n * consumers to add specific styling based on the position.\n * @param posX Position of the dropdown along the x axis.\n * @param posY Position of the dropdown along the y axis.\n * @docs-private\n */\n setPositionClasses(posX: DropdownPositionX = this.xPosition, posY: DropdownPositionY = this.yPosition) {\n const classes = this.classList;\n classes['mc-dropdown-before'] = posX === 'before';\n classes['mc-dropdown-after'] = posX === 'after';\n classes['mc-dropdown-above'] = posY === 'above';\n classes['mc-dropdown-below'] = posY === 'below';\n }\n\n /** Starts the enter animation. */\n startAnimation() {\n this.panelAnimationState = 'enter';\n }\n\n /** Resets the panel animation to its initial state. */\n resetAnimation() {\n this.panelAnimationState = 'void';\n }\n\n /** Callback that is invoked when the panel animation completes. */\n onAnimationDone(event: AnimationEvent) {\n this.animationDone.next(event);\n this.isAnimating = false;\n }\n\n onAnimationStart(event: AnimationEvent) {\n this.isAnimating = true;\n\n // Scroll the content element to the top as soon as the animation starts. This is necessary,\n // because we move focus to the first item while it's still being animated, which can throw\n // the browser off when it determines the scroll position. Alternatively we can move focus\n // when the animation is done, however moving focus asynchronously will interrupt screen\n // readers which are in the process of reading out the dropdown already. We take the `element`\n // from the `event` since we can't use a `ViewChild` to access the pane.\n if (event.toState === 'enter' && this.keyManager.activeItemIndex === 0) {\n event.element.scrollTop = 0;\n }\n }\n\n close() {\n const focusOrigin = this.keyManager.getFocusOrigin() === 'keyboard' ? 'keydown' : 'click';\n\n this.closed.emit(focusOrigin);\n }\n\n /**\n * Sets up a stream that will keep track of any newly-added menu items and will update the list\n * of direct descendants. We collect the descendants this way, because `_allItems` can include\n * items that are part of child menus, and using a custom way of registering items is unreliable\n * when it comes to maintaining the item order.\n */\n private updateDirectDescendants() {\n this.items.changes\n .pipe(startWith(this.items))\n .subscribe((items: QueryList<McDropdownItem>) => {\n this.directDescendantItems.reset(items.filter((item) => item.parentDropdownPanel === this));\n this.directDescendantItems.notifyOnChanges();\n });\n }\n}\n","<ng-template>\n <div class=\"mc-dropdown__panel\"\n [ngClass]=\"classList\"\n [class.mc-dropdown__panel_nested]=\"parent\"\n [style.min-width]=\"triggerWidth\"\n (keydown)=\"handleKeydown($event)\"\n (click)=\"close()\"\n [@transformDropdown]=\"panelAnimationState\"\n (@transformDropdown.start)=\"onAnimationStart($event)\"\n (@transformDropdown.done)=\"onAnimationDone($event)\"\n tabindex=\"-1\">\n\n <div class=\"mc-dropdown__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n","import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';\nimport { Direction, Directionality } from '@angular/cdk/bidi';\nimport {\n FlexibleConnectedPositionStrategy,\n HorizontalConnectionPos,\n Overlay,\n OverlayConfig,\n OverlayRef,\n VerticalConnectionPos,\n ScrollStrategy\n} from '@angular/cdk/overlay';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Inject,\n InjectionToken,\n Input,\n OnDestroy,\n Optional,\n Output,\n Self,\n ViewContainerRef\n} from '@angular/core';\nimport { LEFT_ARROW, RIGHT_ARROW, SPACE, ENTER, DOWN_ARROW } from '@ptsecurity/cdk/keycodes';\nimport { asapScheduler, merge, Observable, of as observableOf, Subscription } from 'rxjs';\nimport { delay, filter, take, takeUntil } from 'rxjs/operators';\n\nimport { throwMcDropdownMissingError } from './dropdown-errors';\nimport { McDropdownItem } from './dropdown-item.component';\nimport { McDropdown } from './dropdown.component';\nimport { DropdownCloseReason, DropdownPositionX, DropdownPositionY, McDropdownPanel } from './dropdown.types';\n\n\n/** Injection token that determines the scroll handling while the dropdown is open. */\nexport const MC_DROPDOWN_SCROLL_STRATEGY =\n new InjectionToken<() => ScrollStrategy>('mc-dropdown-scroll-strategy');\n\n/** @docs-private */\n// tslint:disable-next-line:naming-convention\nexport function MC_DROPDOWN_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy {\n return () => overlay.scrollStrategies.reposition();\n}\n\n/** @docs-private */\nexport const MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MC_DROPDOWN_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MC_DROPDOWN_SCROLL_STRATEGY_FACTORY\n};\n\n/** Default top padding of the nested dropdown panel. */\nexport const NESTED_PANEL_TOP_PADDING = 4;\nexport const NESTED_PANEL_LEFT_PADDING = 8;\n\n/** Options for binding a passive event listener. */\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({passive: true});\n\n/**\n * This directive is intended to be used in conjunction with an mc-dropdown tag. It is\n * responsible for toggling the display of the provided dropdown instance.\n */\n@Directive({\n selector: `[mcDropdownTriggerFor]`,\n exportAs: 'mcDropdownTrigger',\n host: {\n class: 'mc-dropdown-trigger',\n '[class.mc-pressed]': 'opened',\n '(mousedown)': 'handleMousedown($event)',\n '(keydown)': 'handleKeydown($event)',\n '(click)': 'handleClick($event)'\n }\n})\nexport class McDropdownTrigger implements AfterContentInit, OnDestroy {\n lastDestroyReason: DropdownCloseReason;\n\n /** Data to be passed along to any lazily-rendered content. */\n @Input('mcDropdownTriggerData') data: any;\n\n @Input() openByArrowDown: boolean = true;\n\n /**\n * Whether focus should be restored when the menu is closed.\n * Note that disabling this option can have accessibility implications\n * and it's up to you to manage focus, if you decide to turn it off.\n */\n @Input('mcDropdownTriggerRestoreFocus') restoreFocus: boolean = true;\n\n /** References the dropdown instance that the trigger is associated with. */\n @Input('mcDropdownTriggerFor')\n get dropdown() {\n return this._dropdown;\n }\n\n set dropdown(dropdown: McDropdownPanel) {\n if (dropdown === this._dropdown) { return; }\n\n this._dropdown = dropdown;\n this.closeSubscription.unsubscribe();\n\n if (dropdown) {\n this.closeSubscription = dropdown.closed\n .asObservable()\n .subscribe((reason) => {\n this.destroy(reason);\n\n // If a click closed the dropdown, we should close the entire chain of nested dropdowns.\n if (['click', 'tab'].includes(reason as string) && this.parent) {\n this.parent.closed.emit(reason);\n }\n });\n }\n }\n\n private _dropdown: McDropdownPanel;\n\n /** Event emitted when the associated dropdown is opened. */\n @Output() readonly dropdownOpened: EventEmitter<void> = new EventEmitter<void>();\n\n /** Event emitted when the associated dropdown is closed. */\n @Output() readonly dropdownClosed: EventEmitter<void> = new EventEmitter<void>();\n\n // Tracking input type is necessary so it's possible to only auto-focus\n // the first item of the list when the dropdown is opened via the keyboard\n openedBy: Exclude<FocusOrigin, 'program' | null> | undefined;\n\n /** The text direction of the containing app. */\n get dir(): Direction {\n return this._dir?.value === 'rtl' ? 'rtl' : 'ltr';\n }\n\n /** Whether the dropdown is open. */\n get opened(): boolean {\n return this._opened;\n }\n\n private _opened: boolean = false;\n\n private portal: TemplatePortal;\n\n private overlayRef: OverlayRef | null = null;\n\n private closeSubscription = Subscription.EMPTY;\n\n private hoverSubscription = Subscription.EMPTY;\n\n constructor(\n private overlay: Overlay,\n private elementRef: ElementRef<HTMLElement>,\n private viewContainerRef: ViewContainerRef,\n @Inject(MC_DROPDOWN_SCROLL_STRATEGY) private scrollStrategy: any,\n @Optional() private parent: McDropdown,\n @Optional() @Self() private dropdownItemInstance: McDropdownItem,\n @Optional() private _dir: Directionality,\n private focusMonitor?: FocusMonitor\n ) {\n elementRef.nativeElement.addEventListener(\n 'touchstart',\n this.handleTouchStart,\n passiveEventListenerOptions\n );\n\n if (dropdownItemInstance) {\n dropdownItemInstance.isNested = this.isNested();\n }\n }\n\n ngAfterContentInit() {\n this.check();\n this.handleHover();\n }\n\n ngOnDestroy() {\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n\n this.elementRef.nativeElement.removeEventListener(\n 'touchstart',\n this.handleTouchStart,\n passiveEventListenerOptions\n );\n\n this.cleanUpSubscriptions();\n }\n\n /** Whether the dropdown triggers a nested dropdown or a top-level one. */\n isNested(): boolean {\n return !!(this.dropdownItemInstance && this.parent);\n }\n\n /** Toggles the dropdown between the open and closed states. */\n toggle(): void {\n // tslint:disable-next-line:no-void-expression\n return this._opened ? this.close() : this.open();\n }\n\n /** Opens the dropdown. */\n open(): void {\n if (this._opened) { return; }\n\n this.check();\n\n const overlayRef = this.createOverlay();\n const overlayConfig = overlayRef.getConfig();\n\n this.setPosition(overlayConfig.positionStrategy as FlexibleConnectedPositionStrategy);\n\n overlayConfig.hasBackdrop = this.dropdown.hasBackdrop ? !this.isNested() : this.dropdown.hasBackdrop;\n\n overlayRef.attach(this.getPortal());\n\n if (this.dropdown.lazyContent) {\n this.dropdown.lazyContent.detach();\n\n this.dropdown.lazyContent.attach(this.data);\n }\n\n this.closeSubscription = this.closingActions()\n .subscribe(() => this.close());\n\n this.init();\n\n if (this.dropdown instanceof McDropdown) {\n this.dropdown.startAnimation();\n }\n }\n\n /** Closes the dropdown. */\n close(): void {\n this.dropdown.closed.emit();\n }\n\n /**\n * Focuses the dropdown trigger.\n */\n focus(origin?: FocusOrigin, options?: FocusOptions) {\n if (this.focusMonitor && origin) {\n this.focusMonitor.focusVia(this.elementRef.nativeElement, origin, options);\n } else {\n this.elementRef.nativeElement.focus();\n }\n }\n\n /** Handles mouse presses on the trigger. */\n handleMousedown(event: MouseEvent): void {\n // Since right or middle button clicks won't trigger the `click` event,\n // we shouldn't consider the dropdown as opened by mouse in those cases.\n this.openedBy = event.button === 0 ? 'mouse' : undefined;\n\n // Since clicking on the trigger won't close the dropdown if it opens a nested dropdown,\n // we should prevent focus from moving onto it via click to avoid the\n // highlight from lingering on the dropdown item.\n if (this.isNested()) {\n event.preventDefault();\n }\n }\n\n /** Handles key presses on the trigger. */\n handleKeydown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const keyCode = event.keyCode;\n\n if (keyCode === ENTER || keyCode === SPACE) {\n this.openedBy = 'keyboard';\n\n event.preventDefault();\n\n if (this.isNested()) {\n // Stop event propagation to avoid closing the parent dropdown.\n event.stopPropagation();\n\n this.open();\n } else {\n this.toggle();\n }\n }\n\n if (\n (this.isNested() &&\n ((keyCode === RIGHT_ARROW && this.dir === 'ltr') || (keyCode === LEFT_ARROW && this.dir === 'rtl'))\n ) ||\n (!this.isNested() && (keyCode === DOWN_ARROW && this.openByArrowDown))\n ) {\n event.preventDefault();\n\n this.openedBy = 'keyboard';\n this.open();\n }\n }\n\n /** Handles click events on the trigger. */\n handleClick(event: MouseEvent): void {\n if (this.isNested()) {\n // Stop event propagation to avoid closing the parent dropdown.\n event.stopPropagation();\n\n this.open();\n } else {\n this.toggle();\n }\n }\n\n /**\n * Handles touch start events on the trigger.\n * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.\n */\n private handleTouchStart = () => this.openedBy = 'touch';\n\n /** Closes the dropdown and does the necessary cleanup. */\n private destroy(reason: DropdownCloseReason) {\n if (!this.overlayRef || !this.opened) { return; }\n\n this.lastDestroyReason = reason;\n\n this.dropdown.resetActiveItem();\n\n this.closeSubscription.unsubscribe();\n this.overlayRef.detach();\n\n if (this.restoreFocus && (reason === 'keydown' || !this.openedBy || !this.isNested())) {\n this.focus(this.openedBy);\n }\n\n this.openedBy = undefined;\n\n if (this.dropdown instanceof McDropdown) {\n this.dropdown.resetAnimation();\n\n const animationSubscription = this.dropdown.animationDone\n .pipe(\n filter((event) => event.toState === 'void'),\n take(1)\n );\n\n if (this.dropdown.lazyContent) {\n // Wait for the exit animation to finish before detaching the content.\n animationSubscription\n .pipe(\n // Interrupt if the content got re-attached.\n takeUntil(this.dropdown.lazyContent.attached)\n )\n .subscribe({\n next: () => this.dropdown.lazyContent!.detach(),\n // No matter whether the content got re-attached, reset the this.dropdown.\n complete: () => this.setIsOpened(false)\n });\n } else {\n animationSubscription\n .subscribe(() => this.setIsOpened(false));\n }\n } else {\n this.setIsOpened(false);\n\n if (this.dropdown.lazyContent) {\n this.dropdown.lazyContent.detach();\n }\n }\n }\n\n /**\n * This method sets the dropdown state to open and focuses the first item if\n * the dropdown was opened via the keyboard.\n */\n private init(): void {\n this.dropdown.parent = this.isNested() ? this.parent : undefined;\n this.dropdown.direction = this.dir;\n\n if (!this.dropdown.parent) {\n this.dropdown.triggerWidth = this.getWidth();\n }\n\n this.dropdown.focusFirstItem(this.openedBy || 'program');\n\n this.setIsOpened(true);\n }\n\n // set state rather than toggle to support triggers sharing a dropdown\n private setIsOpened(isOpen: boolean): void {\n this._opened = isOpen;\n // tslint:disable-next-line:no-void-expression\n this._opened ? this.dropdownOpened.emit() : this.dropdownClosed.emit();\n\n if (this.isNested()) {\n this.dropdownItemInstance.highlighted = isOpen;\n }\n }\n\n /**\n * This method checks that a valid instance of McDropdown has been passed into\n * mcDropdownTriggerFor. If not, an exception is thrown.\n */\n private check() {\n if (!this.dropdown) {\n throwMcDropdownMissingError();\n }\n }\n\n /**\n * This method creates the overlay from the provided dropdown's template and saves its\n * OverlayRef so that it can be attached to the DOM when open is called.\n */\n private createOverlay(): OverlayRef {\n if (!this.overlayRef) {\n const config = this.getOverlayConfig();\n this.subscribeToPositions(config.positionStrategy as FlexibleConnectedPositionStrategy);\n this.overlayRef = this.overlay.create(config);\n\n // Consume the `keydownEvents` in order to prevent them from going to another overlay.\n // Ideally we'd also have our keyboard event logic in here, however doing so will\n // break anybody that may have implemented the `McDropdownPanel` themselves.\n this.overlayRef.keydownEvents()\n .subscribe();\n }\n\n return this.overlayRef;\n }\n\n /**\n * This method builds the configuration object needed to create the overlay, the OverlayState.\n * @returns OverlayConfig\n */\n private getOverlayConfig(): OverlayConfig {\n return new OverlayConfig({\n positionStrategy: this.overlay.position()\n .flexibleConnectedTo(this.elementRef)\n .withLockedPosition()\n .withTransformOriginOn('.mc-dropdown__panel'),\n backdropClass: this.dropdown.backdropClass || 'cdk-overlay-transparent-backdrop',\n scrollStrategy: this.scrollStrategy(),\n direction: this.dir\n });\n }\n\n /**\n * Listens to changes in the position of the overlay and sets the correct classes\n * on the dropdown based on the new position. This ensures the animation origin is always\n * correct, even if a fallback position is used for the overlay.\n */\n private subscribeToPositions(position: FlexibleConnectedPositionStrategy): void {\n if (this.dropdown.setPositionClasses) {\n position.positionChanges\n .subscribe((change) => {\n const posX: DropdownPositionX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';\n const posY: DropdownPositionY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';\n\n this.dropdown.setPositionClasses!(posX, posY);\n });\n }\n }\n\n /**\n * Sets the appropriate positions on a position strategy\n * so the overlay connects with the trigger correctly.\n * @param positionStrategy Strategy whose position to update.\n */\n private setPosition(positionStrategy: FlexibleConnectedPositionStrategy) {\n let [originX, originFallbackX, overlayX, overlayFallbackX]: HorizontalConnectionPos[] =\n this.dropdown.xPosition === 'before' ?\n ['end', 'start', 'end', 'start'] :\n ['start', 'end', 'start', 'end'];\n\n // tslint:disable-next-line:prefer-const\n let [overlayY, overlayFallbackY, originY, originFallbackY]: VerticalConnectionPos[] =\n this.dropdown.yPosition === 'above' ?\n ['bottom', 'top', 'bottom', 'top'] :\n ['top', 'bottom', 'top', 'bottom'];\n\n let offsetY = 0;\n let offsetX = 0;\n\n if (this.isNested()) {\n // When the dropdown is nested, it should always align itself\n // to the edges of the trigger, instead of overlapping it.\n overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';\n originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';\n offsetY = overlayY === 'bottom' ? NESTED_PANEL_TOP_PADDING : -NESTED_PANEL_TOP_PADDING;\n offsetX = NESTED_PANEL_LEFT_PADDING;\n } else {\n if (!this.dropdown.overlapTriggerY) {\n originY = overlayY === 'top' ? 'bottom' : 'top';\n originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';\n }\n\n if (!this.dropdown.overlapTriggerX) {\n overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';\n originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';\n }\n }\n\n positionStrategy.withPositions([\n { originX, originY, overlayX, overlayY, offsetY, offsetX: -offsetX },\n { originX: originFallbackX, originY, overlayX: overlayFallbackX, overlayY, offsetY, offsetX },\n {\n originX,\n originY: originFallbackY,\n overlayX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY,\n offsetX: -offsetX\n },\n {\n originX: originFallbackX,\n originY: originFallbackY,\n overlayX: overlayFallbackX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY,\n offsetX: -offsetX\n }\n ]);\n }\n\n /** Cleans up the active subscriptions. */\n private cleanUpSubscriptions(): void {\n this.closeSubscription.unsubscribe();\n this.hoverSubscription.unsubscribe();\n }\n\n /** Returns a stream that emits whenever an action that should close the dropdown occurs. */\n private closingActions() {\n const backdrop = this.overlayRef!.backdropClick();\n const outsidePointerEvents = this.overlayRef!.outsidePointerEvents();\n const detachments = this.overlayRef!.detachments();\n const parentClose = this.parent ? this.parent.closed : observableOf();\n const hover = this.parent ? this.parent.hovered()\n .pipe(\n filter((active) => active !== this.dropdownItemInstance),\n filter(() => this._opened)\n ) : observableOf();\n\n return merge(\n backdrop,\n outsidePointerEvents,\n parentClose as Observable<DropdownCloseReason>,\n hover,\n detachments\n );\n }\n\n /** Handles the cases where the user hovers over the trigger. */\n private handleHover() {\n // Subscribe to changes in the hovered item in order to toggle the panel.\n if (!this.isNested()) { return; }\n\n this.hoverSubscription = this.parent.hovered()\n // Since we might have multiple competing triggers for the same dropdown (e.g. a nested dropdown\n // with different data and triggers), we have to delay it by a tick to ensure that\n // it won't be closed immediately after it is opened.\n .pipe(\n filter((active) => active === this.dropdownItemInstance && !active.disabled),\n delay(0, asapScheduler)\n )\n .subscribe(() => {\n this.openedBy = 'mouse';\n\n // If the same dropdown is used between multiple triggers, it might still be animating\n // while the new trigger tries to re-open it. Wait for the animation to finish\n // before doing so. Also interrupt if the user moves to another item.\n if (this.dropdown instanceof McDropdown && this.dropdown.isAnimating) {\n // We need the `delay(0)` here in order to avoid\n // 'changed after checked' errors in some cases. See #12194.\n this.dropdown.animationDone\n .pipe(\n take(1),\n delay(0, asapScheduler),\n takeUntil(this.parent.hovered())\n )\n .subscribe(() => this.open());\n } else {\n this.open();\n }\n });\n }\n\n /** Gets the portal that should be attached to the overlay. */\n private getPortal(): TemplatePortal {\n // Note that we can avoid this check by keeping the portal on the dropdown panel.\n // While it would be cleaner, we'd have to introduce another required method on\n // `McDropdownPanel`, making it harder to consume.\n if (!this.portal || this.portal.templateRef !== this.dropdown.templateRef) {\n this.portal = new TemplatePortal(this.dropdown.templateRef, this.viewContainerRef);\n }\n\n return this.portal;\n }\n\n private getWidth(): string {\n const nativeElement = this.elementRef.nativeElement;\n\n const { width, borderRightWidth, borderLeftWidth } = window.getComputedStyle(nativeElement);\n\n return `${parseInt(width) - parseInt(borderRightWidth) - parseInt(borderLeftWidth)}px`;\n }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { McIconModule } from '@ptsecurity/mosaic/icon';\n\nimport { McDropdownContent } from './dropdown-content.directive';\nimport { McDropdownItem } from './dropdown-item.component';\nimport { MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER, McDropdownTrigger } from './dropdown-trigger.directive';\nimport { McDropdown } from './dropdown.component';\n\n\n@NgModule({\n imports: [\n CommonModule,\n OverlayModule,\n McIconModule\n ],\n exports: [\n McDropdown,\n McDropdownItem,\n McDropdownTrigger,\n McDropdownContent\n ],\n declarations: [\n McDropdown,\n McDropdownItem,\n McDropdownTrigger,\n McDropdownContent\n ],\n providers: [MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER]\n})\nexport class McDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["InjectionToken","Subject","TemplatePortal","DomPortalOutlet","DOCUMENT","Directive","Inject","mixinDisabled","McIcon","Component","ChangeDetectionStrategy","ViewEncapsulation","Optional","ContentChild","HostListener","trigger","state","style","transition","group","query","animate","EventEmitter","QueryList","Subscription","coerceBooleanProperty","FocusKeyManager","startWith","switchMap","merge","ESCAPE","LEFT_ARROW","RIGHT_ARROW","UP_ARROW","DOWN_ARROW","take","TemplateRef","Input","ViewChild","ContentChildren","Output","Overlay","normalizePassiveListenerOptions","ENTER","SPACE","filter","takeUntil","OverlayConfig","observableOf","delay","asapScheduler","Self","CommonModule","OverlayModule","McIconModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgEA;;;;QAIa,iBAAiB,GAAG,IAAIA,iBAAc,CAAkB,mBAAmB,EAAE;IAG1F;QACa,2BAA2B,GACpC,IAAIA,iBAAc,CAA2B,6BAA6B,EAAE;QACxE,UAAU,EAAE,MAAM;QAClB,OAAO,EAAE,mCAAmC;KAC/C,EAAE;IAEP;IACA;aACgB,mCAAmC;QAC/C,OAAO;YACH,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,KAAK;YACtB,SAAS,EAAE,OAAO;YAClB,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,kCAAkC;YACjD,WAAW,EAAE,KAAK;SACrB,CAAC;IACN;;IC1EA;;;;QAYI,2BACY,QAA0B,EAC1B,wBAAkD,EAClD,MAAsB,EACtB,QAAkB,EAClB,gBAAkC,EAChB,QAAa;YAL/B,aAAQ,GAAR,QAAQ,CAAkB;YAC1B,6BAAwB,GAAxB,wBAAwB,CAA0B;YAClD,WAAM,GAAN,MAAM,CAAgB;YACtB,aAAQ,GAAR,QAAQ,CAAU;YAClB,qBAAgB,GAAhB,gBAAgB,CAAkB;YAChB,aAAQ,GAAR,QAAQ,CAAK;;YAV3C,aAAQ,GAAG,IAAIC,YAAO,EAAQ,CAAC;SAW3B;;;;;QAMJ,kCAAM,GAAN,UAAO,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;YACpB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACd,IAAI,CAAC,MAAM,GAAG,IAAIC,qBAAc,CAAC,IAAI,CAA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