@yomotech/view-toolkit 1.0.66 → 1.0.68

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.
@@ -3667,11 +3667,11 @@ class Autocomplete {
3667
3667
  return selectionCaption(selectionEntries(this.field?.option, this.list, this.translations), value);
3668
3668
  }
3669
3669
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: Autocomplete, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
3670
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: Autocomplete, isStandalone: true, selector: "vl-autocomplete", inputs: { field: "field", target: "target", value: "value", readonly: "readonly", list: "list", loading: "loading", combobox: "combobox", keyboard: "keyboard", saveTried: "saveTried", errorMessages: "errorMessages", translations: "translations", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { picked: "picked" }, viewQueries: [{ propertyName: "control", first: true, predicate: ["ac"], descendants: true }, { propertyName: "autocomplete", first: true, predicate: AutoComplete, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the field keeps the chosen entry's value (changed), not the entry -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4\n 2026-10-19: the open list stays inside the page frame (fitList, test F15) -->\n <!-- testing package -->\n<ng-container *ngIf=\"!readonly; else shownText\">\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\" styleClass=\"custom-autocomplete\"\n [ngModel]=\"target.value\" (ngModelChange)=\"changed($event)\"\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\n [style]=\"inputStyle\" [class]=\"inputClass\" (onShow)=\"fitList()\">\n </p-autocomplete>\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message() }}</p>\n</ng-container>\n<ng-template #shownText>\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\n</ng-template>\n", styles: [":host{display:block;min-width:0}:host ::ng-deep :where(.custom-autocomplete){border:1px solid var(--p-inputtext-border-color, #cbd5e1);border-radius:var(--p-inputtext-border-radius, 6px);background:var(--p-inputtext-background, #fff);min-height:2.5rem}::ng-deep .p-autocomplete-list{background-color:#fff}:host ::ng-deep .custom-autocomplete{display:flex;width:100%}:host ::ng-deep .custom-autocomplete .p-autocomplete-input{flex:1;width:100%;min-width:0;border:none!important;outline:none!important;box-shadow:none!important;background:transparent!important}:host ::ng-deep .custom-autocomplete .p-autocomplete-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus,:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus-visible,:host ::ng-deep .custom-autocomplete .p-inputtext:enabled:focus{border:none!important;outline:none!important;box-shadow:none!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: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i2.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }, { kind: "pipe", type: RulesPipe, name: "vlRules" }], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }] });
3670
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: Autocomplete, isStandalone: true, selector: "vl-autocomplete", inputs: { field: "field", target: "target", value: "value", readonly: "readonly", list: "list", loading: "loading", combobox: "combobox", keyboard: "keyboard", saveTried: "saveTried", errorMessages: "errorMessages", translations: "translations", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { picked: "picked" }, viewQueries: [{ propertyName: "control", first: true, predicate: ["ac"], descendants: true }, { propertyName: "autocomplete", first: true, predicate: AutoComplete, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the field keeps the chosen entry's value (changed), not the entry -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4\n 2026-10-19: the open list stays inside the page frame (fitList, test F15) -->\n<ng-container *ngIf=\"!readonly; else shownText\">\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\"\n styleClass=\"custom-autocomplete\"\n [ngModel]=\"target.value\" (ngModelChange)=\"changed($event)\"\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\n [style]=\"inputStyle\" [class]=\"inputClass\" (onShow)=\"fitList()\">\n </p-autocomplete>\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message()\n }}</p>\n</ng-container>\n<ng-template #shownText>\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\n</ng-template>\n", styles: [":host{display:block;min-width:0}:host ::ng-deep :where(.custom-autocomplete){border:1px solid var(--p-inputtext-border-color, #cbd5e1);border-radius:var(--p-inputtext-border-radius, 6px);background:var(--p-inputtext-background, #fff);min-height:2.5rem}::ng-deep .p-autocomplete-list{background-color:#fff}:host ::ng-deep .custom-autocomplete{display:flex;width:100%}:host ::ng-deep .custom-autocomplete .p-autocomplete-input{flex:1;width:100%;min-width:0;border:none!important;outline:none!important;box-shadow:none!important;background:transparent!important}:host ::ng-deep .custom-autocomplete .p-autocomplete-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus,:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus-visible,:host ::ng-deep .custom-autocomplete .p-inputtext:enabled:focus{border:none!important;outline:none!important;box-shadow:none!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: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i2.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CustomKeyboardDirective, selector: "[vlCustomKeyboard]", inputs: ["vlCustomKeyboard"] }, { kind: "pipe", type: RulesPipe, name: "vlRules" }], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }] });
3671
3671
  }
3672
3672
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: Autocomplete, decorators: [{
3673
3673
  type: Component,
3674
- args: [{ selector: 'vl-autocomplete', standalone: true, imports: [FormsModule, AutoCompleteModule, NgIf, RulesPipe, CustomKeyboardDirective], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the field keeps the chosen entry's value (changed), not the entry -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4\n 2026-10-19: the open list stays inside the page frame (fitList, test F15) -->\n <!-- testing package -->\n<ng-container *ngIf=\"!readonly; else shownText\">\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\" styleClass=\"custom-autocomplete\"\n [ngModel]=\"target.value\" (ngModelChange)=\"changed($event)\"\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\n [style]=\"inputStyle\" [class]=\"inputClass\" (onShow)=\"fitList()\">\n </p-autocomplete>\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message() }}</p>\n</ng-container>\n<ng-template #shownText>\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\n</ng-template>\n", styles: [":host{display:block;min-width:0}:host ::ng-deep :where(.custom-autocomplete){border:1px solid var(--p-inputtext-border-color, #cbd5e1);border-radius:var(--p-inputtext-border-radius, 6px);background:var(--p-inputtext-background, #fff);min-height:2.5rem}::ng-deep .p-autocomplete-list{background-color:#fff}:host ::ng-deep .custom-autocomplete{display:flex;width:100%}:host ::ng-deep .custom-autocomplete .p-autocomplete-input{flex:1;width:100%;min-width:0;border:none!important;outline:none!important;box-shadow:none!important;background:transparent!important}:host ::ng-deep .custom-autocomplete .p-autocomplete-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus,:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus-visible,:host ::ng-deep .custom-autocomplete .p-inputtext:enabled:focus{border:none!important;outline:none!important;box-shadow:none!important}\n"] }]
3674
+ args: [{ selector: 'vl-autocomplete', standalone: true, imports: [FormsModule, AutoCompleteModule, NgIf, RulesPipe, CustomKeyboardDirective], viewProviders: [{ provide: ControlContainer, useFactory: (form) => form, deps: [[new Optional(), new SkipSelf(), NgForm]] }], template: "<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-28\n - fix: the field keeps the chosen entry's value (changed), not the entry -->\n<!-- Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n - change: the one selection list of the library (autocomplete and combobox), #166 step 4.4\n 2026-10-19: the open list stays inside the page frame (fitList, test F15) -->\n<ng-container *ngIf=\"!readonly; else shownText\">\n <p-autocomplete #ac=\"ngModel\" [name]=\"field?.scope?.reference\"\n styleClass=\"custom-autocomplete\"\n [ngModel]=\"target.value\" (ngModelChange)=\"changed($event)\"\n [suggestions]=\"suggestions\" (completeMethod)=\"complete($event)\"\n [emptyMessage]=\"emptyText\" [showEmptyMessage]=\"true\" [dropdown]=\"true\"\n [forceSelection]=\"forceSelection\" [optionLabel]=\"optionLabel\"\n [required]=\"(field | vlRules).required\" [disabled]=\"field?.option?.disabled\"\n [placeholder]=\"placeholder()\" [vlCustomKeyboard]=\"keyboard\"\n [style]=\"inputStyle\" [class]=\"inputClass\" (onShow)=\"fitList()\">\n </p-autocomplete>\n <p class=\"text-danger vl-autocomplete__error\" *ngIf=\"showError()\">{{ message()\n }}</p>\n</ng-container>\n<ng-template #shownText>\n <span class=\"vl-autocomplete__text\">{{ shown(value) }}</span>\n</ng-template>\n", styles: [":host{display:block;min-width:0}:host ::ng-deep :where(.custom-autocomplete){border:1px solid var(--p-inputtext-border-color, #cbd5e1);border-radius:var(--p-inputtext-border-radius, 6px);background:var(--p-inputtext-background, #fff);min-height:2.5rem}::ng-deep .p-autocomplete-list{background-color:#fff}:host ::ng-deep .custom-autocomplete{display:flex;width:100%}:host ::ng-deep .custom-autocomplete .p-autocomplete-input{flex:1;width:100%;min-width:0;border:none!important;outline:none!important;box-shadow:none!important;background:transparent!important}:host ::ng-deep .custom-autocomplete .p-autocomplete-dropdown{height:100%;border-radius:4px}:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus,:host ::ng-deep .custom-autocomplete .p-autocomplete-input:focus-visible,:host ::ng-deep .custom-autocomplete .p-inputtext:enabled:focus{border:none!important;outline:none!important;box-shadow:none!important}\n"] }]
3675
3675
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { field: [{
3676
3676
  type: Input
3677
3677
  }], target: [{