@wavemaker/app-runtime-wm-build 11.3.6-next.25104 → 11.3.6-next.25107
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.
|
@@ -36451,7 +36451,12 @@
|
|
|
36451
36451
|
})), _this.bsModal.onShow.subscribe((function() {
|
|
36452
36452
|
focusTrapObj.activeElement = document.activeElement;
|
|
36453
36453
|
})), _this.bsModal.onHidden.subscribe((function(closeReason) {
|
|
36454
|
-
var ref =
|
|
36454
|
+
var ref = _this.dialogService.getDialogRefFromClosedDialogs();
|
|
36455
|
+
if (_this.dialogId && (closeReason === null || closeReason === void 0 ? void 0 : closeReason.id) === _this.dialogId) {
|
|
36456
|
+
ref = _this;
|
|
36457
|
+
} else if (closeReason === "esc" || closeReason === "backdrop-click") {
|
|
36458
|
+
ref = _this.dialogService.getLastOpenedDialog();
|
|
36459
|
+
}
|
|
36455
36460
|
if (ref === _this) {
|
|
36456
36461
|
_this.dialogService.removeFromOpenedDialogs(ref);
|
|
36457
36462
|
_this.dialogService.removeFromClosedDialogs(ref);
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
322
322
|
PERFORMANCE OF THIS SOFTWARE.
|
|
323
323
|
***************************************************************************** */
|
|
324
|
-
var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function u(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var h=function(){o.register("wm-dialogfooter",new Map([["class",o.PROP_STRING],["name",o.PROP_STRING],["show",Object.assign({value:!0},o.PROP_BOOLEAN)]]))},m={widgetType:"wm-dialogfooter",hostClass:"app-dialog-footer modal-footer"},f=function(e){function t(t){return e.call(this,t,m)||this}return p(t,e),t}(o.BaseComponent);f.initializeProps=h(),f.decorators=[{type:t.Directive,args:[{selector:"div[wmDialogFooter]",providers:[o.provideAsWidgetRef(f)]}]}],f.ctorParameters=function(){return[{type:t.Injector}]};var g={activeElement:null},v=function(e){e&&setTimeout((function(){var t=i.findRootContainer(e.$element);t&&$("body > modal-container > div").wrap("<"+t+"/>"),e.invokeEventCallback("opened",{$event:{type:"opened"}});var n=$("[aria-labelledby= "+e.titleId+"]")[0],o=[n.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter((function(e){return!e[0].hasAttribute("disabled")&&!e[0].hasAttribute("hidden")}))[0];$(o[0]).focus(),g[e.titleId]=r.createFocusTrap(n,{onActivate:function(){return n.classList.add("is-active")},onDeactivate:function(){return n.classList.remove("is-active")},allowOutsideClick:!0,setReturnFocus:g.activeElement}),g[e.titleId].activate()}))},y=v,b=function(e){e&&(e.invokeEventCallback("close"),e.dialogRef=void 0)},w=b,P=function(e){function t(t,o,r){var s=e.call(this,t,o)||this;s.modalOptions=r,s.titleId="wmdialog-"+i.generateGUId(),s.dialogService=t.get(i.AbstractDialogService),s.bsModal=t.get(n.BsModalService);var l=t.get(a.Router),c=[s.bsModal.onShown.subscribe((function(e){var t=e.id,n=s.dialogService.getLastOpenedDialog();n===s&&(v(n),s.dialogId=t)})),s.bsModal.onShow.subscribe((function(){g.activeElement=document.activeElement})),s.bsModal.onHidden.subscribe((function(e){var t=
|
|
324
|
+
var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function u(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var h=function(){o.register("wm-dialogfooter",new Map([["class",o.PROP_STRING],["name",o.PROP_STRING],["show",Object.assign({value:!0},o.PROP_BOOLEAN)]]))},m={widgetType:"wm-dialogfooter",hostClass:"app-dialog-footer modal-footer"},f=function(e){function t(t){return e.call(this,t,m)||this}return p(t,e),t}(o.BaseComponent);f.initializeProps=h(),f.decorators=[{type:t.Directive,args:[{selector:"div[wmDialogFooter]",providers:[o.provideAsWidgetRef(f)]}]}],f.ctorParameters=function(){return[{type:t.Injector}]};var g={activeElement:null},v=function(e){e&&setTimeout((function(){var t=i.findRootContainer(e.$element);t&&$("body > modal-container > div").wrap("<"+t+"/>"),e.invokeEventCallback("opened",{$event:{type:"opened"}});var n=$("[aria-labelledby= "+e.titleId+"]")[0],o=[n.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter((function(e){return!e[0].hasAttribute("disabled")&&!e[0].hasAttribute("hidden")}))[0];$(o[0]).focus(),g[e.titleId]=r.createFocusTrap(n,{onActivate:function(){return n.classList.add("is-active")},onDeactivate:function(){return n.classList.remove("is-active")},allowOutsideClick:!0,setReturnFocus:g.activeElement}),g[e.titleId].activate()}))},y=v,b=function(e){e&&(e.invokeEventCallback("close"),e.dialogRef=void 0)},w=b,P=function(e){function t(t,o,r){var s=e.call(this,t,o)||this;s.modalOptions=r,s.titleId="wmdialog-"+i.generateGUId(),s.dialogService=t.get(i.AbstractDialogService),s.bsModal=t.get(n.BsModalService);var l=t.get(a.Router),c=[s.bsModal.onShown.subscribe((function(e){var t=e.id,n=s.dialogService.getLastOpenedDialog();n===s&&(v(n),s.dialogId=t)})),s.bsModal.onShow.subscribe((function(){g.activeElement=document.activeElement})),s.bsModal.onHidden.subscribe((function(e){var t=s.dialogService.getDialogRefFromClosedDialogs();s.dialogId&&(null==e?void 0:e.id)===s.dialogId?t=s:"esc"!==e&&"backdrop-click"!==e||(t=s.dialogService.getLastOpenedDialog()),t===s&&(s.dialogService.removeFromOpenedDialogs(t),s.dialogService.removeFromClosedDialogs(t),b(t),t.closeCallBackFn&&t.closeCallBackFn())})),s.bsModal.onHide.subscribe((function(){var e=s.dialogService.getDialogRefFromClosedDialogs();e&&void 0!==g[e.titleId]&&g[e.titleId].deactivate()})),l.events.subscribe((function(e){e instanceof a.NavigationEnd&&s.close()}))];return s.registerDestroyListener((function(){s.dialogService.removeFromOpenedDialogs(s),s.dialogService.removeFromClosedDialogs(s),c.forEach((function(e){return e.unsubscribe()}))})),s}return p(t,e),t.prototype.open=function(e){var t=this;this.dialogService.getOpenedDialogs().some((function(e){return e===t}))||(this.dialogService.addToOpenedDialogs(this),Object.assign(this.context,e),this.modalOptions.ariaLabelledBy=this.titleId,this.dialogRef=this.bsModal.show(this.getTemplateRef(),this.modalOptions),1===this.dialogService.getOpenedDialogs().length&&(i.isMobile()||i.isMobileApp())&&$("body > app-root")[0].setAttribute("aria-hidden","true"))},t.prototype.close=function(){this.dialogRef&&(this.dialogService.addToClosedDialogs(this),this.dialogRef.hide())},t.prototype.register=function(e){this.dialogService.register(this.name,this,e)},t.prototype.deRegister=function(e){this.dialogService.deRegister(this.name,e)},t.prototype.onPropertyChange=function(t,n,i){"class"!==t&&"name"!==t&&"tabindex"!==t&&("animation"===t&&(this.modalOptions.class=this.modalOptions.class.replace(" animated "+i,""),n&&(this.modalOptions.class=this.modalOptions.class+" animated "+n)),e.prototype.onPropertyChange.call(this,t,n,i))},t.prototype.ngOnDestroy=function(){this.close(),this.deRegister(this.viewParent),e.prototype.ngOnDestroy.call(this)},t}(o.BaseComponent);P.decorators=[{type:t.Injectable}],P.ctorParameters=function(){return[{type:t.Injector},{type:void 0},{type:n.ModalOptions}]};var _="21px",O=function(){function e(e,t){this.dialogRef=t,this.iconwidth=_,this.iconheight=_,this.closable=!0,i.addClass(e.nativeElement,"app-dialog-header modal-header")}return Object.defineProperty(e.prototype,"isClosable",{get:function(){return i.toBoolean(this.closable)},enumerable:!1,configurable:!0}),e.prototype.closeDialog=function(){this.dialogRef.close()},e}();O.decorators=[{type:t.Component,args:[{selector:"div[wmDialogHeader]",template:'<button *ngIf="isClosable" aria-label="Close" class="app-dialog-close close" (click)="closeDialog();" title="Close">\n <span aria-hidden="true">×</span>\n</button>\n<h4 class="app-dialog-title modal-title">\n <i [ngClass]="iconclass" [ngStyle]="{width: iconwidth, height: iconheight, margin: iconmargin}" *ngIf="iconclass && !iconurl"></i>\n <img data-identifier="img" [src]="iconurl | image" *ngIf="iconurl" [ngStyle]="{width:iconwidth, height:iconheight, margin:iconmargin}"/>\n <span class="dialog-heading" [textContent]="heading" [id]="titleid"></span>\n <span class="dialog-sub-heading" *ngIf="subheading" [title]="subheading" [textContent]="subheading"></span>\n</h4>\n'}]}],O.ctorParameters=function(){return[{type:t.ElementRef},{type:P,decorators:[{type:t.Inject,args:[o.DialogRef]}]}]},O.propDecorators={iconwidth:[{type:t.Input}],iconheight:[{type:t.Input}],iconmargin:[{type:t.Input}],iconclass:[{type:t.Input}],iconurl:[{type:t.Input}],closable:[{type:t.Input}],heading:[{type:t.Input}],subheading:[{type:t.Input}],titleid:[{type:t.Input}]};var E=[l,f,O],R=function(){};R.decorators=[{type:t.NgModule,args:[{imports:[s.CommonModule,n.ModalModule,o.WmComponentsModule],declarations:u([],d(E)),exports:u([],d(E)),entryComponents:[]}]}],e.BaseDialog=P,e.DialogBodyDirective=l,e.DialogFooterDirective=f,e.DialogHeaderComponent=O,e.DialogModule=R,e["\u02750"]=y,e["\u02751"]=w,e["\u0275a"]=h,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@wm/components/base"),require("@wm/components/dialogs"),require("@wm/components/input"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/dialogs/alert-dialog",["exports","@angular/core","@angular/common","@wm/components/base","@wm/components/dialogs","@wm/components/input","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.dialogs=e.wm.components.dialogs||{},e.wm.components.dialogs.alertdialog={}),e.ng.core,e.ng.common,e.wm.components.base,e.wm.components.dialogs,e.wm.components.input,e.wm.core)}(this,(function(e,t,n,i,o,a,r){"use strict";
|
|
325
325
|
/*! *****************************************************************************
|
|
326
326
|
Copyright (c) Microsoft Corporation.
|
|
327
327
|
|
|
@@ -36451,7 +36451,12 @@
|
|
|
36451
36451
|
})), _this.bsModal.onShow.subscribe((function() {
|
|
36452
36452
|
focusTrapObj.activeElement = document.activeElement;
|
|
36453
36453
|
})), _this.bsModal.onHidden.subscribe((function(closeReason) {
|
|
36454
|
-
var ref =
|
|
36454
|
+
var ref = _this.dialogService.getDialogRefFromClosedDialogs();
|
|
36455
|
+
if (_this.dialogId && (closeReason === null || closeReason === void 0 ? void 0 : closeReason.id) === _this.dialogId) {
|
|
36456
|
+
ref = _this;
|
|
36457
|
+
} else if (closeReason === "esc" || closeReason === "backdrop-click") {
|
|
36458
|
+
ref = _this.dialogService.getLastOpenedDialog();
|
|
36459
|
+
}
|
|
36455
36460
|
if (ref === _this) {
|
|
36456
36461
|
_this.dialogService.removeFromOpenedDialogs(ref);
|
|
36457
36462
|
_this.dialogService.removeFromClosedDialogs(ref);
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
322
322
|
PERFORMANCE OF THIS SOFTWARE.
|
|
323
323
|
***************************************************************************** */
|
|
324
|
-
var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function d(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var h=function(){o.register("wm-dialogfooter",new Map([["class",o.PROP_STRING],["name",o.PROP_STRING],["show",Object.assign({value:!0},o.PROP_BOOLEAN)]]))},m={widgetType:"wm-dialogfooter",hostClass:"app-dialog-footer modal-footer"},f=function(e){function t(t){return e.call(this,t,m)||this}return p(t,e),t}(o.BaseComponent);f.initializeProps=h(),f.decorators=[{type:t.Directive,args:[{selector:"div[wmDialogFooter]",providers:[o.provideAsWidgetRef(f)]}]}],f.ctorParameters=function(){return[{type:t.Injector}]};var g={activeElement:null},v=function(e){e&&setTimeout((function(){var t=i.findRootContainer(e.$element);t&&$("body > modal-container > div").wrap("<"+t+"/>"),e.invokeEventCallback("opened",{$event:{type:"opened"}});var n=$("[aria-labelledby= "+e.titleId+"]")[0],o=[n.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter((function(e){return!e[0].hasAttribute("disabled")&&!e[0].hasAttribute("hidden")}))[0];$(o[0]).focus(),g[e.titleId]=a.createFocusTrap(n,{onActivate:function(){return n.classList.add("is-active")},onDeactivate:function(){return n.classList.remove("is-active")},allowOutsideClick:!0,setReturnFocus:g.activeElement}),g[e.titleId].activate()}))},y=v,b=function(e){e&&(e.invokeEventCallback("close"),e.dialogRef=void 0)},w=b,P=function(e){function t(t,o,a){var s=e.call(this,t,o)||this;s.modalOptions=a,s.titleId="wmdialog-"+i.generateGUId(),s.dialogService=t.get(i.AbstractDialogService),s.bsModal=t.get(n.BsModalService);var l=t.get(r.Router),c=[s.bsModal.onShown.subscribe((function(e){var t=e.id,n=s.dialogService.getLastOpenedDialog();n===s&&(v(n),s.dialogId=t)})),s.bsModal.onShow.subscribe((function(){g.activeElement=document.activeElement})),s.bsModal.onHidden.subscribe((function(e){var t=
|
|
324
|
+
var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function d(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var h=function(){o.register("wm-dialogfooter",new Map([["class",o.PROP_STRING],["name",o.PROP_STRING],["show",Object.assign({value:!0},o.PROP_BOOLEAN)]]))},m={widgetType:"wm-dialogfooter",hostClass:"app-dialog-footer modal-footer"},f=function(e){function t(t){return e.call(this,t,m)||this}return p(t,e),t}(o.BaseComponent);f.initializeProps=h(),f.decorators=[{type:t.Directive,args:[{selector:"div[wmDialogFooter]",providers:[o.provideAsWidgetRef(f)]}]}],f.ctorParameters=function(){return[{type:t.Injector}]};var g={activeElement:null},v=function(e){e&&setTimeout((function(){var t=i.findRootContainer(e.$element);t&&$("body > modal-container > div").wrap("<"+t+"/>"),e.invokeEventCallback("opened",{$event:{type:"opened"}});var n=$("[aria-labelledby= "+e.titleId+"]")[0],o=[n.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter((function(e){return!e[0].hasAttribute("disabled")&&!e[0].hasAttribute("hidden")}))[0];$(o[0]).focus(),g[e.titleId]=a.createFocusTrap(n,{onActivate:function(){return n.classList.add("is-active")},onDeactivate:function(){return n.classList.remove("is-active")},allowOutsideClick:!0,setReturnFocus:g.activeElement}),g[e.titleId].activate()}))},y=v,b=function(e){e&&(e.invokeEventCallback("close"),e.dialogRef=void 0)},w=b,P=function(e){function t(t,o,a){var s=e.call(this,t,o)||this;s.modalOptions=a,s.titleId="wmdialog-"+i.generateGUId(),s.dialogService=t.get(i.AbstractDialogService),s.bsModal=t.get(n.BsModalService);var l=t.get(r.Router),c=[s.bsModal.onShown.subscribe((function(e){var t=e.id,n=s.dialogService.getLastOpenedDialog();n===s&&(v(n),s.dialogId=t)})),s.bsModal.onShow.subscribe((function(){g.activeElement=document.activeElement})),s.bsModal.onHidden.subscribe((function(e){var t=s.dialogService.getDialogRefFromClosedDialogs();s.dialogId&&(null==e?void 0:e.id)===s.dialogId?t=s:"esc"!==e&&"backdrop-click"!==e||(t=s.dialogService.getLastOpenedDialog()),t===s&&(s.dialogService.removeFromOpenedDialogs(t),s.dialogService.removeFromClosedDialogs(t),b(t),t.closeCallBackFn&&t.closeCallBackFn())})),s.bsModal.onHide.subscribe((function(){var e=s.dialogService.getDialogRefFromClosedDialogs();e&&void 0!==g[e.titleId]&&g[e.titleId].deactivate()})),l.events.subscribe((function(e){e instanceof r.NavigationEnd&&s.close()}))];return s.registerDestroyListener((function(){s.dialogService.removeFromOpenedDialogs(s),s.dialogService.removeFromClosedDialogs(s),c.forEach((function(e){return e.unsubscribe()}))})),s}return p(t,e),t.prototype.open=function(e){var t=this;this.dialogService.getOpenedDialogs().some((function(e){return e===t}))||(this.dialogService.addToOpenedDialogs(this),Object.assign(this.context,e),this.modalOptions.ariaLabelledBy=this.titleId,this.dialogRef=this.bsModal.show(this.getTemplateRef(),this.modalOptions),1===this.dialogService.getOpenedDialogs().length&&(i.isMobile()||i.isMobileApp())&&$("body > app-root")[0].setAttribute("aria-hidden","true"))},t.prototype.close=function(){this.dialogRef&&(this.dialogService.addToClosedDialogs(this),this.dialogRef.hide())},t.prototype.register=function(e){this.dialogService.register(this.name,this,e)},t.prototype.deRegister=function(e){this.dialogService.deRegister(this.name,e)},t.prototype.onPropertyChange=function(t,n,i){"class"!==t&&"name"!==t&&"tabindex"!==t&&("animation"===t&&(this.modalOptions.class=this.modalOptions.class.replace(" animated "+i,""),n&&(this.modalOptions.class=this.modalOptions.class+" animated "+n)),e.prototype.onPropertyChange.call(this,t,n,i))},t.prototype.ngOnDestroy=function(){this.close(),this.deRegister(this.viewParent),e.prototype.ngOnDestroy.call(this)},t}(o.BaseComponent);P.decorators=[{type:t.Injectable}],P.ctorParameters=function(){return[{type:t.Injector},{type:void 0},{type:n.ModalOptions}]};var _="21px",O=function(){function e(e,t){this.dialogRef=t,this.iconwidth=_,this.iconheight=_,this.closable=!0,i.addClass(e.nativeElement,"app-dialog-header modal-header")}return Object.defineProperty(e.prototype,"isClosable",{get:function(){return i.toBoolean(this.closable)},enumerable:!1,configurable:!0}),e.prototype.closeDialog=function(){this.dialogRef.close()},e}();O.decorators=[{type:t.Component,args:[{selector:"div[wmDialogHeader]",template:'<button *ngIf="isClosable" aria-label="Close" class="app-dialog-close close" (click)="closeDialog();" title="Close">\n <span aria-hidden="true">×</span>\n</button>\n<h4 class="app-dialog-title modal-title">\n <i [ngClass]="iconclass" [ngStyle]="{width: iconwidth, height: iconheight, margin: iconmargin}" *ngIf="iconclass && !iconurl"></i>\n <img data-identifier="img" [src]="iconurl | image" *ngIf="iconurl" [ngStyle]="{width:iconwidth, height:iconheight, margin:iconmargin}"/>\n <span class="dialog-heading" [textContent]="heading" [id]="titleid"></span>\n <span class="dialog-sub-heading" *ngIf="subheading" [title]="subheading" [textContent]="subheading"></span>\n</h4>\n'}]}],O.ctorParameters=function(){return[{type:t.ElementRef},{type:P,decorators:[{type:t.Inject,args:[o.DialogRef]}]}]},O.propDecorators={iconwidth:[{type:t.Input}],iconheight:[{type:t.Input}],iconmargin:[{type:t.Input}],iconclass:[{type:t.Input}],iconurl:[{type:t.Input}],closable:[{type:t.Input}],heading:[{type:t.Input}],subheading:[{type:t.Input}],titleid:[{type:t.Input}]};var S=[l,f,O],E=function(){};E.decorators=[{type:t.NgModule,args:[{imports:[s.CommonModule,n.ModalModule,o.WmComponentsModule],declarations:d([],u(S)),exports:d([],u(S)),entryComponents:[]}]}],e.BaseDialog=P,e.DialogBodyDirective=l,e.DialogFooterDirective=f,e.DialogHeaderComponent=O,e.DialogModule=E,e["\u02750"]=y,e["\u02751"]=w,e["\u0275a"]=h,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@wm/components/base"),require("@wm/components/dialogs"),require("@wm/components/input"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/dialogs/alert-dialog",["exports","@angular/core","@angular/common","@wm/components/base","@wm/components/dialogs","@wm/components/input","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.dialogs=e.wm.components.dialogs||{},e.wm.components.dialogs.alertdialog={}),e.ng.core,e.ng.common,e.wm.components.base,e.wm.components.dialogs,e.wm.components.input,e.wm.core)}(this,(function(e,t,n,i,o,r,a){"use strict";
|
|
325
325
|
/*! *****************************************************************************
|
|
326
326
|
Copyright (c) Microsoft Corporation.
|
|
327
327
|
|