{"version":3,"file":"mtxProgress.mjs","sources":["../../../projects/extensions/progress/progress.component.ts","../../../projects/extensions/progress/progress.component.html","../../../projects/extensions/progress/progress.module.ts","../../../projects/extensions/progress/mtxProgress.ts"],"sourcesContent":["import { Component, Input, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\n\nexport type MtxProgressType = 'default' | 'info' | 'success' | 'warning' | 'danger';\n\n@Component({\n  selector: 'mtx-progress',\n  exportAs: 'mtxProgress',\n  host: {\n    'class': 'mtx-progress',\n    '[style.height]': 'height',\n    '[style.backgroundColor]': 'background',\n  },\n  templateUrl: './progress.component.html',\n  styleUrls: ['./progress.component.scss'],\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MtxProgressComponent {\n  /** The progress's type. Can be `default`, `info`, `success`, `warning` or `danger`. */\n  @Input() type: MtxProgressType = 'info';\n\n  /** The value of the progress. */\n  @Input() value = 0;\n\n  /** The height of the progress. */\n  @Input() height!: string;\n\n  /** The text color of the progress. */\n  @Input() color!: string;\n\n  /** The bar color of the progress. */\n  @Input() foreground!: string;\n\n  /** The track color of the progress. */\n  @Input() background!: string;\n\n  /** Whether to apply the striped class. */\n  @Input()\n  get striped(): boolean {\n    return this._striped;\n  }\n  set striped(value: boolean) {\n    this._striped = coerceBooleanProperty(value);\n  }\n  private _striped = false;\n\n  /** Whether to apply the animated class. */\n  @Input()\n  get animate(): boolean {\n    return this._animate;\n  }\n  set animate(value: boolean) {\n    this._animate = coerceBooleanProperty(value);\n  }\n  private _animate = false;\n\n  static ngAcceptInputType_striped: BooleanInput;\n  static ngAcceptInputType_animate: BooleanInput;\n}\n","<div [class]=\"'mtx-progress-fill mtx-progress-fill-' + type\"\n     [ngClass]=\"{'mtx-progress-fill-striped': striped, 'mtx-progress-fill-animated': animate}\"\n     [ngStyle]=\"{ 'width.%': value, 'background-color': foreground }\"\n     role=\"progress-fill\">\n  <ng-content></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MtxProgressComponent } from './progress.component';\n\n@NgModule({\n  imports: [CommonModule],\n  exports: [MtxProgressComponent],\n  declarations: [MtxProgressComponent],\n})\nexport class MtxProgressModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAkBa,oBAAoB,CAAA;AAbjC,IAAA,WAAA,GAAA;;AAeW,QAAA,IAAI,CAAA,IAAA,GAAoB,MAAM,CAAC;;AAG/B,QAAA,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;AAsBX,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAUjB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;KAI1B;;AArBC,IAAA,IACI,OAAO,GAAA;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;KACtB;IACD,IAAI,OAAO,CAAC,KAAc,EAAA;AACxB,QAAA,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;KAC9C;;AAID,IAAA,IACI,OAAO,GAAA;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;KACtB;IACD,IAAI,OAAO,CAAC,KAAc,EAAA;AACxB,QAAA,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;KAC9C;;oIApCU,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,mBAAA,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,kXClBjC,gTAMA,EAAA,MAAA,EAAA,CAAA,otBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EA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