fundamental-ngx
Version:
SAP Fiori Fundamentals, implemented in Angular
63 lines • 3.8 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Subject } from 'rxjs';
/**
* Reference to an alert component generated via the AlertService.
* It can be injected into the content component in the same way a service would be injected.
* For a template, add let-alert to your ng-template tag. Now using *alert* in the template refers to this class.
*/
var /**
* Reference to an alert component generated via the AlertService.
* It can be injected into the content component in the same way a service would be injected.
* For a template, add let-alert to your ng-template tag. Now using *alert* in the template refers to this class.
*/
AlertRef = /** @class */ (function () {
function AlertRef() {
this._afterDismissed = new Subject();
/**
* Observable that is triggered when the alert is dismissed.
*/
this.afterDismissed = this._afterDismissed.asObservable();
}
/**
* Dismisses the alert.
*/
/**
* Dismisses the alert.
* @return {?}
*/
AlertRef.prototype.dismiss = /**
* Dismisses the alert.
* @return {?}
*/
function () {
this._afterDismissed.next();
};
return AlertRef;
}());
/**
* Reference to an alert component generated via the AlertService.
* It can be injected into the content component in the same way a service would be injected.
* For a template, add let-alert to your ng-template tag. Now using *alert* in the template refers to this class.
*/
export { AlertRef };
if (false) {
/**
* @type {?}
* @private
*/
AlertRef.prototype._afterDismissed;
/**
* Observable that is triggered when the alert is dismissed.
* @type {?}
*/
AlertRef.prototype.afterDismissed;
/**
* Data passed from the service open method.
* @type {?}
*/
AlertRef.prototype.data;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtcmVmLmpzIiwic291cmNlUm9vdCI6Im5nOi8vZnVuZGFtZW50YWwtbmd4LyIsInNvdXJjZXMiOlsibGliL2FsZXJ0L2FsZXJ0LXV0aWxzL2FsZXJ0LXJlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFjLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQzs7Ozs7O0FBTzNDOzs7Oz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