{"version":3,"file":"angular-react-fabric-lib-components-callout.mjs","sources":["../../../libs/fabric/lib/components/callout/callout.component.ts","../../../libs/fabric/lib/components/callout/callout.module.ts","../../../libs/fabric/lib/components/callout/public-api.ts","../../../libs/fabric/lib/components/callout/angular-react-fabric-lib-components-callout.ts"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n\r\nimport { ReactWrapperComponent } from '@angular-react/core';\r\nimport {\r\n  ChangeDetectionStrategy,\r\n  ChangeDetectorRef,\r\n  Component,\r\n  ElementRef,\r\n  EventEmitter,\r\n  Input,\r\n  Output,\r\n  Renderer2,\r\n  ViewChild,\r\n} from '@angular/core';\r\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\r\nimport { ICalloutPositionedInfo } from '@fluentui/react/lib/utilities/positioning/positioning.types';\r\nimport { Styled } from '@angular-react/fabric/lib/utils';\r\nimport { AngularReact } from '@angular-react/core';\r\n\r\n@AngularReact()\r\n@Styled('FabCalloutComponent')\r\n@Component({\r\n  selector: 'fab-callout',\r\n  exportAs: 'fabCallout',\r\n  template: `\r\n    <Callout\r\n      #reactNode\r\n      [target]=\"target\"\r\n      [directionalHint]=\"directionalHint\"\r\n      [directionalHintForRTL]=\"directionalHintForRTL\"\r\n      [gapSpace]=\"gapSpace\"\r\n      [beakWidth]=\"beakWidth\"\r\n      [calloutWidth]=\"calloutWidth\"\r\n      [backgroundColor]=\"backgroundColor\"\r\n      [bounds]=\"bounds\"\r\n      [minPagePadding]=\"minPagePadding\"\r\n      [isBeakVisible]=\"isBeakVisible\"\r\n      [preventDismissOnScroll]=\"preventDismissOnScroll\"\r\n      [preventDismissOnResize]=\"preventDismissOnResize\"\r\n      [preventDismissOnLostFocus]=\"preventDismissOnLostFocus\"\r\n      [coverTarget]=\"coverTarget\"\r\n      [alignTargetEdge]=\"alignTargetEdge\"\r\n      [role]=\"role\"\r\n      [ariaLabel]=\"ariaLabel\"\r\n      [ariaLabelledBy]=\"ariaLabelledBy\"\r\n      [ariaDescribedBy]=\"ariaDescribedBy\"\r\n      [className]=\"className\"\r\n      [layerProps]=\"layerProps\"\r\n      [doNotLayer]=\"doNotLayer\"\r\n      [directionalHintFixed]=\"directionalHintFixed\"\r\n      [finalHeight]=\"finalHeight\"\r\n      [hideOverflow]=\"hideOverflow\"\r\n      [setInitialFocus]=\"setInitialFocus\"\r\n      [calloutMaxHeight]=\"calloutMaxHeight\"\r\n      [theme]=\"theme\"\r\n      [styles]=\"styles\"\r\n      [hidden]=\"hidden\"\r\n      [shouldRestoreFocus]=\"shouldRestoreFocus\"\r\n      (onLayerMounted)=\"onLayerMounted.emit()\"\r\n      (onPositioned)=\"onPositioned.emit($event)\"\r\n      (onDismiss)=\"onDismiss.emit($event)\"\r\n      (onScroll)=\"onScroll.emit()\"\r\n    >\r\n      <ReactContent><ng-content></ng-content></ReactContent>\r\n    </Callout>\r\n  `,\r\n  changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class FabCalloutComponent extends ReactWrapperComponent<ICalloutProps> {\r\n  @ViewChild('reactNode', { static: true }) protected reactNodeRef: ElementRef;\r\n\r\n  @Input() target?: ICalloutProps['target'];\r\n  @Input() directionalHint?: ICalloutProps['directionalHint'];\r\n  @Input() directionalHintForRTL?: ICalloutProps['directionalHintForRTL'];\r\n  @Input() gapSpace?: ICalloutProps['gapSpace'];\r\n  @Input() beakWidth?: ICalloutProps['beakWidth'];\r\n  @Input() calloutWidth?: ICalloutProps['calloutWidth'];\r\n  @Input() backgroundColor?: ICalloutProps['backgroundColor'];\r\n  @Input() bounds?: ICalloutProps['bounds'];\r\n  @Input() minPagePadding?: ICalloutProps['minPagePadding'];\r\n  @Input() isBeakVisible?: ICalloutProps['isBeakVisible'];\r\n  @Input() preventDismissOnScroll?: ICalloutProps['preventDismissOnScroll'];\r\n  @Input() preventDismissOnResize?: ICalloutProps['preventDismissOnResize'];\r\n  @Input() preventDismissOnLostFocus?: ICalloutProps['preventDismissOnLostFocus'];\r\n  @Input() coverTarget?: ICalloutProps['coverTarget'];\r\n  @Input() alignTargetEdge?: ICalloutProps['alignTargetEdge'];\r\n  @Input() role?: ICalloutProps['role'];\r\n  @Input() ariaLabel?: ICalloutProps['ariaLabel'];\r\n  @Input() ariaLabelledBy?: ICalloutProps['ariaLabelledBy'];\r\n  @Input() ariaDescribedBy?: ICalloutProps['ariaDescribedBy'];\r\n  @Input() className?: ICalloutProps['className'];\r\n  @Input() layerProps?: ICalloutProps['layerProps'];\r\n  @Input() doNotLayer?: ICalloutProps['doNotLayer'];\r\n  @Input() directionalHintFixed?: ICalloutProps['directionalHintFixed'];\r\n  @Input() finalHeight?: ICalloutProps['finalHeight'];\r\n  @Input() hideOverflow?: ICalloutProps['hideOverflow'];\r\n  @Input() setInitialFocus?: ICalloutProps['setInitialFocus'];\r\n  @Input() calloutMaxHeight?: ICalloutProps['calloutMaxHeight'];\r\n  @Input() theme?: ICalloutProps['theme'];\r\n  @Input() styles?: ICalloutProps['styles'];\r\n  @Input() hidden?: ICalloutProps['hidden'];\r\n  @Input() shouldRestoreFocus?: ICalloutProps['shouldRestoreFocus'];\r\n\r\n  @Output() readonly onLayerMounted = new EventEmitter<void>();\r\n  @Output() readonly onPositioned = new EventEmitter<{ positions?: ICalloutPositionedInfo }>();\r\n  @Output() readonly onDismiss = new EventEmitter<{ ev?: any }>();\r\n  @Output() readonly onScroll = new EventEmitter<void>();\r\n\r\n  constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, renderer: Renderer2) {\r\n    super(elementRef, changeDetectorRef, renderer);\r\n  }\r\n}\r\n","// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n\r\nimport { registerElement } from '@angular-react/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { Callout, FocusTrapCallout } from '@fluentui/react/lib/Callout';\r\nimport { FabCalloutComponent } from './callout.component';\r\n\r\nconst components = [FabCalloutComponent];\r\n\r\n@NgModule({\r\n  imports: [CommonModule],\r\n  declarations: components,\r\n  exports: components,\r\n  schemas: [NO_ERRORS_SCHEMA],\r\n})\r\nexport class FabCalloutModule {\r\n  constructor() {\r\n    // Add any React elements to the registry (used by the renderer).\r\n    registerElement('Callout', () => Callout);\r\n    registerElement('FocusTrapCallout', () => FocusTrapCallout);\r\n  }\r\n}\r\n","// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n\r\nexport * from './callout.component';\r\nexport * from './callout.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAqEO,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,qBAAoC,CAAA;AAwC3E,IAAA,WAAA,CAAY,UAAsB,EAAE,iBAAoC,EAAE,QAAmB,EAAA;AAC3F,QAAA,KAAK,CAAC,UAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC;AAN9B,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,YAAY,EAAQ,CAAC;AAC1C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAA0C,CAAC;AAC1E,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAgB,CAAC;AAC7C,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAQ,CAAC;KAItD;iIA1CU,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,O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