UNPKG

1.69 kBSource Map (JSON)View Raw
1{"version":3,"sources":["core/overlay/overlay-container.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH;IAAA;IAwBA,CAAC;IArBC;;;;;OAKG;IACH,8CAAmB,GAAnB;QACE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAAC,CAAC;QACzD,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAED;;;OAGG;IACK,2CAAgB,GAAxB;QACE,IAAI,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9C,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;IACrC,CAAC;IACH,uBAAC;AAAD,CAxBA,AAwBC,IAAA","file":"core/overlay/overlay-container.js","sourcesContent":["/**\n * The OverlayContainer is the container in which all overlays will load.\n * It should be provided in the root component to ensure it is properly shared.\n */\nexport class OverlayContainer {\n private _containerElement: HTMLElement;\n\n /**\n * This method returns the overlay container element. It will lazily\n * create the element the first time it is called to facilitate using\n * the container in non-browser environments.\n * @returns {HTMLElement} the container element\n */\n getContainerElement(): HTMLElement {\n if (!this._containerElement) { this._createContainer(); }\n return this._containerElement;\n }\n\n /**\n * Create the overlay container element, which is simply a div\n * with the 'md-overlay-container' class on the document body.\n */\n private _createContainer(): void {\n let container = document.createElement('div');\n container.classList.add('md-overlay-container');\n document.body.appendChild(container);\n this._containerElement = container;\n }\n}\n"],"sourceRoot":"/source/"}
\No newline at end of file