@porscheinformatik/material-addons 10.1.7 → 10.2.1
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.
- package/bundles/porscheinformatik-material-addons.umd.js +395 -51
- package/bundles/porscheinformatik-material-addons.umd.js.map +1 -1
- package/bundles/porscheinformatik-material-addons.umd.min.js +2 -2
- package/bundles/porscheinformatik-material-addons.umd.min.js.map +1 -1
- package/esm2015/lib/card/card.component.js +19 -5
- package/esm2015/lib/material-addons.module.js +3 -3
- package/esm2015/lib/numeric-field/numeric-field.directive.js +4 -2
- package/esm2015/lib/quick-list/base-quick-list.component.js +89 -0
- package/esm2015/lib/quick-list/quick-list-compact/quick-list-compact.component.js +18 -0
- package/esm2015/lib/quick-list/quick-list.component.js +6 -77
- package/esm2015/lib/quick-list/quick-list.module.js +6 -4
- package/esm2015/lib/stepper/mad-stepper-animation.js +13 -0
- package/esm2015/lib/stepper/step-header/step-header.component.js +75 -0
- package/esm2015/lib/stepper/stepper.component.js +167 -0
- package/esm2015/lib/stepper/stepper.module.js +18 -0
- package/esm2015/porscheinformatik-material-addons.js +4 -2
- package/esm2015/public-api.js +5 -1
- package/fesm2015/porscheinformatik-material-addons.js +329 -24
- package/fesm2015/porscheinformatik-material-addons.js.map +1 -1
- package/lib/card/card.component.d.ts +4 -0
- package/lib/quick-list/base-quick-list.component.d.ts +29 -0
- package/lib/quick-list/quick-list-compact/quick-list-compact.component.d.ts +6 -0
- package/lib/quick-list/quick-list.component.d.ts +4 -27
- package/lib/stepper/mad-stepper-animation.d.ts +7 -0
- package/lib/stepper/step-header/step-header.component.d.ts +23 -0
- package/lib/stepper/stepper.component.d.ts +47 -0
- package/lib/stepper/stepper.module.d.ts +2 -0
- package/package.json +6 -6
- package/porscheinformatik-material-addons.d.ts +3 -1
- package/porscheinformatik-material-addons.metadata.json +1 -1
- package/public-api.d.ts +4 -0
- package/themes/common/styles.scss +17 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@angular/material/button"),require("@angular/material/icon"),require("@angular/material/tooltip"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/forms"),require("@angular/platform-browser"),require("@ngx-translate/core"),require("rxjs"),require("@angular/cdk/layout"),require("rxjs/operators"),require("@angular/material/menu"),require("@angular/material/toolbar"),require("@angular/material/badge"),require("@angular/material/card"),require("@angular/animations"),require("@angular/material/table"),require("@angular/material/sort"),require("@angular/material/paginator")):"function"==typeof define&&define.amd?define("@porscheinformatik/material-addons",["exports","@angular/core","@angular/common","@angular/router","@angular/material/button","@angular/material/icon","@angular/material/tooltip","@angular/material/form-field","@angular/material/input","@angular/forms","@angular/platform-browser","@ngx-translate/core","rxjs","@angular/cdk/layout","rxjs/operators","@angular/material/menu","@angular/material/toolbar","@angular/material/badge","@angular/material/card","@angular/animations","@angular/material/table","@angular/material/sort","@angular/material/paginator"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).porscheinformatik=t.porscheinformatik||{},t.porscheinformatik["material-addons"]={}),t.ng.core,t.ng.common,t.ng.router,t.ng.material.button,t.ng.material.icon,t.ng.material.tooltip,t.ng.material.formField,t.ng.material.input,t.ng.forms,t.ng.platformBrowser,t.i2,t.rxjs,t.ng.cdk.layout,t.rxjs.operators,t.ng.material.menu,t.ng.material.toolbar,t.ng.material.badge,t.ng.material.card,t.ng.animations,t.ng.material.table,t.ng.material.sort,t.ng.material.paginator)}(this,(function(t,e,n,i,o,a,r,l,s,u,
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@angular/material/button"),require("@angular/material/icon"),require("@angular/material/tooltip"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/forms"),require("@angular/platform-browser"),require("@ngx-translate/core"),require("rxjs"),require("@angular/cdk/layout"),require("rxjs/operators"),require("@angular/material/menu"),require("@angular/material/toolbar"),require("@angular/material/badge"),require("@angular/material/card"),require("@angular/animations"),require("@angular/material/table"),require("@angular/material/sort"),require("@angular/material/paginator"),require("@angular/cdk/bidi"),require("@angular/cdk/stepper"),require("@angular/cdk/a11y"),require("@angular/flex-layout")):"function"==typeof define&&define.amd?define("@porscheinformatik/material-addons",["exports","@angular/core","@angular/common","@angular/router","@angular/material/button","@angular/material/icon","@angular/material/tooltip","@angular/material/form-field","@angular/material/input","@angular/forms","@angular/platform-browser","@ngx-translate/core","rxjs","@angular/cdk/layout","rxjs/operators","@angular/material/menu","@angular/material/toolbar","@angular/material/badge","@angular/material/card","@angular/animations","@angular/material/table","@angular/material/sort","@angular/material/paginator","@angular/cdk/bidi","@angular/cdk/stepper","@angular/cdk/a11y","@angular/flex-layout"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).porscheinformatik=t.porscheinformatik||{},t.porscheinformatik["material-addons"]={}),t.ng.core,t.ng.common,t.ng.router,t.ng.material.button,t.ng.material.icon,t.ng.material.tooltip,t.ng.material.formField,t.ng.material.input,t.ng.forms,t.ng.platformBrowser,t.i2,t.rxjs,t.ng.cdk.layout,t.rxjs.operators,t.ng.material.menu,t.ng.material.toolbar,t.ng.material.badge,t.ng.material.card,t.ng.animations,t.ng.material.table,t.ng.material.sort,t.ng.material.paginator,t.ng.cdk.bidi,t.ng.cdk.stepper,t.ng.cdk.a11y,t.ng.flexLayout)}(this,(function(t,e,n,i,o,a,r,l,s,c,u,p,d,m,h,g,f,y,b,v,I,x,S,E,A,C,k){"use strict";var w=function(){this.icon="add",this.liftHigher=!0,this.liftHigher2=!1};w.decorators=[{type:e.Component,args:[{selector:"mad-material-action-button",template:'<div class="material-action-button {{ liftHigher ? \'lift-higher\' : \'\' }} {{ liftHigher2 ? \'lift-higher-2\' : \'\' }}">\n <a [routerLink]="routerLink">\n <button [id]="id" mat-fab [matTooltipPosition]="\'left\'" [matTooltip]="actionName" color="primary" *ngIf="!liftHigher2">\n <mat-icon>{{ icon }}</mat-icon>\n </button>\n <button [id]="id" mat-mini-fab [matTooltipPosition]="\'left\'" [matTooltip]="actionName" color="accent" *ngIf="liftHigher2">\n <mat-icon>{{ icon }}</mat-icon>\n </button>\n </a>\n</div>\n',styles:[".material-action-button{align-items:center;bottom:20px;display:flex;flex-direction:column-reverse;position:fixed;right:20px;z-index:100}.lift-higher{bottom:61px}.lift-higher-2{bottom:121px;right:28px}"]}]}],w.propDecorators={actionName:[{type:e.Input}],id:[{type:e.Input}],icon:[{type:e.Input}],routerLink:[{type:e.Input}],liftHigher:[{type:e.Input}],liftHigher2:[{type:e.Input}]};var M=function(){};M.decorators=[{type:e.NgModule,args:[{declarations:[w],imports:[n.CommonModule,i.RouterModule,o.MatButtonModule,a.MatIconModule,r.MatTooltipModule],exports:[w]}]}];
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var M=function(t,e){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function w(t,e){function n(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function T(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function k(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,a=n.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}Object.create;var C=function(){function t(){this.disableClick=function(t){return t.stopPropagation()}}return t.prototype.ngOnChanges=function(t){this.disableButton()},t.prototype.disableButton=function(){this.disabled?this.button.nativeElement.addEventListener("click",this.disableClick):this.button.nativeElement.removeEventListener("click",this.disableClick)},Object.defineProperty(t.prototype,"pointerEvent",{get:function(){return this.disabled?"none":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.disabled?"0.35":"1"},enumerable:!1,configurable:!0}),t}();C.propDecorators={pointerEvent:[{type:e.HostBinding,args:["style.pointer-events"]}],opacity:[{type:e.HostBinding,args:["style.opacity"]}]};var P=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return w(e,t),e}(C);P.decorators=[{type:e.Component,args:[{selector:"mad-primary-button",template:'<button mat-raised-button color="primary" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],P.ctorParameters=function(){return[]},P.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var O=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return w(e,t),e}(C);O.decorators=[{type:e.Component,args:[{selector:"mad-outline-button",template:'<button mat-stroked-button color="primary" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],O.ctorParameters=function(){return[]},O.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var D=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return w(e,t),e}(C);D.decorators=[{type:e.Component,args:[{selector:"mad-link-button",template:'<button [title]="title" [type]="type" color="primary" #btn mat-button>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],D.ctorParameters=function(){return[]},D.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var F=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return w(e,t),e}(C);F.decorators=[{type:e.Component,args:[{selector:"mad-icon-button",template:'<button mat-icon-button color="primary" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],F.ctorParameters=function(){return[]},F.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var N=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return w(e,t),e}(C);N.decorators=[{type:e.Component,args:[{selector:"mad-danger-button",template:'<button mat-raised-button color="warn" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],N.ctorParameters=function(){return[]},N.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var L=function(){};L.decorators=[{type:e.NgModule,args:[{declarations:[P,O,D,N,F],imports:[n.CommonModule,i.RouterModule,o.MatButtonModule,a.MatIconModule,r.MatTooltipModule],exports:[P,O,D,N,F]}]}];var V=function(){function t(t,e){this.changeDetector=t,this.elementRef=e,this.readonly=!0,this.textAlign="left",this.formatNumber=!1,this.decimalPlaces=2,this.roundValue=!1,this.autofillDecimals=!1,this.unit=null,this.unitPosition="left",this.errorMessage=null,this.multiline=!1,this.rows=3,this.shrinkIfEmpty=!1,this.toolTipForInputEnabled=!1}return t.prototype.ngOnInit=function(){this.doRendering()},t.prototype.ngAfterViewInit=function(){this.setReadonlyFieldStyle(),this.doRendering()},t.prototype.ngAfterViewChecked=function(){this.setReadonlyFieldStyle(),this.setTooltipForOverflownField()},t.prototype.ngOnChanges=function(t){this.doRendering()},t.prototype.getLabel=function(){return this.label||this.extractLabel(),this.label},t.prototype.doRendering=function(){this.originalContent&&(this.readonly?this.changeDetector.detectChanges():this.correctWidth())},t.prototype.extractLabel=function(){if(!this.originalContent||!this.originalContent.nativeElement)return null;var t=this.originalContent.nativeElement.querySelector("mat-label");this.label=t?t.innerHTML:"mat-label is missing!"},t.prototype.correctWidth=function(){var t=this.originalContent.nativeElement.querySelector("mat-form-field");t&&t.setAttribute("style","width:100%")},t.prototype.setReadonlyFieldStyle=function(){var t,e,n=null===(e=null===(t=this.readOnlyContentWrapper)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("input");if(n){var i=this.getTextOverFlowStyleValue();i&&n.setAttribute("style","text-overflow: "+i)}},t.prototype.getTextOverFlowStyleValue=function(){var t,e,n=null===(e=null===(t=this.elementRef)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.style.textOverflow;return n||"ellipsis"},t.prototype.setTooltipForOverflownField=function(){var t,e;if(this.isEllipsisForTextOverflowEnabled()){var n=null===(e=null===(t=this.readOnlyContentWrapper)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("input");n&&(this.toolTipForInputEnabled=this.isTextOverflown(n),this.toolTipForInputEnabled&&(this.toolTipText=this.calculateToolTipText()),this.changeDetector.detectChanges())}},t.prototype.isEllipsisForTextOverflowEnabled=function(){return"ellipsis"===this.getTextOverFlowStyleValue()},t.prototype.isTextOverflown=function(t){return!!t&&t.offsetWidth<t.scrollWidth},t.prototype.calculateToolTipText=function(){return this.unit?"left"===this.unitPosition?this.unit+" "+this.value:this.value+" "+this.unit:this.value},t}();V.decorators=[{type:e.Component,args:[{selector:"mad-readonly-form-field-wrapper",template:'<div #contentWrapper [hidden]="readonly">\n <ng-content></ng-content>\n</div>\n\n<div #readOnlyContentWrapper>\n <ng-container *ngIf="!!readonly">\n <mad-readonly-form-field\n [label]="getLabel()"\n [value]="value"\n [textAlign]="textAlign"\n [formatNumber]="formatNumber"\n [decimalPlaces]="decimalPlaces"\n [roundDisplayValue]="roundValue"\n [autofillDecimals]="autofillDecimals"\n [unit]="unit"\n [unitPosition]="unitPosition"\n [errorMessage]="errorMessage"\n [multiline]="multiline"\n [rows]="rows"\n [shrinkIfEmpty]="shrinkIfEmpty"\n [id]="id"\n matTooltip="{{toolTipText}}"\n matTooltipPosition="right"\n matTooltipClass="custom-tooltip"\n matTooltipDisabled="{{!toolTipForInputEnabled}}">\n </mad-readonly-form-field>\n </ng-container>\n</div>\n',styles:["div,mat-form-field{width:inherit}::ng-deep .custom-tooltip{font-size:14px!important;white-space:normal!important;word-break:break-all!important}"]}]}],V.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef}]},V.propDecorators={readonly:[{type:e.Input}],value:[{type:e.Input,args:["value"]}],originalContent:[{type:e.ViewChild,args:["contentWrapper",{static:!1}]}],readOnlyContentWrapper:[{type:e.ViewChild,args:["readOnlyContentWrapper",{static:!1}]}],textAlign:[{type:e.Input,args:["textAlign"]}],formatNumber:[{type:e.Input,args:["formatNumber"]}],decimalPlaces:[{type:e.Input,args:["decimalPlaces"]}],roundValue:[{type:e.Input,args:["roundDisplayValue"]}],autofillDecimals:[{type:e.Input,args:["autofillDecimals"]}],unit:[{type:e.Input,args:["unit"]}],unitPosition:[{type:e.Input,args:["unitPosition"]}],errorMessage:[{type:e.Input,args:["errorMessage"]}],id:[{type:e.Input}],multiline:[{type:e.Input}],rows:[{type:e.Input}],shrinkIfEmpty:[{type:e.Input}]};var R=function(){function t(e){this.allowedKeys=[];var n=1.1.toLocaleString(e).charAt(1);this.decimalSeparator=","===n?",":".",this.groupingSeparator=","===n?".":",",this.allowedKeys=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(k(arguments[e]));return t}(t.NUMBERS,[t.NEGATIVE,this.decimalSeparator])}return t.valueIsSet=function(t){return null!=t&&("string"!=typeof t||0!==t.length)},t.prototype.format=function(e,n){return t.valueIsSet(e)?this.formatNumber(e.toString().replace(new RegExp("[.]","g"),this.decimalSeparator),n):""},t.prototype.formatNumber=function(e,n){for(var i=this.valueOrDefault(null==n?void 0:n.autofillDecimals,t.DEFAULT_AUTOFILL_DECIMALS),o=this.valueOrDefault(null==n?void 0:n.decimalPlaces,t.DEFAULT_DECIMAL_PLACES),a=this.valueOrDefault(null==n?void 0:n.finalFormatting,t.DEFAULT_FINAL_FORMATTING),r=this.strip(e,{decimalPlaces:o,removeLeadingZeros:a}),l=r.indexOf(this.decimalSeparator),s=r.startsWith(t.NEGATIVE),u=l>-1?l:r.length;u>(s?4:3);)u-=3,r=r.substring(0,u)+this.groupingSeparator+r.substring(u,r.length);if(a&&o>0&&r){var c=r.indexOf(this.decimalSeparator);if(i){-1===c&&(c=r.length,r+=this.decimalSeparator),c=(r=this.addMissingLeadingZero(r,c)).indexOf(this.decimalSeparator);for(var p=r.length-c-1,d=0;d<o-p;d++)r+="0"}else r=this.addMissingLeadingZero(r,c)}return r},t.prototype.strip=function(e,n){var i,o,a=this.valueOrDefault(null==n?void 0:n.decimalPlaces,t.DEFAULT_DECIMAL_PLACES),r=this.valueOrDefault(null==n?void 0:n.removeLeadingZeros,t.DEFAULT_REMOVE_LEADING_ZEROS),l="",s=-1,u=-1,c=0;try{for(var p=T(e),d=p.next();!d.done;d=p.next()){var m=d.value;if(u++,this.allowedKeys.includes(m)){if(m===this.decimalSeparator){if(0===a)break;if(s>-1)continue;s=u}if("0"===m&&r&&(0===l.length&&u+1!==e.length||l===t.NEGATIVE)){c++;continue}if(m===t.NEGATIVE&&u>0)break;if(s>-1&&l.length+c>s+a)break;l+=m}else{if(m!==this.groupingSeparator)break;-1===s&&c++}}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}return l},t.prototype.addMissingLeadingZero=function(e,n){var i=e.startsWith(t.NEGATIVE);return 0===n&&(e="0"+e),1===n&&i&&(e=e[0]+"0"+e.substring(1,e.length)),e},t.prototype.valueOrDefault=function(e,n){return t.valueIsSet(e)?e:n},t}();R.NEGATIVE="-",R.NUMBERS=["0","1","2","3","4","5","6","7","8","9"],R.DEFAULT_FINAL_FORMATTING=!0,R.DEFAULT_DECIMAL_PLACES=2,R.DEFAULT_AUTOFILL_DECIMALS=!1,R.DEFAULT_REMOVE_LEADING_ZEROS=!1,R.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new R(e.ɵɵinject(e.LOCALE_ID))},token:R,providedIn:"any"}),R.decorators=[{type:e.Injectable,args:[{providedIn:"any"}]}],R.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var _=function(){function t(t,e,n){var i=this;this.changeDetector=t,this.renderer=e,this.numberFormatService=n,this.textAlign="left",this.formatNumber=!1,this.decimalPlaces=2,this.roundValue=!1,this.autofillDecimals=!1,this.unit=null,this.unitPosition="left",this.errorMessage=null,this.multiline=!1,this.rows=3,this.shrinkIfEmpty=!1,this.errorMatcher={isErrorState:function(){return!!i.errorMessage}}}return t.prototype.ngOnChanges=function(t){R.valueIsSet(this.value)?this.formatNumber&&"number"==typeof this.value&&(this.value=this.numberFormatService.format(this.value,{decimalPlaces:this.decimalPlaces,finalFormatting:!0,autofillDecimals:this.autofillDecimals})):(this.value="-",this.shrinkIfEmpty&&(this.rows=1)),this.changeDetector.detectChanges()},t.prototype.ngAfterViewChecked=function(){this.injectUnitSymbol()},t.prototype.injectUnitSymbol=function(){if(this.unit&&!this.unitSpan&&0!==this.inputEl.nativeElement.offsetWidth){var t=this.inputEl.nativeElement.parentNode.parentNode;this.unitSpan=this.renderer.createElement("span"),"left"===this.unitPosition?(this.renderer.setAttribute(this.unitSpan,"matPrefix",""),this.renderer.setStyle(this.unitSpan,"padding-right","5px"),this.renderer.insertBefore(t,this.unitSpan,t.children[0])):(this.renderer.setAttribute(this.unitSpan,"matSuffix",""),this.renderer.setStyle(this.unitSpan,"padding-left","5px"),this.renderer.appendChild(t,this.unitSpan))}if(this.unitSpan&&"left"===this.textAlign&&"right"===this.unitPosition){var e=window.getComputedStyle(this.inputEl.nativeElement.parentElement,null);this.unitSpan.style.position="absolute",this.unitSpan.style.marginTop=e.getPropertyValue("border-top-width"),this.unitSpan.style.paddingTop=e.getPropertyValue("padding-top"),this.unitSpan.style.paddingBottom=e.getPropertyValue("padding-bottom"),this.textSpan||(this.textSpan=document.createElement("span"),document.body.appendChild(this.textSpan),this.textSpan.style.font=e.getPropertyValue("font"),this.textSpan.style.fontSize=e.getPropertyValue("font-size"),this.textSpan.style.height="auto",this.textSpan.style.width="auto",this.textSpan.style.position="absolute",this.textSpan.style.top="0",this.textSpan.style.whiteSpace="no-wrap",this.textSpan.style.visibility="hidden"),this.textSpan.innerHTML=this.value;var n=Math.min(this.inputEl.nativeElement.clientWidth-this.unitSpan.clientWidth,Math.ceil(this.textSpan.clientWidth));this.unitSpan.style.left=n+"px"}this.unitSpan&&(this.unitSpan.textContent=this.unit)},t}();_.decorators=[{type:e.Component,args:[{selector:"mad-readonly-form-field",template:'<mat-form-field class="form-group" appearance="none">\n <mat-label>{{ label }}</mat-label>\n <input\n *ngIf="!multiline"\n [ngModel]="value"\n [ngClass]="\'text-\' + textAlign"\n [errorStateMatcher]="errorMatcher"\n [id]="id"\n readonly\n matInput\n #inputEl\n />\n\n <textarea\n *ngIf="multiline"\n [rows]="rows"\n [ngModel]="value"\n class="multiline"\n [errorStateMatcher]="errorMatcher"\n [id]="id"\n readonly\n matInput\n ></textarea>\n <mat-error>{{ errorMessage }}</mat-error>\n</mat-form-field>\n',styles:["mat-form-field{width:100%;width:-moz-available;width:-webkit-fill-available;width:stretch}mat-label{line-height:1.4}span[matPrefix]{padding-right:5px}span[matSuffix]{padding-left:5px}.text-left{text-align:left}.text-right{text-align:right}.multiline{resize:none}"]}]}],_.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.Renderer2},{type:R}]},_.propDecorators={value:[{type:e.Input,args:["value"]}],label:[{type:e.Input,args:["label"]}],textAlign:[{type:e.Input,args:["textAlign"]}],formatNumber:[{type:e.Input,args:["formatNumber"]}],decimalPlaces:[{type:e.Input,args:["decimalPlaces"]}],roundValue:[{type:e.Input,args:["roundDisplayValue"]}],autofillDecimals:[{type:e.Input,args:["autofillDecimals"]}],unit:[{type:e.Input,args:["unit"]}],unitPosition:[{type:e.Input,args:["unitPosition"]}],errorMessage:[{type:e.Input,args:["errorMessage"]}],multiline:[{type:e.Input}],rows:[{type:e.Input}],id:[{type:e.Input}],shrinkIfEmpty:[{type:e.Input}],inputEl:[{type:e.ViewChild,args:["inputEl"]}]};var B=function(){};B.decorators=[{type:e.NgModule,args:[{declarations:[_,V],imports:[n.CommonModule,i.RouterModule,l.MatFormFieldModule,s.MatInputModule,u.FormsModule,r.MatTooltipModule],exports:[_,V]}]}];var j=function(){function t(t,e){var n=this;this.router=t,this.translate=e,this.mainActions=[],this.toolbarActions=[],this.liftFabButtonHigher=!1,this.routerSubscription=this.router.events.subscribe((function(e){e instanceof i.NavigationEnd&&(n.currentUrl!==e.urlAfterRedirects&&(n.clearToolbarActions(),n.clearMainActions(),delete n.backAction,delete n.dataTitle),n.currentUrl=t.url)}))}return t.prototype.ngOnDestroy=function(){this.routerSubscription&&this.routerSubscription.unsubscribe()},t.prototype.getToolbarActions=function(){return this.toolbarActions},t.prototype.addToolbarAction=function(t){var e=this;this.translate.get(t.i18nActionKey).toPromise().then((function(n){t.actionName=n,e.toolbarActions.push(t)}))},Object.defineProperty(t.prototype,"toolbarTitle",{get:function(){return this.title},set:function(t){this.title=t},enumerable:!1,configurable:!0}),t.prototype.setDataTitle=function(t){this.dataTitle=t},t.prototype.getDataTitle=function(){return this.dataTitle},t.prototype.clearToolbarActions=function(){this.toolbarActions=[]},t.prototype.getMainActions=function(){return this.mainActions},t.prototype.getBackAction=function(){return this.backAction},t.prototype.addMainAction=function(t){var e=this;this.translate.get(t.i18nActionKey).toPromise().then((function(n){t.actionName=n,e.mainActions.push(t)}))},t.prototype.addBackAction=function(t,e){void 0===e&&(e=!1),this.backAction={matIcon:"keyboard_backspace",i18nActionKey:""},e?this.backAction.href=t:this.backAction.routerLink=t},t.prototype.addSimpleBackButton=function(t){void 0===t&&(t=!1),this.getBackAction()&&!t||(this.backAction={matIcon:"keyboard_backspace",i18nActionKey:"",action:function(){window.history.back()}})},t.prototype.clearMainActions=function(){this.mainActions=[]},t}();j.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new j(e.ɵɵinject(i.Router),e.ɵɵinject(p.TranslateService))},token:j,providedIn:"root"}),j.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],j.ctorParameters=function(){return[{type:i.Router},{type:p.TranslateService}]};var q=function(){function t(t,e,n){this.breakpointObserver=t,this.titleService=e,this.toolbarService=n,this.isHandset$=this.breakpointObserver.observe([m.Breakpoints.Handset]).pipe(h.map((function(t){return t.matches})))}return t.prototype.getTitle=function(){var t=this.toolbarService.getDataTitle(),e=this.toolbarService.toolbarTitle,n=!e||e.length<=0?this.titleService.getTitle():e;return!t||t.length<=0?n:n+": "+t},t.prototype.getToolbarActions=function(){return this.toolbarService.getToolbarActions()},t.prototype.getMainActions=function(){return this.toolbarService.getMainActions()},t.prototype.hasPermission=function(t){return t&&t.showIf?t.showIf:d.of(!0)},t.prototype.isRouterLink=function(){return this.toolbarService.getBackAction()&&!!this.toolbarService.getBackAction().routerLink},t.prototype.isAbsoluteLink=function(){return this.toolbarService.getBackAction()&&!!this.toolbarService.getBackAction().href},t.prototype.isAction=function(){return this.toolbarService.getBackAction()&&!!this.toolbarService.getBackAction().action},t.prototype.getBackAction=function(){return this.toolbarService.getBackAction()},t}();q.decorators=[{type:e.Component,args:[{selector:"mad-toolbar",template:'<mat-toolbar class="content-toolbar">\n <a [routerLink]="getBackAction().routerLink" *ngIf="isRouterLink()">\n <button [id]="\'go-back\'" color="primary" mat-icon-button class="go-back-button">\n <mat-icon>{{ getBackAction().matIcon }}</mat-icon>\n </button>\n </a>\n <a [href]="getBackAction().href" *ngIf="isAbsoluteLink()">\n <button [id]="\'go-back\'" class="go-back-button" color="primary" mat-icon-button>\n <mat-icon>{{ getBackAction().matIcon }}</mat-icon>\n </button>\n </a>\n <a (click)="getBackAction().action()" *ngIf="isAction()">\n <button [id]="\'go-back\'" color="primary" mat-icon-button class="go-back-button">\n <mat-icon>{{ getBackAction().matIcon }}</mat-icon>\n </button>\n </a>\n\n <span class="toolbar-title">{{ getTitle() }}</span>\n\n <ng-container *ngFor="let mainAction of getMainActions(); let i = index">\n <ng-container *ngIf="hasPermission(mainAction) | async">\n <div *ngIf="!(isHandset$ | async)">\n <a [routerLink]="mainAction.routerLink">\n <mad-primary-button [id]="mainAction.matIcon" style="margin-left: 56px">\n <mat-icon>{{ mainAction.matIcon }}</mat-icon>\n {{ mainAction.actionName }}\n </mad-primary-button>\n </a>\n </div>\n <div *ngIf="isHandset$ | async">\n <mad-material-action-button\n [actionName]="mainAction.actionName"\n [icon]="mainAction.matIcon"\n [liftHigher]="mainAction.liftHigherOnMobile"\n [liftHigher2]="i > 0"\n [routerLink]="mainAction.routerLink"\n [id]="mainAction.matIcon"\n >\n </mad-material-action-button>\n </div>\n </ng-container>\n </ng-container>\n\n <div class="right-aligned no-print">\n <ng-container *ngFor="let action of getToolbarActions(); let i = index">\n <ng-container *ngIf="hasPermission(action) | async">\n <mad-icon-button\n (click)="action.action()"\n *ngIf="!(isHandset$ | async) || i < (getToolbarActions().length > 2 ? 1 : 2)"\n [id]="action.matIcon"\n [matTooltip]="action.actionName"\n type="button"\n >\n <mat-icon\n [matBadgeColor]="action.badge ? action.badge.color : \'primary\'"\n matBadgePosition="below after"\n [matBadge]="action.badge ? action.badge.value : null"\n >{{ action.matIcon }}</mat-icon\n >\n </mad-icon-button>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf="isHandset$ | async">\n <ng-container *ngIf="getToolbarActions().length > 2">\n <button mat-icon-button type="button" [matMenuTriggerFor]="burgerMenu" matTooltip="More">\n <mat-icon>more_vert</mat-icon>\n </button>\n <mat-menu #burgerMenu="matMenu">\n <ng-container *ngFor="let action of getToolbarActions(); let i = index">\n <ng-container *ngIf="hasPermission(action) | async">\n <button *ngIf="i >= 1" mat-menu-item (click)="action.action()">\n <mat-icon\n [matBadgeColor]="action.badge ? action.badge.color : \'primary\'"\n [matBadge]="action.badge ? action.badge.value : null"\n matBadgePosition="below after"\n >{{ action.matIcon }}</mat-icon>\n {{ action.actionName }}\n </button>\n </ng-container>\n </ng-container>\n </mat-menu>\n </ng-container>\n </ng-container>\n </div>\n</mat-toolbar>\n',styles:["mat-toolbar{background:#fff}.content-toolbar{border-bottom:1px solid #dcdcdc;height:57px}.right-aligned{margin-left:auto;margin-right:0;overflow:hidden}.go-back-button{padding-left:0;padding-right:0}.toolbar-title{margin-right:72px}::ng-deep.mat-badge-content{bottom:-7px!important;right:-7px!important}"]}]}],q.ctorParameters=function(){return[{type:m.BreakpointObserver},{type:c.Title},{type:j}]};var H=function(){};H.decorators=[{type:e.NgModule,args:[{declarations:[q],imports:[n.CommonModule,i.RouterModule,g.MatMenuModule,o.MatButtonModule,f.MatToolbarModule,a.MatIconModule,E,r.MatTooltipModule,L,y.MatBadgeModule],exports:[q]}]}];var U=new Set([224,91,93]),W=function(){function t(t,n,i){this.renderer=t,this.inputEl=n,this.numberFormatService=i,this.textAlign="right",this.decimalPlaces=2,this.roundValue=!1,this.autofillDecimals=!1,this.unit=null,this.unitPosition="right",this.numericValueChanged=new e.EventEmitter,this.displayValue="",this.originalValue=NaN,this.onChange=function(){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"numericValue",{set:function(t){this._numericValue===t||isNaN(this._numericValue)&&(isNaN(t)||null===t)||(this.originalValue=t,this._numericValue=this.roundOrTruncate(t),this.handleInputChanged())},enumerable:!1,configurable:!0}),t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(){},t.prototype.writeValue=function(t){this.numericValue=t},t.prototype.ngOnInit=function(){var t=this;this.decimalPlaces=parseInt(this.decimalPlaces.toString(),10),this.inputChangeListener=this.renderer.listen(this.inputEl.nativeElement,"blur",(function(e){t.formatInput(e.target,!0)})),this.keyupListener=this.renderer.listen(this.inputEl.nativeElement,"keyup",(function(e){(8===e.keyCode||e.keyCode>=46&&!U.has(e.keyCode))&&t.formatInput(e.target,!1)})),this.keydownListener=this.renderer.listen(this.inputEl.nativeElement,"keydown",(function(e){var n=e.target.value;if(!(t.numberFormatService.allowedKeys.includes(e.key)||e.keyCode<=46&&e.keyCode>0&&32!==e.keyCode||e.metaKey||e.ctrlKey||e.altKey))return!1;var i=n.indexOf(R.NEGATIVE);if(e.key===R.NEGATIVE&&(e.target.selectionStart>0||i>-1)&&(e.target.selectionStart===e.target.selectionEnd||!(i>=e.target.selectionStart&&i<=e.target.selectionEnd)))return!1;var o=n.indexOf(t.numberFormatService.decimalSeparator);if(e.key===t.numberFormatService.decimalSeparator&&(o>-1||0===t.decimalPlaces)&&(e.target.selectionStart===e.target.selectionEnd||!(o>=e.target.selectionStart&&o<=e.target.selectionEnd)))return!1;if(R.NUMBERS.includes(e.key)&&o>-1&&o<e.target.selectionStart&&e.target.selectionStart===e.target.selectionEnd&&n.length>o+t.decimalPlaces)return!1;var a=e.target.selectionStart;if(a===e.target.selectionEnd){if(8===e.keyCode&&n.substr(a-1,1)===t.numberFormatService.groupingSeparator)return e.target.value=n.substring(0,a-2)+n.substring(a-1,n.length),e.target.selectionStart=e.target.selectionEnd=a-1,!1;if(46===e.keyCode&&n.substr(a,1)===t.numberFormatService.groupingSeparator)return e.target.value=n.substring(0,a+1)+n.substring(a+2,n.length),e.target.selectionStart=e.target.selectionEnd=a+1,!1}return t.originalValue=NaN,!0}))},t.prototype.ngOnDestroy=function(){this.detachListener()},t.prototype.ngAfterViewChecked=function(){this.injectUnitSymbol()},t.prototype.handleInputChanged=function(){var t=this;setTimeout((function(){t.updateInput(t.numberFormatService.format(t._numericValue,{decimalPlaces:t.decimalPlaces,finalFormatting:!1,autofillDecimals:t.autofillDecimals}))}),1)},t.prototype.formatInput=function(t,e){var n=t.selectionStart,i=t.value.length,o=this.displayValue!==t.value,a=this.numberFormatService.formatNumber(t.value,{decimalPlaces:this.decimalPlaces,finalFormatting:e,autofillDecimals:this.autofillDecimals});if("left"===this.textAlign&&"right"===this.unitPosition){var r=window.getComputedStyle(this.inputEl.nativeElement.parentElement,null);this.unitSpan.style.position="absolute",this.unitSpan.style.marginTop=r.getPropertyValue("border-top-width"),this.unitSpan.style.paddingTop=r.getPropertyValue("padding-top"),this.unitSpan.style.paddingBottom=r.getPropertyValue("padding-bottom"),this.textSpan||(this.textSpan=document.createElement("span"),document.body.appendChild(this.textSpan),this.textSpan.style.font=r.getPropertyValue("font"),this.textSpan.style.fontSize=r.getPropertyValue("font-size"),this.textSpan.style.height="auto",this.textSpan.style.width="auto",this.textSpan.style.position="absolute",this.textSpan.style.top="0",this.textSpan.style.whiteSpace="no-wrap",this.textSpan.style.visibility="hidden"),this.textSpan.innerHTML=a;var l=Math.min(this.inputEl.nativeElement.clientWidth-this.unitSpan.clientWidth,Math.ceil(this.textSpan.clientWidth));this.unitSpan.style.left=l+"px"}this.updateInput(a),o&&(t.selectionStart=t.selectionEnd=Math.max(n+t.value.length-i,0))},t.prototype.updateInput=function(t){this.displayValue=t,this.inputEl.nativeElement.value=t,this._numericValue=parseFloat(this.numberFormatService.strip(t,{decimalPlaces:this.decimalPlaces}).replace(this.numberFormatService.decimalSeparator,".")),this._numericValue!==this.roundOrTruncate(this.originalValue)&&(this.originalValue=this._numericValue,this.numericValueChanged.emit(this._numericValue))},t.prototype.getValueForFormControl=function(){if(this.formatInput(this.inputEl.nativeElement,!1),!isNaN(this._numericValue))return this._numericValue},t.prototype.injectUnitSymbol=function(){if(this.unit&&!this.unitSpan&&0!==this.inputEl.nativeElement.offsetWidth){var t=this.inputEl.nativeElement.parentNode.parentNode;this.unitSpan=this.renderer.createElement("span"),"left"===this.unitPosition?(this.renderer.setAttribute(this.unitSpan,"matPrefix",""),this.renderer.setStyle(this.unitSpan,"padding-right","5px"),this.renderer.insertBefore(t,this.unitSpan,t.children[0])):(this.renderer.setAttribute(this.unitSpan,"matSuffix",""),this.renderer.setStyle(this.unitSpan,"padding-left","5px"),this.renderer.appendChild(t,this.unitSpan))}this.unitSpan&&"left"===this.textAlign&&"right"===this.unitPosition&&(R.valueIsSet(this.displayValue)?this.unitSpan.style.display="unset":this.unitSpan.style.display="none"),this.unitSpan&&(this.unitSpan.textContent=this.unit)},t.prototype.detachListener=function(){this.inputChangeListener&&(this.inputChangeListener(),delete this.inputChangeListener),this.keydownListener&&(this.keydownListener(),delete this.keydownListener),this.keyupListener&&(this.keyupListener(),delete this.keyupListener)},t.prototype.roundOrTruncate=function(t){var e=this.roundValue?"round":t<0?"ceil":"floor";return Math[e](t*Math.pow(10,this.decimalPlaces))/Math.pow(10,this.decimalPlaces)},t}();W.decorators=[{type:e.Directive,args:[{selector:"[madNumericField]",host:{"[class.text-right]":'textAlign === "right"',"(change)":"onChange(getValueForFormControl())","(input)":"onChange(getValueForFormControl())","(blur)":"onTouched()"},providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return W})),multi:!0}]}]}],W.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:R}]},W.propDecorators={textAlign:[{type:e.Input,args:["textAlign"]}],decimalPlaces:[{type:e.Input,args:["decimalPlaces"]}],roundValue:[{type:e.Input,args:["roundDisplayValue"]}],autofillDecimals:[{type:e.Input,args:["autofillDecimals"]}],unit:[{type:e.Input,args:["unit"]}],unitPosition:[{type:e.Input,args:["unitPosition"]}],numericValueChanged:[{type:e.Output,args:["numericValueChange"]}],numericValue:[{type:e.Input,args:["numericValue"]}]};var z=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[R]}},t}();z.decorators=[{type:e.NgModule,args:[{providers:[R],declarations:[W],exports:[W]}]}];var G=function(){function t(){this.cancelDisabled=!1,this.cancelText="NOT SET",this.readonly=!0,this.editText="NOT SET",this.expandable=!0,this.expanded=!0,this.saveDisabled=!1,this.saveText="NOT SET",this.editMode=!1,this.edit=new e.EventEmitter,this.cancel=new e.EventEmitter,this.save=new e.EventEmitter}return t.prototype.onCancel=function(){this.cancel.emit(void 0)},t.prototype.onEdit=function(){this.edit.emit(void 0),this.expanded=!0},t.prototype.onSave=function(){this.save.emit(void 0)},t.prototype.toggleCollapse=function(){this.expanded=!this.expanded},t}();G.decorators=[{type:e.Component,args:[{selector:"mad-card",template:'<mat-card>\n <mat-card-header>\n <mat-card-title>\n {{ title }}\n <mad-icon-button (click)="toggleCollapse()" *ngIf="expandable && !editMode">\n <mat-icon [@rotateIcon]="!expanded">keyboard_arrow_down</mat-icon>\n </mad-icon-button>\n </mat-card-title>\n <mad-icon-button [title]="editText" (click)="onEdit()" *ngIf="!readonly && !editMode">\n <mat-icon>create</mat-icon>\n </mad-icon-button>\n </mat-card-header>\n <mat-card-content [@collapseExpandAnimation] *ngIf="expanded">\n <ng-content></ng-content>\n </mat-card-content>\n <mat-card-actions *ngIf="!readonly && editMode">\n <mad-primary-button [title]="saveText" [disabled]="saveDisabled" (throttleClick)="onSave()" madThrottleClick>\n {{ saveText }}\n </mad-primary-button>\n <mad-outline-button [title]="cancelText" [disabled]="cancelDisabled" (click)="onCancel()">\n {{ cancelText }}\n </mad-outline-button>\n </mat-card-actions>\n</mat-card>\n',animations:[v.trigger("collapseExpandAnimation",[v.transition(":enter",[v.style({opacity:0,height:0,overflow:"hidden"}),v.animate("100ms",v.style({opacity:1,height:"*"}))]),v.transition(":leave",[v.style({opacity:1,height:"*",overflow:"hidden"}),v.animate("100ms",v.style({opacity:0,height:0}))])]),v.trigger("rotateIcon",[v.state("true",v.style({transform:"rotate(0)"})),v.state("false",v.style({transform:"rotate(180deg)"})),v.transition("true => false",v.animate("100ms ease-out")),v.transition("false => true",v.animate("100ms ease-in"))])],styles:["mat-card-header{display:flex;flex-direction:row}mat-card-header,mat-card-header mat-card-title{justify-content:space-between}mat-card-header mat-card-title:hover{background:unset!important}mat-card-header h3{float:left;font-weight:700;line-height:40px;margin:0 .25em 0 0}.mat-card-actions{margin-left:0;margin-right:0}.mat-card>.mat-card-actions:last-child{margin-bottom:0}"]}]}],G.propDecorators={cancelDisabled:[{type:e.Input}],cancelText:[{type:e.Input}],readonly:[{type:e.Input}],editText:[{type:e.Input}],expandable:[{type:e.Input}],expanded:[{type:e.Input}],saveDisabled:[{type:e.Input}],saveText:[{type:e.Input}],title:[{type:e.Input}],editMode:[{type:e.Input}],edit:[{type:e.Output}],cancel:[{type:e.Output}],save:[{type:e.Output}]};var K=function(){function t(){this.throttleTime=300,this.throttleClick=new e.EventEmitter,this.clicks=new d.Subject}return t.prototype.ngOnInit=function(){var t=this;this.subscription=this.clicks.pipe(h.throttleTime(this.throttleTime)).subscribe((function(e){return t.throttleClick.emit(e)}))},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.clickEvent=function(t){t.preventDefault(),t.stopPropagation(),this.clicks.next(t)},t}();K.decorators=[{type:e.Directive,args:[{selector:"[madThrottleClick]"}]}],K.ctorParameters=function(){return[]},K.propDecorators={throttleTime:[{type:e.Input}],throttleClick:[{type:e.Output}],clickEvent:[{type:e.HostListener,args:["click",["$event"]]}]};var $=function(){};$.decorators=[{type:e.NgModule,args:[{declarations:[K],imports:[n.CommonModule],exports:[K]}]}];var Z=function(){};Z.decorators=[{type:e.NgModule,args:[{declarations:[G],imports:[n.CommonModule,b.MatCardModule,a.MatIconModule,L,o.MatButtonModule,$],exports:[G]}]}];var Q=function(){function t(t){this.changeDetectorRef=t,this.allItems=[],this.addLabel="NOT SET",this.addPossible=!0,this.blankItem={},this.added=new e.EventEmitter,this.removed=new e.EventEmitter}return t.prototype.ngOnInit=function(){if(this.addEventFunction=this.addItem.bind(this),void 0!==this.minItems)for(var t=this.allItems.length;t<this.minItems;t++)this.interalAddItem()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){return t.setFocusOnAdd()}),1)},t.prototype.addItem=function(){var t=this.interalAddItem();t&&this.added.emit(t)},t.prototype.removeItem=function(t){this.isDeleteAllowed()&&(this.allItems.splice(this.allItems.indexOf(t),1),this.removed.emit(t))},t.prototype.setFocusOnAdd=function(){var t=this;this.rowCountFocus=this.itemRows.length,this.itemRows.changes.subscribe((function(e){if(e.length>t.rowCountFocus&&e.last){var n=e.last.nativeElement.querySelector("button, a, input, select, textarea, [tabindex]:not([tabindex='-1'])");n&&n.focus()}t.rowCountFocus=e.length}))},t.prototype.isAddAllowed=function(){return void 0===this.maxItems||this.allItems.length<this.maxItems},t.prototype.isDeleteAllowed=function(){return void 0===this.minItems||this.allItems.length>this.minItems},t.prototype.interalAddItem=function(){if(this.isAddAllowed()){var t=Object.assign({},this.blankItem);return t.id=Math.random().toString(36).substring(2),this.allItems.push(t),this.changeDetectorRef.detectChanges(),t}return null},t}();Q.decorators=[{type:e.Component,args:[{selector:"mad-quick-list",template:'<h3>\n <ng-content select="label"></ng-content>\n</h3>\n<ng-container *ngFor="let item of allItems">\n <div *ngIf="itemTemplate" #row>\n <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>\n <mad-icon-button *ngIf="!(readonly || readonly === \'\')" [disabled]="!isDeleteAllowed()" (click)="removeItem(item)">\n <mat-icon>delete</mat-icon>\n </mad-icon-button>\n </div>\n</ng-container>\n<mad-link-button *ngIf="!(readonly || readonly === \'\')" (click)="addItem()"\n [disabled]="!addPossible || !isAddAllowed()">\n {{ addLabel }}\n</mad-link-button>\n'}]}],Q.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},Q.propDecorators={allItems:[{type:e.Input}],addLabel:[{type:e.Input}],addPossible:[{type:e.Input}],blankItem:[{type:e.Input}],readonly:[{type:e.Input}],maxItems:[{type:e.Input}],minItems:[{type:e.Input}],added:[{type:e.Output}],removed:[{type:e.Output}],itemTemplate:[{type:e.ContentChild,args:[e.TemplateRef]}],itemRows:[{type:e.ViewChildren,args:["row"]}]};var X=function(){};X.decorators=[{type:e.NgModule,args:[{declarations:[Q],imports:[n.CommonModule,o.MatButtonModule,a.MatIconModule,L],exports:[Q]}]}];var J=function(){function t(){var t;this.ACTION_COLUMN_NAME="__action__",this.columns=[],this.filterLabel="NOT SET",this.filterPlaceholder="NOT SET",this.pageSizeOptions=[5,10,15],this.defaultPageSize=(null===(t=this.pageSizeOptions)||void 0===t?void 0:t[0])||10,this.rowActions=[],this.tableActions=[],this.tableAction=new e.EventEmitter,this.rowAction=new e.EventEmitter,this.sortEvent=new e.EventEmitter,this.isFilterEnabled=!1,this.isPaginationEnabled=!1}return Object.defineProperty(t.prototype,"displayedData",{set:function(t){this.dataSource?this.dataSource.data=t:this.dataSource=new I.MatTableDataSource(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paginationEnabled",{set:function(t){this.isPaginationEnabled=t;var e=this.isPaginationEnabled?this.defaultPageSize:Number.MAX_VALUE;this.dataSource.paginator&&this.dataSource.paginator._changePageSize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterEnabled",{set:function(t){this.isFilterEnabled=t,this.setFilterValue(void 0)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.columnNames=this.columns.map((function(t){return t.label})),this.isRowClickable=this.rowActions.length>0,this.isRowClickable&&(this.columnNames.unshift(this.ACTION_COLUMN_NAME),this.defaultAction=this.rowActions[0])},t.prototype.ngAfterViewInit=function(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(t,e){return!e||e.split(/\s+/).every((function(e){return!!Object.keys(t).find((function(n){return t[n].includes(e)}))}))}},t.prototype.onFilter=function(t){this.setFilterValue(t)},t.prototype.onRowEvent=function(t,e,n){void 0===n&&(n=this.defaultAction),n&&!this.isClickOnRowMenuIcon(t)&&this.rowAction.emit(Object.assign(Object.assign({},n),{outputRow:e}))},t.prototype.onSortingEvent=function(t){this.sortEvent.emit(t)},t.prototype.onTableAction=function(t){t&&this.tableAction.emit(t)},t.prototype.setFilterValue=function(t){this.dataSource.filter=null==t?void 0:t.trim().toLowerCase()},t.prototype.isClickOnRowMenuIcon=function(t){var e;return null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.classList.contains("mat-icon")},t}();J.decorators=[{type:e.Component,args:[{selector:"mad-table",template:'\x3c!-- Table actions --\x3e\n<div *ngIf="tableActions?.length">\n <mad-primary-button class="table-action" *ngFor="let tableAction of tableActions" (click)="onTableAction(tableAction)">\n {{ tableAction.label }}\n </mad-primary-button>\n</div>\n\n\x3c!-- Row action buttons --\x3e\n<mat-menu #menu="matMenu">\n <ng-template matMenuContent let-element="element">\n <button *ngFor="let rowAction of rowActions" mat-menu-item class="row-action" (click)="onRowEvent($event, element, rowAction)">\n {{ rowAction.label }}\n </button>\n </ng-template>\n</mat-menu>\n\n\x3c!-- Table filter --\x3e\n<mat-form-field *ngIf="isFilterEnabled">\n <mat-label>{{ filterLabel }}</mat-label>\n <input matInput (keyup)="onFilter($event?.target?.value)" placeholder="{{ filterPlaceholder }}" />\n</mat-form-field>\n\n\x3c!-- Table --\x3e\n<div *ngIf="dataSource?.data?.length > 0; else noData" class="mad-table">\n <table mat-table [dataSource]="dataSource" matSort (matSortChange)="onSortingEvent($event)">\n \x3c!-- Row actions column --\x3e\n <ng-container [matColumnDef]="ACTION_COLUMN_NAME" *ngIf="rowActions?.length">\n <th mat-header-cell *matHeaderCellDef class="row-action-button"></th>\n <td mat-cell *matCellDef="let element" class="row-action-button">\n <mad-icon-button [matMenuTriggerData]="{ element: element }" [matMenuTriggerFor]="menu">\n <mat-icon>more_vert</mat-icon>\n </mad-icon-button>\n </td>\n </ng-container>\n \x3c!-- Columns with data --\x3e\n <ng-container *ngFor="let column of columns" [matColumnDef]="column.label">\n <ng-container *ngIf="column.isSortable; else noSort">\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header="{{ column.label }}"\n [arrowPosition]="column.isRightAligned ? \'before\' : \'after\'"\n [class.text-right]="column.isRightAligned"\n >\n {{ column.label }}\n </th>\n </ng-container>\n <ng-template #noSort>\n <th mat-header-cell *matHeaderCellDef [class.text-right]="column.isRightAligned">\n {{ column.label }}\n </th>\n </ng-template>\n <td mat-cell *matCellDef="let element" [class.text-right]="column.isRightAligned">\n {{ element[column.dataPropertyName] }}\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef="columnNames"></tr>\n <tr\n mat-row\n [class.clickable-table-row]="isRowClickable"\n (click)="onRowEvent($event, row)"\n *matRowDef="let row; columns: columnNames"\n ></tr>\n </table>\n\n \x3c!-- Pagination --\x3e\n <mat-paginator\n [style.display]="isPaginationEnabled ? \'block\' : \'none\'"\n [pageSize]="defaultPageSize"\n [pageSizeOptions]="pageSizeOptions"\n showFirstLastButtons\n >\n </mat-paginator>\n</div>\n\n\x3c!-- No data alert --\x3e\n<ng-template #noData>\n <div class="noDataText">\n {{ noDataText }}\n </div>\n</ng-template>\n',styles:[".text-right{text-align:right!important}.table-action{margin-bottom:.5em;margin-right:.5em}.row-action-button{width:10px}.noDataText{text-align:center;width:100%}.mad-table{overflow-x:auto;width:100%}"]}]}],J.propDecorators={columns:[{type:e.Input}],filterLabel:[{type:e.Input}],filterPlaceholder:[{type:e.Input}],noDataText:[{type:e.Input}],pageSizeOptions:[{type:e.Input}],defaultPageSize:[{type:e.Input}],rowActions:[{type:e.Input}],tableActions:[{type:e.Input}],displayedData:[{type:e.Input}],paginationEnabled:[{type:e.Input}],filterEnabled:[{type:e.Input}],tableAction:[{type:e.Output}],rowAction:[{type:e.Output}],sortEvent:[{type:e.Output}],paginator:[{type:e.ViewChild,args:[x.MatPaginator,{static:!1}]}],sort:[{type:e.ViewChild,args:[S.MatSort,{static:!0}]}]};var Y=function(){};Y.decorators=[{type:e.NgModule,args:[{declarations:[J],imports:[n.CommonModule,o.MatButtonModule,a.MatIconModule,l.MatFormFieldModule,s.MatInputModule,g.MatMenuModule,x.MatPaginatorModule,S.MatSortModule,I.MatTableModule,L],exports:[J]}]}];var tt=function(){};tt.decorators=[{type:e.NgModule,args:[{exports:[B,L,H,E,z,Z,X,$]}]}],t.ButtonModule=L,t.CardModule=Z,t.MaterialActionButtonComponent=A,t.MaterialActionButtonModule=E,t.MaterialAddonsModule=tt,t.NumberFormatService=R,t.NumericFieldModule=z,t.QuickListModule=X,t.ReadOnlyFormFieldComponent=_,t.ReadOnlyFormFieldModule=B,t.ReadOnlyFormFieldWrapperComponent=V,t.TableModule=Y,t.ThrottleClickDirective=K,t.ThrottleClickModule=$,t.ToolbarComponent=q,t.ToolbarModule=H,t.ToolbarService=j,t.ɵa=P,t.ɵb=C,t.ɵc=O,t.ɵd=D,t.ɵe=N,t.ɵf=F,t.ɵg=W,t.ɵh=G,t.ɵi=Q,t.ɵj=J,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
|
+
var T=function(t,e){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function D(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function O(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,a=n.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}Object.create;var L=function(){function t(){this.disableClick=function(t){return t.stopPropagation()}}return t.prototype.ngOnChanges=function(t){this.disableButton()},t.prototype.disableButton=function(){this.disabled?this.button.nativeElement.addEventListener("click",this.disableClick):this.button.nativeElement.removeEventListener("click",this.disableClick)},Object.defineProperty(t.prototype,"pointerEvent",{get:function(){return this.disabled?"none":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.disabled?"0.35":"1"},enumerable:!1,configurable:!0}),t}();L.propDecorators={pointerEvent:[{type:e.HostBinding,args:["style.pointer-events"]}],opacity:[{type:e.HostBinding,args:["style.opacity"]}]};var _=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return D(e,t),e}(L);_.decorators=[{type:e.Component,args:[{selector:"mad-primary-button",template:'<button mat-raised-button color="primary" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],_.ctorParameters=function(){return[]},_.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var N=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return D(e,t),e}(L);N.decorators=[{type:e.Component,args:[{selector:"mad-outline-button",template:'<button mat-stroked-button color="primary" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],N.ctorParameters=function(){return[]},N.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var F=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return D(e,t),e}(L);F.decorators=[{type:e.Component,args:[{selector:"mad-link-button",template:'<button [title]="title" [type]="type" color="primary" #btn mat-button>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],F.ctorParameters=function(){return[]},F.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var V=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return D(e,t),e}(L);V.decorators=[{type:e.Component,args:[{selector:"mad-icon-button",template:'<button mat-icon-button color="primary" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],V.ctorParameters=function(){return[]},V.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var R=function(t){function e(){var e=t.call(this)||this;return e.title="",t.prototype.button=e.button,t.prototype.disabled=e.disabled,e}return D(e,t),e}(L);R.decorators=[{type:e.Component,args:[{selector:"mad-danger-button",template:'<button mat-raised-button color="warn" [type]="type" [title]="title" #btn>\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],R.ctorParameters=function(){return[]},R.propDecorators={type:[{type:e.Input}],disabled:[{type:e.Input}],title:[{type:e.Input}],button:[{type:e.ViewChild,args:["btn",{read:e.ElementRef,static:!0}]}]};var B=function(){};B.decorators=[{type:e.NgModule,args:[{declarations:[_,N,F,R,V],imports:[n.CommonModule,i.RouterModule,o.MatButtonModule,a.MatIconModule,r.MatTooltipModule],exports:[_,N,F,R,V]}]}];var j=function(){function t(t,e){this.changeDetector=t,this.elementRef=e,this.readonly=!0,this.textAlign="left",this.formatNumber=!1,this.decimalPlaces=2,this.roundValue=!1,this.autofillDecimals=!1,this.unit=null,this.unitPosition="left",this.errorMessage=null,this.multiline=!1,this.rows=3,this.shrinkIfEmpty=!1,this.toolTipForInputEnabled=!1}return t.prototype.ngOnInit=function(){this.doRendering()},t.prototype.ngAfterViewInit=function(){this.setReadonlyFieldStyle(),this.doRendering()},t.prototype.ngAfterViewChecked=function(){this.setReadonlyFieldStyle(),this.setTooltipForOverflownField()},t.prototype.ngOnChanges=function(t){this.doRendering()},t.prototype.getLabel=function(){return this.label||this.extractLabel(),this.label},t.prototype.doRendering=function(){this.originalContent&&(this.readonly?this.changeDetector.detectChanges():this.correctWidth())},t.prototype.extractLabel=function(){if(!this.originalContent||!this.originalContent.nativeElement)return null;var t=this.originalContent.nativeElement.querySelector("mat-label");this.label=t?t.innerHTML:"mat-label is missing!"},t.prototype.correctWidth=function(){var t=this.originalContent.nativeElement.querySelector("mat-form-field");t&&t.setAttribute("style","width:100%")},t.prototype.setReadonlyFieldStyle=function(){var t,e,n=null===(e=null===(t=this.readOnlyContentWrapper)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("input");if(n){var i=this.getTextOverFlowStyleValue();i&&n.setAttribute("style","text-overflow: "+i)}},t.prototype.getTextOverFlowStyleValue=function(){var t,e,n=null===(e=null===(t=this.elementRef)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.style.textOverflow;return n||"ellipsis"},t.prototype.setTooltipForOverflownField=function(){var t,e;if(this.isEllipsisForTextOverflowEnabled()){var n=null===(e=null===(t=this.readOnlyContentWrapper)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("input");n&&(this.toolTipForInputEnabled=this.isTextOverflown(n),this.toolTipForInputEnabled&&(this.toolTipText=this.calculateToolTipText()),this.changeDetector.detectChanges())}},t.prototype.isEllipsisForTextOverflowEnabled=function(){return"ellipsis"===this.getTextOverFlowStyleValue()},t.prototype.isTextOverflown=function(t){return!!t&&t.offsetWidth<t.scrollWidth},t.prototype.calculateToolTipText=function(){return this.unit?"left"===this.unitPosition?this.unit+" "+this.value:this.value+" "+this.unit:this.value},t}();j.decorators=[{type:e.Component,args:[{selector:"mad-readonly-form-field-wrapper",template:'<div #contentWrapper [hidden]="readonly">\n <ng-content></ng-content>\n</div>\n\n<div #readOnlyContentWrapper>\n <ng-container *ngIf="!!readonly">\n <mad-readonly-form-field\n [label]="getLabel()"\n [value]="value"\n [textAlign]="textAlign"\n [formatNumber]="formatNumber"\n [decimalPlaces]="decimalPlaces"\n [roundDisplayValue]="roundValue"\n [autofillDecimals]="autofillDecimals"\n [unit]="unit"\n [unitPosition]="unitPosition"\n [errorMessage]="errorMessage"\n [multiline]="multiline"\n [rows]="rows"\n [shrinkIfEmpty]="shrinkIfEmpty"\n [id]="id"\n matTooltip="{{toolTipText}}"\n matTooltipPosition="right"\n matTooltipClass="custom-tooltip"\n matTooltipDisabled="{{!toolTipForInputEnabled}}">\n </mad-readonly-form-field>\n </ng-container>\n</div>\n',styles:["div,mat-form-field{width:inherit}::ng-deep .custom-tooltip{font-size:14px!important;white-space:normal!important;word-break:break-all!important}"]}]}],j.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef}]},j.propDecorators={readonly:[{type:e.Input}],value:[{type:e.Input,args:["value"]}],originalContent:[{type:e.ViewChild,args:["contentWrapper",{static:!1}]}],readOnlyContentWrapper:[{type:e.ViewChild,args:["readOnlyContentWrapper",{static:!1}]}],textAlign:[{type:e.Input,args:["textAlign"]}],formatNumber:[{type:e.Input,args:["formatNumber"]}],decimalPlaces:[{type:e.Input,args:["decimalPlaces"]}],roundValue:[{type:e.Input,args:["roundDisplayValue"]}],autofillDecimals:[{type:e.Input,args:["autofillDecimals"]}],unit:[{type:e.Input,args:["unit"]}],unitPosition:[{type:e.Input,args:["unitPosition"]}],errorMessage:[{type:e.Input,args:["errorMessage"]}],id:[{type:e.Input}],multiline:[{type:e.Input}],rows:[{type:e.Input}],shrinkIfEmpty:[{type:e.Input}]};var H=function(){function t(e){this.allowedKeys=[];var n=1.1.toLocaleString(e).charAt(1);this.decimalSeparator=","===n?",":".",this.groupingSeparator=","===n?".":",",this.allowedKeys=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(P(arguments[e]));return t}(t.NUMBERS,[t.NEGATIVE,this.decimalSeparator])}return t.valueIsSet=function(t){return null!=t&&("string"!=typeof t||0!==t.length)},t.prototype.format=function(e,n){return t.valueIsSet(e)?this.formatNumber(e.toString().replace(new RegExp("[.]","g"),this.decimalSeparator),n):""},t.prototype.formatNumber=function(e,n){for(var i=this.valueOrDefault(null==n?void 0:n.autofillDecimals,t.DEFAULT_AUTOFILL_DECIMALS),o=this.valueOrDefault(null==n?void 0:n.decimalPlaces,t.DEFAULT_DECIMAL_PLACES),a=this.valueOrDefault(null==n?void 0:n.finalFormatting,t.DEFAULT_FINAL_FORMATTING),r=this.strip(e,{decimalPlaces:o,removeLeadingZeros:a}),l=r.indexOf(this.decimalSeparator),s=r.startsWith(t.NEGATIVE),c=l>-1?l:r.length;c>(s?4:3);)c-=3,r=r.substring(0,c)+this.groupingSeparator+r.substring(c,r.length);if(a&&o>0&&r){var u=r.indexOf(this.decimalSeparator);if(i){-1===u&&(u=r.length,r+=this.decimalSeparator),u=(r=this.addMissingLeadingZero(r,u)).indexOf(this.decimalSeparator);for(var p=r.length-u-1,d=0;d<o-p;d++)r+="0"}else r=this.addMissingLeadingZero(r,u)}return r},t.prototype.strip=function(e,n){var i,o,a=this.valueOrDefault(null==n?void 0:n.decimalPlaces,t.DEFAULT_DECIMAL_PLACES),r=this.valueOrDefault(null==n?void 0:n.removeLeadingZeros,t.DEFAULT_REMOVE_LEADING_ZEROS),l="",s=-1,c=-1,u=0;try{for(var p=O(e),d=p.next();!d.done;d=p.next()){var m=d.value;if(c++,this.allowedKeys.includes(m)){if(m===this.decimalSeparator){if(0===a)break;if(s>-1)continue;s=c}if("0"===m&&r&&(0===l.length&&c+1!==e.length||l===t.NEGATIVE)){u++;continue}if(m===t.NEGATIVE&&c>0)break;if(s>-1&&l.length+u>s+a)break;l+=m}else{if(m!==this.groupingSeparator)break;-1===s&&u++}}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}return l},t.prototype.addMissingLeadingZero=function(e,n){var i=e.startsWith(t.NEGATIVE);return 0===n&&(e="0"+e),1===n&&i&&(e=e[0]+"0"+e.substring(1,e.length)),e},t.prototype.valueOrDefault=function(e,n){return t.valueIsSet(e)?e:n},t}();H.NEGATIVE="-",H.NUMBERS=["0","1","2","3","4","5","6","7","8","9"],H.DEFAULT_FINAL_FORMATTING=!0,H.DEFAULT_DECIMAL_PLACES=2,H.DEFAULT_AUTOFILL_DECIMALS=!1,H.DEFAULT_REMOVE_LEADING_ZEROS=!1,H.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new H(e.ɵɵinject(e.LOCALE_ID))},token:H,providedIn:"any"}),H.decorators=[{type:e.Injectable,args:[{providedIn:"any"}]}],H.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var q=function(){function t(t,e,n){var i=this;this.changeDetector=t,this.renderer=e,this.numberFormatService=n,this.textAlign="left",this.formatNumber=!1,this.decimalPlaces=2,this.roundValue=!1,this.autofillDecimals=!1,this.unit=null,this.unitPosition="left",this.errorMessage=null,this.multiline=!1,this.rows=3,this.shrinkIfEmpty=!1,this.errorMatcher={isErrorState:function(){return!!i.errorMessage}}}return t.prototype.ngOnChanges=function(t){H.valueIsSet(this.value)?this.formatNumber&&"number"==typeof this.value&&(this.value=this.numberFormatService.format(this.value,{decimalPlaces:this.decimalPlaces,finalFormatting:!0,autofillDecimals:this.autofillDecimals})):(this.value="-",this.shrinkIfEmpty&&(this.rows=1)),this.changeDetector.detectChanges()},t.prototype.ngAfterViewChecked=function(){this.injectUnitSymbol()},t.prototype.injectUnitSymbol=function(){if(this.unit&&!this.unitSpan&&0!==this.inputEl.nativeElement.offsetWidth){var t=this.inputEl.nativeElement.parentNode.parentNode;this.unitSpan=this.renderer.createElement("span"),"left"===this.unitPosition?(this.renderer.setAttribute(this.unitSpan,"matPrefix",""),this.renderer.setStyle(this.unitSpan,"padding-right","5px"),this.renderer.insertBefore(t,this.unitSpan,t.children[0])):(this.renderer.setAttribute(this.unitSpan,"matSuffix",""),this.renderer.setStyle(this.unitSpan,"padding-left","5px"),this.renderer.appendChild(t,this.unitSpan))}if(this.unitSpan&&"left"===this.textAlign&&"right"===this.unitPosition){var e=window.getComputedStyle(this.inputEl.nativeElement.parentElement,null);this.unitSpan.style.position="absolute",this.unitSpan.style.marginTop=e.getPropertyValue("border-top-width"),this.unitSpan.style.paddingTop=e.getPropertyValue("padding-top"),this.unitSpan.style.paddingBottom=e.getPropertyValue("padding-bottom"),this.textSpan||(this.textSpan=document.createElement("span"),document.body.appendChild(this.textSpan),this.textSpan.style.font=e.getPropertyValue("font"),this.textSpan.style.fontSize=e.getPropertyValue("font-size"),this.textSpan.style.height="auto",this.textSpan.style.width="auto",this.textSpan.style.position="absolute",this.textSpan.style.top="0",this.textSpan.style.whiteSpace="no-wrap",this.textSpan.style.visibility="hidden"),this.textSpan.innerHTML=this.value;var n=Math.min(this.inputEl.nativeElement.clientWidth-this.unitSpan.clientWidth,Math.ceil(this.textSpan.clientWidth));this.unitSpan.style.left=n+"px"}this.unitSpan&&(this.unitSpan.textContent=this.unit)},t}();q.decorators=[{type:e.Component,args:[{selector:"mad-readonly-form-field",template:'<mat-form-field class="form-group" appearance="none">\n <mat-label>{{ label }}</mat-label>\n <input\n *ngIf="!multiline"\n [ngModel]="value"\n [ngClass]="\'text-\' + textAlign"\n [errorStateMatcher]="errorMatcher"\n [id]="id"\n readonly\n matInput\n #inputEl\n />\n\n <textarea\n *ngIf="multiline"\n [rows]="rows"\n [ngModel]="value"\n class="multiline"\n [errorStateMatcher]="errorMatcher"\n [id]="id"\n readonly\n matInput\n ></textarea>\n <mat-error>{{ errorMessage }}</mat-error>\n</mat-form-field>\n',styles:["mat-form-field{width:100%;width:-moz-available;width:-webkit-fill-available;width:stretch}mat-label{line-height:1.4}span[matPrefix]{padding-right:5px}span[matSuffix]{padding-left:5px}.text-left{text-align:left}.text-right{text-align:right}.multiline{resize:none}"]}]}],q.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.Renderer2},{type:H}]},q.propDecorators={value:[{type:e.Input,args:["value"]}],label:[{type:e.Input,args:["label"]}],textAlign:[{type:e.Input,args:["textAlign"]}],formatNumber:[{type:e.Input,args:["formatNumber"]}],decimalPlaces:[{type:e.Input,args:["decimalPlaces"]}],roundValue:[{type:e.Input,args:["roundDisplayValue"]}],autofillDecimals:[{type:e.Input,args:["autofillDecimals"]}],unit:[{type:e.Input,args:["unit"]}],unitPosition:[{type:e.Input,args:["unitPosition"]}],errorMessage:[{type:e.Input,args:["errorMessage"]}],multiline:[{type:e.Input}],rows:[{type:e.Input}],id:[{type:e.Input}],shrinkIfEmpty:[{type:e.Input}],inputEl:[{type:e.ViewChild,args:["inputEl"]}]};var U=function(){};U.decorators=[{type:e.NgModule,args:[{declarations:[q,j],imports:[n.CommonModule,i.RouterModule,l.MatFormFieldModule,s.MatInputModule,c.FormsModule,r.MatTooltipModule],exports:[q,j]}]}];var W=function(){function t(t,e){var n=this;this.router=t,this.translate=e,this.mainActions=[],this.toolbarActions=[],this.liftFabButtonHigher=!1,this.routerSubscription=this.router.events.subscribe((function(e){e instanceof i.NavigationEnd&&(n.currentUrl!==e.urlAfterRedirects&&(n.clearToolbarActions(),n.clearMainActions(),delete n.backAction,delete n.dataTitle),n.currentUrl=t.url)}))}return t.prototype.ngOnDestroy=function(){this.routerSubscription&&this.routerSubscription.unsubscribe()},t.prototype.getToolbarActions=function(){return this.toolbarActions},t.prototype.addToolbarAction=function(t){var e=this;this.translate.get(t.i18nActionKey).toPromise().then((function(n){t.actionName=n,e.toolbarActions.push(t)}))},Object.defineProperty(t.prototype,"toolbarTitle",{get:function(){return this.title},set:function(t){this.title=t},enumerable:!1,configurable:!0}),t.prototype.setDataTitle=function(t){this.dataTitle=t},t.prototype.getDataTitle=function(){return this.dataTitle},t.prototype.clearToolbarActions=function(){this.toolbarActions=[]},t.prototype.getMainActions=function(){return this.mainActions},t.prototype.getBackAction=function(){return this.backAction},t.prototype.addMainAction=function(t){var e=this;this.translate.get(t.i18nActionKey).toPromise().then((function(n){t.actionName=n,e.mainActions.push(t)}))},t.prototype.addBackAction=function(t,e){void 0===e&&(e=!1),this.backAction={matIcon:"keyboard_backspace",i18nActionKey:""},e?this.backAction.href=t:this.backAction.routerLink=t},t.prototype.addSimpleBackButton=function(t){void 0===t&&(t=!1),this.getBackAction()&&!t||(this.backAction={matIcon:"keyboard_backspace",i18nActionKey:"",action:function(){window.history.back()}})},t.prototype.clearMainActions=function(){this.mainActions=[]},t}();W.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new W(e.ɵɵinject(i.Router),e.ɵɵinject(p.TranslateService))},token:W,providedIn:"root"}),W.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],W.ctorParameters=function(){return[{type:i.Router},{type:p.TranslateService}]};var z=function(){function t(t,e,n){this.breakpointObserver=t,this.titleService=e,this.toolbarService=n,this.isHandset$=this.breakpointObserver.observe([m.Breakpoints.Handset]).pipe(h.map((function(t){return t.matches})))}return t.prototype.getTitle=function(){var t=this.toolbarService.getDataTitle(),e=this.toolbarService.toolbarTitle,n=!e||e.length<=0?this.titleService.getTitle():e;return!t||t.length<=0?n:n+": "+t},t.prototype.getToolbarActions=function(){return this.toolbarService.getToolbarActions()},t.prototype.getMainActions=function(){return this.toolbarService.getMainActions()},t.prototype.hasPermission=function(t){return t&&t.showIf?t.showIf:d.of(!0)},t.prototype.isRouterLink=function(){return this.toolbarService.getBackAction()&&!!this.toolbarService.getBackAction().routerLink},t.prototype.isAbsoluteLink=function(){return this.toolbarService.getBackAction()&&!!this.toolbarService.getBackAction().href},t.prototype.isAction=function(){return this.toolbarService.getBackAction()&&!!this.toolbarService.getBackAction().action},t.prototype.getBackAction=function(){return this.toolbarService.getBackAction()},t}();z.decorators=[{type:e.Component,args:[{selector:"mad-toolbar",template:'<mat-toolbar class="content-toolbar">\n <a [routerLink]="getBackAction().routerLink" *ngIf="isRouterLink()">\n <button [id]="\'go-back\'" color="primary" mat-icon-button class="go-back-button">\n <mat-icon>{{ getBackAction().matIcon }}</mat-icon>\n </button>\n </a>\n <a [href]="getBackAction().href" *ngIf="isAbsoluteLink()">\n <button [id]="\'go-back\'" class="go-back-button" color="primary" mat-icon-button>\n <mat-icon>{{ getBackAction().matIcon }}</mat-icon>\n </button>\n </a>\n <a (click)="getBackAction().action()" *ngIf="isAction()">\n <button [id]="\'go-back\'" color="primary" mat-icon-button class="go-back-button">\n <mat-icon>{{ getBackAction().matIcon }}</mat-icon>\n </button>\n </a>\n\n <span class="toolbar-title">{{ getTitle() }}</span>\n\n <ng-container *ngFor="let mainAction of getMainActions(); let i = index">\n <ng-container *ngIf="hasPermission(mainAction) | async">\n <div *ngIf="!(isHandset$ | async)">\n <a [routerLink]="mainAction.routerLink">\n <mad-primary-button [id]="mainAction.matIcon" style="margin-left: 56px">\n <mat-icon>{{ mainAction.matIcon }}</mat-icon>\n {{ mainAction.actionName }}\n </mad-primary-button>\n </a>\n </div>\n <div *ngIf="isHandset$ | async">\n <mad-material-action-button\n [actionName]="mainAction.actionName"\n [icon]="mainAction.matIcon"\n [liftHigher]="mainAction.liftHigherOnMobile"\n [liftHigher2]="i > 0"\n [routerLink]="mainAction.routerLink"\n [id]="mainAction.matIcon"\n >\n </mad-material-action-button>\n </div>\n </ng-container>\n </ng-container>\n\n <div class="right-aligned no-print">\n <ng-container *ngFor="let action of getToolbarActions(); let i = index">\n <ng-container *ngIf="hasPermission(action) | async">\n <mad-icon-button\n (click)="action.action()"\n *ngIf="!(isHandset$ | async) || i < (getToolbarActions().length > 2 ? 1 : 2)"\n [id]="action.matIcon"\n [matTooltip]="action.actionName"\n type="button"\n >\n <mat-icon\n [matBadgeColor]="action.badge ? action.badge.color : \'primary\'"\n matBadgePosition="below after"\n [matBadge]="action.badge ? action.badge.value : null"\n >{{ action.matIcon }}</mat-icon\n >\n </mad-icon-button>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf="isHandset$ | async">\n <ng-container *ngIf="getToolbarActions().length > 2">\n <button mat-icon-button type="button" [matMenuTriggerFor]="burgerMenu" matTooltip="More">\n <mat-icon>more_vert</mat-icon>\n </button>\n <mat-menu #burgerMenu="matMenu">\n <ng-container *ngFor="let action of getToolbarActions(); let i = index">\n <ng-container *ngIf="hasPermission(action) | async">\n <button *ngIf="i >= 1" mat-menu-item (click)="action.action()">\n <mat-icon\n [matBadgeColor]="action.badge ? action.badge.color : \'primary\'"\n [matBadge]="action.badge ? action.badge.value : null"\n matBadgePosition="below after"\n >{{ action.matIcon }}</mat-icon>\n {{ action.actionName }}\n </button>\n </ng-container>\n </ng-container>\n </mat-menu>\n </ng-container>\n </ng-container>\n </div>\n</mat-toolbar>\n',styles:["mat-toolbar{background:#fff}.content-toolbar{border-bottom:1px solid #dcdcdc;height:57px}.right-aligned{margin-left:auto;margin-right:0;overflow:hidden}.go-back-button{padding-left:0;padding-right:0}.toolbar-title{margin-right:72px}::ng-deep.mat-badge-content{bottom:-7px!important;right:-7px!important}"]}]}],z.ctorParameters=function(){return[{type:m.BreakpointObserver},{type:u.Title},{type:W}]};var G=function(){};G.decorators=[{type:e.NgModule,args:[{declarations:[z],imports:[n.CommonModule,i.RouterModule,g.MatMenuModule,o.MatButtonModule,f.MatToolbarModule,a.MatIconModule,M,r.MatTooltipModule,B,y.MatBadgeModule],exports:[z]}]}];var $=new Set([224,91,93]),K=function(){function t(t,n,i){this.renderer=t,this.inputEl=n,this.numberFormatService=i,this.textAlign="right",this.decimalPlaces=2,this.roundValue=!1,this.autofillDecimals=!1,this.unit=null,this.unitPosition="right",this.numericValueChanged=new e.EventEmitter,this.displayValue="",this.originalValue=NaN,this.onChange=function(){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"numericValue",{set:function(t){this._numericValue===t||isNaN(this._numericValue)&&(isNaN(t)||null===t)||(this.originalValue=t,this._numericValue=null==t?t:this.roundOrTruncate(t),this.handleInputChanged())},enumerable:!1,configurable:!0}),t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(){},t.prototype.writeValue=function(t){this.numericValue=t},t.prototype.ngOnInit=function(){var t=this;this.decimalPlaces=parseInt(this.decimalPlaces.toString(),10),this.inputChangeListener=this.renderer.listen(this.inputEl.nativeElement,"blur",(function(e){t.formatInput(e.target,!0)})),this.keyupListener=this.renderer.listen(this.inputEl.nativeElement,"keyup",(function(e){(8===e.keyCode||e.keyCode>=46&&!$.has(e.keyCode))&&t.formatInput(e.target,!1)})),this.keydownListener=this.renderer.listen(this.inputEl.nativeElement,"keydown",(function(e){var n=e.target.value;if(!(t.numberFormatService.allowedKeys.includes(e.key)||e.keyCode<=46&&e.keyCode>0&&32!==e.keyCode||e.metaKey||e.ctrlKey||e.altKey))return!1;var i=n.indexOf(H.NEGATIVE);if(e.key===H.NEGATIVE&&(e.target.selectionStart>0||i>-1)&&(e.target.selectionStart===e.target.selectionEnd||!(i>=e.target.selectionStart&&i<=e.target.selectionEnd)))return!1;var o=n.indexOf(t.numberFormatService.decimalSeparator);if(e.key===t.numberFormatService.decimalSeparator&&(o>-1||0===t.decimalPlaces)&&(e.target.selectionStart===e.target.selectionEnd||!(o>=e.target.selectionStart&&o<=e.target.selectionEnd)))return!1;if(H.NUMBERS.includes(e.key)&&o>-1&&o<e.target.selectionStart&&e.target.selectionStart===e.target.selectionEnd&&n.length>o+t.decimalPlaces)return!1;var a=e.target.selectionStart;if(a===e.target.selectionEnd){if(8===e.keyCode&&n.substr(a-1,1)===t.numberFormatService.groupingSeparator)return e.target.value=n.substring(0,a-2)+n.substring(a-1,n.length),e.target.selectionStart=e.target.selectionEnd=a-1,!1;if(46===e.keyCode&&n.substr(a,1)===t.numberFormatService.groupingSeparator)return e.target.value=n.substring(0,a+1)+n.substring(a+2,n.length),e.target.selectionStart=e.target.selectionEnd=a+1,!1}return t.originalValue=NaN,!0}))},t.prototype.ngOnDestroy=function(){this.detachListener()},t.prototype.ngAfterViewChecked=function(){this.injectUnitSymbol()},t.prototype.handleInputChanged=function(){var t=this;setTimeout((function(){t.updateInput(t.numberFormatService.format(t._numericValue,{decimalPlaces:t.decimalPlaces,finalFormatting:!1,autofillDecimals:t.autofillDecimals}))}),1)},t.prototype.formatInput=function(t,e){var n=t.selectionStart,i=t.value.length,o=this.displayValue!==t.value,a=this.numberFormatService.formatNumber(t.value,{decimalPlaces:this.decimalPlaces,finalFormatting:e,autofillDecimals:this.autofillDecimals});if("left"===this.textAlign&&"right"===this.unitPosition){var r=window.getComputedStyle(this.inputEl.nativeElement.parentElement,null);this.unitSpan.style.position="absolute",this.unitSpan.style.marginTop=r.getPropertyValue("border-top-width"),this.unitSpan.style.paddingTop=r.getPropertyValue("padding-top"),this.unitSpan.style.paddingBottom=r.getPropertyValue("padding-bottom"),this.textSpan||(this.textSpan=document.createElement("span"),document.body.appendChild(this.textSpan),this.textSpan.style.font=r.getPropertyValue("font"),this.textSpan.style.fontSize=r.getPropertyValue("font-size"),this.textSpan.style.height="auto",this.textSpan.style.width="auto",this.textSpan.style.position="absolute",this.textSpan.style.top="0",this.textSpan.style.whiteSpace="no-wrap",this.textSpan.style.visibility="hidden"),this.textSpan.innerHTML=a;var l=Math.min(this.inputEl.nativeElement.clientWidth-this.unitSpan.clientWidth,Math.ceil(this.textSpan.clientWidth));this.unitSpan.style.left=l+"px"}this.updateInput(a),o&&(t.selectionStart=t.selectionEnd=Math.max(n+t.value.length-i,0))},t.prototype.updateInput=function(t){this.displayValue=t,this.inputEl.nativeElement.value=t,this._numericValue=parseFloat(this.numberFormatService.strip(t,{decimalPlaces:this.decimalPlaces}).replace(this.numberFormatService.decimalSeparator,".")),this._numericValue!==this.roundOrTruncate(this.originalValue)&&(this.originalValue=this._numericValue,this.numericValueChanged.emit(this._numericValue))},t.prototype.getValueForFormControl=function(){if(this.formatInput(this.inputEl.nativeElement,!1),!isNaN(this._numericValue))return this._numericValue},t.prototype.injectUnitSymbol=function(){if(this.unit&&!this.unitSpan&&0!==this.inputEl.nativeElement.offsetWidth){var t=this.inputEl.nativeElement.parentNode.parentNode;this.unitSpan=this.renderer.createElement("span"),"left"===this.unitPosition?(this.renderer.setAttribute(this.unitSpan,"matPrefix",""),this.renderer.setStyle(this.unitSpan,"padding-right","5px"),this.renderer.insertBefore(t,this.unitSpan,t.children[0])):(this.renderer.setAttribute(this.unitSpan,"matSuffix",""),this.renderer.setStyle(this.unitSpan,"padding-left","5px"),this.renderer.appendChild(t,this.unitSpan))}this.unitSpan&&"left"===this.textAlign&&"right"===this.unitPosition&&(H.valueIsSet(this.displayValue)?this.unitSpan.style.display="unset":this.unitSpan.style.display="none"),this.unitSpan&&(this.unitSpan.textContent=this.unit)},t.prototype.detachListener=function(){this.inputChangeListener&&(this.inputChangeListener(),delete this.inputChangeListener),this.keydownListener&&(this.keydownListener(),delete this.keydownListener),this.keyupListener&&(this.keyupListener(),delete this.keyupListener)},t.prototype.roundOrTruncate=function(t){var e=this.roundValue?"round":t<0?"ceil":"floor";return Math[e](t*Math.pow(10,this.decimalPlaces))/Math.pow(10,this.decimalPlaces)},t}();K.decorators=[{type:e.Directive,args:[{selector:"[madNumericField]",host:{"[class.text-right]":'textAlign === "right"',"(change)":"onChange(getValueForFormControl())","(input)":"onChange(getValueForFormControl())","(blur)":"onTouched()"},providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return K})),multi:!0}]}]}],K.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:H}]},K.propDecorators={textAlign:[{type:e.Input,args:["textAlign"]}],decimalPlaces:[{type:e.Input,args:["decimalPlaces"]}],roundValue:[{type:e.Input,args:["roundDisplayValue"]}],autofillDecimals:[{type:e.Input,args:["autofillDecimals"]}],unit:[{type:e.Input,args:["unit"]}],unitPosition:[{type:e.Input,args:["unitPosition"]}],numericValueChanged:[{type:e.Output,args:["numericValueChange"]}],numericValue:[{type:e.Input,args:["numericValue"]}]};var Z=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[H]}},t}();Z.decorators=[{type:e.NgModule,args:[{providers:[H],declarations:[K],exports:[K]}]}];var Q=function(){function t(){this.cancelDisabled=!1,this.cancelText="NOT SET",this.readonly=!0,this.editText="NOT SET",this.expandable=!0,this.expanded=!0,this.saveDisabled=!1,this.saveText="NOT SET",this.editMode=!1,this.additionalActionText="",this.edit=new e.EventEmitter,this.cancel=new e.EventEmitter,this.save=new e.EventEmitter,this.additionalAction=new e.EventEmitter}return t.prototype.onCancel=function(){this.cancel.emit(void 0)},t.prototype.onEdit=function(){this.edit.emit(void 0),this.expanded=!0},t.prototype.onSave=function(){this.save.emit(void 0)},t.prototype.toggleCollapse=function(){this.expanded=!this.expanded},t.prototype.additionalActionClicked=function(){this.additionalAction.emit(void 0)},t}();Q.decorators=[{type:e.Component,args:[{selector:"mad-card",template:'<mat-card>\n <mat-card-header>\n <mat-card-title>\n {{ title }}\n <mad-icon-button (click)="toggleCollapse()" *ngIf="expandable && !editMode">\n <mat-icon [@rotateIcon]="!expanded">keyboard_arrow_down</mat-icon>\n </mad-icon-button>\n </mat-card-title>\n <span>\n <mad-icon-button (click)="additionalActionClicked()" *ngIf="additionalActionIcon" [title]="additionalActionText" type="button">\n <mat-icon>{{additionalActionIcon}}</mat-icon>\n </mad-icon-button>\n <mad-icon-button [title]="editText" (click)="onEdit()" *ngIf="!readonly && !editMode">\n <mat-icon>create</mat-icon>\n </mad-icon-button>\n </span>\n </mat-card-header>\n <mat-card-content [@collapseExpandAnimation] *ngIf="expanded">\n <ng-content></ng-content>\n </mat-card-content>\n <mat-card-actions *ngIf="!readonly && editMode">\n <mad-primary-button [title]="saveText" [disabled]="saveDisabled" (throttleClick)="onSave()" madThrottleClick>\n {{ saveText }}\n </mad-primary-button>\n <mad-outline-button [title]="cancelText" [disabled]="cancelDisabled" (click)="onCancel()">\n {{ cancelText }}\n </mad-outline-button>\n </mat-card-actions>\n</mat-card>\n',animations:[v.trigger("collapseExpandAnimation",[v.transition(":enter",[v.style({opacity:0,height:0,overflow:"hidden"}),v.animate("100ms",v.style({opacity:1,height:"*"}))]),v.transition(":leave",[v.style({opacity:1,height:"*",overflow:"hidden"}),v.animate("100ms",v.style({opacity:0,height:0}))])]),v.trigger("rotateIcon",[v.state("true",v.style({transform:"rotate(0)"})),v.state("false",v.style({transform:"rotate(180deg)"})),v.transition("true => false",v.animate("100ms ease-out")),v.transition("false => true",v.animate("100ms ease-in"))])],styles:["mat-card-header{display:flex;flex-direction:row}mat-card-header,mat-card-header mat-card-title{justify-content:space-between}mat-card-header mat-card-title:hover{background:unset!important}mat-card-header h3{float:left;font-weight:700;line-height:40px;margin:0 .25em 0 0}.mat-card-actions{margin-left:0;margin-right:0}.mat-card>.mat-card-actions:last-child{margin-bottom:0}"]}]}],Q.propDecorators={cancelDisabled:[{type:e.Input}],cancelText:[{type:e.Input}],readonly:[{type:e.Input}],editText:[{type:e.Input}],expandable:[{type:e.Input}],expanded:[{type:e.Input}],saveDisabled:[{type:e.Input}],saveText:[{type:e.Input}],title:[{type:e.Input}],editMode:[{type:e.Input}],additionalActionIcon:[{type:e.Input}],additionalActionText:[{type:e.Input}],edit:[{type:e.Output}],cancel:[{type:e.Output}],save:[{type:e.Output}],additionalAction:[{type:e.Output}]};var X=function(){function t(){this.throttleTime=300,this.throttleClick=new e.EventEmitter,this.clicks=new d.Subject}return t.prototype.ngOnInit=function(){var t=this;this.subscription=this.clicks.pipe(h.throttleTime(this.throttleTime)).subscribe((function(e){return t.throttleClick.emit(e)}))},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.clickEvent=function(t){t.preventDefault(),t.stopPropagation(),this.clicks.next(t)},t}();X.decorators=[{type:e.Directive,args:[{selector:"[madThrottleClick]"}]}],X.ctorParameters=function(){return[]},X.propDecorators={throttleTime:[{type:e.Input}],throttleClick:[{type:e.Output}],clickEvent:[{type:e.HostListener,args:["click",["$event"]]}]};var Y=function(){};Y.decorators=[{type:e.NgModule,args:[{declarations:[X],imports:[n.CommonModule],exports:[X]}]}];var J=function(){};J.decorators=[{type:e.NgModule,args:[{declarations:[Q],imports:[n.CommonModule,b.MatCardModule,a.MatIconModule,B,o.MatButtonModule,Y],exports:[Q]}]}];var tt=function(){function t(t){this.changeDetectorRef=t,this.allItems=[],this.addLabel="NOT SET",this.addPossible=!0,this.blankItem={},this.added=new e.EventEmitter,this.removed=new e.EventEmitter}return t.prototype.ngOnInit=function(){if(this.addEventFunction=this.addItem.bind(this),this.minItems)for(var t=this.allItems.length;t<this.minItems;t++)this.interalAddItem()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){return t.setFocusOnAdd()}),1)},t.prototype.addItem=function(){var t=this.interalAddItem();t&&this.added.emit(t)},t.prototype.removeItem=function(t){this.isDeleteAllowed()&&(this.allItems.splice(this.allItems.indexOf(t),1),this.removed.emit(t))},t.prototype.setFocusOnAdd=function(){var t=this;this.rowCountFocus=this.itemRows.length,this.itemRows.changes.subscribe((function(e){if(e.length>t.rowCountFocus&&e.last){var n=e.last.nativeElement.querySelector("button, a, input, select, textarea, [tabindex]:not([tabindex='-1'])");n&&n.focus()}t.rowCountFocus=e.length}))},t.prototype.isAddAllowed=function(){return this.addPossible&&(!this.maxItems||this.allItems.length<this.maxItems)},t.prototype.isDeleteAllowed=function(){return!this.minItems||this.allItems.length>this.minItems},t.prototype.interalAddItem=function(){if(this.isAddAllowed()){var t=Object.assign({},this.blankItem);return t.id=Math.random().toString(36).substring(2),this.allItems.push(t),this.changeDetectorRef.detectChanges(),t}return null},t}();tt.decorators=[{type:e.Component,args:[{selector:"mad-base-quick-list",template:""}]}],tt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},tt.propDecorators={allItems:[{type:e.Input}],addLabel:[{type:e.Input}],addPossible:[{type:e.Input}],blankItem:[{type:e.Input}],readonly:[{type:e.Input}],maxItems:[{type:e.Input}],minItems:[{type:e.Input}],added:[{type:e.Output}],removed:[{type:e.Output}],itemTemplate:[{type:e.ContentChild,args:[e.TemplateRef]}],itemRows:[{type:e.ViewChildren,args:["row"]}]};var et=function(t){function e(e){var n=t.call(this,e)||this;return n.changeDetectorRef=e,n}return D(e,t),e}(tt);et.decorators=[{type:e.Component,args:[{selector:"mad-quick-list",template:'<h3>\n <ng-content select="label"></ng-content>\n</h3>\n<ng-container *ngFor="let item of allItems">\n <div *ngIf="itemTemplate" #row>\n <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>\n <mad-icon-button *ngIf="!readonly && isDeleteAllowed()" (click)="removeItem(item)">\n <mat-icon>delete</mat-icon>\n </mad-icon-button>\n </div>\n</ng-container>\n<mad-link-button *ngIf="!readonly" (click)="addItem()"\n [disabled]="!addPossible || !isAddAllowed()">\n {{ addLabel }}\n</mad-link-button>\n'}]}],et.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var nt=function(t){function e(e){var n=t.call(this,e)||this;return n.changeDetectorRef=e,n}return D(e,t),e}(tt);nt.decorators=[{type:e.Component,args:[{selector:"mad-quick-list-compact",template:'<h3>\n <ng-content select="label"></ng-content>\n</h3>\n<ng-container *ngFor="let item of allItems; let isLast = last;">\n <div class="flex-container" *ngIf="itemTemplate" #row>\n <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>\n <mad-icon-button *ngIf="!readonly && isDeleteAllowed()" (click)="removeItem(item)">\n <mat-icon>delete</mat-icon>\n </mad-icon-button>\n <mad-icon-button *ngIf="!readonly && isLast" [disabled]="!isAddAllowed()" (click)="addItem()">\n <mat-icon>add_circle_outline</mat-icon>\n </mad-icon-button>\n </div>\n</ng-container>\n<mad-link-button *ngIf="!readonly && !this.allItems.length"\n (click)="addItem()"\n [disabled]="!isAddAllowed()">\n {{ addLabel }}\n</mad-link-button>\n'}]}],nt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var it=function(){};it.decorators=[{type:e.NgModule,args:[{declarations:[et,tt,nt],imports:[n.CommonModule,o.MatButtonModule,a.MatIconModule,B],exports:[et,nt,tt]}]}];var ot=function(){function t(){var t;this.ACTION_COLUMN_NAME="__action__",this.columns=[],this.filterLabel="NOT SET",this.filterPlaceholder="NOT SET",this.pageSizeOptions=[5,10,15],this.defaultPageSize=(null===(t=this.pageSizeOptions)||void 0===t?void 0:t[0])||10,this.rowActions=[],this.tableActions=[],this.tableAction=new e.EventEmitter,this.rowAction=new e.EventEmitter,this.sortEvent=new e.EventEmitter,this.isFilterEnabled=!1,this.isPaginationEnabled=!1}return Object.defineProperty(t.prototype,"displayedData",{set:function(t){this.dataSource?this.dataSource.data=t:this.dataSource=new I.MatTableDataSource(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paginationEnabled",{set:function(t){this.isPaginationEnabled=t;var e=this.isPaginationEnabled?this.defaultPageSize:Number.MAX_VALUE;this.dataSource.paginator&&this.dataSource.paginator._changePageSize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterEnabled",{set:function(t){this.isFilterEnabled=t,this.setFilterValue(void 0)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.columnNames=this.columns.map((function(t){return t.label})),this.isRowClickable=this.rowActions.length>0,this.isRowClickable&&(this.columnNames.unshift(this.ACTION_COLUMN_NAME),this.defaultAction=this.rowActions[0])},t.prototype.ngAfterViewInit=function(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(t,e){return!e||e.split(/\s+/).every((function(e){return!!Object.keys(t).find((function(n){return t[n].includes(e)}))}))}},t.prototype.onFilter=function(t){this.setFilterValue(t)},t.prototype.onRowEvent=function(t,e,n){void 0===n&&(n=this.defaultAction),n&&!this.isClickOnRowMenuIcon(t)&&this.rowAction.emit(Object.assign(Object.assign({},n),{outputRow:e}))},t.prototype.onSortingEvent=function(t){this.sortEvent.emit(t)},t.prototype.onTableAction=function(t){t&&this.tableAction.emit(t)},t.prototype.setFilterValue=function(t){this.dataSource.filter=null==t?void 0:t.trim().toLowerCase()},t.prototype.isClickOnRowMenuIcon=function(t){var e;return null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.classList.contains("mat-icon")},t}();ot.decorators=[{type:e.Component,args:[{selector:"mad-table",template:'\x3c!-- Table actions --\x3e\n<div *ngIf="tableActions?.length">\n <mad-primary-button class="table-action" *ngFor="let tableAction of tableActions" (click)="onTableAction(tableAction)">\n {{ tableAction.label }}\n </mad-primary-button>\n</div>\n\n\x3c!-- Row action buttons --\x3e\n<mat-menu #menu="matMenu">\n <ng-template matMenuContent let-element="element">\n <button *ngFor="let rowAction of rowActions" mat-menu-item class="row-action" (click)="onRowEvent($event, element, rowAction)">\n {{ rowAction.label }}\n </button>\n </ng-template>\n</mat-menu>\n\n\x3c!-- Table filter --\x3e\n<mat-form-field *ngIf="isFilterEnabled">\n <mat-label>{{ filterLabel }}</mat-label>\n <input matInput (keyup)="onFilter($event?.target?.value)" placeholder="{{ filterPlaceholder }}" />\n</mat-form-field>\n\n\x3c!-- Table --\x3e\n<div *ngIf="dataSource?.data?.length > 0; else noData" class="mad-table">\n <table mat-table [dataSource]="dataSource" matSort (matSortChange)="onSortingEvent($event)">\n \x3c!-- Row actions column --\x3e\n <ng-container [matColumnDef]="ACTION_COLUMN_NAME" *ngIf="rowActions?.length">\n <th mat-header-cell *matHeaderCellDef class="row-action-button"></th>\n <td mat-cell *matCellDef="let element" class="row-action-button">\n <mad-icon-button [matMenuTriggerData]="{ element: element }" [matMenuTriggerFor]="menu">\n <mat-icon>more_vert</mat-icon>\n </mad-icon-button>\n </td>\n </ng-container>\n \x3c!-- Columns with data --\x3e\n <ng-container *ngFor="let column of columns" [matColumnDef]="column.label">\n <ng-container *ngIf="column.isSortable; else noSort">\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header="{{ column.label }}"\n [arrowPosition]="column.isRightAligned ? \'before\' : \'after\'"\n [class.text-right]="column.isRightAligned"\n >\n {{ column.label }}\n </th>\n </ng-container>\n <ng-template #noSort>\n <th mat-header-cell *matHeaderCellDef [class.text-right]="column.isRightAligned">\n {{ column.label }}\n </th>\n </ng-template>\n <td mat-cell *matCellDef="let element" [class.text-right]="column.isRightAligned">\n {{ element[column.dataPropertyName] }}\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef="columnNames"></tr>\n <tr\n mat-row\n [class.clickable-table-row]="isRowClickable"\n (click)="onRowEvent($event, row)"\n *matRowDef="let row; columns: columnNames"\n ></tr>\n </table>\n\n \x3c!-- Pagination --\x3e\n <mat-paginator\n [style.display]="isPaginationEnabled ? \'block\' : \'none\'"\n [pageSize]="defaultPageSize"\n [pageSizeOptions]="pageSizeOptions"\n showFirstLastButtons\n >\n </mat-paginator>\n</div>\n\n\x3c!-- No data alert --\x3e\n<ng-template #noData>\n <div class="noDataText">\n {{ noDataText }}\n </div>\n</ng-template>\n',styles:[".text-right{text-align:right!important}.table-action{margin-bottom:.5em;margin-right:.5em}.row-action-button{width:10px}.noDataText{text-align:center;width:100%}.mad-table{overflow-x:auto;width:100%}"]}]}],ot.propDecorators={columns:[{type:e.Input}],filterLabel:[{type:e.Input}],filterPlaceholder:[{type:e.Input}],noDataText:[{type:e.Input}],pageSizeOptions:[{type:e.Input}],defaultPageSize:[{type:e.Input}],rowActions:[{type:e.Input}],tableActions:[{type:e.Input}],displayedData:[{type:e.Input}],paginationEnabled:[{type:e.Input}],filterEnabled:[{type:e.Input}],tableAction:[{type:e.Output}],rowAction:[{type:e.Output}],sortEvent:[{type:e.Output}],paginator:[{type:e.ViewChild,args:[S.MatPaginator,{static:!1}]}],sort:[{type:e.ViewChild,args:[x.MatSort,{static:!0}]}]};var at=function(){};at.decorators=[{type:e.NgModule,args:[{declarations:[ot],imports:[n.CommonModule,o.MatButtonModule,a.MatIconModule,l.MatFormFieldModule,s.MatInputModule,g.MatMenuModule,S.MatPaginatorModule,x.MatSortModule,I.MatTableModule,B],exports:[ot]}]}];var rt=function(t){function e(e,n){var i=t.call(this,n)||this;return i._focusMonitor=e,i}return D(e,t),e.prototype.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)},e.prototype.getCssForState=function(){return this.state!==A.STEP_STATE.NUMBER||this.completed||this.hasError?this.completed?"step-state-complete":this.hasError?"step-state-error":void 0:"step-state-neutral"},e.prototype.getIcon=function(){return this.completed?"check_circle_outline":this.hasError?"error_outline":""},e}(A.CdkStepHeader);rt.decorators=[{type:e.Component,args:[{selector:"mad-step-header",template:'<div class="header" fxLayout="row" fxLayoutGap="1em"\n [style.background]="this.selected && !this.closed ? \'#d8e2e9\' : \'#ffffff\'"\n [style.border-color]="this.hasError ? \'#f44336\' : \'#d3d3d3\'">\n <div [ngClass]="this.getCssForState()"></div>\n <div class="header-label">\n <mat-icon class="material-icons-outlined">\n {{this.selected && !this.closed ? \'keyboard_arrow_down\' : \'keyboard_arrow_right\'}}\n </mat-icon>\n </div>\n <div *ngIf="this.completed || this.hasError" class="header-label">\n <mat-icon [ngClass]="this.completed ? \'green-check\' : \'red-error\'">\n {{getIcon()}}\n </mat-icon>\n </div>\n <span *ngIf="!this.hasError && !this.completed" class="header-label">{{(this.index + 1) + \'.\'}}</span>\n <div class="header-label"> {{this.label}}</div>\n</div>\n',inputs:["color"],host:{class:"mad-step-header",role:"tab"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".header{-webkit-tap-highlight-color:transparent;border:1px solid #d3d3d3;box-sizing:content-box;cursor:pointer;height:62px;outline:#f44336;overflow:hidden;width:100%}.header-label{align-items:center;display:flex}.step-state-complete{background:green;width:5px}.step-state-error{background:#f44336;width:5px}.step-state-neutral{background:#d3d3d3;width:5px}.green-check{color:green}.red-error{color:#f44336}"]}]}],rt.ctorParameters=function(){return[{type:C.FocusMonitor},{type:e.ElementRef}]},rt.propDecorators={index:[{type:e.Input}],label:[{type:e.Input}],state:[{type:e.Input}],errorMessage:[{type:e.Input}],selected:[{type:e.Input}],active:[{type:e.Input}],optional:[{type:e.Input}],hasError:[{type:e.Input}],completed:[{type:e.Input}],closed:[{type:e.Input}]};var lt={verticalStepTransition:v.trigger("stepTransition",[v.state("previous",v.style({height:"0px",visibility:"hidden"})),v.state("next",v.style({height:"0px",visibility:"hidden"})),v.state("current",v.style({height:"*",visibility:"visible"})),v.transition("* <=> current",v.animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},st=function(t){function n(n,i){var o=t.call(this,n)||this;return o.stepper=n,o._viewContainerRef=i,o.onNext=new e.EventEmitter,o.onDone=new e.EventEmitter,o.onHeaderClick=new e.EventEmitter,o.stepClosed=!1,o._isSelected=d.Subscription.EMPTY,o}return D(n,t),n.prototype.ngAfterContentInit=function(){var t=this;this._isSelected=this._stepper.steps.changes.pipe(h.switchMap((function(){return t._stepper.selectionChange.pipe(h.map((function(e){return e.selectedStep===t})),h.tap((function(){return t.stepClosed=!1})),h.startWith(t._stepper.selected===t))}))).subscribe()},n.prototype.ngOnDestroy=function(){this._isSelected.unsubscribe()},n.prototype.next=function(){this.stepValidation(),this.onNext.observers.length<=0&&this.stepper.next(),this.onNext.emit()},n.prototype.selectAndMarkAsTouched=function(t){var e,n;null===(n=null===(e=this._stepper.selected)||void 0===e?void 0:e.stepControl)||void 0===n||n.markAllAsTouched(),this.stepClosed=!1,this.onHeaderClick.observers.length<=0&&this.select(),this.onHeaderClick.emit(t)},n.prototype.completeLast=function(){this.stepValidation(),this.stepClosed=!0,this.onDone.observers.length<=0&&this.stepper.next(),this.onDone.emit()},n.prototype.resetValidations=function(){this.hasError=!1,this.completed=!0,this.state=A.STEP_STATE.DONE},n.prototype.stepValidation=function(){var t,e;null===(t=this.stepControl)||void 0===t||t.markAllAsTouched(),(null===(e=this.stepControl)||void 0===e?void 0:e.valid)?(this.hasError=!1,this.completed=!0,this.state=A.STEP_STATE.DONE):(this.completed=!1,this.hasError=!0,this.state=A.STEP_STATE.ERROR)},n}(A.CdkStep);st.decorators=[{type:e.Component,args:[{selector:"mad-step",template:'<ng-template let-last="last" let-nextBtnLbl="nextBtnLbl" let-doneBtnLbl="doneBtnLbl">\n <div class="step-container" fxLayout="column">\n <div class="step-content">\n <ng-content></ng-content>\n </div>\n <div class="step-buttons">\n <div *ngIf="!last">\n <button mat-stroked-button color="primary" (click)="next()">{{nextBtnLbl}}</button>\n </div>\n <div *ngIf="last">\n <button mat-stroked-button color="primary" (click)="completeLast()">{{doneBtnLbl}}</button>\n </div>\n </div>\n </div>\n</ng-template>\n',providers:[{provide:A.CdkStep,useExisting:st}],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".stepper-vertical{display:block}.mat-vertical-stepper-header{align-items:center;border:none!important;display:flex;height:10px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}.vertical-content-container{border:none}[dir=rtl] .vertical-content-container{margin-left:0;margin-right:36px}.vertical-stepper-content{outline:0;overflow:hidden}.vertical-content{padding:0 24px}.step-container{border-bottom:1px solid #d3d3d3;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3}.step-buttons,.step-content{padding:2em}"]}]}],st.ctorParameters=function(){return[{type:ct,decorators:[{type:e.Inject,args:[e.forwardRef((function(){return ct}))]}]},{type:e.ViewContainerRef}]},st.propDecorators={onNext:[{type:e.Output}],onDone:[{type:e.Output}],onHeaderClick:[{type:e.Output}]};var ct=function(t){function n(n,i,o,a){var r=t.call(this,n,i,o,a)||this;return r.animationDone=new e.EventEmitter,r.steps=new e.QueryList,r._animationDone=new d.Subject,r._orientation="vertical",r}return D(n,t),n.prototype.ngOnInit=function(){t.prototype.linear=!0},n.prototype.ngAfterContentInit=function(){var e=this;t.prototype.ngAfterContentInit.call(this),this.steps.changes.pipe(h.takeUntil(this._destroyed)).subscribe((function(){e._stateChanged()})),this._animationDone.pipe(h.distinctUntilChanged((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})),h.takeUntil(this._destroyed)).subscribe((function(t){"current"===t.toState&&e.animationDone.emit()}))},n.prototype._getAnimationDirection=function(e){var n,i;return this.selectedIndex===this.steps.length-1&&(null===(n=this._steps.last)||void 0===n?void 0:n.completed)&&(null===(i=this._steps.last)||void 0===i?void 0:i.stepClosed)?"next":t.prototype._getAnimationDirection.call(this,e)},n.prototype._stepIsNavigable=function(t,e){return e.completed||this.selectedIndex===t||!this.linear},n}(A.CdkStepper);ct.decorators=[{type:e.Component,args:[{selector:"mad-stepper",template:'\x3c!-- Vertical stepper --\x3e\n<ng-container>\n <div *ngFor="let step of steps; let i = index; let isLast = last; let isFirst = first">\n <ng-container\n [ngTemplateOutlet]="stepTemplate"\n [ngTemplateOutletContext]="{step: step, i: i}"></ng-container>\n <div class="vertical-content-container" [class.mat-stepper-vertical-line]="!isLast">\n <div class="vertical-stepper-content" role="tabpanel"\n [@stepTransition]="_getAnimationDirection(i)"\n (@stepTransition.done)="_animationDone.next($event)"\n [id]="_getStepContentId(i)"\n [attr.aria-labelledby]="_getStepLabelId(i)"\n [attr.aria-expanded]="selectedIndex === i">\n <div class="vertical-content">\n <ng-container [ngTemplateOutlet]="step.content"\n [ngTemplateOutletContext]="{step: step, i: i, last: isLast, first: isFirst, nextBtnLbl: this.nextButtonLabel, doneBtnLbl: this.doneButtonLabel}"></ng-container>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template let-step="step" let-i="i" #stepTemplate>\n <mad-step-header\n class="mat-vertical-stepper-header"\n (click)="step.selectAndMarkAsTouched(i)"\n (keydown)="_onKeydown($event)"\n [tabIndex]="_getFocusIndex() === i ? 0 : -1"\n [id]="_getStepLabelId(i)"\n [attr.aria-posinset]="i + 1"\n [attr.aria-setsize]="steps.length"\n [attr.aria-controls]="_getStepContentId(i)"\n [attr.aria-selected]="selectedIndex == i"\n [attr.aria-label]="step.ariaLabel || null"\n [attr.aria-labelledby]="(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null"\n [attr.aria-disabled]="_stepIsNavigable(i, step) ? null : true"\n [index]="i"\n [completed]="step.completed"\n [hasError]="step.hasError"\n [state]="_getIndicatorType(i, step.state)"\n [label]="step.stepLabel || step.label"\n [selected]="selectedIndex === i"\n [active]="_stepIsNavigable(i, step)"\n [optional]="step.optional"\n [closed]="step.stepClosed"\n [errorMessage]="step.errorMessage"></mad-step-header>\n</ng-template>\n',host:{"[class.stepper-vertical]":"true","[attr.aria-orientation]":'"vertical"',role:"tablist"},animations:[lt.verticalStepTransition],providers:[{provide:A.CdkStepper,useExisting:ct}],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".stepper-vertical{display:block}.mat-vertical-stepper-header{align-items:center;border:none!important;display:flex;height:10px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}.vertical-content-container{border:none}[dir=rtl] .vertical-content-container{margin-left:0;margin-right:36px}.vertical-stepper-content{outline:0;overflow:hidden}.vertical-content{padding:0 24px}.step-container{border-bottom:1px solid #d3d3d3;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3}.step-buttons,.step-content{padding:2em}"]}]}],ct.ctorParameters=function(){return[{type:E.Directionality,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},ct.propDecorators={animationDone:[{type:e.Output}],nextButtonLabel:[{type:e.Input}],doneButtonLabel:[{type:e.Input}],_stepHeader:[{type:e.ViewChildren,args:[rt]}],_steps:[{type:e.ContentChildren,args:[st,{descendants:!0}]}]};var ut=function(){};ut.decorators=[{type:e.NgModule,args:[{declarations:[ct,rt,st],imports:[n.CommonModule,o.MatButtonModule,a.MatIconModule,A.CdkStepperModule,k.FlexModule],exports:[ct,rt,st]}]}];var pt=function(){};pt.decorators=[{type:e.NgModule,args:[{exports:[U,B,G,M,Z,J,it,Y]}]}],t.ButtonModule=B,t.CardModule=J,t.MaterialActionButtonComponent=w,t.MaterialActionButtonModule=M,t.MaterialAddonsModule=pt,t.NumberFormatService=H,t.NumericFieldModule=Z,t.QuickListModule=it,t.ReadOnlyFormFieldComponent=q,t.ReadOnlyFormFieldModule=U,t.ReadOnlyFormFieldWrapperComponent=j,t.StepComponent=st,t.StepHeaderComponent=rt,t.StepperComponent=ct,t.StepperModule=ut,t.TableModule=at,t.ThrottleClickDirective=X,t.ThrottleClickModule=Y,t.ToolbarComponent=z,t.ToolbarModule=G,t.ToolbarService=W,t.madStepperAnimations=lt,t.ɵa=_,t.ɵb=L,t.ɵc=N,t.ɵd=F,t.ɵe=R,t.ɵf=V,t.ɵg=K,t.ɵh=Q,t.ɵi=et,t.ɵj=tt,t.ɵk=nt,t.ɵl=ot,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
17
17
|
//# sourceMappingURL=porscheinformatik-material-addons.umd.min.js.map
|