@yomotech/view-toolkit 1.0.76 → 1.0.78
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.
|
@@ -542,6 +542,8 @@ function durationText(value, option) {
|
|
|
542
542
|
return `${lead ? String(hours).padStart(2, '0') : hours}:${String(minutes).padStart(2, '0')}`;
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
+
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
546
|
+
// - fix: testWrites - a delete in a browser list stays on the device and needs no "books" (tm-guided B7-B13 tidy up)
|
|
545
547
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-13
|
|
546
548
|
// - new: messages of the rules between fields - notBefore, notAfter, minDuration, maxDuration ({{other}}, {{limit}};
|
|
547
549
|
// project texts errorMessage_xx.json under the same keys; OFFENE-PUNKTE 225 A)
|
|
@@ -777,7 +779,9 @@ function testWrites(option) {
|
|
|
777
779
|
const writes = option?.storageType === 'database'
|
|
778
780
|
// a save into a browser list stays on the device (PageData.keep)
|
|
779
781
|
|| (actionName(option) === 'save' && !BROWSER_STORAGES.includes(String(option?.storageType ?? '').toLowerCase()))
|
|
780
|
-
|
|
782
|
+
// a delete in a browser list stays on the device (no backend is asked) - only a backend delete writes
|
|
783
|
+
|| (actionName(option) === 'delete' && !BROWSER_STORAGES.includes(String(option?.storageType ?? '').toLowerCase()))
|
|
784
|
+
|| actionName(option) === 'saveAll'
|
|
781
785
|
// a submit that sends to the backend (luv2shop's Purchase: submit, data_url checkout/purchase)
|
|
782
786
|
|| (actionName(option) === 'submit' && toBackend);
|
|
783
787
|
return writes ? 'true' : 'false';
|
|
@@ -5789,6 +5793,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
5789
5793
|
}], ctorParameters: () => [{ type: CustomKeyboardService }] });
|
|
5790
5794
|
|
|
5791
5795
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18
|
|
5796
|
+
// - fix: a locked duration (computed, 24:00) is shown as locked text - the time picker knows no hour 24 and stayed empty
|
|
5792
5797
|
// - new: leaveTime - a partly typed time is completed when the field is left ("20" -> "20:00"); it was emptied
|
|
5793
5798
|
// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17
|
|
5794
5799
|
// - new: data type "duration" - 24 hours in every language, shown as HH:mm (durationText)
|
|
@@ -5933,7 +5938,11 @@ class DateTimeControl {
|
|
|
5933
5938
|
}
|
|
5934
5939
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: DateTimeControl, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5935
5940
|
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
|
-
|
|
5941
|
+
<!-- a locked duration (computed, e.g. 24:00): shown as locked text - the time picker knows no hour 24 and stayed empty -->
|
|
5942
|
+
<input *ngIf="!readonly && isDuration() && field?.option?.disabled" type="text" disabled
|
|
5943
|
+
class="p-inputtext p-component vl-datetime__locked" [class]="'p-inputtext p-component vl-datetime__locked ' + (inputClass || '')"
|
|
5944
|
+
[style]="inputStyle" [value]="shown(value)" [placeholder]="placeholder()" />
|
|
5945
|
+
<ng-container *ngIf="!readonly && !(isDuration() && field?.option?.disabled); else lockedOrShown">
|
|
5937
5946
|
<div class="picker-field" (keydown)="timeKey($event)" (focusout)="leaveTime($event)">
|
|
5938
5947
|
<p-datepicker #dp #dt="ngModel" styleClass="custom-datepicker"
|
|
5939
5948
|
[placeholder]="placeholder()" [name]="field?.scope?.reference"
|
|
@@ -5965,13 +5974,17 @@ class DateTimeControl {
|
|
|
5965
5974
|
</div>
|
|
5966
5975
|
<p class="text-danger vl-datetime__error" *ngIf="showError()">{{ message() }}</p>
|
|
5967
5976
|
</ng-container>
|
|
5968
|
-
<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]] }] });
|
|
5977
|
+
<ng-template #lockedOrShown><ng-container *ngIf="readonly"><span class="vl-datetime__text">{{ shown(value) }}</span></ng-container></ng-template>
|
|
5978
|
+
`, 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
5979
|
}
|
|
5971
5980
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: DateTimeControl, decorators: [{
|
|
5972
5981
|
type: Component,
|
|
5973
5982
|
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
|
-
|
|
5983
|
+
<!-- a locked duration (computed, e.g. 24:00): shown as locked text - the time picker knows no hour 24 and stayed empty -->
|
|
5984
|
+
<input *ngIf="!readonly && isDuration() && field?.option?.disabled" type="text" disabled
|
|
5985
|
+
class="p-inputtext p-component vl-datetime__locked" [class]="'p-inputtext p-component vl-datetime__locked ' + (inputClass || '')"
|
|
5986
|
+
[style]="inputStyle" [value]="shown(value)" [placeholder]="placeholder()" />
|
|
5987
|
+
<ng-container *ngIf="!readonly && !(isDuration() && field?.option?.disabled); else lockedOrShown">
|
|
5975
5988
|
<div class="picker-field" (keydown)="timeKey($event)" (focusout)="leaveTime($event)">
|
|
5976
5989
|
<p-datepicker #dp #dt="ngModel" styleClass="custom-datepicker"
|
|
5977
5990
|
[placeholder]="placeholder()" [name]="field?.scope?.reference"
|
|
@@ -6003,8 +6016,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImpor
|
|
|
6003
6016
|
</div>
|
|
6004
6017
|
<p class="text-danger vl-datetime__error" *ngIf="showError()">{{ message() }}</p>
|
|
6005
6018
|
</ng-container>
|
|
6006
|
-
<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"] }]
|
|
6019
|
+
<ng-template #lockedOrShown><ng-container *ngIf="readonly"><span class="vl-datetime__text">{{ shown(value) }}</span></ng-container></ng-template>
|
|
6020
|
+
`, 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
6021
|
}], propDecorators: { field: [{
|
|
6009
6022
|
type: Input
|
|
6010
6023
|
}], target: [{
|