{"version":3,"file":"meshmakers-shared-ui-legacy.mjs","sources":["../../../../projects/meshmakers/shared-ui-legacy/src/lib/confirmation/confirmation.model.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/confirmation/confirmation-dialog.component.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/confirmation/confirmation.service.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/shared-ui-module/mm-shared-ui-module.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/abstract-details/abstract-details-component.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/common-validators/common-validators.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/progress-window/progress-value.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/progress-window/progress-window.component.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/progress-window/progress-window.service.ts","../../../../projects/meshmakers/shared-ui-legacy/src/lib/import-strategy/import-strategy-dto.ts","../../../../projects/meshmakers/shared-ui-legacy/src/public-api.ts","../../../../projects/meshmakers/shared-ui-legacy/src/meshmakers-shared-ui-legacy.ts"],"sourcesContent":["export enum ButtonTypes {\n  Ok,\n  Cancel,\n  Yes,\n  No\n}\n\nexport enum DialogType {\n  YesNo = 0,\n  YesNoCancel = 1,\n  OkCancel = 2,\n  Ok = 3\n}\n\nexport interface ConfirmationWindowData {\n  title: string;\n  message: string;\n  dialogType: DialogType;\n}\n\nexport class ConfirmationWindowResult {\n  result: ButtonTypes;\n\n  constructor(result: ButtonTypes) {\n    this.result = result;\n  }\n}\n","import { Component, inject, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { ButtonTypes, ConfirmationWindowData, ConfirmationWindowResult, DialogType } from './confirmation.model';\n\n@Component({\n  selector: 'mm-confirmation-dialog',\n  standalone: true,\n  imports: [MatDialogModule, MatButtonModule],\n  changeDetection: ChangeDetectionStrategy.Eager,\n  template: `\n    <h2 mat-dialog-title>{{ data.title }}</h2>\n    <mat-dialog-content>{{ data.message }}</mat-dialog-content>\n    <mat-dialog-actions align=\"end\">\n      <button mat-flat-button color=\"primary\" (click)=\"onButton1()\">{{ button1Text }}</button>\n      @if (button2Text) {\n        <button mat-stroked-button (click)=\"onButton2()\">{{ button2Text }}</button>\n      }\n      @if (button3Text) {\n        <button mat-stroked-button (click)=\"onButton3()\">{{ button3Text }}</button>\n      }\n    </mat-dialog-actions>\n  `\n})\nexport class ConfirmationDialogComponent implements OnInit {\n  private readonly dialogRef = inject<MatDialogRef<ConfirmationDialogComponent>>(MatDialogRef);\n  readonly data = inject<ConfirmationWindowData>(MAT_DIALOG_DATA);\n\n  button1Text = 'OK';\n  button2Text: string | null = null;\n  button3Text: string | null = null;\n\n  private button1Result: ButtonTypes = ButtonTypes.Ok;\n  private button2Result: ButtonTypes | null = null;\n  private button3Result: ButtonTypes | null = null;\n\n  ngOnInit(): void {\n    switch (this.data.dialogType) {\n      case DialogType.OkCancel:\n        this.button1Text = 'OK';\n        this.button1Result = ButtonTypes.Ok;\n        this.button2Text = 'Cancel';\n        this.button2Result = ButtonTypes.Cancel;\n        break;\n      case DialogType.YesNoCancel:\n        this.button1Text = 'Yes';\n        this.button1Result = ButtonTypes.Yes;\n        this.button2Text = 'No';\n        this.button2Result = ButtonTypes.No;\n        this.button3Text = 'Cancel';\n        this.button3Result = ButtonTypes.Cancel;\n        break;\n      case DialogType.Ok:\n        this.button1Text = 'OK';\n        this.button1Result = ButtonTypes.Ok;\n        break;\n      default: // YesNo\n        this.button1Text = 'Yes';\n        this.button1Result = ButtonTypes.Yes;\n        this.button2Text = 'No';\n        this.button2Result = ButtonTypes.No;\n        break;\n    }\n  }\n\n  onButton1(): void {\n    this.dialogRef.close(new ConfirmationWindowResult(this.button1Result));\n  }\n\n  onButton2(): void {\n    this.dialogRef.close(new ConfirmationWindowResult(this.button2Result!));\n  }\n\n  onButton3(): void {\n    this.dialogRef.close(new ConfirmationWindowResult(this.button3Result!));\n  }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { firstValueFrom } from 'rxjs';\nimport { ConfirmationDialogComponent } from './confirmation-dialog.component';\nimport {\n  ButtonTypes,\n  ConfirmationWindowData,\n  ConfirmationWindowResult,\n  DialogType,\n} from './confirmation.model';\n\n@Injectable()\nexport class ConfirmationService {\n  private readonly dialog = inject(MatDialog);\n\n  public async showYesNoConfirmationDialog(title: string, message: string): Promise<boolean> {\n    const result = await this.openDialog(title, message, DialogType.YesNo);\n    if (result instanceof ConfirmationWindowResult) {\n      return result.result === ButtonTypes.Yes;\n    }\n    return false;\n  }\n\n  public async showYesNoCancelConfirmationDialog(title: string, message: string): Promise<ConfirmationWindowResult | undefined> {\n    const result = await this.openDialog(title, message, DialogType.YesNoCancel);\n    if (result instanceof ConfirmationWindowResult) {\n      return result;\n    }\n    return undefined;\n  }\n\n  public async showOkCancelConfirmationDialog(title: string, message: string): Promise<boolean> {\n    const result = await this.openDialog(title, message, DialogType.OkCancel);\n    if (result instanceof ConfirmationWindowResult) {\n      return result.result === ButtonTypes.Ok;\n    }\n    return false;\n  }\n\n  public async showOkDialog(title: string, message: string): Promise<boolean> {\n    const result = await this.openDialog(title, message, DialogType.Ok);\n    if (result instanceof ConfirmationWindowResult) {\n      return result.result === ButtonTypes.Ok;\n    }\n    return false;\n  }\n\n  private async openDialog(title: string, message: string, dialogType: DialogType): Promise<ConfirmationWindowResult | undefined> {\n    const dialogRef = this.dialog.open(ConfirmationDialogComponent, {\n      data: { title, message, dialogType } as ConfirmationWindowData,\n    });\n\n    return firstValueFrom(dialogRef.afterClosed());\n  }\n}\n","/**\n * Backward-compatible MmSharedUiModule for legacy apps that use\n * importProvidersFrom(MmSharedUiModule.forRoot()).\n *\n * Provides a Material-based ConfirmationService as a drop-in replacement\n * for the Kendo-based version from @meshmakers/shared-ui.\n */\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { ConfirmationService } from '../confirmation/confirmation.service';\n\n@NgModule({\n  declarations: [],\n  imports: [],\n  exports: []\n})\nexport class MmSharedUiModule {\n  static forRoot(): ModuleWithProviders<MmSharedUiModule> {\n    return {\n      ngModule: MmSharedUiModule,\n      providers: [\n        ConfirmationService,\n      ]\n    };\n  }\n}\n","/**\n * Backward-compatible AbstractDetailsComponent for legacy apps.\n */\nimport { FormGroup } from '@angular/forms';\nimport { IsoDateTime } from '@meshmakers/shared-services';\n\nexport abstract class AbstractDetailsComponent<TEntity> {\n  private _loading: boolean;\n  private readonly _ownerForm: FormGroup;\n  private _entity: TEntity | null;\n\n  protected constructor(formGroup: FormGroup) {\n    this._loading = true;\n    this._entity = null;\n    this._ownerForm = formGroup;\n  }\n\n  public get loading(): boolean {\n    return this._loading;\n  }\n\n  public set loading(value: boolean) {\n    this._loading = value;\n  }\n\n  public get entity(): TEntity | null {\n    return this._entity;\n  }\n\n  public set entity(value: TEntity | null) {\n    this._entity = value;\n  }\n\n  public get ownerForm(): FormGroup {\n    return this._ownerForm;\n  }\n\n  public get isLoaded(): boolean {\n    return this._entity !== null;\n  }\n\n  public hasError = (controlName: string, errorName: string): boolean => {\n    return this.ownerForm?.controls[controlName].hasError(errorName);\n  };\n\n  public hasFormError = (errorName: string): boolean => {\n    return this.ownerForm?.hasError(errorName);\n  };\n\n  public updateDateTime(controlName: string): void {\n    this.ownerForm?.get(controlName)?.setValue(IsoDateTime.utcToLocalDateTimeIso(IsoDateTime.currentUtcDateTimeIso()));\n  }\n\n  public copyInputMessage(inputElement: HTMLInputElement): void {\n    inputElement.select();\n    document.execCommand('copy');\n    inputElement.setSelectionRange(0, 0);\n  }\n\n  protected onProgressStarting(): void {\n    this._loading = true;\n    this.ownerForm?.disable();\n    this.ownerForm?.updateValueAndValidity();\n  }\n\n  protected onProgressCompleted(): void {\n    this.ownerForm?.enable();\n    this._loading = false;\n  }\n}\n","/**\n * Backward-compatible CommonValidators for legacy apps.\n */\nimport { AbstractControl, ValidatorFn, Validators } from '@angular/forms';\n\nexport type CompareValueFn<TValue> = (value: TValue) => boolean;\n\nexport class CommonValidators {\n  public static phoneNumber(): ValidatorFn {\n    return Validators.pattern('^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\\\s\\\\./0-9]*$');\n  }\n\n  public static httpUri(): ValidatorFn {\n    return Validators.pattern(\n      '^(http:\\\\/\\\\/|https:\\\\/\\\\/)([a-zA-Z0-9-_]+\\\\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+(\\\\.[a-zA-Z]{2,11}?)*(:[0-9]{2,5}){0,1}\\\\/{0,1}$'\n    );\n  }\n\n  public static ensureSameValue(sourceControlName: string): ValidatorFn {\n    return (control: AbstractControl) => {\n      const value = control.value;\n      return value === control.parent?.get(sourceControlName)?.value ? null : { notSame: true };\n    };\n  }\n\n  public static conditionalRequired<TCompareValue>(\n    sourceControlName: string,\n    sourceValueCompareExpression: CompareValueFn<TCompareValue>\n  ): ValidatorFn {\n    return (control: AbstractControl) => {\n      if (control.parent != null && sourceValueCompareExpression((control.parent.get(sourceControlName)?.value as TCompareValue))) {\n        const val = control.value;\n        const isEmpty = val == null || (typeof val === 'string' && val.length === 0) || (Array.isArray(val) && val.length === 0);\n        return isEmpty ? { required: true } : null;\n      }\n      return null;\n    };\n  }\n\n  public static dependentControls(controlNames: string[]): ValidatorFn {\n    return (control: AbstractControl) => {\n      controlNames.forEach((controlName) => {\n        control.parent?.get(controlName)?.updateValueAndValidity();\n      });\n      return null;\n    };\n  }\n}\n","export class ProgressValue {\n  statusText: string | null;\n  progressValue: number;\n\n  constructor() {\n    this.statusText = null;\n    this.progressValue = 0;\n  }\n}\n","import { ChangeDetectorRef, Component, inject, OnDestroy, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { Observable, Subscription } from 'rxjs';\nimport { ProgressValue } from './progress-value';\n\nexport interface ProgressWindowData {\n  isDeterminate: boolean;\n  progress: Observable<ProgressValue>;\n  isCancelOperationAvailable: boolean;\n  cancelOperation: () => void;\n}\n\n@Component({\n  selector: 'mm-progress-window',\n  standalone: true,\n  imports: [MatDialogModule, MatButtonModule, MatProgressBarModule],\n  template: `\n    <mat-dialog-content>\n      <div class=\"progress-section\">\n        @if (isDeterminate) {\n          <mat-progress-bar mode=\"determinate\" [value]=\"progressPercent\"></mat-progress-bar>\n        } @else {\n          <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n        }\n        @if (statusText) {\n          <p class=\"status-text\">{{ statusText }}</p>\n        }\n      </div>\n    </mat-dialog-content>\n    <mat-dialog-actions align=\"end\">\n      @if (isCancelOperationAvailable) {\n        <button mat-stroked-button (click)=\"onCancelClick()\">Cancel</button>\n      }\n    </mat-dialog-actions>\n  `,\n  changeDetection: ChangeDetectionStrategy.Eager,\n  styles: [`\n    .progress-section {\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n      min-width: 350px;\n    }\n    .status-text {\n      margin: 0;\n      font-size: 14px;\n      text-align: center;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n    }\n  `]\n})\nexport class ProgressWindowComponent implements AfterViewInit, OnDestroy {\n  private readonly dialogRef = inject<MatDialogRef<ProgressWindowComponent>>(MatDialogRef);\n  private readonly data = inject<ProgressWindowData>(MAT_DIALOG_DATA);\n  private readonly cdr = inject(ChangeDetectorRef);\n  private progressSubscription?: Subscription;\n\n  isDeterminate: boolean;\n  isCancelOperationAvailable: boolean;\n  statusText: string | null = null;\n  progressPercent = 0;\n\n  constructor() {\n    this.isDeterminate = this.data.isDeterminate;\n    this.isCancelOperationAvailable = this.data.isCancelOperationAvailable;\n  }\n\n  ngAfterViewInit(): void {\n    if (this.data.progress) {\n      this.progressSubscription = this.data.progress.subscribe((value: ProgressValue) => {\n        this.statusText = value.statusText;\n        this.progressPercent = value.progressValue;\n        this.cdr.detectChanges();\n      });\n    }\n  }\n\n  ngOnDestroy(): void {\n    this.progressSubscription?.unsubscribe();\n  }\n\n  onCancelClick(): void {\n    if (this.data.cancelOperation) {\n      this.data.cancelOperation();\n    }\n    this.dialogRef.close();\n  }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { Observable } from 'rxjs';\nimport { ProgressValue } from './progress-value';\nimport { ProgressWindowComponent, ProgressWindowData } from './progress-window.component';\n\n/**\n * Reference returned by showProgress methods.\n * Provides a close() method compatible with the Kendo DialogRef API.\n */\nexport class ProgressDialogRef {\n  constructor(private readonly dialogRef: MatDialogRef<ProgressWindowComponent>) {}\n\n  close(): void {\n    this.dialogRef.close();\n  }\n}\n\nexport interface ProgressWindowConfig {\n  title: string;\n  progress: Observable<ProgressValue>;\n  isDeterminate?: boolean;\n  isCancelOperationAvailable?: boolean;\n  cancelOperation?: () => void;\n  width?: number;\n  height?: number | string;\n}\n\nexport interface ProgressWindowOptions {\n  isCancelOperationAvailable?: boolean;\n  cancelOperation?: () => void;\n  width?: number;\n  height?: number | string;\n}\n\n@Injectable()\nexport class ProgressWindowService {\n  private readonly dialog = inject(MatDialog);\n\n  showProgress(config: ProgressWindowConfig): ProgressDialogRef {\n    const dialogRef = this.dialog.open(ProgressWindowComponent, {\n      data: {\n        isDeterminate: config.isDeterminate !== false,\n        progress: config.progress,\n        isCancelOperationAvailable: config.isCancelOperationAvailable || false,\n        cancelOperation: config.cancelOperation || (() => { /* noop */ }),\n      } as ProgressWindowData,\n      width: config.width ? `${config.width}px` : '450px',\n      disableClose: true,\n    });\n\n    if (config.title) {\n      // MatDialog doesn't have a built-in title on the ref, but we set it via the component\n    }\n\n    return new ProgressDialogRef(dialogRef);\n  }\n\n  showDeterminateProgress(\n    title: string,\n    progress: Observable<ProgressValue>,\n    options?: Partial<ProgressWindowOptions>\n  ): ProgressDialogRef {\n    return this.showProgress({\n      title,\n      isDeterminate: true,\n      progress,\n      ...options\n    });\n  }\n\n  showIndeterminateProgress(\n    title: string,\n    progress: Observable<ProgressValue>,\n    options?: Partial<ProgressWindowOptions>\n  ): ProgressDialogRef {\n    return this.showProgress({\n      title,\n      isDeterminate: false,\n      progress,\n      ...options\n    });\n  }\n}\n","export enum ImportStrategyDto {\n  InsertOnly = 0,\n  Upsert = 1\n}\n","/*\n * Public API Surface of shared-ui-legacy\n */\n\nexport * from './lib/shared-ui-module';\nexport * from './lib/abstract-details';\nexport * from './lib/common-validators';\nexport * from './lib/confirmation';\nexport * from './lib/progress-window';\nexport * from './lib/import-strategy';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,WAAA,CAAA,IAAA,CAAA,GAAA,CAAA,CAAA,GAAA,IAAE;AACF,IAAA,WAAA,CAAA,WAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAM;AACN,IAAA,WAAA,CAAA,WAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAG;AACH,IAAA,WAAA,CAAA,WAAA,CAAA,IAAA,CAAA,GAAA,CAAA,CAAA,GAAA,IAAE;AACJ,CAAC,EALW,WAAW,KAAX,WAAW,GAAA,EAAA,CAAA,CAAA;IAOX;AAAZ,CAAA,UAAY,UAAU,EAAA;AACpB,IAAA,UAAA,CAAA,UAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAS;AACT,IAAA,UAAA,CAAA,UAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,GAAA,aAAe;AACf,IAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAY;AACZ,IAAA,UAAA,CAAA,UAAA,CAAA,IAAA,CAAA,GAAA,CAAA,CAAA,GAAA,IAAM;AACR,CAAC,EALW,UAAU,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