@pumpkin-tech/pumpkin-tech-ng 0.2.26 → 0.2.27

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.
@@ -58,10 +58,10 @@ import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/mat
58
58
  import 'moment/locale/pt-br';
59
59
  import * as i2$2 from '@angular/router';
60
60
  import { RouterModule, NavigationEnd } from '@angular/router';
61
- import * as i8 from '@angular/cdk/drag-drop';
61
+ import * as i8$1 from '@angular/cdk/drag-drop';
62
62
  import { CdkDrag, CdkDragHandle, moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
63
63
  import * as i2$3 from '@angular/platform-browser';
64
- import * as i6 from 'ngx-material-timepicker';
64
+ import * as i8 from 'ngx-material-timepicker';
65
65
  import { NgxMaterialTimepickerModule } from 'ngx-material-timepicker';
66
66
  import { SelectionModel } from '@angular/cdk/collections';
67
67
  import { faker } from '@faker-js/faker';
@@ -5658,12 +5658,45 @@ class InputDateComponent extends BaseField {
5658
5658
  seconds = true;
5659
5659
  timeLabel = 'Hora';
5660
5660
  defaultTime = '00:00:00';
5661
+ timepickerTheme;
5661
5662
  timeZone;
5662
5663
  emit = 'isoDate';
5663
5664
  timeString = '';
5664
5665
  onChange = () => { };
5665
5666
  onTouched = () => { };
5666
5667
  get isDisabled() { return this.disabled || this.loading; }
5668
+ defaultTimepickerTheme = {
5669
+ container: {
5670
+ bodyBackgroundColor: 'var(--app-surface, #fff)',
5671
+ buttonColor: 'var(--app-link-accent, #3f51b5)',
5672
+ primaryFontFamily: 'var(--app-font-family, Roboto, sans-serif)',
5673
+ },
5674
+ dial: {
5675
+ dialBackgroundColor: 'var(--app-link-accent, #3f51b5)',
5676
+ dialInactiveColor: 'color-mix(in srgb, var(--app-text-on-accent, #fff) 62%, transparent)',
5677
+ dialActiveColor: 'var(--app-text-on-accent, #fff)',
5678
+ dialEditableActiveColor: 'var(--app-link-accent, #3f51b5)',
5679
+ dialEditableBackgroundColor: 'var(--app-surface, #fff)',
5680
+ },
5681
+ clockFace: {
5682
+ clockFaceBackgroundColor: 'var(--app-surface-2, #f0f0f0)',
5683
+ clockFaceTimeInactiveColor: 'var(--app-text, #1f2937)',
5684
+ clockFaceInnerTimeInactiveColor: 'var(--app-muted, #6b7280)',
5685
+ clockFaceTimeActiveColor: 'var(--app-text-on-accent, #fff)',
5686
+ clockFaceTimeDisabledColor: 'var(--app-muted, #9ca3af)',
5687
+ clockHandColor: 'var(--app-link-accent, #3f51b5)',
5688
+ },
5689
+ };
5690
+ get resolvedTimepickerTheme() {
5691
+ return this.timepickerTheme || this.defaultTimepickerTheme;
5692
+ }
5693
+ get timePickerDefaultTime() {
5694
+ return '00:00';
5695
+ }
5696
+ get timePickerValue() {
5697
+ const parsed = this.tryParseTime(this.timeString);
5698
+ return parsed ? `${this.pad(parsed[0])}:${this.pad(parsed[1])}` : '';
5699
+ }
5667
5700
  constructor(el, cdr) {
5668
5701
  super(el);
5669
5702
  this.cdr = cdr;
@@ -5708,7 +5741,34 @@ class InputDateComponent extends BaseField {
5708
5741
  // UI
5709
5742
  onTimeInput(v) {
5710
5743
  this.timeString = v || '';
5744
+ if (this.isValidTime(this.timeString))
5745
+ this.emitCombined();
5746
+ }
5747
+ onTimeBlur() {
5748
+ this.onTouched();
5749
+ if (!this.timeString) {
5750
+ this.emitCombined();
5751
+ return;
5752
+ }
5753
+ const parsed = this.tryParseTime(this.timeString);
5754
+ if (parsed) {
5755
+ this.timeString = this.formatTimeParts(parsed);
5756
+ this.emitCombined();
5757
+ }
5758
+ this.cdr.detectChanges();
5759
+ }
5760
+ onTimeSet(raw) {
5761
+ const parsed = this.tryParseTime(raw);
5762
+ if (!parsed)
5763
+ return;
5764
+ this.timeString = this.formatTimeParts(parsed);
5711
5765
  this.emitCombined();
5766
+ this.cdr.detectChanges();
5767
+ }
5768
+ openTimePicker(picker) {
5769
+ if (this.isDisabled)
5770
+ return;
5771
+ picker.open();
5712
5772
  }
5713
5773
  emitCombined() {
5714
5774
  const d = this.combine(this.dateCtrl.value, this.timeString);
@@ -5721,15 +5781,37 @@ class InputDateComponent extends BaseField {
5721
5781
  if (!date)
5722
5782
  return null;
5723
5783
  const t = this.withTime ? (time || this.defaultTime) : '00:00:00';
5724
- const [hh, mm, ss] = this.normalizeTime(t);
5784
+ const [hh, mm, ss] = this.normalizeTime(t, true);
5725
5785
  const d = new Date(date);
5726
5786
  d.setHours(hh, mm, ss, 0);
5727
5787
  return d;
5728
5788
  }
5729
- normalizeTime(t) {
5730
- const parts = t.split(':').map(p => +p || 0);
5789
+ normalizeTime(t, fallbackToDefault = false) {
5790
+ const parsed = this.tryParseTime(t);
5791
+ if (parsed)
5792
+ return parsed;
5793
+ if (fallbackToDefault && t !== this.defaultTime)
5794
+ return this.normalizeTime(this.defaultTime);
5795
+ return [0, 0, 0];
5796
+ }
5797
+ tryParseTime(t) {
5798
+ const match = String(t || '').trim().match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
5799
+ if (!match)
5800
+ return null;
5801
+ const parts = [match[1], match[2], match[3] ?? '0'].map(p => Number(p));
5802
+ if (parts.some(p => !Number.isFinite(p)))
5803
+ return null;
5804
+ if (parts[0] > 23 || parts[1] > 59 || parts[2] > 59)
5805
+ return null;
5731
5806
  return [this.clamp(parts[0], 0, 23), this.clamp(parts[1] ?? 0, 0, 59), this.clamp(parts[2] ?? 0, 0, 59)];
5732
5807
  }
5808
+ isValidTime(t) {
5809
+ return this.tryParseTime(t) != null;
5810
+ }
5811
+ formatTimeParts(parts) {
5812
+ const [hh, mm, ss] = parts;
5813
+ return this.seconds ? `${this.pad(hh)}:${this.pad(mm)}:${this.pad(ss)}` : `${this.pad(hh)}:${this.pad(mm)}`;
5814
+ }
5733
5815
  clamp(v, min, max) { return Math.max(min, Math.min(max, v)); }
5734
5816
  parseToDate(v) {
5735
5817
  if (v instanceof Date)
@@ -5813,7 +5895,7 @@ class InputDateComponent extends BaseField {
5813
5895
  return (asUTC.getTime() - date.getTime()) / 60000;
5814
5896
  }
5815
5897
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDateComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5816
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputDateComponent, isStandalone: true, selector: "ptech-input-date", inputs: { min: "min", max: "max", startAt: "startAt", startView: "startView", touchUi: "touchUi", panelClass: "panelClass", dateFilter: "dateFilter", withTime: "withTime", seconds: "seconds", timeLabel: "timeLabel", defaultTime: "defaultTime", timeZone: "timeZone", emit: "emit" }, outputs: { dateChange: "dateChange", opened: "opened", closed: "closed" }, providers: [{
5898
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputDateComponent, isStandalone: true, selector: "ptech-input-date", inputs: { min: "min", max: "max", startAt: "startAt", startView: "startView", touchUi: "touchUi", panelClass: "panelClass", dateFilter: "dateFilter", withTime: "withTime", seconds: "seconds", timeLabel: "timeLabel", defaultTime: "defaultTime", timepickerTheme: "timepickerTheme", timeZone: "timeZone", emit: "emit" }, outputs: { dateChange: "dateChange", opened: "opened", closed: "closed" }, providers: [{
5817
5899
  provide: NG_VALUE_ACCESSOR,
5818
5900
  useExisting: forwardRef(() => InputDateComponent),
5819
5901
  multi: true
@@ -5860,29 +5942,41 @@ class InputDateComponent extends BaseField {
5860
5942
  <mat-form-field *ngIf="withTime" [appearance]="appearance" class="field time">
5861
5943
  <mat-label>{{ timeLabel }}</mat-label>
5862
5944
  <input
5863
- #timeInputElement
5864
5945
  matInput
5865
- type="time"
5866
- [step]="seconds ? 1 : 60"
5867
5946
  [value]="timeString"
5868
5947
  [disabled]="isDisabled"
5869
- (change)="onTimeInput($any($event.target).value)"
5870
- (blur)="onTouched()"
5948
+ [placeholder]="seconds ? 'HH:mm:ss' : 'HH:mm'"
5949
+ [maxLength]="seconds ? 8 : 5"
5950
+ autocomplete="off"
5951
+ (click)="openTimePicker(timePicker)"
5952
+ (input)="onTimeInput($any($event.target).value)"
5953
+ (blur)="onTimeBlur()"
5871
5954
  />
5872
- <mat-icon
5955
+
5956
+ <ngx-material-timepicker
5957
+ #timePicker
5958
+ [theme]="resolvedTimepickerTheme"
5959
+ [format]="24"
5960
+ [defaultTime]="timePickerValue || timePickerDefaultTime"
5961
+ timepickerClass="ptech-timepicker-panel"
5962
+ (timeSet)="onTimeSet($event)">
5963
+ </ngx-material-timepicker>
5964
+
5965
+ <ngx-material-timepicker-toggle
5873
5966
  matSuffix
5874
- class="ptech-time-icon"
5875
- (click)="timeInputElement.focus()">
5876
- schedule
5877
- </mat-icon>
5967
+ class="ptech-time-toggle"
5968
+ [for]="timePicker"
5969
+ [disabled]="isDisabled">
5970
+ <mat-icon ngxMaterialTimepickerToggleIcon>schedule</mat-icon>
5971
+ </ngx-material-timepicker-toggle>
5878
5972
  </mat-form-field>
5879
5973
  </div>
5880
5974
  </div>
5881
- `, isInline: true, styles: [":host{display:block;width:100%}.input-date-container{width:100%;min-width:0}.row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}.ptech-time-icon{color:var(--ptech-field-text, var(--app-text, inherit))!important;cursor:default}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;padding:0 12px 0 4px}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i3$4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3$4.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
5975
+ `, isInline: true, styles: [":host{display:block;width:100%}.input-date-container{width:100%;min-width:0}.row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-text, var(--app-text, inherit))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i3$4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3$4.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: NgxMaterialTimepickerModule }, { kind: "component", type: i8.NgxMaterialTimepickerComponent, selector: "ngx-material-timepicker", inputs: ["cancelBtnTmpl", "editableHintTmpl", "confirmBtnTmpl", "ESC", "enableKeyboardInput", "preventOverlayClick", "disableAnimation", "appendToInput", "hoursOnly", "defaultTime", "timepickerClass", "theme", "min", "max", "ngxMaterialTimepickerTheme", "format", "minutesGap"], outputs: ["timeSet", "opened", "closed", "hourSelected", "timeChanged"] }, { kind: "component", type: i8.NgxMaterialTimepickerToggleComponent, selector: "ngx-material-timepicker-toggle", inputs: ["for", "disabled"] }, { kind: "directive", type: i8.NgxMaterialTimepickerToggleIconDirective, selector: "[ngxMaterialTimepickerToggleIcon]" }] });
5882
5976
  }
5883
5977
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDateComponent, decorators: [{
5884
5978
  type: Component,
5885
- args: [{ selector: 'ptech-input-date', imports: [CoreMaterialModule], template: `
5979
+ args: [{ selector: 'ptech-input-date', imports: [CoreMaterialModule, NgxMaterialTimepickerModule], template: `
5886
5980
  <div class="input-date-container">
5887
5981
  <div class="row">
5888
5982
  <mat-form-field [appearance]="appearance" class="field">
@@ -5925,21 +6019,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5925
6019
  <mat-form-field *ngIf="withTime" [appearance]="appearance" class="field time">
5926
6020
  <mat-label>{{ timeLabel }}</mat-label>
5927
6021
  <input
5928
- #timeInputElement
5929
6022
  matInput
5930
- type="time"
5931
- [step]="seconds ? 1 : 60"
5932
6023
  [value]="timeString"
5933
6024
  [disabled]="isDisabled"
5934
- (change)="onTimeInput($any($event.target).value)"
5935
- (blur)="onTouched()"
6025
+ [placeholder]="seconds ? 'HH:mm:ss' : 'HH:mm'"
6026
+ [maxLength]="seconds ? 8 : 5"
6027
+ autocomplete="off"
6028
+ (click)="openTimePicker(timePicker)"
6029
+ (input)="onTimeInput($any($event.target).value)"
6030
+ (blur)="onTimeBlur()"
5936
6031
  />
5937
- <mat-icon
6032
+
6033
+ <ngx-material-timepicker
6034
+ #timePicker
6035
+ [theme]="resolvedTimepickerTheme"
6036
+ [format]="24"
6037
+ [defaultTime]="timePickerValue || timePickerDefaultTime"
6038
+ timepickerClass="ptech-timepicker-panel"
6039
+ (timeSet)="onTimeSet($event)">
6040
+ </ngx-material-timepicker>
6041
+
6042
+ <ngx-material-timepicker-toggle
5938
6043
  matSuffix
5939
- class="ptech-time-icon"
5940
- (click)="timeInputElement.focus()">
5941
- schedule
5942
- </mat-icon>
6044
+ class="ptech-time-toggle"
6045
+ [for]="timePicker"
6046
+ [disabled]="isDisabled">
6047
+ <mat-icon ngxMaterialTimepickerToggleIcon>schedule</mat-icon>
6048
+ </ngx-material-timepicker-toggle>
5943
6049
  </mat-form-field>
5944
6050
  </div>
5945
6051
  </div>
@@ -5947,7 +6053,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5947
6053
  provide: NG_VALUE_ACCESSOR,
5948
6054
  useExisting: forwardRef(() => InputDateComponent),
5949
6055
  multi: true
5950
- }], styles: [":host{display:block;width:100%}.input-date-container{width:100%;min-width:0}.row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}.ptech-time-icon{color:var(--ptech-field-text, var(--app-text, inherit))!important;cursor:default}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;padding:0 12px 0 4px}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}\n"] }]
6056
+ }], styles: [":host{display:block;width:100%}.input-date-container{width:100%;min-width:0}.row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-text, var(--app-text, inherit))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}\n"] }]
5951
6057
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { inputDateElement: [{
5952
6058
  type: ViewChild,
5953
6059
  args: ['inputDateElement', { static: true }]
@@ -5982,6 +6088,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5982
6088
  type: Input
5983
6089
  }], defaultTime: [{
5984
6090
  type: Input
6091
+ }], timepickerTheme: [{
6092
+ type: Input
5985
6093
  }], timeZone: [{
5986
6094
  type: Input
5987
6095
  }], emit: [{
@@ -6037,6 +6145,7 @@ class InputTimeComponent extends BaseField {
6037
6145
  /** two-way opcional via (valueChange) */
6038
6146
  valueChange = new EventEmitter();
6039
6147
  _val = null;
6148
+ draftValue = '';
6040
6149
  // CVA
6041
6150
  onChange = () => { };
6042
6151
  onTouch = () => { };
@@ -6045,13 +6154,14 @@ class InputTimeComponent extends BaseField {
6045
6154
  const normalized = this.normalizeIncomingValue(v);
6046
6155
  if (normalized !== this._val) {
6047
6156
  this._val = normalized;
6048
- this.onChange(v);
6157
+ this.draftValue = normalized || '';
6158
+ this.onChange(normalized);
6049
6159
  this.valueChange.emit(normalized ?? '');
6050
6160
  this.cdr.markForCheck();
6051
6161
  }
6052
6162
  }
6053
6163
  get displayValue() {
6054
- return this._val || '';
6164
+ return this.draftValue;
6055
6165
  }
6056
6166
  get pickerValue() {
6057
6167
  if (!this._val)
@@ -6061,6 +6171,7 @@ class InputTimeComponent extends BaseField {
6061
6171
  }
6062
6172
  writeValue(val) {
6063
6173
  this._val = this.normalizeIncomingValue(val);
6174
+ this.draftValue = this._val || '';
6064
6175
  this.cdr.markForCheck();
6065
6176
  }
6066
6177
  registerOnChange(fn) { this.onChange = fn; }
@@ -6080,8 +6191,41 @@ class InputTimeComponent extends BaseField {
6080
6191
  return;
6081
6192
  picker.open();
6082
6193
  }
6194
+ onInput(raw) {
6195
+ this.draftValue = raw || '';
6196
+ const parsed = this.tryParseTime(this.draftValue);
6197
+ if (!parsed) {
6198
+ this.cdr.markForCheck();
6199
+ return;
6200
+ }
6201
+ const out = this.seconds ? `${parsed.hh}:${parsed.mm}:${parsed.ss}` : `${parsed.hh}:${parsed.mm}`;
6202
+ if (out !== this._val) {
6203
+ this._val = out;
6204
+ this.onChange(out);
6205
+ this.valueChange.emit(out);
6206
+ }
6207
+ this.cdr.markForCheck();
6208
+ }
6209
+ onInputBlur() {
6210
+ this.onTouch();
6211
+ if (!this.draftValue) {
6212
+ this._val = null;
6213
+ this.onChange(null);
6214
+ this.valueChange.emit('');
6215
+ this.cdr.markForCheck();
6216
+ return;
6217
+ }
6218
+ const parsed = this.tryParseTime(this.draftValue);
6219
+ this.draftValue = parsed
6220
+ ? (this.seconds ? `${parsed.hh}:${parsed.mm}:${parsed.ss}` : `${parsed.hh}:${parsed.mm}`)
6221
+ : (this._val || '');
6222
+ this.cdr.markForCheck();
6223
+ }
6083
6224
  // Aceita 'HH:mm', 'HH:mm:ss', 'h:mm A', 'h:mm:ss A'
6084
6225
  parseTime(inp) {
6226
+ return this.tryParseTime(inp) || this.parseTime(this.defaultTime);
6227
+ }
6228
+ tryParseTime(inp) {
6085
6229
  const s = (inp || '').trim().toUpperCase();
6086
6230
  // AM/PM?
6087
6231
  const ampmMatch = s.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*(AM|PM)$/);
@@ -6108,8 +6252,7 @@ class InputTimeComponent extends BaseField {
6108
6252
  const sec = this.clamp(+(h24[3] ?? 0), 0, 59);
6109
6253
  return { hh: this.pad(h), mm: this.pad(m), ss: this.pad(sec) };
6110
6254
  }
6111
- // fallback defaultTime
6112
- return this.parseTime(this.defaultTime);
6255
+ return null;
6113
6256
  }
6114
6257
  pad(n) { return n < 10 ? '0' + n : '' + n; }
6115
6258
  clamp(v, min, max) { return Math.max(min, Math.min(max, v)); }
@@ -6145,12 +6288,12 @@ class InputTimeComponent extends BaseField {
6145
6288
  [placeholder]="placeholder"
6146
6289
  [required]="required"
6147
6290
  [attr.aria-label]="ariaLabel || null"
6148
- readonly
6149
6291
  autocomplete="off"
6150
6292
  [maxLength]="seconds ? 8 : 5"
6151
6293
  [value]="displayValue"
6152
6294
  (click)="openPicker(picker)"
6153
- (blur)="onTouch()"
6295
+ (input)="onInput($any($event.target).value)"
6296
+ (blur)="onInputBlur()"
6154
6297
  />
6155
6298
 
6156
6299
  <ngx-material-timepicker
@@ -6158,6 +6301,7 @@ class InputTimeComponent extends BaseField {
6158
6301
  [theme]="resolvedTimepickerTheme"
6159
6302
  [format]="format"
6160
6303
  [defaultTime]="pickerValue || pickerDefaultTime"
6304
+ timepickerClass="ptech-timepicker-panel"
6161
6305
  (timeSet)="onTimeSet($event)">
6162
6306
  </ngx-material-timepicker>
6163
6307
 
@@ -6178,7 +6322,7 @@ class InputTimeComponent extends BaseField {
6178
6322
 
6179
6323
  <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
6180
6324
  </mat-form-field>
6181
- `, isInline: true, styles: [":host{display:block;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field input.mat-mdc-input-element,:host ::ng-deep .ptech-form-field input.mdc-text-field__input,:host ::ng-deep .ptech-form-field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-infix{min-width:0}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:hover,:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:focus{background-color:color-mix(in srgb,var(--app-text, #111827) 10%,transparent)}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}:host ::ng-deep .ptech-form-field .mat-mdc-icon-button.mat-mdc-button-base,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button .mat-icon,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg,:host ::ng-deep .ptech-form-field .ngx-material-timepicker-toggle svg,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg path{color:var(--ptech-field-text, var(--app-text, inherit))!important;fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}::ng-deep ngx-material-timepicker-container .timepicker{border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: NgxMaterialTimepickerModule }, { kind: "component", type: i6.NgxMaterialTimepickerComponent, selector: "ngx-material-timepicker", inputs: ["cancelBtnTmpl", "editableHintTmpl", "confirmBtnTmpl", "ESC", "enableKeyboardInput", "preventOverlayClick", "disableAnimation", "appendToInput", "hoursOnly", "defaultTime", "timepickerClass", "theme", "min", "max", "ngxMaterialTimepickerTheme", "format", "minutesGap"], outputs: ["timeSet", "opened", "closed", "hourSelected", "timeChanged"] }, { kind: "component", type: i6.NgxMaterialTimepickerToggleComponent, selector: "ngx-material-timepicker-toggle", inputs: ["for", "disabled"] }, { kind: "directive", type: i6.NgxMaterialTimepickerToggleIconDirective, selector: "[ngxMaterialTimepickerToggleIcon]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6325
+ `, isInline: true, styles: [":host{display:block;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field input.mat-mdc-input-element,:host ::ng-deep .ptech-form-field input.mdc-text-field__input,:host ::ng-deep .ptech-form-field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-infix{min-width:0}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:hover,:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:focus{background-color:color-mix(in srgb,var(--app-text, #111827) 10%,transparent)}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}:host ::ng-deep .ptech-form-field .mat-mdc-icon-button.mat-mdc-button-base,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button .mat-icon,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg,:host ::ng-deep .ptech-form-field .ngx-material-timepicker-toggle svg,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg path{color:var(--ptech-field-text, var(--app-text, inherit))!important;fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: NgxMaterialTimepickerModule }, { kind: "component", type: i8.NgxMaterialTimepickerComponent, selector: "ngx-material-timepicker", inputs: ["cancelBtnTmpl", "editableHintTmpl", "confirmBtnTmpl", "ESC", "enableKeyboardInput", "preventOverlayClick", "disableAnimation", "appendToInput", "hoursOnly", "defaultTime", "timepickerClass", "theme", "min", "max", "ngxMaterialTimepickerTheme", "format", "minutesGap"], outputs: ["timeSet", "opened", "closed", "hourSelected", "timeChanged"] }, { kind: "component", type: i8.NgxMaterialTimepickerToggleComponent, selector: "ngx-material-timepicker-toggle", inputs: ["for", "disabled"] }, { kind: "directive", type: i8.NgxMaterialTimepickerToggleIconDirective, selector: "[ngxMaterialTimepickerToggleIcon]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6182
6326
  }
6183
6327
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTimeComponent, decorators: [{
6184
6328
  type: Component,
@@ -6199,12 +6343,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6199
6343
  [placeholder]="placeholder"
6200
6344
  [required]="required"
6201
6345
  [attr.aria-label]="ariaLabel || null"
6202
- readonly
6203
6346
  autocomplete="off"
6204
6347
  [maxLength]="seconds ? 8 : 5"
6205
6348
  [value]="displayValue"
6206
6349
  (click)="openPicker(picker)"
6207
- (blur)="onTouch()"
6350
+ (input)="onInput($any($event.target).value)"
6351
+ (blur)="onInputBlur()"
6208
6352
  />
6209
6353
 
6210
6354
  <ngx-material-timepicker
@@ -6212,6 +6356,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6212
6356
  [theme]="resolvedTimepickerTheme"
6213
6357
  [format]="format"
6214
6358
  [defaultTime]="pickerValue || pickerDefaultTime"
6359
+ timepickerClass="ptech-timepicker-panel"
6215
6360
  (timeSet)="onTimeSet($event)">
6216
6361
  </ngx-material-timepicker>
6217
6362
 
@@ -6232,7 +6377,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6232
6377
 
6233
6378
  <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
6234
6379
  </mat-form-field>
6235
- `, styles: [":host{display:block;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field input.mat-mdc-input-element,:host ::ng-deep .ptech-form-field input.mdc-text-field__input,:host ::ng-deep .ptech-form-field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-infix{min-width:0}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:hover,:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:focus{background-color:color-mix(in srgb,var(--app-text, #111827) 10%,transparent)}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}:host ::ng-deep .ptech-form-field .mat-mdc-icon-button.mat-mdc-button-base,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button .mat-icon,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg,:host ::ng-deep .ptech-form-field .ngx-material-timepicker-toggle svg,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg path{color:var(--ptech-field-text, var(--app-text, inherit))!important;fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}::ng-deep ngx-material-timepicker-container .timepicker{border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}\n"] }]
6380
+ `, styles: [":host{display:block;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field input.mat-mdc-input-element,:host ::ng-deep .ptech-form-field input.mdc-text-field__input,:host ::ng-deep .ptech-form-field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-infix{min-width:0}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-icon, var(--ptech-field-text, var(--app-text, inherit)))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:hover,:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle:focus{background-color:color-mix(in srgb,var(--app-text, #111827) 10%,transparent)}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}:host ::ng-deep .ptech-form-field .mat-mdc-icon-button.mat-mdc-button-base,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button .mat-icon,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg,:host ::ng-deep .ptech-form-field .ngx-material-timepicker-toggle svg,:host ::ng-deep .ptech-form-field .mat-mdc-icon-button svg path{color:var(--ptech-field-text, var(--app-text, inherit))!important;fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}\n"] }]
6236
6381
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { format: [{
6237
6382
  type: Input
6238
6383
  }], seconds: [{
@@ -6890,7 +7035,7 @@ class TableComponent {
6890
7035
  <mat-progress-bar mode="indeterminate"></mat-progress-bar>
6891
7036
  </ng-template>
6892
7037
  </div>
6893
- `, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i8.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i8.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7038
+ `, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i8$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i8$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6894
7039
  }
6895
7040
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
6896
7041
  type: Component,