@yomotech/view-toolkit 1.0.76 → 1.0.77

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.
@@ -5789,6 +5789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
5789
5789
  }], ctorParameters: () => [{ type: CustomKeyboardService }] });
5790
5790
 
5791
5791
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
5792
+ // - fix: a locked duration (computed, 24:00) is shown as locked text - the time picker knows no hour 24 and stayed empty
5792
5793
  // - new: leaveTime - a partly typed time is completed when the field is left ("20" -> "20:00"); it was emptied
5793
5794
  // Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
5794
5795
  // - new: data type "duration" - 24 hours in every language, shown as HH:mm (durationText)
@@ -5933,7 +5934,11 @@ class DateTimeControl {
5933
5934
  }
5934
5935
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: DateTimeControl, deps: [], target: i0.ɵɵFactoryTarget.Component });
5935
5936
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: DateTimeControl, isStandalone: true, selector: "vl-datetime", inputs: { field: "field", target: "target", property: "property", kind: "kind", value: "value", readonly: "readonly", keyboard: "keyboard", saveTried: "saveTried", errorMessages: "errorMessages", translations: "translations", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { changed: "changed", opened: "opened" }, viewQueries: [{ propertyName: "control", first: true, predicate: ["dt"], descendants: true }], ngImport: i0, template: `
5936
- <ng-container *ngIf="!readonly; else shownText">
5937
+ <!-- a locked duration (computed, e.g. 24:00): shown as locked text - the time picker knows no hour 24 and stayed empty -->
5938
+ <input *ngIf="!readonly && isDuration() && field?.option?.disabled" type="text" disabled
5939
+ class="p-inputtext p-component vl-datetime__locked" [class]="'p-inputtext p-component vl-datetime__locked ' + (inputClass || '')"
5940
+ [style]="inputStyle" [value]="shown(value)" [placeholder]="placeholder()" />
5941
+ <ng-container *ngIf="!readonly && !(isDuration() && field?.option?.disabled); else lockedOrShown">
5937
5942
  <div class="picker-field" (keydown)="timeKey($event)" (focusout)="leaveTime($event)">
5938
5943
  <p-datepicker #dp #dt="ngModel" styleClass="custom-datepicker"
5939
5944
  [placeholder]="placeholder()" [name]="field?.scope?.reference"
@@ -5965,13 +5970,17 @@ class DateTimeControl {
5965
5970
  </div>
5966
5971
  <p class="text-danger vl-datetime__error" *ngIf="showError()">{{ message() }}</p>
5967
5972
  </ng-container>
5968
- <ng-template #shownText><span class="vl-datetime__text">{{ shown(value) }}</span></ng-template>
5969
- `, isInline: true, styles: [":host{display:block;min-width:0}.vl-datetime__error{margin:4px 0 0}.picker-field{position:relative}:where(.picker-field) ::ng-deep :where(p-datepicker,.p-datepicker,.p-datepicker input){width:100%}.picker-field__icon{position:absolute;right:0;top:0;height:100%;width:2.5rem;border:0;background:transparent;cursor:pointer}.picker-field:has(.picker-field__icon) ::ng-deep input{padding-right:2.5rem!important;text-overflow:ellipsis}.picker-field--active ::ng-deep input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;outline:none!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2$1.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }] });
5973
+ <ng-template #lockedOrShown><ng-container *ngIf="readonly"><span class="vl-datetime__text">{{ shown(value) }}</span></ng-container></ng-template>
5974
+ `, isInline: true, styles: [":host{display:block;min-width:0}.vl-datetime__locked{width:100%;box-sizing:border-box}.vl-datetime__error{margin:4px 0 0}.picker-field{position:relative}:where(.picker-field) ::ng-deep :where(p-datepicker,.p-datepicker,.p-datepicker input){width:100%}.picker-field__icon{position:absolute;right:0;top:0;height:100%;width:2.5rem;border:0;background:transparent;cursor:pointer}.picker-field:has(.picker-field__icon) ::ng-deep input{padding-right:2.5rem!important;text-overflow:ellipsis}.picker-field--active ::ng-deep input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;outline:none!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2$1.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }] });
5970
5975
  }
5971
5976
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: DateTimeControl, decorators: [{
5972
5977
  type: Component,
5973
5978
  args: [{ selector: 'vl-datetime', standalone: true, imports: [FormsModule, NgIf, DatePickerModule, CustomKeyboardDirective], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }], template: `
5974
- <ng-container *ngIf="!readonly; else shownText">
5979
+ <!-- a locked duration (computed, e.g. 24:00): shown as locked text - the time picker knows no hour 24 and stayed empty -->
5980
+ <input *ngIf="!readonly && isDuration() && field?.option?.disabled" type="text" disabled
5981
+ class="p-inputtext p-component vl-datetime__locked" [class]="'p-inputtext p-component vl-datetime__locked ' + (inputClass || '')"
5982
+ [style]="inputStyle" [value]="shown(value)" [placeholder]="placeholder()" />
5983
+ <ng-container *ngIf="!readonly && !(isDuration() && field?.option?.disabled); else lockedOrShown">
5975
5984
  <div class="picker-field" (keydown)="timeKey($event)" (focusout)="leaveTime($event)">
5976
5985
  <p-datepicker #dp #dt="ngModel" styleClass="custom-datepicker"
5977
5986
  [placeholder]="placeholder()" [name]="field?.scope?.reference"
@@ -6003,8 +6012,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
6003
6012
  </div>
6004
6013
  <p class="text-danger vl-datetime__error" *ngIf="showError()">{{ message() }}</p>
6005
6014
  </ng-container>
6006
- <ng-template #shownText><span class="vl-datetime__text">{{ shown(value) }}</span></ng-template>
6007
- `, styles: [":host{display:block;min-width:0}.vl-datetime__error{margin:4px 0 0}.picker-field{position:relative}:where(.picker-field) ::ng-deep :where(p-datepicker,.p-datepicker,.p-datepicker input){width:100%}.picker-field__icon{position:absolute;right:0;top:0;height:100%;width:2.5rem;border:0;background:transparent;cursor:pointer}.picker-field:has(.picker-field__icon) ::ng-deep input{padding-right:2.5rem!important;text-overflow:ellipsis}.picker-field--active ::ng-deep input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;outline:none!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important}\n"] }]
6015
+ <ng-template #lockedOrShown><ng-container *ngIf="readonly"><span class="vl-datetime__text">{{ shown(value) }}</span></ng-container></ng-template>
6016
+ `, styles: [":host{display:block;min-width:0}.vl-datetime__locked{width:100%;box-sizing:border-box}.vl-datetime__error{margin:4px 0 0}.picker-field{position:relative}:where(.picker-field) ::ng-deep :where(p-datepicker,.p-datepicker,.p-datepicker input){width:100%}.picker-field__icon{position:absolute;right:0;top:0;height:100%;width:2.5rem;border:0;background:transparent;cursor:pointer}.picker-field:has(.picker-field__icon) ::ng-deep input{padding-right:2.5rem!important;text-overflow:ellipsis}.picker-field--active ::ng-deep input{border-color:var(--modal-field-focus-color, var(--p-primary-color, #10b981))!important;outline:none!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--modal-field-focus-color, var(--p-primary-color, #10b981)) 30%,transparent)!important}\n"] }]
6008
6017
  }], propDecorators: { field: [{
6009
6018
  type: Input
6010
6019
  }], target: [{